@zyzgroup/core-vue 0.0.13 → 0.0.16

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 (130) hide show
  1. package/ce/style.css +1 -1
  2. package/ce/yz_custom_element.iife.js +143 -53
  3. package/ce/yz_custom_element.iife.js.map +1 -1
  4. package/ce/yz_custom_element.js +15567 -15754
  5. package/ce/yz_custom_element.js.map +1 -1
  6. package/ce/yz_custom_element.umd.cjs +143 -53
  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 +79 -27
  10. package/dist/zyzgroup_core_vue.iife.js.map +1 -1
  11. package/dist/zyzgroup_core_vue.js +16966 -14398
  12. package/dist/zyzgroup_core_vue.js.map +1 -1
  13. package/dist/zyzgroup_core_vue.umd.cjs +79 -27
  14. package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
  15. package/package.json +5 -4
  16. package/types/App.vue.d.ts +0 -1
  17. package/types/components/Accordion.ce.vue.d.ts +80 -0
  18. package/types/components/Accordion.vue.d.ts +80 -0
  19. package/types/components/Canvas.ce.vue.d.ts +42 -0
  20. package/types/components/Canvas.vue.d.ts +42 -0
  21. package/types/components/CanvasFromSVG.ce.vue.d.ts +31 -0
  22. package/types/components/CanvasFromSVG.vue.d.ts +31 -0
  23. package/types/components/CanvasShape.ce.vue.d.ts +2 -0
  24. package/types/components/CanvasShape.vue.d.ts +2 -0
  25. package/types/components/CanvasSport.ce.vue.d.ts +2 -0
  26. package/types/components/CanvasSport.vue.d.ts +2 -0
  27. package/types/components/Dialog.ce.vue.d.ts +24 -33
  28. package/types/components/Dialog.vue.d.ts +24 -33
  29. package/types/components/DialogLoading.ce.vue.d.ts +2 -4
  30. package/types/components/DialogLoading.vue.d.ts +2 -4
  31. package/types/components/DialogToast.ce.vue.d.ts +50 -0
  32. package/types/components/DialogToast.vue.d.ts +50 -0
  33. package/types/components/EaseGroupGraphDisplay.ce.vue.d.ts +2 -2
  34. package/types/components/EaseGroupGraphDisplay.vue.d.ts +2 -2
  35. package/types/components/Icon.vue.d.ts +0 -1
  36. package/types/components/Image.ce.vue.d.ts +45 -0
  37. package/types/components/Image.vue.d.ts +45 -0
  38. package/types/components/ImageView.ce.vue.d.ts +34 -0
  39. package/types/components/ImageView.vue.d.ts +34 -0
  40. package/types/components/Input.ce.vue.d.ts +103 -0
  41. package/types/components/Input.vue.d.ts +103 -0
  42. package/types/components/MapTianditu.ce.vue.d.ts +2 -2
  43. package/types/components/MapTianditu.vue.d.ts +2 -2
  44. package/types/components/MouseOver.ce.vue.d.ts +52 -0
  45. package/types/components/MouseOver.vue.d.ts +52 -0
  46. package/types/components/PageVerticalScrollProgressBar.ce.vue.d.ts +58 -0
  47. package/types/components/PageVerticalScrollProgressBar.vue.d.ts +58 -0
  48. package/types/components/PlateKeyboard.ce.vue.d.ts +1 -1
  49. package/types/components/PlateKeyboard.vue.d.ts +1 -1
  50. package/types/components/PlateMobile.ce.vue.d.ts +1 -1
  51. package/types/components/PlateMobile.vue.d.ts +1 -1
  52. package/types/components/Pop.ce.vue.d.ts +6 -4
  53. package/types/components/Pop.vue.d.ts +7 -4
  54. package/types/components/ProgressBar.ce.vue.d.ts +73 -0
  55. package/types/components/ProgressBar.vue.d.ts +73 -0
  56. package/types/components/Routes.ce.vue.d.ts +60 -0
  57. package/types/components/Routes.vue.d.ts +60 -0
  58. package/types/components/Select.ce.vue.d.ts +6 -6
  59. package/types/components/Select.vue.d.ts +6 -6
  60. package/types/components/SelectAbsolute.ce.vue.d.ts +79 -0
  61. package/types/components/SelectAbsolute.vue.d.ts +79 -0
  62. package/types/components/SlideLeftItem.ce.vue.d.ts +5 -0
  63. package/types/components/SlideLeftItem.vue.d.ts +5 -0
  64. package/types/components/Switch.ce.vue.d.ts +1 -1
  65. package/types/components/Switch.vue.d.ts +1 -1
  66. package/types/components/Tabs.ce.vue.d.ts +15 -0
  67. package/types/components/Tabs.vue.d.ts +15 -0
  68. package/types/components/TabsWithTab.ce.vue.d.ts +33 -0
  69. package/types/components/TabsWithTab.vue.d.ts +33 -0
  70. package/types/components/TweenCSS.ce.vue.d.ts +30 -0
  71. package/types/components/TweenCSS.vue.d.ts +30 -0
  72. package/types/components/Video.ce.vue.d.ts +55 -0
  73. package/types/components/Video.vue.d.ts +55 -0
  74. package/types/components/bg/BGBar.ce.vue.d.ts +49 -0
  75. package/types/components/bg/BGBar.vue.d.ts +49 -0
  76. package/types/components/bg/BGHeart.ce.vue.d.ts +49 -0
  77. package/types/components/bg/BGHeart.vue.d.ts +49 -0
  78. package/types/components/layout/LayoutCenter.ce.vue.d.ts +36 -0
  79. package/types/components/layout/LayoutCenter.vue.d.ts +36 -0
  80. package/types/components/layout/LayoutMobile.ce.vue.d.ts +39 -0
  81. package/types/components/layout/LayoutMobile.vue.d.ts +39 -0
  82. package/types/components/loading/Loading1.ce.vue.d.ts +29 -0
  83. package/types/components/loading/Loading1.vue.d.ts +29 -0
  84. package/types/components/loading/Loading10.ce.vue.d.ts +29 -0
  85. package/types/components/loading/Loading10.vue.d.ts +29 -0
  86. package/types/components/loading/Loading2.ce.vue.d.ts +29 -0
  87. package/types/components/loading/Loading2.vue.d.ts +29 -0
  88. package/types/components/loading/Loading3.ce.vue.d.ts +34 -0
  89. package/types/components/loading/Loading3.vue.d.ts +34 -0
  90. package/types/components/loading/Loading4.ce.vue.d.ts +29 -0
  91. package/types/components/loading/Loading4.vue.d.ts +29 -0
  92. package/types/components/loading/Loading5.ce.vue.d.ts +29 -0
  93. package/types/components/loading/Loading5.vue.d.ts +29 -0
  94. package/types/components/loading/Loading6.ce.vue.d.ts +29 -0
  95. package/types/components/loading/Loading6.vue.d.ts +29 -0
  96. package/types/components/loading/Loading7.ce.vue.d.ts +29 -0
  97. package/types/components/loading/Loading7.vue.d.ts +29 -0
  98. package/types/components/loading/Loading8.ce.vue.d.ts +29 -0
  99. package/types/components/loading/Loading8.vue.d.ts +29 -0
  100. package/types/components/loading/Loading9.ce.vue.d.ts +29 -0
  101. package/types/components/loading/Loading9.vue.d.ts +29 -0
  102. package/types/components/registerGlobalComponents.d.ts +2 -0
  103. package/types/components/svg/SVGCheck.ce.vue.d.ts +1 -1
  104. package/types/components/svg/SVGCheck.vue.d.ts +1 -1
  105. package/types/components/svg/SVGCleanUp.ce.vue.d.ts +1 -1
  106. package/types/components/svg/SVGCleanUp.vue.d.ts +1 -1
  107. package/types/components/svg/SVGDelete.ce.vue.d.ts +1 -1
  108. package/types/components/svg/SVGDelete.vue.d.ts +1 -1
  109. package/types/components/svg/SVGDown.ce.vue.d.ts +36 -0
  110. package/types/components/svg/SVGDown.vue.d.ts +36 -0
  111. package/types/components/svg/SVGFail.ce.vue.d.ts +1 -1
  112. package/types/components/svg/SVGFail.vue.d.ts +1 -1
  113. package/types/components/svg/SVGHome.ce.vue.d.ts +1 -1
  114. package/types/components/svg/SVGHome.vue.d.ts +1 -1
  115. package/types/components/svg/SVGLoading.ce.vue.d.ts +1 -1
  116. package/types/components/svg/SVGLoading.vue.d.ts +1 -1
  117. package/types/components/svg/SVGLock.ce.vue.d.ts +36 -0
  118. package/types/components/svg/SVGLock.vue.d.ts +36 -0
  119. package/types/components/svg/SVGPrompt.ce.vue.d.ts +1 -1
  120. package/types/components/svg/SVGPrompt.vue.d.ts +1 -1
  121. package/types/components/svg/SVGQuestion.ce.vue.d.ts +1 -1
  122. package/types/components/svg/SVGQuestion.vue.d.ts +1 -1
  123. package/types/components/svg/SVGReturn.ce.vue.d.ts +1 -1
  124. package/types/components/svg/SVGReturn.vue.d.ts +1 -1
  125. package/types/components/svg/SVGSuccess.vue.d.ts +1 -1
  126. package/types/components/svg/SVGWaiting.ce.vue.d.ts +1 -1
  127. package/types/components/svg/SVGWaiting.vue.d.ts +1 -1
  128. package/types/globalTeleport.d.ts +90 -0
  129. package/types/lib.d.ts +42 -16
  130. package/types/vnode.d.ts +7 -0
@@ -1,31 +1,34 @@
1
- var ZYZGroupCoreVue=function(jt){"use strict";/**
1
+ var ZYZGroupCoreVue=function(Q){"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 tu(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const Ge={}.NODE_ENV!=="production"?Object.freeze({}):{},eu={}.NODE_ENV!=="production"?Object.freeze([]):[],Ei=()=>{},nu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Le=Object.assign,iu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ru=Object.prototype.hasOwnProperty,ne=(e,t)=>ru.call(e,t),Bt=Array.isArray,Rn=e=>Ci(e)==="[object Map]",jo=e=>Ci(e)==="[object Set]",su=e=>Ci(e)==="[object RegExp]",Qt=e=>typeof e=="function",ve=e=>typeof e=="string",Dn=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",ou=e=>(oe(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),Bo=Object.prototype.toString,Ci=e=>Bo.call(e),Ho=e=>Ci(e).slice(8,-1),Uo=e=>Ci(e)==="[object Object]",ls=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},au=/-(\w)/g,rr=cs(e=>e.replace(au,(t,n)=>n?n.toUpperCase():"")),Si=cs(e=>e.charAt(0).toUpperCase()+e.slice(1)),lu=cs(e=>e?`on${Si(e)}`:""),yn=(e,t)=>!Object.is(e,t),Wo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},cu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let qo;const Yo=()=>qo||(qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ot(e){if(Bt(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ve(i)?du(i):Ot(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(ve(e)||oe(e))return e}const uu=/;(?![^(]*\))/g,hu=/:([^]+)/,fu=/\/\*[^]*?\*\//g;function du(e){const t={};return e.replace(fu,"").split(uu).forEach(n=>{if(n){const i=n.split(hu);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Wt(e){let t="";if(ve(e))t=e;else if(Bt(e))for(let n=0;n<e.length;n++){const i=Wt(e[n]);i&&(t+=i+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const de=e=>ve(e)?e:e==null?"":Bt(e)||oe(e)&&(e.toString===Bo||!Qt(e.toString))?JSON.stringify(e,Xo,2):String(e),Xo=(e,t)=>t&&t.__v_isRef?Xo(e,t.value):Rn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[us(i,s)+" =>"]=r,n),{})}:jo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>us(n))}:Dn(t)?us(t):oe(t)&&!Bt(t)&&!Uo(t)?String(t):t,us=(e,t="")=>{var n;return Dn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Vn(t,e){const n=new Set(t.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Se={}.NODE_ENV!=="production"?Object.freeze({}):{},Gn={}.NODE_ENV!=="production"?Object.freeze([]):[],Ge=()=>{},Du=()=>!1,Qn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Gs=t=>t.startsWith("onUpdate:"),Le=Object.assign,er=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Au=Object.prototype.hasOwnProperty,_e=(t,e)=>Au.call(t,e),re=Array.isArray,yn=t=>zs(t)==="[object Map]",sa=t=>zs(t)==="[object Set]",ae=t=>typeof t=="function",ze=t=>typeof t=="string",bn=t=>typeof t=="symbol",Ee=t=>t!==null&&typeof t=="object",tr=t=>(Ee(t)||ae(t))&&ae(t.then)&&ae(t.catch),ia=Object.prototype.toString,zs=t=>ia.call(t),nr=t=>zs(t).slice(8,-1),ra=t=>zs(t)==="[object Object]",sr=t=>ze(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Jn=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ru=Vn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),js=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},$u=/-(\w)/g,$t=js(t=>t.replace($u,(e,n)=>n?n.toUpperCase():"")),Lu=/\B([A-Z])/g,on=js(t=>t.replace(Lu,"-$1").toLowerCase()),xn=js(t=>t.charAt(0).toUpperCase()+t.slice(1)),wn=js(t=>t?`on${xn(t)}`:""),an=(t,e)=>!Object.is(t,e),es=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},oa=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Fu=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let aa;const ir=()=>aa||(aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function q(t){if(re(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],i=ze(s)?ju(s):q(s);if(i)for(const r in i)e[r]=i[r]}return e}else if(ze(t)||Ee(t))return t}const Vu=/;(?![^(]*\))/g,Gu=/:([^]+)/,zu=/\/\*[^]*?\*\//g;function ju(t){const e={};return t.replace(zu,"").split(Vu).forEach(n=>{if(n){const s=n.split(Gu);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function vt(t){let e="";if(ze(t))e=t;else if(re(t))for(let n=0;n<t.length;n++){const s=vt(t[n]);s&&(e+=s+" ")}else if(Ee(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Hu=Vn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function la(t){return!!t||t===""}const be=t=>ze(t)?t:t==null?"":re(t)||Ee(t)&&(t.toString===ia||!ae(t.toString))?JSON.stringify(t,ca,2):String(t),ca=(t,e)=>e&&e.__v_isRef?ca(t,e.value):yn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,i],r)=>(n[rr(s,r)+" =>"]=i,n),{})}:sa(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>rr(n))}:bn(e)?rr(e):Ee(e)&&!re(e)&&!ra(e)?String(e):e,rr=(t,e="")=>{var n;return bn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
6
6
  * @vue/reactivity v3.4.25
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function Jn(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ko;function pu(e,t=Ko){t&&t.active&&t.effects.push(e)}function mu(){return Ko}let Fn;class Zo{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,pu(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ki();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(gu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ti()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=_n,n=Fn;try{return _n=!0,Fn=this,this._runnings++,Qo(this),this.fn()}finally{Jo(this),this._runnings--,Fn=n,_n=t}}stop(){var t;this.active&&(Qo(this),Jo(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function gu(e){return e.value}function Qo(e){e._trackId++,e._depsLength=0}function Jo(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ta(e.deps[t],e);e.deps.length=e._depsLength}}function ta(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let _n=!0,hs=0;const ea=[];function ki(){ea.push(_n),_n=!1}function Ti(){const e=ea.pop();_n=e===void 0?!0:e}function fs(){hs++}function ds(){for(hs--;!hs&&ps.length;)ps.shift()()}function na(e,t,n){var i;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&ta(r,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((i=e.onTrack)==null||i.call(e,Le({effect:e},n)))}}const ps=[];function ia(e,t,n){var i;fs();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((i=r.onTrigger)==null||i.call(r,Le({effect:r},n))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&ps.push(r.scheduler)))}ds()}const ra=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ms=new WeakMap,Vn=Symbol({}.NODE_ENV!=="production"?"iterate":""),gs=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ue(e,t,n){if(_n&&Fn){let i=ms.get(e);i||ms.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=ra(()=>i.delete(n))),na(Fn,r,{}.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function xn(e,t,n,i,r,s){const o=ms.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&Bt(e)){const u=Number(i);o.forEach((v,y)=>{(y==="length"||!Dn(y)&&y>=u)&&l.push(v)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":Bt(e)?ls(n)&&l.push(o.get("length")):(l.push(o.get(Vn)),Rn(e)&&l.push(o.get(gs)));break;case"delete":Bt(e)||(l.push(o.get(Vn)),Rn(e)&&l.push(o.get(gs)));break;case"set":Rn(e)&&l.push(o.get(Vn));break}fs();for(const u of l)u&&ia(u,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:i,oldValue:r,oldTarget:s}:void 0);ds()}const vu=tu("__proto__,__v_isRef,__isVue"),sa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dn)),oa=yu();function yu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Rt(this);for(let s=0,o=this.length;s<o;s++)ue(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(Rt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ki(),fs();const i=Rt(this)[t].apply(this,n);return ds(),Ti(),i}}),e}function _u(e){Dn(e)||(e=String(e));const t=Rt(this);return ue(t,"has",e),t.hasOwnProperty(e)}class aa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?ga:ma:s?Mu:pa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=Bt(t);if(!r){if(o&&ne(oa,n))return Reflect.get(oa,n,i);if(n==="hasOwnProperty")return _u}const l=Reflect.get(t,n,i);return(Dn(n)?sa.has(n):vu(n))||(r||ue(t,"get",n),s)?l:Ce(l)?o&&ls(n)?l:l.value:oe(l)?r?va(l):en(l):l}}class xu extends aa{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const u=$n(s);if(!zn(i)&&!$n(i)&&(s=Rt(s),i=Rt(i)),!Bt(t)&&Ce(s)&&!Ce(i))return u?!1:(s.value=i,!0)}const o=Bt(t)&&ls(n)?Number(n)<t.length:ne(t,n),l=Reflect.set(t,n,i,r);return t===Rt(r)&&(o?yn(i,s)&&xn(t,"set",n,i,s):xn(t,"add",n,i)),l}deleteProperty(t,n){const i=ne(t,n),r=t[n],s=Reflect.deleteProperty(t,n);return s&&i&&xn(t,"delete",n,void 0,r),s}has(t,n){const i=Reflect.has(t,n);return(!Dn(n)||!sa.has(n))&&ue(t,"has",n),i}ownKeys(t){return ue(t,"iterate",Bt(t)?"length":Vn),Reflect.ownKeys(t)}}class la extends aa{constructor(t=!1){super(!0,t)}set(t,n){return{}.NODE_ENV!=="production"&&Jn(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return{}.NODE_ENV!=="production"&&Jn(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const bu=new xu,wu=new la,Eu=new la(!0),vs=e=>e,sr=e=>Reflect.getPrototypeOf(e);function or(e,t,n=!1,i=!1){e=e.__v_raw;const r=Rt(e),s=Rt(t);n||(yn(t,s)&&ue(r,"get",t),ue(r,"get",s));const{has:o}=sr(r),l=i?vs:n?bs:Pi;if(o.call(r,t))return l(e.get(t));if(o.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function ar(e,t=!1){const n=this.__v_raw,i=Rt(n),r=Rt(e);return t||(yn(e,r)&&ue(i,"has",e),ue(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function lr(e,t=!1){return e=e.__v_raw,!t&&ue(Rt(e),"iterate",Vn),Reflect.get(e,"size",e)}function ca(e){e=Rt(e);const t=Rt(this);return sr(t).has.call(t,e)||(t.add(e),xn(t,"add",e,e)),this}function ua(e,t){t=Rt(t);const n=Rt(this),{has:i,get:r}=sr(n);let s=i.call(n,e);s?{}.NODE_ENV!=="production"&&da(n,i,e):(e=Rt(e),s=i.call(n,e));const o=r.call(n,e);return n.set(e,t),s?yn(t,o)&&xn(n,"set",e,t,o):xn(n,"add",e,t),this}function ha(e){const t=Rt(this),{has:n,get:i}=sr(t);let r=n.call(t,e);r?{}.NODE_ENV!=="production"&&da(t,n,e):(e=Rt(e),r=n.call(t,e));const s=i?i.call(t,e):void 0,o=t.delete(e);return r&&xn(t,"delete",e,void 0,s),o}function fa(){const e=Rt(this),t=e.size!==0,n={}.NODE_ENV!=="production"?Rn(e)?new Map(e):new Set(e):void 0,i=e.clear();return t&&xn(e,"clear",void 0,void 0,n),i}function cr(e,t){return function(i,r){const s=this,o=s.__v_raw,l=Rt(o),u=t?vs:e?bs:Pi;return!e&&ue(l,"iterate",Vn),o.forEach((v,y)=>i.call(r,u(v),u(y),s))}}function ur(e,t,n){return function(...i){const r=this.__v_raw,s=Rt(r),o=Rn(s),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,v=r[e](...i),y=n?vs:t?bs:Pi;return!t&&ue(s,"iterate",u?gs:Vn),{next(){const{value:g,done:m}=v.next();return m?{value:g,done:m}:{value:l?[y(g[0]),y(g[1])]:y(g),done:m}},[Symbol.iterator](){return this}}}}function bn(e){return function(...t){if({}.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Jn(`${Si(e)} operation ${n}failed: target is readonly.`,Rt(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Cu(){const e={get(s){return or(this,s)},get size(){return lr(this)},has:ar,add:ca,set:ua,delete:ha,clear:fa,forEach:cr(!1,!1)},t={get(s){return or(this,s,!1,!0)},get size(){return lr(this)},has:ar,add:ca,set:ua,delete:ha,clear:fa,forEach:cr(!1,!0)},n={get(s){return or(this,s,!0)},get size(){return lr(this,!0)},has(s){return ar.call(this,s,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:cr(!0,!1)},i={get(s){return or(this,s,!0,!0)},get size(){return lr(this,!0)},has(s){return ar.call(this,s,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:cr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ur(s,!1,!1),n[s]=ur(s,!0,!1),t[s]=ur(s,!1,!0),i[s]=ur(s,!0,!0)}),[e,n,t,i]}const[Su,ku,Tu,Pu]=Cu();function ys(e,t){const n=t?e?Pu:Tu:e?ku:Su;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(ne(n,r)&&r in i?n:i,r,s)}const Iu={get:ys(!1,!1)},Nu={get:ys(!0,!1)},Ou={get:ys(!0,!0)};function da(e,t,n){const i=Rt(n);if(i!==n&&t.call(e,i)){const r=Ho(e);Jn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const pa=new WeakMap,Mu=new WeakMap,ma=new WeakMap,ga=new WeakMap;function Au(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lu(e){return e.__v_skip||!Object.isExtensible(e)?0:Au(Ho(e))}function en(e){return $n(e)?e:_s(e,!1,bu,Iu,pa)}function va(e){return _s(e,!0,wu,Nu,ma)}function hr(e){return _s(e,!0,Eu,Ou,ga)}function _s(e,t,n,i,r){if(!oe(e))return{}.NODE_ENV!=="production"&&Jn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const o=Lu(e);if(o===0)return e;const l=new Proxy(e,o===2?i:n);return r.set(e,l),l}function ti(e){return $n(e)?ti(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function zn(e){return!!(e&&e.__v_isShallow)}function xs(e){return e?!!e.__v_raw:!1}function Rt(e){const t=e&&e.__v_raw;return t?Rt(t):e}function Ru(e){return Object.isExtensible(e)&&cu(e,"__v_skip",!0),e}const Pi=e=>oe(e)?en(e):e,bs=e=>oe(e)?va(e):e,Du="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 Fu{constructor(t,n,i,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zo(()=>t(this._value),()=>fr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=Rt(this);return(!t._cacheable||t.effect.dirty)&&yn(t._value,t._value=t.effect.run())&&fr(t,4),ya(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Jn(Du,`
9
+ **/function ln(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Nt;class Bu{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Nt,!e&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Nt;try{return Nt=this,e()}finally{Nt=n}}else({}).NODE_ENV!=="production"&&ln("cannot run an inactive effect scope.")}on(){Nt=this}off(){Nt=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Uu(t,e=Nt){e&&e.active&&e.effects.push(t)}function Wu(){return Nt}let En;class or{constructor(e,n,s,i){this.fn=e,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Uu(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Bt();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(Yu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ut()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=cn,n=En;try{return cn=!0,En=this,this._runnings++,ua(this),this.fn()}finally{ha(this),this._runnings--,En=n,cn=e}}stop(){var e;this.active&&(ua(this),ha(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Yu(t){return t.value}function ua(t){t._trackId++,t._depsLength=0}function ha(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)fa(t.deps[e],t);t.deps.length=t._depsLength}}function fa(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let cn=!0,ar=0;const da=[];function Bt(){da.push(cn),cn=!1}function Ut(){const t=da.pop();cn=t===void 0?!0:t}function lr(){ar++}function cr(){for(ar--;!ar&&ur.length;)ur.shift()()}function pa(t,e,n){var s;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&fa(i,t),t.deps[t._depsLength++]=e):t._depsLength++,{}.NODE_ENV!=="production"&&((s=t.onTrack)==null||s.call(t,Le({effect:t},n)))}}const ur=[];function ma(t,e,n){var s;lr();for(const i of t.keys()){let r;i._dirtyLevel<e&&(r??(r=t.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(r??(r=t.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,Le({effect:i},n))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&ur.push(i.scheduler)))}cr()}const ga=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},hr=new WeakMap,Cn=Symbol({}.NODE_ENV!=="production"?"iterate":""),fr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Ke(t,e,n){if(cn&&En){let s=hr.get(t);s||hr.set(t,s=new Map);let i=s.get(n);i||s.set(n,i=ga(()=>s.delete(n))),pa(En,i,{}.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function Lt(t,e,n,s,i,r){const o=hr.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&re(t)){const l=Number(s);o.forEach((c,u)=>{(u==="length"||!bn(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":re(t)?sr(n)&&a.push(o.get("length")):(a.push(o.get(Cn)),yn(t)&&a.push(o.get(fr)));break;case"delete":re(t)||(a.push(o.get(Cn)),yn(t)&&a.push(o.get(fr)));break;case"set":yn(t)&&a.push(o.get(Cn));break}lr();for(const l of a)l&&ma(l,4,{}.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:s,oldValue:i,oldTarget:r}:void 0);cr()}const Xu=Vn("__proto__,__v_isRef,__isVue"),_a=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(bn)),va=qu();function qu(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=me(this);for(let r=0,o=this.length;r<o;r++)Ke(s,"get",r+"");const i=s[e](...n);return i===-1||i===!1?s[e](...n.map(me)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Bt(),lr();const s=me(this)[e].apply(this,n);return cr(),Ut(),s}}),t}function Ku(t){bn(t)||(t=String(t));const e=me(this);return Ke(e,"has",t),e.hasOwnProperty(t)}class ya{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?Oa:Na:r?Pa:ka).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=re(e);if(!i){if(o&&_e(va,n))return Reflect.get(va,n,s);if(n==="hasOwnProperty")return Ku}const a=Reflect.get(e,n,s);return(bn(n)?_a.has(n):Xu(n))||(i||Ke(e,"get",n),r)?a:Ze(a)?o&&sr(n)?a:a.value:Ee(a)?i?Ia(a):st(a):a}}class ba extends ya{constructor(e=!1){super(!1,e)}set(e,n,s,i){let r=e[n];if(!this._isShallow){const l=Tn(r);if(!Sn(s)&&!Tn(s)&&(r=me(r),s=me(s)),!re(e)&&Ze(r)&&!Ze(s))return l?!1:(r.value=s,!0)}const o=re(e)&&sr(n)?Number(n)<e.length:_e(e,n),a=Reflect.set(e,n,s,i);return e===me(i)&&(o?an(s,r)&&Lt(e,"set",n,s,r):Lt(e,"add",n,s)),a}deleteProperty(e,n){const s=_e(e,n),i=e[n],r=Reflect.deleteProperty(e,n);return r&&s&&Lt(e,"delete",n,void 0,i),r}has(e,n){const s=Reflect.has(e,n);return(!bn(n)||!_a.has(n))&&Ke(e,"has",n),s}ownKeys(e){return Ke(e,"iterate",re(e)?"length":Cn),Reflect.ownKeys(e)}}class xa extends ya{constructor(e=!1){super(!0,e)}set(e,n){return{}.NODE_ENV!=="production"&&ln(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return{}.NODE_ENV!=="production"&&ln(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const Zu=new ba,Qu=new xa,Ju=new ba(!0),eh=new xa(!0),dr=t=>t,Hs=t=>Reflect.getPrototypeOf(t);function Bs(t,e,n=!1,s=!1){t=t.__v_raw;const i=me(t),r=me(e);n||(an(e,r)&&Ke(i,"get",e),Ke(i,"get",r));const{has:o}=Hs(i),a=s?dr:n?mr:ts;if(o.call(i,e))return a(t.get(e));if(o.call(i,r))return a(t.get(r));t!==i&&t.get(e)}function Us(t,e=!1){const n=this.__v_raw,s=me(n),i=me(t);return e||(an(t,i)&&Ke(s,"has",t),Ke(s,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function Ws(t,e=!1){return t=t.__v_raw,!e&&Ke(me(t),"iterate",Cn),Reflect.get(t,"size",t)}function wa(t){t=me(t);const e=me(this);return Hs(e).has.call(e,t)||(e.add(t),Lt(e,"add",t,t)),this}function Ea(t,e){e=me(e);const n=me(this),{has:s,get:i}=Hs(n);let r=s.call(n,t);r?{}.NODE_ENV!=="production"&&Sa(n,s,t):(t=me(t),r=s.call(n,t));const o=i.call(n,t);return n.set(t,e),r?an(e,o)&&Lt(n,"set",t,e,o):Lt(n,"add",t,e),this}function Ca(t){const e=me(this),{has:n,get:s}=Hs(e);let i=n.call(e,t);i?{}.NODE_ENV!=="production"&&Sa(e,n,t):(t=me(t),i=n.call(e,t));const r=s?s.call(e,t):void 0,o=e.delete(t);return i&&Lt(e,"delete",t,void 0,r),o}function Ta(){const t=me(this),e=t.size!==0,n={}.NODE_ENV!=="production"?yn(t)?new Map(t):new Set(t):void 0,s=t.clear();return e&&Lt(t,"clear",void 0,void 0,n),s}function Ys(t,e){return function(s,i){const r=this,o=r.__v_raw,a=me(o),l=e?dr:t?mr:ts;return!t&&Ke(a,"iterate",Cn),o.forEach((c,u)=>s.call(i,l(c),l(u),r))}}function Xs(t,e,n){return function(...s){const i=this.__v_raw,r=me(i),o=yn(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=i[t](...s),u=n?dr:e?mr:ts;return!e&&Ke(r,"iterate",l?fr:Cn),{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 un(t){return function(...e){if({}.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";ln(`${xn(t)} operation ${n}failed: target is readonly.`,me(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function th(){const t={get(r){return Bs(this,r)},get size(){return Ws(this)},has:Us,add:wa,set:Ea,delete:Ca,clear:Ta,forEach:Ys(!1,!1)},e={get(r){return Bs(this,r,!1,!0)},get size(){return Ws(this)},has:Us,add:wa,set:Ea,delete:Ca,clear:Ta,forEach:Ys(!1,!0)},n={get(r){return Bs(this,r,!0)},get size(){return Ws(this,!0)},has(r){return Us.call(this,r,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Ys(!0,!1)},s={get(r){return Bs(this,r,!0,!0)},get size(){return Ws(this,!0)},has(r){return Us.call(this,r,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Ys(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Xs(r,!1,!1),n[r]=Xs(r,!0,!1),e[r]=Xs(r,!1,!0),s[r]=Xs(r,!0,!0)}),[t,n,e,s]}const[nh,sh,ih,rh]=th();function qs(t,e){const n=e?t?rh:ih:t?sh:nh;return(s,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?s:Reflect.get(_e(n,i)&&i in s?n:s,i,r)}const oh={get:qs(!1,!1)},ah={get:qs(!1,!0)},lh={get:qs(!0,!1)},ch={get:qs(!0,!0)};function Sa(t,e,n){const s=me(n);if(s!==n&&e.call(t,s)){const i=nr(t);ln(`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 ka=new WeakMap,Pa=new WeakMap,Na=new WeakMap,Oa=new WeakMap;function uh(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hh(t){return t.__v_skip||!Object.isExtensible(t)?0:uh(nr(t))}function st(t){return Tn(t)?t:Ks(t,!1,Zu,oh,ka)}function fh(t){return Ks(t,!1,Ju,ah,Pa)}function Ia(t){return Ks(t,!0,Qu,lh,Na)}function Wt(t){return Ks(t,!0,eh,ch,Oa)}function Ks(t,e,n,s,i){if(!Ee(t))return{}.NODE_ENV!=="production"&&ln(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=hh(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return i.set(t,a),a}function zn(t){return Tn(t)?zn(t.__v_raw):!!(t&&t.__v_isReactive)}function Tn(t){return!!(t&&t.__v_isReadonly)}function Sn(t){return!!(t&&t.__v_isShallow)}function pr(t){return t?!!t.__v_raw:!1}function me(t){const e=t&&t.__v_raw;return e?me(e):t}function dh(t){return Object.isExtensible(t)&&oa(t,"__v_skip",!0),t}const ts=t=>Ee(t)?st(t):t,mr=t=>Ee(t)?Ia(t):t,ph="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 Ma{constructor(e,n,s,i){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new or(()=>e(this._value),()=>Zs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=me(this);return(!e._cacheable||e.effect.dirty)&&an(e._value,e._value=e.effect.run())&&Zs(e,4),Da(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&ln(ph,`
10
10
 
11
- getter: `,this.getter),fr(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ya(e){var t;_n&&Fn&&(e=Rt(e),na(Fn,(t=e.dep)!=null?t:e.dep=ra(()=>e.dep=void 0,e instanceof Fu?e:void 0),{}.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function fr(e,t=4,n){e=Rt(e);const i=e.dep;i&&ia(i,t,{}.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n}:void 0)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function vt(e){return Vu(e,!1)}function Vu(e,t){return Ce(e)?e:new $u(e,t)}class $u{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Rt(t),this._value=n?t:Pi(t)}get value(){return ya(this),this._value}set value(t){const n=this.__v_isShallow||zn(t)||$n(t);t=n?t:Rt(t),yn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Pi(t),fr(this,4,t))}}function ae(e){return Ce(e)?e.value:e}const zu={get:(e,t,n)=>ae(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Gu(e){return ti(e)?e:new Proxy(e,zu)}/**
11
+ getter: `,this.getter),Zs(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function mh(t,e,n=!1){let s,i;const r=ae(t);r?(s=t,i={}.NODE_ENV!=="production"?()=>{ln("Write operation failed: computed value is readonly")}:Ge):(s=t.get,i=t.set);const o=new Ma(s,i,r||!i,n);return{}.NODE_ENV!=="production"&&e&&!n&&(o.effect.onTrack=e.onTrack,o.effect.onTrigger=e.onTrigger),o}function Da(t){var e;cn&&En&&(t=me(t),pa(En,(e=t.dep)!=null?e:t.dep=ga(()=>t.dep=void 0,t instanceof Ma?t:void 0),{}.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Zs(t,e=4,n){t=me(t);const s=t.dep;s&&ma(s,e,{}.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function Ze(t){return!!(t&&t.__v_isRef===!0)}function G(t){return gh(t,!1)}function gh(t,e){return Ze(t)?t:new _h(t,e)}class _h{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:me(e),this._value=n?e:ts(e)}get value(){return Da(this),this._value}set value(e){const n=this.__v_isShallow||Sn(e)||Tn(e);e=n?e:me(e),an(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:ts(e),Zs(this,4,e))}}function Ce(t){return Ze(t)?t.value:t}const vh={get:(t,e,n)=>Ce(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function Aa(t){return zn(t)?t:new Proxy(t,vh)}/**
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 Gn=[];function ju(e){Gn.push(e)}function Bu(){Gn.pop()}function Gt(e,...t){ki();const n=Gn.length?Gn[Gn.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=Hu();if(i)jn(i,n,11,[e+t.map(s=>{var o,l;return(l=(o=s.toString)==null?void 0:o.call(s))!=null?l:JSON.stringify(s)}).join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${tl(n,s.type)}>`).join(`
16
- `),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
17
- `,...Uu(r)),console.warn(...s)}Ti()}function Hu(){let e=Gn[Gn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function Uu(e){const t=[];return e.forEach((n,i)=>{t.push(...i===0?[]:[`
18
- `],...Wu(n))}),t}function Wu({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,r=` at <${tl(e.component,e.type,i)}`,s=">"+n;return e.props?[r,...qu(e.props),s]:[r+s]}function qu(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(i=>{t.push(..._a(i,e[i]))}),n.length>3&&t.push(" ..."),t}function _a(e,t,n){return ve(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=_a(e,Rt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Qt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Rt(t),n?t:[`${e}=`,t])}const ws={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 jn(e,t,n,i){try{return i?e(...i):e()}catch(r){Es(r,t,n)}}function ei(e,t,n,i){if(Qt(e)){const r=jn(e,t,n,i);return r&&ou(r)&&r.catch(s=>{Es(s,t,n)}),r}if(Bt(e)){const r=[];for(let s=0;s<e.length;s++)r.push(ei(e[s],t,n,i));return r}else({}).NODE_ENV!=="production"&&Gt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Es(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const o=t.proxy,l={}.NODE_ENV!=="production"?ws[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const v=s.ec;if(v){for(let y=0;y<v.length;y++)if(v[y](e,o,l)===!1)return}s=s.parent}const u=t.appContext.config.errorHandler;if(u){ki(),jn(u,null,10,[e,o,l]),Ti();return}}Yu(e,n,r,i)}function Yu(e,t,n,i=!0){if({}.NODE_ENV!=="production"){const r=ws[t];if(n&&ju(n),Gt(`Unhandled error${r?` during execution of ${r}`:""}`),n&&Bu(),i)throw e;console.error(e)}else console.error(e)}let dr=!1,Cs=!1;const je=[];let wn=0;const ni=[];let nn=null,En=0;const xa=Promise.resolve();let Ss=null;const Xu=100;function Ku(e){const t=Ss||xa;return e?t.then(this?e.bind(this):e):t}function Zu(e){let t=wn+1,n=je.length;for(;t<n;){const i=t+n>>>1,r=je[i],s=Ii(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function ks(e){(!je.length||!je.includes(e,dr&&e.allowRecurse?wn+1:wn))&&(e.id==null?je.push(e):je.splice(Zu(e.id),0,e),ba())}function ba(){!dr&&!Cs&&(Cs=!0,Ss=xa.then(Ea))}function wa(e){Bt(e)?ni.push(...e):(!nn||!nn.includes(e,e.allowRecurse?En+1:En))&&ni.push(e),ba()}function Qu(e){if(ni.length){const t=[...new Set(ni)].sort((n,i)=>Ii(n)-Ii(i));if(ni.length=0,nn){nn.push(...t);return}for(nn=t,{}.NODE_ENV!=="production"&&(e=e||new Map),En=0;En<nn.length;En++)({}).NODE_ENV!=="production"&&Ca(e,nn[En])||nn[En]();nn=null,En=0}}const Ii=e=>e.id==null?1/0:e.id,Ju=(e,t)=>{const n=Ii(e)-Ii(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ea(e){Cs=!1,dr=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),je.sort(Ju);const t={}.NODE_ENV!=="production"?n=>Ca(e,n):Ei;try{for(wn=0;wn<je.length;wn++){const n=je[wn];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&t(n))continue;jn(n,null,14)}}}finally{wn=0,je.length=0,Qu(e),dr=!1,Ss=null,(je.length||ni.length)&&Ea(e)}}function Ca(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Xu){const i=t.ownerInstance,r=i&&Vi(i.type);return Es(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const ii=new Set;({}).NODE_ENV!=="production"&&(Yo().__VUE_HMR_RUNTIME__={createRecord:Ts(th),rerender:Ts(eh),reload:Ts(nh)});const pr=new Map;function th(e,t){return pr.has(e)?!1:(pr.set(e,{initialDef:Ni(t),instances:new Set}),!0)}function Ni(e){return el(e)?e.__vccOpts:e}function eh(e,t){const n=pr.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(i=>{t&&(i.render=t,Ni(i.type).render=t),i.renderCache=[],i.effect.dirty=!0,i.update()}))}function nh(e,t){const n=pr.get(e);if(!n)return;t=Ni(t),Sa(n.initialDef,t);const i=[...n.instances];for(const r of i){const s=Ni(r.type);ii.has(s)||(s!==n.initialDef&&Sa(s,t),ii.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(ii.add(s),r.ceReload(t.styles),ii.delete(s)):r.parent?(r.parent.effect.dirty=!0,ks(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}wa(()=>{for(const r of i)ii.delete(Ni(r.type))})}function Sa(e,t){Le(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ts(e){return(t,n)=>{try{return e(t,n)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}function ih(e,...t){}const ka=Ta("component:added"),rh=Ta("component:updated");/*! #__NO_SIDE_EFFECTS__ */function Ta(e){return t=>{ih(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}let Jt=null,mr=null;function Pa(e){const t=Jt;return Jt=e,mr=e&&e.type.__scopeId||null,t}function Ps(e){mr=e}function Is(){mr=null}function ye(e,t=Jt,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Ha(-1);const s=Pa(t);let o;try{o=e(...r)}finally{Pa(s),i._d&&Ha(1)}return{}.NODE_ENV!=="production"&&rh(t),o};return i._n=!0,i._c=!0,i._d=!0,i}const gr="components";function sh(e,t){return Na(gr,e,!0,t)||e}const Ia=Symbol.for("v-ndc");function oh(e){return ve(e)?Na(gr,e,!1)||e:e||Ia}function Na(e,t,n=!0,i=!1){const r=Jt||Sn;if(r){const s=r.type;if(e===gr){const l=Vi(s,!1);if(l&&(l===t||l===rr(t)||l===Si(rr(t))))return s}const o=Oa(r[e]||s[e],t)||Oa(r.appContext[e],t);if(!o&&i)return s;if({}.NODE_ENV!=="production"&&n&&!o){const l=e===gr?`
19
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Gt(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else({}).NODE_ENV!=="production"&&Gt(`resolve${Si(e.slice(0,-1))} can only be used in render() or setup().`)}function Oa(e,t){return e&&(e[t]||e[rr(t)]||e[Si(rr(t))])}const Ma=e=>e.__isSuspense;function ah(e,t){t&&t.pendingBranch?Bt(e)?t.effects.push(...e):t.effects.push(e):wa(e)}const lh=Symbol.for("v-scx"),ch=()=>{{const e=Ch(lh);return e||{}.NODE_ENV!=="production"&&Gt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},vr={};function te(e,t,n){return{}.NODE_ENV!=="production"&&!Qt(t)&&Gt("`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."),Aa(e,t,n)}function Aa(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:o,onTrigger:l}=Ge){if(t&&s){const R=t;t=(...rt)=>{R(...rt),U()}}({}).NODE_ENV!=="production"&&i!==void 0&&typeof i=="number"&&Gt('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&&(n!==void 0&&Gt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Gt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&Gt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const u=R=>{Gt("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},v=Sn,y=R=>i===!0?R:Bn(R,i===!1?1:void 0);let g,m=!1,x=!1;if(Ce(e)?(g=()=>e.value,m=zn(e)):ti(e)?(g=()=>y(e),m=!0):Bt(e)?(x=!0,m=e.some(R=>ti(R)||zn(R)),g=()=>e.map(R=>{if(Ce(R))return R.value;if(ti(R))return y(R);if(Qt(R))return jn(R,v,2);({}).NODE_ENV!=="production"&&u(R)})):Qt(e)?t?g=()=>jn(e,v,2):g=()=>(I&&I(),ei(e,v,3,[k])):(g=Ei,{}.NODE_ENV!=="production"&&u(e)),t&&i){const R=g;g=()=>Bn(R())}let I,k=R=>{I=D.onStop=()=>{jn(R,v,4),I=D.onStop=void 0}},A;if(Vs)if(k=Ei,t?n&&ei(t,v,3,[g(),x?[]:void 0,k]):g(),r==="sync"){const R=ch();A=R.__watcherHandles||(R.__watcherHandles=[])}else return Ei;let $=x?new Array(e.length).fill(vr):vr;const P=()=>{if(!(!D.active||!D.dirty))if(t){const R=D.run();(i||m||(x?R.some((rt,ct)=>yn(rt,$[ct])):yn(R,$)))&&(I&&I(),ei(t,v,3,[R,$===vr?void 0:x&&$[0]===vr?[]:$,k]),$=R)}else D.run()};P.allowRecurse=!!t;let O;r==="sync"?O=P:r==="post"?O=()=>Li(P,v&&v.suspense):(P.pre=!0,v&&(P.id=v.uid),O=()=>ks(P));const D=new Zo(g,Ei,O),W=mu(),U=()=>{D.stop(),W&&iu(W.effects,D)};return{}.NODE_ENV!=="production"&&(D.onTrack=o,D.onTrigger=l),t?n?P():$=D.run():r==="post"?Li(D.run.bind(D),v&&v.suspense):D.run(),A&&A.push(U),U}function uh(e,t,n){const i=this.proxy,r=ve(e)?e.includes(".")?hh(i,e):()=>i[e]:e.bind(i,i);let s;Qt(t)?s=t:(s=t.handler,n=t);const o=Za(this),l=Aa(r,s.bind(i),n);return o(),l}function hh(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Bn(e,t,n=0,i){if(!oe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(i=i||new Set,i.has(e))return e;if(i.add(e),Ce(e))Bn(e.value,t,n,i);else if(Bt(e))for(let r=0;r<e.length;r++)Bn(e[r],t,n,i);else if(jo(e)||Rn(e))e.forEach(r=>{Bn(r,t,n,i)});else if(Uo(e))for(const r in e)Bn(e[r],t,n,i);return e}function Ns(e,t){if(Jt===null)return{}.NODE_ENV!=="production"&&Gt("withDirectives can only be used inside render functions."),e;const n=Ja(Jt)||Jt.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,o,l,u=Ge]=t[r];s&&(Qt(s)&&(s={mounted:s,updated:s}),s.deep&&Bn(o),i.push({dir:s,instance:n,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function La(e,t){e.shapeFlag&6&&e.component?La(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ut(e,t){return Qt(e)?(()=>Le({name:e.name},t,{setup:e}))():e}const Ra=e=>!!e.type.__asyncLoader,fh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ka(),i=n.ctx;if(!i.renderer)return()=>{const P=t.default&&t.default();return P&&P.length===1?P[0]:P};const r=new Map,s=new Set;let o=null;({}).NODE_ENV!=="production"&&(n.__v_cache=r);const l=n.suspense,{renderer:{p:u,m:v,um:y,o:{createElement:g}}}=i,m=g("div");i.activate=(P,O,D,W,U)=>{const R=P.component;v(P,O,D,0,l),u(R.vnode,P,O,D,R,l,W,P.slotScopeIds,U),Li(()=>{R.isDeactivated=!1,R.a&&Wo(R.a);const rt=P.props&&P.props.onVnodeMounted;rt&&Xa(rt,R.parent,P)},l),{}.NODE_ENV!=="production"&&ka(R)},i.deactivate=P=>{const O=P.component;v(P,m,null,1,l),Li(()=>{O.da&&Wo(O.da);const D=P.props&&P.props.onVnodeUnmounted;D&&Xa(D,O.parent,P),O.isDeactivated=!0},l),{}.NODE_ENV!=="production"&&ka(O)};function x(P){Os(P),y(P,n,l,!0)}function I(P){r.forEach((O,D)=>{const W=Vi(O.type);W&&(!P||!P(W))&&k(D)})}function k(P){const O=r.get(P);!o||!Ih(O,o)?x(O):o&&Os(o),r.delete(P),s.delete(P)}te(()=>[e.include,e.exclude],([P,O])=>{P&&I(D=>Oi(P,D)),O&&I(D=>!Oi(O,D))},{flush:"post",deep:!0});let A=null;const $=()=>{A!=null&&r.set(A,Ms(n.subTree))};return _r($),ph($),mh(()=>{r.forEach(P=>{const{subTree:O,suspense:D}=n,W=Ms(O);if(P.type===W.type&&P.key===W.key){Os(W);const U=W.component.da;U&&Li(U,D);return}x(P)})}),()=>{if(A=null,!t.default)return o=null;const P=t.default(),O=P[0];if(P.length>1)return{}.NODE_ENV!=="production"&&Gt("KeepAlive should contain exactly one component child."),o=null,P;if(!Di(O)||!(O.shapeFlag&4)&&!(O.shapeFlag&128))return o=null,O;let D=Ms(O);const W=D.type,U=Vi(Ra(D)?D.type.__asyncResolved||{}:W),{include:R,exclude:rt,max:ct}=e;if(R&&(!U||!Oi(R,U))||rt&&U&&Oi(rt,U))return o=D,O;const mt=D.key==null?W:D.key,ht=r.get(mt);return D.el&&(D=Fi(D),O.shapeFlag&128&&(O.ssContent=D)),A=mt,ht?(D.el=ht.el,D.component=ht.component,D.transition&&La(D,D.transition),D.shapeFlag|=512,s.delete(mt),s.add(mt)):(s.add(mt),ct&&s.size>parseInt(ct,10)&&k(s.values().next().value)),D.shapeFlag|=256,o=D,Ma(O.type)?O:D}}};function Oi(e,t){return Bt(e)?e.some(n=>Oi(n,t)):ve(e)?e.split(",").includes(t):su(e)?e.test(t):!1}function Os(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ms(e){return e.shapeFlag&128?e.ssContent:e}function dh(e,t,n=Sn,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ki();const l=Za(n),u=ei(t,n,e,o);return l(),Ti(),u});return i?r.unshift(s):r.push(s),s}else if({}.NODE_ENV!=="production"){const r=lu(ws[e].replace(/ hook$/,""));Gt(`${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const yr=e=>(t,n=Sn)=>(!Vs||e==="sp")&&dh(e,(...i)=>t(...i),n),_r=yr("m"),ph=yr("u"),mh=yr("bum"),Da=yr("um");function Cn(e,t,n,i){let r;const s=n&&n[i];if(Bt(e)||ve(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,s&&s[o])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&Gt(`The v-for range expect an integer value but got ${e}.`),r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,s&&s[o])}else if(oe(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,s&&s[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,u=o.length;l<u;l++){const v=o[l];r[l]=t(e[v],v,l,s&&s[l])}}else r=[];return n&&(n[i]=r),r}function ie(e,t,n={},i,r){if(Jt.isCE||Jt.parent&&Ra(Jt.parent)&&Jt.parent.isCE)return t!=="default"&&(n.name=t),Kt("slot",n,i&&i());let s=e[t];({}).NODE_ENV!=="production"&&s&&s.length>1&&(Gt("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."),s=()=>[]),s&&s._c&&(s._d=!1),dt();const o=s&&Fa(s(n)),l=pe(xe,{key:n.key||o&&o.key||`_${t}`},o||(i?i():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Fa(e){return e.some(t=>Di(t)?!(t.type===br||t.type===xe&&!Fa(t.children)):!0)?e:null}const As=e=>e?Mh(e)?Ja(e)||e.proxy:As(e.parent):null,Mi=Le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?hr(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?hr(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?hr(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?hr(e.refs):e.refs,$parent:e=>As(e.parent),$root:e=>As(e.root),$emit:e=>e.emit,$options:e=>xh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ks(e.update)}),$nextTick:e=>e.n||(e.n=Ku.bind(e.proxy)),$watch:e=>uh.bind(e)}),gh=e=>e==="_"||e==="$",Ls=(e,t)=>e!==Ge&&!e.__isScriptSetup&&ne(e,t),vh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:o,type:l,appContext:u}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let v;if(t[0]!=="$"){const x=o[t];if(x!==void 0)switch(x){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Ls(i,t))return o[t]=1,i[t];if(r!==Ge&&ne(r,t))return o[t]=2,r[t];if((v=e.propsOptions[0])&&ne(v,t))return o[t]=3,s[t];if(n!==Ge&&ne(n,t))return o[t]=4,n[t];o[t]=0}}const y=Mi[t];let g,m;if(y)return t==="$attrs"?ue(e.attrs,"get",""):{}.NODE_ENV!=="production"&&t==="$slots"&&ue(e,"get",t),y(e);if((g=l.__cssModules)&&(g=g[t]))return g;if(n!==Ge&&ne(n,t))return o[t]=4,n[t];if(m=u.config.globalProperties,ne(m,t))return m[t];({}).NODE_ENV!=="production"&&Jt&&(!ve(t)||t.indexOf("__v")!==0)&&(r!==Ge&&gh(t[0])&&ne(r,t)?Gt(`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.`):e===Jt&&Gt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return Ls(r,t)?(r[t]=n,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&ne(r,t)?(Gt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==Ge&&ne(i,t)?(i[t]=n,!0):ne(e.props,t)?({}.NODE_ENV!=="production"&&Gt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&Gt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},o){let l;return!!n[o]||e!==Ge&&ne(e,o)||Ls(t,o)||(l=s[0])&&ne(l,o)||ne(i,o)||ne(Mi,o)||ne(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};({}).NODE_ENV!=="production"&&(vh.ownKeys=e=>(Gt("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(e)));function yh(){return _h().slots}function _h(){const e=Ka();return{}.NODE_ENV!=="production"&&!e&&Gt("useContext() called without active instance."),e.setupContext||(e.setupContext=Lh(e))}function Va(e){return Bt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function xh(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,l=s.get(t);let u;return l?u=l:!r.length&&!n&&!i?u=t:(u={},r.length&&r.forEach(v=>xr(u,v,o,!0)),xr(u,t,o)),oe(t)&&s.set(t,u),u}function xr(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&xr(e,s,n,!0),r&&r.forEach(o=>xr(e,o,n,!0));for(const o in t)if(i&&o==="expose")({}).NODE_ENV!=="production"&&Gt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=bh[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const bh={data:$a,props:Ga,emits:Ga,methods:Ai,computed:Ai,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Ai,directives:Ai,watch:Eh,provide:$a,inject:wh};function $a(e,t){return t?e?function(){return Le(Qt(e)?e.call(this,this):e,Qt(t)?t.call(this,this):t)}:t:e}function wh(e,t){return Ai(za(e),za(t))}function za(e){if(Bt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _e(e,t){return e?[...new Set([].concat(e,t))]:t}function Ai(e,t){return e?Le(Object.create(null),e,t):t}function Ga(e,t){return e?Bt(e)&&Bt(t)?[...new Set([...e,...t])]:Le(Object.create(null),Va(e),Va(t??{})):t}function Eh(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const i in t)n[i]=_e(e[i],t[i]);return n}let ja=null;function Ch(e,t,n=!1){const i=Sn||Jt;if(i||ja){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:ja._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Qt(t)?t.call(i&&i.proxy):t;({}).NODE_ENV!=="production"&&Gt(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&Gt("inject() can only be used inside setup() or functional components.")}const Sh={},Ba=e=>Object.getPrototypeOf(e)===Sh,Li=ah,kh=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),Th=Symbol.for("v-txt"),br=Symbol.for("v-cmt"),wr=[];let Be=null;function dt(e=!1){wr.push(Be=e?null:[])}function Ph(){wr.pop(),Be=wr[wr.length-1]||null}let Ri=1;function Ha(e){Ri+=e}function Ua(e){return e.dynamicChildren=Ri>0?Be||eu:null,Ph(),Ri>0&&Be&&Be.push(e),e}function _t(e,t,n,i,r,s){return Ua(B(e,t,n,i,r,s,!0))}function pe(e,t,n,i,r){return Ua(Kt(e,t,n,i,r,!0))}function Di(e){return e?e.__v_isVNode===!0:!1}function Ih(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&ii.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Nh=(...e)=>qa(...e),Wa=({key:e})=>e??null,Er=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Ce(e)||Qt(e)?{i:Jt,r:e,k:t,f:!!n}:e:null);function B(e,t=null,n=null,i=0,r=null,s=e===xe?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wa(t),ref:t&&Er(t),scopeId:mr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Jt};return l?(Rs(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=ve(n)?8:16),{}.NODE_ENV!=="production"&&u.key!==u.key&&Gt("VNode created with invalid key (NaN). VNode type:",u.type),Ri>0&&!o&&Be&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Be.push(u),u}const Kt={}.NODE_ENV!=="production"?Nh:qa;function qa(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Ia)&&({}.NODE_ENV!=="production"&&!e&&Gt(`Invalid vnode type when creating vnode: ${e}.`),e=br),Di(e)){const l=Fi(e,t,!0);return n&&Rs(l,n),Ri>0&&!s&&Be&&(l.shapeFlag&6?Be[Be.indexOf(e)]=l:Be.push(l)),l.patchFlag|=-2,l}if(el(e)&&(e=e.__vccOpts),t){t=Oh(t);let{class:l,style:u}=t;l&&!ve(l)&&(t.class=Wt(l)),oe(u)&&(xs(u)&&!Bt(u)&&(u=Le({},u)),t.style=Ot(u))}const o=ve(e)?1:Ma(e)?128:kh(e)?64:oe(e)?4:Qt(e)?2:0;return{}.NODE_ENV!=="production"&&o&4&&xs(e)&&(e=Rt(e),Gt("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`.",`
20
- Component that was made reactive: `,e)),B(e,t,n,i,r,o,s,!0)}function Oh(e){return e?xs(e)||Ba(e)?Le({},e):e:null}function Fi(e,t,n=!1){const{props:i,ref:r,patchFlag:s,children:o}=e,l=t?Ds(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Wa(l),ref:t&&t.ref?n&&r?Bt(r)?r.concat(Er(t)):[r,Er(t)]:Er(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&s===-1&&Bt(o)?o.map(Ya):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fi(e.ssContent),ssFallback:e.ssFallback&&Fi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ya(e){const t=Fi(e);return Bt(e.children)&&(t.children=e.children.map(Ya)),t}function rn(e=" ",t=0){return Kt(Th,null,e,t)}function he(e="",t=!1){return t?(dt(),pe(br,null,e)):Kt(br,null,e)}function Rs(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Bt(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),Rs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ba(t)?t._ctx=Jt:r===3&&Jt&&(Jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qt(t)?(t={default:t,_ctx:Jt},n=32):(t=String(t),i&64?(n=16,t=[rn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ds(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Wt([t.class,i.class]));else if(r==="style")t.style=Ot([t.style,i.style]);else if(nu(r)){const s=t[r],o=i[r];o&&s!==o&&!(Bt(s)&&s.includes(o))&&(t[r]=s?[].concat(s,o):o)}else r!==""&&(t[r]=i[r])}return t}function Xa(e,t,n,i=null){ei(e,t,7,[n,i])}let Sn=null;const Ka=()=>Sn||Jt;let Fs;{const e=Yo(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),s=>{r.length>1?r.forEach(o=>o(s)):r[0](s)}};Fs=t("__VUE_INSTANCE_SETTERS__",n=>Sn=n),t("__VUE_SSR_SETTERS__",n=>Vs=n)}const Za=e=>{const t=Sn;return Fs(e),e.scope.on(),()=>{e.scope.off(),Fs(t)}};function Mh(e){return e.vnode.shapeFlag&4}let Vs=!1;const Qa={}.NODE_ENV!=="production"?{get(e,t){return ue(e,"get",""),e[t]},set(){return Gt("setupContext.attrs is readonly."),!1},deleteProperty(){return Gt("setupContext.attrs is readonly."),!1}}:{get(e,t){return ue(e,"get",""),e[t]}};function Ah(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return ue(e,"get","$slots"),t[n]}}))}function Lh(e){const t=n=>{if({}.NODE_ENV!=="production"&&(e.exposed&&Gt("expose() should be called only once per setup()."),n!=null)){let i=typeof n;i==="object"&&(Bt(n)?i="array":Ce(n)&&(i="ref")),i!=="object"&&Gt(`expose() should be passed a plain object, received ${i}.`)}e.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,Qa))},get slots(){return Ah(e)},get emit(){return(i,...r)=>e.emit(i,...r)},expose:t})}else return{attrs:new Proxy(e.attrs,Qa),slots:e.slots,emit:e.emit,expose:t}}function Ja(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Gu(Ru(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mi)return Mi[n](e)},has(t,n){return n in t||n in Mi}}))}const Rh=/(?:^|[-_])(\w)/g,Dh=e=>e.replace(Rh,t=>t.toUpperCase()).replace(/[-_]/g,"");function Vi(e,t=!0){return Qt(e)?e.displayName||e.name:e.name||t&&e.__name}function tl(e,t,n=!1){let i=Vi(t);if(!i&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(i=r[1])}if(!i&&e&&e.parent){const r=s=>{for(const o in s)if(s[o]===t)return o};i=r(e.components||e.parent.type.components)||r(e.appContext.components)}return i?Dh(i):n?"App":"Anonymous"}function el(e){return Qt(e)&&"__vccOpts"in e}function nl(e,t,n){const i=arguments.length;return i===2?oe(t)&&!Bt(t)?Di(t)?Kt(e,null,[t]):Kt(e,t):Kt(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Di(n)&&(n=[n]),Kt(e,t,n))}function Fh(){if({}.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},i={style:"color:#eb2f96"},r={header(g){return oe(g)?g.__isVue?["div",e,"VueInstance"]:Ce(g)?["div",{},["span",e,y(g)],"<",l(g.value),">"]:ti(g)?["div",{},["span",e,zn(g)?"ShallowReactive":"Reactive"],"<",l(g),`>${$n(g)?" (readonly)":""}`]:$n(g)?["div",{},["span",e,zn(g)?"ShallowReadonly":"Readonly"],"<",l(g),">"]:null:null},hasBody(g){return g&&g.__isVue},body(g){if(g&&g.__isVue)return["div",{},...s(g.$)]}};function s(g){const m=[];g.type.props&&g.props&&m.push(o("props",Rt(g.props))),g.setupState!==Ge&&m.push(o("setup",g.setupState)),g.data!==Ge&&m.push(o("data",Rt(g.data)));const x=u(g,"computed");x&&m.push(o("computed",x));const I=u(g,"inject");return I&&m.push(o("injected",I)),m.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:g}]]),m}function o(g,m){return m=Le({},m),Object.keys(m).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},g],["div",{style:"padding-left:1.25em"},...Object.keys(m).map(x=>["div",{},["span",i,x+": "],l(m[x],!1)])]]:["span",{}]}function l(g,m=!0){return typeof g=="number"?["span",t,g]:typeof g=="string"?["span",n,JSON.stringify(g)]:typeof g=="boolean"?["span",i,g]:oe(g)?["object",{object:m?Rt(g):g}]:["span",n,String(g)]}function u(g,m){const x=g.type;if(Qt(x))return;const I={};for(const k in g.ctx)v(x,k,m)&&(I[k]=g.ctx[k]);return I}function v(g,m,x){const I=g[x];if(Bt(I)&&I.includes(m)||oe(I)&&m in I||g.extends&&v(g.extends,m,x)||g.mixins&&g.mixins.some(k=>v(k,m,x)))return!0}function y(g){return zn(g)?"ShallowRef":g.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}/**
15
+ **/const kn=[];function Qs(t){kn.push(t)}function Js(){kn.pop()}function B(t,...e){Bt();const n=kn.length?kn[kn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=yh();if(s)Yt(s,n,11,[t+e.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${gi(n,r.type)}>`).join(`
16
+ `),i]);else{const r=[`[Vue warn]: ${t}`,...e];i.length&&r.push(`
17
+ `,...bh(i)),console.warn(...r)}Ut()}function yh(){let t=kn[kn.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function bh(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
18
+ `],...xh(n))}),e}function xh({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,i=` at <${gi(t.component,t.type,s)}`,r=">"+n;return t.props?[i,...wh(t.props),r]:[i+r]}function wh(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...Ra(s,t[s]))}),n.length>3&&e.push(" ..."),e}function Ra(t,e,n){return ze(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Ze(e)?(e=Ra(t,me(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):ae(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=me(e),n?e:[`${t}=`,e])}const gr={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 Yt(t,e,n,s){try{return s?t(...s):t()}catch(i){ns(i,e,n)}}function Ot(t,e,n,s){if(ae(t)){const i=Yt(t,e,n,s);return i&&tr(i)&&i.catch(r=>{ns(r,e,n)}),i}if(re(t)){const i=[];for(let r=0;r<t.length;r++)i.push(Ot(t[r],e,n,s));return i}else({}).NODE_ENV!=="production"&&B(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function ns(t,e,n,s=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a={}.NODE_ENV!=="production"?gr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,o,a)===!1)return}r=r.parent}const l=e.appContext.config.errorHandler;if(l){Bt(),Yt(l,null,10,[t,o,a]),Ut();return}}Eh(t,n,i,s)}function Eh(t,e,n,s=!0){if({}.NODE_ENV!=="production"){const i=gr[e];if(n&&Qs(n),B(`Unhandled error${i?` during execution of ${i}`:""}`),n&&Js(),s)throw t;console.error(t)}else console.error(t)}let ss=!1,_r=!1;const it=[];let Ft=0;const jn=[];let Xt=null,hn=0;const $a=Promise.resolve();let vr=null;const Ch=100;function La(t){const e=vr||$a;return t?e.then(this?t.bind(this):t):e}function Th(t){let e=Ft+1,n=it.length;for(;e<n;){const s=e+n>>>1,i=it[s],r=is(i);r<t||r===t&&i.pre?e=s+1:n=s}return e}function ei(t){(!it.length||!it.includes(t,ss&&t.allowRecurse?Ft+1:Ft))&&(t.id==null?it.push(t):it.splice(Th(t.id),0,t),Fa())}function Fa(){!ss&&!_r&&(_r=!0,vr=$a.then(ja))}function Sh(t){const e=it.indexOf(t);e>Ft&&it.splice(e,1)}function Va(t){re(t)?jn.push(...t):(!Xt||!Xt.includes(t,t.allowRecurse?hn+1:hn))&&jn.push(t),Fa()}function Ga(t,e,n=ss?Ft+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);n<it.length;n++){const s=it[n];if(s&&s.pre){if(t&&s.id!==t.uid||{}.NODE_ENV!=="production"&&yr(e,s))continue;it.splice(n,1),n--,s()}}}function za(t){if(jn.length){const e=[...new Set(jn)].sort((n,s)=>is(n)-is(s));if(jn.length=0,Xt){Xt.push(...e);return}for(Xt=e,{}.NODE_ENV!=="production"&&(t=t||new Map),hn=0;hn<Xt.length;hn++)({}).NODE_ENV!=="production"&&yr(t,Xt[hn])||Xt[hn]();Xt=null,hn=0}}const is=t=>t.id==null?1/0:t.id,kh=(t,e)=>{const n=is(t)-is(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function ja(t){_r=!1,ss=!0,{}.NODE_ENV!=="production"&&(t=t||new Map),it.sort(kh);const e={}.NODE_ENV!=="production"?n=>yr(t,n):Ge;try{for(Ft=0;Ft<it.length;Ft++){const n=it[Ft];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&e(n))continue;Yt(n,null,14)}}}finally{Ft=0,it.length=0,za(t),ss=!1,vr=null,(it.length||jn.length)&&ja(t)}}function yr(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>Ch){const s=e.ownerInstance,i=s&&Wr(s.type);return ns(`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 t.set(e,n+1)}}let Pn=!1;const Hn=new Set;({}).NODE_ENV!=="production"&&(ir().__VUE_HMR_RUNTIME__={createRecord:br(Ha),rerender:br(Oh),reload:br(Ih)});const Nn=new Map;function Ph(t){const e=t.type.__hmrId;let n=Nn.get(e);n||(Ha(e,t.type),n=Nn.get(e)),n.instances.add(t)}function Nh(t){Nn.get(t.type.__hmrId).instances.delete(t)}function Ha(t,e){return Nn.has(t)?!1:(Nn.set(t,{initialDef:rs(e),instances:new Set}),!0)}function rs(t){return Fl(t)?t.__vccOpts:t}function Oh(t,e){const n=Nn.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(s=>{e&&(s.render=e,rs(s.type).render=e),s.renderCache=[],Pn=!0,s.effect.dirty=!0,s.update(),Pn=!1}))}function Ih(t,e){const n=Nn.get(t);if(!n)return;e=rs(e),Ba(n.initialDef,e);const s=[...n.instances];for(const i of s){const r=rs(i.type);Hn.has(r)||(r!==n.initialDef&&Ba(r,e),Hn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Hn.add(r),i.ceReload(e.styles),Hn.delete(r)):i.parent?(i.parent.effect.dirty=!0,ei(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.")}Va(()=>{for(const i of s)Hn.delete(rs(i.type))})}function Ba(t,e){Le(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function br(t){return(e,n)=>{try{return t(e,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Vt,os=[],xr=!1;function as(t,...e){Vt?Vt.emit(t,...e):xr||os.push({event:t,args:e})}function Ua(t,e){var n,s;Vt=t,Vt?(Vt.enabled=!0,os.forEach(({event:i,args:r})=>Vt.emit(i,...r)),os=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Ua(r,e)}),setTimeout(()=>{Vt||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,xr=!0,os=[])},3e3)):(xr=!0,os=[])}function Mh(t,e){as("app:init",t,e,{Fragment:ke,Text:ps,Comment:bt,Static:hi})}function Dh(t){as("app:unmount",t)}const Ah=wr("component:added"),Wa=wr("component:updated"),Rh=wr("component:removed"),$h=t=>{Vt&&typeof Vt.cleanupBuffer=="function"&&!Vt.cleanupBuffer(t)&&Rh(t)};/*! #__NO_SIDE_EFFECTS__ */function wr(t){return e=>{as(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const Lh=Ya("perf:start"),Fh=Ya("perf:end");function Ya(t){return(e,n,s)=>{as(t,e.appContext.app,e.uid,e,n,s)}}function Vh(t,e,n){as("component:emit",t.appContext.app,t,e,n)}function Gh(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||Se;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=t;if(u)if(!(e in u))(!h||!(wn(e)in h))&&B(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${wn(e)}" prop.`);else{const f=u[e];ae(f)&&(f(...n)||B(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=n;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=s[u]||Se;f&&(i=n.map(d=>ze(d)?d.trim():d)),h&&(i=n.map(Fu))}if({}.NODE_ENV!=="production"&&Vh(t,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[wn(u)]&&B(`Event "${u}" is emitted in component ${gi(t,t.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${on(e)}" instead of "${e}".`)}let a,l=s[a=wn(e)]||s[a=wn($t(e))];!l&&r&&(l=s[a=wn(on(e))]),l&&Ot(l,t,6,i);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ot(c,t,6,i)}}function Xa(t,e,n=!1){const s=e.emitsCache,i=s.get(t);if(i!==void 0)return i;const r=t.emits;let o={},a=!1;if(!ae(t)){const l=c=>{const u=Xa(c,e,!0);u&&(a=!0,Le(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(Ee(t)&&s.set(t,null),null):(re(r)?r.forEach(l=>o[l]=null):Le(o,r),Ee(t)&&s.set(t,o),o)}function ti(t,e){return!t||!Qn(e)?!1:(e=e.slice(2).replace(/Once$/,""),_e(t,e[0].toLowerCase()+e.slice(1))||_e(t,on(e))||_e(t,e))}let je=null,ni=null;function si(t){const e=je;return je=t,ni=t&&t.type.__scopeId||null,e}function ls(t){ni=t}function cs(){ni=null}function Pe(t,e=je,n){if(!e||t._n)return t;const s=(...i)=>{s._d&&Sl(-1);const r=si(e);let o;try{o=t(...i)}finally{si(r),s._d&&Sl(1)}return{}.NODE_ENV!=="production"&&Wa(e),o};return s._n=!0,s._c=!0,s._d=!0,s}let Er=!1;function ii(){Er=!0}function Cr(t){const{type:e,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:v}=t,y=si(t);let E,C;({}).NODE_ENV!=="production"&&(Er=!1);try{if(n.shapeFlag&4){const $=i||s,O={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy($,{get(R,le,ue){return B(`Property '${String(le)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(R,le,ue)}}):$;E=Mt(c.call(O,$,u,{}.NODE_ENV!=="production"?Wt(h):h,d,f,m)),C=a}else{const $=e;({}).NODE_ENV!=="production"&&a===h&&ii(),E=Mt($.length>1?$({}.NODE_ENV!=="production"?Wt(h):h,{}.NODE_ENV!=="production"?{get attrs(){return ii(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):$({}.NODE_ENV!=="production"?Wt(h):h,null)),C=e.props?a:zh(a)}}catch($){ms.length=0,ns($,t,1),E=oe(bt)}let w=E,S;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([w,S]=qa(E)),C&&v!==!1){const $=Object.keys(C),{shapeFlag:O}=w;if($.length){if(O&7)r&&$.some(Gs)&&(C=jh(C,r)),w=pn(w,C);else if({}.NODE_ENV!=="production"&&!Er&&w.type!==bt){const R=Object.keys(a),le=[],ue=[];for(let pe=0,De=R.length;pe<De;pe++){const Oe=R[pe];Qn(Oe)?Gs(Oe)||le.push(Oe[2].toLowerCase()+Oe.slice(3)):ue.push(Oe)}ue.length&&B(`Extraneous non-props attributes (${ue.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),le.length&&B(`Extraneous non-emits event listeners (${le.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 n.dirs&&({}.NODE_ENV!=="production"&&!Ka(w)&&B("Runtime directive used on component with non-element root node. The directives will not function as intended."),w=pn(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&({}.NODE_ENV!=="production"&&!Ka(w)&&B("Component inside <Transition> renders non-element root node that cannot be animated."),w.transition=n.transition),{}.NODE_ENV!=="production"&&S?S(w):E=w,si(y),E}const qa=t=>{const e=t.children,n=t.dynamicChildren,s=Tr(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return qa(s)}else return[t,void 0];const i=e.indexOf(s),r=n?n.indexOf(s):-1,o=a=>{e[i]=a,n&&(r>-1?n[r]=a:a.patchFlag>0&&(t.dynamicChildren=[...n,a]))};return[Mt(s),o]};function Tr(t,e=!0){let n;for(let s=0;s<t.length;s++){const i=t[s];if(Bn(i)){if(i.type!==bt||i.children==="v-if"){if(n)return;if(n=i,{}.NODE_ENV!=="production"&&e&&n.patchFlag>0&&n.patchFlag&2048)return Tr(n.children)}}else return}return n}const zh=t=>{let e;for(const n in t)(n==="class"||n==="style"||Qn(n))&&((e||(e={}))[n]=t[n]);return e},jh=(t,e)=>{const n={};for(const s in t)(!Gs(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n},Ka=t=>t.shapeFlag&7||t.type===bt;function Hh(t,e,n){const{props:s,children:i,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Pn||e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Za(s,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==s[f]&&!ti(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?Za(s,o,c):!0:!!o;return!1}function Za(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(e[r]!==t[r]&&!ti(n,r))return!0}return!1}function Bh({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const Sr="components";function Uh(t,e){return Yh(Sr,t,!0,e)||t}const Wh=Symbol.for("v-ndc");function Yh(t,e,n=!0,s=!1){const i=je||Ue;if(i){const r=i.type;if(t===Sr){const a=Wr(r,!1);if(a&&(a===e||a===$t(e)||a===xn($t(e))))return r}const o=Qa(i[t]||r[t],e)||Qa(i.appContext[t],e);if(!o&&s)return r;if({}.NODE_ENV!=="production"&&n&&!o){const a=t===Sr?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";B(`Failed to resolve ${t.slice(0,-1)}: ${e}${a}`)}return o}else({}).NODE_ENV!=="production"&&B(`resolve${xn(t.slice(0,-1))} can only be used in render() or setup().`)}function Qa(t,e){return t&&(t[e]||t[$t(e)]||t[xn($t(e))])}const Xh=t=>t.__isSuspense;function qh(t,e){e&&e.pendingBranch?re(t)?e.effects.push(...t):e.effects.push(t):Va(t)}const Kh=Symbol.for("v-scx"),Zh=()=>{{const t=li(Kh);return t||{}.NODE_ENV!=="production"&&B("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function Ja(t,e){return kr(t,null,e)}const ri={};function ve(t,e,n){return{}.NODE_ENV!=="production"&&!ae(e)&&B("`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."),kr(t,e,n)}function kr(t,e,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=Se){if(e&&r){const R=e;e=(...le)=>{R(...le),O()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&B('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(n!==void 0&&B('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&B('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&B('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=R=>{B("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Ue,u=R=>s===!0?R:On(R,s===!1?1:void 0);let h,f=!1,d=!1;if(Ze(t)?(h=()=>t.value,f=Sn(t)):zn(t)?(h=()=>u(t),f=!0):re(t)?(d=!0,f=t.some(R=>zn(R)||Sn(R)),h=()=>t.map(R=>{if(Ze(R))return R.value;if(zn(R))return u(R);if(ae(R))return Yt(R,c,2);({}).NODE_ENV!=="production"&&l(R)})):ae(t)?e?h=()=>Yt(t,c,2):h=()=>(m&&m(),Ot(t,c,3,[v])):(h=Ge,{}.NODE_ENV!=="production"&&l(t)),e&&s){const R=h;h=()=>On(R())}let m,v=R=>{m=S.onStop=()=>{Yt(R,c,4),m=S.onStop=void 0}},y;if(pi)if(v=Ge,e?n&&Ot(e,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const R=Zh();y=R.__watcherHandles||(R.__watcherHandles=[])}else return Ge;let E=d?new Array(t.length).fill(ri):ri;const C=()=>{if(!(!S.active||!S.dirty))if(e){const R=S.run();(s||f||(d?R.some((le,ue)=>an(le,E[ue])):an(R,E)))&&(m&&m(),Ot(e,c,3,[R,E===ri?void 0:d&&E[0]===ri?[]:E,v]),E=R)}else S.run()};C.allowRecurse=!!e;let w;i==="sync"?w=C:i==="post"?w=()=>yt(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),w=()=>ei(C));const S=new or(h,Ge,w),$=Wu(),O=()=>{S.stop(),$&&er($.effects,S)};return{}.NODE_ENV!=="production"&&(S.onTrack=o,S.onTrigger=a),e?n?C():E=S.run():i==="post"?yt(S.run.bind(S),c&&c.suspense):S.run(),y&&y.push(O),O}function Qh(t,e,n){const s=this.proxy,i=ze(t)?t.includes(".")?el(s,t):()=>s[t]:t.bind(s,s);let r;ae(e)?r=e:(r=e.handler,n=e);const o=vs(this),a=kr(i,r.bind(s),n);return o(),a}function el(t,e){const n=e.split(".");return()=>{let s=t;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function On(t,e,n=0,s){if(!Ee(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),Ze(t))On(t.value,e,n,s);else if(re(t))for(let i=0;i<t.length;i++)On(t[i],e,n,s);else if(sa(t)||yn(t))t.forEach(i=>{On(i,e,n,s)});else if(ra(t))for(const i in t)On(t[i],e,n,s);return t}function tl(t){Ru(t)&&B("Do not use built-in directive ids as custom directive id: "+t)}function Pr(t,e){if(je===null)return{}.NODE_ENV!=="production"&&B("withDirectives can only be used inside render functions."),t;const n=mi(je)||je.proxy,s=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[r,o,a,l=Se]=e[i];r&&(ae(r)&&(r={mounted:r,updated:r}),r.deep&&On(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function In(t,e,n,s){const i=t.dirs,r=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(Bt(),Ot(l,n,8,[t.el,a,t,e]),Ut())}}/*! #__NO_SIDE_EFFECTS__ */function J(t,e){return ae(t)?(()=>Le({name:t.name},e,{setup:t}))():t}const us=t=>!!t.type.__asyncLoader,Nr=t=>t.type.__isKeepAlive;function Jh(t,e){nl(t,"a",e)}function ef(t,e){nl(t,"da",e)}function nl(t,e,n=Ue){const s=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(oi(e,s,n),n){let i=n.parent;for(;i&&i.parent;)Nr(i.parent.vnode)&&tf(s,e,n,i),i=i.parent}}function tf(t,e,n,s){const i=oi(e,t,s,!0);Ve(()=>{er(s[e],i)},n)}function oi(t,e,n=Ue,s=!1){if(n){const i=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Bt();const a=vs(n),l=Ot(e,n,t,o);return a(),Ut(),l});return s?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=wn(gr[t].replace(/ hook$/,""));B(`${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 qt=t=>(e,n=Ue)=>(!pi||t==="sp")&&oi(t,(...s)=>e(...s),n),nf=qt("bm"),fn=qt("m"),sf=qt("bu"),rf=qt("u"),of=qt("bum"),Ve=qt("um"),af=qt("sp"),lf=qt("rtg"),cf=qt("rtc");function uf(t,e=Ue){oi("ec",t,e)}function ct(t,e,n,s){let i;const r=n&&n[s];if(re(t)||ze(t)){i=new Array(t.length);for(let o=0,a=t.length;o<a;o++)i[o]=e(t[o],o,void 0,r&&r[o])}else if(typeof t=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(t)&&B(`The v-for range expect an integer value but got ${t}.`),i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,r&&r[o])}else if(Ee(t))if(t[Symbol.iterator])i=Array.from(t,(o,a)=>e(o,a,void 0,r&&r[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=e(t[c],c,a,r&&r[a])}}else i=[];return n&&(n[s]=i),i}function Re(t,e,n={},s,i){if(je.isCE||je.parent&&us(je.parent)&&je.parent.isCE)return e!=="default"&&(n.name=e),oe("slot",n,s&&s());let r=t[e];({}).NODE_ENV!=="production"&&r&&r.length>1&&(B("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),D();const o=r&&sl(r(n)),a=Qe(ke,{key:n.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&t._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function sl(t){return t.some(e=>Bn(e)?!(e.type===bt||e.type===ke&&!sl(e.children)):!0)?t:null}const Or=t=>t?Dl(t)?mi(t)||t.proxy:Or(t.parent):null,Mn=Le(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>({}).NODE_ENV!=="production"?Wt(t.props):t.props,$attrs:t=>({}).NODE_ENV!=="production"?Wt(t.attrs):t.attrs,$slots:t=>({}).NODE_ENV!=="production"?Wt(t.slots):t.slots,$refs:t=>({}).NODE_ENV!=="production"?Wt(t.refs):t.refs,$parent:t=>Or(t.parent),$root:t=>Or(t.root),$emit:t=>t.emit,$options:t=>Ar(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,ei(t.update)}),$nextTick:t=>t.n||(t.n=La.bind(t.proxy)),$watch:t=>Qh.bind(t)}),Ir=t=>t==="_"||t==="$",Mr=(t,e)=>t!==Se&&!t.__isScriptSetup&&_e(t,e),il={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=t;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return s[e];case 2:return i[e];case 4:return n[e];case 3:return r[e]}else{if(Mr(s,e))return o[e]=1,s[e];if(i!==Se&&_e(i,e))return o[e]=2,i[e];if((c=t.propsOptions[0])&&_e(c,e))return o[e]=3,r[e];if(n!==Se&&_e(n,e))return o[e]=4,n[e];Dr&&(o[e]=0)}}const u=Mn[e];let h,f;if(u)return e==="$attrs"?(Ke(t.attrs,"get",""),{}.NODE_ENV!=="production"&&ii()):{}.NODE_ENV!=="production"&&e==="$slots"&&Ke(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==Se&&_e(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,_e(f,e))return f[e];({}).NODE_ENV!=="production"&&je&&(!ze(e)||e.indexOf("__v")!==0)&&(i!==Se&&Ir(e[0])&&_e(i,e)?B(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===je&&B(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:s,setupState:i,ctx:r}=t;return Mr(i,e)?(i[e]=n,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&_e(i,e)?(B(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==Se&&_e(s,e)?(s[e]=n,!0):_e(t.props,e)?({}.NODE_ENV!=="production"&&B(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?({}.NODE_ENV!=="production"&&B(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:n}):r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||t!==Se&&_e(t,o)||Mr(e,o)||(a=r[0])&&_e(a,o)||_e(s,o)||_e(Mn,o)||_e(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:_e(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};({}).NODE_ENV!=="production"&&(il.ownKeys=t=>(B("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(t)));function hf(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Mn).forEach(n=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:()=>Mn[n](t),set:Ge})}),e}function ff(t){const{ctx:e,propsOptions:[n]}=t;n&&Object.keys(n).forEach(s=>{Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>t.props[s],set:Ge})})}function df(t){const{ctx:e,setupState:n}=t;Object.keys(me(n)).forEach(s=>{if(!n.__isScriptSetup){if(Ir(s[0])){B(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:Ge})}})}function pf(){return mf().slots}function mf(){const t=Il();return{}.NODE_ENV!=="production"&&!t&&B("useContext() called without active instance."),t.setupContext||(t.setupContext=Ll(t))}function rl(t){return re(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function gf(){const t=Object.create(null);return(e,n)=>{t[n]?B(`${e} property "${n}" is already defined in ${t[n]}.`):t[n]=e}}let Dr=!0;function _f(t){const e=Ar(t),n=t.proxy,s=t.ctx;Dr=!1,e.beforeCreate&&ol(e.beforeCreate,t,"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:y,beforeDestroy:E,beforeUnmount:C,destroyed:w,unmounted:S,render:$,renderTracked:O,renderTriggered:R,errorCaptured:le,serverPrefetch:ue,expose:pe,inheritAttrs:De,components:Oe,directives:at,filters:lt}=e,We={}.NODE_ENV!=="production"?gf():null;if({}.NODE_ENV!=="production"){const[he]=t.propsOptions;if(he)for(const M in he)We("Props",M)}if(c&&vf(c,s,We),o)for(const he in o){const M=o[he];ae(M)?({}.NODE_ENV!=="production"?Object.defineProperty(s,he,{value:M.bind(n),configurable:!0,enumerable:!0,writable:!0}):s[he]=M.bind(n),{}.NODE_ENV!=="production"&&We("Methods",he)):{}.NODE_ENV!=="production"&&B(`Method "${he}" has type "${typeof M}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!ae(i)&&B("The data option must be a function. Plain object usage is no longer supported.");const he=i.call(n,n);if({}.NODE_ENV!=="production"&&tr(he)&&B("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ee(he))({}).NODE_ENV!=="production"&&B("data() should return an object.");else if(t.data=st(he),{}.NODE_ENV!=="production")for(const M in he)We("Data",M),Ir(M[0])||Object.defineProperty(s,M,{configurable:!0,enumerable:!0,get:()=>he[M],set:Ge})}if(Dr=!0,r)for(const he in r){const M=r[he],Y=ae(M)?M.bind(n,n):ae(M.get)?M.get.bind(n,n):Ge;({}).NODE_ENV!=="production"&&Y===Ge&&B(`Computed property "${he}" has no getter.`);const j=!ae(M)&&ae(M.set)?M.set.bind(n):{}.NODE_ENV!=="production"?()=>{B(`Write operation failed: computed property "${he}" is readonly.`)}:Ge,de=td({get:Y,set:j});Object.defineProperty(s,he,{enumerable:!0,configurable:!0,get:()=>de.value,set:fe=>de.value=fe}),{}.NODE_ENV!=="production"&&We("Computed",he)}if(a)for(const he in a)al(a[he],s,n,he);if(l){const he=ae(l)?l.call(n):l;Reflect.ownKeys(he).forEach(M=>{Cf(M,he[M])})}u&&ol(u,t,"c");function Te(he,M){re(M)?M.forEach(Y=>he(Y.bind(n))):M&&he(M.bind(n))}if(Te(nf,h),Te(fn,f),Te(sf,d),Te(rf,m),Te(Jh,v),Te(ef,y),Te(uf,le),Te(cf,O),Te(lf,R),Te(of,C),Te(Ve,S),Te(af,ue),re(pe))if(pe.length){const he=t.exposed||(t.exposed={});pe.forEach(M=>{Object.defineProperty(he,M,{get:()=>n[M],set:Y=>n[M]=Y})})}else t.exposed||(t.exposed={});$&&t.render===Ge&&(t.render=$),De!=null&&(t.inheritAttrs=De),Oe&&(t.components=Oe),at&&(t.directives=at)}function vf(t,e,n=Ge){re(t)&&(t=Rr(t));for(const s in t){const i=t[s];let r;Ee(i)?"default"in i?r=li(i.from||s,i.default,!0):r=li(i.from||s):r=li(i),Ze(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r,{}.NODE_ENV!=="production"&&n("Inject",s)}}function ol(t,e,n){Ot(re(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function al(t,e,n,s){const i=s.includes(".")?el(n,s):()=>n[s];if(ze(t)){const r=e[t];ae(r)?ve(i,r):{}.NODE_ENV!=="production"&&B(`Invalid watch handler specified by key "${t}"`,r)}else if(ae(t))ve(i,t.bind(n));else if(Ee(t))if(re(t))t.forEach(r=>al(r,e,n,s));else{const r=ae(t.handler)?t.handler.bind(n):e[t.handler];ae(r)?ve(i,r,t):{}.NODE_ENV!=="production"&&B(`Invalid watch handler specified by key "${t.handler}"`,r)}else({}).NODE_ENV!=="production"&&B(`Invalid watch option: "${s}"`,t)}function Ar(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!i.length&&!n&&!s?l=e:(l={},i.length&&i.forEach(c=>ai(l,c,o,!0)),ai(l,e,o)),Ee(e)&&r.set(e,l),l}function ai(t,e,n,s=!1){const{mixins:i,extends:r}=e;r&&ai(t,r,n,!0),i&&i.forEach(o=>ai(t,o,n,!0));for(const o in e)if(s&&o==="expose")({}).NODE_ENV!=="production"&&B('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=yf[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const yf={data:ll,props:cl,emits:cl,methods:hs,computed:hs,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:hs,directives:hs,watch:xf,provide:ll,inject:bf};function ll(t,e){return e?t?function(){return Le(ae(t)?t.call(this,this):t,ae(e)?e.call(this,this):e)}:e:t}function bf(t,e){return hs(Rr(t),Rr(e))}function Rr(t){if(re(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ut(t,e){return t?[...new Set([].concat(t,e))]:e}function hs(t,e){return t?Le(Object.create(null),t,e):e}function cl(t,e){return t?re(t)&&re(e)?[...new Set([...t,...e])]:Le(Object.create(null),rl(t),rl(e??{})):e}function xf(t,e){if(!t)return e;if(!e)return t;const n=Le(Object.create(null),t);for(const s in e)n[s]=ut(t[s],e[s]);return n}function ul(){return{app:null,config:{isNativeTag:Du,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 wf=0;function Ef(t,e){return function(s,i=null){ae(s)||(s=Le({},s)),i!=null&&!Ee(i)&&({}.NODE_ENV!=="production"&&B("root props passed to app.mount() must be an object."),i=null);const r=ul(),o=new WeakSet;let a=!1;const l=r.app={_uid:wf++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:Vl,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&B("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&B("Plugin has already been applied to target app."):c&&ae(c.install)?(o.add(c),c.install(l,...u)):ae(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&B('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"&&B("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Br(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&B(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&tl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&B(`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"&&B("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__&&B("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=oe(s,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{t(pn(f),c,h)}),u&&e?e(f,c):t(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Mh(l,Vl)),mi(f.component)||f.component.proxy}},unmount(){a?(t(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Dh(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&B("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&B(`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=fs;fs=l;try{return c()}finally{fs=u}}};return l}}let fs=null;function Cf(t,e){if(!Ue)({}).NODE_ENV!=="production"&&B("provide() can only be used inside setup().");else{let n=Ue.provides;const s=Ue.parent&&Ue.parent.provides;s===n&&(n=Ue.provides=Object.create(s)),n[t]=e}}function li(t,e,n=!1){const s=Ue||je;if(s||fs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:fs._context.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ae(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&B(`injection "${String(t)}" not found.`)}else({}).NODE_ENV!=="production"&&B("inject() can only be used inside setup() or functional components.")}const hl={},fl=()=>Object.create(hl),dl=t=>Object.getPrototypeOf(t)===hl;function Tf(t,e,n,s=!1){const i={},r=fl();t.propsDefaults=Object.create(null),pl(t,e,i,r);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&yl(e||{},i,t),n?t.props=s?i:fh(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function Sf(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function kf(t,e,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=t,a=me(i),[l]=t.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Sf(t))&&(s||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(ti(t.emitsOptions,f))continue;const d=e[f];if(l)if(_e(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=$t(f);i[m]=$r(l,a,m,d,t,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{pl(t,e,i,r)&&(c=!0);let u;for(const h in a)(!e||!_e(e,h)&&((u=on(h))===h||!_e(e,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=$r(l,a,h,void 0,t,!0)):delete i[h]);if(r!==a)for(const h in r)(!e||!_e(e,h))&&(delete r[h],c=!0)}c&&Lt(t.attrs,"set",""),{}.NODE_ENV!=="production"&&yl(e||{},i,t)}function pl(t,e,n,s){const[i,r]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(Jn(l))continue;const c=e[l];let u;i&&_e(i,u=$t(l))?!r||!r.includes(u)?n[u]=c:(a||(a={}))[u]=c:ti(t.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(r){const l=me(n),c=a||Se;for(let u=0;u<r.length;u++){const h=r[u];n[h]=$r(i,l,h,c[h],t,!_e(c,h))}}return o}function $r(t,e,n,s,i,r){const o=t[n];if(o!=null){const a=_e(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ae(l)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const u=vs(i);s=c[n]=l.call(null,e),u()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===on(n))&&(s=!0))}return s}function ml(t,e,n=!1){const s=e.propsCache,i=s.get(t);if(i)return i;const r=t.props,o={},a=[];let l=!1;if(!ae(t)){const u=h=>{l=!0;const[f,d]=ml(h,e,!0);Le(o,f),d&&a.push(...d)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return Ee(t)&&s.set(t,Gn),Gn;if(re(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!ze(r[u])&&B("props must be strings when using array syntax.",r[u]);const h=$t(r[u]);gl(h)&&(o[h]=Se)}else if(r){({}).NODE_ENV!=="production"&&!Ee(r)&&B("invalid props options",r);for(const u in r){const h=$t(u);if(gl(h)){const f=r[u],d=o[h]=re(f)||ae(f)?{type:f}:Le({},f);if(d){const m=vl(Boolean,d.type),v=vl(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||_e(d,"default"))&&a.push(h)}}}}const c=[o,a];return Ee(t)&&s.set(t,c),c}function gl(t){return t[0]!=="$"&&!Jn(t)?!0:({}.NODE_ENV!=="production"&&B(`Invalid prop name: "${t}" is a reserved property.`),!1)}function Lr(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function _l(t,e){return Lr(t)===Lr(e)}function vl(t,e){return re(e)?e.findIndex(n=>_l(n,t)):ae(e)&&_l(e,t)?0:-1}function yl(t,e,n){const s=me(e),i=n.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Pf(r,s[r],o,{}.NODE_ENV!=="production"?Wt(s):s,!_e(t,r)&&!_e(t,on(r)))}}function Pf(t,e,n,s,i){const{type:r,required:o,validator:a,skipCheck:l}=n;if(o&&i){B('Missing required prop: "'+t+'"');return}if(!(e==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=re(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Of(e,u[f]);h.push(m||""),c=d}if(!c){B(If(t,e,h));return}}a&&!a(e,s)&&B('Invalid prop: custom validator check failed for prop "'+t+'".')}}const Nf=Vn("String,Number,Boolean,Function,Symbol,BigInt");function Of(t,e){let n;const s=Lr(e);if(Nf(s)){const i=typeof t;n=i===s.toLowerCase(),!n&&i==="object"&&(n=t instanceof e)}else s==="Object"?n=Ee(t):s==="Array"?n=re(t):s==="null"?n=t===null:n=t instanceof e;return{valid:n,expectedType:s}}function If(t,e,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(xn).join(" | ")}`;const i=n[0],r=nr(e),o=bl(e,i),a=bl(e,r);return n.length===1&&xl(i)&&!Mf(i,r)&&(s+=` with value ${o}`),s+=`, got ${r} `,xl(r)&&(s+=`with value ${a}.`),s}function bl(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function xl(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function Mf(...t){return t.some(e=>e.toLowerCase()==="boolean")}const wl=t=>t[0]==="_"||t==="$stable",Fr=t=>re(t)?t.map(Mt):[Mt(t)],Df=(t,e,n)=>{if(e._n)return e;const s=Pe((...i)=>({}.NODE_ENV!=="production"&&Ue&&(!n||n.root===Ue.root)&&B(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Fr(e(...i))),n);return s._c=!1,s},El=(t,e,n)=>{const s=t._ctx;for(const i in t){if(wl(i))continue;const r=t[i];if(ae(r))e[i]=Df(i,r,s);else if(r!=null){({}).NODE_ENV!=="production"&&B(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Fr(r);e[i]=()=>o}}},Cl=(t,e)=>{({}).NODE_ENV!=="production"&&!Nr(t.vnode)&&B("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Fr(e);t.slots.default=()=>n},Af=(t,e)=>{const n=t.slots=fl();if(t.vnode.shapeFlag&32){const s=e._;s?(Le(n,e),oa(n,"_",s)):El(e,n)}else e&&Cl(t,e)},Rf=(t,e,n)=>{const{vnode:s,slots:i}=t;let r=!0,o=Se;if(s.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&Pn?(Le(i,e),Lt(t,"set","$slots")):n&&a===1?r=!1:(Le(i,e),!n&&a===1&&delete i._):(r=!e.$stable,El(e,i)),o=e}else e&&(Cl(t,e),o={default:1});if(r)for(const a in i)!wl(a)&&o[a]==null&&delete i[a]};function Vr(t,e,n,s,i=!1){if(re(t)){t.forEach((f,d)=>Vr(f,e&&(re(e)?e[d]:e),n,s,i));return}if(us(s)&&!i)return;const r=s.shapeFlag&4?mi(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=t;if({}.NODE_ENV!=="production"&&!a){B("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=a.refs===Se?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(ze(c)?(u[c]=null,_e(h,c)&&(h[c]=null)):Ze(c)&&(c.value=null)),ae(l))Yt(l,a,12,[o,u]);else{const f=ze(l),d=Ze(l);if(f||d){const m=()=>{if(t.f){const v=f?_e(h,l)?h[l]:u[l]:l.value;i?re(v)&&er(v,r):re(v)?v.includes(r)||v.push(r):f?(u[l]=[r],_e(h,l)&&(h[l]=u[l])):(l.value=[r],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,_e(h,l)&&(h[l]=o)):d?(l.value=o,t.k&&(u[t.k]=o)):{}.NODE_ENV!=="production"&&B("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,yt(m,n)):m()}else({}).NODE_ENV!=="production"&&B("Invalid template ref type:",l,`(${typeof l})`)}}let ds,dn;function Kt(t,e){t.appContext.config.performance&&ci()&&dn.mark(`vue-${e}-${t.uid}`),{}.NODE_ENV!=="production"&&Lh(t,e,ci()?dn.now():Date.now())}function Zt(t,e){if(t.appContext.config.performance&&ci()){const n=`vue-${e}-${t.uid}`,s=n+":end";dn.mark(s),dn.measure(`<${gi(t,t.type)}> ${e}`,n,s),dn.clearMarks(n),dn.clearMarks(s)}({}).NODE_ENV!=="production"&&Fh(t,e,ci()?dn.now():Date.now())}function ci(){return ds!==void 0||(typeof window<"u"&&window.performance?(ds=!0,dn=window.performance):ds=!1),ds}function $f(){const t=[];if({}.NODE_ENV!=="production"&&t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
20
+
21
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const yt=qh;function Lf(t){return Ff(t)}function Ff(t,e){$f();const n=ir();n.__VUE__=!0,{}.NODE_ENV!=="production"&&Ua(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=Ge,insertStaticContent:m}=t,v=(_,x,P,I=null,A=null,H=null,W=void 0,L=null,U={}.NODE_ENV!=="production"&&Pn?!1:!!x.dynamicChildren)=>{if(_===x)return;_&&!_s(_,x)&&(I=kt(_),Me(_,A,H,!0),_=null),x.patchFlag===-2&&(U=!1,x.dynamicChildren=null);const{type:F,ref:X,shapeFlag:ie}=x;switch(F){case ps:y(_,x,P,I);break;case bt:E(_,x,P,I);break;case hi:_==null?C(x,P,I,W):{}.NODE_ENV!=="production"&&w(_,x,P,W);break;case ke:at(_,x,P,I,A,H,W,L,U);break;default:ie&1?O(_,x,P,I,A,H,W,L,U):ie&6?lt(_,x,P,I,A,H,W,L,U):ie&64||ie&128?F.process(_,x,P,I,A,H,W,L,U,At):{}.NODE_ENV!=="production"&&B("Invalid VNode type:",F,`(${typeof F})`)}X!=null&&A&&Vr(X,_&&_.ref,H,x||_,!x)},y=(_,x,P,I)=>{if(_==null)s(x.el=a(x.children),P,I);else{const A=x.el=_.el;x.children!==_.children&&c(A,x.children)}},E=(_,x,P,I)=>{_==null?s(x.el=l(x.children||""),P,I):x.el=_.el},C=(_,x,P,I)=>{[_.el,_.anchor]=m(_.children,x,P,I,_.el,_.anchor)},w=(_,x,P,I)=>{if(x.children!==_.children){const A=f(_.anchor);$(_),[x.el,x.anchor]=m(x.children,P,A,I)}else x.el=_.el,x.anchor=_.anchor},S=({el:_,anchor:x},P,I)=>{let A;for(;_&&_!==x;)A=f(_),s(_,P,I),_=A;s(x,P,I)},$=({el:_,anchor:x})=>{let P;for(;_&&_!==x;)P=f(_),i(_),_=P;i(x)},O=(_,x,P,I,A,H,W,L,U)=>{x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),_==null?R(x,P,I,A,H,W,L,U):pe(_,x,A,H,W,L,U)},R=(_,x,P,I,A,H,W,L)=>{let U,F;const{props:X,shapeFlag:ie,transition:te,dirs:ce}=_;if(U=_.el=o(_.type,H,X&&X.is,X),ie&8?u(U,_.children):ie&16&&ue(_.children,U,null,I,A,Gr(_,H),W,L),ce&&In(_,null,I,"created"),le(U,_,_.scopeId,W,I),X){for(const we in X)we!=="value"&&!Jn(we)&&r(U,we,null,X[we],H,_.children,I,A,Ae);"value"in X&&r(U,"value",null,X.value,H),(F=X.onVnodeBeforeMount)&&Gt(F,I,_)}({}).NODE_ENV!=="production"&&(Object.defineProperty(U,"__vnode",{value:_,enumerable:!1}),Object.defineProperty(U,"__vueParentComponent",{value:I,enumerable:!1})),ce&&In(_,null,I,"beforeMount");const ge=Vf(A,te);ge&&te.beforeEnter(U),s(U,x,P),((F=X&&X.onVnodeMounted)||ge||ce)&&yt(()=>{F&&Gt(F,I,_),ge&&te.enter(U),ce&&In(_,null,I,"mounted")},A)},le=(_,x,P,I,A)=>{if(P&&d(_,P),I)for(let H=0;H<I.length;H++)d(_,I[H]);if(A){let H=A.subTree;if({}.NODE_ENV!=="production"&&H.patchFlag>0&&H.patchFlag&2048&&(H=Tr(H.children)||H),x===H){const W=A.vnode;le(_,W,W.scopeId,W.slotScopeIds,A.parent)}}},ue=(_,x,P,I,A,H,W,L,U=0)=>{for(let F=U;F<_.length;F++){const X=_[F]=L?mn(_[F]):Mt(_[F]);v(null,X,x,P,I,A,H,W,L)}},pe=(_,x,P,I,A,H,W)=>{const L=x.el=_.el;let{patchFlag:U,dynamicChildren:F,dirs:X}=x;U|=_.patchFlag&16;const ie=_.props||Se,te=x.props||Se;let ce;if(P&&Dn(P,!1),(ce=te.onVnodeBeforeUpdate)&&Gt(ce,P,x,_),X&&In(x,_,P,"beforeUpdate"),P&&Dn(P,!0),{}.NODE_ENV!=="production"&&Pn&&(U=0,W=!1,F=null),F?(De(_.dynamicChildren,F,L,P,I,Gr(x,A),H),{}.NODE_ENV!=="production"&&ui(_,x)):W||Y(_,x,L,null,P,I,Gr(x,A),H,!1),U>0){if(U&16)Oe(L,x,ie,te,P,I,A);else if(U&2&&ie.class!==te.class&&r(L,"class",null,te.class,A),U&4&&r(L,"style",ie.style,te.style,A),U&8){const ge=x.dynamicProps;for(let we=0;we<ge.length;we++){const Ie=ge[we],Fe=ie[Ie],mt=te[Ie];(mt!==Fe||Ie==="value")&&r(L,Ie,Fe,mt,A,_.children,P,I,Ae)}}U&1&&_.children!==x.children&&u(L,x.children)}else!W&&F==null&&Oe(L,x,ie,te,P,I,A);((ce=te.onVnodeUpdated)||X)&&yt(()=>{ce&&Gt(ce,P,x,_),X&&In(x,_,P,"updated")},I)},De=(_,x,P,I,A,H,W)=>{for(let L=0;L<x.length;L++){const U=_[L],F=x[L],X=U.el&&(U.type===ke||!_s(U,F)||U.shapeFlag&70)?h(U.el):P;v(U,F,X,null,I,A,H,W,!0)}},Oe=(_,x,P,I,A,H,W)=>{if(P!==I){if(P!==Se)for(const L in P)!Jn(L)&&!(L in I)&&r(_,L,P[L],null,W,x.children,A,H,Ae);for(const L in I){if(Jn(L))continue;const U=I[L],F=P[L];U!==F&&L!=="value"&&r(_,L,F,U,W,x.children,A,H,Ae)}"value"in I&&r(_,"value",P.value,I.value,W)}},at=(_,x,P,I,A,H,W,L,U)=>{const F=x.el=_?_.el:a(""),X=x.anchor=_?_.anchor:a("");let{patchFlag:ie,dynamicChildren:te,slotScopeIds:ce}=x;({}).NODE_ENV!=="production"&&(Pn||ie&2048)&&(ie=0,U=!1,te=null),ce&&(L=L?L.concat(ce):ce),_==null?(s(F,P,I),s(X,P,I),ue(x.children||[],P,X,A,H,W,L,U)):ie>0&&ie&64&&te&&_.dynamicChildren?(De(_.dynamicChildren,te,P,A,H,W,L),{}.NODE_ENV!=="production"?ui(_,x):(x.key!=null||A&&x===A.subTree)&&ui(_,x,!0)):Y(_,x,P,X,A,H,W,L,U)},lt=(_,x,P,I,A,H,W,L,U)=>{x.slotScopeIds=L,_==null?x.shapeFlag&512?A.ctx.activate(x,P,I,W,U):We(x,P,I,A,H,W,U):Te(_,x,U)},We=(_,x,P,I,A,H,W)=>{const L=_.component=Yf(_,I,A);if({}.NODE_ENV!=="production"&&L.type.__hmrId&&Ph(L),{}.NODE_ENV!=="production"&&(Qs(_),Kt(L,"mount")),Nr(_)&&(L.ctx.renderer=At),{}.NODE_ENV!=="production"&&Kt(L,"init"),qf(L),{}.NODE_ENV!=="production"&&Zt(L,"init"),L.asyncDep){if(A&&A.registerDep(L,he),!_.el){const U=L.subTree=oe(bt);E(null,U,x,P)}}else he(L,_,x,P,A,H,W);({}).NODE_ENV!=="production"&&(Js(),Zt(L,"mount"))},Te=(_,x,P)=>{const I=x.component=_.component;if(Hh(_,x,P))if(I.asyncDep&&!I.asyncResolved){({}).NODE_ENV!=="production"&&Qs(x),M(I,x,P),{}.NODE_ENV!=="production"&&Js();return}else I.next=x,Sh(I.update),I.effect.dirty=!0,I.update();else x.el=_.el,I.vnode=x},he=(_,x,P,I,A,H,W)=>{const L=()=>{if(_.isMounted){let{next:X,bu:ie,u:te,parent:ce,vnode:ge}=_;{const _n=Tl(_);if(_n){X&&(X.el=ge.el,M(_,X,W)),_n.asyncDep.then(()=>{_.isUnmounted||L()});return}}let we=X,Ie;({}).NODE_ENV!=="production"&&Qs(X||_.vnode),Dn(_,!1),X?(X.el=ge.el,M(_,X,W)):X=ge,ie&&es(ie),(Ie=X.props&&X.props.onVnodeBeforeUpdate)&&Gt(Ie,ce,X,ge),Dn(_,!0),{}.NODE_ENV!=="production"&&Kt(_,"render");const Fe=Cr(_);({}).NODE_ENV!=="production"&&Zt(_,"render");const mt=_.subTree;_.subTree=Fe,{}.NODE_ENV!=="production"&&Kt(_,"patch"),v(mt,Fe,h(mt.el),kt(mt),_,A,H),{}.NODE_ENV!=="production"&&Zt(_,"patch"),X.el=Fe.el,we===null&&Bh(_,Fe.el),te&&yt(te,A),(Ie=X.props&&X.props.onVnodeUpdated)&&yt(()=>Gt(Ie,ce,X,ge),A),{}.NODE_ENV!=="production"&&Wa(_),{}.NODE_ENV!=="production"&&Js()}else{let X;const{el:ie,props:te}=x,{bm:ce,m:ge,parent:we}=_,Ie=us(x);if(Dn(_,!1),ce&&es(ce),!Ie&&(X=te&&te.onVnodeBeforeMount)&&Gt(X,we,x),Dn(_,!0),ie&&tn){const Fe=()=>{({}).NODE_ENV!=="production"&&Kt(_,"render"),_.subTree=Cr(_),{}.NODE_ENV!=="production"&&Zt(_,"render"),{}.NODE_ENV!=="production"&&Kt(_,"hydrate"),tn(ie,_.subTree,_,A,null),{}.NODE_ENV!=="production"&&Zt(_,"hydrate")};Ie?x.type.__asyncLoader().then(()=>!_.isUnmounted&&Fe()):Fe()}else{({}).NODE_ENV!=="production"&&Kt(_,"render");const Fe=_.subTree=Cr(_);({}).NODE_ENV!=="production"&&Zt(_,"render"),{}.NODE_ENV!=="production"&&Kt(_,"patch"),v(null,Fe,P,I,_,A,H),{}.NODE_ENV!=="production"&&Zt(_,"patch"),x.el=Fe.el}if(ge&&yt(ge,A),!Ie&&(X=te&&te.onVnodeMounted)){const Fe=x;yt(()=>Gt(X,we,Fe),A)}(x.shapeFlag&256||we&&us(we.vnode)&&we.vnode.shapeFlag&256)&&_.a&&yt(_.a,A),_.isMounted=!0,{}.NODE_ENV!=="production"&&Ah(_),x=P=I=null}},U=_.effect=new or(L,Ge,()=>ei(F),_.scope),F=_.update=()=>{U.dirty&&U.run()};F.id=_.uid,Dn(_,!0),{}.NODE_ENV!=="production"&&(U.onTrack=_.rtc?X=>es(_.rtc,X):void 0,U.onTrigger=_.rtg?X=>es(_.rtg,X):void 0,F.ownerInstance=_),F()},M=(_,x,P)=>{x.component=_;const I=_.vnode.props;_.vnode=x,_.next=null,kf(_,x.props,I,P),Rf(_,x.children,P),Bt(),Ga(_),Ut()},Y=(_,x,P,I,A,H,W,L,U=!1)=>{const F=_&&_.children,X=_?_.shapeFlag:0,ie=x.children,{patchFlag:te,shapeFlag:ce}=x;if(te>0){if(te&128){de(F,ie,P,I,A,H,W,L,U);return}else if(te&256){j(F,ie,P,I,A,H,W,L,U);return}}ce&8?(X&16&&Ae(F,A,H),ie!==F&&u(P,ie)):X&16?ce&16?de(F,ie,P,I,A,H,W,L,U):Ae(F,A,H,!0):(X&8&&u(P,""),ce&16&&ue(ie,P,I,A,H,W,L,U))},j=(_,x,P,I,A,H,W,L,U)=>{_=_||Gn,x=x||Gn;const F=_.length,X=x.length,ie=Math.min(F,X);let te;for(te=0;te<ie;te++){const ce=x[te]=U?mn(x[te]):Mt(x[te]);v(_[te],ce,P,null,A,H,W,L,U)}F>X?Ae(_,A,H,!0,!1,ie):ue(x,P,I,A,H,W,L,U,ie)},de=(_,x,P,I,A,H,W,L,U)=>{let F=0;const X=x.length;let ie=_.length-1,te=X-1;for(;F<=ie&&F<=te;){const ce=_[F],ge=x[F]=U?mn(x[F]):Mt(x[F]);if(_s(ce,ge))v(ce,ge,P,null,A,H,W,L,U);else break;F++}for(;F<=ie&&F<=te;){const ce=_[ie],ge=x[te]=U?mn(x[te]):Mt(x[te]);if(_s(ce,ge))v(ce,ge,P,null,A,H,W,L,U);else break;ie--,te--}if(F>ie){if(F<=te){const ce=te+1,ge=ce<X?x[ce].el:I;for(;F<=te;)v(null,x[F]=U?mn(x[F]):Mt(x[F]),P,ge,A,H,W,L,U),F++}}else if(F>te)for(;F<=ie;)Me(_[F],A,H,!0),F++;else{const ce=F,ge=F,we=new Map;for(F=ge;F<=te;F++){const tt=x[F]=U?mn(x[F]):Mt(x[F]);tt.key!=null&&({}.NODE_ENV!=="production"&&we.has(tt.key)&&B("Duplicate keys found during update:",JSON.stringify(tt.key),"Make sure keys are unique."),we.set(tt.key,F))}let Ie,Fe=0;const mt=te-ge+1;let _n=!1,Ui=0;const Ln=new Array(mt);for(F=0;F<mt;F++)Ln[F]=0;for(F=ce;F<=ie;F++){const tt=_[F];if(Fe>=mt){Me(tt,A,H,!0);continue}let gt;if(tt.key!=null)gt=we.get(tt.key);else for(Ie=ge;Ie<=te;Ie++)if(Ln[Ie-ge]===0&&_s(tt,x[Ie])){gt=Ie;break}gt===void 0?Me(tt,A,H,!0):(Ln[gt-ge]=F+1,gt>=Ui?Ui=gt:_n=!0,v(tt,x[gt],P,null,A,H,W,L,U),Fe++)}const Wi=_n?Gf(Ln):Gn;for(Ie=Wi.length-1,F=mt-1;F>=0;F--){const tt=ge+F,gt=x[tt],Yi=tt+1<X?x[tt+1].el:I;Ln[F]===0?v(null,gt,P,Yi,A,H,W,L,U):_n&&(Ie<0||F!==Wi[Ie]?fe(gt,P,Yi,2):Ie--)}}},fe=(_,x,P,I,A=null)=>{const{el:H,type:W,transition:L,children:U,shapeFlag:F}=_;if(F&6){fe(_.component.subTree,x,P,I);return}if(F&128){_.suspense.move(x,P,I);return}if(F&64){W.move(_,x,P,At);return}if(W===ke){s(H,x,P);for(let ie=0;ie<U.length;ie++)fe(U[ie],x,P,I);s(_.anchor,x,P);return}if(W===hi){S(_,x,P);return}if(I!==2&&F&1&&L)if(I===0)L.beforeEnter(H),s(H,x,P),yt(()=>L.enter(H),A);else{const{leave:ie,delayLeave:te,afterLeave:ce}=L,ge=()=>s(H,x,P),we=()=>{ie(H,()=>{ge(),ce&&ce()})};te?te(H,ge,we):we()}else s(H,x,P)},Me=(_,x,P,I=!1,A=!1)=>{const{type:H,props:W,ref:L,children:U,dynamicChildren:F,shapeFlag:X,patchFlag:ie,dirs:te}=_;if(L!=null&&Vr(L,null,P,_,!0),X&256){x.ctx.deactivate(_);return}const ce=X&1&&te,ge=!us(_);let we;if(ge&&(we=W&&W.onVnodeBeforeUnmount)&&Gt(we,x,_),X&6)Ct(_.component,P,I);else{if(X&128){_.suspense.unmount(P,I);return}ce&&In(_,null,x,"beforeUnmount"),X&64?_.type.remove(_,x,P,A,At,I):F&&(H!==ke||ie>0&&ie&64)?Ae(F,x,P,!1,!0):(H===ke&&ie&384||!A&&X&16)&&Ae(U,x,P),I&&Je(_)}(ge&&(we=W&&W.onVnodeUnmounted)||ce)&&yt(()=>{we&&Gt(we,x,_),ce&&In(_,null,x,"unmounted")},P)},Je=_=>{const{type:x,el:P,anchor:I,transition:A}=_;if(x===ke){({}).NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&A&&!A.persisted?_.children.forEach(W=>{W.type===bt?i(W.el):Je(W)}):Et(P,I);return}if(x===hi){$(_);return}const H=()=>{i(P),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(_.shapeFlag&1&&A&&!A.persisted){const{leave:W,delayLeave:L}=A,U=()=>W(P,H);L?L(_.el,H,U):U()}else H()},Et=(_,x)=>{let P;for(;_!==x;)P=f(_),i(_),_=P;i(x)},Ct=(_,x,P)=>{({}).NODE_ENV!=="production"&&_.type.__hmrId&&Nh(_);const{bum:I,scope:A,update:H,subTree:W,um:L}=_;I&&es(I),A.stop(),H&&(H.active=!1,Me(W,_,x,P)),L&&yt(L,x),yt(()=>{_.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&$h(_)},Ae=(_,x,P,I=!1,A=!1,H=0)=>{for(let W=H;W<_.length;W++)Me(_[W],x,P,I,A)},kt=_=>_.shapeFlag&6?kt(_.component.subTree):_.shapeFlag&128?_.suspense.next():f(_.anchor||_.el);let $e=!1;const et=(_,x,P)=>{_==null?x._vnode&&Me(x._vnode,null,null,!0):v(x._vnode||null,_,x,null,null,null,P),$e||($e=!0,Ga(),za(),$e=!1),x._vnode=_},At={p:v,um:Me,m:fe,r:Je,mt:We,mc:ue,pc:Y,pbc:De,n:kt,o:t};let en,tn;return e&&([en,tn]=e(At)),{render:et,hydrate:en,createApp:Ef(et,en)}}function Gr({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Dn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Vf(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ui(t,e,n=!1){const s=t.children,i=e.children;if(re(s)&&re(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=mn(i[r]),a.el=o.el),n||ui(o,a)),a.type===ps&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===bt&&!a.el&&(a.el=o.el)}}function Gf(t){const e=t.slice(),n=[0];let s,i,r,o,a;const l=t.length;for(s=0;s<l;s++){const c=t[s];if(c!==0){if(i=n[n.length-1],t[i]<c){e[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,t[n[a]]<c?r=a+1:o=a;c<t[n[r]]&&(r>0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}function Tl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Tl(e)}const zf=t=>t.__isTeleport,ke=Symbol.for("v-fgt"),ps=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),ms=[];let It=null;function D(t=!1){ms.push(It=t?null:[])}function jf(){ms.pop(),It=ms[ms.length-1]||null}let gs=1;function Sl(t){gs+=t}function kl(t){return t.dynamicChildren=gs>0?It||Gn:null,jf(),gs>0&&It&&It.push(t),t}function z(t,e,n,s,i,r){return kl(N(t,e,n,s,i,r,!0))}function Qe(t,e,n,s,i){return kl(oe(t,e,n,s,i,!0))}function Bn(t){return t?t.__v_isVNode===!0:!1}function _s(t,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Hn.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const Hf=(...t)=>Nl(...t),Pl=({key:t})=>t??null,fi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ze(t)||Ze(t)||ae(t)?{i:je,r:t,k:e,f:!!n}:t:null);function N(t,e=null,n=null,s=0,i=null,r=t===ke?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Pl(e),ref:e&&fi(e),scopeId:ni,slotScopeIds:null,children:n,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:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return a?(zr(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=ze(n)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&B("VNode created with invalid key (NaN). VNode type:",l.type),gs>0&&!o&&It&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&It.push(l),l}const oe={}.NODE_ENV!=="production"?Hf:Nl;function Nl(t,e=null,n=null,s=0,i=null,r=!1){if((!t||t===Wh)&&({}.NODE_ENV!=="production"&&!t&&B(`Invalid vnode type when creating vnode: ${t}.`),t=bt),Bn(t)){const a=pn(t,e,!0);return n&&zr(a,n),gs>0&&!r&&It&&(a.shapeFlag&6?It[It.indexOf(t)]=a:It.push(a)),a.patchFlag|=-2,a}if(Fl(t)&&(t=t.__vccOpts),e){e=Bf(e);let{class:a,style:l}=e;a&&!ze(a)&&(e.class=vt(a)),Ee(l)&&(pr(l)&&!re(l)&&(l=Le({},l)),e.style=q(l))}const o=ze(t)?1:Xh(t)?128:zf(t)?64:Ee(t)?4:ae(t)?2:0;return{}.NODE_ENV!=="production"&&o&4&&pr(t)&&(t=me(t),B("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: `,t)),N(t,e,n,s,i,o,r,!0)}function Bf(t){return t?pr(t)||dl(t)?Le({},t):t:null}function pn(t,e,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=t,a=e?jr(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Pl(a),ref:e&&e.ref?n&&i?re(i)?i.concat(fi(e)):[i,fi(e)]:fi(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&re(o)?o.map(Ol):o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ke?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pn(t.ssContent),ssFallback:t.ssFallback&&pn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ol(t){const e=pn(t);return re(t.children)&&(e.children=t.children.map(Ol)),e}function He(t=" ",e=0){return oe(ps,null,t,e)}function Be(t="",e=!1){return e?(D(),Qe(bt,null,t)):oe(bt,null,t)}function Mt(t){return t==null||typeof t=="boolean"?oe(bt):re(t)?oe(ke,null,t.slice()):typeof t=="object"?mn(t):oe(ps,null,String(t))}function mn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pn(t)}function zr(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(re(e))n=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),zr(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!dl(e)?e._ctx=je:i===3&&je&&(je.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ae(e)?(e={default:e,_ctx:je},n=32):(e=String(e),s&64?(n=16,e=[He(e)]):n=8);t.children=e,t.shapeFlag|=n}function jr(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=vt([e.class,s.class]));else if(i==="style")e.style=q([e.style,s.style]);else if(Qn(i)){const r=e[i],o=s[i];o&&r!==o&&!(re(r)&&r.includes(o))&&(e[i]=r?[].concat(r,o):o)}else i!==""&&(e[i]=s[i])}return e}function Gt(t,e,n,s=null){Ot(t,e,7,[n,s])}const Uf=ul();let Wf=0;function Yf(t,e,n){const s=t.type,i=(e?e.appContext:t.appContext)||Uf,r={uid:Wf++,vnode:t,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Bu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ml(s,i),emitsOptions:Xa(s,i),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:s.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.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=hf(r):r.ctx={_:r},r.root=e?e.root:r,r.emit=Gh.bind(null,r),t.ce&&t.ce(r),r}let Ue=null;const Il=()=>Ue||je;let di,Hr;{const t=ir(),e=(n,s)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};di=e("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Hr=e("__VUE_SSR_SETTERS__",n=>pi=n)}const vs=t=>{const e=Ue;return di(t),t.scope.on(),()=>{t.scope.off(),di(e)}},Ml=()=>{Ue&&Ue.scope.off(),di(null)},Xf=Vn("slot,component");function Br(t,{isNativeTag:e}){(Xf(t)||e(t))&&B("Do not use built-in or reserved HTML elements as component id: "+t)}function Dl(t){return t.vnode.shapeFlag&4}let pi=!1;function qf(t,e=!1){e&&Hr(e);const{props:n,children:s}=t.vnode,i=Dl(t);Tf(t,n,i,e),Af(t,s);const r=i?Kf(t,e):void 0;return e&&Hr(!1),r}function Kf(t,e){var n;const s=t.type;if({}.NODE_ENV!=="production"){if(s.name&&Br(s.name,t.appContext.config),s.components){const r=Object.keys(s.components);for(let o=0;o<r.length;o++)Br(r[o],t.appContext.config)}if(s.directives){const r=Object.keys(s.directives);for(let o=0;o<r.length;o++)tl(r[o])}s.compilerOptions&&Zf()&&B('"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.')}t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,il),{}.NODE_ENV!=="production"&&ff(t);const{setup:i}=s;if(i){const r=t.setupContext=i.length>1?Ll(t):null,o=vs(t);Bt();const a=Yt(i,t,0,[{}.NODE_ENV!=="production"?Wt(t.props):t.props,r]);if(Ut(),o(),tr(a)){if(a.then(Ml,Ml),e)return a.then(l=>{Al(t,l,e)}).catch(l=>{ns(l,t,0)});if(t.asyncDep=a,{}.NODE_ENV!=="production"&&!t.suspense){const l=(n=s.name)!=null?n:"Anonymous";B(`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 Al(t,a,e)}else Rl(t,e)}function Al(t,e,n){ae(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ee(e)?({}.NODE_ENV!=="production"&&Bn(e)&&B("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(t.devtoolsRawSetupState=e),t.setupState=Aa(e),{}.NODE_ENV!=="production"&&df(t)):{}.NODE_ENV!=="production"&&e!==void 0&&B(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Rl(t,n)}let Ur;const Zf=()=>!Ur;function Rl(t,e,n){const s=t.type;if(!t.render){if(!e&&Ur&&!s.render){const i=s.template||Ar(t).template;if(i){({}).NODE_ENV!=="production"&&Kt(t,"compile");const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Le(Le({isCustomElement:r,delimiters:a},o),l);s.render=Ur(i,c),{}.NODE_ENV!=="production"&&Zt(t,"compile")}}t.render=s.render||Ge}{const i=vs(t);Bt();try{_f(t)}finally{Ut(),i()}}({}).NODE_ENV!=="production"&&!s.render&&t.render===Ge&&!e&&(s.template?B('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".'):B("Component is missing template or render function."))}const $l={}.NODE_ENV!=="production"?{get(t,e){return ii(),Ke(t,"get",""),t[e]},set(){return B("setupContext.attrs is readonly."),!1},deleteProperty(){return B("setupContext.attrs is readonly."),!1}}:{get(t,e){return Ke(t,"get",""),t[e]}};function Qf(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,n){return Ke(t,"get","$slots"),e[n]}}))}function Ll(t){const e=n=>{if({}.NODE_ENV!=="production"&&(t.exposed&&B("expose() should be called only once per setup()."),n!=null)){let s=typeof n;s==="object"&&(re(n)?s="array":Ze(n)&&(s="ref")),s!=="object"&&B(`expose() should be passed a plain object, received ${s}.`)}t.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,$l))},get slots(){return Qf(t)},get emit(){return(s,...i)=>t.emit(s,...i)},expose:e})}else return{attrs:new Proxy(t.attrs,$l),slots:t.slots,emit:t.emit,expose:e}}function mi(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Aa(dh(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Mn)return Mn[n](t)},has(e,n){return n in e||n in Mn}}))}const Jf=/(?:^|[-_])(\w)/g,ed=t=>t.replace(Jf,e=>e.toUpperCase()).replace(/[-_]/g,"");function Wr(t,e=!0){return ae(t)?t.displayName||t.name:t.name||e&&t.__name}function gi(t,e,n=!1){let s=Wr(e);if(!s&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&t&&t.parent){const i=r=>{for(const o in r)if(r[o]===e)return o};s=i(t.components||t.parent.type.components)||i(t.appContext.components)}return s?ed(s):n?"App":"Anonymous"}function Fl(t){return ae(t)&&"__vccOpts"in t}const td=(t,e)=>{const n=mh(t,e,pi);if({}.NODE_ENV!=="production"){const s=Il();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function xt(t,e,n){const s=arguments.length;return s===2?Ee(e)&&!re(e)?Bn(e)?oe(t,null,[e]):oe(t,e):oe(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Bn(n)&&(n=[n]),oe(t,e,n))}function nd(){if({}.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return Ee(h)?h.__isVue?["div",t,"VueInstance"]:Ze(h)?["div",{},["span",t,u(h)],"<",a(h.value),">"]:zn(h)?["div",{},["span",t,Sn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Tn(h)?" (readonly)":""}`]:Tn(h)?["div",{},["span",t,Sn(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",me(h.props))),h.setupState!==Se&&f.push(o("setup",h.setupState)),h.data!==Se&&f.push(o("data",me(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:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=Le({},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",s,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:Ee(h)?["object",{object:f?me(h):h}]:["span",n,String(h)]}function l(h,f){const d=h.type;if(ae(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(re(m)&&m.includes(f)||Ee(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 Sn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Vl="3.4.25",Yr={}.NODE_ENV!=="production"?B:Ge;/**
21
23
  * @vue/runtime-dom v3.4.25
22
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
23
25
  * @license MIT
24
- **/const il=Symbol("_vod"),Vh=Symbol("_vsh"),Cr={beforeMount(e,{value:t},{transition:n}){e[il]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$i(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),$i(e,!0),i.enter(e)):i.leave(e,()=>{$i(e,!1)}):$i(e,t))},beforeUnmount(e,{value:t}){$i(e,t)}};({}).NODE_ENV!=="production"&&(Cr.name="show");function $i(e,t){e.style.display=t?e[il]:"none",e[Vh]=!t}/**
26
+ **/const sd="http://www.w3.org/2000/svg",id="http://www.w3.org/1998/Math/MathML",gn=typeof document<"u"?document:null,Gl=gn&&gn.createElement("template"),rd={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const i=e==="svg"?gn.createElementNS(sd,t):e==="mathml"?gn.createElementNS(id,t):gn.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:t=>gn.createTextNode(t),createComment:t=>gn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>gn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,i,r){const o=n?n.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Gl.innerHTML=s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t;const a=Gl.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},od=Symbol("_vtc");function ad(t,e,n){const s=t[od];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const _i=Symbol("_vod"),zl=Symbol("_vsh"),vi={beforeMount(t,{value:e},{transition:n}){t[_i]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ys(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),ys(t,!0),s.enter(t)):s.leave(t,()=>{ys(t,!1)}):ys(t,e))},beforeUnmount(t,{value:e}){ys(t,e)}};({}).NODE_ENV!=="production"&&(vi.name="show");function ys(t,e){t.style.display=e?t[_i]:"none",t[zl]=!e}const ld=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),cd=/(^|;)\s*display\s*:/;function ud(t,e,n){const s=t.style,i=ze(n);let r=!1;if(n&&!i){if(e)if(ze(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&yi(s,a,"")}else for(const o in e)n[o]==null&&yi(s,o,"");for(const o in n)o==="display"&&(r=!0),yi(s,o,n[o])}else if(i){if(e!==n){const o=s[ld];o&&(n+=";"+o),s.cssText=n,r=cd.test(n)}}else e&&t.removeAttribute("style");_i in t&&(t[_i]=r?s.display:"",t[zl]&&(s.display="none"))}const hd=/[^\\];\s*$/,jl=/\s*!important$/;function yi(t,e,n){if(re(n))n.forEach(s=>yi(t,e,s));else if(n==null&&(n=""),{}.NODE_ENV!=="production"&&hd.test(n)&&Yr(`Unexpected semicolon at the end of '${e}' style value: '${n}'`),e.startsWith("--"))t.setProperty(e,n);else{const s=fd(t,e);jl.test(n)?t.setProperty(on(s),n.replace(jl,""),"important"):t[s]=n}}const Hl=["Webkit","Moz","ms"],Xr={};function fd(t,e){const n=Xr[e];if(n)return n;let s=$t(e);if(s!=="filter"&&s in t)return Xr[e]=s;s=xn(s);for(let i=0;i<Hl.length;i++){const r=Hl[i]+s;if(r in t)return Xr[e]=r}return e}const Bl="http://www.w3.org/1999/xlink";function dd(t,e,n,s,i){if(s&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Bl,e.slice(6,e.length)):t.setAttributeNS(Bl,e,n);else{const r=Hu(e);n==null||r&&!la(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)}}function pd(t,e,n,s,i,r,o){if(e==="innerHTML"||e==="textContent"){s&&o(s,i,r),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?t.getAttribute("value")||"":t.value,u=n??"";(c!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let l=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=la(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{t[e]=n}catch(c){({}).NODE_ENV!=="production"&&!l&&Yr(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${n} is invalid.`,c)}l&&t.removeAttribute(e)}function md(t,e,n,s){t.addEventListener(e,n,s)}function gd(t,e,n,s){t.removeEventListener(e,n,s)}const Ul=Symbol("_vei");function _d(t,e,n,s,i=null){const r=t[Ul]||(t[Ul]={}),o=r[e];if(s&&o)o.value={}.NODE_ENV!=="production"?Yl(s,e):s;else{const[a,l]=vd(e);if(s){const c=r[e]=xd({}.NODE_ENV!=="production"?Yl(s,e):s,i);md(t,a,c,l)}else o&&(gd(t,a,o,l),r[e]=void 0)}}const Wl=/(?:Once|Passive|Capture)$/;function vd(t){let e;if(Wl.test(t)){e={};let s;for(;s=t.match(Wl);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):on(t.slice(2)),e]}let qr=0;const yd=Promise.resolve(),bd=()=>qr||(yd.then(()=>qr=0),qr=Date.now());function xd(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ot(wd(s,n.value),e,5,[s])};return n.value=t,n.attached=bd(),n}function Yl(t,e){return ae(t)||re(t)?t:(Yr(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
27
+ Expected function or array of functions, received type ${typeof t}.`),Ge)}function wd(t,e){if(re(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Xl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Ed=(t,e,n,s,i,r,o,a,l)=>{const c=i==="svg";e==="class"?ad(t,s,c):e==="style"?ud(t,n,s):Qn(e)?Gs(e)||_d(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Cd(t,e,s,c))?pd(t,e,s,r,o,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),dd(t,e,s,c))};function Cd(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Xl(e)&&ae(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Xl(e)&&ze(n)?!1:e in t}const Td=Le({patchProp:Ed},rd);let ql;function Sd(){return ql||(ql=Lf(Td))}const bi=(...t)=>{Sd().render(...t)};/**
25
28
  * vue v3.4.25
26
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
27
30
  * @license MIT
28
- **/function $h(){Fh()}({}).NODE_ENV!=="production"&&$h();const zi=/^[a-z0-9]+(-[a-z0-9]+)*$/,Sr=(e,t,n,i="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const l=r.pop(),u=r.pop(),v={provider:r.length>0?r[0]:i,prefix:u,name:l};return t&&!kr(v)?null:v}const s=r[0],o=s.split("-");if(o.length>1){const l={provider:i,prefix:o.shift(),name:o.join("-")};return t&&!kr(l)?null:l}if(n&&i===""){const l={provider:i,prefix:"",name:s};return t&&!kr(l,n)?null:l}return null},kr=(e,t)=>e?!!((e.provider===""||e.provider.match(zi))&&(t&&e.prefix===""||e.prefix.match(zi))&&e.name.match(zi)):!1,rl=Object.freeze({left:0,top:0,width:16,height:16}),Tr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Pr=Object.freeze({...rl,...Tr}),$s=Object.freeze({...Pr,body:"",hidden:!1});function zh(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function sl(e,t){const n=zh(e,t);for(const i in $s)i in Tr?i in e&&!(i in n)&&(n[i]=Tr[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function Gh(e,t){const n=e.icons,i=e.aliases||Object.create(null),r=Object.create(null);function s(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const l=i[o]&&i[o].parent,u=l&&s(l);u&&(r[o]=[l].concat(u))}return r[o]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(s),r}function jh(e,t,n){const i=e.icons,r=e.aliases||Object.create(null);let s={};function o(l){s=sl(i[l]||r[l],s)}return o(t),n.forEach(o),sl(e,s)}function ol(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const i=Gh(e);for(const r in i){const s=i[r];s&&(t(r,jh(e,r,s)),n.push(r))}return n}const Bh={provider:"",aliases:{},not_found:{},...rl};function zs(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function al(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!zs(e,Bh))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(zi)||typeof s.body!="string"||!zs(s,$s))return null}const i=t.aliases||Object.create(null);for(const r in i){const s=i[r],o=s.parent;if(!r.match(zi)||typeof o!="string"||!n[o]&&!i[o]||!zs(s,$s))return null}return t}const ll=Object.create(null);function Hh(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Hn(e,t){const n=ll[e]||(ll[e]=Object.create(null));return n[t]||(n[t]=Hh(e,t))}function Gs(e,t){return al(t)?ol(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function Uh(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Gi=!1;function cl(e){return typeof e=="boolean"&&(Gi=e),Gi}function Wh(e){const t=typeof e=="string"?Sr(e,!0,Gi):e;if(t){const n=Hn(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function qh(e,t){const n=Sr(e,!0,Gi);if(!n)return!1;const i=Hn(n.provider,n.prefix);return Uh(i,n.name,t)}function Yh(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Gi&&!t&&!e.prefix){let r=!1;return al(e)&&(e.prefix="",ol(e,(s,o)=>{o&&qh(s,o)&&(r=!0)})),r}const n=e.prefix;if(!kr({provider:t,prefix:n,name:"a"}))return!1;const i=Hn(t,n);return!!Gs(i,e)}const ul=Object.freeze({width:null,height:null}),hl=Object.freeze({...ul,...Tr}),Xh=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kh=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fl(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split(Xh);if(i===null||!i.length)return e;const r=[];let s=i.shift(),o=Kh.test(s);for(;;){if(o){const l=parseFloat(s);isNaN(l)?r.push(s):r.push(Math.ceil(l*t*n)/n)}else r.push(s);if(s=i.shift(),s===void 0)return r.join("");o=!o}}function Zh(e,t="defs"){let n="";const i=e.indexOf("<"+t);for(;i>=0;){const r=e.indexOf(">",i),s=e.indexOf("</"+t);if(r===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;n+=e.slice(r+1,s).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:n,content:e}}function Qh(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Jh(e,t,n){const i=Zh(e);return Qh(i.defs,t+i.content+n)}const tf=e=>e==="unset"||e==="undefined"||e==="none";function ef(e,t){const n={...Pr,...e},i={...hl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,i].forEach(k=>{const A=[],$=k.hFlip,P=k.vFlip;let O=k.rotate;$?P?O+=2:(A.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),A.push("scale(-1 1)"),r.top=r.left=0):P&&(A.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),A.push("scale(1 -1)"),r.top=r.left=0);let D;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:D=r.height/2+r.top,A.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:A.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:D=r.width/2+r.left,A.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}O%2===1&&(r.left!==r.top&&(D=r.left,r.left=r.top,r.top=D),r.width!==r.height&&(D=r.width,r.width=r.height,r.height=D)),A.length&&(s=Jh(s,'<g transform="'+A.join(" ")+'">',"</g>"))});const o=i.width,l=i.height,u=r.width,v=r.height;let y,g;o===null?(g=l===null?"1em":l==="auto"?v:l,y=fl(g,u/v)):(y=o==="auto"?u:o,g=l===null?fl(y,v/u):l==="auto"?v:l);const m={},x=(k,A)=>{tf(A)||(m[k]=A.toString())};x("width",y),x("height",g);const I=[r.left,r.top,u,v];return m.viewBox=I.join(" "),{attributes:m,viewBox:I,body:s}}const nf=/\sid="(\S+)"/g,rf="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let sf=0;function of(e,t=rf){const n=[];let i;for(;i=nf.exec(e);)n.push(i[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof t=="function"?t(s):t+(sf++).toString(),l=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const js=Object.create(null);function af(e,t){js[e]=t}function Bs(e){return js[e]||js[""]}function Hs(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Us=Object.create(null),ji=["https://api.simplesvg.com","https://api.unisvg.com"],Ir=[];for(;ji.length>0;)ji.length===1||Math.random()>.5?Ir.push(ji.shift()):Ir.push(ji.pop());Us[""]=Hs({resources:["https://api.iconify.design"].concat(Ir)});function lf(e,t){const n=Hs(t);return n===null?!1:(Us[e]=n,!0)}function Ws(e){return Us[e]}let dl=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function cf(e,t){const n=Ws(e);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let r=0;n.resources.forEach(o=>{r=Math.max(r,o.length)});const s=t+".json?icons=";i=n.maxURL-r-n.path.length-s.length}return i}function uf(e){return e===404}const hf=(e,t,n)=>{const i=[],r=cf(e,t),s="icons";let o={type:s,provider:e,prefix:t,icons:[]},l=0;return n.forEach((u,v)=>{l+=u.length+1,l>=r&&v>0&&(i.push(o),o={type:s,provider:e,prefix:t,icons:[]},l=u.length),o.icons.push(u)}),i.push(o),i};function ff(e){if(typeof e=="string"){const t=Ws(e);if(t)return t.path}return"/"}const df={prepare:hf,send:(e,t,n)=>{if(!dl){n("abort",424);return}let i=ff(t.provider);switch(t.type){case"icons":{const s=t.prefix,l=t.icons.join(","),u=new URLSearchParams({icons:l});i+=s+".json?"+u.toString();break}case"custom":{const s=t.uri;i+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;dl(e+i).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(uf(o)?"abort":"next",o)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})}};function pf(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let i={provider:"",prefix:"",name:""};return e.forEach(r=>{if(i.name===r.name&&i.prefix===r.prefix&&i.provider===r.provider)return;i=r;const s=r.provider,o=r.prefix,l=r.name,u=n[s]||(n[s]=Object.create(null)),v=u[o]||(u[o]=Hn(s,o));let y;l in v.icons?y=t.loaded:o===""||v.missing.has(l)?y=t.missing:y=t.pending;const g={provider:s,prefix:o,name:l};y.push(g)}),t}function pl(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(r=>r.id!==t))})}function mf(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const i=e.provider,r=e.prefix;t.forEach(s=>{const o=s.icons,l=o.pending.length;o.pending=o.pending.filter(u=>{if(u.prefix!==r)return!0;const v=u.name;if(e.icons[v])o.loaded.push({provider:i,prefix:r,name:v});else if(e.missing.has(v))o.missing.push({provider:i,prefix:r,name:v});else return n=!0,!0;return!1}),o.pending.length!==l&&(n||pl([e],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let gf=0;function vf(e,t,n){const i=gf++,r=pl.bind(null,n,i);if(!t.pending.length)return r;const s={id:i,icons:t,callback:e,abort:r};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),r}function yf(e,t=!0,n=!1){const i=[];return e.forEach(r=>{const s=typeof r=="string"?Sr(r,t,n):r;s&&i.push(s)}),i}var _f={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function xf(e,t,n,i){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let o;if(e.random){let U=e.resources.slice(0);for(o=[];U.length>1;){const R=Math.floor(Math.random()*U.length);o.push(U[R]),U=U.slice(0,R).concat(U.slice(R+1))}o=o.concat(U)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));const l=Date.now();let u="pending",v=0,y,g=null,m=[],x=[];typeof i=="function"&&x.push(i);function I(){g&&(clearTimeout(g),g=null)}function k(){u==="pending"&&(u="aborted"),I(),m.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),m=[]}function A(U,R){R&&(x=[]),typeof U=="function"&&x.push(U)}function $(){return{startTime:l,payload:t,status:u,queriesSent:v,queriesPending:m.length,subscribe:A,abort:k}}function P(){u="failed",x.forEach(U=>{U(void 0,y)})}function O(){m.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),m=[]}function D(U,R,rt){const ct=R!=="success";switch(m=m.filter(mt=>mt!==U),u){case"pending":break;case"failed":if(ct||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){y=rt,P();return}if(ct){y=rt,m.length||(o.length?W():P());return}if(I(),O(),!e.random){const mt=e.resources.indexOf(U.resource);mt!==-1&&mt!==e.index&&(e.index=mt)}u="completed",x.forEach(mt=>{mt(rt)})}function W(){if(u!=="pending")return;I();const U=o.shift();if(U===void 0){if(m.length){g=setTimeout(()=>{I(),u==="pending"&&(O(),P())},e.timeout);return}P();return}const R={status:"pending",resource:U,callback:(rt,ct)=>{D(R,rt,ct)}};m.push(R),v++,g=setTimeout(W,e.rotate),n(U,t,R.callback)}return setTimeout(W),$}function ml(e){const t={..._f,...e};let n=[];function i(){n=n.filter(l=>l().status==="pending")}function r(l,u,v){const y=xf(t,l,u,(g,m)=>{i(),v&&v(g,m)});return n.push(y),y}function s(l){return n.find(u=>l(u))||null}return{query:r,find:s,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:i}}function gl(){}const qs=Object.create(null);function bf(e){if(!qs[e]){const t=Ws(e);if(!t)return;const n=ml(t),i={config:t,redundancy:n};qs[e]=i}return qs[e]}function wf(e,t,n){let i,r;if(typeof e=="string"){const s=Bs(e);if(!s)return n(void 0,424),gl;r=s.send;const o=bf(e);o&&(i=o.redundancy)}else{const s=Hs(e);if(s){i=ml(s);const o=e.resources?e.resources[0]:"",l=Bs(o);l&&(r=l.send)}}return!i||!r?(n(void 0,424),gl):i.query(t,r,n)().abort}const vl="iconify2",Bi="iconify",yl=Bi+"-count",_l=Bi+"-version",xl=36e5,Ef=168,Cf=50;function Ys(e,t){try{return e.getItem(t)}catch{}}function Xs(e,t,n){try{return e.setItem(t,n),!0}catch{}}function bl(e,t){try{e.removeItem(t)}catch{}}function Ks(e,t){return Xs(e,yl,t.toString())}function Zs(e){return parseInt(Ys(e,yl))||0}const Nr={local:!0,session:!0},wl={local:new Set,session:new Set};let Qs=!1;function Sf(e){Qs=e}let Or=typeof window>"u"?{}:window;function El(e){const t=e+"Storage";try{if(Or&&Or[t]&&typeof Or[t].length=="number")return Or[t]}catch{}Nr[e]=!1}function Cl(e,t){const n=El(e);if(!n)return;const i=Ys(n,_l);if(i!==vl){if(i){const l=Zs(n);for(let u=0;u<l;u++)bl(n,Bi+u.toString())}Xs(n,_l,vl),Ks(n,0);return}const r=Math.floor(Date.now()/xl)-Ef,s=l=>{const u=Bi+l.toString(),v=Ys(n,u);if(typeof v=="string"){try{const y=JSON.parse(v);if(typeof y=="object"&&typeof y.cached=="number"&&y.cached>r&&typeof y.provider=="string"&&typeof y.data=="object"&&typeof y.data.prefix=="string"&&t(y,l))return!0}catch{}bl(n,u)}};let o=Zs(n);for(let l=o-1;l>=0;l--)s(l)||(l===o-1?(o--,Ks(n,o)):wl[e].add(l))}function Sl(){if(!Qs){Sf(!0);for(const e in Nr)Cl(e,t=>{const n=t.data,i=t.provider,r=n.prefix,s=Hn(i,r);if(!Gs(s,n).length)return!1;const o=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,o):o,!0})}}function kf(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in Nr)Cl(i,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Tf(e,t){Qs||Sl();function n(i){let r;if(!Nr[i]||!(r=El(i)))return;const s=wl[i];let o;if(s.size)s.delete(o=Array.from(s).shift());else if(o=Zs(r),o>=Cf||!Ks(r,o+1))return;const l={cached:Math.floor(Date.now()/xl),provider:e.provider,data:t};return Xs(r,Bi+o.toString(),JSON.stringify(l))}t.lastModified&&!kf(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function kl(){}function Pf(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mf(e)}))}function If(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:i}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=Bs(n)))return;s.prepare(n,i,r).forEach(l=>{wf(n,l,u=>{if(typeof u!="object")l.icons.forEach(v=>{e.missing.add(v)});else try{const v=Gs(e,u);if(!v.length)return;const y=e.pendingIcons;y&&v.forEach(g=>{y.delete(g)}),Tf(e,u)}catch(v){console.error(v)}Pf(e)})})}))}const Nf=(e,t)=>{const n=yf(e,!0,cl()),i=pf(n);if(!i.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(i.loaded,i.missing,i.pending,kl)}),()=>{u=!1}}const r=Object.create(null),s=[];let o,l;return i.pending.forEach(u=>{const{provider:v,prefix:y}=u;if(y===l&&v===o)return;o=v,l=y,s.push(Hn(v,y));const g=r[v]||(r[v]=Object.create(null));g[y]||(g[y]=[])}),i.pending.forEach(u=>{const{provider:v,prefix:y,name:g}=u,m=Hn(v,y),x=m.pendingIcons||(m.pendingIcons=new Set);x.has(g)||(x.add(g),r[v][y].push(g))}),s.forEach(u=>{const{provider:v,prefix:y}=u;r[v][y].length&&If(u,r[v][y])}),t?vf(t,i,s):kl};function Of(e,t){const n={...e};for(const i in t){const r=t[i],s=typeof r;i in ul?(r===null||r&&(s==="string"||s==="number"))&&(n[i]=r):s===typeof n[i]&&(n[i]=i==="rotate"?r%4:r)}return n}const Mf=/[\s,]+/;function Af(e,t){t.split(Mf).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Lf(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function i(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:i(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?i(s):0)}}return t}function Rf(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Df(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ff(e){return"data:image/svg+xml,"+Df(e)}function Vf(e){return'url("'+Ff(e)+'")'}const Tl={...hl,inline:!1},$f={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zf={display:"inline-block"},Js={backgroundColor:"currentColor"},Pl={backgroundColor:"transparent"},Il={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Nl={webkitMask:Js,mask:Js,background:Pl};for(const e in Nl){const t=Nl[e];for(const n in Il)t[e+n]=Il[n]}const Mr={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Mr[e+"-flip"]=t,Mr[e.slice(0,1)+"-flip"]=t,Mr[e+"Flip"]=t});function Ol(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ml=(e,t)=>{const n=Of(Tl,t),i={...$f},r=t.mode||"svg",s={},o=t.style,l=typeof o=="object"&&!(o instanceof Array)?o:{};for(let k in t){const A=t[k];if(A!==void 0)switch(k){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[k]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Af(n,A);break;case"color":s.color=A;break;case"rotate":typeof A=="string"?n[k]=Lf(A):typeof A=="number"&&(n[k]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete i["aria-hidden"];break;default:{const $=Mr[k];$?(A===!0||A==="true"||A===1)&&(n[$]=!0):Tl[k]===void 0&&(i[k]=A)}}}const u=ef(e,n),v=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){i.style={...s,...l},Object.assign(i,v);let k=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),i.innerHTML=of(u.body,A?()=>A+"ID"+k++:"iconifyVue"),nl("svg",i)}const{body:y,width:g,height:m}=e,x=r==="mask"||(r==="bg"?!1:y.indexOf("currentColor")!==-1),I=Rf(y,{...v,width:g+"",height:m+""});return i.style={...s,"--svg":Vf(I),width:Ol(v.width),height:Ol(v.height),...zf,...x?Js:Pl,...l},nl("span",i)};if(cl(!0),af("",df),typeof document<"u"&&typeof window<"u"){Sl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!Yh(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const i="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;lf(n,r)||console.error(i)}catch{console.error(i)}}}}const Gf={...Pr,body:""},jf=Ut({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(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Sr(e,!1,!0))===null)return this.abortLoading(),null;const i=Wh(n);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:e,abort:Nf([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:i,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Ml(Gf,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ml({...Pr,...t.data},n)}}),Ar=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const Al=e=>{let t=null;switch(e){case"bin":t=/^[0-1]+$/;break;case"oct":t=/^(0b)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;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"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"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
31
+ **/function kd(){nd()}({}).NODE_ENV!=="production"&&kd();const bs=/^[a-z0-9]+(-[a-z0-9]+)*$/,xi=(t,e,n,s="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=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]:s,prefix:l,name:a};return e&&!wi(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return e&&!wi(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!wi(a,n)?null:a}return null},wi=(t,e)=>t?!!((t.provider===""||t.provider.match(bs))&&(e&&t.prefix===""||t.prefix.match(bs))&&t.name.match(bs)):!1,Kl=Object.freeze({left:0,top:0,width:16,height:16}),Ei=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ci=Object.freeze({...Kl,...Ei}),Kr=Object.freeze({...Ci,body:"",hidden:!1});function Pd(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Zl(t,e){const n=Pd(t,e);for(const s in Kr)s in Ei?s in t&&!(s in n)&&(n[s]=Ei[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Nd(t,e){const n=t.icons,s=t.aliases||Object.create(null),i=Object.create(null);function r(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=s[o]&&s[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),i}function Od(t,e,n){const s=t.icons,i=t.aliases||Object.create(null);let r={};function o(a){r=Zl(s[a]||i[a],r)}return o(e),n.forEach(o),Zl(t,r)}function Ql(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(i=>{e(i,null),n.push(i)});const s=Nd(t);for(const i in s){const r=s[i];r&&(e(i,Od(t,i,r)),n.push(i))}return n}const Id={provider:"",aliases:{},not_found:{},...Kl};function Zr(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Jl(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Zr(t,Id))return null;const n=e.icons;for(const i in n){const r=n[i];if(!i.match(bs)||typeof r.body!="string"||!Zr(r,Kr))return null}const s=e.aliases||Object.create(null);for(const i in s){const r=s[i],o=r.parent;if(!i.match(bs)||typeof o!="string"||!n[o]&&!s[o]||!Zr(r,Kr))return null}return e}const ec=Object.create(null);function Md(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function An(t,e){const n=ec[t]||(ec[t]=Object.create(null));return n[e]||(n[e]=Md(t,e))}function Qr(t,e){return Jl(e)?Ql(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Dd(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let xs=!1;function tc(t){return typeof t=="boolean"&&(xs=t),xs}function Ad(t){const e=typeof t=="string"?xi(t,!0,xs):t;if(e){const n=An(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Rd(t,e){const n=xi(t,!0,xs);if(!n)return!1;const s=An(n.provider,n.prefix);return Dd(s,n.name,e)}function $d(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),xs&&!e&&!t.prefix){let i=!1;return Jl(t)&&(t.prefix="",Ql(t,(r,o)=>{o&&Rd(r,o)&&(i=!0)})),i}const n=t.prefix;if(!wi({provider:e,prefix:n,name:"a"}))return!1;const s=An(e,n);return!!Qr(s,t)}const nc=Object.freeze({width:null,height:null}),sc=Object.freeze({...nc,...Ei}),Ld=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ic(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(Ld);if(s===null||!s.length)return t;const i=[];let r=s.shift(),o=Fd.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*e*n)/n)}else i.push(r);if(r=s.shift(),r===void 0)return i.join("");o=!o}}function Vd(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const i=t.indexOf(">",s),r=t.indexOf("</"+e);if(i===-1||r===-1)break;const o=t.indexOf(">",r);if(o===-1)break;n+=t.slice(i+1,r).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:n,content:t}}function Gd(t,e){return t?"<defs>"+t+"</defs>"+e:e}function zd(t,e,n){const s=Vd(t);return Gd(s.defs,e+s.content+n)}const jd=t=>t==="unset"||t==="undefined"||t==="none";function Hd(t,e){const n={...Ci,...t},s={...sc,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(v=>{const y=[],E=v.hFlip,C=v.vFlip;let w=v.rotate;E?C?w+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):C&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=i.height/2+i.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),y.length&&(r=zd(r,'<g transform="'+y.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=ic(h,l/c)):(u=o==="auto"?l:o,h=a===null?ic(u,c/l):a==="auto"?c:a);const f={},d=(v,y)=>{jd(y)||(f[v]=y.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 Bd=/\sid="(\S+)"/g,Ud="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Wd=0;function Yd(t,e=Ud){const n=[];let s;for(;s=Bd.exec(t);)n.push(s[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const o=typeof e=="function"?e(r):e+(Wd++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}const Jr=Object.create(null);function Xd(t,e){Jr[t]=e}function eo(t){return Jr[t]||Jr[""]}function to(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const no=Object.create(null),ws=["https://api.simplesvg.com","https://api.unisvg.com"],Ti=[];for(;ws.length>0;)ws.length===1||Math.random()>.5?Ti.push(ws.shift()):Ti.push(ws.pop());no[""]=to({resources:["https://api.iconify.design"].concat(Ti)});function qd(t,e){const n=to(e);return n===null?!1:(no[t]=n,!0)}function so(t){return no[t]}let rc=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Kd(t,e){const n=so(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const r=e+".json?icons=";s=n.maxURL-i-n.path.length-r.length}return s}function Zd(t){return t===404}const Qd=(t,e,n)=>{const s=[],i=Kd(t,e),r="icons";let o={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(s.push(o),o={type:r,provider:t,prefix:e,icons:[]},a=l.length),o.icons.push(l)}),s.push(o),s};function Jd(t){if(typeof t=="string"){const e=so(t);if(e)return e.path}return"/"}const ep={prepare:Qd,send:(t,e,n)=>{if(!rc){n("abort",424);return}let s=Jd(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});s+=r+".json?"+l.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let i=503;rc(t+s).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{n(Zd(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",i)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",i)})}};function tp(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.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 s={provider:"",prefix:"",name:""};return t.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const r=i.provider,o=i.prefix,a=i.name,l=n[r]||(n[r]=Object.create(null)),c=l[o]||(l[o]=An(r,o));let u;a in c.icons?u=e.loaded:o===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),e}function oc(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(i=>i.id!==e))})}function np(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,i=t.prefix;e.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(t.icons[c])o.loaded.push({provider:s,prefix:i,name:c});else if(t.missing.has(c))o.missing.push({provider:s,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||oc([t],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let sp=0;function ip(t,e,n){const s=sp++,i=oc.bind(null,n,s);if(!e.pending.length)return i;const r={id:s,icons:e,callback:t,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function rp(t,e=!0,n=!1){const s=[];return t.forEach(i=>{const r=typeof i=="string"?xi(i,e,n):i;r&&s.push(r)}),s}var op={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ap(t,e,n,s){const i=t.resources.length,r=t.random?Math.floor(Math.random()*i):t.index;let o;if(t.random){let O=t.resources.slice(0);for(o=[];O.length>1;){const R=Math.floor(Math.random()*O.length);o.push(O[R]),O=O.slice(0,R).concat(O.slice(R+1))}o=o.concat(O)}else o=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof s=="function"&&d.push(s);function m(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),m(),f.forEach(O=>{O.status==="pending"&&(O.status="aborted")}),f=[]}function y(O,R){R&&(d=[]),typeof O=="function"&&d.push(O)}function E(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:y,abort:v}}function C(){l="failed",d.forEach(O=>{O(void 0,u)})}function w(){f.forEach(O=>{O.status==="pending"&&(O.status="aborted")}),f=[]}function S(O,R,le){const ue=R!=="success";switch(f=f.filter(pe=>pe!==O),l){case"pending":break;case"failed":if(ue||!t.dataAfterTimeout)return;break;default:return}if(R==="abort"){u=le,C();return}if(ue){u=le,f.length||(o.length?$():C());return}if(m(),w(),!t.random){const pe=t.resources.indexOf(O.resource);pe!==-1&&pe!==t.index&&(t.index=pe)}l="completed",d.forEach(pe=>{pe(le)})}function $(){if(l!=="pending")return;m();const O=o.shift();if(O===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(w(),C())},t.timeout);return}C();return}const R={status:"pending",resource:O,callback:(le,ue)=>{S(R,le,ue)}};f.push(R),c++,h=setTimeout($,t.rotate),n(O,e,R.callback)}return setTimeout($),E}function ac(t){const e={...op,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function i(a,l,c){const u=ap(e,a,l,(h,f)=>{s(),c&&c(h,f)});return n.push(u),u}function r(a){return n.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function lc(){}const io=Object.create(null);function lp(t){if(!io[t]){const e=so(t);if(!e)return;const n=ac(e),s={config:e,redundancy:n};io[t]=s}return io[t]}function cp(t,e,n){let s,i;if(typeof t=="string"){const r=eo(t);if(!r)return n(void 0,424),lc;i=r.send;const o=lp(t);o&&(s=o.redundancy)}else{const r=to(t);if(r){s=ac(r);const o=t.resources?t.resources[0]:"",a=eo(o);a&&(i=a.send)}}return!s||!i?(n(void 0,424),lc):s.query(e,i,n)().abort}const cc="iconify2",Es="iconify",uc=Es+"-count",hc=Es+"-version",fc=36e5,up=168,hp=50;function ro(t,e){try{return t.getItem(e)}catch{}}function oo(t,e,n){try{return t.setItem(e,n),!0}catch{}}function dc(t,e){try{t.removeItem(e)}catch{}}function ao(t,e){return oo(t,uc,e.toString())}function lo(t){return parseInt(ro(t,uc))||0}const Si={local:!0,session:!0},pc={local:new Set,session:new Set};let co=!1;function fp(t){co=t}let ki=typeof window>"u"?{}:window;function mc(t){const e=t+"Storage";try{if(ki&&ki[e]&&typeof ki[e].length=="number")return ki[e]}catch{}Si[t]=!1}function gc(t,e){const n=mc(t);if(!n)return;const s=ro(n,hc);if(s!==cc){if(s){const a=lo(n);for(let l=0;l<a;l++)dc(n,Es+l.toString())}oo(n,hc,cc),ao(n,0);return}const i=Math.floor(Date.now()/fc)-up,r=a=>{const l=Es+a.toString(),c=ro(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}dc(n,l)}};let o=lo(n);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,ao(n,o)):pc[t].add(a))}function _c(){if(!co){fp(!0);for(const t in Si)gc(t,e=>{const n=e.data,s=e.provider,i=n.prefix,r=An(s,i);if(!Qr(r,n).length)return!1;const o=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function dp(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in Si)gc(s,i=>{const r=i.data;return i.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function pp(t,e){co||_c();function n(s){let i;if(!Si[s]||!(i=mc(s)))return;const r=pc[s];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=lo(i),o>=hp||!ao(i,o+1))return;const a={cached:Math.floor(Date.now()/fc),provider:t.provider,data:e};return oo(i,Es+o.toString(),JSON.stringify(a))}e.lastModified&&!dp(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function vc(){}function mp(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,np(t)}))}function gp(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,i=t.iconsToLoad;delete t.iconsToLoad;let r;if(!i||!(r=eo(n)))return;r.prepare(n,s,i).forEach(a=>{cp(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{t.missing.add(c)});else try{const c=Qr(t,l);if(!c.length)return;const u=t.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),pp(t,l)}catch(c){console.error(c)}mp(t)})})}))}const _p=(t,e)=>{const n=rp(t,!0,tc()),s=tp(n);if(!s.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(s.loaded,s.missing,s.pending,vc)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(An(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=An(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&&gp(l,i[c][u])}),e?ip(e,s,r):vc};function vp(t,e){const n={...t};for(const s in e){const i=e[s],r=typeof i;s in nc?(i===null||i&&(r==="string"||r==="number"))&&(n[s]=i):r===typeof n[s]&&(n[s]=s==="rotate"?i%4:i)}return n}const yp=/[\s,]+/;function bp(t,e){e.split(yp).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function xp(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(t);return isNaN(i)?0:s(i)}else if(n!==t){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/i,r%1===0?s(r):0)}}return e}function wp(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Ep(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Cp(t){return"data:image/svg+xml,"+Ep(t)}function Tp(t){return'url("'+Cp(t)+'")'}const yc={...sc,inline:!1},Sp={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},kp={display:"inline-block"},uo={backgroundColor:"currentColor"},bc={backgroundColor:"transparent"},xc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},wc={webkitMask:uo,mask:uo,background:bc};for(const t in wc){const e=wc[t];for(const n in xc)e[t+n]=xc[n]}const Pi={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";Pi[t+"-flip"]=e,Pi[t.slice(0,1)+"-flip"]=e,Pi[t+"Flip"]=e});function Ec(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Cc=(t,e)=>{const n=vp(yc,e),s={...Sp},i=e.mode||"svg",r={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in e){const y=e[v];if(y!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&bp(n,y);break;case"color":r.color=y;break;case"rotate":typeof y=="string"?n[v]=xp(y):typeof y=="number"&&(n[v]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete s["aria-hidden"];break;default:{const E=Pi[v];E?(y===!0||y==="true"||y===1)&&(n[E]=!0):yc[v]===void 0&&(s[v]=y)}}}const l=Hd(t,n),c=l.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),i==="svg"){s.style={...r,...a},Object.assign(s,c);let v=0,y=e.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),s.innerHTML=Yd(l.body,y?()=>y+"ID"+v++:"iconifyVue"),xt("svg",s)}const{body:u,width:h,height:f}=t,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=wp(u,{...c,width:h+"",height:f+""});return s.style={...r,"--svg":Tp(m),width:Ec(c.width),height:Ec(c.height),...kp,...d?uo:bc,...a},xt("span",s)};if(tc(!0),Xd("",ep),typeof document<"u"&&typeof window<"u"){_c();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!$d(s))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const s="IconifyProviders["+n+"] is invalid.";try{const i=e[n];if(typeof i!="object"||!i||i.resources===void 0)continue;qd(n,i)||console.error(s)}catch{console.error(s)}}}}const Pp={...Ci,body:""},Np=J({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(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=xi(t,!1,!0))===null)return this.abortLoading(),null;const s=Ad(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:_p([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:s,classes:i}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!e)return Cc(Pp,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),Cc({...Ci,...e.data},n)}}),Tc=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const ho=t=>{let e=null;switch(t){case"any-character":e=/[^]/;break;case"bin":e=/^(0b)?[0-1]+$/;break;case"oct":e=/^(0o)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":e=/\s*,\s*/gi;break;case"svg-segment":e=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":e=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((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"whitespace":e=/[\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":e=/[\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":e=/^\s+|\s+$/g;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":e=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":e=/^\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":e=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
29
32
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
30
33
  |[\u{4E00}-\u{9FCC}]
31
34
  |[\u{3400}-\u{4DB5}]
@@ -34,24 +37,73 @@ Component that was made reactive: `,e)),B(e,t,n,i,r,o,s,!0)}function Oh(e){retur
34
37
  |[\u{2B740}-\u{2B81D}]
35
38
  |[\u{2B820}-\u{2CEAF}]
36
39
  |[\u{2CEB0}-\u{2EBEF}]
37
- `.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};function Ll(e){const t={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(e){t.matchIndex=typeof e.index=="number"?e.index:-1;for(let n=0,i=e.length;n<i;n++)n==0?t.fullMatch=e[n]:t.groupMatchs.push(e[n])}return t}const Bf=(e,t)=>{typeof e=="string"&&(e=Al(e)||new RegExp(e));const n=t.match(e);return Ll(n)},Rl=(e,t)=>{typeof e=="string"&&(e=Al(e)||new RegExp(e));const n=[],i=t.matchAll(e);for(const r of i)n.push(Ll(r));return n};function Dl(e){return e.replace(/(^\w|[_-]\w)/g,function(t){return t.slice(-1).toUpperCase()})}function Hf(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Uf(e){return Hf(e)==="object"}function Fl(e,t=new WeakMap){if(e==null)return e;if(e.constructor===Date)return new Date(e);if(e.constructor===RegExp)return new RegExp(e);if(typeof e!="object")return e;if(t.has(e))return t.get(e);const n=Object.getOwnPropertyDescriptors(e),i=Object.create(Object.getPrototypeOf(e),n);t.set(e,i);for(const r of Reflect.ownKeys(e))i[r]=Uf(e[r])?Fl(e[r],t):e[r];return i}function Hi(e,t){const n=e.length,i=t.length;for(let s=0;s<i;s++)e[s]=t[s];let r=Math.max(0,n-i);for(;r>0;)e.pop(),r--}function Vl(e,t=12){return+e.toPrecision(t)}class $l{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t,this.rs=new ReadableStream({start:async n=>{this.controller=n}})}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 n=await Promise.allSettled(t.map(i=>i()));this.results.push(...n),n.forEach(i=>{i.status=="fulfilled"?this.controller?.enqueue(i.value):i.status=="rejected"&&this.controller?.enqueue(new Error(i.reason))}),this.activeTaskCount-=n.length}}}var Wf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function to(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zl={exports:{}},ri=typeof Reflect=="object"?Reflect:null,Gl=ri&&typeof ri.apply=="function"?ri.apply:function(t,n,i){return Function.prototype.apply.call(t,n,i)},Lr;ri&&typeof ri.ownKeys=="function"?Lr=ri.ownKeys:Object.getOwnPropertySymbols?Lr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Lr=function(t){return Object.getOwnPropertyNames(t)};function qf(e){console&&console.warn&&console.warn(e)}var jl=Number.isNaN||function(t){return t!==t};function qt(){qt.init.call(this)}zl.exports=qt,zl.exports.once=Zf,qt.EventEmitter=qt,qt.prototype._events=void 0,qt.prototype._eventsCount=0,qt.prototype._maxListeners=void 0;var Bl=10;function Rr(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qt,"defaultMaxListeners",{enumerable:!0,get:function(){return Bl},set:function(e){if(typeof e!="number"||e<0||jl(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Bl=e}}),qt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},qt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||jl(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Hl(e){return e._maxListeners===void 0?qt.defaultMaxListeners:e._maxListeners}qt.prototype.getMaxListeners=function(){return Hl(this)},qt.prototype.emit=function(t){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var r=t==="error",s=this._events;if(s!==void 0)r=r&&s.error===void 0;else if(!r)return!1;if(r){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var u=s[t];if(u===void 0)return!1;if(typeof u=="function")Gl(u,this,n);else for(var v=u.length,y=Xl(u,v),i=0;i<v;++i)Gl(y[i],this,n);return!0};function Ul(e,t,n,i){var r,s,o;if(Rr(n),s=e._events,s===void 0?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),o===void 0)o=s[t]=n,++e._eventsCount;else if(typeof o=="function"?o=s[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),r=Hl(e),r>0&&o.length>r&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,qf(l)}return e}qt.prototype.addListener=function(t,n){return Ul(this,t,n,!1)},qt.prototype.on=qt.prototype.addListener,qt.prototype.prependListener=function(t,n){return Ul(this,t,n,!0)};function Yf(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Wl(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=Yf.bind(i);return r.listener=n,i.wrapFn=r,r}qt.prototype.once=function(t,n){return Rr(n),this.on(t,Wl(this,t,n)),this},qt.prototype.prependOnceListener=function(t,n){return Rr(n),this.prependListener(t,Wl(this,t,n)),this},qt.prototype.removeListener=function(t,n){var i,r,s,o,l;if(Rr(n),r=this._events,r===void 0)return this;if(i=r[t],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||n));else if(typeof i!="function"){for(s=-1,o=i.length-1;o>=0;o--)if(i[o]===n||i[o].listener===n){l=i[o].listener,s=o;break}if(s<0)return this;s===0?i.shift():Xf(i,s),i.length===1&&(r[t]=i[0]),r.removeListener!==void 0&&this.emit("removeListener",t,l||n)}return this},qt.prototype.off=qt.prototype.removeListener,qt.prototype.removeAllListeners=function(t){var n,i,r;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),o;for(r=0;r<s.length;++r)o=s[r],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=i[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(r=n.length-1;r>=0;r--)this.removeListener(t,n[r]);return this};function ql(e,t,n){var i=e._events;if(i===void 0)return[];var r=i[t];return r===void 0?[]:typeof r=="function"?n?[r.listener||r]:[r]:n?Kf(r):Xl(r,r.length)}qt.prototype.listeners=function(t){return ql(this,t,!0)},qt.prototype.rawListeners=function(t){return ql(this,t,!1)},qt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Yl.call(e,t)},qt.prototype.listenerCount=Yl;function Yl(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}qt.prototype.eventNames=function(){return this._eventsCount>0?Lr(this._events):[]};function Xl(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function Xf(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Kf(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function Zf(e,t){return new Promise(function(n,i){function r(o){e.removeListener(t,s),i(o)}function s(){typeof e.removeListener=="function"&&e.removeListener("error",r),n([].slice.call(arguments))}Kl(e,t,s,{once:!0}),t!=="error"&&Qf(e,r,{once:!0})})}function Qf(e,t,n){typeof e.on=="function"&&Kl(e,"error",t,n)}function Kl(e,t,n,i){if(typeof e.on=="function")i.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function r(s){i.once&&e.removeEventListener(t,r),n(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}class Jf{events;constructor(){this.events={}}on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}addListener(t,n){this.on(t,n)}prependListener(t,n){this.events[t]||(this.events[t]=[]),this.events[t].unshift(n)}removeListener(t,n){this.events[t]&&(this.events[t]=this.events[t].filter(i=>i!==n))}off(t,n){this.removeListener(t,n)}removeAllListeners(t){t?this.events[t]=[]:this.events={}}emit(t,...n){this.events[t]&&this.events[t].forEach(i=>{Reflect.apply(i,this,n)})}once(t,n){const r=(()=>{let s=!1;return(...o)=>{s||(s=!0,Reflect.apply(n,this,o),this.off(t,r))}})();this.on(t,r)}}var Zl=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function td(e,t={}){var n=1,i=1;function r(it){var st=it.match(/\n/g);st&&(n+=st.length);var S=it.lastIndexOf(`
38
- `);i=~S?it.length-S:i+it.length}function s(){var it={line:n,column:i};return function(st){return st.position=new o(it),I(),st}}function o(it){this.start=it,this.end={line:n,column:i},this.source=t.source}o.prototype.content=e;var l=[];function u(it){var st=new Error(t.source+":"+n+":"+i+": "+it);if(st.reason=it,st.filename=t.source,st.line=n,st.column=i,st.source=e,t.silent)l.push(st);else throw st}function v(){var it=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:it,parsingErrors:l}}}function y(){return x(/^{\s*/)}function g(){return x(/^}/)}function m(){var it,st=[];for(I(),k(st);e.length&&e.charAt(0)!="}"&&(it=zt()||Q());)it!==!1&&(st.push(it),k(st));return st}function x(it){var st=it.exec(e);if(st){var S=st[0];return r(S),e=e.slice(S.length),st}}function I(){x(/^\s*/)}function k(it){var st;for(it=it||[];st=A();)st!==!1&&it.push(st);return it}function A(){var it=s();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var st=2;e.charAt(st)!=""&&(e.charAt(st)!="*"||e.charAt(st+1)!="/");)++st;if(st+=2,e.charAt(st-1)==="")return u("End of comment missing");var S=e.slice(2,st-2);return i+=2,r(S),e=e.slice(st),i+=2,it({type:"comment",comment:S})}}function $(){var it=x(/^([^{]+)/);if(it)return sn(it[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(st){return st.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(st){return st.replace(/\u200C/g,",")})}function P(){var it=s(),st=x(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(st){if(st=sn(st[0]),!x(/^:\s*/))return u("property missing ':'");var S=x(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),E=it({type:"declaration",property:st.replace(Zl,""),value:S?sn(S[0]).replace(Zl,""):""});return x(/^[;\s]*/),E}}function O(){var it=[];if(!y())return u("missing '{'");k(it);for(var st;st=P();)st!==!1&&(it.push(st),k(it));return g()?it:u("missing '}'")}function D(){for(var it,st=[],S=s();it=x(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)st.push(it[1]),x(/^,\s*/);if(st.length)return S({type:"keyframe",values:st,declarations:O()})}function W(){var it=s(),st=x(/^@([-\w]+)?keyframes\s*/);if(st){var S=st[1];if(st=x(/^([-\w]+)\s*/),!st)return u("@keyframes missing name");var E=st[1];if(!y())return u("@keyframes missing '{'");for(var b,N=k();b=D();)N.push(b),N=N.concat(k());return g()?it({type:"keyframes",name:E,vendor:S,keyframes:N}):u("@keyframes missing '}'")}}function U(){var it=s(),st=x(/^@supports *([^{]+)/);if(st){var S=sn(st[1]);if(!y())return u("@supports missing '{'");var E=k().concat(m());return g()?it({type:"supports",supports:S,rules:E}):u("@supports missing '}'")}}function R(){var it=s(),st=x(/^@host\s*/);if(st){if(!y())return u("@host missing '{'");var S=k().concat(m());return g()?it({type:"host",rules:S}):u("@host missing '}'")}}function rt(){var it=s(),st=x(/^@media *([^{]+)/);if(st){var S=sn(st[1]);if(!y())return u("@media missing '{'");var E=k().concat(m());return g()?it({type:"media",media:S,rules:E}):u("@media missing '}'")}}function ct(){var it=s(),st=x(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(st)return it({type:"custom-media",name:sn(st[1]),media:sn(st[2])})}function mt(){var it=s(),st=x(/^@page */);if(st){var S=$()||[];if(!y())return u("@page missing '{'");for(var E=k(),b;b=P();)E.push(b),E=E.concat(k());return g()?it({type:"page",selectors:S,declarations:E}):u("@page missing '}'")}}function ht(){var it=s(),st=x(/^@([-\w]+)?document *([^{]+)/);if(st){var S=sn(st[1]),E=sn(st[2]);if(!y())return u("@document missing '{'");var b=k().concat(m());return g()?it({type:"document",document:E,vendor:S,rules:b}):u("@document missing '}'")}}function lt(){var it=s(),st=x(/^@font-face\s*/);if(st){if(!y())return u("@font-face missing '{'");for(var S=k(),E;E=P();)S.push(E),S=S.concat(k());return g()?it({type:"font-face",declarations:S}):u("@font-face missing '}'")}}var gt=Dt("import"),ft=Dt("charset"),At=Dt("namespace");function Dt(it){var st=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var S=s(),E=x(st);if(E){var b={type:it};return b[it]=E[1].trim(),S(b)}}}function zt(){if(e[0]=="@")return W()||rt()||ct()||U()||gt()||ft()||At()||ht()||mt()||R()||lt()}function Q(){var it=s(),st=$();return st?(k(),it({type:"rule",selectors:st,declarations:O()})):u("selector missing")}return eo(v())}function sn(e){return e?e.replace(/^\s+|\s+$/g,""):""}function eo(e,t){var n=e&&typeof e.type=="string",i=n?e:t;for(var r in e){var s=e[r];Array.isArray(s)?s.forEach(function(o){eo(o,i)}):s&&typeof s=="object"&&eo(s,i)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const Ql=(e,t="image/svg+xml",n="utf-8")=>new Blob([e],{type:`${t};charset=${n}`}),ed=e=>new XMLSerializer().serializeToString(e),nd=(e,t="image/svg+xml",n="utf-8")=>Ql(ed(e),t,n),Jl=(e,t)=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof e=="string"?n.href=e:n.href=window.URL.createObjectURL(e),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href)};function tc(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function ec(){const e=tc();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function id(){const e=tc();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function nc(){const{clientWidth:e,clientHeight:t}=id();return{width:e,height:t}}function rd(e){const{top:t,left:n}=e.getBoundingClientRect(),i=ec();return{x:n+i.scrollLeft,y:t+i.scrollTop}}function sd(e){if("center"in e)return e.center;if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=ec();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function no(e,t){const n=sd(t),i=rd(e);return{x:n.x-i.x,y:n.y-i.y}}function ic(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const od=()=>{const e=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(e)?t="macOS":/win/i.test(e)?t="Windows":/android/i.test(e)?t="Android":/iphone|ipad|ipod/i.test(e)?t="iOS":/linux/i.test(e)?t="Linux":/bsd/i.test(e)&&(t="BSD"),t.toLowerCase()};function ad(){return od()==="macos"}function ld(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}const i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}const io=ld()!==-1;(()=>{const e=ic();return!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL)})(),function(){if(!ic().OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);var i=t.transferToImageBitmap();try{n.createPattern(i,"no-repeat")}catch{return!1}return!0}();function cd(e){var t=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=n;var i=100,r=function(){var s=Math.min(t.clientWidth,e);t.dataset.width=s,t.dataset.rem=i=Math.round(100*(s/e)),t.style.fontSize=i+"px"};r(),window.rem2px=function(s){return s=parseFloat(s),s*i},window.px2rem=function(s){return s=parseFloat(s),s/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}var rc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
39
- * http://hammerjs.github.io/
40
- *
41
- * Copyright (c) 2016 Jorik Tangelder;
42
- * Licensed under the MIT license */(function(e){(function(t,n,i,r){var s=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),l="function",u=Math.round,v=Math.abs,y=Date.now;function g(a,h,p){return setTimeout(O(a,p),h)}function m(a,h,p){return Array.isArray(a)?(x(a,p[h],p),!0):!1}function x(a,h,p){var _;if(a)if(a.forEach)a.forEach(h,p);else if(a.length!==r)for(_=0;_<a.length;)h.call(p,a[_],_,a),_++;else for(_ in a)a.hasOwnProperty(_)&&h.call(p,a[_],_,a)}function I(a,h,p){var _="DEPRECATED METHOD: "+h+`
43
- `+p+` AT
44
- `;return function(){var w=new Error("get-stack-trace"),C=w&&w.stack?w.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",M=t.console&&(t.console.warn||t.console.log);return M&&M.call(t.console,_,C),a.apply(this,arguments)}}var k;typeof Object.assign!="function"?k=function(h){if(h===r||h===null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(h),_=1;_<arguments.length;_++){var w=arguments[_];if(w!==r&&w!==null)for(var C in w)w.hasOwnProperty(C)&&(p[C]=w[C])}return p}:k=Object.assign;var A=I(function(h,p,_){for(var w=Object.keys(p),C=0;C<w.length;)(!_||_&&h[w[C]]===r)&&(h[w[C]]=p[w[C]]),C++;return h},"extend","Use `assign`."),$=I(function(h,p){return A(h,p,!0)},"merge","Use `assign`.");function P(a,h,p){var _=h.prototype,w;w=a.prototype=Object.create(_),w.constructor=a,w._super=_,p&&k(w,p)}function O(a,h){return function(){return a.apply(h,arguments)}}function D(a,h){return typeof a==l?a.apply(h&&h[0]||r,h):a}function W(a,h){return a===r?h:a}function U(a,h,p){x(mt(h),function(_){a.addEventListener(_,p,!1)})}function R(a,h,p){x(mt(h),function(_){a.removeEventListener(_,p,!1)})}function rt(a,h){for(;a;){if(a==h)return!0;a=a.parentNode}return!1}function ct(a,h){return a.indexOf(h)>-1}function mt(a){return a.trim().split(/\s+/g)}function ht(a,h,p){if(a.indexOf&&!p)return a.indexOf(h);for(var _=0;_<a.length;){if(p&&a[_][p]==h||!p&&a[_]===h)return _;_++}return-1}function lt(a){return Array.prototype.slice.call(a,0)}function gt(a,h,p){for(var _=[],w=[],C=0;C<a.length;){var M=h?a[C][h]:a[C];ht(w,M)<0&&_.push(a[C]),w[C]=M,C++}return p&&(h?_=_.sort(function(Y,H){return Y[h]>H[h]}):_=_.sort()),_}function ft(a,h){for(var p,_,w=h[0].toUpperCase()+h.slice(1),C=0;C<s.length;){if(p=s[C],_=p?p+w:h,_ in a)return _;C++}return r}var At=1;function Dt(){return At++}function zt(a){var h=a.ownerDocument||a;return h.defaultView||h.parentWindow||t}var Q=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,st=ft(t,"PointerEvent")!==r,S=it&&Q.test(navigator.userAgent),E="touch",b="pen",N="mouse",L="kinect",V=25,F=1,X=2,z=4,Z=8,at=1,pt=2,wt=4,Pt=8,Et=16,Nt=pt|wt,Lt=Pt|Et,Ft=Nt|Lt,yt=["x","y"],Xt=["clientX","clientY"];function Vt(a,h){var p=this;this.manager=a,this.callback=h,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(_){D(a.options.enable,[a])&&p.handler(_)},this.init()}Vt.prototype={handler:function(){},init:function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(zt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(zt(this.element),this.evWin,this.domHandler)}};function ee(a){var h,p=a.options.inputClass;return p?h=p:st?h=Fe:S?h=hn:it?h=di:h=We,new h(a,Ht)}function Ht(a,h,p){var _=p.pointers.length,w=p.changedPointers.length,C=h&F&&_-w===0,M=h&(z|Z)&&_-w===0;p.isFirst=!!C,p.isFinal=!!M,C&&(a.session={}),p.eventType=h,Ee(a,p),a.emit("hammer.input",p),a.recognize(p),a.session.prevInput=p}function Ee(a,h){var p=a.session,_=h.pointers,w=_.length;p.firstInput||(p.firstInput=Tn(h)),w>1&&!p.firstMultiple?p.firstMultiple=Tn(h):w===1&&(p.firstMultiple=!1);var C=p.firstInput,M=p.firstMultiple,G=M?M.center:C.center,Y=h.center=Ue(_);h.timeStamp=y(),h.deltaTime=h.timeStamp-C.timeStamp,h.angle=Ke(G,Y),h.distance=Xe(G,Y),fe(p,h),h.offsetDirection=an(h.deltaX,h.deltaY);var H=on(h.deltaTime,h.deltaX,h.deltaY);h.overallVelocityX=H.x,h.overallVelocityY=H.y,h.overallVelocity=v(H.x)>v(H.y)?H.x:H.y,h.scale=M?ce(M.pointers,_):1,h.rotation=M?ui(M.pointers,_):0,h.maxPointers=p.prevInput?h.pointers.length>p.prevInput.maxPointers?h.pointers.length:p.prevInput.maxPointers:h.pointers.length,Ye(p,h);var j=a.element;rt(h.srcEvent.target,j)&&(j=h.srcEvent.target),h.target=j}function fe(a,h){var p=h.center,_=a.offsetDelta||{},w=a.prevDelta||{},C=a.prevInput||{};(h.eventType===F||C.eventType===z)&&(w=a.prevDelta={x:C.deltaX||0,y:C.deltaY||0},_=a.offsetDelta={x:p.x,y:p.y}),h.deltaX=w.x+(p.x-_.x),h.deltaY=w.y+(p.y-_.y)}function Ye(a,h){var p=a.lastInterval||h,_=h.timeStamp-p.timeStamp,w,C,M,G;if(h.eventType!=Z&&(_>V||p.velocity===r)){var Y=h.deltaX-p.deltaX,H=h.deltaY-p.deltaY,j=on(_,Y,H);C=j.x,M=j.y,w=v(j.x)>v(j.y)?j.x:j.y,G=an(Y,H),a.lastInterval=h}else w=p.velocity,C=p.velocityX,M=p.velocityY,G=p.direction;h.velocity=w,h.velocityX=C,h.velocityY=M,h.direction=G}function Tn(a){for(var h=[],p=0;p<a.pointers.length;)h[p]={clientX:u(a.pointers[p].clientX),clientY:u(a.pointers[p].clientY)},p++;return{timeStamp:y(),pointers:h,center:Ue(h),deltaX:a.deltaX,deltaY:a.deltaY}}function Ue(a){var h=a.length;if(h===1)return{x:u(a[0].clientX),y:u(a[0].clientY)};for(var p=0,_=0,w=0;w<h;)p+=a[w].clientX,_+=a[w].clientY,w++;return{x:u(p/h),y:u(_/h)}}function on(a,h,p){return{x:h/a||0,y:p/a||0}}function an(a,h){return a===h?at:v(a)>=v(h)?a<0?pt:wt:h<0?Pt:Et}function Xe(a,h,p){p||(p=yt);var _=h[p[0]]-a[p[0]],w=h[p[1]]-a[p[1]];return Math.sqrt(_*_+w*w)}function Ke(a,h,p){p||(p=yt);var _=h[p[0]]-a[p[0]],w=h[p[1]]-a[p[1]];return Math.atan2(w,_)*180/Math.PI}function ui(a,h){return Ke(h[1],h[0],Xt)+Ke(a[1],a[0],Xt)}function ce(a,h){return Xe(h[0],h[1],Xt)/Xe(a[0],a[1],Xt)}var Ze={mousedown:F,mousemove:X,mouseup:z},Pn="mousedown",Te="mousemove mouseup";function We(){this.evEl=Pn,this.evWin=Te,this.pressed=!1,Vt.apply(this,arguments)}P(We,Vt,{handler:function(h){var p=Ze[h.type];p&F&&h.button===0&&(this.pressed=!0),p&X&&h.which!==1&&(p=z),this.pressed&&(p&z&&(this.pressed=!1),this.callback(this.manager,p,{pointers:[h],changedPointers:[h],pointerType:N,srcEvent:h}))}});var Me={pointerdown:F,pointermove:X,pointerup:z,pointercancel:Z,pointerout:Z},qn={2:E,3:b,4:N,5:L},ln="pointerdown",In="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(ln="MSPointerDown",In="MSPointerMove MSPointerUp MSPointerCancel");function Fe(){this.evEl=ln,this.evWin=In,Vt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}P(Fe,Vt,{handler:function(h){var p=this.store,_=!1,w=h.type.toLowerCase().replace("ms",""),C=Me[w],M=qn[h.pointerType]||h.pointerType,G=M==E,Y=ht(p,h.pointerId,"pointerId");C&F&&(h.button===0||G)?Y<0&&(p.push(h),Y=p.length-1):C&(z|Z)&&(_=!0),!(Y<0)&&(p[Y]=h,this.callback(this.manager,C,{pointers:p,changedPointers:[h],pointerType:M,srcEvent:h}),_&&p.splice(Y,1))}});var me={touchstart:F,touchmove:X,touchend:z,touchcancel:Z},Kr="touchstart",Nn="touchstart touchmove touchend touchcancel";function cn(){this.evTarget=Kr,this.evWin=Nn,this.started=!1,Vt.apply(this,arguments)}P(cn,Vt,{handler:function(h){var p=me[h.type];if(p===F&&(this.started=!0),!!this.started){var _=Qe.call(this,h,p);p&(z|Z)&&_[0].length-_[1].length===0&&(this.started=!1),this.callback(this.manager,p,{pointers:_[0],changedPointers:_[1],pointerType:E,srcEvent:h})}}});function Qe(a,h){var p=lt(a.touches),_=lt(a.changedTouches);return h&(z|Z)&&(p=gt(p.concat(_),"identifier",!0)),[p,_]}var hi={touchstart:F,touchmove:X,touchend:z,touchcancel:Z},un="touchstart touchmove touchend touchcancel";function hn(){this.evTarget=un,this.targetIds={},Vt.apply(this,arguments)}P(hn,Vt,{handler:function(h){var p=hi[h.type],_=Yn.call(this,h,p);_&&this.callback(this.manager,p,{pointers:_[0],changedPointers:_[1],pointerType:E,srcEvent:h})}});function Yn(a,h){var p=lt(a.touches),_=this.targetIds;if(h&(F|X)&&p.length===1)return _[p[0].identifier]=!0,[p,p];var w,C,M=lt(a.changedTouches),G=[],Y=this.target;if(C=p.filter(function(H){return rt(H.target,Y)}),h===F)for(w=0;w<C.length;)_[C[w].identifier]=!0,w++;for(w=0;w<M.length;)_[M[w].identifier]&&G.push(M[w]),h&(z|Z)&&delete _[M[w].identifier],w++;if(G.length)return[gt(C.concat(G),"identifier",!0),G]}var fi=2500,Zr=25;function di(){Vt.apply(this,arguments);var a=O(this.handler,this);this.touch=new hn(this.manager,a),this.mouse=new We(this.manager,a),this.primaryTouch=null,this.lastTouches=[]}P(di,Vt,{handler:function(h,p,_){var w=_.pointerType==E,C=_.pointerType==N;if(!(C&&_.sourceCapabilities&&_.sourceCapabilities.firesTouchEvents)){if(w)Qr.call(this,p,_);else if(C&&fn.call(this,_))return;this.callback(h,p,_)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Qr(a,h){a&F?(this.primaryTouch=h.changedPointers[0].identifier,Jr.call(this,h)):a&(z|Z)&&Jr.call(this,h)}function Jr(a){var h=a.changedPointers[0];if(h.identifier===this.primaryTouch){var p={x:h.clientX,y:h.clientY};this.lastTouches.push(p);var _=this.lastTouches,w=function(){var C=_.indexOf(p);C>-1&&_.splice(C,1)};setTimeout(w,fi)}}function fn(a){for(var h=a.srcEvent.clientX,p=a.srcEvent.clientY,_=0;_<this.lastTouches.length;_++){var w=this.lastTouches[_],C=Math.abs(h-w.x),M=Math.abs(p-w.y);if(C<=Zr&&M<=Zr)return!0}return!1}var ts=ft(o.style,"touchAction"),es=ts!==r,ns="compute",is="auto",pi="manipulation",dn="none",Pe="pan-x",pn="pan-y",On=Mn();function $t(a,h){this.manager=a,this.set(h)}$t.prototype={set:function(a){a==ns&&(a=this.compute()),es&&this.manager.element.style&&On[a]&&(this.manager.element.style[ts]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return x(this.manager.recognizers,function(h){D(h.options.enable,[h])&&(a=a.concat(h.getTouchAction()))}),rs(a.join(" "))},preventDefaults:function(a){var h=a.srcEvent,p=a.offsetDirection;if(this.manager.session.prevented){h.preventDefault();return}var _=this.actions,w=ct(_,dn)&&!On[dn],C=ct(_,pn)&&!On[pn],M=ct(_,Pe)&&!On[Pe];if(w){var G=a.pointers.length===1,Y=a.distance<2,H=a.deltaTime<250;if(G&&Y&&H)return}if(!(M&&C)&&(w||C&&p&Nt||M&&p&Lt))return this.preventSrc(h)},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};function rs(a){if(ct(a,dn))return dn;var h=ct(a,Pe),p=ct(a,pn);return h&&p?dn:h||p?h?Pe:pn:ct(a,pi)?pi:is}function Mn(){if(!es)return!1;var a={},h=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(p){a[p]=h?t.CSS.supports("touch-action",p):!0}),a}var Xn=1,ge=2,Je=4,qe=8,Ve=qe,mn=16,Zt=32;function Ct(a){this.options=k({},this.defaults,a||{}),this.id=Dt(),this.manager=null,this.options.enable=W(this.options.enable,!0),this.state=Xn,this.simultaneous={},this.requireFail=[]}Ct.prototype={defaults:{},set:function(a){return k(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(m(a,"recognizeWith",this))return this;var h=this.simultaneous;return a=An(a,this),h[a.id]||(h[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return m(a,"dropRecognizeWith",this)?this:(a=An(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(m(a,"requireFailure",this))return this;var h=this.requireFail;return a=An(a,this),ht(h,a)===-1&&(h.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(m(a,"dropRequireFailure",this))return this;a=An(a,this);var h=ht(this.requireFail,a);return h>-1&&this.requireFail.splice(h,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){var h=this,p=this.state;function _(w){h.manager.emit(w,a)}p<qe&&_(h.options.event+nr(p)),_(h.options.event),a.additionalEvent&&_(a.additionalEvent),p>=qe&&_(h.options.event+nr(p))},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=Zt},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(Zt|Xn)))return!1;a++}return!0},recognize:function(a){var h=k({},a);if(!D(this.options.enable,[this,h])){this.reset(),this.state=Zt;return}this.state&(Ve|mn|Zt)&&(this.state=Xn),this.state=this.process(h),this.state&(ge|Je|qe|mn)&&this.tryEmit(h)},process:function(a){},getTouchAction:function(){},reset:function(){}};function nr(a){return a&mn?"cancel":a&qe?"end":a&Je?"move":a&ge?"start":""}function mi(a){return a==Et?"down":a==Pt?"up":a==pt?"left":a==wt?"right":""}function An(a,h){var p=h.manager;return p?p.get(a):a}function Ae(){Ct.apply(this,arguments)}P(Ae,Ct,{defaults:{pointers:1},attrTest:function(a){var h=this.options.pointers;return h===0||a.pointers.length===h},process:function(a){var h=this.state,p=a.eventType,_=h&(ge|Je),w=this.attrTest(a);return _&&(p&Z||!w)?h|mn:_||w?p&z?h|qe:h&ge?h|Je:ge:Zt}});function Ie(){Ae.apply(this,arguments),this.pX=null,this.pY=null}P(Ie,Ae,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ft},getTouchAction:function(){var a=this.options.direction,h=[];return a&Nt&&h.push(pn),a&Lt&&h.push(Pe),h},directionTest:function(a){var h=this.options,p=!0,_=a.distance,w=a.direction,C=a.deltaX,M=a.deltaY;return w&h.direction||(h.direction&Nt?(w=C===0?at:C<0?pt:wt,p=C!=this.pX,_=Math.abs(a.deltaX)):(w=M===0?at:M<0?Pt:Et,p=M!=this.pY,_=Math.abs(a.deltaY))),a.direction=w,p&&_>h.threshold&&w&h.direction},attrTest:function(a){return Ae.prototype.attrTest.call(this,a)&&(this.state&ge||!(this.state&ge)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var h=mi(a.direction);h&&(a.additionalEvent=this.options.event+h),this._super.emit.call(this,a)}});function gn(){Ae.apply(this,arguments)}P(gn,Ae,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[dn]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ge)},emit:function(a){if(a.scale!==1){var h=a.scale<1?"in":"out";a.additionalEvent=this.options.event+h}this._super.emit.call(this,a)}});function gi(){Ct.apply(this,arguments),this._timer=null,this._input=null}P(gi,Ct,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[is]},process:function(a){var h=this.options,p=a.pointers.length===h.pointers,_=a.distance<h.threshold,w=a.deltaTime>h.time;if(this._input=a,!_||!p||a.eventType&(z|Z)&&!w)this.reset();else if(a.eventType&F)this.reset(),this._timer=g(function(){this.state=Ve,this.tryEmit()},h.time,this);else if(a.eventType&z)return Ve;return Zt},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===Ve&&(a&&a.eventType&z?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=y(),this.manager.emit(this.options.event,this._input)))}});function vi(){Ae.apply(this,arguments)}P(vi,Ae,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[dn]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ge)}});function yi(){Ae.apply(this,arguments)}P(yi,Ae,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Lt,pointers:1},getTouchAction:function(){return Ie.prototype.getTouchAction.call(this)},attrTest:function(a){var h=this.options.direction,p;return h&(Nt|Lt)?p=a.overallVelocity:h&Nt?p=a.overallVelocityX:h&Lt&&(p=a.overallVelocityY),this._super.attrTest.call(this,a)&&h&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&v(p)>this.options.velocity&&a.eventType&z},emit:function(a){var h=mi(a.offsetDirection);h&&this.manager.emit(this.options.event+h,a),this.manager.emit(this.options.event,a)}});function $e(){Ct.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}P($e,Ct,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pi]},process:function(a){var h=this.options,p=a.pointers.length===h.pointers,_=a.distance<h.threshold,w=a.deltaTime<h.time;if(this.reset(),a.eventType&F&&this.count===0)return this.failTimeout();if(_&&w&&p){if(a.eventType!=z)return this.failTimeout();var C=this.pTime?a.timeStamp-this.pTime<h.interval:!0,M=!this.pCenter||Xe(this.pCenter,a.center)<h.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,!M||!C?this.count=1:this.count+=1,this._input=a;var G=this.count%h.taps;if(G===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=Ve,this.tryEmit()},h.interval,this),ge):Ve}return Zt},failTimeout:function(){return this._timer=g(function(){this.state=Zt},this.options.interval,this),Zt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function ze(a,h){return h=h||{},h.recognizers=W(h.recognizers,ze.defaults.preset),new Zn(a,h)}ze.VERSION="2.0.7",ze.defaults={domEvents:!1,touchAction:ns,enable:!0,inputTarget:null,inputClass:null,preset:[[vi,{enable:!1}],[gn,{enable:!1},["rotate"]],[yi,{direction:Nt}],[Ie,{direction:Nt},["swipe"]],[$e],[$e,{event:"doubletap",taps:2},["tap"]],[gi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Kn=1,se=2;function Zn(a,h){this.options=k({},ze.defaults,h||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=ee(this),this.touchAction=new $t(this,this.options.touchAction),c(this,!0),x(this.options.recognizers,function(p){var _=this.add(new p[0](p[1]));p[2]&&_.recognizeWith(p[2]),p[3]&&_.requireFailure(p[3])},this)}Zn.prototype={set:function(a){return k(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?se:Kn},recognize:function(a){var h=this.session;if(!h.stopped){this.touchAction.preventDefaults(a);var p,_=this.recognizers,w=h.curRecognizer;(!w||w&&w.state&Ve)&&(w=h.curRecognizer=null);for(var C=0;C<_.length;)p=_[C],h.stopped!==se&&(!w||p==w||p.canRecognizeWith(w))?p.recognize(a):p.reset(),!w&&p.state&(ge|Je|qe)&&(w=h.curRecognizer=p),C++}},get:function(a){if(a instanceof Ct)return a;for(var h=this.recognizers,p=0;p<h.length;p++)if(h[p].options.event==a)return h[p];return null},add:function(a){if(m(a,"add",this))return this;var h=this.get(a.options.event);return h&&this.remove(h),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(m(a,"remove",this))return this;if(a=this.get(a),a){var h=this.recognizers,p=ht(h,a);p!==-1&&(h.splice(p,1),this.touchAction.update())}return this},on:function(a,h){if(a!==r&&h!==r){var p=this.handlers;return x(mt(a),function(_){p[_]=p[_]||[],p[_].push(h)}),this}},off:function(a,h){if(a!==r){var p=this.handlers;return x(mt(a),function(_){h?p[_]&&p[_].splice(ht(p[_],h),1):delete p[_]}),this}},emit:function(a,h){this.options.domEvents&&f(a,h);var p=this.handlers[a]&&this.handlers[a].slice();if(!(!p||!p.length)){h.type=a,h.preventDefault=function(){h.srcEvent.preventDefault()};for(var _=0;_<p.length;)p[_](h),_++}},destroy:function(){this.element&&c(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function c(a,h){var p=a.element;if(p.style){var _;x(a.options.cssProps,function(w,C){_=ft(p.style,C),h?(a.oldCssProps[_]=p.style[_],p.style[_]=w):p.style[_]=a.oldCssProps[_]||""}),h||(a.oldCssProps={})}}function f(a,h){var p=n.createEvent("Event");p.initEvent(a,!0,!0),p.gesture=h,h.target.dispatchEvent(p)}k(ze,{INPUT_START:F,INPUT_MOVE:X,INPUT_END:z,INPUT_CANCEL:Z,STATE_POSSIBLE:Xn,STATE_BEGAN:ge,STATE_CHANGED:Je,STATE_ENDED:qe,STATE_RECOGNIZED:Ve,STATE_CANCELLED:mn,STATE_FAILED:Zt,DIRECTION_NONE:at,DIRECTION_LEFT:pt,DIRECTION_RIGHT:wt,DIRECTION_UP:Pt,DIRECTION_DOWN:Et,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Lt,DIRECTION_ALL:Ft,Manager:Zn,Input:Vt,TouchAction:$t,TouchInput:hn,MouseInput:We,PointerEventInput:Fe,TouchMouseInput:di,SingleTouchInput:cn,Recognizer:Ct,AttrRecognizer:Ae,Tap:$e,Pan:Ie,Swipe:yi,Pinch:gn,Rotate:vi,Press:gi,on:U,off:R,each:x,merge:$,extend:A,assign:k,inherit:P,bindFn:O,prefixed:ft});var d=typeof t<"u"?t:typeof self<"u"?self:{};d.Hammer=ze,typeof r=="function"&&r.amd?r(function(){return ze}):e.exports?e.exports=ze:t[i]=ze})(window,document,"Hammer")})(rc);var ud=rc.exports;const hd=to(ud);function ro(e){return e*Math.PI/180}function fd(e){return e*180/Math.PI}function dd(e,t,n,i){const r=e-n,s=t-i;return Math.sqrt(r*r+s*s)}function pd(e,t,n,i){const r=n-e,s=i-t;return Math.atan2(s,r)}function sc(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}}function so(e,t){return Math.sqrt(e*e+t*t)}function oc(e,t){const n=so(e,t);return{x:e/=n,y:t/=n}}class Dr{x;y;vx;vy;ax;ay;mass;constructor(t){this.x=t.x,this.y=t.y,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||0}distanceTo(t){return dd(this.x,this.y,t.x,t.y)}angleTo(t){return pd(this.x,this.y,t.x,t.y)}velocityTo(t){return{vx:t.x-this.x,vy:t.y-this.y}}followTo(t,n=3){const i=this.angleTo(t),{x:r,y:s}=sc(i,n);this.vx=r,this.vy=s,this.nextFrame()}followAccelerationTo(t,n=.05){const i=this.angleTo(t),{x:r,y:s}=sc(i,n);this.ax=r,this.ay=s,this.nextFrame()}nextFrame(t){const n=t?.gravity??0,i=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,i>0){const r=Math.atan2(this.vy,this.vx);let s=Math.sqrt(this.vx*this.vx+this.vy*this.vy);s>i?s-=i:s=0,this.vx=Math.cos(r)*s,this.vy=Math.sin(r)*s}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,n){const i=n?.gravity??0,r=n?.friction??1,s=n?.easing??.05,o=t.x-this.x,l=t.y-this.y;this.vx=o*s,this.vy=l*s,this.vy+=i,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,n){const i=n?.gravity??0,r=n?.friction??.95,s=n?.spring??.03;(Array.isArray(t)?t:[t]).forEach(l=>{const u=l.x-this.x,v=l.y-this.y,y=u*s,g=v*s;this.vx+=y,this.vy+=g}),this.vy+=i,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,n){const i=n?.gravity??0,r=n?.friction??.95,s=n?.spring??.03,o=n?.springLength??100,l=this.angleTo(t);this.nextFrameSpringTo(new Dr({x:t.x-Math.cos(l)*o,y:t.y-Math.sin(l)*o}),{spring:s,friction:r,gravity:i})}}class md extends Dr{width;height;constructor(t){super(t),this.width=t.width,this.height=t.height}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}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){return!(t.x<this.x||t.x>this.x+this.width||t.y<this.y||t.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}}class kn extends Dr{radius;constructor(t){super(t),this.radius=t?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(t){this.x=t}setY(t){this.y=t}setXY(t,n){this.x=t,this.y=n}eq(t){return this.x===t.x&&this.y===t.y}midPointBtw(t){return new kn({x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(t){this.setXY(t.x,t.y)}getBounds(){return new md({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(t){const n=t.x-this.x,i=t.y-this.y;if(Math.sqrt(n*n+i*i)<this.radius+t.radius){const o=Math.atan2(i,n),l=Math.sin(o),u=Math.cos(o),v={x:0,y:0},y=s(n,i,l,u,!0),g=s(this.vx,this.vy,l,u,!0),m=s(t.vx,t.vy,l,u,!0),x=g.x-m.x;g.x=((this.mass-t.mass)*g.x+2*t.mass*m.x)/(this.mass+t.mass),m.x=x+g.x;const I=Math.abs(g.x)+Math.abs(m.x),k=this.radius+t.radius-Math.abs(v.x-y.x);v.x+=g.x/I*k,y.x+=m.x/I*k;const A=s(v.x,v.y,l,u,!1),$=s(y.x,y.y,l,u,!1);t.x=this.x+$.x,t.y=this.y+$.y,this.x=this.x+A.x,this.y=this.y+A.y;const P=s(g.x,g.y,l,u,!1),O=s(m.x,m.y,l,u,!1);this.vx=P.x,this.vy=P.y,t.vx=O.x,t.vy=O.y}function s(o,l,u,v,y=!1){return{x:y?o*v+l*u:o*v-l*u,y:y?l*v-o*u:l*v+o*u}}}nextFrameBounce(t){const n=t.left,i=t.top,r=t.right,s=t.bottom,o=t?.bounce??-1;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=o):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=o),this.y+this.radius>s?(this.y=s-this.radius,this.vy*=o):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=o)}}class gd{constructor(){}static getFormatKeyNames(t){const n=ad(),i=[];return t.ctrl&&i.push(n?"Cmd":"Ctrl"),t.shift&&i.push("Shift"),t.alt&&i.push("Alt"),typeof t.key=="string"?i.push(Dl(t.key)):Array.isArray(t.key)&&(t.key.map(r=>Dl(r)),i.push(...t.key)),i}static matchKeyScheme(t,n){const i=t.ctrl??!1,r=t.shift??!1,s=t.alt??!1;if(t.exact)return(i===n.metaKey||i===n.ctrlKey)&&r===n.shiftKey&&s===n.altKey;const o=[];return i&&o.push(i===n.metaKey||i===n.ctrlKey),r&&o.push(r===n.shiftKey),s&&o.push(s===n.altKey),o.every(l=>l)}static on(t,n){if(t?.key===void 0||t?.key===null)return n;const i=t?.target??window;let r=!1;const s=this.getFormatKeyNames(t),o=l=>{if(l.stopPropagation(),!r&&l.key!=="Control"&&l.key!=="Meta"&&l.key!=="Shift"&&l.key!=="Option"&&l.key!=="Alt"&&s.find(u=>u.toLowerCase()===l.key.toLowerCase())&&this.matchKeyScheme(t,l)){l.preventDefault();const u=n(l);if(typeof u!="function")return;const v=y=>{y.preventDefault(),u(y),i.removeEventListener("keyup",v)};i.addEventListener("keyup",v)}};return n.title=t?.title??"",n.formatedKeyNames=s,n.pause=()=>r=!0,n.restart=()=>r=!1,n.removeListener=()=>i.removeEventListener("keydown",o),i.addEventListener("keydown",o),n}}const ac=vd("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 vd(e,t=10){const n={},i=e.split(",");for(let r=0;r<i.length;r+=2){const s="&"+i[r+1]+";",o=parseInt(i[r],t);n[s]="&#"+o+";"}return n["\\xa0"]="&#160;",n}function be(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e=e.replace(new RegExp("{"+n[i]+"}","gi"),""+t[n[i]]);return e}function Fr(e){let t,n;if(!e)throw new Error("cannot create a random attribute name for an undefined object");const i="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",n=0;n<12;n++)t+=i[Math.floor(Math.random()*i.length)];while(e[t]);return t}function yd(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function _d(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Ui={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"}};class oo{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}addColorStop(t,n){const i=this.__ctx.__createElement("stop");if(i.setAttribute("offset",""+t),n.indexOf("rgba")!==-1){const s=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);s&&(i.setAttribute("stop-color",be("rgb({r},{g},{b})",{r:s[1],g:s[2],b:s[3]})),i.setAttribute("stop-opacity",s[4]))}else i.setAttribute("stop-color",n);this.__root.appendChild(i)}}class lc{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}}class Vr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:n=500,height:i=500,enableMirroring:r=!1}){this.enableMirroring=r,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=n,this.height=i),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(Ui);for(let n=0,i=t.length;n<i;n++){const r=t[n];this[r]=Ui[r].canvas}}__getStyleState(){const t={},n=Object.keys(Ui);for(let i=0,r=n.length;i<r;i++){const s=n[i];t[s]=this[s]}return t}__applyStyleState(t){const n=Object.keys(t);for(let i=0,r=n.length;i<r;i++){const s=n[i];this[s]=t[s]}}__createElement(t,n={},i=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),s=Object.keys(n);i&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<s.length;o++){const l=s[o];r.setAttribute(l,n[l])}return r}__applyStyleToCurrentElement(t){let n=this.__currentElement;const i=this.__currentElementsToStyle;i&&(n.setAttribute(t,""),n=i.element,i.children.forEach(s=>{s.setAttribute(t,"")}));const r=Object.keys(Ui);for(let s=0;s<r.length;s++){const o=Ui[r[s]],l=this[r[s]];if(o.apply){if(l instanceof lc){if(l.__ctx)for(;l.__ctx.__SVGdefs.childNodes.length;){const u=l.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[u]=u,this.__SVGdefs.appendChild(l.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(o.apply,be("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof oo)n.setAttribute(o.apply,be("url(#{id})",{id:l.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==l)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&l.indexOf("rgba")!==-1){const v=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l);n.setAttribute(o.svgAttr,be("rgb({r},{g},{b})",{r:v[1],g:v[2],b:v[3]}));let y=parseFloat(v[4]);const g=this.globalAlpha;g!=null&&(y*=g),n.setAttribute(o.svgAttr+"-opacity",""+y)}else{let u=o.svgAttr;if(r[s]==="globalAlpha"&&(u=t+"-"+o.svgAttr,n.getAttribute(u)))continue;u&&n.setAttribute(u,l)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const r=Object.keys(ac);for(let s=0,o=r.length;s<o;s++){const l=r[s],u=ac[l],v=new RegExp(l,"gi");v.test(n)&&(n=n.replace(v,u))}}return n}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.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 n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(t){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const r=this.__createElement("g");n.appendChild(r),this.__currentElement=r}let i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)}scale(t,n){n===void 0&&(n=t),this.__addTransform(be("scale({x},{y})",{x:t,y:n}))}rotate(t){const n=t*180/Math.PI;this.__addTransform(be("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(t,n){this.__addTransform(be("translate({x},{y})",{x:t,y:n}))}transform(t,n,i,r,s,o){this.__addTransform(be("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:n,c:i,d:r,e:s,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):console.error("Attempted to apply path command to node",t.nodeName)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:n},this.__addPathCommand(be("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,n){this.__currentPosition={x:t,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(be("L {x} {y}",this.__currentPosition)):this.__addPathCommand(be("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,n,i,r,s,o){this.__currentPosition={x:s,y:o},this.__addPathCommand(be("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:n,cp2x:i,cp2y:r,x:s,y:o}))}quadraticCurveTo(t,n,i,r){this.__currentPosition={x:i,y:r},this.__addPathCommand(be("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:n,x:i,y:r}))}normalize(t){const n=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/n,t[1]/n]}arcTo(t,n,i,r,s){const o=this.__currentPosition&&this.__currentPosition.x,l=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof l>"u")return;if(s<0)throw new Error("IndexSizeError: The radius provided ("+s+") is negative.");if(o===t&&l===n||t===i&&n===r||s===0){this.lineTo(t,n);return}const u=this.normalize([o-t,l-n]),v=this.normalize([i-t,r-n]);if(u[0]*v[1]===u[1]*v[0]){this.lineTo(t,n);return}const y=u[0]*v[0]+u[1]*v[1],g=Math.acos(Math.abs(y)),m=this.normalize([u[0]+v[0],u[1]+v[1]]),x=s/Math.sin(g/2),I=t+x*m[0],k=n+x*m[1],A=[-u[1],u[0]],$=[v[1],-v[0]],P=function(W){const U=W[0];return W[1]>=0?Math.acos(U):-Math.acos(U)},O=P(A),D=P($);this.lineTo(I+A[0]*s,k+A[1]*s),this.arc(I,k,s,O,D)}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,n,i,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,n),this.lineTo(t+i,n),this.lineTo(t+i,n+r),this.lineTo(t,n+r),this.lineTo(t,n),this.closePath()}fillRect(t,n,i,r){const s=this.__createElement("rect",{x:t,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("fill")}strokeRect(t,n,i,r){const s=this.__createElement("rect",{x:t,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),i=this.__rootSVG.childNodes[1],r=i.childNodes;for(let s=r.length-1;s>=0;s--)r[s]&&i.removeChild(r[s]);this.__currentElement=i,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(t,n,i,r){if(t===0&&n===0&&i===this.width&&r===this.height){this.__clearCanvas();return}const s=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:n,width:i,height:r,fill:"#FFFFFF"},!0);s.appendChild(o)}createLinearGradient(t,n,i,r){const s=this.__createElement("linearGradient",{id:Fr(this.__ids),x1:t+"px",x2:i+"px",y1:n+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new oo(s,this)}createRadialGradient(t,n,i,r,s,o){const l=this.__createElement("radialGradient",{id:Fr(this.__ids),cx:r+"px",cy:s+"px",r:o+"px",fx:t+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(l),new oo(l,this)}__parseFont(){const n=/^\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),i={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(i.decoration="underline"),this.__fontHref&&(i.href=this.__fontHref),i}__wrapTextLink(t,n){if(t.href){const i=this.__createElement("a");return i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),i.appendChild(n),i}return n}__applyText(t,n,i,r){const s=this.__parseFont(),o=this.__closestGroupOrSvg(),l=this.__createElement("text",{"font-family":s.family,"font-size":s.size,"font-style":s.style,"font-weight":s.weight,"text-decoration":s.decoration,x:n,y:i,"text-anchor":yd(this.textAlign),"dominant-baseline":_d(this.textBaseline)},!0);l.appendChild(this.__document.createTextNode(t)),this.__currentElement=l,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(s,l))}fillText(t,n,i){this.__applyText(t,n,i,"fill")}strokeText(t,n,i){this.__applyText(t,n,i,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,n,i,r,s,o){if(r===s)return;r=r%(2*Math.PI),s=s%(2*Math.PI),r===s&&(s=(s+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const l=t+i*Math.cos(s),u=n+i*Math.sin(s),v=t+i*Math.cos(r),y=n+i*Math.sin(r),g=o?0:1;let m=0,x=s-r;x<0&&(x+=2*Math.PI),o?m=x>Math.PI?0:1:m=x>Math.PI?1:0,this.lineTo(v,y),this.__addPathCommand(be("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:m,sweepFlag:g,endX:l,endY:u})),this.__currentPosition={x:l,y:u}}clip(){const t=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),i=Fr(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),n.setAttribute("id",i),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),t.setAttribute("clip-path",be("url(#{id})",{id:i})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let n=t[0],i,r,s,o,l=0,u=0,v,y,g,m,x,I,k,A;if(t.length===3)i=t[1],r=t[2],v=n.width,y=n.height,s=v,o=y;else if(t.length===5)i=t[1],r=t[2],s=t[3],o=t[4],v=n.width,y=n.height;else if(t.length===9)l=t[1],u=t[2],v=t[3],y=t[4],i=t[5],r=t[6],s=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const $=this.__closestGroupOrSvg();this.__currentElement;const P="translate("+i+", "+r+")";if(n instanceof Vr){if(g=n.getSvg().cloneNode(!0),g.childNodes&&g.childNodes.length>1){for(m=g.childNodes[0];m.childNodes.length;)A=m.childNodes[0].getAttribute("id"),this.__ids[A]=A,this.__SVGdefs.appendChild(m.childNodes[0]);if(x=g.childNodes[1],x){const O=x.getAttribute("transform");let D;O?D=O+" "+P:D=P,x.setAttribute("transform",D),$.appendChild(x)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(I=this.__createElement("image"),I.setAttribute("width",s),I.setAttribute("height",o),I.setAttribute("preserveAspectRatio","none"),(l||u||v!==n.width||y!==n.height)&&(k=this.__document.createElement("canvas"),k.width=s,k.height=o,k.getContext("2d")?.drawImage(n,l,u,v,y,0,0,s,o),n=k),I.setAttribute("transform",P),I.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),$.appendChild(I))}createPattern(t,n){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=Fr(this.__ids);let s;return i.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(s=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),i.appendChild(s),this.__SVGdefs.appendChild(i)):t instanceof Vr&&(i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(i)),new lc(i,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}function xd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cc={},ao={exports:{}},uc;function bd(){return uc||(uc=1,function(e){(function(t){var n="0.4.0",i="hasOwnProperty",r=/[\.\/]/,s="*",o=function(){},l=function(m,x){return m-x},u,v,y={n:{}},g=function(m,x){var I=v,k=Array.prototype.slice.call(arguments,2),A=g.listeners(m),$=0,P,O=[],D={},W=[];u=m,v=0;for(var U=0,R=A.length;U<R;U++)"zIndex"in A[U]&&(O.push(A[U].zIndex),A[U].zIndex<0&&(D[A[U].zIndex]=A[U]));for(O.sort(l);O[$]<0;)if(P=D[O[$++]],W.push(P.apply(x,k)),v)return v=I,W;for(U=0;U<R;U++)if(P=A[U],"zIndex"in P)if(P.zIndex==O[$]){if(W.push(P.apply(x,k)),v)return v=I,W;do if($++,P=D[O[$]],P&&W.push(P.apply(x,k)),v)return v=I,W;while(P)}else D[P.zIndex]=P;else if(W.push(P.apply(x,k)),v)return v=I,W;return v=I,W.length?W:null};g.listeners=function(m){var x=m.split(r),I=y,k,A,$,P,O,D,W,U,R=[I],rt=[];for(P=0,O=x.length;P<O;P++){for(U=[],D=0,W=R.length;D<W;D++)for(I=R[D].n,A=[I[x[P]],I[s]],$=2;$--;)k=A[$],k&&(U.push(k),rt=rt.concat(k.f||[]));R=U}return rt},g.on=function(m,x){for(var I=m.split(r),k=y,A=0,$=I.length;A<$;A++)k=k.n,!k[I[A]]&&(k[I[A]]={n:{}}),k=k[I[A]];for(k.f=k.f||[],A=0,$=k.f.length;A<$;A++)if(k.f[A]==x)return o;return k.f.push(x),function(P){+P==+P&&(x.zIndex=+P)}},g.stop=function(){v=1},g.nt=function(m){return m?new RegExp("(?:\\.|\\/|^)"+m+"(?:\\.|\\/|$)").test(u):u},g.unbind=function(m,x){var I=m.split(r),k,A,$,P,O,D,W,U=[y];for(P=0,O=I.length;P<O;P++)for(D=0;D<U.length;D+=$.length-2){if($=[D,1],k=U[D].n,I[P]!=s)k[I[P]]&&$.push(k[I[P]]);else for(A in k)k[i](A)&&$.push(k[A]);U.splice.apply(U,$)}for(P=0,O=U.length;P<O;P++)for(k=U[P];k.n;){if(x){if(k.f){for(D=0,W=k.f.length;D<W;D++)if(k.f[D]==x){k.f.splice(D,1);break}!k.f.length&&delete k.f}for(A in k.n)if(k.n[i](A)&&k.n[A].f){var R=k.n[A].f;for(D=0,W=R.length;D<W;D++)if(R[D]==x){R.splice(D,1);break}!R.length&&delete k.n[A].f}}else{delete k.f;for(A in k.n)k.n[i](A)&&k.n[A].f&&delete k.n[A].f}k=k.n}},g.once=function(m,x){var I=function(){x.apply(this,arguments),g.unbind(m,I)};return g.on(m,I)},g.version=n,g.toString=function(){return"You are running Eve "+n},e.exports?e.exports=g:t.eve=g})(Wf)}(ao)),ao.exports}(function(e){if(typeof xd=="function")var t=bd();(function(){function n(m){var x=function(I){x.parse(I)};return x.mode="text",x.type=String(m||"html").toLowerCase(),x.textchunk="",x.raw="",x.parse=u,x.on=o,x.event=s,x.end=r,x}function i(m,x,I){m==`
45
- `&&this.event("newline"),g[this.mode].call(this,m,x,I)}function r(){i.call(this,"eof"),this.event("eof")}function s(m,x,I){typeof t=="function"&&t("elemental."+m+"."+x,null,x,I||"",this.raw);for(var k=this.events&&this.events[m],A=k&&k.length;A--;)try{this.events[m][A](x,I||"",this.raw)}catch{}this.raw=""}function o(m,x){this.events=this.events||{},this.events[m]=this.events[m]||[],this.events[m].push(x)}function l(m,x){return m&&(m.charAt?m.charAt(x):m[x])}function u(m){m=m||Object(m);for(var x=1,I=m.length+1,k,A,$=l(m,0);x<I;x++)k=A,A=$,$=l(m,x),this.raw+=A,i.call(this,A,$,k);this._beforeEnd=function(){i.call(this,"","",A)}}var v=/[\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]/,y=function(){for(var m in this.attr)this.attr.hasOwnProperty(m)&&this.event("attr",m,{value:this.attr[m],tagname:this.tagname,attr:this.attr})},g={text:function(m,x,I){switch(m){case"<":case"eof":this.nodename="",this.attr={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.event("text",this.textchunk),this.raw+=m,this.textchunk="";break;default:this.textchunk+=m}},special:function(m,x,I){if(I=="!"&&m=="-"&&x=="-")this.mode="comment start";else{if(this.textchunk=="[CDATA"&&m=="["){this.mode="cdata",this.textchunk="";return}if(m==">"||m=="eof"){this.event("special",this.textchunk),this.mode="text",this.textchunk="";return}this.textchunk+=m}},cdata:function(m,x,I){I=="]"&&m=="]"&&x==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(m=="eof"&&g["cdata end"].call(this),this.textchunk+=m)},"cdata end":function(m,x,I){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(m,x,I){x==">"||m=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(m,x,I){this.mode="text"},comment:function(m,x,I){m=="-"&&I=="-"&&x==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):m=="eof"?this.event("comment",this.textchunk):this.textchunk+=m},"comment end":function(m,x,I){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(m,x,I){m=="?"&&x==">"?this.mode="declaration end":(m=="eof"&&this.event("comment",this.textchunk),this.textchunk+=m)},"declaration end":function(m,x,I){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(m,x,I){if(m=="eof")this.event("text","<");else if(!v.test(m)){if(this.mode="tag name",m=="/"){this.mode="close tag name start";return}if(m=="!"){this.mode="special",this.textchunk="";return}if(m=="?"){this.mode="declaration";return}g[this.mode].call(this,m,x,I)}},"close tag name start":function(m,x,I){v.test(m)||(this.mode="close tag name",this.tagname="",this.nodename="",g[this.mode].call(this,m,x,I))},"close tag name":function(m,x,I){if(v.test(m))this.tagname=this.nodename;else switch(m){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=m)}},"tag name":function(m,x,I){if(v.test(m))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(m){case">":this.event("tag",this.nodename),this.mode="text";break;default:this.nodename+=m}},"attr start":function(m,x,I){v.test(m)||(this.mode="attr",this.nodename="",g[this.mode].call(this,m,x,I))},attr:function(m,x,I){if(v.test(m)||m=="=")this.attr[this.nodename]="",this.mode="attr value start";else switch(m){case">":this.nodename=="/"?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),y.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),y.call(this)),this.mode="text";break;default:this.nodename+=m}},"attr value start":function(m,x,I){if(!v.test(m)){if(this.mode="attr value",this.quote=!1,m=="'"||m=='"'){this.quote=m;return}g[this.mode].call(this,m,x,I)}},"attr value":function(m,x,I){if(v.test(m)&&!this.quote)this.mode="attr start";else if(m==">"&&!this.quote)this.event("tag",this.tagname,this.attr),this.mode="text";else switch(m){case'"':case"'":this.quote==m&&I!="\\"&&(this.mode="attr start");break;default:this.attr[this.nodename]+=m}}};n.version="0.2.1",e.elemental=n,e.eve=t})()})(cc);const hc=to(cc),fc=[1,0,0,1,0,0],dc=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class we{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(t=fc){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(fc),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,n,i=0,r=0){const s=t-i,o=n-r;return t=s*this.value[0]+o*this.value[2]+this.value[4],n=s*this.value[1]+o*this.value[3]+this.value[5],[t+i,n+r]}fromString(t){const n=Rl("number",t);return n.length===6?n.forEach((i,r)=>{i.fullMatch&&(this.value[r]=parseFloat(i.fullMatch))}):this.unit(),this}toMatrix3D(t=this.matrix3d){const n=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return t?(t.value=n,t):new si(n)}offset(t=0,n=0){return[t-this.value[4],n-this.value[5]]}clone(){return new we(this.value)}multiply(t){const n=this.value;let i;t instanceof we?i=t.value:i=t;const r=n[0]*i[0]+n[2]*i[1],s=n[1]*i[0]+n[3]*i[1],o=n[0]*i[2]+n[2]*i[3],l=n[1]*i[2]+n[3]*i[3],u=n[0]*i[4]+n[2]*i[5]+n[4],v=n[1]*i[4]+n[3]*i[5]+n[5];return n[0]=r,n[1]=s,n[2]=o,n[3]=l,n[4]=u,n[5]=v,this}inverse(){const t=new we(this.value),n=t.value,i=1/(n[0]*n[3]-n[1]*n[2]),r=n[3]*i,s=-n[1]*i,o=-n[2]*i,l=n[0]*i,u=i*(n[2]*n[5]-n[3]*n[4]),v=i*(n[1]*n[4]-n[0]*n[5]);return n[0]=r,n[1]=s,n[2]=o,n[3]=l,n[4]=u,n[5]=v,t}translate(t,n){return this.matrix3d.translate(t,n,0),this.multiply([1,0,0,1,t,n])}translateTo(t,n){const i=this.offset(t,n);return this.translate(i[0],i[1])}translateX(t){return this.translate(t,0)}translateY(t){return this.translate(0,t)}translateZ(t){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,t)}translate3d(t,n,i){return this.isEverTo3d=!0,this.matrix3d.translate(t,n,i)}rotate(t,n=0,i=0){const r=ro(t),s=+Math.cos(r).toFixed(9),o=+Math.sin(r).toFixed(9);return this.multiply([s,o,-o,s,n,i]),this.translate(-n,-i),this}rotateX(t){return this._prev_rotatex=t,this.isEverTo3d=!0,this.matrix3d.rotate("x",t)}rotateXTo(t){return this.rotateX(t-this._prev_rotatex)}rotateY(t){return this._prev_rotatey=t,this.isEverTo3d=!0,this.matrix3d.rotate("y",t)}rotateYTo(t){return this.rotateY(t-this._prev_rotatey)}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",t)}rotate3d(t,n,i){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",n).rotate("z",i)}scale(t,n=t,i=0,r=0){return this.matrix3d.scale(t,n,1),this.translate(i,r),this.multiply([t,0,0,n,0,0]),this.translate(-i,-r),this}scaleTo(t,n=t){return this.scale(t/this.value[0],n/this.value[3]),this}scaleX(t){return this.scale(t,1)}scaleY(t){return this.scale(1,t)}scaleZ(t){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,t)}scale3d(t,n,i){return this.isEverTo3d=!0,this.matrix3d.scale(t,n,i)}skew(t,n=0){const i=t*Math.PI/180,r=n*Math.PI/180,s=Math.tan(i),o=Math.tan(r);return this.multiply([1,o,s,1,0,0])}skewX(t){return this.skew(t,0)}skewY(t){return this.skew(0,t)}skewZ(t){return this}skew3d(t,n,i){return this}split(){const t={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};t.dx=this.value[4],t.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=so(n[0][0],n[0][1]);let i=oc(n[0][0],n[0][1]);n[0][0]=i.x,n[0][1]=i.y,t.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*t.shear,n[1][1]-n[0][1]*t.shear],t.scaley=so(n[1][0],n[1][1]),i=oc(n[1][0],n[1][1]),n[1][0]=i.x,n[1][1]=i.y,t.shear/=t.scaley;const r=-n[0][1],s=n[1][1];return s<0?(t.rotate=fd(Math.acos(s)),r<0&&(t.rotate=360-t.rotate)):t.rotate=ro(Math.asin(r)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t}toTransformString(){const t=this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx&&t.dy?"t"+[t.dx,t.dy]:"")+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[t.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(t=>Vl(t,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class si{value;constructor(t=dc){this.value=Array.from(t)}unit(){return this.value=Array.from(dc),this}fromString(t){const n=Rl("number",t);return n.length===16?n.forEach((i,r)=>{i.fullMatch&&(this.value[r]=parseFloat(i.fullMatch))}):this.unit(),this}toMatrix(t){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return t?(t.value=n,t):new we(n)}multiplyMatrix(t){const n=this.value[0],i=this.value[1],r=this.value[2],s=this.value[3],o=this.value[4],l=this.value[5],u=this.value[6],v=this.value[7],y=this.value[8],g=this.value[9],m=this.value[10],x=this.value[11],I=this.value[12],k=this.value[13],A=this.value[14],$=this.value[15],P=t.value[0],O=t.value[1],D=t.value[2],W=t.value[3],U=P*n+O*o+D*y+W*I,R=P*i+O*l+D*g+W*k,rt=P*r+O*u+D*m+W*A,ct=P*s+O*v+D*x+W*$;return new we([U,R,rt,ct,0,0])}multiply(t){const n=new we([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),i=new we([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),r=new we([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),s=new we([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),o=this.multiplyMatrix(n),l=this.multiplyMatrix(i),u=this.multiplyMatrix(r),v=this.multiplyMatrix(s);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.value[3],this.value[4]=l.value[0],this.value[5]=l.value[1],this.value[6]=l.value[2],this.value[7]=l.value[3],this.value[8]=u.value[0],this.value[9]=u.value[1],this.value[10]=u.value[2],this.value[11]=u.value[3],this.value[12]=v.value[0],this.value[13]=v.value[1],this.value[14]=v.value[2],this.value[15]=v.value[3],this}translate(t=0,n=0,i=0){return this.multiply(new si([1,0,0,0,0,1,0,0,0,0,1,0,t,n,i,1]))}scale(t=1,n=1,i=1){return this.multiply(new si([t,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1]))}rotate(t,n){const i=ro(n),r=Math.sin,s=Math.cos;let o;switch(t){case"x":o=[1,0,0,0,0,s(i),r(i),0,0,-r(i),s(i),0,0,0,0,1];break;case"y":o=[s(i),0,-r(i),0,0,1,0,0,r(i),0,s(i),0,0,0,0,1];break;case"z":o=[s(i),r(i),0,0,-r(i),s(i),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new si(o))}toString(){return`matrix3d(${this.value.map(t=>Vl(t,6)).join(",")})`}}function $r(e){const t=new we;return e.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,i,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const s=[];for(let o=0,l=r.length;o<l;o++)r[o].trim()&&s.push(parseFloat(""+r[o]));switch(i.toLowerCase()){case"t":case"translate":t.translate(s[0],s[1]);break;case"translatex":t.translateX(s[0]);break;case"translatey":t.translateY(s[0]);break;case"translatez":t.translateZ(s[0]);break;case"translate3d":t.translate3d(s[0],s[1],s[2]);break;case"r":case"rotate":t.rotate(s[0],s[1]??0,s[2]??0);break;case"rotatex":t.rotateX(s[0]);break;case"rotatey":t.rotateY(s[0]);break;case"rotatez":t.rotateZ(s[0]);break;case"rotate3d":t.rotate3d(s[0],s[1],s[2]);break;case"s":case"scale":t.scale(s[0],s[1]??s[0]);break;case"scalex":t.scaleX(s[0]);break;case"scaley":t.scaleY(s[0]);break;case"scalez":t.scaleZ(s[0]);break;case"scale3d":t.scale3d(s[0],s[1],s[2]);break;case"skew":t.skew(s[0],s[1]??0);break;case"skewx":t.skewX(s[0]);break;case"skewy":t.skewY(s[0]);break;case"skewz":t.skewZ(s[0]);break;case"skew3d":t.skew3d(s[0],s[1],s[2]);break;case"m":case"matrix":t.multiply([s[0],s[1],s[2],s[3],s[4],s[5]]);break;case"matrix3d":t.matrix3d.multiply(new si(s));break}return""}),t}function lo(e,t,n,i,r,s){if(typeof r>"u"||typeof s>"u"){const o=e-n,l=t-i;return!o&&!l?0:(180+Math.atan2(-l,-o)*180/Math.PI+360)%360}else return lo(e,t,r,s)-lo(n,i,r,s)}const Tt=hc.eve,wd=hc.elemental,zr={cursor:1,cx:0,cy:0,fill:1,"fill-opacity":0,font:1,"font-family":1,"font-size":0,"font-style":1,"font-weight":1,height:0,"letter-spacing":0,opacity:0,r:0,rx:0,ry:0,src:1,stroke:1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":1,width:0,x:0,y:0};function co(e,t,n){for(var i=(e+"").split(";"),r=/^\s+|\s+$/g,s,o=0,l=i.length;o<l;o++){var u=i[o].split(":");s=u[0].replace(r,"").replace(/[A-Z]/g,function(v){return"-"+v.toLowerCase()}),(!n||s in n)&&(t[s]=u[1].replace(r,""),n&&!n[s]&&(t[s]=parseFloat(t[s])))}}function Ed(e){const t=wd(),n=[],i=[],r={};let s,o,l;const u={};function v(y,g){return function(m,x){const I={type:g||y};n.push(I);for(let k in x)Object.prototype.hasOwnProperty.call(x,k)&&Tt("rappar."+y+".attr."+k,I,x[k],k);Tt("rappar."+y+".attrend",I,x)}}return Tt.on("rappar.polygon.attr.points",function(y){this.path="M"+y+"z",Tt.stop()}),Tt.on("rappar.image.attr.xlink:href",function(y){this.src=y,Tt.stop()}),Tt.on("rappar.path.attr.d",function(y){this.path=y,Tt.stop()}),Tt.on("rappar.*.attr.transform",function(y){this.transform=$r(y).toTransformString(),Tt.stop()}),Tt.on("rappar.*.attr.fill",function(y){var g=y.match(/url\(#([^)]+)\)/),m=this;g&&(g=g[1],r[g]?this.fill=r[g]:Tt.on("rappar.found."+g,function(x){m.fill=x}),Tt.stop())}),Tt.on("rappar.line.attrend",function(y){this.path="M"+[y.x1,y.y1,y.x2,y.y2]}),Tt.on("rappar.*.attrend",function(){for(var y=i.length;y--;)if(i[y]!=this){let m="",x="";for(var g in i[y])g=="transform"?m=i[y].transform:g=="class"&&u["."+i[y][g]]?x=u["."+i[y][g]].join(";")+";"+x:g=="id"&&u["#"+i[y][g]]?x=u["#"+i[y][g]].join(";")+";"+x:typeof this[g]>"u"&&(this[g]=i[y][g]);this.type&&(typeof this.transform>"u"?this.transform=m:this.transform+=m,typeof this.style>"u"?this.style=x:this.style=x+this.style,co(this.style,this,zr))}}),Tt.on("rappar.*.attr.style",function(y){var g=function(){co(y,this,zr),Tt.unbind("rappar.*.attrend",g)};Tt.on("rappar.*.attrend",g),Tt.stop()}),Tt.on("rappar.*.attr.*",function(y,g){g in zr&&(this[g]=zr[g]?y:parseFloat(y))}),Tt.on("elemental.tag.circle",v("circle")),Tt.on("elemental.tag.ellipse",v("ellipse")),Tt.on("elemental.tag.polygon",v("polygon","path")),Tt.on("elemental.tag.path",v("path")),Tt.on("elemental.tag.line",v("line","path")),Tt.on("elemental.tag.rect",v("rect")),Tt.on("elemental.tag.image",v("image")),Tt.on("elemental.tag.text",v("text")),Tt.on("elemental.text",function(y){try{const g=td(y);for(let m of g.stylesheet.rules){for(let x of m.selectors)u[x]=[];for(let x of m.declarations)for(let I of m.selectors)u[I].push(`${x.property}:${x.value}`)}}catch{}}),Tt.on("elemental.tag.svg",function(y,g){let m=g.width||0,x=g.height||0;if(!m||!x){const I=g.viewBox.split(/\s+/gi);m=parseFloat(I[2])-parseFloat(I[0]),x=parseFloat(I[3])-parseFloat(I[1])}n.push({type:"viewbox",width:m,height:x})}),Tt.on("rappar.text.attrend",function(){s="",o=this,this["text-anchor"]=this["text-anchor"]||"start"}),Tt.on("elemental.text",function(y,g,m){o&&(s+=m)}),Tt.on("elemental./tag.text",function(){o.text=s,o=null}),Tt.on("elemental.tag.g",function(y,g){var m={};i.push(m);for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(m[x]=g[x],Tt("rappar.g.attr."+x,m,g[x],x));Tt("rappar.g.attrend",m)}),Tt.on("elemental./tag.g",function(y,g){i.pop()}),Tt.on("elemental.tag.linearGradient",function(y,g){l={id:g.id,angle:+(360+lo(g.x1,g.y1,g.x2,g.y2,g.x1+100,g.y1)).toFixed(2),stops:[]}}),Tt.on("elemental./tag.linearGradient",function(){for(var y=[l.angle],g,m=0,x=l.stops.length;m<x;m++)g=l.stops[m],m&&m!=x-1?y.push(g.color+":"+g.offset):y.push(g.color);r[l.id]=y.join("-"),Tt("rappar.found."+l.id,null,r[l.id])}),Tt.on("elemental.tag.radialGradient",function(y,g){l={id:g.id,stops:[]}}),Tt.on("elemental./tag.radialGradient",function(){for(var y=[],g,m=0,x=l.stops.length;m<x;m++)g=l.stops[m],m&&m!=x-1?y.push(g.color+":"+g.offset):y.push(g.color);r[l.id]="r"+y.join("-"),Tt("rappar.found."+l.id,null,r[l.id])}),Tt.on("elemental.tag.stop",function(y,g){var m={};g.style&&co(g.style,m),m.offset=m.offset||g.offset,m.color=m["stop-color"]||g["stop-color"],m.opacity=m["stop-opacity"]||g["stop-opacity"],~(m.offset+"").indexOf("%")?m.offset=parseFloat(m.offset):m.offset=parseFloat(m.offset)*100,m.offset=+m.offset.toFixed(2),l.stops.push(m)}),t(e),t.end(),n}function Cd(e){return typeof e!="string"?!1:(e=e.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}const uo={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Sd=/([astvzqmhlc])([^astvzqmhlc]*)/gi,kd=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Td(e){const t=e.match(kd);return t?t.map(Number):[]}function ho(e){const t=[];return e.replace(Sd,function(n,i,r){let s=i.toLowerCase();for(r=Td(r),s=="m"&&r.length>2&&(t.push([i].concat(r.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(r.length==uo[s])return r.unshift(i),t.push(r);if(r.length<uo[s])throw new Error("malformed path data");t.push([i].concat(r.splice(0,uo[s])))}}),t}function fo(e){var t=0,n=0,i=0,r=0;return e.map(function(s){s=s.slice();var o=s[0],l=o.toUpperCase();if(o!=l)switch(s[0]=l,o){case"a":s[6]+=i,s[7]+=r;break;case"v":s[1]+=r;break;case"h":s[1]+=i;break;default:for(var u=1;u<s.length;)s[u++]+=i,s[u++]+=r}switch(l){case"Z":i=t,r=n;break;case"H":i=s[1];break;case"V":r=s[1];break;case"M":i=t=s[1],r=n=s[2];break;default:i=s[s.length-2],r=s[s.length-1]}return s})}const Wi=Math.PI*2;function pc(e,t,n,i){const r=e*i-t*n<0?-1:1;let s=e*n+t*i;return s>1&&(s=1),s<-1&&(s=-1),r*Math.acos(s)}function Pd(e,t,n,i,r,s,o,l,u,v){const y=v*(e-n)/2+u*(t-i)/2,g=-u*(e-n)/2+v*(t-i)/2,m=o*o,x=l*l,I=y*y,k=g*g;let A=m*x-m*k-x*I;A<0&&(A=0),A/=m*k+x*I,A=Math.sqrt(A)*(r===s?-1:1);const $=A*o/l*g,P=A*-l/o*y,O=v*$-u*P+(e+n)/2,D=u*$+v*P+(t+i)/2,W=(y-$)/o,U=(g-P)/l,R=(-y-$)/o,rt=(-g-P)/l,ct=pc(1,0,W,U);let mt=pc(W,U,R,rt);return s===0&&mt>0&&(mt-=Wi),s===1&&mt<0&&(mt+=Wi),[O,D,ct,mt]}function Id(e,t){const n=1.3333333333333333*Math.tan(t/4),i=Math.cos(e),r=Math.sin(e),s=Math.cos(e+t),o=Math.sin(e+t);return[i,r,i-r*n,r+i*n,s+o*n,o-s*n,s,o]}function Nd(e,t,n,i,r,s,o,l,u){const v=Math.sin(u*Wi/360),y=Math.cos(u*Wi/360),g=y*(e-n)/2+v*(t-i)/2,m=-v*(e-n)/2+y*(t-i)/2;if(g===0&&m===0)return[];if(o===0||l===0)return[];o=Math.abs(o),l=Math.abs(l);const x=g*g/(o*o)+m*m/(l*l);x>1&&(o*=Math.sqrt(x),l*=Math.sqrt(x));const I=Pd(e,t,n,i,r,s,o,l,v,y),k=[];let A=I[2],$=I[3];const P=Math.max(Math.ceil(Math.abs($)/(Wi/4)),1);$/=P;for(let O=0;O<P;O++)k.push(Id(A,$)),A+=$;return k.map(O=>{for(let D=0;D<O.length;D+=2){let W=O[D+0],U=O[D+1];W*=o,U*=l;const R=y*W-v*U,rt=v*W+y*U;O[D+0]=R+I[0],O[D+1]=rt+I[1]}return O})}function po(e){for(var t,n=[],i=0,r=0,s=0,o=0,l=null,u=null,v=0,y=0,g=0,m=e.length;g<m;g++){var x=e[g],I=x[0];switch(I){case"M":s=x[1],o=x[2];break;case"A":var k=Nd(v,y,x[6],x[7],x[4],x[5],x[1],x[2],x[3]);if(!k.length)continue;k=k.map(D=>{const[W,U,R,rt,ct,mt,ht,lt]=D;return{x1:R,y1:rt,x2:ct,y2:mt,x:ht,y:lt}});for(var A=0,$;A<k.length;A++)$=k[A],x=["C",$.x1,$.y1,$.x2,$.y2,$.x,$.y],A<k.length-1&&n.push(x);break;case"S":var P=v,O=y;(t=="C"||t=="S")&&(P+=P-i,O+=O-r),x=["C",P,O,x[1],x[2],x[3],x[4]];break;case"T":t=="Q"||t=="T"?(l=v*2-l,u=y*2-u):(l=v,u=y),x=mc(v,y,l,u,x[1],x[2]);break;case"Q":l=x[1],u=x[2],x=mc(v,y,x[1],x[2],x[3],x[4]);break;case"L":x=Gr(v,y,x[1],x[2]);break;case"H":x=Gr(v,y,x[1],y);break;case"V":x=Gr(v,y,v,x[1]);break;case"Z":x=Gr(v,y,s,o);break}t=I,v=x[x.length-2],y=x[x.length-1],x.length>4?(i=x[x.length-4],r=x[x.length-3]):(i=v,r=y),n.push(x)}return n}function Gr(e,t,n,i){return["C",e,t,n,i,n,i]}function mc(e,t,n,i,r,s){return["C",e/3+.6666666666666666*n,t/3+.6666666666666666*i,r/3+.6666666666666666*n,s/3+.6666666666666666*i,r,s]}const Od=e=>Array.isArray(e);function oi(e){if(!(this instanceof oi))return new oi(e);this._path=Od(e)?e:ho(e),this._path=fo(this._path),this._path=Ad(this._path),this._path=Md(this._path)}oi.prototype.at=function(e,t){return this._walk(e,t).pos},oi.prototype.length=function(){return this._walk(null).length},oi.prototype._walk=function(e,t){let n=[0,0],i=[0,0,0],r=[0,0],s=0;for(let y=0;y<this._path.length;y++){let g=this._path[y];if(g[0]==="M"){if(n[0]=g[1],n[1]=g[2],e===0)return{length:s,pos:n}}else if(g[0]==="C"){i[0]=r[0]=n[0],i[1]=r[1]=n[1],i[2]=s;let m=100;for(let x=0;x<=m;x++){let I=x/m,k=o(g,I),A=l(g,I);if(s+=mo(n[0],n[1],k,A),n[0]=k,n[1]=A,typeof e=="number"&&s>=e){let $=(s-e)/(s-i[2]),P=[n[0]*(1-$)+i[0]*$,n[1]*(1-$)+i[1]*$];return{length:s,pos:P}}i[0]=n[0],i[1]=n[1],i[2]=s}}else if(g[0]==="Q"){i[0]=r[0]=n[0],i[1]=r[1]=n[1],i[2]=s;let m=100;for(let x=0;x<=m;x++){let I=x/m,k=u(g,I),A=v(g,I);if(s+=mo(n[0],n[1],k,A),n[0]=k,n[1]=A,typeof e=="number"&&s>=e){let $=(s-e)/(s-i[2]),P=[n[0]*(1-$)+i[0]*$,n[1]*(1-$)+i[1]*$];return{length:s,pos:P}}i[0]=n[0],i[1]=n[1],i[2]=s}}else if(g[0]==="L"){if(i[0]=n[0],i[1]=n[1],i[2]=s,s+=mo(n[0],n[1],g[1],g[2]),n[0]=g[1],n[1]=g[2],typeof e=="number"&&s>=e){let m=(s-e)/(s-i[2]),x=[n[0]*(1-m)+i[0]*m,n[1]*(1-m)+i[1]*m];return{length:s,pos:x}}i[0]=n[0],i[1]=n[1],i[2]=s}}return{length:s,pos:n};function o(y,g){return Math.pow(1-g,3)*r[0]+3*Math.pow(1-g,2)*g*y[1]+3*(1-g)*Math.pow(g,2)*y[3]+Math.pow(g,3)*y[5]}function l(y,g){return Math.pow(1-g,3)*r[1]+3*Math.pow(1-g,2)*g*y[2]+3*(1-g)*Math.pow(g,2)*y[4]+Math.pow(g,3)*y[6]}function u(y,g){return Math.pow(1-g,2)*r[0]+2*(1-g)*g*y[1]+Math.pow(g,2)*y[3]}function v(y,g){return Math.pow(1-g,2)*r[1]+2*(1-g)*g*y[2]+Math.pow(g,2)*y[4]}};function mo(e,t,n,i){let r=e-n,s=t-i;return Math.sqrt(r*r+s*s)}function Md(e){let t,n=0,i=0,r={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let s=0,o=e.length;s<o;s++){let l=e[s],u=r[l[0]];u&&(l[0]=u.to,t&&(t[0]===u.to?(n=2*t[u.x+2]-t[u.x],i=2*t[u.x+3]-t[u.x+1]):(n=t[t.length-2],i=t[t.length-1])),l.splice(1,0,n,i)),t=l}return e}function Ad(e){let t=[],n=["L",0,0],i;for(let r=0,s=e.length;r<s;r++){let o=e[r];switch(o[0]){case"M":n=["L",o[1],o[2]],t.push(o);break;case"Z":t.push(n);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",o[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],o[1]]);break;default:t.push(o)}}return t}const go=e=>{if(typeof e=="function"||Object(e)!==e)return e;const t=new e.constructor;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=go(e[n]));return t};function vo(e){const t=vo.ps=vo.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(()=>{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&n!==e&&(t[n].sleep--,t[n].sleep||delete t[n])}),t[e]}function qi(e,t,n,i){return e==null&&(e=t=n=i=0),t==null&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:i,h:i,x2:e+n,y2:t+i,cx:e+n/2,cy:t+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:zd(e,t,n,i),vb:[e,t,n,i].join(" ")}}function gc(e,t,n,i,r,s,o,l,u){const v=1-u,y=v**3,g=v**2,m=u*u,x=m*u,I=y*e+g*3*u*n+v*3*u*u*r+x*o,k=y*t+g*3*u*i+v*3*u*u*s+x*l,A=e+2*u*(n-e)+m*(r-2*n+e),$=t+2*u*(i-t)+m*(s-2*i+t),P=n+2*u*(r-n)+m*(o-2*r+n),O=i+2*u*(s-i)+m*(l-2*s+i),D=v*e+u*n,W=v*t+u*i,U=v*r+u*o,R=v*s+u*l,rt=90-Math.atan2(A-P,$-O)*180/Math.PI;return{x:I,y:k,m:{x:A,y:$},n:{x:P,y:O},start:{x:D,y:W},end:{x:U,y:R},alpha:rt}}function vc(e,t,n,i,r,s,o,l){Array.isArray(e)||(e=[e,t,n,i,r,s,o,l]);const u=xc(...e);return qi(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)}function Ld(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Rd(e,t){e=qi(e),t=qi(t);const{x:n,y:i,width:r,height:s}=e,{x:o,y:l,width:u,height:v}=t,y=n+r/2,g=i+s/2,m=o+u/2,x=l+v/2;return Math.abs(y-m)<=(r+u)/2||Math.abs(g-x)<=(s+v)/2}function yc(e,t,n,i,r){const s=-3*t+9*n-9*i+3*r,o=e*s+6*t-12*n+6*i;return e*o-3*t+3*n}function _c(e,t,n,i,r,s,o,l,u){u==null&&(u=1),u=Math.max(0,Math.min(u,1));const v=u/2,y=12,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let x=0;for(let I=0;I<y;I++){const k=v*g[I]+v,A=yc(k,e,n,r,o),$=yc(k,t,i,s,l),P=A*A+$*$;x+=m[I]*Math.sqrt(P)}return v*x}function Dd(e,t,n,i,r,s,o,l){if(Math.max(e,n)<Math.min(r,o)||Math.min(e,n)>Math.max(r,o)||Math.max(t,i)<Math.min(s,l)||Math.min(t,i)>Math.max(s,l))return;const u=(e*i-t*n)*(r-o)-(e-n)*(r*l-s*o),v=(e*i-t*n)*(s-l)-(t-i)*(r*l-s*o),y=(e-n)*(s-l)-(t-i)*(r-o);if(!y)return;const g=u/y,m=v/y,x=Number(g.toFixed(2)),I=Number(m.toFixed(2));if(!(x<Number(Math.min(e,n).toFixed(2))||x>Number(Math.max(e,n).toFixed(2))||x<Number(Math.min(r,o).toFixed(2))||x>Number(Math.max(r,o).toFixed(2))||I<Number(Math.min(t,i).toFixed(2))||I>Number(Math.max(t,i).toFixed(2))||I<Number(Math.min(s,l).toFixed(2))||I>Number(Math.max(s,l).toFixed(2))))return{x:g,y:m}}function Fd(e,t,n){const i=vc(e),r=vc(t);if(!Rd(i,r))return n?0:[];const s=_c.apply(0,e),o=_c.apply(0,t),l=Math.ceil(s/8),u=Math.ceil(o/8),v=[],y=[],g={};let m=n?0:[];for(let x=0;x<l+1;x++){const I=gc.apply(0,e.concat(x/l));v.push({x:I.x,y:I.y,t:x/l})}for(let x=0;x<u+1;x++){const I=gc.apply(0,t.concat(x/u));y.push({x:I.x,y:I.y,t:x/u})}for(let x=0;x<l;x++)for(let I=0;I<u;I++){const k=v[x],A=v[x+1],$=y[I],P=y[I+1],O=Math.abs(A.x-k.x)<.001?"y":"x",D=Math.abs(P.x-$.x)<.001?"y":"x",W=Dd(k.x,k.y,A.x,A.y,$.x,$.y,P.x,P.y);if(W&&g[W.x.toFixed(4)]!==W.y.toFixed(4)){g[W.x.toFixed(4)]=W.y.toFixed(4);const U=k.t+Math.abs((W[O]-k[O])/(A[O]-k[O]))*(A.t-k.t),R=$.t+Math.abs((W[D]-$[D])/(P[D]-$[D]))*(P.t-$.t);U>=0&&U<=1&&R>=0&&R<=1&&(n?m++:m.push({x:W.x,y:W.y,t1:U,t2:R}))}}return m}function Vd(e,t,n){let i,r,s,o,l,u,v,y,g,m,x=n?0:[];for(let I=0,k=e.length;I<k;I++){const A=e[I];if(A[0]==="M")i=l=A[1],r=u=A[2];else{A[0]==="C"?(g=[i,r].concat(A.slice(1)),i=g[6],r=g[7]):(g=[i,r,i,r,l,u,l,u],i=l,r=u);for(let $=0,P=t.length;$<P;$++){const O=t[$];if(O[0]==="M")s=v=O[1],o=y=O[2];else{O[0]==="C"?(m=[s,o].concat(O.slice(1)),s=m[6],o=m[7]):(m=[s,o,s,o,v,y,v,y],s=v,o=y);const D=Fd(g,m,n);if(n)x+=D;else{for(let W=0,U=D.length;W<U;W++)D[W].segment1=I,D[W].segment2=$,D[W].bez1=g,D[W].bez2=m;x=x.concat(D)}}}}}return x}function $d(e){const t=vo(e);if(t.bbox)return go(t.bbox);if(!e)return qi();let n=0,i=0,r=[],s=[],o=[];for(let m=0,x=e.length;m<x;m++)if(o=e[m],o[0]==="M")n=o[1],i=o[2],r.push(n),s.push(i);else{const I=xc(n,i,o[1],o[2],o[3],o[4],o[5],o[6]);r=r.concat(I.min.x,I.max.x),s=s.concat(I.min.y,I.max.y),n=o[5],i=o[6]}const l=Math.min.apply(0,r),u=Math.min.apply(0,s),v=Math.max.apply(0,r),y=Math.max.apply(0,s),g=qi(l,u,v-l,y-u);return t.bbox=go(g),g}function zd(e,t,n,i,r){return r?[["M",Number(e)+Number(r),t],["l",n-r*2,0],["a",r,r,0,0,1,r,r],["l",0,i-r*2],["a",r,r,0,0,1,-r,r],["l",r*2-n,0],["a",r,r,0,0,1,-r,-r],["l",0,r*2-i],["a",r,r,0,0,1,r,-r],["z"]]:[["M",e,t],["l",n,0],["l",0,i],["l",-n,0],["z"]]}function xc(e,t,n,i,r,s,o,l){const u=[],v=[[],[]];let y,g,m,x,I,k,A,$;for(let W=0;W<2;++W){if(W===0?(g=6*e-12*n+6*r,y=-3*e+9*n-9*r+3*o,m=3*n-3*e):(g=6*t-12*i+6*s,y=-3*t+9*i-9*s+3*l,m=3*i-3*t),Math.abs(y)<1e-12){if(Math.abs(g)<1e-12)continue;x=-m/g,x>0&&x<1&&u.push(x);continue}A=g*g-4*m*y,$=Math.sqrt(A),!(A<0)&&(I=(-g+$)/(2*y),I>0&&I<1&&u.push(I),k=(-g-$)/(2*y),k>0&&k<1&&u.push(k))}let P=u.length,O;const D=P;for(;P--;)x=u[P],O=1-x,v[0][P]=O*O*O*e+3*O*O*x*n+3*O*x*x*r+x*x*x*o,v[1][P]=O*O*O*t+3*O*O*x*i+3*O*x*x*s+x*x*x*l;return v[0][D]=e,v[1][D]=t,v[0][D+1]=o,v[1][D+1]=l,v[0].length=v[1].length=D+2,{min:{x:Math.min.apply(0,v[0]),y:Math.min.apply(0,v[1])},max:{x:Math.max.apply(0,v[0]),y:Math.max.apply(0,v[1])}}}function Gd(e,t,n){const i=$d(e);return!(!Ld(i,t,n)||Vd(e,po([["M",t,n],["H",i.x2+10]]),1)%2!==1)}const yo=new Map;function bc(e){if(yo.has(e))return yo.get(e);const t=oi(e);return yo.set(e,t),t}function wc(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function jd(e,t){return Ar?wc(e).getTotalLength(t):bc(e).length()}function Bd(e,t){if(Ar)return wc(e).getPointAtLength(t);{const n=bc(e),[i,r]=n.at(t);return{x:i,y:r}}}let Re=null;function Hd(e,t,n){if(Ar){Re||(Re=document.createElement("canvas").getContext("2d"));const i=new Path2D(e);return Re.isPointInPath(i,t,n)}else return Gd(e,t,n)}function Ud(e,t,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(Ar){if(Re||(Re=document.createElement("canvas").getContext("2d")),Re.isPointInStroke){Re.save(),Re.lineWidth=i,Re.lineCap=r,Re.lineJoin=s;const o=new Path2D(e),l=Re.isPointInStroke(o,t,n);return Re.restore(),l}}else return null}class _o{point;constructor(t){this.point=new kn(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new _o({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}}const Ec=_o;class xo extends Ec{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){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new xo({x:t[6],y:t[7],rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5]})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.point.x,this.point.y]}toSVGPathD(){return`A ${this.rx},${this.ry} ${this.xAxisRotate} ${this.largeArcFlag},${this.sweepFlag} ${this.point.toSVGPathD()}`}}const Cc=xo;class bo extends Ec{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new kn({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new kn({x:t.c2x,y:t.c2y}))}static fromSVGPathData(t){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new bo({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6]})}toSVGPathData(){return["C",this.ctrlPoints[0].x,this.ctrlPoints[0].y,this.ctrlPoints[1].x,this.ctrlPoints[1].y,this.point.x,this.point.y]}toSVGPathD(){return`C ${this.ctrlPoints.map(t=>t.toSVGPathD()).join(" ")} ${this.point.toSVGPathD()}`}}const wo=bo;class Yi{startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(t){this.startPoint=t?.startPoint??null,this.isClosed=t?.isClosed??!1,t?.lines?.forEach(this.addLine),this.normalize()}setStartPoint(t,n){return this.startPoint=new kn({x:t,y:n}),this}addLine(t){return this.lines.push(t),this}normalize(){let t=this.lines.reduce((i,r)=>(i+=r.toSVGPathD(),i),"");this.startPoint&&(t="M "+this.startPoint.toSVGPathD()+t),this.isClosed&&(t+="Z"),this.normalizedLines=[];const n=po(fo(ho(t)));for(let i=0,r=n.length;i<r;i++){const s=n[i];if(i==0&&s[0]=="M"){this.setStartPoint(s[1],s[2]);continue}if(i==r-1&&s[0]=="Z"){this.isClosed=!0;continue}this.normalizedLines.push(wo.fromSVGPathData(s))}return this}static fromSVGPathD(t,n){if(!Cd(t))throw new Error("Not an SVG path!");const i=po(fo(ho(t)));return Yi.fromSVGPathData(i,n)}static fromSVGPathData(t,n){const i=new Yi;for(let s=0,o=t.length;s<o;s++){const l=t[s],u=l[0];if(s==0&&u=="M"){i.setStartPoint(l[1],l[2]);continue}if(s==o-1&&u=="Z"){i.isClosed=!0;continue}i.addLine(new wo({c1x:l[1],c1y:l[2],c2x:l[3],c2y:l[4],x:l[5],y:l[6]}))}i.normalize();const r=$r(n??"");return i.transform(r)}toSVGPathD(){let t="";this.startPoint&&(t+="M "+this.startPoint.toSVGPathD());for(let n=0,i=this.normalizedLines.length;n<i;n++)t+=this.normalizedLines[n].toSVGPathD();return this.isClosed&&(t+="Z"),t}toSVGPathData(){const t=[];this.startPoint&&t.push(["M",...this.startPoint.toSVGPathData()]);for(let n=0,i=this.normalizedLines.length;n<i;n++)t.push(this.normalizedLines[n].toSVGPathData());return this.isClosed&&t.push(["Z"]),t}toCanvas(t){const n=this.normalizedLines;n.length&&(this.startPoint&&(t.beginPath(),t.moveTo(this.startPoint.x,this.startPoint.y)),n.forEach(i=>{const[r,...s]=i.toSVGPathData();r==="M"?t.moveTo(s[0],s[1]):r==="Z"?t.closePath():t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}),this.isClosed&&t.closePath())}get bounds(){let t=[0,0,0,0];if(this.normalizedLines.length){t=[1/0,1/0,-1/0,-1/0];for(let n=0,i=this.normalizedLines.length;n<i;n++){const r=this.normalizedLines[n],s=[...r.ctrlPoints,r.point];for(let o=0;o<s.length;o++){const l=s[o].x,u=s[o].y;l<t[0]&&(t[0]=l),u<t[1]&&(t[1]=u),l>t[2]&&(t[2]=l),u>t[3]&&(t[3]=u)}}}return t}get size(){const t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}get center(){const[t,n,i,r]=this.bounds;return[(t+i)/2,(n+r)/2]}getTotalLength(){return jd(this.toSVGPathD())}getPointAtLength(t){return Bd(this.toSVGPathD(),t)}isPointInPath(t,n){return Hd(this.toSVGPathD(),t,n)}isPointInStroke(t,n,i={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return Ud(this.toSVGPathD(),t,n,i)}transform(t){if(this.startPoint){const[n,i]=t.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(n,i)}return this.normalizedLines=this.normalizedLines.map(n=>{const[i,...r]=n.toSVGPathData(),s=[i];for(let o=0,l=r.length;o<l;o+=2){const u=r[o],v=r[o+1],[y,g]=t.transformPoint(u,v);s.push(y,g)}return wo.fromSVGPathData(s)}),this}translate(t,n){const i=new we().translate(t,n);return this.transform(i)}rotate(t,n=0,i=0){const r=new we().rotate(t,n,i);return this.transform(r)}scale(t,n=t,i=0,r=0){const s=new we().scale(t,n,i,r);return this.transform(s)}skew(t,n=0){const i=new we().skew(t,n);return this.transform(i)}trim(){const[t,n]=this.bounds;return this.translate(-t,-n),this}static generateRosetta(t,n,i,r,s){if(s==0)throw new Error("no dividing by zero, please");const o=new Yi;o.setStartPoint(t,n);const l=360/s;for(let u=0;u<s;u+=1){const v=l*u*Math.PI/180,y=t+2*i*Math.cos(v),g=n+2*i*Math.sin(v);o.addLine(new Cc({x:y,y:g,rx:i,ry:r,xAxisRotate:l*u,largeArcFlag:1,sweepFlag:1})),o.addLine(new Cc({x:t,y:n,rx:i,ry:r,xAxisRotate:l*u,largeArcFlag:1,sweepFlag:1}))}return o.normalize(),o}}const Sc=Yi;var kc={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(window,function(){return function(n){var i={};function r(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=i,r.d=function(s,o,l){r.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},r.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,o){if(1&o&&(s=r(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var u in s)r.d(l,u,function(v){return s[v]}.bind(null,u));return l},r.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(o,"a",o),o},r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},r.p="",r(r.s=1)}([function(n,i,r){var s,o;s=[r(2)],(o=function(l){function u(c){if(u.is(c,"function"))return v?c():l.on("raphael.DOMload",c);if(u.is(c,it))return u._engine.create[P](u,c.splice(0,3+u.is(c[0],Q))).add(c);var f=Array.prototype.slice.call(arguments,0);if(u.is(f[f.length-1],"function")){var d=f.pop();return v?d.call(u._engine.create[P](u,f)):l.on("raphael.DOMload",function(){d.call(u._engine.create[P](u,f))})}return u._engine.create[P](u,arguments)}u.version="2.3.0",u.eve=l;var v,y,g=/[, ]+/,m={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},x=/\{(\d+)\}/g,I="hasOwnProperty",k={doc:document,win:window},A={was:Object.prototype[I].call(k.win,"Raphael"),is:k.win.Raphael},$=function(){this.ca=this.customAttributes={}},P="apply",O="concat",D="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,W="",U=" ",R=String,rt="split",ct="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[rt](U),mt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},ht=R.prototype.toLowerCase,lt=Math,gt=lt.max,ft=lt.min,At=lt.abs,Dt=lt.pow,zt=lt.PI,Q="number",it="array",st=Object.prototype.toString,S=(u._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\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),E={NaN:1,Infinity:1,"-Infinity":1},b=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,N=lt.round,L=parseFloat,V=parseInt,F=R.prototype.toUpperCase,X=u._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},z=u._availableAnimAttrs={blur:Q,"clip-rect":"csv",cx:Q,cy:Q,fill:"colour","fill-opacity":Q,"font-size":Q,height:Q,opacity:Q,path:"path",r:Q,rx:Q,ry:Q,stroke:"colour","stroke-opacity":Q,"stroke-width":Q,transform:"transform",width:Q,x:Q,y:Q},Z=/[\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]*/,at={hs:1,rg:1},pt=/,?([achlmqrstvxz]),?/gi,wt=/([achlmrqstvz])[\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,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\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]*)+)/gi,Pt=/([rstm])[\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,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\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]*)+)/gi,Et=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\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]*/gi,Nt=(u._radial_gradient=/^r(?:\(([^,]+?)[\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]*([^\)]+?)\))?/,{}),Lt=function(c,f){return L(c)-L(f)},Ft=function(c){return c},yt=u._rectPath=function(c,f,d,a,h){return h?[["M",c+h,f],["l",d-2*h,0],["a",h,h,0,0,1,h,h],["l",0,a-2*h],["a",h,h,0,0,1,-h,h],["l",2*h-d,0],["a",h,h,0,0,1,-h,-h],["l",0,2*h-a],["a",h,h,0,0,1,h,-h],["z"]]:[["M",c,f],["l",d,0],["l",0,a],["l",-d,0],["z"]]},Xt=function(c,f,d,a){return a==null&&(a=d),[["M",c,f],["m",0,-a],["a",d,a,0,1,1,0,2*a],["a",d,a,0,1,1,0,-2*a],["z"]]},Vt=u._getPath={path:function(c){return c.attr("path")},circle:function(c){var f=c.attrs;return Xt(f.cx,f.cy,f.r)},ellipse:function(c){var f=c.attrs;return Xt(f.cx,f.cy,f.rx,f.ry)},rect:function(c){var f=c.attrs;return yt(f.x,f.y,f.width,f.height,f.r)},image:function(c){var f=c.attrs;return yt(f.x,f.y,f.width,f.height)},text:function(c){var f=c._getBBox();return yt(f.x,f.y,f.width,f.height)},set:function(c){var f=c._getBBox();return yt(f.x,f.y,f.width,f.height)}},ee=u.mapPath=function(c,f){if(!f)return c;var d,a,h,p,_,w,C;for(h=0,_=(c=Yn(c)).length;h<_;h++)for(p=1,w=(C=c[h]).length;p<w;p+=2)d=f.x(C[p],C[p+1]),a=f.y(C[p],C[p+1]),C[p]=d,C[p+1]=a;return c};if(u._g=k,u.type=k.win.SVGAngle||k.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",u.type=="VML"){var Ht,Ee=k.doc.createElement("div");if(Ee.innerHTML='<v:shape adj="1"/>',(Ht=Ee.firstChild).style.behavior="url(#default#VML)",!Ht||typeof Ht.adj!="object")return u.type=W;Ee=null}function fe(c){if(typeof c=="function"||Object(c)!==c)return c;var f=new c.constructor;for(var d in c)c[I](d)&&(f[d]=fe(c[d]));return f}u.svg=!(u.vml=u.type=="VML"),u._Paper=$,u.fn=y=$.prototype=u.prototype,u._id=0,u.is=function(c,f){return(f=ht.call(f))=="finite"?!E[I](+c):f=="array"?c instanceof Array:f=="null"&&c===null||f==typeof c&&c!==null||f=="object"&&c===Object(c)||f=="array"&&Array.isArray&&Array.isArray(c)||st.call(c).slice(8,-1).toLowerCase()==f},u.angle=function(c,f,d,a,h,p){if(h==null){var _=c-d,w=f-a;return _||w?(180+180*lt.atan2(-w,-_)/zt+360)%360:0}return u.angle(c,f,h,p)-u.angle(d,a,h,p)},u.rad=function(c){return c%360*zt/180},u.deg=function(c){return Math.round(180*c/zt%360*1e3)/1e3},u.snapTo=function(c,f,d){if(d=u.is(d,"finite")?d:10,u.is(c,it)){for(var a=c.length;a--;)if(At(c[a]-f)<=d)return c[a]}else{var h=f%(c=+c);if(h<d)return f-h;if(h>c-d)return f-h+c}return f};var Ye,Tn;u.createUUID=(Ye=/[xy]/g,Tn=function(c){var f=16*lt.random()|0;return(c=="x"?f:3&f|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ye,Tn).toUpperCase()}),u.setWindow=function(c){l("raphael.setWindow",u,k.win,c),k.win=c,k.doc=k.win.document,u._engine.initWin&&u._engine.initWin(k.win)};var Ue=function(c){if(u.vml){var f,d=/^\s+|\s+$/g;try{var a=new ActiveXObject("htmlfile");a.write("<body>"),a.close(),f=a.body}catch{f=createPopup().document.body}var h=f.createTextRange();Ue=ce(function(_){try{f.style.color=R(_).replace(d,W);var w=h.queryCommandValue("ForeColor");return"#"+("000000"+(w=(255&w)<<16|65280&w|(16711680&w)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var p=k.doc.createElement("i");p.title="Raphaël Colour Picker",p.style.display="none",k.doc.body.appendChild(p),Ue=ce(function(_){return p.style.color=_,k.doc.defaultView.getComputedStyle(p,W).getPropertyValue("color")})}return Ue(c)},on=function(){return"hsb("+[this.h,this.s,this.b]+")"},an=function(){return"hsl("+[this.h,this.s,this.l]+")"},Xe=function(){return this.hex},Ke=function(c,f,d){if(f==null&&u.is(c,"object")&&"r"in c&&"g"in c&&"b"in c&&(d=c.b,f=c.g,c=c.r),f==null&&u.is(c,"string")){var a=u.getRGB(c);c=a.r,f=a.g,d=a.b}return(c>1||f>1||d>1)&&(c/=255,f/=255,d/=255),[c,f,d]},ui=function(c,f,d,a){var h={r:c*=255,g:f*=255,b:d*=255,hex:u.rgb(c,f,d),toString:Xe};return u.is(a,"finite")&&(h.opacity=a),h};function ce(c,f,d){return function a(){var h=Array.prototype.slice.call(arguments,0),p=h.join("␀"),_=a.cache=a.cache||{},w=a.count=a.count||[];return _[I](p)?(function(C,M){for(var G=0,Y=C.length;G<Y;G++)if(C[G]===M)return C.push(C.splice(G,1)[0])}(w,p),d?d(_[p]):_[p]):(w.length>=1e3&&delete _[w.shift()],w.push(p),_[p]=c[P](f,h),d?d(_[p]):_[p])}}u.color=function(c){var f;return u.is(c,"object")&&"h"in c&&"s"in c&&"b"in c?(f=u.hsb2rgb(c),c.r=f.r,c.g=f.g,c.b=f.b,c.hex=f.hex):u.is(c,"object")&&"h"in c&&"s"in c&&"l"in c?(f=u.hsl2rgb(c),c.r=f.r,c.g=f.g,c.b=f.b,c.hex=f.hex):(u.is(c,"string")&&(c=u.getRGB(c)),u.is(c,"object")&&"r"in c&&"g"in c&&"b"in c?(f=u.rgb2hsl(c),c.h=f.h,c.s=f.s,c.l=f.l,f=u.rgb2hsb(c),c.v=f.b):(c={hex:"none"}).r=c.g=c.b=c.h=c.s=c.v=c.l=-1),c.toString=Xe,c},u.hsb2rgb=function(c,f,d,a){var h,p,_,w,C;return this.is(c,"object")&&"h"in c&&"s"in c&&"b"in c&&(d=c.b,f=c.s,a=c.o,c=c.h),w=(C=d*f)*(1-At((c=(c*=360)%360/60)%2-1)),h=p=_=d-C,ui(h+=[C,w,0,0,w,C][c=~~c],p+=[w,C,C,w,0,0][c],_+=[0,0,w,C,C,w][c],a)},u.hsl2rgb=function(c,f,d,a){var h,p,_,w,C;return this.is(c,"object")&&"h"in c&&"s"in c&&"l"in c&&(d=c.l,f=c.s,c=c.h),(c>1||f>1||d>1)&&(c/=360,f/=100,d/=100),w=(C=2*f*(d<.5?d:1-d))*(1-At((c=(c*=360)%360/60)%2-1)),h=p=_=d-C/2,ui(h+=[C,w,0,0,w,C][c=~~c],p+=[w,C,C,w,0,0][c],_+=[0,0,w,C,C,w][c],a)},u.rgb2hsb=function(c,f,d){var a,h;return c=(d=Ke(c,f,d))[0],f=d[1],d=d[2],{h:(((h=(a=gt(c,f,d))-ft(c,f,d))==0?null:a==c?(f-d)/h:a==f?(d-c)/h+2:(c-f)/h+4)+360)%6*60/360,s:h==0?0:h/a,b:a,toString:on}},u.rgb2hsl=function(c,f,d){var a,h,p,_;return c=(d=Ke(c,f,d))[0],f=d[1],d=d[2],a=((h=gt(c,f,d))+(p=ft(c,f,d)))/2,{h:(((_=h-p)==0?null:h==c?(f-d)/_:h==f?(d-c)/_+2:(c-f)/_+4)+360)%6*60/360,s:_==0?0:a<.5?_/(2*a):_/(2-2*a),l:a,toString:an}},u._path2string=function(){return this.join(",").replace(pt,"$1")},u._preload=function(c,f){var d=k.doc.createElement("img");d.style.cssText="position:absolute;left:-9999em;top:-9999em",d.onload=function(){f.call(this),this.onload=null,k.doc.body.removeChild(this)},d.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(d),d.src=c};function Ze(){return this.hex}function Pn(c,f){for(var d=[],a=0,h=c.length;h-2*!f>a;a+=2){var p=[{x:+c[a-2],y:+c[a-1]},{x:+c[a],y:+c[a+1]},{x:+c[a+2],y:+c[a+3]},{x:+c[a+4],y:+c[a+5]}];f?a?h-4==a?p[3]={x:+c[0],y:+c[1]}:h-2==a&&(p[2]={x:+c[0],y:+c[1]},p[3]={x:+c[2],y:+c[3]}):p[0]={x:+c[h-2],y:+c[h-1]}:h-4==a?p[3]=p[2]:a||(p[0]={x:+c[a],y:+c[a+1]}),d.push(["C",(-p[0].x+6*p[1].x+p[2].x)/6,(-p[0].y+6*p[1].y+p[2].y)/6,(p[1].x+6*p[2].x-p[3].x)/6,(p[1].y+6*p[2].y-p[3].y)/6,p[2].x,p[2].y])}return d}u.getRGB=ce(function(c){if(!c||(c=R(c)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ze};if(c=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ze};!at[I](c.toLowerCase().substring(0,2))&&c.charAt()!="#"&&(c=Ue(c));var f,d,a,h,p,_,w=c.match(S);return w?(w[2]&&(a=V(w[2].substring(5),16),d=V(w[2].substring(3,5),16),f=V(w[2].substring(1,3),16)),w[3]&&(a=V((p=w[3].charAt(3))+p,16),d=V((p=w[3].charAt(2))+p,16),f=V((p=w[3].charAt(1))+p,16)),w[4]&&(_=w[4][rt](Z),f=L(_[0]),_[0].slice(-1)=="%"&&(f*=2.55),d=L(_[1]),_[1].slice(-1)=="%"&&(d*=2.55),a=L(_[2]),_[2].slice(-1)=="%"&&(a*=2.55),w[1].toLowerCase().slice(0,4)=="rgba"&&(h=L(_[3])),_[3]&&_[3].slice(-1)=="%"&&(h/=100)),w[5]?(_=w[5][rt](Z),f=L(_[0]),_[0].slice(-1)=="%"&&(f*=2.55),d=L(_[1]),_[1].slice(-1)=="%"&&(d*=2.55),a=L(_[2]),_[2].slice(-1)=="%"&&(a*=2.55),(_[0].slice(-3)=="deg"||_[0].slice(-1)=="°")&&(f/=360),w[1].toLowerCase().slice(0,4)=="hsba"&&(h=L(_[3])),_[3]&&_[3].slice(-1)=="%"&&(h/=100),u.hsb2rgb(f,d,a,h)):w[6]?(_=w[6][rt](Z),f=L(_[0]),_[0].slice(-1)=="%"&&(f*=2.55),d=L(_[1]),_[1].slice(-1)=="%"&&(d*=2.55),a=L(_[2]),_[2].slice(-1)=="%"&&(a*=2.55),(_[0].slice(-3)=="deg"||_[0].slice(-1)=="°")&&(f/=360),w[1].toLowerCase().slice(0,4)=="hsla"&&(h=L(_[3])),_[3]&&_[3].slice(-1)=="%"&&(h/=100),u.hsl2rgb(f,d,a,h)):((w={r:f,g:d,b:a,toString:Ze}).hex="#"+(16777216|a|d<<8|f<<16).toString(16).slice(1),u.is(h,"finite")&&(w.opacity=h),w)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ze}},u),u.hsb=ce(function(c,f,d){return u.hsb2rgb(c,f,d).hex}),u.hsl=ce(function(c,f,d){return u.hsl2rgb(c,f,d).hex}),u.rgb=ce(function(c,f,d){function a(h){return h+.5|0}return"#"+(16777216|a(d)|a(f)<<8|a(c)<<16).toString(16).slice(1)}),u.getColor=function(c){var f=this.getColor.start=this.getColor.start||{h:0,s:1,b:c||.75},d=this.hsb2rgb(f.h,f.s,f.b);return f.h+=.075,f.h>1&&(f.h=0,f.s-=.2,f.s<=0&&(this.getColor.start={h:0,s:1,b:f.b})),d.hex},u.getColor.reset=function(){delete this.start},u.parsePathString=function(c){if(!c)return null;var f=Te(c);if(f.arr)return me(f.arr);var d={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},a=[];return u.is(c,it)&&u.is(c[0],it)&&(a=me(c)),a.length||R(c).replace(wt,function(h,p,_){var w=[],C=p.toLowerCase();if(_.replace(Et,function(M,G){G&&w.push(+G)}),C=="m"&&w.length>2&&(a.push([p][O](w.splice(0,2))),C="l",p=p=="m"?"l":"L"),C=="r")a.push([p][O](w));else for(;w.length>=d[C]&&(a.push([p][O](w.splice(0,d[C]))),d[C]););}),a.toString=u._path2string,f.arr=me(a),a},u.parseTransformString=ce(function(c){if(!c)return null;var f=[];return u.is(c,it)&&u.is(c[0],it)&&(f=me(c)),f.length||R(c).replace(Pt,function(d,a,h){var p=[];ht.call(a),h.replace(Et,function(_,w){w&&p.push(+w)}),f.push([a][O](p))}),f.toString=u._path2string,f},this,function(c){if(!c)return c;for(var f=[],d=0;d<c.length;d++){for(var a=[],h=0;h<c[d].length;h++)a.push(c[d][h]);f.push(a)}return f});var Te=function(c){var f=Te.ps=Te.ps||{};return f[c]?f[c].sleep=100:f[c]={sleep:100},setTimeout(function(){for(var d in f)f[I](d)&&d!=c&&(f[d].sleep--,!f[d].sleep&&delete f[d])}),f[c]};function We(c,f,d,a,h){return c*(c*(-3*f+9*d-9*a+3*h)+6*f-12*d+6*a)-3*f+3*d}function Me(c,f,d,a,h,p,_,w,C){C==null&&(C=1);for(var M=(C=C>1?1:C<0?0:C)/2,G=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Y=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],H=0,j=0;j<12;j++){var K=M*G[j]+M,tt=We(K,c,d,h,_),J=We(K,f,a,p,w),q=tt*tt+J*J;H+=Y[j]*lt.sqrt(q)}return M*H}function qn(c,f,d,a,h,p,_,w){if(!(gt(c,d)<ft(h,_)||ft(c,d)>gt(h,_)||gt(f,a)<ft(p,w)||ft(f,a)>gt(p,w))){var C=(c-d)*(p-w)-(f-a)*(h-_);if(C){var M=((c*a-f*d)*(h-_)-(c-d)*(h*w-p*_))/C,G=((c*a-f*d)*(p-w)-(f-a)*(h*w-p*_))/C,Y=+M.toFixed(2),H=+G.toFixed(2);if(!(Y<+ft(c,d).toFixed(2)||Y>+gt(c,d).toFixed(2)||Y<+ft(h,_).toFixed(2)||Y>+gt(h,_).toFixed(2)||H<+ft(f,a).toFixed(2)||H>+gt(f,a).toFixed(2)||H<+ft(p,w).toFixed(2)||H>+gt(p,w).toFixed(2)))return{x:M,y:G}}}}function ln(c,f,d){var a=u.bezierBBox(c),h=u.bezierBBox(f);if(!u.isBBoxIntersect(a,h))return d?0:[];for(var p=Me.apply(0,c),_=Me.apply(0,f),w=gt(~~(p/5),1),C=gt(~~(_/5),1),M=[],G=[],Y={},H=d?0:[],j=0;j<w+1;j++){var K=u.findDotsAtSegment.apply(u,c.concat(j/w));M.push({x:K.x,y:K.y,t:j/w})}for(j=0;j<C+1;j++)K=u.findDotsAtSegment.apply(u,f.concat(j/C)),G.push({x:K.x,y:K.y,t:j/C});for(j=0;j<w;j++)for(var tt=0;tt<C;tt++){var J=M[j],q=M[j+1],ut=G[tt],et=G[tt+1],ot=At(q.x-J.x)<.001?"y":"x",nt=At(et.x-ut.x)<.001?"y":"x",St=qn(J.x,J.y,q.x,q.y,ut.x,ut.y,et.x,et.y);if(St){if(Y[St.x.toFixed(4)]==St.y.toFixed(4))continue;Y[St.x.toFixed(4)]=St.y.toFixed(4);var bt=J.t+At((St[ot]-J[ot])/(q[ot]-J[ot]))*(q.t-J.t),kt=ut.t+At((St[nt]-ut[nt])/(et[nt]-ut[nt]))*(et.t-ut.t);bt>=0&&bt<=1.001&&kt>=0&&kt<=1.001&&(d?H++:H.push({x:St.x,y:St.y,t1:ft(bt,1),t2:ft(kt,1)}))}}return H}function In(c,f,d){c=u._path2curve(c),f=u._path2curve(f);for(var a,h,p,_,w,C,M,G,Y,H,j=d?0:[],K=0,tt=c.length;K<tt;K++){var J=c[K];if(J[0]=="M")a=w=J[1],h=C=J[2];else{J[0]=="C"?(Y=[a,h].concat(J.slice(1)),a=Y[6],h=Y[7]):(Y=[a,h,a,h,w,C,w,C],a=w,h=C);for(var q=0,ut=f.length;q<ut;q++){var et=f[q];if(et[0]=="M")p=M=et[1],_=G=et[2];else{et[0]=="C"?(H=[p,_].concat(et.slice(1)),p=H[6],_=H[7]):(H=[p,_,p,_,M,G,M,G],p=M,_=G);var ot=ln(Y,H,d);if(d)j+=ot;else{for(var nt=0,St=ot.length;nt<St;nt++)ot[nt].segment1=K,ot[nt].segment2=q,ot[nt].bez1=Y,ot[nt].bez2=H;j=j.concat(ot)}}}}}return j}u.findDotsAtSegment=function(c,f,d,a,h,p,_,w,C){var M=1-C,G=Dt(M,3),Y=Dt(M,2),H=C*C,j=H*C,K=G*c+3*Y*C*d+3*M*C*C*h+j*_,tt=G*f+3*Y*C*a+3*M*C*C*p+j*w,J=c+2*C*(d-c)+H*(h-2*d+c),q=f+2*C*(a-f)+H*(p-2*a+f),ut=d+2*C*(h-d)+H*(_-2*h+d),et=a+2*C*(p-a)+H*(w-2*p+a),ot=M*c+C*d,nt=M*f+C*a,St=M*h+C*_,bt=M*p+C*w,kt=90-180*lt.atan2(J-ut,q-et)/zt;return(J>ut||q<et)&&(kt+=180),{x:K,y:tt,m:{x:J,y:q},n:{x:ut,y:et},start:{x:ot,y:nt},end:{x:St,y:bt},alpha:kt}},u.bezierBBox=function(c,f,d,a,h,p,_,w){u.is(c,"array")||(c=[c,f,d,a,h,p,_,w]);var C=hn.apply(null,c);return{x:C.min.x,y:C.min.y,x2:C.max.x,y2:C.max.y,width:C.max.x-C.min.x,height:C.max.y-C.min.y}},u.isPointInsideBBox=function(c,f,d){return f>=c.x&&f<=c.x2&&d>=c.y&&d<=c.y2},u.isBBoxIntersect=function(c,f){var d=u.isPointInsideBBox;return d(f,c.x,c.y)||d(f,c.x2,c.y)||d(f,c.x,c.y2)||d(f,c.x2,c.y2)||d(c,f.x,f.y)||d(c,f.x2,f.y)||d(c,f.x,f.y2)||d(c,f.x2,f.y2)||(c.x<f.x2&&c.x>f.x||f.x<c.x2&&f.x>c.x)&&(c.y<f.y2&&c.y>f.y||f.y<c.y2&&f.y>c.y)},u.pathIntersection=function(c,f){return In(c,f)},u.pathIntersectionNumber=function(c,f){return In(c,f,1)},u.isPointInsidePath=function(c,f,d){var a=u.pathBBox(c);return u.isPointInsideBBox(a,f,d)&&In(c,[["M",f,d],["H",a.x2+10]],1)%2==1},u._removedFactory=function(c){return function(){l("raphael.log",null,"Raphaël: you are calling to method “"+c+"” of removed object",c)}};var Fe=u.pathBBox=function(c){var f=Te(c);if(f.bbox)return fe(f.bbox);if(!c)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var d,a=0,h=0,p=[],_=[],w=0,C=(c=Yn(c)).length;w<C;w++)if((d=c[w])[0]=="M")a=d[1],h=d[2],p.push(a),_.push(h);else{var M=hn(a,h,d[1],d[2],d[3],d[4],d[5],d[6]);p=p[O](M.min.x,M.max.x),_=_[O](M.min.y,M.max.y),a=d[5],h=d[6]}var G=ft[P](0,p),Y=ft[P](0,_),H=gt[P](0,p),j=gt[P](0,_),K=H-G,tt=j-Y,J={x:G,y:Y,x2:H,y2:j,width:K,height:tt,cx:G+K/2,cy:Y+tt/2};return f.bbox=fe(J),J},me=function(c){var f=fe(c);return f.toString=u._path2string,f},Kr=u._pathToRelative=function(c){var f=Te(c);if(f.rel)return me(f.rel);u.is(c,it)&&u.is(c&&c[0],it)||(c=u.parsePathString(c));var d=[],a=0,h=0,p=0,_=0,w=0;c[0][0]=="M"&&(p=a=c[0][1],_=h=c[0][2],w++,d.push(["M",a,h]));for(var C=w,M=c.length;C<M;C++){var G=d[C]=[],Y=c[C];if(Y[0]!=ht.call(Y[0]))switch(G[0]=ht.call(Y[0]),G[0]){case"a":G[1]=Y[1],G[2]=Y[2],G[3]=Y[3],G[4]=Y[4],G[5]=Y[5],G[6]=+(Y[6]-a).toFixed(3),G[7]=+(Y[7]-h).toFixed(3);break;case"v":G[1]=+(Y[1]-h).toFixed(3);break;case"m":p=Y[1],_=Y[2];default:for(var H=1,j=Y.length;H<j;H++)G[H]=+(Y[H]-(H%2?a:h)).toFixed(3)}else{G=d[C]=[],Y[0]=="m"&&(p=Y[1]+a,_=Y[2]+h);for(var K=0,tt=Y.length;K<tt;K++)d[C][K]=Y[K]}var J=d[C].length;switch(d[C][0]){case"z":a=p,h=_;break;case"h":a+=+d[C][J-1];break;case"v":h+=+d[C][J-1];break;default:a+=+d[C][J-2],h+=+d[C][J-1]}}return d.toString=u._path2string,f.rel=me(d),d},Nn=u._pathToAbsolute=function(c){var f=Te(c);if(f.abs)return me(f.abs);if(u.is(c,it)&&u.is(c&&c[0],it)||(c=u.parsePathString(c)),!c||!c.length)return[["M",0,0]];var d=[],a=0,h=0,p=0,_=0,w=0;c[0][0]=="M"&&(p=a=+c[0][1],_=h=+c[0][2],w++,d[0]=["M",a,h]);for(var C,M,G=c.length==3&&c[0][0]=="M"&&c[1][0].toUpperCase()=="R"&&c[2][0].toUpperCase()=="Z",Y=w,H=c.length;Y<H;Y++){if(d.push(C=[]),(M=c[Y])[0]!=F.call(M[0]))switch(C[0]=F.call(M[0]),C[0]){case"A":C[1]=M[1],C[2]=M[2],C[3]=M[3],C[4]=M[4],C[5]=M[5],C[6]=+(M[6]+a),C[7]=+(M[7]+h);break;case"V":C[1]=+M[1]+h;break;case"H":C[1]=+M[1]+a;break;case"R":for(var j=[a,h][O](M.slice(1)),K=2,tt=j.length;K<tt;K++)j[K]=+j[K]+a,j[++K]=+j[K]+h;d.pop(),d=d[O](Pn(j,G));break;case"M":p=+M[1]+a,_=+M[2]+h;default:for(K=1,tt=M.length;K<tt;K++)C[K]=+M[K]+(K%2?a:h)}else if(M[0]=="R")j=[a,h][O](M.slice(1)),d.pop(),d=d[O](Pn(j,G)),C=["R"][O](M.slice(-2));else for(var J=0,q=M.length;J<q;J++)C[J]=M[J];switch(C[0]){case"Z":a=p,h=_;break;case"H":a=C[1];break;case"V":h=C[1];break;case"M":p=C[C.length-2],_=C[C.length-1];default:a=C[C.length-2],h=C[C.length-1]}}return d.toString=u._path2string,f.abs=me(d),d},cn=function(c,f,d,a){return[c,f,d,a,d,a]},Qe=function(c,f,d,a,h,p){return[1/3*c+2/3*d,1/3*f+2/3*a,1/3*h+2/3*d,1/3*p+2/3*a,h,p]},hi=function(c,f,d,a,h,p,_,w,C,M){var G,Y=120*zt/180,H=zt/180*(+h||0),j=[],K=ce(function(Qc,Jc,as){return{x:Qc*lt.cos(as)-Jc*lt.sin(as),y:Qc*lt.sin(as)+Jc*lt.cos(as)}});if(M)bt=M[0],kt=M[1],nt=M[2],St=M[3];else{c=(G=K(c,f,-H)).x,f=G.y,w=(G=K(w,C,-H)).x,C=G.y;var tt=(c-w)/2,J=(f-C)/2,q=tt*tt/(d*d)+J*J/(a*a);q>1&&(d*=q=lt.sqrt(q),a*=q);var ut=d*d,et=a*a,ot=(p==_?-1:1)*lt.sqrt(At((ut*et-ut*J*J-et*tt*tt)/(ut*J*J+et*tt*tt))),nt=ot*d*J/a+(c+w)/2,St=ot*-a*tt/d+(f+C)/2,bt=lt.asin(((f-St)/a).toFixed(9)),kt=lt.asin(((C-St)/a).toFixed(9));(bt=c<nt?zt-bt:bt)<0&&(bt=2*zt+bt),(kt=w<nt?zt-kt:kt)<0&&(kt=2*zt+kt),_&&bt>kt&&(bt-=2*zt),!_&&kt>bt&&(kt-=2*zt)}var _i=kt-bt;if(At(_i)>Y){var ir=kt,Ne=w,tn=C;kt=bt+Y*(_&&kt>bt?1:-1),w=nt+d*lt.cos(kt),C=St+a*lt.sin(kt),j=hi(w,C,d,a,h,0,_,Ne,tn,[kt,ir,nt,St])}_i=kt-bt;var xi=lt.cos(bt),bi=lt.sin(bt),ss=lt.cos(kt),vn=lt.sin(kt),Qn=lt.tan(_i/4),os=4/3*d*Qn,qc=4/3*a*Qn,Yc=[c,f],wi=[c+os*bi,f-qc*xi],Xc=[w+os*vn,C-qc*ss],Kc=[w,C];if(wi[0]=2*Yc[0]-wi[0],wi[1]=2*Yc[1]-wi[1],M)return[wi,Xc,Kc][O](j);for(var Zc=[],Ln=0,R0=(j=[wi,Xc,Kc][O](j).join()[rt](",")).length;Ln<R0;Ln++)Zc[Ln]=Ln%2?K(j[Ln-1],j[Ln],H).y:K(j[Ln],j[Ln+1],H).x;return Zc},un=function(c,f,d,a,h,p,_,w,C){var M=1-C;return{x:Dt(M,3)*c+3*Dt(M,2)*C*d+3*M*C*C*h+Dt(C,3)*_,y:Dt(M,3)*f+3*Dt(M,2)*C*a+3*M*C*C*p+Dt(C,3)*w}},hn=ce(function(c,f,d,a,h,p,_,w){var C,M=h-2*d+c-(_-2*h+d),G=2*(d-c)-2*(h-d),Y=c-d,H=(-G+lt.sqrt(G*G-4*M*Y))/2/M,j=(-G-lt.sqrt(G*G-4*M*Y))/2/M,K=[f,w],tt=[c,_];return At(H)>"1e12"&&(H=.5),At(j)>"1e12"&&(j=.5),H>0&&H<1&&(C=un(c,f,d,a,h,p,_,w,H),tt.push(C.x),K.push(C.y)),j>0&&j<1&&(C=un(c,f,d,a,h,p,_,w,j),tt.push(C.x),K.push(C.y)),M=p-2*a+f-(w-2*p+a),Y=f-a,H=(-(G=2*(a-f)-2*(p-a))+lt.sqrt(G*G-4*M*Y))/2/M,j=(-G-lt.sqrt(G*G-4*M*Y))/2/M,At(H)>"1e12"&&(H=.5),At(j)>"1e12"&&(j=.5),H>0&&H<1&&(C=un(c,f,d,a,h,p,_,w,H),tt.push(C.x),K.push(C.y)),j>0&&j<1&&(C=un(c,f,d,a,h,p,_,w,j),tt.push(C.x),K.push(C.y)),{min:{x:ft[P](0,tt),y:ft[P](0,K)},max:{x:gt[P](0,tt),y:gt[P](0,K)}}}),Yn=u._path2curve=ce(function(c,f){var d=!f&&Te(c);if(!f&&d.curve)return me(d.curve);for(var a=Nn(c),h=f&&Nn(f),p={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},_={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},w=function(ot,nt,St){var bt,kt;if(!ot)return["C",nt.x,nt.y,nt.x,nt.y,nt.x,nt.y];switch(!(ot[0]in{T:1,Q:1})&&(nt.qx=nt.qy=null),ot[0]){case"M":nt.X=ot[1],nt.Y=ot[2];break;case"A":ot=["C"][O](hi[P](0,[nt.x,nt.y][O](ot.slice(1))));break;case"S":St=="C"||St=="S"?(bt=2*nt.x-nt.bx,kt=2*nt.y-nt.by):(bt=nt.x,kt=nt.y),ot=["C",bt,kt][O](ot.slice(1));break;case"T":St=="Q"||St=="T"?(nt.qx=2*nt.x-nt.qx,nt.qy=2*nt.y-nt.qy):(nt.qx=nt.x,nt.qy=nt.y),ot=["C"][O](Qe(nt.x,nt.y,nt.qx,nt.qy,ot[1],ot[2]));break;case"Q":nt.qx=ot[1],nt.qy=ot[2],ot=["C"][O](Qe(nt.x,nt.y,ot[1],ot[2],ot[3],ot[4]));break;case"L":ot=["C"][O](cn(nt.x,nt.y,ot[1],ot[2]));break;case"H":ot=["C"][O](cn(nt.x,nt.y,ot[1],nt.y));break;case"V":ot=["C"][O](cn(nt.x,nt.y,nt.x,ot[1]));break;case"Z":ot=["C"][O](cn(nt.x,nt.y,nt.X,nt.Y))}return ot},C=function(ot,nt){if(ot[nt].length>7){ot[nt].shift();for(var St=ot[nt];St.length;)G[nt]="A",h&&(Y[nt]="A"),ot.splice(nt++,0,["C"][O](St.splice(0,6)));ot.splice(nt,1),tt=gt(a.length,h&&h.length||0)}},M=function(ot,nt,St,bt,kt){ot&&nt&&ot[kt][0]=="M"&&nt[kt][0]!="M"&&(nt.splice(kt,0,["M",bt.x,bt.y]),St.bx=0,St.by=0,St.x=ot[kt][1],St.y=ot[kt][2],tt=gt(a.length,h&&h.length||0))},G=[],Y=[],H="",j="",K=0,tt=gt(a.length,h&&h.length||0);K<tt;K++){a[K]&&(H=a[K][0]),H!="C"&&(G[K]=H,K&&(j=G[K-1])),a[K]=w(a[K],p,j),G[K]!="A"&&H=="C"&&(G[K]="C"),C(a,K),h&&(h[K]&&(H=h[K][0]),H!="C"&&(Y[K]=H,K&&(j=Y[K-1])),h[K]=w(h[K],_,j),Y[K]!="A"&&H=="C"&&(Y[K]="C"),C(h,K)),M(a,h,p,_,K),M(h,a,_,p,K);var J=a[K],q=h&&h[K],ut=J.length,et=h&&q.length;p.x=J[ut-2],p.y=J[ut-1],p.bx=L(J[ut-4])||p.x,p.by=L(J[ut-3])||p.y,_.bx=h&&(L(q[et-4])||_.x),_.by=h&&(L(q[et-3])||_.y),_.x=h&&q[et-2],_.y=h&&q[et-1]}return h||(d.curve=me(a)),h?[a,h]:a},null,me),fi=(u._parseDots=ce(function(c){for(var f=[],d=0,a=c.length;d<a;d++){var h={},p=c[d].match(/^([^:]*):?([\d\.]*)/);if(h.color=u.getRGB(p[1]),h.color.error)return null;h.opacity=h.color.opacity,h.color=h.color.hex,p[2]&&(h.offset=p[2]+"%"),f.push(h)}for(d=1,a=f.length-1;d<a;d++)if(!f[d].offset){for(var _=L(f[d-1].offset||0),w=0,C=d+1;C<a;C++)if(f[C].offset){w=f[C].offset;break}w||(w=100,C=a);for(var M=((w=L(w))-_)/(C-d+1);d<C;d++)_+=M,f[d].offset=_+"%"}return f}),u._tear=function(c,f){c==f.top&&(f.top=c.prev),c==f.bottom&&(f.bottom=c.next),c.next&&(c.next.prev=c.prev),c.prev&&(c.prev.next=c.next)}),Zr=(u._tofront=function(c,f){f.top!==c&&(fi(c,f),c.next=null,c.prev=f.top,f.top.next=c,f.top=c)},u._toback=function(c,f){f.bottom!==c&&(fi(c,f),c.next=f.bottom,c.prev=null,f.bottom.prev=c,f.bottom=c)},u._insertafter=function(c,f,d){fi(c,d),f==d.top&&(d.top=c),f.next&&(f.next.prev=c),c.next=f.next,c.prev=f,f.next=c},u._insertbefore=function(c,f,d){fi(c,d),f==d.bottom&&(d.bottom=c),f.prev&&(f.prev.next=c),c.prev=f.prev,f.prev=c,c.next=f},u.toMatrix=function(c,f){var d=Fe(c),a={_:{transform:W},getBBox:function(){return d}};return di(a,f),a.matrix}),di=(u.transformPath=function(c,f){return ee(c,Zr(c,f))},u._extractTransform=function(c,f){if(f==null)return c._.transform;f=R(f).replace(/\.{3}|\u2026/g,c._.transform||W);var d,a,h=u.parseTransformString(f),p=0,_=1,w=1,C=c._,M=new fn;if(C.transform=h||[],h)for(var G=0,Y=h.length;G<Y;G++){var H,j,K,tt,J,q=h[G],ut=q.length,et=R(q[0]).toLowerCase(),ot=q[0]!=et,nt=ot?M.invert():0;et=="t"&&ut==3?ot?(H=nt.x(0,0),j=nt.y(0,0),K=nt.x(q[1],q[2]),tt=nt.y(q[1],q[2]),M.translate(K-H,tt-j)):M.translate(q[1],q[2]):et=="r"?ut==2?(J=J||c.getBBox(1),M.rotate(q[1],J.x+J.width/2,J.y+J.height/2),p+=q[1]):ut==4&&(ot?(K=nt.x(q[2],q[3]),tt=nt.y(q[2],q[3]),M.rotate(q[1],K,tt)):M.rotate(q[1],q[2],q[3]),p+=q[1]):et=="s"?ut==2||ut==3?(J=J||c.getBBox(1),M.scale(q[1],q[ut-1],J.x+J.width/2,J.y+J.height/2),_*=q[1],w*=q[ut-1]):ut==5&&(ot?(K=nt.x(q[3],q[4]),tt=nt.y(q[3],q[4]),M.scale(q[1],q[2],K,tt)):M.scale(q[1],q[2],q[3],q[4]),_*=q[1],w*=q[2]):et=="m"&&ut==7&&M.add(q[1],q[2],q[3],q[4],q[5],q[6]),C.dirtyT=1,c.matrix=M}c.matrix=M,C.sx=_,C.sy=w,C.deg=p,C.dx=d=M.e,C.dy=a=M.f,_==1&&w==1&&!p&&C.bbox?(C.bbox.x+=+d,C.bbox.y+=+a):C.dirtyT=1}),Qr=function(c){var f=c[0];switch(f.toLowerCase()){case"t":return[f,0,0];case"m":return[f,1,0,0,1,0,0];case"r":return c.length==4?[f,0,c[2],c[3]]:[f,0];case"s":return c.length==5?[f,1,1,c[3],c[4]]:c.length==3?[f,1,1]:[f,1]}},Jr=u._equaliseTransform=function(c,f){f=R(f).replace(/\.{3}|\u2026/g,c),c=u.parseTransformString(c)||[],f=u.parseTransformString(f)||[];for(var d,a,h,p,_=gt(c.length,f.length),w=[],C=[],M=0;M<_;M++){if(h=c[M]||Qr(f[M]),p=f[M]||Qr(h),h[0]!=p[0]||h[0].toLowerCase()=="r"&&(h[2]!=p[2]||h[3]!=p[3])||h[0].toLowerCase()=="s"&&(h[3]!=p[3]||h[4]!=p[4]))return;for(w[M]=[],C[M]=[],d=0,a=gt(h.length,p.length);d<a;d++)d in h&&(w[M][d]=h[d]),d in p&&(C[M][d]=p[d])}return{from:w,to:C}};function fn(c,f,d,a,h,p){c!=null?(this.a=+c,this.b=+f,this.c=+d,this.d=+a,this.e=+h,this.f=+p):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}u._getContainer=function(c,f,d,a){var h;if((h=a!=null||u.is(c,"object")?c:k.doc.getElementById(c))!=null)return h.tagName?f==null?{container:h,width:h.style.pixelWidth||h.offsetWidth,height:h.style.pixelHeight||h.offsetHeight}:{container:h,width:f,height:d}:{container:1,x:c,y:f,width:d,height:a}},u.pathToRelative=Kr,u._engine={},u.path2curve=Yn,u.matrix=function(c,f,d,a,h,p){return new fn(c,f,d,a,h,p)},function(c){function f(a){return a[0]*a[0]+a[1]*a[1]}function d(a){var h=lt.sqrt(f(a));a[0]&&(a[0]/=h),a[1]&&(a[1]/=h)}c.add=function(a,h,p,_,w,C){var M,G,Y,H,j=[[],[],[]],K=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],tt=[[a,p,w],[h,_,C],[0,0,1]];for(a&&a instanceof fn&&(tt=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]),M=0;M<3;M++)for(G=0;G<3;G++){for(H=0,Y=0;Y<3;Y++)H+=K[M][Y]*tt[Y][G];j[M][G]=H}this.a=j[0][0],this.b=j[1][0],this.c=j[0][1],this.d=j[1][1],this.e=j[0][2],this.f=j[1][2]},c.invert=function(){var a=this,h=a.a*a.d-a.b*a.c;return new fn(a.d/h,-a.b/h,-a.c/h,a.a/h,(a.c*a.f-a.d*a.e)/h,(a.b*a.e-a.a*a.f)/h)},c.clone=function(){return new fn(this.a,this.b,this.c,this.d,this.e,this.f)},c.translate=function(a,h){this.add(1,0,0,1,a,h)},c.scale=function(a,h,p,_){h==null&&(h=a),(p||_)&&this.add(1,0,0,1,p,_),this.add(a,0,0,h,0,0),(p||_)&&this.add(1,0,0,1,-p,-_)},c.rotate=function(a,h,p){a=u.rad(a),h=h||0,p=p||0;var _=+lt.cos(a).toFixed(9),w=+lt.sin(a).toFixed(9);this.add(_,w,-w,_,h,p),this.add(1,0,0,1,-h,-p)},c.x=function(a,h){return a*this.a+h*this.c+this.e},c.y=function(a,h){return a*this.b+h*this.d+this.f},c.get=function(a){return+this[R.fromCharCode(97+a)].toFixed(4)},c.toString=function(){return u.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},c.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},c.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},c.split=function(){var a={};a.dx=this.e,a.dy=this.f;var h=[[this.a,this.c],[this.b,this.d]];a.scalex=lt.sqrt(f(h[0])),d(h[0]),a.shear=h[0][0]*h[1][0]+h[0][1]*h[1][1],h[1]=[h[1][0]-h[0][0]*a.shear,h[1][1]-h[0][1]*a.shear],a.scaley=lt.sqrt(f(h[1])),d(h[1]),a.shear/=a.scaley;var p=-h[0][1],_=h[1][1];return _<0?(a.rotate=u.deg(lt.acos(_)),p<0&&(a.rotate=360-a.rotate)):a.rotate=u.deg(lt.asin(p)),a.isSimple=!(+a.shear.toFixed(9)||a.scalex.toFixed(9)!=a.scaley.toFixed(9)&&a.rotate),a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate,a.noRotation=!+a.shear.toFixed(9)&&!a.rotate,a},c.toTransformString=function(a){var h=a||this[rt]();return h.isSimple?(h.scalex=+h.scalex.toFixed(4),h.scaley=+h.scaley.toFixed(4),h.rotate=+h.rotate.toFixed(4),(h.dx||h.dy?"t"+[h.dx,h.dy]:W)+(h.scalex!=1||h.scaley!=1?"s"+[h.scalex,h.scaley,0,0]:W)+(h.rotate?"r"+[h.rotate,0,0]:W)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(fn.prototype);for(var ts=function(){this.returnValue=!1},es=function(){return this.originalEvent.preventDefault()},ns=function(){this.cancelBubble=!0},is=function(){return this.originalEvent.stopPropagation()},pi=function(c){var f=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,d=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;return{x:c.clientX+d,y:c.clientY+f}},dn=k.doc.addEventListener?function(c,f,d,a){var h=function(_){var w=pi(_);return d.call(a,_,w.x,w.y)};if(c.addEventListener(f,h,!1),D&&mt[f]){var p=function(_){for(var w=pi(_),C=_,M=0,G=_.targetTouches&&_.targetTouches.length;M<G;M++)if(_.targetTouches[M].target==c){(_=_.targetTouches[M]).originalEvent=C,_.preventDefault=es,_.stopPropagation=is;break}return d.call(a,_,w.x,w.y)};c.addEventListener(mt[f],p,!1)}return function(){return c.removeEventListener(f,h,!1),D&&mt[f]&&c.removeEventListener(mt[f],p,!1),!0}}:k.doc.attachEvent?function(c,f,d,a){var h=function(p){p=p||k.win.event;var _=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,w=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,C=p.clientX+w,M=p.clientY+_;return p.preventDefault=p.preventDefault||ts,p.stopPropagation=p.stopPropagation||ns,d.call(a,p,C,M)};return c.attachEvent("on"+f,h),function(){return c.detachEvent("on"+f,h),!0}}:void 0,Pe=[],pn=function(c){for(var f,d=c.clientX,a=c.clientY,h=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,p=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,_=Pe.length;_--;){if(f=Pe[_],D&&c.touches){for(var w,C=c.touches.length;C--;)if((w=c.touches[C]).identifier==f.el._drag.id){d=w.clientX,a=w.clientY,(c.originalEvent?c.originalEvent:c).preventDefault();break}}else c.preventDefault();var M,G=f.el.node,Y=G.nextSibling,H=G.parentNode,j=G.style.display;k.win.opera&&H.removeChild(G),G.style.display="none",M=f.el.paper.getElementByPoint(d,a),G.style.display=j,k.win.opera&&(Y?H.insertBefore(G,Y):H.appendChild(G)),M&&l("raphael.drag.over."+f.el.id,f.el,M),d+=p,a+=h,l("raphael.drag.move."+f.el.id,f.move_scope||f.el,d-f.el._drag.x,a-f.el._drag.y,d,a,c)}},On=function(c){u.unmousemove(pn).unmouseup(On);for(var f,d=Pe.length;d--;)(f=Pe[d]).el._drag={},l("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,c);Pe=[]},$t=u.el={},rs=ct.length;rs--;)(function(c){u[c]=$t[c]=function(f,d){return u.is(f,"function")&&(this.events=this.events||[],this.events.push({name:c,f,unbind:dn(this.shape||this.node||k.doc,c,f,d||this)})),this},u["un"+c]=$t["un"+c]=function(f){for(var d=this.events||[],a=d.length;a--;)d[a].name!=c||!u.is(f,"undefined")&&d[a].f!=f||(d[a].unbind(),d.splice(a,1),!d.length&&delete this.events);return this}})(ct[rs]);$t.data=function(c,f){var d=Nt[this.id]=Nt[this.id]||{};if(arguments.length==0)return d;if(arguments.length==1){if(u.is(c,"object")){for(var a in c)c[I](a)&&this.data(a,c[a]);return this}return l("raphael.data.get."+this.id,this,d[c],c),d[c]}return d[c]=f,l("raphael.data.set."+this.id,this,f,c),this},$t.removeData=function(c){return c==null?delete Nt[this.id]:Nt[this.id]&&delete Nt[this.id][c],this},$t.getData=function(){return fe(Nt[this.id]||{})},$t.hover=function(c,f,d,a){return this.mouseover(c,d).mouseout(f,a||d)},$t.unhover=function(c,f){return this.unmouseover(c).unmouseout(f)};var Mn=[];$t.drag=function(c,f,d,a,h,p){function _(w){(w.originalEvent||w).preventDefault();var C=w.clientX,M=w.clientY,G=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,Y=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;if(this._drag.id=w.identifier,D&&w.touches){for(var H,j=w.touches.length;j--;)if(H=w.touches[j],this._drag.id=H.identifier,H.identifier==this._drag.id){C=H.clientX,M=H.clientY;break}}this._drag.x=C+Y,this._drag.y=M+G,!Pe.length&&u.mousemove(pn).mouseup(On),Pe.push({el:this,move_scope:a,start_scope:h,end_scope:p}),f&&l.on("raphael.drag.start."+this.id,f),c&&l.on("raphael.drag.move."+this.id,c),d&&l.on("raphael.drag.end."+this.id,d),l("raphael.drag.start."+this.id,h||a||this,this._drag.x,this._drag.y,w)}return this._drag={},Mn.push({el:this,start:_}),this.mousedown(_),this},$t.onDragOver=function(c){c?l.on("raphael.drag.over."+this.id,c):l.unbind("raphael.drag.over."+this.id)},$t.undrag=function(){for(var c=Mn.length;c--;)Mn[c].el==this&&(this.unmousedown(Mn[c].start),Mn.splice(c,1),l.unbind("raphael.drag.*."+this.id));!Mn.length&&u.unmousemove(pn).unmouseup(On),Pe=[]},y.circle=function(c,f,d){var a=u._engine.circle(this,c||0,f||0,d||0);return this.__set__&&this.__set__.push(a),a},y.rect=function(c,f,d,a,h){var p=u._engine.rect(this,c||0,f||0,d||0,a||0,h||0);return this.__set__&&this.__set__.push(p),p},y.ellipse=function(c,f,d,a){var h=u._engine.ellipse(this,c||0,f||0,d||0,a||0);return this.__set__&&this.__set__.push(h),h},y.path=function(c){c&&!u.is(c,"string")&&!u.is(c[0],it)&&(c+=W);var f=u._engine.path(u.format[P](u,arguments),this);return this.__set__&&this.__set__.push(f),f},y.image=function(c,f,d,a,h){var p=u._engine.image(this,c||"about:blank",f||0,d||0,a||0,h||0);return this.__set__&&this.__set__.push(p),p},y.text=function(c,f,d){var a=u._engine.text(this,c||0,f||0,R(d));return this.__set__&&this.__set__.push(a),a},y.set=function(c){!u.is(c,"array")&&(c=Array.prototype.splice.call(arguments,0,arguments.length));var f=new Kn(c);return this.__set__&&this.__set__.push(f),f.paper=this,f.type="set",f},y.setStart=function(c){this.__set__=c||this.set()},y.setFinish=function(c){var f=this.__set__;return delete this.__set__,f},y.getSize=function(){var c=this.canvas.parentNode;return{width:c.offsetWidth,height:c.offsetHeight}},y.setSize=function(c,f){return u._engine.setSize.call(this,c,f)},y.setViewBox=function(c,f,d,a,h){return u._engine.setViewBox.call(this,c,f,d,a,h)},y.top=y.bottom=null,y.raphael=u;function Xn(){return this.x+U+this.y+U+this.width+" × "+this.height}y.getElementByPoint=function(c,f){var d,a,h,p,_,w,C,M=this.canvas,G=k.doc.elementFromPoint(c,f);if(k.win.opera&&G.tagName=="svg"){var Y=(a=(d=M).getBoundingClientRect(),h=d.ownerDocument,p=h.body,_=h.documentElement,w=_.clientTop||p.clientTop||0,C=_.clientLeft||p.clientLeft||0,{y:a.top+(k.win.pageYOffset||_.scrollTop||p.scrollTop)-w,x:a.left+(k.win.pageXOffset||_.scrollLeft||p.scrollLeft)-C}),H=M.createSVGRect();H.x=c-Y.x,H.y=f-Y.y,H.width=H.height=1;var j=M.getIntersectionList(H,null);j.length&&(G=j[j.length-1])}if(!G)return null;for(;G.parentNode&&G!=M.parentNode&&!G.raphael;)G=G.parentNode;return G==this.canvas.parentNode&&(G=M),G=G&&G.raphael?this.getById(G.raphaelid):null},y.getElementsByBBox=function(c){var f=this.set();return this.forEach(function(d){u.isBBoxIntersect(d.getBBox(),c)&&f.push(d)}),f},y.getById=function(c){for(var f=this.bottom;f;){if(f.id==c)return f;f=f.next}return null},y.forEach=function(c,f){for(var d=this.bottom;d;){if(c.call(f,d)===!1)return this;d=d.next}return this},y.getElementsByPoint=function(c,f){var d=this.set();return this.forEach(function(a){a.isPointInside(c,f)&&d.push(a)}),d},$t.isPointInside=function(c,f){var d=this.realPath=Vt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(d=u.transformPath(d,this.attr("transform"))),u.isPointInsidePath(d,c,f)},$t.getBBox=function(c){if(this.removed)return{};var f=this._;return c?(!f.dirty&&f.bboxwt||(this.realPath=Vt[this.type](this),f.bboxwt=Fe(this.realPath),f.bboxwt.toString=Xn,f.dirty=0),f.bboxwt):((f.dirty||f.dirtyT||!f.bbox)&&(!f.dirty&&this.realPath||(f.bboxwt=0,this.realPath=Vt[this.type](this)),f.bbox=Fe(ee(this.realPath,this.matrix)),f.bbox.toString=Xn,f.dirty=f.dirtyT=0),f.bbox)},$t.clone=function(){if(this.removed)return null;var c=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(c),c},$t.glow=function(c){if(this.type=="text")return null;var f={width:((c=c||{}).width||10)+(+this.attr("stroke-width")||1),fill:c.fill||!1,opacity:c.opacity==null?.5:c.opacity,offsetx:c.offsetx||0,offsety:c.offsety||0,color:c.color||"#000"},d=f.width/2,a=this.paper,h=a.set(),p=this.realPath||Vt[this.type](this);p=this.matrix?ee(p,this.matrix):p;for(var _=1;_<d+1;_++)h.push(a.path(p).attr({stroke:f.color,fill:f.fill?f.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(f.width/d*_).toFixed(3),opacity:+(f.opacity/d).toFixed(3)}));return h.insertBefore(this).translate(f.offsetx,f.offsety)};var ge=function(c,f,d,a,h,p,_,w,C){return C==null?Me(c,f,d,a,h,p,_,w):u.findDotsAtSegment(c,f,d,a,h,p,_,w,function(M,G,Y,H,j,K,tt,J,q){if(!(q<0||Me(M,G,Y,H,j,K,tt,J)<q)){var ut,et=.5,ot=1-et;for(ut=Me(M,G,Y,H,j,K,tt,J,ot);At(ut-q)>.01;)ut=Me(M,G,Y,H,j,K,tt,J,ot+=(ut<q?1:-1)*(et/=2));return ot}}(c,f,d,a,h,p,_,w,C))},Je=function(c,f){return function(d,a,h){for(var p,_,w,C,M,G="",Y={},H=0,j=0,K=(d=Yn(d)).length;j<K;j++){if((w=d[j])[0]=="M")p=+w[1],_=+w[2];else{if(H+(C=ge(p,_,w[1],w[2],w[3],w[4],w[5],w[6]))>a){if(f&&!Y.start){if(G+=["C"+(M=ge(p,_,w[1],w[2],w[3],w[4],w[5],w[6],a-H)).start.x,M.start.y,M.m.x,M.m.y,M.x,M.y],h)return G;Y.start=G,G=["M"+M.x,M.y+"C"+M.n.x,M.n.y,M.end.x,M.end.y,w[5],w[6]].join(),H+=C,p=+w[5],_=+w[6];continue}if(!c&&!f)return{x:(M=ge(p,_,w[1],w[2],w[3],w[4],w[5],w[6],a-H)).x,y:M.y,alpha:M.alpha}}H+=C,p=+w[5],_=+w[6]}G+=w.shift()+w}return Y.end=G,(M=c?H:f?Y:u.findDotsAtSegment(p,_,w[0],w[1],w[2],w[3],w[4],w[5],1)).alpha&&(M={x:M.x,y:M.y,alpha:M.alpha}),M}},qe=Je(1),Ve=Je(),mn=Je(0,1);u.getTotalLength=qe,u.getPointAtLength=Ve,u.getSubpath=function(c,f,d){if(this.getTotalLength(c)-d<1e-6)return mn(c,f).end;var a=mn(c,d,1);return f?mn(a,f).end:a},$t.getTotalLength=function(){var c=this.getPath();if(c)return this.node.getTotalLength?this.node.getTotalLength():qe(c)},$t.getPointAtLength=function(c){var f=this.getPath();if(f)return Ve(f,c)},$t.getPath=function(){var c,f=u._getPath[this.type];if(this.type!="text"&&this.type!="set")return f&&(c=f(this)),c},$t.getSubpath=function(c,f){var d=this.getPath();if(d)return u.getSubpath(d,c,f)};var Zt=u.easing_formulas={linear:function(c){return c},"<":function(c){return Dt(c,1.7)},">":function(c){return Dt(c,.48)},"<>":function(c){var f=.48-c/1.04,d=lt.sqrt(.1734+f*f),a=d-f,h=-d-f,p=Dt(At(a),1/3)*(a<0?-1:1)+Dt(At(h),1/3)*(h<0?-1:1)+.5;return 3*(1-p)*p*p+p*p*p},backIn:function(c){var f=1.70158;return c*c*((f+1)*c-f)},backOut:function(c){var f=1.70158;return(c-=1)*c*((f+1)*c+f)+1},elastic:function(c){return c==!!c?c:Dt(2,-10*c)*lt.sin(2*zt*(c-.075)/.3)+1},bounce:function(c){var f=7.5625,d=2.75;return c<1/d?f*c*c:c<2/d?f*(c-=1.5/d)*c+.75:c<2.5/d?f*(c-=2.25/d)*c+.9375:f*(c-=2.625/d)*c+.984375}};Zt.easeIn=Zt["ease-in"]=Zt["<"],Zt.easeOut=Zt["ease-out"]=Zt[">"],Zt.easeInOut=Zt["ease-in-out"]=Zt["<>"],Zt["back-in"]=Zt.backIn,Zt["back-out"]=Zt.backOut;var Ct=[],nr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(c){setTimeout(c,16)},mi=function(){for(var c=+new Date,f=0;f<Ct.length;f++){var d=Ct[f];if(!d.el.removed&&!d.paused){var a,h,p=c-d.start,_=d.ms,w=d.easing,C=d.from,M=d.diff,G=d.to,Y=(d.t,d.el),H={},j={};if(d.initstatus?(p=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*_,d.status=d.initstatus,delete d.initstatus,d.stop&&Ct.splice(f--,1)):d.status=(d.prev+(d.percent-d.prev)*(p/_))/d.anim.top,!(p<0))if(p<_){var K=w(p/_);for(var tt in C)if(C[I](tt)){switch(z[tt]){case Q:a=+C[tt]+K*_*M[tt];break;case"colour":a="rgb("+[An(N(C[tt].r+K*_*M[tt].r)),An(N(C[tt].g+K*_*M[tt].g)),An(N(C[tt].b+K*_*M[tt].b))].join(",")+")";break;case"path":a=[];for(var J=0,q=C[tt].length;J<q;J++){a[J]=[C[tt][J][0]];for(var ut=1,et=C[tt][J].length;ut<et;ut++)a[J][ut]=+C[tt][J][ut]+K*_*M[tt][J][ut];a[J]=a[J].join(U)}a=a.join(U);break;case"transform":if(M[tt].real)for(a=[],J=0,q=C[tt].length;J<q;J++)for(a[J]=[C[tt][J][0]],ut=1,et=C[tt][J].length;ut<et;ut++)a[J][ut]=C[tt][J][ut]+K*_*M[tt][J][ut];else{var ot=function(St){return+C[tt][St]+K*_*M[tt][St]};a=[["m",ot(0),ot(1),ot(2),ot(3),ot(4),ot(5)]]}break;case"csv":if(tt=="clip-rect")for(a=[],J=4;J--;)a[J]=+C[tt][J]+K*_*M[tt][J];break;default:var nt=[][O](C[tt]);for(a=[],J=Y.paper.customAttributes[tt].length;J--;)a[J]=+nt[J]+K*_*M[tt][J]}H[tt]=a}Y.attr(H),function(St,bt,kt){setTimeout(function(){l("raphael.anim.frame."+St,bt,kt)})}(Y.id,Y,d.anim)}else{if(function(St,bt,kt){setTimeout(function(){l("raphael.anim.frame."+bt.id,bt,kt),l("raphael.anim.finish."+bt.id,bt,kt),u.is(St,"function")&&St.call(bt)})}(d.callback,Y,d.anim),Y.attr(G),Ct.splice(f--,1),d.repeat>1&&!d.next){for(h in G)G[I](h)&&(j[h]=d.totalOrigin[h]);d.el.attr(j),gn(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&gn(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}}Ct.length&&nr(mi)},An=function(c){return c>255?255:c<0?0:c};function Ae(c,f,d,a,h,p){var _=3*f,w=3*(a-f)-_,C=1-_-w,M=3*d,G=3*(h-d)-M,Y=1-M-G;function H(j){return((C*j+w)*j+_)*j}return function(j,K){var tt=function(J,q){var ut,et,ot,nt,St,bt;for(ot=J,bt=0;bt<8;bt++){if(nt=H(ot)-J,At(nt)<q)return ot;if(At(St=(3*C*ot+2*w)*ot+_)<1e-6)break;ot-=nt/St}if(et=1,(ot=J)<(ut=0))return ut;if(ot>et)return et;for(;ut<et;){if(nt=H(ot),At(nt-J)<q)return ot;J>nt?ut=ot:et=ot,ot=(et-ut)/2+ut}return ot}(j,K);return((Y*tt+G)*tt+M)*tt}(c,1/(200*p))}function Ie(c,f){var d=[],a={};if(this.ms=f,this.times=1,c){for(var h in c)c[I](h)&&(a[L(h)]=c[h],d.push(L(h)));d.sort(Lt)}this.anim=a,this.top=d[d.length-1],this.percents=d}function gn(c,f,d,a,h,p){d=L(d);var _,w,C,M,G,Y,H=c.ms,j={},K={},tt={};if(a)for(q=0,ut=Ct.length;q<ut;q++){var J=Ct[q];if(J.el.id==f.id&&J.anim==c){J.percent!=d?(Ct.splice(q,1),C=1):w=J,f.attr(J.totalOrigin);break}}else a=+K;for(var q=0,ut=c.percents.length;q<ut;q++){if(c.percents[q]==d||c.percents[q]>a*c.top){d=c.percents[q],G=c.percents[q-1]||0,H=H/c.top*(d-G),M=c.percents[q+1],_=c.anim[d];break}a&&f.attr(c.anim[c.percents[q]])}if(_){if(w)w.initstatus=a,w.start=new Date-w.ms*a;else{for(var et in _)if(_[I](et)&&(z[I](et)||f.paper.customAttributes[I](et)))switch(j[et]=f.attr(et),j[et]==null&&(j[et]=X[et]),K[et]=_[et],z[et]){case Q:tt[et]=(K[et]-j[et])/H;break;case"colour":j[et]=u.getRGB(j[et]);var ot=u.getRGB(K[et]);tt[et]={r:(ot.r-j[et].r)/H,g:(ot.g-j[et].g)/H,b:(ot.b-j[et].b)/H};break;case"path":var nt=Yn(j[et],K[et]),St=nt[1];for(j[et]=nt[0],tt[et]=[],q=0,ut=j[et].length;q<ut;q++){tt[et][q]=[0];for(var bt=1,kt=j[et][q].length;bt<kt;bt++)tt[et][q][bt]=(St[q][bt]-j[et][q][bt])/H}break;case"transform":var _i=f._,ir=Jr(_i[et],K[et]);if(ir)for(j[et]=ir.from,K[et]=ir.to,tt[et]=[],tt[et].real=!0,q=0,ut=j[et].length;q<ut;q++)for(tt[et][q]=[j[et][q][0]],bt=1,kt=j[et][q].length;bt<kt;bt++)tt[et][q][bt]=(K[et][q][bt]-j[et][q][bt])/H;else{var Ne=f.matrix||new fn,tn={_:{transform:_i.transform},getBBox:function(){return f.getBBox(1)}};j[et]=[Ne.a,Ne.b,Ne.c,Ne.d,Ne.e,Ne.f],di(tn,K[et]),K[et]=tn._.transform,tt[et]=[(tn.matrix.a-Ne.a)/H,(tn.matrix.b-Ne.b)/H,(tn.matrix.c-Ne.c)/H,(tn.matrix.d-Ne.d)/H,(tn.matrix.e-Ne.e)/H,(tn.matrix.f-Ne.f)/H]}break;case"csv":var xi=R(_[et])[rt](g),bi=R(j[et])[rt](g);if(et=="clip-rect")for(j[et]=bi,tt[et]=[],q=bi.length;q--;)tt[et][q]=(xi[q]-j[et][q])/H;K[et]=xi;break;default:for(xi=[][O](_[et]),bi=[][O](j[et]),tt[et]=[],q=f.paper.customAttributes[et].length;q--;)tt[et][q]=((xi[q]||0)-(bi[q]||0))/H}var ss=_.easing,vn=u.easing_formulas[ss];if(!vn)if((vn=R(ss).match(b))&&vn.length==5){var Qn=vn;vn=function(os){return Ae(os,+Qn[1],+Qn[2],+Qn[3],+Qn[4],H)}}else vn=Ft;if(J={anim:c,percent:d,timestamp:Y=_.start||c.start||+new Date,start:Y+(c.del||0),status:0,initstatus:a||0,stop:!1,ms:H,easing:vn,from:j,diff:tt,to:K,el:f,callback:_.callback,prev:G,next:M,repeat:p||c.times,origin:f.attr(),totalOrigin:h},Ct.push(J),a&&!w&&!C&&(J.stop=!0,J.start=new Date-H*a,Ct.length==1))return mi();C&&(J.start=new Date-J.ms*a),Ct.length==1&&nr(mi)}l("raphael.anim.start."+f.id,f,c)}}function gi(c){for(var f=0;f<Ct.length;f++)Ct[f].el.paper==c&&Ct.splice(f--,1)}$t.animateWith=function(c,f,d,a,h,p){if(this.removed)return p&&p.call(this),this;var _=d instanceof Ie?d:u.animation(d,a,h,p);gn(_,this,_.percents[0],null,this.attr());for(var w=0,C=Ct.length;w<C;w++)if(Ct[w].anim==f&&Ct[w].el==c){Ct[C-1].start=Ct[w].start;break}return this},$t.onAnimation=function(c){return c?l.on("raphael.anim.frame."+this.id,c):l.unbind("raphael.anim.frame."+this.id),this},Ie.prototype.delay=function(c){var f=new Ie(this.anim,this.ms);return f.times=this.times,f.del=+c||0,f},Ie.prototype.repeat=function(c){var f=new Ie(this.anim,this.ms);return f.del=this.del,f.times=lt.floor(gt(c,0))||1,f},u.animation=function(c,f,d,a){if(c instanceof Ie)return c;!u.is(d,"function")&&d||(a=a||d||null,d=null),c=Object(c),f=+f||0;var h,p,_={};for(p in c)c[I](p)&&L(p)!=p&&L(p)+"%"!=p&&(h=!0,_[p]=c[p]);if(h)return d&&(_.easing=d),a&&(_.callback=a),new Ie({100:_},f);if(a){var w=0;for(var C in c){var M=V(C);c[I](C)&&M>w&&(w=M)}!c[w+="%"].callback&&(c[w].callback=a)}return new Ie(c,f)},$t.animate=function(c,f,d,a){if(this.removed)return a&&a.call(this),this;var h=c instanceof Ie?c:u.animation(c,f,d,a);return gn(h,this,h.percents[0],null,this.attr()),this},$t.setTime=function(c,f){return c&&f!=null&&this.status(c,ft(f,c.ms)/c.ms),this},$t.status=function(c,f){var d,a,h=[],p=0;if(f!=null)return gn(c,this,-1,ft(f,1)),this;for(d=Ct.length;p<d;p++)if((a=Ct[p]).el.id==this.id&&(!c||a.anim==c)){if(c)return a.status;h.push({anim:a.anim,status:a.status})}return c?0:h},$t.pause=function(c){for(var f=0;f<Ct.length;f++)Ct[f].el.id!=this.id||c&&Ct[f].anim!=c||l("raphael.anim.pause."+this.id,this,Ct[f].anim)!==!1&&(Ct[f].paused=!0);return this},$t.resume=function(c){for(var f=0;f<Ct.length;f++)if(Ct[f].el.id==this.id&&(!c||Ct[f].anim==c)){var d=Ct[f];l("raphael.anim.resume."+this.id,this,d.anim)!==!1&&(delete d.paused,this.status(d.anim,d.status))}return this},$t.stop=function(c){for(var f=0;f<Ct.length;f++)Ct[f].el.id!=this.id||c&&Ct[f].anim!=c||l("raphael.anim.stop."+this.id,this,Ct[f].anim)!==!1&&Ct.splice(f--,1);return this},l.on("raphael.remove",gi),l.on("raphael.clear",gi),$t.toString=function(){return"Raphaël’s object"};var vi,yi,$e,ze,Kn=function(c){if(this.items=[],this.length=0,this.type="set",c)for(var f=0,d=c.length;f<d;f++)!c[f]||c[f].constructor!=$t.constructor&&c[f].constructor!=Kn||(this[this.items.length]=this.items[this.items.length]=c[f],this.length++)},se=Kn.prototype;for(var Zn in se.push=function(){for(var c,f,d=0,a=arguments.length;d<a;d++)!(c=arguments[d])||c.constructor!=$t.constructor&&c.constructor!=Kn||(this[f=this.items.length]=this.items[f]=c,this.length++);return this},se.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},se.forEach=function(c,f){for(var d=0,a=this.items.length;d<a;d++)if(c.call(f,this.items[d],d)===!1)return this;return this},$t)$t[I](Zn)&&(se[Zn]=function(c){return function(){var f=arguments;return this.forEach(function(d){d[c][P](d,f)})}}(Zn));return se.attr=function(c,f){if(c&&u.is(c,it)&&u.is(c[0],"object"))for(var d=0,a=c.length;d<a;d++)this.items[d].attr(c[d]);else for(var h=0,p=this.items.length;h<p;h++)this.items[h].attr(c,f);return this},se.clear=function(){for(;this.length;)this.pop()},se.splice=function(c,f,d){c=c<0?gt(this.length+c,0):c,f=gt(0,ft(this.length-c,f));var a,h=[],p=[],_=[];for(a=2;a<arguments.length;a++)_.push(arguments[a]);for(a=0;a<f;a++)p.push(this[c+a]);for(;a<this.length-c;a++)h.push(this[c+a]);var w=_.length;for(a=0;a<w+h.length;a++)this.items[c+a]=this[c+a]=a<w?_[a]:h[a-w];for(a=this.items.length=this.length-=f-w;this[a];)delete this[a++];return new Kn(p)},se.exclude=function(c){for(var f=0,d=this.length;f<d;f++)if(this[f]==c)return this.splice(f,1),!0},se.animate=function(c,f,d,a){(u.is(d,"function")||!d)&&(a=d||null);var h,p,_=this.items.length,w=_,C=this;if(!_)return this;a&&(p=function(){!--_&&a.call(C)}),d=u.is(d,"string")?d:p;var M=u.animation(c,f,d,p);for(h=this.items[--w].animate(M);w--;)this.items[w]&&!this.items[w].removed&&this.items[w].animateWith(h,M,M),this.items[w]&&!this.items[w].removed||_--;return this},se.insertAfter=function(c){for(var f=this.items.length;f--;)this.items[f].insertAfter(c);return this},se.getBBox=function(){for(var c=[],f=[],d=[],a=[],h=this.items.length;h--;)if(!this.items[h].removed){var p=this.items[h].getBBox();c.push(p.x),f.push(p.y),d.push(p.x+p.width),a.push(p.y+p.height)}return{x:c=ft[P](0,c),y:f=ft[P](0,f),x2:d=gt[P](0,d),y2:a=gt[P](0,a),width:d-c,height:a-f}},se.clone=function(c){c=this.paper.set();for(var f=0,d=this.items.length;f<d;f++)c.push(this.items[f].clone());return c},se.toString=function(){return"Raphaël‘s set"},se.glow=function(c){var f=this.paper.set();return this.forEach(function(d,a){var h=d.glow(c);h?.forEach(function(p,_){f.push(p)})}),f},se.isPointInside=function(c,f){var d=!1;return this.forEach(function(a){if(a.isPointInside(c,f))return d=!0,!1}),d},u.registerFont=function(c){if(!c.face)return c;this.fonts=this.fonts||{};var f={w:c.w,face:{},glyphs:{}},d=c.face["font-family"];for(var a in c.face)c.face[I](a)&&(f.face[a]=c.face[a]);if(this.fonts[d]?this.fonts[d].push(f):this.fonts[d]=[f],!c.svg){for(var h in f.face["units-per-em"]=V(c.face["units-per-em"],10),c.glyphs)if(c.glyphs[I](h)){var p=c.glyphs[h];if(f.glyphs[h]={w:p.w,k:{},d:p.d&&"M"+p.d.replace(/[mlcxtrv]/g,function(w){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[w]||"M"})+"z"},p.k)for(var _ in p.k)p[I](_)&&(f.glyphs[h].k[_]=p.k[_])}}return c},y.getFont=function(c,f,d,a){if(a=a||"normal",d=d||"normal",f=+f||{normal:400,bold:700,lighter:300,bolder:800}[f]||400,u.fonts){var h,p=u.fonts[c];if(!p){var _=new RegExp("(^|\\s)"+c.replace(/[^\w\d\s+!~.:_-]/g,W)+"(\\s|$)","i");for(var w in u.fonts)if(u.fonts[I](w)&&_.test(w)){p=u.fonts[w];break}}if(p)for(var C=0,M=p.length;C<M&&((h=p[C]).face["font-weight"]!=f||h.face["font-style"]!=d&&h.face["font-style"]||h.face["font-stretch"]!=a);C++);return h}},y.print=function(c,f,d,a,h,p,_,w){p=p||"middle",_=gt(ft(_||0,1),-1),w=gt(ft(w||1,3),1);var C,M=R(d)[rt](W),G=0,Y=0,H=W;if(u.is(a,"string")&&(a=this.getFont(a)),a){C=(h||16)/a.face["units-per-em"];for(var j=a.face.bbox[rt](g),K=+j[0],tt=j[3]-j[1],J=0,q=+j[1]+(p=="baseline"?tt+ +a.face.descent:tt/2),ut=0,et=M.length;ut<et;ut++){if(M[ut]==`
46
- `)G=0,nt=0,Y=0,J+=tt*w;else{var ot=Y&&a.glyphs[M[ut-1]]||{},nt=a.glyphs[M[ut]];G+=Y?(ot.w||a.w)+(ot.k&&ot.k[M[ut]]||0)+a.w*_:0,Y=1}nt&&nt.d&&(H+=u.transformPath(nt.d,["t",G*C,J*C,"s",C,C,K,q,"t",(c-K)/C,(f-q)/C]))}}return this.path(H).attr({fill:"#000",stroke:"none"})},y.add=function(c){if(u.is(c,"array"))for(var f,d=this.set(),a=0,h=c.length;a<h;a++)f=c[a]||{},m[I](f.type)&&d.push(this[f.type]().attr(f));return d},u.format=function(c,f){var d=u.is(f,it)?[0][O](f):arguments;return c&&u.is(c,"string")&&d.length-1&&(c=c.replace(x,function(a,h){return d[++h]==null?W:d[h]})),c||W},u.fullfill=(vi=/\{([^\}]+)\}/g,yi=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(c,f){return String(c).replace(vi,function(d,a){return function(h,p,_){var w=_;return p.replace(yi,function(C,M,G,Y,H){M=M||Y,w&&(M in w&&(w=w[M]),typeof w=="function"&&H&&(w=w()))}),w=(w==null||w==_?h:w)+""}(d,a,f)})}),u.ninja=function(){if(A.was)k.win.Raphael=A.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return u},u.st=se,l.on("raphael.DOMload",function(){v=!0}),($e=document).readyState==null&&$e.addEventListener&&($e.addEventListener("DOMContentLoaded",ze=function(){$e.removeEventListener("DOMContentLoaded",ze,!1),$e.readyState="complete"},!1),$e.readyState="loading"),function c(){/in/.test($e.readyState)?setTimeout(c,9):u.eve("raphael.DOMload")}(),u}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o;s=[r(0),r(3),r(4)],(o=function(l){return l}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o,l,u,v,y,g,m,x,I,k,A,$,P;u="hasOwnProperty",v=/[\.\/]/,y=/\s*,\s*/,g=function(O,D){return O-D},m={n:{}},x=function(){for(var O=0,D=this.length;O<D;O++)if(this[O]!==void 0)return this[O]},I=function(){for(var O=this.length;--O;)if(this[O]!==void 0)return this[O]},k=Object.prototype.toString,A=String,$=Array.isArray||function(O){return O instanceof Array||k.call(O)=="[object Array]"},(P=function(O,D){var W,U=l,R=Array.prototype.slice.call(arguments,2),rt=P.listeners(O),ct=0,mt=[],ht={},lt=[],gt=o;lt.firstDefined=x,lt.lastDefined=I,o=O,l=0;for(var ft=0,At=rt.length;ft<At;ft++)"zIndex"in rt[ft]&&(mt.push(rt[ft].zIndex),rt[ft].zIndex<0&&(ht[rt[ft].zIndex]=rt[ft]));for(mt.sort(g);mt[ct]<0;)if(W=ht[mt[ct++]],lt.push(W.apply(D,R)),l)return l=U,lt;for(ft=0;ft<At;ft++)if("zIndex"in(W=rt[ft]))if(W.zIndex==mt[ct]){if(lt.push(W.apply(D,R)),l)break;do if((W=ht[mt[++ct]])&&lt.push(W.apply(D,R)),l)break;while(W)}else ht[W.zIndex]=W;else if(lt.push(W.apply(D,R)),l)break;return l=U,o=gt,lt})._events=m,P.listeners=function(O){var D,W,U,R,rt,ct,mt,ht,lt=$(O)?O:O.split(v),gt=m,ft=[gt],At=[];for(R=0,rt=lt.length;R<rt;R++){for(ht=[],ct=0,mt=ft.length;ct<mt;ct++)for(W=[(gt=ft[ct].n)[lt[R]],gt["*"]],U=2;U--;)(D=W[U])&&(ht.push(D),At=At.concat(D.f||[]));ft=ht}return At},P.separator=function(O){O?(O="["+(O=A(O).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",v=new RegExp(O)):v=/[\.\/]/},P.on=function(O,D){if(typeof D!="function")return function(){};for(var W=$(O)?$(O[0])?O:[O]:A(O).split(y),U=0,R=W.length;U<R;U++)(function(rt){for(var ct,mt=$(rt)?rt:A(rt).split(v),ht=m,lt=0,gt=mt.length;lt<gt;lt++)ht=(ht=ht.n).hasOwnProperty(mt[lt])&&ht[mt[lt]]||(ht[mt[lt]]={n:{}});for(ht.f=ht.f||[],lt=0,gt=ht.f.length;lt<gt;lt++)if(ht.f[lt]==D){ct=!0;break}!ct&&ht.f.push(D)})(W[U]);return function(rt){+rt==+rt&&(D.zIndex=+rt)}},P.f=function(O){var D=[].slice.call(arguments,1);return function(){P.apply(null,[O,null].concat(D).concat([].slice.call(arguments,0)))}},P.stop=function(){l=1},P.nt=function(O){var D=$(o)?o.join("."):o;return O?new RegExp("(?:\\.|\\/|^)"+O+"(?:\\.|\\/|$)").test(D):D},P.nts=function(){return $(o)?o:o.split(v)},P.off=P.unbind=function(O,D){if(O){var W=$(O)?$(O[0])?O:[O]:A(O).split(y);if(W.length>1)for(var U=0,R=W.length;U<R;U++)P.off(W[U],D);else{W=$(O)?O:A(O).split(v);var rt,ct,mt,ht,lt,gt=[m];for(U=0,R=W.length;U<R;U++)for(ht=0;ht<gt.length;ht+=mt.length-2){if(mt=[ht,1],rt=gt[ht].n,W[U]!="*")rt[W[U]]&&mt.push(rt[W[U]]);else for(ct in rt)rt[u](ct)&&mt.push(rt[ct]);gt.splice.apply(gt,mt)}for(U=0,R=gt.length;U<R;U++)for(rt=gt[U];rt.n;){if(D){if(rt.f){for(ht=0,lt=rt.f.length;ht<lt;ht++)if(rt.f[ht]==D){rt.f.splice(ht,1);break}!rt.f.length&&delete rt.f}for(ct in rt.n)if(rt.n[u](ct)&&rt.n[ct].f){var ft=rt.n[ct].f;for(ht=0,lt=ft.length;ht<lt;ht++)if(ft[ht]==D){ft.splice(ht,1);break}!ft.length&&delete rt.n[ct].f}}else for(ct in delete rt.f,rt.n)rt.n[u](ct)&&rt.n[ct].f&&delete rt.n[ct].f;rt=rt.n}}}else P._events=m={n:{}}},P.once=function(O,D){var W=function(){return P.off(O,W),D.apply(this,arguments)};return P.on(O,W)},P.version="0.5.0",P.toString=function(){return"You are running Eve 0.5.0"},n.exports?n.exports=P:(s=function(){return P}.apply(i,[]))===void 0||(n.exports=s)},function(n,i,r){var s,o;s=[r(0)],(o=function(l){if(!l||l.svg){var u="hasOwnProperty",v=String,y=parseFloat,g=parseInt,m=Math,x=m.max,I=m.abs,k=m.pow,A=/[, ]+/,$=l.eve,P="",O=" ",D="http://www.w3.org/1999/xlink",W={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},U={};l.toString=function(){return`Your browser supports SVG.
47
- You are running Raphaël `+this.version};var R=function(S,E){if(E)for(var b in typeof S=="string"&&(S=R(S)),E)E[u](b)&&(b.substring(0,6)=="xlink:"?S.setAttributeNS(D,b.substring(6),v(E[b])):S.setAttribute(b,v(E[b])));else(S=l._g.doc.createElementNS("http://www.w3.org/2000/svg",S)).style&&(S.style.webkitTapHighlightColor="rgba(0,0,0,0)");return S},rt=function(S,E){var b="linear",N=S.id+E,L=.5,V=.5,F=S.node,X=S.paper,z=F.style,Z=l._g.doc.getElementById(N);if(!Z){if(E=(E=v(E).replace(l._radial_gradient,function(Lt,Ft,yt){if(b="radial",Ft&&yt){L=y(Ft);var Xt=2*((V=y(yt))>.5)-1;k(L-.5,2)+k(V-.5,2)>.25&&(V=m.sqrt(.25-k(L-.5,2))*Xt+.5)&&V!=.5&&(V=V.toFixed(5)-1e-5*Xt)}return P})).split(/\s*\-\s*/),b=="linear"){var at=E.shift();if(at=-y(at),isNaN(at))return null;var pt=[0,0,m.cos(l.rad(at)),m.sin(l.rad(at))],wt=1/(x(I(pt[2]),I(pt[3]))||1);pt[2]*=wt,pt[3]*=wt,pt[2]<0&&(pt[0]=-pt[2],pt[2]=0),pt[3]<0&&(pt[1]=-pt[3],pt[3]=0)}var Pt=l._parseDots(E);if(!Pt)return null;if(N=N.replace(/[\(\)\s,\xb0#]/g,"_"),S.gradient&&N!=S.gradient.id&&(X.defs.removeChild(S.gradient),delete S.gradient),!S.gradient){Z=R(b+"Gradient",{id:N}),S.gradient=Z,R(Z,b=="radial"?{fx:L,fy:V}:{x1:pt[0],y1:pt[1],x2:pt[2],y2:pt[3],gradientTransform:S.matrix.invert()}),X.defs.appendChild(Z);for(var Et=0,Nt=Pt.length;Et<Nt;Et++)Z.appendChild(R("stop",{offset:Pt[Et].offset?Pt[Et].offset:Et?"100%":"0%","stop-color":Pt[Et].color||"#fff","stop-opacity":isFinite(Pt[Et].opacity)?Pt[Et].opacity:1}))}}return R(F,{fill:ct(N),opacity:1,"fill-opacity":1}),z.fill=P,z.opacity=1,z.fillOpacity=1,1},ct=function(S){if((E=document.documentMode)&&(E===9||E===10))return"url('#"+S+"')";var E,b=document.location;return"url('"+(b.protocol+"//"+b.host+b.pathname+b.search)+"#"+S+"')"},mt=function(S){var E=S.getBBox(1);R(S.pattern,{patternTransform:S.matrix.invert()+" translate("+E.x+","+E.y+")"})},ht=function(S,E,b){if(S.type=="path"){for(var N,L,V,F,X,z=v(E).toLowerCase().split("-"),Z=S.paper,at=b?"end":"start",pt=S.node,wt=S.attrs,Pt=wt["stroke-width"],Et=z.length,Nt="classic",Lt=3,Ft=3,yt=5;Et--;)switch(z[Et]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Nt=z[Et];break;case"wide":Ft=5;break;case"narrow":Ft=2;break;case"long":Lt=5;break;case"short":Lt=2}if(Nt=="open"?(Lt+=2,Ft+=2,yt+=2,V=1,F=b?4:1,X={fill:"none",stroke:wt.stroke}):(F=V=Lt/2,X={fill:wt.stroke,stroke:"none"}),S._.arrows?b?(S._.arrows.endPath&&U[S._.arrows.endPath]--,S._.arrows.endMarker&&U[S._.arrows.endMarker]--):(S._.arrows.startPath&&U[S._.arrows.startPath]--,S._.arrows.startMarker&&U[S._.arrows.startMarker]--):S._.arrows={},Nt!="none"){var Xt="raphael-marker-"+Nt,Vt="raphael-marker-"+at+Nt+Lt+Ft+"-obj"+S.id;l._g.doc.getElementById(Xt)?U[Xt]++:(Z.defs.appendChild(R(R("path"),{"stroke-linecap":"round",d:W[Nt],id:Xt})),U[Xt]=1);var ee,Ht=l._g.doc.getElementById(Vt);Ht?(U[Vt]++,ee=Ht.getElementsByTagName("use")[0]):(Ht=R(R("marker"),{id:Vt,markerHeight:Ft,markerWidth:Lt,orient:"auto",refX:F,refY:Ft/2}),ee=R(R("use"),{"xlink:href":"#"+Xt,transform:(b?"rotate(180 "+Lt/2+" "+Ft/2+") ":P)+"scale("+Lt/yt+","+Ft/yt+")","stroke-width":(1/((Lt/yt+Ft/yt)/2)).toFixed(4)}),Ht.appendChild(ee),Z.defs.appendChild(Ht),U[Vt]=1),R(ee,X);var Ee=V*(Nt!="diamond"&&Nt!="oval");b?(N=S._.arrows.startdx*Pt||0,L=l.getTotalLength(wt.path)-Ee*Pt):(N=Ee*Pt,L=l.getTotalLength(wt.path)-(S._.arrows.enddx*Pt||0)),(X={})["marker-"+at]="url(#"+Vt+")",(L||N)&&(X.d=l.getSubpath(wt.path,N,L)),R(pt,X),S._.arrows[at+"Path"]=Xt,S._.arrows[at+"Marker"]=Vt,S._.arrows[at+"dx"]=Ee,S._.arrows[at+"Type"]=Nt,S._.arrows[at+"String"]=E}else b?(N=S._.arrows.startdx*Pt||0,L=l.getTotalLength(wt.path)-N):(N=0,L=l.getTotalLength(wt.path)-(S._.arrows.enddx*Pt||0)),S._.arrows[at+"Path"]&&R(pt,{d:l.getSubpath(wt.path,N,L)}),delete S._.arrows[at+"Path"],delete S._.arrows[at+"Marker"],delete S._.arrows[at+"dx"],delete S._.arrows[at+"Type"],delete S._.arrows[at+"String"];for(X in U)if(U[u](X)&&!U[X]){var fe=l._g.doc.getElementById(X);fe&&fe.parentNode.removeChild(fe)}}},lt={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},gt=function(S,E,b){if(E=lt[v(E).toLowerCase()]){for(var N=S.attrs["stroke-width"]||"1",L={round:N,square:N,butt:0}[S.attrs["stroke-linecap"]||b["stroke-linecap"]]||0,V=[],F=E.length;F--;)V[F]=E[F]*N+(F%2?1:-1)*L;R(S.node,{"stroke-dasharray":V.join(",")})}else R(S.node,{"stroke-dasharray":"none"})},ft=function(S,E){var b=S.node,N=S.attrs,L=b.style.visibility;for(var V in b.style.visibility="hidden",E)if(E[u](V)){if(!l._availableAttrs[u](V))continue;var F=E[V];switch(N[V]=F,V){case"blur":S.blur(F);break;case"title":var X=b.getElementsByTagName("title");if(X.length&&(X=X[0]))X.firstChild.nodeValue=F;else{X=R("title");var z=l._g.doc.createTextNode(F);X.appendChild(z),b.appendChild(X)}break;case"href":case"target":var Z=b.parentNode;if(Z.tagName.toLowerCase()!="a"){var at=R("a");Z.insertBefore(at,b),at.appendChild(b),Z=at}V=="target"?Z.setAttributeNS(D,"show",F=="blank"?"new":F):Z.setAttributeNS(D,V,F);break;case"cursor":b.style.cursor=F;break;case"transform":S.transform(F);break;case"arrow-start":ht(S,F);break;case"arrow-end":ht(S,F,1);break;case"clip-rect":var pt=v(F).split(A);if(pt.length==4){S.clip&&S.clip.parentNode.parentNode.removeChild(S.clip.parentNode);var wt=R("clipPath"),Pt=R("rect");wt.id=l.createUUID(),R(Pt,{x:pt[0],y:pt[1],width:pt[2],height:pt[3]}),wt.appendChild(Pt),S.paper.defs.appendChild(wt),R(b,{"clip-path":"url(#"+wt.id+")"}),S.clip=Pt}if(!F){var Et=b.getAttribute("clip-path");if(Et){var Nt=l._g.doc.getElementById(Et.replace(/(^url\(#|\)$)/g,P));Nt&&Nt.parentNode.removeChild(Nt),R(b,{"clip-path":P}),delete S.clip}}break;case"path":S.type=="path"&&(R(b,{d:F?N.path=l._pathToAbsolute(F):"M0,0"}),S._.dirty=1,S._.arrows&&("startString"in S._.arrows&&ht(S,S._.arrows.startString),"endString"in S._.arrows&&ht(S,S._.arrows.endString,1)));break;case"width":if(b.setAttribute(V,F),S._.dirty=1,!N.fx)break;V="x",F=N.x;case"x":N.fx&&(F=-N.x-(N.width||0));case"rx":if(V=="rx"&&S.type=="rect")break;case"cx":b.setAttribute(V,F),S.pattern&&mt(S),S._.dirty=1;break;case"height":if(b.setAttribute(V,F),S._.dirty=1,!N.fy)break;V="y",F=N.y;case"y":N.fy&&(F=-N.y-(N.height||0));case"ry":if(V=="ry"&&S.type=="rect")break;case"cy":b.setAttribute(V,F),S.pattern&&mt(S),S._.dirty=1;break;case"r":S.type=="rect"?R(b,{rx:F,ry:F}):b.setAttribute(V,F),S._.dirty=1;break;case"src":S.type=="image"&&b.setAttributeNS(D,"href",F);break;case"stroke-width":S._.sx==1&&S._.sy==1||(F/=x(I(S._.sx),I(S._.sy))||1),b.setAttribute(V,F),N["stroke-dasharray"]&&gt(S,N["stroke-dasharray"],E),S._.arrows&&("startString"in S._.arrows&&ht(S,S._.arrows.startString),"endString"in S._.arrows&&ht(S,S._.arrows.endString,1));break;case"stroke-dasharray":gt(S,F,E);break;case"fill":var Lt=v(F).match(l._ISURL);if(Lt){wt=R("pattern");var Ft=R("image");wt.id=l.createUUID(),R(wt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),R(Ft,{x:0,y:0,"xlink:href":Lt[1]}),wt.appendChild(Ft),function(Ht){l._preload(Lt[1],function(){var Ee=this.offsetWidth,fe=this.offsetHeight;R(Ht,{width:Ee,height:fe}),R(Ft,{width:Ee,height:fe})})}(wt),S.paper.defs.appendChild(wt),R(b,{fill:"url(#"+wt.id+")"}),S.pattern=wt,S.pattern&&mt(S);break}var yt=l.getRGB(F);if(yt.error){if((S.type=="circle"||S.type=="ellipse"||v(F).charAt()!="r")&&rt(S,F)){if("opacity"in N||"fill-opacity"in N){var Xt=l._g.doc.getElementById(b.getAttribute("fill").replace(/^url\(#|\)$/g,P));if(Xt){var Vt=Xt.getElementsByTagName("stop");R(Vt[Vt.length-1],{"stop-opacity":("opacity"in N?N.opacity:1)*("fill-opacity"in N?N["fill-opacity"]:1)})}}N.gradient=F,N.fill="none";break}}else delete E.gradient,delete N.gradient,!l.is(N.opacity,"undefined")&&l.is(E.opacity,"undefined")&&R(b,{opacity:N.opacity}),!l.is(N["fill-opacity"],"undefined")&&l.is(E["fill-opacity"],"undefined")&&R(b,{"fill-opacity":N["fill-opacity"]});yt[u]("opacity")&&R(b,{"fill-opacity":yt.opacity>1?yt.opacity/100:yt.opacity});case"stroke":yt=l.getRGB(F),b.setAttribute(V,yt.hex),V=="stroke"&&yt[u]("opacity")&&R(b,{"stroke-opacity":yt.opacity>1?yt.opacity/100:yt.opacity}),V=="stroke"&&S._.arrows&&("startString"in S._.arrows&&ht(S,S._.arrows.startString),"endString"in S._.arrows&&ht(S,S._.arrows.endString,1));break;case"gradient":(S.type=="circle"||S.type=="ellipse"||v(F).charAt()!="r")&&rt(S,F);break;case"opacity":N.gradient&&!N[u]("stroke-opacity")&&R(b,{"stroke-opacity":F>1?F/100:F});case"fill-opacity":if(N.gradient){(Xt=l._g.doc.getElementById(b.getAttribute("fill").replace(/^url\(#|\)$/g,P)))&&(Vt=Xt.getElementsByTagName("stop"),R(Vt[Vt.length-1],{"stop-opacity":F}));break}default:V=="font-size"&&(F=g(F,10)+"px");var ee=V.replace(/(\-.)/g,function(Ht){return Ht.substring(1).toUpperCase()});b.style[ee]=F,S._.dirty=1,b.setAttribute(V,F)}}At(S,E),b.style.visibility=L},At=function(S,E){if(S.type=="text"&&(E[u]("text")||E[u]("font")||E[u]("font-size")||E[u]("x")||E[u]("y"))){var b=S.attrs,N=S.node,L=N.firstChild?g(l._g.doc.defaultView.getComputedStyle(N.firstChild,P).getPropertyValue("font-size"),10):10;if(E[u]("text")){for(b.text=E.text;N.firstChild;)N.removeChild(N.firstChild);for(var V,F=v(E.text).split(`
48
- `),X=[],z=0,Z=F.length;z<Z;z++)V=R("tspan"),z&&R(V,{dy:1.2*L,x:b.x}),V.appendChild(l._g.doc.createTextNode(F[z])),N.appendChild(V),X[z]=V}else for(z=0,Z=(X=N.getElementsByTagName("tspan")).length;z<Z;z++)z?R(X[z],{dy:1.2*L,x:b.x}):R(X[0],{dy:0});R(N,{x:b.x,y:b.y}),S._.dirty=1;var at=S._getBBox(),pt=b.y-(at.y+at.height/2);pt&&l.is(pt,"finite")&&R(X[0],{dy:pt})}},Dt=function(S){return S.parentNode&&S.parentNode.tagName.toLowerCase()==="a"?S.parentNode:S},zt=function(S,E){this[0]=this.node=S,S.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),S.raphaelid=this.id,this.matrix=l.matrix(),this.realPath=null,this.paper=E,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!E.bottom&&(E.bottom=this),this.prev=E.top,E.top&&(E.top.next=this),E.top=this,this.next=null},Q=l.el;zt.prototype=Q,Q.constructor=zt,l._engine.path=function(S,E){var b=R("path");E.canvas&&E.canvas.appendChild(b);var N=new zt(b,E);return N.type="path",ft(N,{fill:"none",stroke:"#000",path:S}),N},Q.rotate=function(S,E,b){if(this.removed)return this;if((S=v(S).split(A)).length-1&&(E=y(S[1]),b=y(S[2])),S=y(S[0]),b==null&&(E=b),E==null||b==null){var N=this.getBBox(1);E=N.x+N.width/2,b=N.y+N.height/2}return this.transform(this._.transform.concat([["r",S,E,b]])),this},Q.scale=function(S,E,b,N){if(this.removed)return this;if((S=v(S).split(A)).length-1&&(E=y(S[1]),b=y(S[2]),N=y(S[3])),S=y(S[0]),E==null&&(E=S),N==null&&(b=N),b==null||N==null)var L=this.getBBox(1);return b=b??L.x+L.width/2,N=N??L.y+L.height/2,this.transform(this._.transform.concat([["s",S,E,b,N]])),this},Q.translate=function(S,E){return this.removed?this:((S=v(S).split(A)).length-1&&(E=y(S[1])),S=y(S[0])||0,E=+E||0,this.transform(this._.transform.concat([["t",S,E]])),this)},Q.transform=function(S){var E=this._;if(S==null)return E.transform;if(l._extractTransform(this,S),this.clip&&R(this.clip,{transform:this.matrix.invert()}),this.pattern&&mt(this),this.node&&R(this.node,{transform:this.matrix}),E.sx!=1||E.sy!=1){var b=this.attrs[u]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":b})}return this},Q.hide=function(){return this.removed||(this.node.style.display="none"),this},Q.show=function(){return this.removed||(this.node.style.display=""),this},Q.remove=function(){var S=Dt(this.node);if(!this.removed&&S.parentNode){var E=this.paper;for(var b in E.__set__&&E.__set__.exclude(this),$.unbind("raphael.*.*."+this.id),this.gradient&&E.defs.removeChild(this.gradient),l._tear(this,E),S.parentNode.removeChild(S),this.removeData(),this)this[b]=typeof this[b]=="function"?l._removedFactory(b):null;this.removed=!0}},Q._getBBox=function(){if(this.node.style.display=="none"){this.show();var S=!0}var E,b=!1;this.paper.canvas.parentElement?E=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(E=this.paper.canvas.parentNode.style),E&&E.display=="none"&&(b=!0,E.display="");var N={};try{N=this.node.getBBox()}catch{N={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{N=N||{},b&&(E.display="none")}return S&&this.hide(),N},Q.attr=function(S,E){if(this.removed)return this;if(S==null){var b={};for(var N in this.attrs)this.attrs[u](N)&&(b[N]=this.attrs[N]);return b.gradient&&b.fill=="none"&&(b.fill=b.gradient)&&delete b.gradient,b.transform=this._.transform,b}if(E==null&&l.is(S,"string")){if(S=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(S=="transform")return this._.transform;for(var L=S.split(A),V={},F=0,X=L.length;F<X;F++)(S=L[F])in this.attrs?V[S]=this.attrs[S]:l.is(this.paper.customAttributes[S],"function")?V[S]=this.paper.customAttributes[S].def:V[S]=l._availableAttrs[S];return X-1?V:V[L[0]]}if(E==null&&l.is(S,"array")){for(V={},F=0,X=S.length;F<X;F++)V[S[F]]=this.attr(S[F]);return V}if(E!=null){var z={};z[S]=E}else S!=null&&l.is(S,"object")&&(z=S);for(var Z in z)$("raphael.attr."+Z+"."+this.id,this,z[Z]);for(Z in this.paper.customAttributes)if(this.paper.customAttributes[u](Z)&&z[u](Z)&&l.is(this.paper.customAttributes[Z],"function")){var at=this.paper.customAttributes[Z].apply(this,[].concat(z[Z]));for(var pt in this.attrs[Z]=z[Z],at)at[u](pt)&&(z[pt]=at[pt])}return ft(this,z),this},Q.toFront=function(){if(this.removed)return this;var S=Dt(this.node);S.parentNode.appendChild(S);var E=this.paper;return E.top!=this&&l._tofront(this,E),this},Q.toBack=function(){if(this.removed)return this;var S=Dt(this.node),E=S.parentNode;return E.insertBefore(S,E.firstChild),l._toback(this,this.paper),this.paper,this},Q.insertAfter=function(S){if(this.removed||!S)return this;var E=Dt(this.node),b=Dt(S.node||S[S.length-1].node);return b.nextSibling?b.parentNode.insertBefore(E,b.nextSibling):b.parentNode.appendChild(E),l._insertafter(this,S,this.paper),this},Q.insertBefore=function(S){if(this.removed||!S)return this;var E=Dt(this.node),b=Dt(S.node||S[0].node);return b.parentNode.insertBefore(E,b),l._insertbefore(this,S,this.paper),this},Q.blur=function(S){var E=this;if(+S!=0){var b=R("filter"),N=R("feGaussianBlur");E.attrs.blur=S,b.id=l.createUUID(),R(N,{stdDeviation:+S||1.5}),b.appendChild(N),E.paper.defs.appendChild(b),E._blur=b,R(E.node,{filter:"url(#"+b.id+")"})}else E._blur&&(E._blur.parentNode.removeChild(E._blur),delete E._blur,delete E.attrs.blur),E.node.removeAttribute("filter");return E},l._engine.circle=function(S,E,b,N){var L=R("circle");S.canvas&&S.canvas.appendChild(L);var V=new zt(L,S);return V.attrs={cx:E,cy:b,r:N,fill:"none",stroke:"#000"},V.type="circle",R(L,V.attrs),V},l._engine.rect=function(S,E,b,N,L,V){var F=R("rect");S.canvas&&S.canvas.appendChild(F);var X=new zt(F,S);return X.attrs={x:E,y:b,width:N,height:L,rx:V||0,ry:V||0,fill:"none",stroke:"#000"},X.type="rect",R(F,X.attrs),X},l._engine.ellipse=function(S,E,b,N,L){var V=R("ellipse");S.canvas&&S.canvas.appendChild(V);var F=new zt(V,S);return F.attrs={cx:E,cy:b,rx:N,ry:L,fill:"none",stroke:"#000"},F.type="ellipse",R(V,F.attrs),F},l._engine.image=function(S,E,b,N,L,V){var F=R("image");R(F,{x:b,y:N,width:L,height:V,preserveAspectRatio:"none"}),F.setAttributeNS(D,"href",E),S.canvas&&S.canvas.appendChild(F);var X=new zt(F,S);return X.attrs={x:b,y:N,width:L,height:V,src:E},X.type="image",X},l._engine.text=function(S,E,b,N){var L=R("text");S.canvas&&S.canvas.appendChild(L);var V=new zt(L,S);return V.attrs={x:E,y:b,"text-anchor":"middle",text:N,"font-family":l._availableAttrs["font-family"],"font-size":l._availableAttrs["font-size"],stroke:"none",fill:"#000"},V.type="text",ft(V,V.attrs),V},l._engine.setSize=function(S,E){return this.width=S||this.width,this.height=E||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},l._engine.create=function(){var S=l._getContainer.apply(0,arguments),E=S&&S.container;if(!E)throw new Error("SVG container not found.");var b,N=S.x,L=S.y,V=S.width,F=S.height,X=R("svg"),z="overflow:hidden;";return N=N||0,L=L||0,R(X,{height:F=F||342,version:1.1,width:V=V||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),E==1?(X.style.cssText=z+"position:absolute;left:"+N+"px;top:"+L+"px",l._g.doc.body.appendChild(X),b=1):(X.style.cssText=z+"position:relative",E.firstChild?E.insertBefore(X,E.firstChild):E.appendChild(X)),(E=new l._Paper).width=V,E.height=F,E.canvas=X,E.clear(),E._left=E._top=0,b&&(E.renderfix=function(){}),E.renderfix(),E},l._engine.setViewBox=function(S,E,b,N,L){$("raphael.setViewBox",this,this._viewBox,[S,E,b,N,L]);var V,F,X=this.getSize(),z=x(b/X.width,N/X.height),Z=this.top,at=L?"xMidYMid meet":"xMinYMin";for(S==null?(this._vbSize&&(z=1),delete this._vbSize,V="0 0 "+this.width+O+this.height):(this._vbSize=z,V=S+O+E+O+b+O+N),R(this.canvas,{viewBox:V,preserveAspectRatio:at});z&&Z;)F="stroke-width"in Z.attrs?Z.attrs["stroke-width"]:1,Z.attr({"stroke-width":F}),Z._.dirty=1,Z._.dirtyT=1,Z=Z.prev;return this._viewBox=[S,E,b,N,!!L],this},l.prototype.renderfix=function(){var S,E=this.canvas,b=E.style;try{S=E.getScreenCTM()||E.createSVGMatrix()}catch{S=E.createSVGMatrix()}var N=-S.e%1,L=-S.f%1;(N||L)&&(N&&(this._left=(this._left+N)%1,b.left=this._left+"px"),L&&(this._top=(this._top+L)%1,b.top=this._top+"px"))},l.prototype.clear=function(){l.eve("raphael.clear",this);for(var S=this.canvas;S.firstChild;)S.removeChild(S.firstChild);this.bottom=this.top=null,(this.desc=R("desc")).appendChild(l._g.doc.createTextNode("Created with Raphaël "+l.version)),S.appendChild(this.desc),S.appendChild(this.defs=R("defs"))},l.prototype.remove=function(){for(var S in $("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[S]=typeof this[S]=="function"?l._removedFactory(S):null};var it=l.st;for(var st in Q)Q[u](st)&&!it[u](st)&&(it[st]=function(S){return function(){var E=arguments;return this.forEach(function(b){b[S].apply(b,E)})}}(st))}}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o;s=[r(0)],(o=function(l){if(!l||l.vml){var u="hasOwnProperty",v=String,y=parseFloat,g=Math,m=g.round,x=g.max,I=g.min,k=g.abs,A=/[, ]+/,$=l.eve,P=" ",O="",D={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},W=/([clmz]),?([^clmz]*)/gi,U=/ progid:\S+Blur\([^\)]+\)/g,R=/-?[^,\s-]+/g,rt="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",ct=21600,mt={path:1,rect:1,image:1},ht={circle:1,ellipse:1},lt=function(E,b,N){var L=l.matrix();return L.rotate(-E,.5,.5),{dx:L.x(b,N),dy:L.y(b,N)}},gt=function(E,b,N,L,V,F){var X=E._,z=E.matrix,Z=X.fillpos,at=E.node,pt=at.style,wt=1,Pt="",Et=ct/b,Nt=ct/N;if(pt.visibility="hidden",b&&N){if(at.coordsize=k(Et)+P+k(Nt),pt.rotation=F*(b*N<0?-1:1),F){var Lt=lt(F,L,V);L=Lt.dx,V=Lt.dy}if(b<0&&(Pt+="x"),N<0&&(Pt+=" y")&&(wt=-1),pt.flip=Pt,at.coordorigin=L*-Et+P+V*-Nt,Z||X.fillsize){var Ft=at.getElementsByTagName("fill");Ft=Ft&&Ft[0],at.removeChild(Ft),Z&&(Lt=lt(F,z.x(Z[0],Z[1]),z.y(Z[0],Z[1])),Ft.position=Lt.dx*wt+P+Lt.dy*wt),X.fillsize&&(Ft.size=X.fillsize[0]*k(b)+P+X.fillsize[1]*k(N)),at.appendChild(Ft)}pt.visibility="visible"}};l.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
49
- You are running Raphaël `+this.version};var ft,At=function(E,b,N){for(var L=v(b).toLowerCase().split("-"),V=N?"end":"start",F=L.length,X="classic",z="medium",Z="medium";F--;)switch(L[F]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":X=L[F];break;case"wide":case"narrow":Z=L[F];break;case"long":case"short":z=L[F]}var at=E.node.getElementsByTagName("stroke")[0];at[V+"arrow"]=X,at[V+"arrowlength"]=z,at[V+"arrowwidth"]=Z},Dt=function(E,b){E.attrs=E.attrs||{};var N=E.node,L=E.attrs,V=N.style,F=mt[E.type]&&(b.x!=L.x||b.y!=L.y||b.width!=L.width||b.height!=L.height||b.cx!=L.cx||b.cy!=L.cy||b.rx!=L.rx||b.ry!=L.ry||b.r!=L.r),X=ht[E.type]&&(L.cx!=b.cx||L.cy!=b.cy||L.r!=b.r||L.rx!=b.rx||L.ry!=b.ry),z=E;for(var Z in b)b[u](Z)&&(L[Z]=b[Z]);if(F&&(L.path=l._getPath[E.type](E),E._.dirty=1),b.href&&(N.href=b.href),b.title&&(N.title=b.title),b.target&&(N.target=b.target),b.cursor&&(V.cursor=b.cursor),"blur"in b&&E.blur(b.blur),(b.path&&E.type=="path"||F)&&(N.path=function(ce){var Ze=/[ahqstv]/gi,Pn=l._pathToAbsolute;if(v(ce).match(Ze)&&(Pn=l._path2curve),Ze=/[clmz]/g,Pn==l._pathToAbsolute&&!v(ce).match(Ze)){var Te=v(ce).replace(W,function(Kr,Nn,cn){var Qe=[],hi=Nn.toLowerCase()=="m",un=D[Nn];return cn.replace(R,function(hn){hi&&Qe.length==2&&(un+=Qe+D[Nn=="m"?"l":"L"],Qe=[]),Qe.push(m(hn*ct))}),un+Qe});return Te}var We,Me,qn=Pn(ce);Te=[];for(var ln=0,In=qn.length;ln<In;ln++){We=qn[ln],(Me=qn[ln][0].toLowerCase())=="z"&&(Me="x");for(var Fe=1,me=We.length;Fe<me;Fe++)Me+=m(We[Fe]*ct)+(Fe!=me-1?",":O);Te.push(Me)}return Te.join(P)}(~v(L.path).toLowerCase().indexOf("r")?l._pathToAbsolute(L.path):L.path),E._.dirty=1,E.type=="image"&&(E._.fillpos=[L.x,L.y],E._.fillsize=[L.width,L.height],gt(E,1,1,0,0,0))),"transform"in b&&E.transform(b.transform),X){var at=+L.cx,pt=+L.cy,wt=+L.rx||+L.r||0,Pt=+L.ry||+L.r||0;N.path=l.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",m((at-wt)*ct),m((pt-Pt)*ct),m((at+wt)*ct),m((pt+Pt)*ct),m(at*ct)),E._.dirty=1}if("clip-rect"in b){var Et=v(b["clip-rect"]).split(A);if(Et.length==4){Et[2]=+Et[2]+ +Et[0],Et[3]=+Et[3]+ +Et[1];var Nt=N.clipRect||l._g.doc.createElement("div"),Lt=Nt.style;Lt.clip=l.format("rect({1}px {2}px {3}px {0}px)",Et),N.clipRect||(Lt.position="absolute",Lt.top=0,Lt.left=0,Lt.width=E.paper.width+"px",Lt.height=E.paper.height+"px",N.parentNode.insertBefore(Nt,N),Nt.appendChild(N),N.clipRect=Nt)}b["clip-rect"]||N.clipRect&&(N.clipRect.style.clip="auto")}if(E.textpath){var Ft=E.textpath.style;b.font&&(Ft.font=b.font),b["font-family"]&&(Ft.fontFamily='"'+b["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,O)+'"'),b["font-size"]&&(Ft.fontSize=b["font-size"]),b["font-weight"]&&(Ft.fontWeight=b["font-weight"]),b["font-style"]&&(Ft.fontStyle=b["font-style"])}if("arrow-start"in b&&At(z,b["arrow-start"]),"arrow-end"in b&&At(z,b["arrow-end"],1),b.opacity!=null||b.fill!=null||b.src!=null||b.stroke!=null||b["stroke-width"]!=null||b["stroke-opacity"]!=null||b["fill-opacity"]!=null||b["stroke-dasharray"]!=null||b["stroke-miterlimit"]!=null||b["stroke-linejoin"]!=null||b["stroke-linecap"]!=null){var yt=N.getElementsByTagName("fill");if(!(yt=yt&&yt[0])&&(yt=ft("fill")),E.type=="image"&&b.src&&(yt.src=b.src),b.fill&&(yt.on=!0),yt.on!=null&&b.fill!="none"&&b.fill!==null||(yt.on=!1),yt.on&&b.fill){var Xt=v(b.fill).match(l._ISURL);if(Xt){yt.parentNode==N&&N.removeChild(yt),yt.rotate=!0,yt.src=Xt[1],yt.type="tile";var Vt=E.getBBox(1);yt.position=Vt.x+P+Vt.y,E._.fillpos=[Vt.x,Vt.y],l._preload(Xt[1],function(){E._.fillsize=[this.offsetWidth,this.offsetHeight]})}else yt.color=l.getRGB(b.fill).hex,yt.src=O,yt.type="solid",l.getRGB(b.fill).error&&(z.type in{circle:1,ellipse:1}||v(b.fill).charAt()!="r")&&zt(z,b.fill,yt)&&(L.fill="none",L.gradient=b.fill,yt.rotate=!1)}if("fill-opacity"in b||"opacity"in b){var ee=((+L["fill-opacity"]+1||2)-1)*((+L.opacity+1||2)-1)*((+l.getRGB(b.fill).o+1||2)-1);ee=I(x(ee,0),1),yt.opacity=ee,yt.src&&(yt.color="none")}N.appendChild(yt);var Ht=N.getElementsByTagName("stroke")&&N.getElementsByTagName("stroke")[0],Ee=!1;!Ht&&(Ee=Ht=ft("stroke")),(b.stroke&&b.stroke!="none"||b["stroke-width"]||b["stroke-opacity"]!=null||b["stroke-dasharray"]||b["stroke-miterlimit"]||b["stroke-linejoin"]||b["stroke-linecap"])&&(Ht.on=!0),(b.stroke=="none"||b.stroke===null||Ht.on==null||b.stroke==0||b["stroke-width"]==0)&&(Ht.on=!1);var fe=l.getRGB(b.stroke);Ht.on&&b.stroke&&(Ht.color=fe.hex),ee=((+L["stroke-opacity"]+1||2)-1)*((+L.opacity+1||2)-1)*((+fe.o+1||2)-1);var Ye=.75*(y(b["stroke-width"])||1);if(ee=I(x(ee,0),1),b["stroke-width"]==null&&(Ye=L["stroke-width"]),b["stroke-width"]&&(Ht.weight=Ye),Ye&&Ye<1&&(ee*=Ye)&&(Ht.weight=1),Ht.opacity=ee,b["stroke-linejoin"]&&(Ht.joinstyle=b["stroke-linejoin"]||"miter"),Ht.miterlimit=b["stroke-miterlimit"]||8,b["stroke-linecap"]&&(Ht.endcap=b["stroke-linecap"]=="butt"?"flat":b["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in b){var Tn={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Ht.dashstyle=Tn[u](b["stroke-dasharray"])?Tn[b["stroke-dasharray"]]:O}Ee&&N.appendChild(Ht)}if(z.type=="text"){z.paper.canvas.style.display=O;var Ue=z.paper.span,on=L.font&&L.font.match(/\d+(?:\.\d*)?(?=px)/);V=Ue.style,L.font&&(V.font=L.font),L["font-family"]&&(V.fontFamily=L["font-family"]),L["font-weight"]&&(V.fontWeight=L["font-weight"]),L["font-style"]&&(V.fontStyle=L["font-style"]),on=y(L["font-size"]||on&&on[0])||10,V.fontSize=100*on+"px",z.textpath.string&&(Ue.innerHTML=v(z.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var an=Ue.getBoundingClientRect();z.W=L.w=(an.right-an.left)/100,z.H=L.h=(an.bottom-an.top)/100,z.X=L.x,z.Y=L.y+z.H/2,("x"in b||"y"in b)&&(z.path.v=l.format("m{0},{1}l{2},{1}",m(L.x*ct),m(L.y*ct),m(L.x*ct)+1));for(var Xe=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ke=0,ui=Xe.length;Ke<ui;Ke++)if(Xe[Ke]in b){z._.dirty=1;break}switch(L["text-anchor"]){case"start":z.textpath.style["v-text-align"]="left",z.bbx=z.W/2;break;case"end":z.textpath.style["v-text-align"]="right",z.bbx=-z.W/2;break;default:z.textpath.style["v-text-align"]="center",z.bbx=0}z.textpath.style["v-text-kern"]=!0}},zt=function(E,b,N){E.attrs=E.attrs||{},E.attrs;var L=Math.pow,V="linear",F=".5 .5";if(E.attrs.gradient=b,b=(b=v(b).replace(l._radial_gradient,function(wt,Pt,Et){return V="radial",Pt&&Et&&(Pt=y(Pt),Et=y(Et),L(Pt-.5,2)+L(Et-.5,2)>.25&&(Et=g.sqrt(.25-L(Pt-.5,2))*(2*(Et>.5)-1)+.5),F=Pt+P+Et),O})).split(/\s*\-\s*/),V=="linear"){var X=b.shift();if(X=-y(X),isNaN(X))return null}var z=l._parseDots(b);if(!z)return null;if(E=E.shape||E.node,z.length){E.removeChild(N),N.on=!0,N.method="none",N.color=z[0].color,N.color2=z[z.length-1].color;for(var Z=[],at=0,pt=z.length;at<pt;at++)z[at].offset&&Z.push(z[at].offset+P+z[at].color);N.colors=Z.length?Z.join():"0% "+N.color,V=="radial"?(N.type="gradientTitle",N.focus="100%",N.focussize="0 0",N.focusposition=F,N.angle=0):(N.type="gradient",N.angle=(270-X)%360),E.appendChild(N)}return 1},Q=function(E,b){this[0]=this.node=E,E.raphael=!0,this.id=l._oid++,E.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=b,this.matrix=l.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!b.bottom&&(b.bottom=this),this.prev=b.top,b.top&&(b.top.next=this),b.top=this,this.next=null},it=l.el;Q.prototype=it,it.constructor=Q,it.transform=function(E){if(E==null)return this._.transform;var b,N=this.paper._viewBoxShift,L=N?"s"+[N.scale,N.scale]+"-1-1t"+[N.dx,N.dy]:O;N&&(b=E=v(E).replace(/\.{3}|\u2026/g,this._.transform||O)),l._extractTransform(this,L+E);var V,F=this.matrix.clone(),X=this.skew,z=this.node,Z=~v(this.attrs.fill).indexOf("-"),at=!v(this.attrs.fill).indexOf("url(");if(F.translate(1,1),at||Z||this.type=="image")if(X.matrix="1 0 0 1",X.offset="0 0",V=F.split(),Z&&V.noRotation||!V.isSimple){z.style.filter=F.toFilter();var pt=this.getBBox(),wt=this.getBBox(1),Pt=pt.x-wt.x,Et=pt.y-wt.y;z.coordorigin=Pt*-ct+P+Et*-ct,gt(this,1,1,Pt,Et,0)}else z.style.filter=O,gt(this,V.scalex,V.scaley,V.dx,V.dy,V.rotate);else z.style.filter=O,X.matrix=v(F),X.offset=F.offset();return b!==null&&(this._.transform=b,l._extractTransform(this,b)),this},it.rotate=function(E,b,N){if(this.removed)return this;if(E!=null){if((E=v(E).split(A)).length-1&&(b=y(E[1]),N=y(E[2])),E=y(E[0]),N==null&&(b=N),b==null||N==null){var L=this.getBBox(1);b=L.x+L.width/2,N=L.y+L.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",E,b,N]])),this}},it.translate=function(E,b){return this.removed?this:((E=v(E).split(A)).length-1&&(b=y(E[1])),E=y(E[0])||0,b=+b||0,this._.bbox&&(this._.bbox.x+=E,this._.bbox.y+=b),this.transform(this._.transform.concat([["t",E,b]])),this)},it.scale=function(E,b,N,L){if(this.removed)return this;if((E=v(E).split(A)).length-1&&(b=y(E[1]),N=y(E[2]),L=y(E[3]),isNaN(N)&&(N=null),isNaN(L)&&(L=null)),E=y(E[0]),b==null&&(b=E),L==null&&(N=L),N==null||L==null)var V=this.getBBox(1);return N=N??V.x+V.width/2,L=L??V.y+V.height/2,this.transform(this._.transform.concat([["s",E,b,N,L]])),this._.dirtyT=1,this},it.hide=function(){return!this.removed&&(this.node.style.display="none"),this},it.show=function(){return!this.removed&&(this.node.style.display=O),this},it.auxGetBBox=l.el.getBBox,it.getBBox=function(){var E=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var b={},N=1/this.paper._viewBoxShift.scale;return b.x=E.x-this.paper._viewBoxShift.dx,b.x*=N,b.y=E.y-this.paper._viewBoxShift.dy,b.y*=N,b.width=E.width*N,b.height=E.height*N,b.x2=b.x+b.width,b.y2=b.y+b.height,b}return E},it._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},it.remove=function(){if(!this.removed&&this.node.parentNode){for(var E in this.paper.__set__&&this.paper.__set__.exclude(this),l.eve.unbind("raphael.*.*."+this.id),l._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[E]=typeof this[E]=="function"?l._removedFactory(E):null;this.removed=!0}},it.attr=function(E,b){if(this.removed)return this;if(E==null){var N={};for(var L in this.attrs)this.attrs[u](L)&&(N[L]=this.attrs[L]);return N.gradient&&N.fill=="none"&&(N.fill=N.gradient)&&delete N.gradient,N.transform=this._.transform,N}if(b==null&&l.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var V=E.split(A),F={},X=0,z=V.length;X<z;X++)(E=V[X])in this.attrs?F[E]=this.attrs[E]:l.is(this.paper.customAttributes[E],"function")?F[E]=this.paper.customAttributes[E].def:F[E]=l._availableAttrs[E];return z-1?F:F[V[0]]}if(this.attrs&&b==null&&l.is(E,"array")){for(F={},X=0,z=E.length;X<z;X++)F[E[X]]=this.attr(E[X]);return F}var Z;for(var at in b!=null&&((Z={})[E]=b),b==null&&l.is(E,"object")&&(Z=E),Z)$("raphael.attr."+at+"."+this.id,this,Z[at]);if(Z){for(at in this.paper.customAttributes)if(this.paper.customAttributes[u](at)&&Z[u](at)&&l.is(this.paper.customAttributes[at],"function")){var pt=this.paper.customAttributes[at].apply(this,[].concat(Z[at]));for(var wt in this.attrs[at]=Z[at],pt)pt[u](wt)&&(Z[wt]=pt[wt])}Z.text&&this.type=="text"&&(this.textpath.string=Z.text),Dt(this,Z)}return this},it.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&l._tofront(this,this.paper),this},it.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),l._toback(this,this.paper)),this)},it.insertAfter=function(E){return this.removed?this:(E.constructor==l.st.constructor&&(E=E[E.length-1]),E.node.nextSibling?E.node.parentNode.insertBefore(this.node,E.node.nextSibling):E.node.parentNode.appendChild(this.node),l._insertafter(this,E,this.paper),this)},it.insertBefore=function(E){return this.removed?this:(E.constructor==l.st.constructor&&(E=E[0]),E.node.parentNode.insertBefore(this.node,E.node),l._insertbefore(this,E,this.paper),this)},it.blur=function(E){var b=this.node.runtimeStyle,N=b.filter;return N=N.replace(U,O),+E!=0?(this.attrs.blur=E,b.filter=N+P+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+E||1.5)+")",b.margin=l.format("-{0}px 0 0 -{0}px",m(+E||1.5))):(b.filter=N,b.margin=0,delete this.attrs.blur),this},l._engine.path=function(E,b){var N=ft("shape");N.style.cssText=rt,N.coordsize=ct+P+ct,N.coordorigin=b.coordorigin;var L=new Q(N,b),V={fill:"none",stroke:"#000"};E&&(V.path=E),L.type="path",L.path=[],L.Path=O,Dt(L,V),b.canvas&&b.canvas.appendChild(N);var F=ft("skew");return F.on=!0,N.appendChild(F),L.skew=F,L.transform(O),L},l._engine.rect=function(E,b,N,L,V,F){var X=l._rectPath(b,N,L,V,F),z=E.path(X),Z=z.attrs;return z.X=Z.x=b,z.Y=Z.y=N,z.W=Z.width=L,z.H=Z.height=V,Z.r=F,Z.path=X,z.type="rect",z},l._engine.ellipse=function(E,b,N,L,V){var F=E.path();return F.attrs,F.X=b-L,F.Y=N-V,F.W=2*L,F.H=2*V,F.type="ellipse",Dt(F,{cx:b,cy:N,rx:L,ry:V}),F},l._engine.circle=function(E,b,N,L){var V=E.path();return V.attrs,V.X=b-L,V.Y=N-L,V.W=V.H=2*L,V.type="circle",Dt(V,{cx:b,cy:N,r:L}),V},l._engine.image=function(E,b,N,L,V,F){var X=l._rectPath(N,L,V,F),z=E.path(X).attr({stroke:"none"}),Z=z.attrs,at=z.node,pt=at.getElementsByTagName("fill")[0];return Z.src=b,z.X=Z.x=N,z.Y=Z.y=L,z.W=Z.width=V,z.H=Z.height=F,Z.path=X,z.type="image",pt.parentNode==at&&at.removeChild(pt),pt.rotate=!0,pt.src=b,pt.type="tile",z._.fillpos=[N,L],z._.fillsize=[V,F],at.appendChild(pt),gt(z,1,1,0,0,0),z},l._engine.text=function(E,b,N,L){var V=ft("shape"),F=ft("path"),X=ft("textpath");b=b||0,N=N||0,L=L||"",F.v=l.format("m{0},{1}l{2},{1}",m(b*ct),m(N*ct),m(b*ct)+1),F.textpathok=!0,X.string=v(L),X.on=!0,V.style.cssText=rt,V.coordsize=ct+P+ct,V.coordorigin="0 0";var z=new Q(V,E),Z={fill:"#000",stroke:"none",font:l._availableAttrs.font,text:L};z.shape=V,z.path=F,z.textpath=X,z.type="text",z.attrs.text=v(L),z.attrs.x=b,z.attrs.y=N,z.attrs.w=1,z.attrs.h=1,Dt(z,Z),V.appendChild(X),V.appendChild(F),E.canvas.appendChild(V);var at=ft("skew");return at.on=!0,V.appendChild(at),z.skew=at,z.transform(O),z},l._engine.setSize=function(E,b){var N=this.canvas.style;return this.width=E,this.height=b,E==+E&&(E+="px"),b==+b&&(b+="px"),N.width=E,N.height=b,N.clip="rect(0 "+E+" "+b+" 0)",this._viewBox&&l._engine.setViewBox.apply(this,this._viewBox),this},l._engine.setViewBox=function(E,b,N,L,V){l.eve("raphael.setViewBox",this,this._viewBox,[E,b,N,L,V]);var F,X,z=this.getSize(),Z=z.width,at=z.height;return V&&(N*(F=at/L)<Z&&(E-=(Z-N*F)/2/F),L*(X=Z/N)<at&&(b-=(at-L*X)/2/X)),this._viewBox=[E,b,N,L,!!V],this._viewBoxShift={dx:-E,dy:-b,scale:z},this.forEach(function(pt){pt.transform("...")}),this},l._engine.initWin=function(E){var b=E.document;b.styleSheets.length<31?b.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):b.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!b.namespaces.rvml&&b.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),ft=function(N){return b.createElement("<rvml:"+N+' class="rvml">')}}catch{ft=function(L){return b.createElement("<"+L+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},l._engine.initWin(l._g.win),l._engine.create=function(){var E=l._getContainer.apply(0,arguments),b=E.container,N=E.height,L=E.width,V=E.x,F=E.y;if(!b)throw new Error("VML container not found.");var X=new l._Paper,z=X.canvas=l._g.doc.createElement("div"),Z=z.style;return V=V||0,F=F||0,L=L||512,N=N||342,X.width=L,X.height=N,L==+L&&(L+="px"),N==+N&&(N+="px"),X.coordsize=216e5+P+216e5,X.coordorigin="0 0",X.span=l._g.doc.createElement("span"),X.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",z.appendChild(X.span),Z.cssText=l.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",L,N),b==1?(l._g.doc.body.appendChild(z),Z.left=V+"px",Z.top=F+"px",Z.position="absolute"):b.firstChild?b.insertBefore(z,b.firstChild):b.appendChild(z),X.renderfix=function(){},X},l.prototype.clear=function(){l.eve("raphael.clear",this),this.canvas.innerHTML=O,this.span=l._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},l.prototype.remove=function(){for(var E in l.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[E]=typeof this[E]=="function"?l._removedFactory(E):null;return!0};var st=l.st;for(var S in it)it[u](S)&&!st[u](S)&&(st[S]=function(E){return function(){var b=arguments;return this.forEach(function(N){N[E].apply(N,b)})}}(S))}}.apply(i,s))===void 0||(n.exports=o)}])})})(kc);var Wd=kc.exports;const Se=to(Wd);class Eo{points;constructor(t=[]){this.points=t}toSVGPathData(){const t=[];for(let n=0,i=this.length;n<i;n++)t.push([n===0?"M":"L",this.points[n].x,this.points[n].y]);return t}toSVGPathD(){let t="";for(let n=0,i=this.length;n<i;n++)t+=(n===0?"M":"L")+this.points[n].x+","+this.points[n].y;return t}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t){const n=t.x,i=t.y,r=this.length;let s=!1;const o=2e-10;for(let l=0,u=r-1;l<r;u=l,l++){const v=this.points[l].x,y=this.points[l].y,g=this.points[u].x,m=this.points[u].y;if(v===n&&y===i||g===n&&m===i||i===y&&i===m)return!0;if(i>=y&&i<m||i<y&&i>=m){const x=(g-v)/(m-y),I=v+x*(i-y);if(I===n||Math.abs(I-n)<o)return!0;I>n&&(s=!s)}}return s}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generateInMultiplePoint(t,n,i,r,s=1){const o=new Eo;for(let l=0;l<=s*i;l+=1){const u=Math.floor(l/s)/i*2*Math.PI,v=t+Math.cos(u)*r,y=n+Math.sin(u)*r;o.addPoint(new kn({x:v,y}))}return o}}const Tc=Eo;Se.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Se.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Se.fn.importSVG=function(e,t){const n=Un.fromRawSVG(e);return n.toRaphael(this,(i,r)=>{n.save(),t&&t(i),r(),n.restore()}),this},Se.fn.NPolygonPath=function(e,t,n,i,r=2){return{shape:this.path(Tc.generateInMultiplePoint(e,t,n,i,r).toSVGPathD()),afterPath:Tc.generateInMultiplePoint(e,t,n*r,i,1).toSVGPathD()}},Se.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Se.fn.brickwall=function(e,t,n,i,r){for(var s=i/r,o=n/3,l={fill:"firebrick",stroke:"#CCC"},u=0;u<r;u+=1){var v=this.rect(0,0,o,s).attr(l),y=this.rect(0,0,2*o,s).attr(l);u%2?(v.transform("T"+e+","+(t+u*s)),y.transform("T"+(e+o)+","+(t+u*s))):(y.transform("T"+e+","+(t+u*s)),v.transform("T"+(e+2*o)+","+(t+u*s)))}},Se.fn.rosetta=function(e,t,n,i,r){const s=Sc.generateRosetta(e,t,n,i,r);return s.center,this.path(s.toSVGPathD())},Se.fn.moon=function(e){e=e||{},e.r=typeof e.r=="number"?e.r:100,e.phase=typeof e.phase=="number"?e.phase:.25,e.x=typeof e.x=="number"?e.x:0,e.y=typeof e.y=="number"?e.y:0,this.circle(e.r+e.x,e.r+e.y,e.r).attr({"stroke-width":0,fill:"#999"});function t(i){i=typeof i=="number"?i:.25,i=Math.max(0,Math.min(1,i)),i=(i-.5)*2;let r="M"+e.r+",0";r+="a"+e.r+","+e.r+" 0 0,0 0,"+e.r*2;let s=i>0?0:1;return i=Math.abs(i),i=i||1e-4,e.inner_r=e.r/Math.pow(i,.5),r+="M"+e.r+","+e.r*2,r+="a"+e.inner_r+","+e.inner_r+" 0 0,"+s+" 0,"+e.r*-2,r}var n=this.path(t(e.phase)).attr({"stroke-width":0,stroke:"#999",fill:"#FF9"}).transform("T"+e.x+","+e.y);return{setPhase:function(i){n.attr("path",t(i))}}},Se.fn.star=function(e,t,n){let i="M"+e+","+(t-n);for(var r=0;r<6;r+=1){const s=270+r*144,o=e+n*Math.cos(s*Math.PI/180),l=t+n*Math.sin(s*Math.PI/180);i+="L"+o+","+l}return this.path(i).attr("stroke-width",0).attr("fill","red")},Se.fn.heart=function(e=150,t=300){let n="M"+e+","+t;return n+="l120,-175a50,50 0 0,0 -120,-75a50,50 0 0,0 -120,75l120,175",this.path(n).attr("stroke","red").attr("fill","pink")},Se.el.redder=function(){const e=Se.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Se.installCustomAttributes=function(e){e.customAttributes.redness=function(t){const n=255*(1-t/100);return{fill:"rgb(255,"+n+", "+n+")"}},e.customAttributes.progress=function(t){const n=this.data("progresspath"),i=this.attr(),r={x:0,y:0},s=this.data("progresstrail");if(!n)return{transform:"t0,0"};Object.prototype.hasOwnProperty.call(i,"width")&&(r.x=-this.attr("width")/2,r.y=-this.attr("height")/2);const o=n.getTotalLength(),l=n.getPointAtLength(t*o);return s&&s.attr("path",n.getSubpath(0,t*o)),{transform:"t"+(l.x+r.x)+","+(l.y+r.y)+"r"+l.alpha}}};const Pc=Se;class Un{pgs=[];history=[];save(){this.history.push(Fl(this.pgs))}restore(){const t=this.history.pop();t&&(this.pgs=t)}get size(){let t=0,n=0;return this.pgs.forEach(i=>{const r=i.pg;if(r){const[s,o,l,u]=r.bounds,[v,y]=r.size;t=Math.max(t,s,s+v,l),n=Math.max(n,o,o+y,u)}}),[Math.ceil(t),Math.ceil(n)]}static fromRawSVG(t){return Un.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const n=new Un,i=Ed(t);for(let r=0,s=i.length;r<s;r++){const o=i[r];if(o.type=="viewbox"&&o.width&&o.height)continue;const l={attrs:{}};for(const u in o)u==="type"||u==="path"||u==="transform"||(l.attrs[u]=o[u]);switch(o.type){case"path":l.d=o.path,l.pg=Sc.fromSVGPathD(o.path,o.transform);break}n.pgs.push(l)}return n}toRaphael(t,n){let i;t instanceof HTMLElement?i=Pc(HTMLElement):typeof t=="string"?i=Pc(document.getElementById(t)):i=t;const[r,s]=this.size;i.setSize(r,s);const o=(l=!1)=>{for(let u=0,v=this.pgs.length;u<v;u++){const y=this.pgs[u];if(y.pg&&(y.raphaelPath?y.raphaelPath.attr("path",y.pg.toSVGPathD()):y.raphaelPath=i.path(y.pg.toSVGPathD()),y.raphaelPath.attr(y.attrs)),l&&n){const g=m=>{const{x,y:I}=no(i.canvas,m),k=this.pgs.find(A=>A.raphaelPath?.isPointInside(x,I));k&&n?.(k,o)};y.raphaelPath?.unclick(g),y.raphaelPath?.click(g)}}};return o(!0),i}toCanvasOperation(t,n){let i;typeof t=="string"?i=document.getElementById(t):i=t;const[r,s]=this.size;i.width=r,i.height=s;const o=new jr(i),l=()=>{o.clearRect(0,0,r,s);for(let v=0,y=this.pgs.length;v<y;v++){const g=this.pgs[v];g.pg&&(o.save(),this.toCanvasAttrs(o,g.attrs),g.pg.toCanvas(o),g.attrs.stroke!=="none"&&o.stroke(),g.attrs.fill!=="none"&&o.fill(),o.restore())}};l();const u=v=>{const{x:y,y:g}=no(o.canvas,v),m=this.pgs.find(x=>x.pg?.isPointInPath(y,g));m&&n?.(m,l)};return i.removeEventListener("click",u),i.addEventListener("click",u),o}toCanvasAttrs(t,n){for(const i in n){const r=n[i];switch(i){case"fill":t.fillStyle=String(r);break;case"stroke":t.strokeStyle=String(r);break;case"stroke-width":t.lineWidth=Number(r);break;case"stroke-linecap":t.lineCap=r;break;case"stroke-linejoin":t.lineJoin=r;break}}}static toDownloadSVGElement(t,n="shape"){Jl(nd(t),`${n}.svg`)}toDownloadSVGElement(t,n="shape"){return Un.toDownloadSVGElement(t,n),this}static toDownloadSVGString(t,n="shape"){Jl(Ql(t),`${n}.svg`)}toDownloadSVGString(t,n="shape"){return Un.toDownloadSVGString(t,n),this}static getSVGDOM(t){if(t instanceof HTMLObjectElement||t instanceof HTMLIFrameElement)return t.contentDocument;if(t instanceof HTMLEmbedElement)return t.getSVGDocument()}}class jr{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new Vr({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(t){this.context.lineWidth=t,this.customContext.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext.globalAlpha=t}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext.fillStyle=t):(this.context.fillStyle=t.gradient,this.customContext.fillStyle=t.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}fill(){return this.context.fill(),this.customContext.fill(),this}fillRect(t,n,i,r){return this.context.fillRect(t,n,i,r),this.customContext.fillRect(t,n,i,r),this}fillText(t,n,i,r){return this.context.fillText(t,n,i,r),this.customContext.fillText(t,n,i),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(){return this.context.stroke(),this.customContext.stroke(),this}strokeText(t,n,i,r){return this.context.strokeText(t,n,i,r),this.customContext.strokeText(t,n,i),this}strokeRect(t,n,i,r){return this.context.strokeRect(t,n,i,r),this.customContext.strokeRect(t,n,i,r),this}clearRect(t=0,n=0,i=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,n,i,r),this.customContext.clearRect(t,n,i,r),this}save(){return this.context.save(),this.customContext.save(),this}restore(){return this.context.restore(),this.customContext.restore(),this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this}isPointInPath(t,n){return this.context.isPointInPath(t,n)}moveTo(t,n){return this.context.moveTo(t,n),this.customContext.moveTo(t,n),this}lineTo(t,n){return this.context.lineTo(t,n),this.customContext.lineTo(t,n),this}arc(t,n,i,r,s,o){return this.context.arc(t,n,i,r,s,o),this.customContext.arc(t,n,i,r,s,o?-1:1),this}arcTo(t,n,i,r,s){return this.context.arcTo(t,n,i,r,s),this.customContext.arcTo(t,n,i,r,s),this}quadraticCurveTo(t,n,i,r){return this.context.quadraticCurveTo(t,n,i,r),this.customContext.quadraticCurveTo(t,n,i,r),this}bezierCurveTo(t,n,i,r,s,o){return this.context.bezierCurveTo(t,n,i,r,s,o),this.customContext.bezierCurveTo(t,n,i,r,s,o),this}rect(t,n,i,r){return this.context.rect(t,n,i,r),this.customContext.rect(t,n,i,r),this}translate(t,n){return this.context.translate(t,n),this.customContext.translate(t,n),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this}scale(t,n){return this.context.scale(t,n),this.customContext.scale(t,n),this}createLinearGradient(t,n,i,r,s){const o=this.context.createLinearGradient(t,n,i,r),l=this.customContext.createLinearGradient(t,n,i,r);return s&&Object.keys(s).forEach(u=>{const v=parseFloat(u);o.addColorStop(v,s[v]),l.addColorStop(v,s[v])}),{gradient:o,gradientCustom:l}}createRadialGradient(t,n,i,r,s,o,l){const u=this.context.createRadialGradient(t,n,i,r,s,o),v=this.customContext.createRadialGradient(t,n,i,r,s,o);return l&&Object.keys(l).forEach(y=>{const g=parseFloat(y);u.addColorStop(g,l[g]),v.addColorStop(g,l[g])}),{gradient:u,gradientCustom:v}}drawImage(t,n=0,i=0){return this.context.drawImage(t,n,i),this.customContext.drawImage(t,n,i),this}getImageData(t,n,i,r,s){return this.context.getImageData(t,n,i,r,s)}putImageData(t,n=0,i=0){return this.context.putImageData(t,n,i)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),n=this.customContext.getSvg();return{raw:t,element:n}}toSVGOperation(){const{raw:t}=this.toRawSVG();return Un.fromRawSVG(t)}}class Ic extends Jf{container;hammer;mousePoint;ctx;removeEventListeners=[];constructor(t=document.documentElement){super(),this.container=t,this.hammer=new hd(this.container),this.mousePoint=new kn({x:0,y:0}),this.container instanceof HTMLCanvasElement&&(this.ctx=new jr(this.container)),this.restart()}restart(){this.destroy(),this.removeEventListeners=[this.initEventListeners()],this.on("pointerMove",this.setMousePoint),this.addRemoveWhenDestroy(()=>{this.off("pointerMove",this.setMousePoint)})}destroy(){this.removeEventListeners.forEach(t=>t())}addRemoveWhenDestroy(t){this.removeEventListeners.push(t)}setMousePoint(t){const n=no(this.container,t);this.mousePoint.x=n.x,this.mousePoint.y=n.y}initEventListeners(){const t=new ResizeObserver(Q=>{const{width:it,height:st}=Q[0].contentRect;this.emit("resize",it,st)}),n=Q=>{this.emit("mouseDown",Q),this.container.style.userSelect="none"},i=Q=>{this.emit("mouseUp",Q),this.container.style.userSelect=""},r=Q=>{this.emit("mouseMove",Q)},s=Q=>{this.emit("mouseOver",Q)},o=Q=>{this.emit("mouseOut",Q),this.container.style.userSelect=""},l=Q=>{this.emit("mouseClick",Q)},u=Q=>{this.emit("mouseDoubleClick",Q)},v=Q=>{this.emit("mouseWheel",Q)},y=Q=>{this.emit("mouseContextMenu",Q)},g=Q=>{this.emit("touchStart",Q),this.container.style.userSelect="none"},m=Q=>{this.emit("touchEnd",Q),this.container.style.userSelect=""},x=Q=>{this.emit("touchCancel",Q),this.container.style.userSelect=""},I=Q=>{this.emit("touchMove",Q)},k=Q=>{this.emit("pointerDown",Q),this.container.style.userSelect="none"},A=Q=>{this.emit("pointerUp",Q),this.container.style.userSelect=""},$=Q=>{this.emit("pointerCancel",Q),this.container.style.userSelect=""},P=Q=>{this.emit("pointerMove",Q)},O=Q=>{this.emit("pan",Q)},D=Q=>{this.emit("panStart",Q),this.container.style.userSelect="none"},W=Q=>{this.emit("panMove",Q)},U=Q=>{this.emit("panEnd",Q),this.container.style.userSelect=""},R=Q=>{this.emit("panCancel",Q),this.container.style.userSelect=""},rt=Q=>{this.emit("panLeft",Q)},ct=Q=>{this.emit("panRight",Q)},mt=Q=>{this.emit("panUp",Q),this.container.style.userSelect=""},ht=Q=>{this.emit("panDown",Q),this.container.style.userSelect="none"},lt=Q=>{this.emit("pinch",Q)},gt=Q=>{this.emit("press",Q)},ft=Q=>{this.emit("rotate",Q)},At=Q=>{this.emit("swipe",Q)},Dt=Q=>{this.emit("tap",Q)},zt=Q=>{!Q.target||this.container==Q.target||this.container.contains(Q.target)||this.emit("tapOutSide",Q)};return t.observe(this.container),this.container.addEventListener("mousedown",n),this.container.addEventListener("mouseup",i),this.container.addEventListener("mousemove",r),this.container.addEventListener("mouseover",s),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",l),this.container.addEventListener("dblclick",u),this.container.addEventListener("wheel",v),this.container.addEventListener("contextmenu",y),this.container.addEventListener("touchstart",g),this.container.addEventListener("touchend",m),this.container.addEventListener("touchcancel",x),this.container.addEventListener("touchmove",I),this.container.addEventListener("pointerdown",k),this.container.addEventListener("pointerup",A),this.container.addEventListener("pointercancel",$),this.container.addEventListener("pointermove",P),this.hammer.on("pan",O),this.hammer.on("panstart",D),this.hammer.on("panmove",W),this.hammer.on("panend",U),this.hammer.on("pancancel",R),this.hammer.on("panleft",rt),this.hammer.on("panright",ct),this.hammer.on("panup",mt),this.hammer.on("pandown",ht),this.hammer.on("pinch",lt),this.hammer.on("press",gt),this.hammer.on("rotate",ft),this.hammer.on("swipe",At),this.hammer.on("tap",Dt),document.addEventListener("pointerdown",zt,!1),()=>{t.unobserve(this.container),this.container.removeEventListener("mousedown",n),this.container.removeEventListener("mouseup",i),this.container.removeEventListener("mousemove",r),this.container.removeEventListener("mouseover",s),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",l),this.container.removeEventListener("dblclick",u),this.container.removeEventListener("wheel",v),this.container.removeEventListener("contextmenu",y),this.container.removeEventListener("touchstart",g),this.container.removeEventListener("touchend",m),this.container.removeEventListener("touchcancel",x),this.container.removeEventListener("touchmove",I),this.container.removeEventListener("pointerdown",k),this.container.removeEventListener("pointerup",A),this.container.removeEventListener("pointercancel",$),this.container.removeEventListener("pointermove",P),this.hammer.off("pan",O),this.hammer.off("panstart",D),this.hammer.off("panmove",W),this.hammer.off("panend",U),this.hammer.off("pancancel",R),this.hammer.off("panleft",rt),this.hammer.off("panright",ct),this.hammer.off("panup",mt),this.hammer.off("pandown",ht),this.hammer.off("pinch",lt),this.hammer.off("press",gt),this.hammer.off("rotate",ft),this.hammer.off("swipe",At),this.hammer.off("tap",Dt),document.removeEventListener("pointerdown",zt,!1),document.removeEventListener("touchstart",zt,!1),document.removeEventListener("mousedown",zt,!1)}}registerKeyDown(t,n,i){const r=gd.on(t,s=>(n(s,r.formatedKeyNames,r.pause,r.restart),i));r.removeListener&&this.addRemoveWhenDestroy(r.removeListener)}drawMouseMoveLine(t,n){if(!this.ctx)return;let i=!1;switch(t){case"brush":const r=(n&&n.brushSize)??10,s=(n&&n.brushDensity)??50,o=(n&&n.brushColor)??"#000000",l=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),u=l.data,v=Nc(o);this.captureMove({start:()=>{i=!0},end:()=>{i=!1},move:()=>{if(i){for(let y=0;y<s;y++){const g=Math.random()*Math.PI*2,m=Math.random()*r,x=this.mousePoint.x+Math.cos(g)*m|0,I=this.mousePoint.y+Math.sin(g)*m|0,k=(x+I*l.width)*4;u[k]=v>>16&255,u[k+1]=v>>8&255,u[k+2]=v&255,u[k+3]=255}this.ctx.putImageData(l)}}});break;case"line":default:this.captureMove({start:y=>{i=!0,this.ctx.beginPath(),this.setMousePoint(y),this.ctx.moveTo(this.mousePoint.x,this.mousePoint.y)},end:()=>{i=!1,this.ctx.closePath()},move:()=>{i&&(this.ctx.lineTo(this.mousePoint.x,this.mousePoint.y),this.ctx.stroke())}})}}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUseMouse(t){const n=s=>{document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",i,!1),this.container.style.userSelect="none",t?.start?.(s)},i=s=>{document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",i,!1),this.container.style.userSelect="",t?.end?.(s)},r=s=>{t?.move?.(s)};this.on("mouseDown",n),this.addRemoveWhenDestroy(()=>{this.off("mouseDown",n)})}captureMoveUseTouch(t){const n=s=>{s.preventDefault(),t?.start?.(s)},i=s=>{t?.end?.(s)},r=s=>{t?.move?.(s)};this.on("touchStart",n),this.on("touchEnd",i),this.on("touchCancel",i),this.on("touchMove",r),this.addRemoveWhenDestroy(()=>{this.off("touchStart",n),this.off("touchEnd",i),this.off("touchCancel",i),this.off("touchMove",r)})}captureMoveUsePointer(t){const n=s=>{this.container.setPointerCapture(s.pointerId),this.container.style.userSelect="none",t?.start?.(s)},i=s=>{this.container.style.userSelect="",t?.end?.(s)},r=s=>{t?.move?.(s)};this.on("pointerDown",n),this.on("pointerUp",i),this.on("pointerCancel",i),this.on("pointerMove",r),this.addRemoveWhenDestroy(()=>{this.off("pointerDown",n),this.off("pointerUp",i),this.off("pointerCancel",i),this.off("pointerMove",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 It{static onDocumentReady(t){function n(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,n){document.documentElement.style.setProperty(t,n)}static safeExec(t){const n=new Proxy(window,{get(i,r,s){if(typeof r=="string"&&["open","location","document"].includes(r))throw new Error(`禁止访问 key: ${r}`);return r==="window"?n:Reflect.get(i,r,s)},set(i,r,s,o){return Reflect.set(i,r,s,o)}});new Function("window",`with(window) { ${t} }`)(n,null)}static dom=new Proxy({},{get(t,n){return function(i={},...r){const s=document.createElement(n);for(const o of Object.keys(i))s.setAttribute(o,i[o]);for(const o of r)typeof o=="string"?s.appendChild(document.createTextNode(o)):s.appendChild(o);return s}}});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":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},Qt=(t,e)=>(typeof t=="string"&&(t=ho(t)||new RegExp(t)),t.test(e)),Sc=(t,e)=>{typeof t=="string"&&(t=ho(t)||new RegExp(t));const n=e.match(t);return n?t.flags.toLowerCase().indexOf("g")>=0?n.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof n.index=="number"?n.index:-1,fullMatch:n[0],groupMatchs:n.slice(1)}:null},kc=(t,e)=>{typeof t=="string"&&(t=ho(t)||new RegExp(t));const n=[],s=e.matchAll(t);for(const i of s)n.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return n};function Op(t){const e=t.match(/[\s\S]/gu);return e?e.length:0}function Pc(t,e){const n=t.codePointAt(e);return n?String.fromCodePoint(n):void 0}function Ip(){let t=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(n){const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?s:s&3|8).toString(16)})}function Mp(t){return t.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const Dp=(t,e="-")=>(t=t.replace(/([A-Z])/g,e+"$1").toLowerCase(),t.indexOf(e)==0?t.slice(1):t);function fo(t){return t.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function Nc(t){return Mp(fo(t))}function Oc(t){const e=typeof t;return e!=="object"?e:Object.prototype.toString.call(t).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Ap(t){return Oc(t)==="array"}function Rp(t){return Oc(t)==="object"}function Un(t,e){const n=e||{};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n}function Ni(t,e=new WeakMap){if(t==null)return t;if(t.constructor===Date)return new Date(t);if(t.constructor===RegExp)return new RegExp(t);if(typeof t!="object")return t;if(e.has(t))return e.get(t);const n=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));e.set(t,n);for(const s of Reflect.ownKeys(t))n[s]=Rp(t[s])?Ni(t[s],e):t[s];return n}function Ic(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete t[n];return t}function Cs(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&delete t[e];return t}function Ts(t,e){const n=t.length,s=e.length;for(let r=0;r<s;r++)t[r]=e[r];let i=Math.max(0,n-s);for(;i>0;)t.pop(),i--}function po(t,e,n=Number.EPSILON*Math.pow(2,2)){return Math.abs(t-e)<n}const mo=(t,e,n)=>t<e?e:t>n?n:t;function Mc(t,e=12){return t.toPrecision(e)}function Ss(t){const e=Sc("number-single",t);return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?t.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?t.substring(e.matchIndex+e.fullMatch.length):""}}function $p(t){const e=Sc("number",t);return e?Array.isArray(e)?e.map(n=>Number(n.fullMatch)):[Number(e.fullMatch)]:[]}function Lp(t,e){let n=!0;return function(...s){n&&(n=!1,t.apply(this,s),setTimeout(()=>{n=!0},e))}}function Fp(t,e){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>{t.apply(this,s)},e)}}class Dc{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async n=>{this.controller=n}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const n=await Promise.allSettled(e.map(s=>s()));this.results.push(...n),n.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=n.length}}}class Ac{events;constructor(){this.events={}}on(e,n){return this.events[e]||(this.events[e]=[]),this.events[e].push(n),this}addListener(e,n){return this.on(e,n),this}prependListener(e,n){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(n),this}removeListener(e,n){if(this.events[e])return this.events[e]=this.events[e].filter(s=>s!==n),this}off(e,n){return this.removeListener(e,n),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...n){return this.events[e]&&this.events[e].forEach(s=>{Reflect.apply(s,this,n)}),this}once(e,n){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(n,this,o),this.off(e,i))}})();return this.on(e,i),this}}var Rc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Vp(t,e={}){var n=1,s=1;function i(Y){var j=Y.match(/\n/g);j&&(n+=j.length);var de=Y.lastIndexOf(`
41
+ `);s=~de?Y.length-de:s+Y.length}function r(){var Y={line:n,column:s};return function(j){return j.position=new o(Y),m(),j}}function o(Y){this.start=Y,this.end={line:n,column:s},this.source=e.source}o.prototype.content=t;var a=[];function l(Y){var j=new Error(e.source+":"+n+":"+s+": "+Y);if(j.reason=Y,j.filename=e.source,j.line=n,j.column=s,j.source=t,e.silent)a.push(j);else throw j}function c(){var Y=f();return{type:"stylesheet",stylesheet:{source:e.source,rules:Y,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var Y,j=[];for(m(),v(j);t.length&&t.charAt(0)!="}"&&(Y=he()||M());)Y!==!1&&(j.push(Y),v(j));return j}function d(Y){var j=Y.exec(t);if(j){var de=j[0];return i(de),t=t.slice(de.length),j}}function m(){d(/^\s*/)}function v(Y){var j;for(Y=Y||[];j=y();)j!==!1&&Y.push(j);return Y}function y(){var Y=r();if(!(t.charAt(0)!="/"||t.charAt(1)!="*")){for(var j=2;t.charAt(j)!=""&&(t.charAt(j)!="*"||t.charAt(j+1)!="/");)++j;if(j+=2,t.charAt(j-1)==="")return l("End of comment missing");var de=t.slice(2,j-2);return s+=2,i(de),t=t.slice(j),s+=2,Y({type:"comment",comment:de})}}function E(){var Y=d(/^([^{]+)/);if(Y)return Jt(Y[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(j){return j.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(j){return j.replace(/\u200C/g,",")})}function C(){var Y=r(),j=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=Jt(j[0]),!d(/^:\s*/))return l("property missing ':'");var de=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),fe=Y({type:"declaration",property:j.replace(Rc,""),value:de?Jt(de[0]).replace(Rc,""):""});return d(/^[;\s]*/),fe}}function w(){var Y=[];if(!u())return l("missing '{'");v(Y);for(var j;j=C();)j!==!1&&(Y.push(j),v(Y));return h()?Y:l("missing '}'")}function S(){for(var Y,j=[],de=r();Y=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(Y[1]),d(/^,\s*/);if(j.length)return de({type:"keyframe",values:j,declarations:w()})}function $(){var Y=r(),j=d(/^@([-\w]+)?keyframes\s*/);if(j){var de=j[1];if(j=d(/^([-\w]+)\s*/),!j)return l("@keyframes missing name");var fe=j[1];if(!u())return l("@keyframes missing '{'");for(var Me,Je=v();Me=S();)Je.push(Me),Je=Je.concat(v());return h()?Y({type:"keyframes",name:fe,vendor:de,keyframes:Je}):l("@keyframes missing '}'")}}function O(){var Y=r(),j=d(/^@supports *([^{]+)/);if(j){var de=Jt(j[1]);if(!u())return l("@supports missing '{'");var fe=v().concat(f());return h()?Y({type:"supports",supports:de,rules:fe}):l("@supports missing '}'")}}function R(){var Y=r(),j=d(/^@host\s*/);if(j){if(!u())return l("@host missing '{'");var de=v().concat(f());return h()?Y({type:"host",rules:de}):l("@host missing '}'")}}function le(){var Y=r(),j=d(/^@media *([^{]+)/);if(j){var de=Jt(j[1]);if(!u())return l("@media missing '{'");var fe=v().concat(f());return h()?Y({type:"media",media:de,rules:fe}):l("@media missing '}'")}}function ue(){var Y=r(),j=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return Y({type:"custom-media",name:Jt(j[1]),media:Jt(j[2])})}function pe(){var Y=r(),j=d(/^@page */);if(j){var de=E()||[];if(!u())return l("@page missing '{'");for(var fe=v(),Me;Me=C();)fe.push(Me),fe=fe.concat(v());return h()?Y({type:"page",selectors:de,declarations:fe}):l("@page missing '}'")}}function De(){var Y=r(),j=d(/^@([-\w]+)?document *([^{]+)/);if(j){var de=Jt(j[1]),fe=Jt(j[2]);if(!u())return l("@document missing '{'");var Me=v().concat(f());return h()?Y({type:"document",document:fe,vendor:de,rules:Me}):l("@document missing '}'")}}function Oe(){var Y=r(),j=d(/^@font-face\s*/);if(j){if(!u())return l("@font-face missing '{'");for(var de=v(),fe;fe=C();)de.push(fe),de=de.concat(v());return h()?Y({type:"font-face",declarations:de}):l("@font-face missing '}'")}}var at=Te("import"),lt=Te("charset"),We=Te("namespace");function Te(Y){var j=new RegExp("^@"+Y+"\\s*([^;]+);");return function(){var de=r(),fe=d(j);if(fe){var Me={type:Y};return Me[Y]=fe[1].trim(),de(Me)}}}function he(){if(t[0]=="@")return $()||le()||ue()||O()||at()||lt()||We()||De()||pe()||R()||Oe()}function M(){var Y=r(),j=E();return j?(v(),Y({type:"rule",selectors:j,declarations:w()})):l("selector missing")}return go(c())}function Jt(t){return t?t.replace(/^\s+|\s+$/g,""):""}function go(t,e){var n=t&&typeof t.type=="string",s=n?t:e;for(var i in t){var r=t[i];Array.isArray(r)?r.forEach(function(o){go(o,s)}):r&&typeof r=="object"&&go(r,s)}return n&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),t}const $c=(t,e="image/svg+xml",n="utf-8")=>new Blob([t],{type:`${e};charset=${n}`}),Gp=t=>new XMLSerializer().serializeToString(t),zp=(t,e="image/svg+xml",n="utf-8")=>$c(Gp(t),e,n),Lc=(t,e)=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=e,typeof t=="string"?n.href=t:n.href=window.URL.createObjectURL(t),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href)};function jp(t=["*"],e){return new Promise((n,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(t)&&t.length>0&&i.setAttribute("accept",t.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const o=Array.from(i.files);!t.includes("*")&&o.some(a=>!t.includes(`.${Bp(a)}`))&&s(new Error(`Please select files in ${t} format`)),i.remove(),n(o)}};i.addEventListener("change",r),i.click()})}function Hp(t,e="text",n){return new Promise((s,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{n?.(o.loaded,o.total)}),r.addEventListener("load",o=>{s(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),e){case"dataURL":r.readAsDataURL(t);break;case"binaryString":r.readAsBinaryString(t);break;case"arrayBuffer":r.readAsArrayBuffer(t);break;default:r.readAsText(t)}})}const Bp=t=>{let e;return t instanceof File?e=t.name:e=t,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Oi(){const t=document.documentElement;return{clientWidth:t.clientWidth,clientHeight:t.clientHeight,clientTop:t.clientTop,clientLeft:t.clientLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,offsetParent:t.offsetParent,clientX:t.getBoundingClientRect().x,clientY:t.getBoundingClientRect().y}}function Fc(){const{clientWidth:t,clientHeight:e}=Oi();return{width:t||window.innerWidth,height:e||window.innerHeight}}function Up(t){const{top:e,left:n}=t.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=Oi();return{x:n+s,y:e+i}}function Wp(){const{clientHeight:t,scrollTop:e,scrollHeight:n}=Oi(),s=n-t;return s<=0?0:e/s*100}function Yp(t){if("center"in t)return t.center;if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const{scrollLeft:e,scrollTop:n}=Oi();return{x:t.clientX+e,y:t.clientY+n}}function Xp(t,e){const n=Yp(e),s=Up(t);return{x:n.x-s.x,y:n.y-s.y}}function Vc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const qp=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(t)?e="macOS":/win/i.test(t)?e="Windows":/android/i.test(t)?e="Android":/iphone|ipad|ipod/i.test(t)?e="iOS":/linux/i.test(t)?e="Linux":/bsd/i.test(t)&&(e="BSD"),e.toLowerCase()};function Kp(){return qp()==="macos"}function Zp(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}const s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}const _o=Zp()!==-1;(()=>{const t=Vc();return!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL)})(),function(){if(!Vc().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{n.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Qp(t){const e=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=n;let s=100;const i=function(){const r=Math.min(e.clientWidth,t);e.dataset.width=r,e.dataset.rem=s=Math.round(100*(r/t)),e.style.fontSize=s+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*s},window.px2rem=function(r){return r=parseFloat(r),r/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class Z{static onDocumentReady(e){let n=!1;function s(){document.readyState==="loading"||n||(n=!0,e(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}static onBeforeUnload(e){function n(){e(),document.removeEventListener("beforeunload",n)}typeof document<"u"&&document.addEventListener("beforeunload",n)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,n){document.documentElement.style.setProperty(e,n)}static getStyle(e,n,s){const i=e;if(getComputedStyle)if(n){n=Dp(n);const r=getComputedStyle(i,s).getPropertyPriority(n);return getComputedStyle(i,s).getPropertyValue(n).trim()+(r?"!"+r:"")}else{const r=[],o=getComputedStyle(i,"");for(let a=0;a<o.length;a++)r.push(o[a]+":"+o.getPropertyValue(o[a]));return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(n)return n=Nc(n),e.currentStyle[n];{const r=[],o=i.currentStyle;for(let a in o)r.push(a+":"+o[a]);return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,n,s){if(typeof n=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(n,s.replace(/!important/i,""),i)}else n instanceof Object&&Object.keys(n).forEach(i=>{const r=String(n[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(i,String(n[i]).replace(/!important/i,""),r)})}static setStyleSheet(e,n){let s;if(typeof n=="string"){const r=document.querySelector(n)?.shadowRoot;r?s=r:s=document.querySelector(n)}else s=n;const i=document.createElement("style");if(i.innerHTML=e,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const r=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(e,n,s="toggle"){n.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[s](i.trim())})}static addClass(e,n){this.toggleClass(e,n,"add")}static removeClass(e,n){this.toggleClass(e,n,"remove")}static hasClass(e,n){return n.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(e.classList||[]).includes(s.trim()):!0)}static toggleDisplay(e,n){this.getStyle(e,"display")=="none"&&n===void 0||n===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){this.toggleDisplay(e,!0)}static hide(e){this.toggleDisplay(e,!1)}static attribute(e,n,s){if(s===void 0&&typeof n=="string")return e.getAttribute(n);let i={};typeof n=="object"?i=n:s!==void 0&&(i[n]=s),Object.entries(i).forEach(([r,o])=>{e.setAttribute(r,o)})}static removeAttribute(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&e.removeAttribute(s.trim())})}static fixProp(e){const n={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 n[e]?n[e]:e}static prop(e,n,s){if(s===void 0&&typeof n=="string")return e[n];{let i={};typeof n=="object"?i=n:typeof n=="string"&&s!==void 0&&(i[n]=s),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);e[a]=o,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e[this.fixProp(s.trim())]})}static data(e,n,s){if(typeof n=="string"&&(n=Nc(n)),(typeof n=="string"||n===void 0)&&s===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]??"")}catch{}}),typeof n=="string"?i[n]:i}else{let i={};typeof n=="object"?i=n:typeof n=="string"&&(i[n]=s),Object.entries(i).forEach(([r,o])=>{o!=null?e.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete e.dataset[r]})}}static removeData(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e.dataset[s.trim()]})}static empty(e){this.html(e,"")}static html(e,n){n instanceof HTMLElement?this.insert(e,n,"replaceWith"):this.prop(e,"innerHTML",n)}static text(e,n){return this.prop(e,"textContent",n)}static value(e,n){return this.prop(e,"value",n)}static dispatchEvent(e,n,s){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof n=="string"?r.includes(n)?i=new MouseEvent(n,s):o.includes(n)?i=new KeyboardEvent(n,s):i=new Event(n,s):i=n,e.dispatchEvent(i)}static scriptConvert(e){const n=s=>{const r=s.ownerDocument.createElement("script");r.text=s.text;const o=s.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return e.tagName=="SCRIPT"&&(e=n(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(n(s),s)}),e}static fragment(e){const n=document.createElement("template");return n.innerHTML=e,n.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&n.content.replaceChild(i,s)}),n.content}static insert(e,n,s="replaceWith"){return typeof n=="string"?e[s](this.fragment(n)):n instanceof HTMLElement&&e[s](n),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(n=>n!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,n){return e.closest(n)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,n){if(e instanceof HTMLSelectElement){const s=e.options;for(let i=0,r=s.length;i<r;i++)s[i].value==n?s[i].selected=!0:s[i].selected=!1}}static changeRadioChecked(e,n){e instanceof HTMLInputElement&&(e.value==n?e.checked=!0:e.checked=!1)}static entity2text(e){const n={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let s;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?s=parseInt(e.substring(2),16):s=parseInt(e.substring(1),10):s=n[e],s?String.fromCharCode(s):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const i=()=>s>=n.length?(e(),!0):!1;i()||n.forEach(r=>{r.onload=()=>{s+=1,i()}})});static loadScript(e,n=()=>{},s=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=n,i.onerror=s,document.body.appendChild(i)}static runInSafe(e){const n=new Proxy(window,{get(s,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?n:Reflect.get(s,i,r)},set(s,i,r,o){return Reflect.set(s,i,r,o)}});new Function("window",`with(window) { ${e} }`)(n,null)}static dom=new Proxy({},{get(e,n){return function(s={},...i){const r=document.createElement(n);for(const o of Object.keys(s))r.setAttribute(o,s[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
50
42
  let output = "";
51
43
  function echo(html){
52
44
  output += html;
53
45
  }
54
- ${t}
46
+ ${e}
55
47
  return output;
56
- })`}static safeHtml(t,n="encode"){const i={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t=t.replace(new RegExp(n=="decode"?r:i[r],"g"),n=="decode"?i[r]:r));return t}static loadScript(t,n=()=>{},i=(r,s,o,l,u)=>{}){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.async=!1,document.body.appendChild(r),r.onload=n,r.onerror=i}static loadStyle(t){const n=document.createElement("link");n.rel="stylesheet",n.href=t,document.head.insertBefore(n,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let i=document.styleSheets.length??0;const r=()=>i>=n.length?(t(),!0):!1;r()||n.forEach(s=>{s.onload=()=>{i+=1,r()}})});static lazyloadImages(){const t=document.getElementsByTagName("img"),n=nc().height;let i=0;return()=>{for(let r=i;r<t.length;r++)t[r].getBoundingClientRect().top<n&&(t[r].src=t[r].getAttribute("data-src")??"",i=r+1)}}static iframePostMessage(t,n="http://test.com/localstorage.html"){const i=document.createElement("iframe");i.src=n,document.body.append(i),setTimeout(function(){i.contentWindow?.postMessage(t,n)},4e3),setTimeout(function(){i.remove()},6e3)}static getTextWidth=(t,n,i=400)=>{const r=document.createElement("span");r.style.visibility="hidden",r.style.padding="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=n>12?n+"px":"12px",r.style.fontWeight=i.toString(),r.innerText=t,document.body.appendChild(r);const s=r.offsetWidth;return document.body.removeChild(r),s};static getFixedWidthText=(t,n,i=12,r=400,s=!0)=>{let o="",l="",u="";if(!t||n<i||typeof t!="string")return o;const v=t.split(""),y=document.createElement("span");y.style.visibility="hidden",y.style.padding="0",y.style.whiteSpace="nowrap",y.style.overflow="visible",y.style.fontSize=i>12?i+"px":"12px",y.style.fontWeight=r.toString(),document.body.appendChild(y);for(let g=0,m=v.length;g<m;g++){const x=v[g];if(l=u,u+=x,o=u,y.innerText=u,y.offsetWidth>n){s?o=l+"...":o=l;break}}return document.body.removeChild(y),o};static getLocation(){return new Promise((t,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(i=>{t(i.coords)}):n("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 copyToClipboard=t=>navigator.clipboard.writeText(t);static getSelectedText=()=>window.getSelection()?.toString();static siblings=t=>Array.prototype.slice.call(t.parentNode?.children).filter(n=>n!==t);static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static addDebuggerOnBeforeUnload=()=>{window.addEventListener("beforeunload",()=>{debugger})}}function qd(e,t=document){return new re(e,t)}class re{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(t,n=document){if(this.context=n,typeof t=="string"?this.nodes=Array.from(this.context.querySelectorAll(t)):t instanceof HTMLElement?this.nodes=[t]:this.nodes=t,this.nodes.length===0)throw new Error(`can not find ${t}`);this.each((i,r)=>{i instanceof HTMLInputElement&&i.addEventListener("change",s=>{this.changeRadioChecked(s.currentTarget.value)}),i instanceof HTMLSelectElement&&i.addEventListener("change",s=>{this.changeSelectSelected(s.currentTarget.value)})})}get(t){return t<0&&(t=this.nodes.length+t),this.nodes[t]}concat(t){return new re(this.nodes.concat(t.nodes),this.context)}then(t){return t(this)??this}each(t){return this.nodes.forEach((n,i)=>{t(n,i)}),this}_save(t,n,i){t._mQuery||(t._mQuery={}),Array.isArray(i)?(t._mQuery[n]=t._mQuery[n]??[],t._mQuery[n].push(...i)):i!=null?t._mQuery[n]=i:delete t._mQuery[n]}on(t,n,i){return this.nodes.forEach(r=>{this._save(r,"events",[{event:t,callback:n,options:i}]),r.addEventListener(t,n,i)}),this}off(t,n,i){return this.nodes.forEach(r=>{r.removeEventListener(t,n,i)}),this}dispatchEvent(t,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],s=["keydown","keyup","keypress"];return typeof t=="string"?r.includes(t)?i=new MouseEvent(t,n):s.includes(t)?i=new KeyboardEvent(t,n):i=new Event(t,n):i=t,this.nodes.forEach(o=>{o.dispatchEvent(i)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(t,n){return"on"+n in t}static _fragment(t){const n=document.createElement("template");return n.innerHTML=t,n.content.childNodes.forEach(i=>{const r=re._scriptConvert(i);r!=i&&n.content.replaceChild(r,i)}),n.content}static _scriptConvert(t){const n=i=>{const s=i.ownerDocument.createElement("script");s.text=i.text;const o=i.attributes;for(let l=0;l<o.length;l++)s.setAttribute(o[l].name,o[l].value);return s};return t.tagName=="SCRIPT"&&(t=n(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(i=>{i.parentNode?.replaceChild(n(i),i)}),t}static _fixProp(t){const n={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 n[t]?n[t]:t}static isSVG(t){return(t||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(t){return re.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",t):document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(t,n){const i=this.nodes.length;if(i<1)return this;const r=[];if(typeof n=="string")this.nodes.forEach(s=>{const o=re._fragment(n);r.push(...o.children),s[t](o)});else if(n instanceof HTMLElement)this.each(s=>{const o=i===1?n:re._fragment(n.outerHTML);r.push(...i===1?[n]:o.children),s[t](o)}),i>1&&n.remove();else if(n instanceof re){const s=i==1;n.each(o=>{this.each(l=>{const u=s?o:o.cloneNode(!0);r.push(u),l[t](u),re._scriptConvert(u)})}),s||n.remove()}return t=="replaceWith"&&(this.nodes=r),this}append(t){return this._insert("append",t)}prepend(t){return this._insert("prepend",t)}after(t){return this._insert("after",t)}before(t){return this._insert("before",t)}replace(t){return this._insert("replaceWith",t)}remove(){return this.nodes.forEach(t=>{t.remove()}),this}static removeChild(t){t.parentElement?.removeChild(t)}find(t){const n=[];return this.nodes.forEach(i=>{n.push(...Array.from(i.querySelectorAll(t)))}),new re(n,this.context)}filter(t){const n=[];return this.nodes.forEach(i=>{(i===t||typeof t=="string"&&i.matches&&i.matches(t))&&n.push(i)}),new re(n,this.context)}next(){const t=[];return this.nodes.forEach(n=>{const i=n.nextElementSibling;i&&t.push(i)}),new re(t,this.context)}prev(){const t=[];return this.nodes.forEach(n=>{const i=n.previousElementSibling;i&&t.push(i)}),new re(t,this.context)}closest(t){const n=[];return this.nodes.forEach(i=>{const r=i.closest(t);r&&n.push(r)}),new re(n,this.context)}shadow(t){const n=[];this.nodes.forEach(r=>{r.shadowRoot&&n.push(r.shadowRoot)});const i=new re(n,this.context);return t!==void 0?i.find(t):i}parent(t){return this.parents(t,!0)}parents(t,n=!1){const i=[],r=o=>{if(i.indexOf(o)==-1&&i.push(o),!n&&o.parentElement)return r(o.parentElement)};this.nodes.forEach(o=>{o.parentElement&&r(o.parentElement)});const s=new re(i,this.context);return t!==void 0?s.filter(t):s}static getComputedStyle(t,n,i){let r;const s=t.style.getPropertyPriority(n);return"getComputedStyle"in window?(r=getComputedStyle.call(window,t,i),r=r.getPropertyValue(n)):r=t.style.getPropertyValue(n),r+(s?"!"+s:"")}css(t,n){if((t===void 0||typeof t=="string")&&n===void 0){const i=this.nodes[0].style;if(typeof t=="string"){const r=i.getPropertyPriority(t),s=i.getPropertyValue(t).trim();return s?s+(r?"!"+r:""):re.getComputedStyle(this.nodes[0],t)}else{const r=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(s=>!!s).map(s=>s.split(":").map(o=>o.trim())));return Object.assign(r,getComputedStyle.call(window,this.nodes[0])),r}}else{let i={};return typeof t=="string"&&n!==void 0?i[t]=n:typeof t=="object"&&(i=t),this.nodes.forEach(r=>{Object.keys(i).forEach(s=>{const o=String(i[s]).toLowerCase().includes("!important")?"important":"";r.style.setProperty(s,String(i[s]).replace(/!important/i,""),o)})}),this}}addClass(t){return this.toggleClass(t,!0)}removeClass(t){return this.toggleClass(t,!1)}toggleClass(t,n){const i=t.split(/[,\s]+/);return this.nodes.forEach(r=>{i.forEach(s=>{if(s.trim()!==""){let o="toggle";n!==void 0&&(o=n?"add":"remove"),r.classList[o](s.trim())}})}),this}hasClass(t){const n=t.split(/[,\s]+/);let i=!1;return this.nodes.forEach(r=>{i=i||n.every(s=>Array.from(r.classList??[]).includes(s.trim()))}),i}attr(t,n){if(n===void 0&&typeof t=="string")return this.nodes[0].getAttribute(t);let i={};return typeof t=="object"?i=t:n!==void 0&&(i[t]=n),this.nodes.forEach(r=>{Object.entries(i).forEach(([s,o])=>{r.setAttribute(s,o)})}),this}removeAttr(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{i.removeAttribute(r)})}),this}prop(t,n){if(n===void 0&&typeof t=="string")return this.nodes[0][t];{let i={};return typeof t=="object"?i=t:typeof t=="string"&&n!==void 0&&(i[t]=n),this.nodes.forEach(r=>{Object.entries(i).forEach(([s,o])=>{const l=re._fixProp(s);r[l]=o,l=="innerHTML"&&re._scriptConvert(r)})}),this}}removeProp(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{delete i[re._fixProp(r)]})}),this}changeSelectSelected(t){this.nodes.forEach(n=>{if(n instanceof HTMLSelectElement){const i=n.options;for(let r=0,s=i.length;r<s;r++)i[r].value==t?i[r].selected=!0:i[r].selected=!1}})}changeRadioChecked(t){this.nodes.forEach(n=>{n instanceof HTMLInputElement&&(n.value==t?n.checked=!0:n.checked=!1)})}data(t,n){if(typeof t=="string"&&t.indexOf("-")!=-1)throw new Error(`Key "${t}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof t=="string"||t===void 0)&&n===void 0){const i=Object.assign({},this.nodes[0].dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]??"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};return typeof t=="object"?i=t:typeof t=="string"&&(i[t]=n),this.nodes.forEach(r=>{Object.entries(i).forEach(([s,o])=>{o!=null?r.dataset[s]=o instanceof Object?JSON.stringify(o):o:delete r.dataset[s]})}),this}}removeData(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{delete i.dataset[r]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(t){return this.nodes.forEach(n=>{const i=n.style.display,r=getComputedStyle(n).display,s=i=="none"||r=="none";if(s&&(t===void 0||t===!0)){const o=n instanceof HTMLTableRowElement?"table-row":n instanceof HTMLTableCellElement?"table-cell":"block";n.style.display=n._mQuery?.prevDisplay??(i==r&&r!="none"?"":o),this._save(n,"prevDisplay",null)}!s&&(t==null||t===!1)&&(r!="none"&&this._save(n,"prevDisplay",r),n.style.setProperty("display","none"))})}empty(){return this.html("")}html(t){return t instanceof HTMLElement?this.empty().append(t.innerHTML):this.prop("innerHTML",t)}text(t){return this.prop("textContent",t)}val(t){return this.prop("value",t)}}const Mt={safeAreaTop:It.getCSSVar("--safe-area-inset-top"),safeAreaRight:It.getCSSVar("--safe-area-inset-right"),safeAreaBottom:It.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:It.getCSSVar("--safe-area-inset-left"),colorPrimary:It.getCSSVar("--color-primary"),colorRed:It.getCSSVar("--color-red"),colorOrange:It.getCSSVar("--color-orange"),colorYellow:It.getCSSVar("--color-yellow"),colorGreen:It.getCSSVar("--color-green"),colorBlue:It.getCSSVar("--color-blue"),colorPurple:It.getCSSVar("--color-purple"),colorBlack:It.getCSSVar("--color-black"),colorGray0:It.getCSSVar("--color-gray-0"),colorGray3:It.getCSSVar("--color-gray-3"),colorGray6:It.getCSSVar("--color-gray-6"),colorGray9:It.getCSSVar("--color-gray-9"),colorGrayCC:It.getCSSVar("--color-gray-cc"),colorGrayDD:It.getCSSVar("--color-gray-dd"),colorGrayE6:It.getCSSVar("--color-gray-e6"),colorGrayEE:It.getCSSVar("--color-gray-ee"),colorGrayEF:It.getCSSVar("--color-gray-ef"),colorGrayF5:It.getCSSVar("--color-gray-f5"),colorGrayFF:It.getCSSVar("--color-gray-ff"),fontLineHeight:It.getCSSVar("--font-line-height"),fontSize32:It.getCSSVar("--font-size-32"),fontSize24:It.getCSSVar("--font-size-24"),fontSize20:It.getCSSVar("--font-size-20"),fontSize18:It.getCSSVar("--font-size-18"),fontSize16:It.getCSSVar("--font-size-16"),fontSize14:It.getCSSVar("--font-size-14"),fontSize12:It.getCSSVar("--font-size-12"),fontSize11:It.getCSSVar("--font-size-11"),gap4:It.getCSSVar("--gap-4"),gap8:It.getCSSVar("--gap-8"),gap12:It.getCSSVar("--gap-12"),gap16:It.getCSSVar("--gap-16"),gap20:It.getCSSVar("--gap-20"),gap40:It.getCSSVar("--gap-40"),height44:It.getCSSVar("--height-44"),height32:It.getCSSVar("--height-32"),borderRadius:It.getCSSVar("--border-radius")},Nc=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},Yd=function(e,t=1){const n=e>>16&255,i=e>>8&255,r=e&255,s=t<0?0:t>1?1:t;return s===1?"rgb("+n+","+i+","+r+")":"rgba("+n+","+i+","+r+","+s+")"},Xd=function(e,t=1){const n=Nc(e);return Yd(n,t)};function Xi(e,t){let n=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16);n==0&&(n=32),i==0&&(i=32),r==0&&(r=32),n=n*(100+t)/100,i=i*(100+t)/100,r=r*(100+t)/100,n=n<255?n:255,i=i<255?i:255,r=r<255?r:255,n=Math.round(n),i=Math.round(i),r=Math.round(r);const s=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),o=i.toString(16).length==1?"0"+i.toString(16):i.toString(16),l=r.toString(16).length==1?"0"+r.toString(16):r.toString(16);return"#"+s+o+l}(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const n=new Date().getTime(),i=Math.max(0,16-(n-e)),r=window.setTimeout(function(){t(n+i)},i);return e=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const Kd=e=>{let t=window.requestAnimationFrame(function n(i){t=window.requestAnimationFrame(n),e(i,t)});return()=>window.cancelAnimationFrame(t)};class Zd{id=0;renders={};cancelFn;constructor(){}get length(){let t=0;for(let n in this.renders)t++;return t}register(t){const n=this.id++;this.renders[n]=t,this.run()}run(){this.cancelFn||(this.cancelFn=Kd((t,n)=>{const i=[];for(let r in this.renders)this.renders[r](t)===!1&&i.push(parseInt(r));for(let r of i)delete this.renders[r];this.length||this.stop()}))}stop(){this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}}const Oc=new Zd;let Ki;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ki=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ki=self.performance.now.bind(self.performance):Date.now!==void 0?Ki=Date.now:Ki=function(){return new Date().getTime()};const ai=Ki;class Zi{static _nextId=0;static nextId(){return Zi._nextId++}}const Br={Linear:{None:function(e){return e}},Ease:{In:function(e){return Math.pow(e,1.7)}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*((1.70158+1)*e-1.70158)},Out:function(e){return e===0?0:--e*e*((1.70158+1)*e+1.70158)+1},InOut:function(e){const t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Br.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Br.Bounce.In(e*2)*.5:Br.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(t){return t**e},Out:function(t){return 1-(1-t)**e},InOut:function(t){return t<.5?(t*2)**e/2:(1-(2-t*2)**e)/2+.5}}},random:function(e){return Math.random()},createStep:function(e){return function(t){return Math.floor(t*e)/e}},createNoisyEasing:function(e,t=.1){const n=1-t;return function(i){return t*Math.random()+n*e(i)}}},Co=Br,Qi={Utils:{Linear:function(e,t,n){return(t-e)*n+e},Factorial:function(){const e=[1];return function(t){let n=1;if(e[t])return e[t];for(let i=t;i>1;i--)n*=i;return e[t]=n,n}}(),Bernstein:function(e,t){const n=Qi.Utils.Factorial;return n(e)/n(t)/n(e-t)},CatmullRom:function(e,t,n,i,r){const s=(n-e)*.5,o=(i-t)*.5,l=r*r,u=r*l;return(2*t-2*n+s+o)*u+(-3*t+3*n-2*s-o)*l+s*r+t}},Linear:function(e,t){const n=e.length-1,i=n*t,r=Math.floor(i),s=Qi.Utils.Linear;return t<0?s(e[0],e[1],i):t>1?s(e[n],e[n-1],n-i):s(e[r],e[r+1>n?n:r+1],i-r)},Bezier:function(e,t){let n=0;const i=e.length-1,r=Math.pow,s=Qi.Utils.Bernstein;for(let o=0;o<=i;o++)n+=r(1-t,i-o)*r(t,o)*e[o]*s(i,o);return n},CatmullRom:function(e,t){const n=e.length-1;let i=n*t,r=Math.floor(i);const s=Qi.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(r=Math.floor(i=n*(1+t))),s(e[(r-1+n)%n],e[r],e[(r+1)%n],e[(r+2)%n],i-r)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-i)-e[0]):t>1?e[n]-(s(e[n],e[n],e[n-1],e[n-1],i-n)-e[n]):s(e[r?r-1:0],e[r],e[n<r+1?n:r+1],e[n<r+2?n:r+2],i-r)}},So=Qi;class Mc{_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=ai(),n=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<i.length;r++){const s=this._tweens[i[r]],o=!n;s&&s.update(t,o)===!1&&!n&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const De=new Mc;class Qd{constructor(t,n=De){this._object=t,this._group=n}_id=Zi.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=Co.Linear.None;_interpolationFunction=So.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,n){return this._valuesEnd=Object.create(t),n!==void 0&&(this._durationTime=n),this}duration(t=1e3){return this._durationTime=t,this}start(t=ai()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}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,n,i,r){for(const s in i){const o=t[s],l=Array.isArray(o),u=l?"array":typeof o,v=!l&&Array.isArray(i[s]);if(!(u==="undefined"||u==="function")){if(v){let y=i[s];if(y.length===0)continue;y=y.map(this._handleRelativeValue.bind(this,o)),i[s]=[o].concat(y)}if((u==="object"||l)&&o&&!v){n[s]=l?[]:{};for(const y in o)n[s][y]=o[y];r[s]=l?[]:{},this._setupProperties(o,n[s],i[s],r[s])}else typeof n[s]>"u"&&(n[s]=o),l||(n[s]*=1),v?r[s]=i[s].slice().reverse():r[s]=n[s]||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=ai()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=ai()){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,n=this._chainedTweens.length;t<n;t++)this._chainedTweens[t].stop();return this}group(t=De){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=Co.Linear.None){return this._easingFunction=t,this}interpolation(t=So.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=ai(),n=!0){if(this._isPaused)return!0;let i,r;const s=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>s)return!1;n&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(t-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];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 l=0,u=this._chainedTweens.length;l<u;l++)this._chainedTweens[l].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,n,i,r){for(const s in i){if(n[s]===void 0)continue;const o=n[s]||0;let l=i[s];const u=Array.isArray(t[s]),v=Array.isArray(l);!u&&v?t[s]=this._interpolationFunction(l,r):typeof l=="object"&&l?this._updateProperties(t[s],o,l,r):(l=this._handleRelativeValue(o,l),typeof l=="number"&&(t[s]=o+(l-o)*r))}}_handleRelativeValue(t,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?t+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(t){const n=this._valuesStartRepeat[t],i=this._valuesEnd[t];typeof i=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(i):this._valuesStartRepeat[t]=i,this._valuesEnd[t]=n}}const Jd=Qd,tp=Zi.nextId,ep=De.getAll.bind(De),np=De.removeAll.bind(De),ip=De.add.bind(De),rp=De.remove.bind(De),sp=De.update.bind(De),xt={now:ai,Sequence:Zi,Easing:Co,Interpolation:So,Group:Mc,Tween:Jd,nextId:tp,getAll:ep,removeAll:np,add:ip,remove:rp,update:sp};function Ac(e){switch(e){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 op={attributeName:["display"],values:[["block","block"]]},ke={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Ji{currentAnimateName;objects=[];actions=[];constructor(){}static toTween(t,n,i){const r=i?.onUpdate??(()=>{}),s=i?.duration??1e3,o=i?.delay??0,l=i?.easeFunction??xt.Easing.Linear.None,u=i?.repeat??0,v=i?.yoyo??!1,y=new xt.Tween(t).to(n,s).delay(o).easing(l).repeat(u).yoyo(v).onUpdate(function(g,m){r(g,m)});return i?.interpolationFunction&&y.interpolation(i.interpolationFunction),{tween:y,startAuto:()=>{y.start(),Oc.register(()=>y.update())}}}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(n=>{const i=qd(n);this.objects.push({width:parseFloat(i.css("width")),height:parseFloat(i.css("height")),dom:i,el:n,originCSSObject:i.css()})}),this}toCSS(t,...n){if(!this.hasObjects())return;switch(this.currentAnimateName=t,this[t](...n),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),t){default:this.objects.forEach((s,o)=>{s.dom?.css({position:"absolute","z-index":String(1e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let i=0;const r=()=>{this.actions.forEach((s,o)=>{const l=this.objects[s.objectIndex];let u=[],v=[];Array.isArray(s.attributeName)?(u=s.attributeName,v=s.values):s.attributeName&&(u=[s.attributeName],v=[s.values]);const y=s.keyTimes.length,g=$r(l.dom?.css("transform")??"");let m=s.begin;s.keyTimes.forEach((x,I)=>{const k={_matrix:g};u.forEach((A,$)=>{const P=v[$][s.direction=="reverse"?y-I-1:I];this._transformAttributeToCSSObjectUseMatrix(A,P,k)}),I==0?l.dom?.css(Object.assign(k,{transition:""})):(setTimeout(()=>{l.dom?.css(Object.assign(k,{transition:`all ${s.realKeyTimes[I]}ms cubic-bezier(${s.keySplines[I-1].join(",")})`}))},m),m+=s.realKeyTimes[I])}),setTimeout(()=>{s.fill==="remove"&&l.dom?.css(l.originCSSObject??{}),o==this.actions.length-1&&(typeof s.repeatCount=="number"&&++i<s.repeatCount||s.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&r()})},s.begin+s.dur)})};r()}_transformAttributeToCSSObjectUseMatrix(t,n,i={}){switch(t){case"translateTo":i._matrix.translateTo(n[0]??0,n[1]??0);break;case"translate":i._matrix.translate(n[0]??0,n[1]??0);break;case"rotate":i._matrix.rotate(n??0);break;case"rotateXTo":i._matrix.rotateXTo(n??0);break;case"rotateYTo":i._matrix.rotateYTo(n??0);break;case"scaleTo":typeof n=="number"?i._matrix.scaleTo(n??1):i._matrix.scaleTo(n[0]??1,n[1]??1);break;case"scale":typeof n=="number"?i._matrix.scale(n??1):i._matrix.scale(n[0]??1,n[1]??1);break;case"scaleX":i._matrix.scale(n??1,1);break;case"scaleY":i._matrix.scale(1,n??1);break;default:Object.assign(i,{[t]:`${n??""}`});break}return Object.assign(i,{transform:i._matrix.toString()}),i}_addAction(t,n=!1){return this.actions=n?[]:this.actions,Array.isArray(t)||(t=[t]),t.forEach(i=>{this.actions.push(Object.assign(i,{realKeyTimes:i.keyTimes.map(r=>i.dur*r)}))}),this}_addAnimate(t=op,n=ke,i=0,r=!1){const s=n.keyTimes??[0,1],o=[];return s.forEach((l,u)=>{u>0&&o.push(Ac(n.easeName??"linear"))}),this._addAction({objectIndex:i,attributeName:t.attributeName,values:t.values,begin:n.begin??0,dur:n.dur??300,keyTimes:s,keySplines:o,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze"},r),this}_predefinedAnimate(t,n,i,r,s=ke,o=this.objects.length-1){let l=!0,u=!1,v=!1,y=!1;const g=this.objects.length;o=(o+g)%g;const m=(o-1+g)%g,x=(o+1+g)%g,I=this.objects[o],k=this.objects[m],A=this.objects[x];if(k&&m!==o){const $=t(k);$&&(this._addAnimate($,s,m,l),l=!1,u=!0)}if(I){const $=n(I);$&&(this._addAnimate($,s,o,l),l=!1,v=!0)}if(A&&x!==o){const $=i(A);$&&(this._addAnimate($,s,x,l),l=!1,y=!0)}this.objects.forEach(($,P)=>{if(!(P==m&&u||P==o&&v||P==x&&y)){const O=r($);O&&(this._addAnimate(O,s,P,l),l=!1)}})}flip(t=ke,n=this.objects.length-1){const i=n-1,r=this.objects[i],s=this.objects[n],o=$r(s.dom?.css("transform")??""),l=o.clone();r.dom?.show(),r.dom?.css("opacity","1");const u=r.el?.getBoundingClientRect();r.dom?.css("opacity","0"),s.dom?.show(),s.dom?.css("opacity","1");const v=s.el?.getBoundingClientRect(),y=r.dom?.css("background-color"),g=s.dom?.css("background-color");l.translate((u?.left??0)-(v?.left??0),(u?.top??0)-(v?.top??0)),l.scale((u?.width??1)/(v?.width??1),(u?.height??1)/(v?.height??1));const m={transform:l.toString(),transition:""};y&&Object.assign(m,{"background-color":y}),s.dom?.css(m);const x={transform:o.toString(),transition:`all ${t.dur}ms cubic-bezier(${Ac(t.easeName??"linear").join(",")})`};g&&Object.assign(x,{"background-color":g}),setTimeout(()=>{s.dom?.css(x)},t.begin)}slideLeft(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["translateTo"],values:[[[0,0],[-i.width,0]]]}),i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[i.width,0],[0,0]]]}),i=>{},i=>({attributeName:["translateTo"],values:[[[-i.width,0],[-i.width,0]]]}),t,n)}slideRight(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>{},i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-i.width,0],[0,0]]]}),i=>({attributeName:["translateTo"],values:[[[0,0],[i.width,0]]]}),i=>({attributeName:["translateTo"],values:[[[i.width,0],[i.width,0]]]}),t,n)}slideDown(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["translateTo"],values:[[[0,0],[0,i.height]]]}),i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-i.height],[0,0]]]}),i=>{},i=>({attributeName:["translateTo"],values:[[[0,i.height],[0,i.height]]]}),t,n)}slideUp(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["translateTo"],values:[[[0,0],[0,-i.height]]]}),i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,i.height],[0,0]]]}),i=>{},i=>({attributeName:["translateTo"],values:[[[0,-i.height],[0,-i.height]]]}),t,n)}flipLeft(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipRight(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipDown(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipUp(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}popIn(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>{},i=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}popOut(t=ke,n=this.objects.length-1){this._predefinedAnimate(i=>{},i=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}rotate(t=ke,n=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const i=t.degree??360;this._predefinedAnimate(r=>{},r=>({attributeName:["opacity","rotate"],values:[[1,1],[0,i]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}}class ap{map;constructor(t,n=120.619585,i=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(n,i),r)}}const lp=Ut({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("span",{class:"icon",style:Ot(["color: "+n.color])},[Kt(ae(jf),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),z0="",Yt=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},Wn=Yt(lp,[["__scopeId","data-v-8789b4ce"]]),cp=Ut({customOptions:{},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:{}},emits:["ceClick","click"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(),o=vt(i.borderColor),l=vt(i.bgColor),u=vt(i.fontColor),v=vt(i.borderColor),y=vt(i.bgColor);function g(P){switch(P){case"outline":o.value=i.borderColor??Mt.colorPrimary,l.value=i.bgColor??Mt.colorGrayFF,u.value=i.fontColor??Mt.colorPrimary,v.value=o.value,y.value=l.value;break;default:o.value=i.borderColor??Mt.colorPrimary,l.value=i.bgColor??Mt.colorPrimary,u.value=i.fontColor??Mt.colorGrayFF,v.value=o.value,y.value=l.value;break}}te(()=>i.stylePattern,()=>{g(i.stylePattern)},{immediate:!0});const m=vt(i.isDisabled?"0.6":"1"),x=vt(i.isDisabled?"not-allowed":"pointer");let I=!1;const k=()=>{i.isDisabled||(I=!0,o.value=Xi(v.value,10),l.value=Xi(y.value,10))},A=()=>{i.isDisabled||(I=!1,o.value=v.value,l.value=y.value)},$=()=>{i.isDisabled||(o.value=Xi(v.value,-10),l.value=Xi(y.value,-10),setTimeout(()=>{I?k():A()},150),r("ceClick"),r("click"))};return t({wrapper:s}),(P,O)=>(dt(),_t("div",{ref_key:"wrapper",ref:s,class:"button",style:Ot([`opacity: ${m.value}`,`border: 1px solid ${o.value}`,`background-color: ${l.value}`,`color: ${u.value}`,`border-radius: ${i.borderRadius}`,`height: ${i.height}`,`line-height: ${i.height}`,`font-size: ${i.fontSize}`,`cursor: ${x.value}`]),onMouseover:k,onMouseleave:A,onClick:$},[B("label",{class:"label truncate",style:Ot({padding:"0 "+P.padding,cursor:x.value})},[ie(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?(dt(),pe(Wn,{key:0,icon:P.icon,color:u.value,style:Ot({marginRight:ae(Mt).gap4,cursor:x.value})},null,8,["icon","color","style"])):he("",!0),B("span",{style:Ot({cursor:x.value})},de(P.label),5),P.icon&&P.iconPosition==="right"?(dt(),pe(Wn,{key:1,icon:P.icon,color:u.value,style:Ot({marginLeft:ae(Mt).gap4,cursor:x.value})},null,8,["icon","color","style"])):he("",!0)],!0)],4)],36))}}),G0="",Oe=Yt(cp,[["__scopeId","data-v-f3d3c7ec"]]),j0="",up={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},hp=Ut({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Xd(Mt.colorGray0,.25)},isGlobal:{type:Boolean,default:!0}},setup(e,{expose:t,emit:n}){const i=e;function r(s){s?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return te(()=>i.visible,()=>{r(i.visible)},{immediate:!0}),t({}),(s,o)=>i.visible?(dt(),_t("div",{key:0,class:"overlay",style:Ot([{"z-index":"2000",inset:"0"},[`position: ${i.isGlobal?"fixed":"absolute"};`,"background-color: "+i.bgColor]])},[B("div",{class:"content-fixed",style:Ot([{"z-index":"2001",inset:"0","overflow-y":"auto"},[`position: ${i.isGlobal?"fixed":"absolute"};`]])},[B("div",up,[ie(s.$slots,"default",{},void 0,!0)])],4)],4)):he("",!0)}}),B0="",tr=Yt(hp,[["__scopeId","data-v-f08aab15"]]),fp=Ut({customOptions:{Overlay:tr},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0}},emits:["open","close"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt();let o;const l=en({}),u=en({});te(()=>i.directionFrom,()=>{switch(i.directionFrom){case"absolute":o="",l.display="block";break;case"top":o="slideDown",l.display="block",u.width="100%",u.top="0",u.left="0";break;case"left":o="slideRight",l.display="block",u.height="100%",u.top="0",u.left="0";break;case"right":o="slideLeft",l.display="block",u.height="100%",u.top="0",u.right="0";break;case"bottom":o="slideUp",l.display="block",u.width="100%",u.bottom="0",u.left="0";break;case"center":default:o="popIn",l.display="flex",l.justifyContent="center",l.alignItems="center";break}},{immediate:!0});const v=new Ji,y=(k=!0)=>{o&&(k?te(s,()=>{s.value&&(v.fromDOM(s.value),v.toCSS(o,{easeName:"ease",dur:i.openDurTime}))},{once:!0}):v.toCSS(o,{easeName:"ease",dur:i.closeDurTime,direction:"reverse"}))},g=vt(!1);function m(k){k.target.contains(s.value)&&i.closeWhenClickOverlay&&I()}function x(){g.value=!0,y(!0),r("open")}function I(){y(!1),r("close"),setTimeout(()=>{g.value=!1},i.closeDurTime)}return t({open:x,close:I}),(k,A)=>(dt(),pe(tr,{visible:g.value,isGlobal:i.isGlobal},{default:ye(()=>[B("div",{class:"pop-parent",style:Ot([{position:"relative",width:"100%",height:"100%"},l]),onClick:m},[B("div",{ref_key:"pop",ref:s,class:"pop",style:Ot([{position:"absolute"},u])},[ie(k.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible","isGlobal"]))}}),H0="",He=Yt(fp,[["__scopeId","data-v-88fef783"]]),dp={id:"page"},pp={id:"main"},mp={style:{height:"100%","background-color":"#ffffff"}},gp={style:{height:"100%","background-color":"#ffffff"}},vp=Ut({customOptions:{Pop:He},inheritAttrs:!0,__name:"MobileLayout",props:{designWidth:{default:750}},setup(e,{expose:t,emit:n}){cd(e.designWidth);const r=vt(),s=vt(),o=vt(),l=vt();return t({openLeft:()=>{r.value?.open()},closeLeft:()=>{r.value?.close()},openRight:()=>{s.value?.open()},closeRight:()=>{s.value?.close()}}),(m,x)=>(dt(),_t("div",dp,[B("header",{id:"header",ref_key:"refHeader",ref:o},[ie(m.$slots,"header",{},void 0,!0)],512),B("div",pp,[B("div",null,[ie(m.$slots,"main",{},void 0,!0)])]),B("footer",{id:"footer",ref_key:"refFooter",ref:l},[ie(m.$slots,"footer",{},void 0,!0)],512),Kt(He,{ref_key:"popLeftRef",ref:r,"direction-from":"left",isGlobal:!1},{default:ye(()=>[B("div",mp,[ie(m.$slots,"left",{},void 0,!0)])]),_:3},512),Kt(He,{ref_key:"popRightRef",ref:s,"direction-from":"right",isGlobal:!1},{default:ye(()=>[B("div",gp,[ie(m.$slots,"right",{},void 0,!0)])]),_:3},512)]))}}),U0="",yp=Yt(vp,[["__scopeId","data-v-28420fc3"]]),_p={class:"dialog-wrap"},xp={class:"dialog"},bp={key:0,class:"title"},wp={key:0,class:"title-inner truncate"},Ep={class:"custom-content"},Cp={key:1,class:"btns"},Sp=Ut({customOptions:{Overlay:tr,Pop:He,Icon:Wn,Button:Oe},inheritAttrs:!0,__name:"Dialog",props:{title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close","cancel","confirm"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt();function o(){s.value.open(),r("open")}function l(){s.value.close(),r("close")}function u(){l(),r("cancel")}function v(){l(),r("confirm")}return t({open:o,close:l}),(y,g)=>(dt(),pe(He,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:ye(()=>[B("div",_p,[B("div",xp,[y.showTitle||y.showClose?(dt(),_t("div",bp,[y.showTitle?(dt(),_t("div",wp,de(y.title),1)):he("",!0),y.showClose?(dt(),pe(Wn,{key:1,class:"close",icon:"ic:baseline-close",color:ae(Mt).colorGrayCC,onClick:l},null,8,["color"])):he("",!0)])):he("",!0),B("div",Ep,[ie(y.$slots,"default",{},()=>[rn(de(y.content),1)],!0)]),y.showCancel||y.showConfirm?(dt(),_t("div",Cp,[y.showCancel?(dt(),pe(Oe,{key:0,onClick:u,class:"btn",bgColor:ae(Mt).colorGrayE6,borderColor:ae(Mt).colorGrayE6,fontColor:ae(Mt).colorGray3,borderRadius:"0"},{default:ye(()=>[rn(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):he("",!0),y.showConfirm?(dt(),pe(Oe,{key:1,onClick:v,class:"btn",borderRadius:"0"},{default:ye(()=>[rn(" 确定 ")]),_:1})):he("",!0)])):he("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),W0="",ko=Yt(Sp,[["__scopeId","data-v-002ae342"]]),kp=Ut({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{viewBox:"25 25 50 50",style:Ot(["width: "+t.width])},[B("circle",{cx:"50",cy:"50",r:"20",style:Ot(["stroke: "+t.color])},null,4)],4))}}),q0="",Lc=Yt(kp,[["__scopeId","data-v-29f8de14"]]),Tp={class:"loading"},Pp={class:"icon"},Ip={key:0,class:"content"},Np=Ut({customOptions:{Overlay:tr,Pop:He,Dialog:ko,SVGLoading:Lc},inheritAttrs:!0,__name:"DialogLoading",props:{content:{},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt();function o(){s.value.open(),r("open")}function l(){s.value.close(),r("close")}return t({open:o,close:l}),(u,v)=>(dt(),pe(ko,{ref_key:"dialogRef",ref:s,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:ye(()=>[B("div",Tp,[B("div",Pp,[ie(u.$slots,"default",{},()=>[Kt(Lc)],!0)]),u.content?(dt(),_t("div",Ip,de(u.content),1)):he("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),Y0="",Op=Yt(Np,[["__scopeId","data-v-d2aea832"]]),Mp=["onClick","value"],Ap=Ut({customOptions:{Icon:Wn,Button:Oe},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=function(){return{"--select-option-bg-color":Mt.colorGrayFF,"--select-option-bg-color-hover":Mt.colorGrayF5}},s=vt(!1),o=vt(n.initIndex);te(o,function(){i("change",n.options[o.value])});function l(){s.value=!s.value}function u(v){o.value=v,s.value=!1}return(v,y)=>(dt(),_t("div",{class:"wrap",style:Ot(["font-size:"+v.fontSize])},[B("div",{onClick:l},[ie(v.$slots,"button",{selectedIndex:o.value},()=>[Kt(Oe,{icon:"carbon:chevron-sort",iconPosition:"right",label:v.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),Ns(B("div",{class:"options",style:Ot({border:"1px solid "+ae(Mt).colorGrayCC})},[(dt(!0),_t(xe,null,Cn(v.options,(g,m)=>(dt(),_t("div",{onClick:x=>u(m),class:"option",key:m,value:m,style:Ot({borderTop:(m==0?"0":"1px")+" solid "+ae(Mt).colorGrayCC})},[B("div",{class:"option-inner",style:r},[ie(v.$slots,"default",{item:g,index:m},()=>[B("span",null,de(g),1),m==o.value?(dt(),pe(Wn,{key:0,icon:"mingcute:check-fill",class:"icon"})):he("",!0)],!0)])],12,Mp))),128))],4),[[Cr,s.value]])],4))}}),X0="",Lp=Yt(Ap,[["__scopeId","data-v-fa343805"]]),Rp=Ut({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Mt.colorPrimary},colorBgOn:{default:Mt.colorGrayEF},colorBgOff:{default:Mt.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const n=e;function i(x){const I=Bf("number",x);return{number:I.fullMatch?parseFloat(I.fullMatch):0,suffix:I.fullMatch?x.substring(I.matchIndex+I.fullMatch.length+1):""}}const r=i(n.width),s=i(n.height),o=i(n.padding),l=s.number-o.number*2+s.suffix,u=n.padding,v=r.number-i(u).number-i(l).number+r.suffix,y=t,g=vt(n.init);te(g,function(){y("change",g.value)});function m(){g.value=!g.value}return(x,I)=>(dt(),_t("div",{class:"switch",onClick:m,style:Ot(["width: "+n.width,"height: "+n.height,"background-color: "+(g.value?n.colorBgOn:n.colorBgOff)])},[B("span",{class:"round",style:Ot(["width: "+l,"height: "+l,"background-color: "+(g.value?n.colorPrimary:ae(Xi)(n.colorPrimary,30)),"transform: translate("+(g.value?v:ae(u))+", 0)"])},null,4)],4))}}),K0="",Dp=Yt(Rp,[["__scopeId","data-v-2f656d49"]]),Fp={class:"wrap"},Vp=["onClick"],$p=["stroke","fill"],zp=["stroke","fill"],Gp=["stroke"],jp=Ut({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Mt.colorPrimary},colorBg:{default:Mt.colorGrayFF},colorBorder:{default:Mt.colorGrayCC},fontSize:{default:Mt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=vt(n.colorPath),s=vt(n.colorBg),o=vt(n.colorBorder);n.isFullfilled&&(r.value=n.colorBg,s.value=n.colorPath,o.value=n.colorPath);let l=vt(n.initIndexs??0);te(l,function(){i("change",n.options[l.value])});const u=function(v){l.value=v};return(v,y)=>(dt(),_t("div",Fp,[(dt(!0),_t(xe,null,Cn(v.options,(g,m)=>(dt(),_t("span",{class:"item",key:m,onClick:x=>u(m),style:Ot(["margin-left:"+(m>0?n.itemPadding:0)])},[ie(v.$slots,"default",{label:g,index:m},()=>[(dt(),_t("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Ot(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?he("",!0):(dt(),_t("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,$p)),n.isRounded?(dt(),_t("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,zp)):he("",!0),Ns(B("path",{d:"M7 13l3 3 7-7",stroke:r.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Gp),[[Cr,ae(l)===m]])],4)),B("span",{style:Ot(["font-size:"+n.fontSize])},de(g),5)],!0)],12,Vp))),128))]))}}),Z0="",Bp=Yt(jp,[["__scopeId","data-v-18ca2a3d"]]),Hp={class:"wrap"},Up=["onClick"],Wp=["stroke","fill"],qp=["stroke","fill"],Yp=["stroke"],Xp=Ut({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Mt.colorPrimary},colorBg:{default:Mt.colorGrayFF},colorBorder:{default:Mt.colorGrayCC},fontSize:{default:Mt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=vt(n.colorPath),s=vt(n.colorBg),o=vt(n.colorBorder);n.isFullfilled&&(r.value=n.colorBg,s.value=n.colorPath,o.value=n.colorPath);let l=en(n.initIndexs??[0]);te(l,function(){i("change",l.map(v=>n.options[v]))});const u=function(v){const y=l.findIndex(g=>g===v);y>=0?l.splice(y,1):l.push(v)};return(v,y)=>(dt(),_t("div",Hp,[(dt(!0),_t(xe,null,Cn(v.options,(g,m)=>(dt(),_t("span",{class:"item",key:m,onClick:x=>u(m),style:Ot(["margin-left:"+(m>0?n.itemPadding:0)])},[ie(v.$slots,"default",{label:g,index:m},()=>[(dt(),_t("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Ot(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?he("",!0):(dt(),_t("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,Wp)),n.isRounded?(dt(),_t("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,qp)):he("",!0),Ns(B("path",{d:"M7 13l3 3 7-7",stroke:r.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Yp),[[Cr,ae(l).findIndex(x=>x===m)>=0]])],4)),B("span",{style:Ot(["font-size:"+n.fontSize])},de(g),5)],!0)],12,Up))),128))]))}}),Q0="",Kp=Yt(Xp,[["__scopeId","data-v-2616b69e"]]),Zp=(e=>(Ps("data-v-d02782ac"),e=e(),Is(),e))(()=>B("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Qp=Ut({customOptions:{Pop:He,Button:Oe},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(e){const t=e,n=vt(),i=vt(),r=vt(),s=en({left:"0",top:"0"});te(i,()=>{o()}),te(r,()=>{o()});function o(){if(!i.value||!r.value)return;const u=nc(),v=i.value.getBoundingClientRect(),y=r.value.getBoundingClientRect(),g=y.width,m=y.height;let x=v.x+v.width+t.gap,I=v.y;x=Math.max(t.gap,Math.min(x,u.width-g-t.gap)),I=Math.max(t.gap,Math.min(I,u.height-m-t.gap)),s.left=`${x}px`,s.top=`${I}px`}function l(){n.value.open()}return(u,v)=>(dt(),_t(xe,null,[B("div",{ref_key:"popoverButtonRef",ref:i,style:{display:"inline-block"},onClick:l},[ie(u.$slots,"button",{},()=>[Kt(Oe,null,{default:ye(()=>[rn("popover-default-button")]),_:1})],!0)],512),Kt(He,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:t.isGlobal},{default:ye(()=>[B("div",{ref_key:"popoverPanelRef",ref:r,style:Ot([{display:"inline-block",position:"absolute"},s])},[ie(u.$slots,"panel",{},()=>[Zp],!0)],4)]),_:3},8,["isGlobal"])],64))}}),tg="",To=Yt(Qp,[["__scopeId","data-v-d02782ac"]]),li=(e,t=0,n=1)=>e>n?n:e<t?t:e,le=(e,t=0,n=Math.pow(10,t))=>Math.round(n*e)/n,Jp=e=>im(Po(e)),Po=e=>(e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?le(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?le(parseInt(e.substring(6,8),16)/255,2):1}),tm=e=>nm(em(e)),Rc=({h:e,s:t,v:n,a:i})=>{const r=(200-t)*n/100;return{h:le(e),s:le(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:le(r/2),a:le(i,2)}},Io=e=>{const{h:t,s:n,l:i}=Rc(e);return`hsl(${t}, ${n}%, ${i}%)`},No=e=>{const{h:t,s:n,l:i,a:r}=Rc(e);return`hsla(${t}, ${n}%, ${i}%, ${r})`},em=({h:e,s:t,v:n,a:i})=>{e=e/360*6,t=t/100,n=n/100;const r=Math.floor(e),s=n*(1-t),o=n*(1-(e-r)*t),l=n*(1-(1-e+r)*t),u=r%6;return{r:le([n,o,s,s,l,n][u]*255),g:le([l,n,n,o,s,s][u]*255),b:le([s,s,l,n,n,o][u]*255),a:le(i,2)}},Hr=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},nm=({r:e,g:t,b:n,a:i})=>{const r=i<1?Hr(le(i*255)):"";return"#"+Hr(e)+Hr(t)+Hr(n)+r},im=({r:e,g:t,b:n,a:i})=>{const r=Math.max(e,t,n),s=r-Math.min(e,t,n),o=s?r===e?(t-n)/s:r===t?2+(n-e)/s:4+(e-t)/s:0;return{h:le(60*(o<0?o+6:o)),s:le(r?s/r*100:0),v:le(r/255*100),a:i}},Dc=(e,t)=>{if(e===t)return!0;for(const n in e)if(e[n]!==t[n])return!1;return!0},rm=(e,t)=>e.toLowerCase()===t.toLowerCase()?!0:Dc(Po(e),Po(t)),Fc={},Vc=e=>{let t=Fc[e];return t||(t=document.createElement("template"),t.innerHTML=e,Fc[e]=t),t},Oo=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};let ci=!1;const Mo=e=>"touches"in e,sm=e=>ci&&!Mo(e)?!1:(ci||(ci=Mo(e)),!0),$c=(e,t)=>{const n=Mo(t)?t.touches[0]:t,i=e.el.getBoundingClientRect();Oo(e.el,"move",e.getMove({x:li((n.pageX-(i.left+window.pageXOffset))/i.width),y:li((n.pageY-(i.top+window.pageYOffset))/i.height)}))},om=(e,t)=>{const n=t.keyCode;n>40||e.xy&&n<37||n<33||(t.preventDefault(),Oo(e.el,"move",e.getMove({x:n===39?.01:n===37?-.01:n===34?.05:n===33?-.05:n===35?1:n===36?-1:0,y:n===40?.01:n===38?-.01:0},!0)))};class Ao{constructor(t,n,i,r){const s=Vc(`<div role="slider" tabindex="0" part="${n}" ${i}><div part="${n}-pointer"></div></div>`);t.appendChild(s.content.cloneNode(!0));const o=t.querySelector(`[part=${n}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=r,this.nodes=[o.firstChild,o]}set dragging(t){const n=t?document.addEventListener:document.removeEventListener;n(ci?"touchmove":"mousemove",this),n(ci?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!sm(t)||!ci&&t.button!=0)return;this.el.focus(),$c(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),$c(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":om(this,t);break}}style(t){t.forEach((n,i)=>{for(const r in n)this.nodes[i].style.setProperty(r,n[r])})}}class am extends Ao{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:Io({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${le(t)}`)}getMove(t,n){return{h:n?li(this.h+t.x*360,0,360):360*t.x}}}class lm extends Ao{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Io(t)},{"background-color":Io({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${le(t.s)}%, Brightness ${le(t.v)}%`)}getMove(t,n){return{s:n?li(this.hsva.s+t.x*100,0,100):t.x*100,v:n?li(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const cm=':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)}',um="[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}",hm="[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}",Ur=Symbol("same"),Lo=Symbol("color"),zc=Symbol("hsva"),Ro=Symbol("update"),Gc=Symbol("parts"),Wr=Symbol("css"),qr=Symbol("sliders");let fm=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Wr](){return[cm,um,hm]}get[qr](){return[lm,am]}get color(){return this[Lo]}set color(t){if(!this[Ur](t)){const n=this.colorModel.toHsva(t);this[Ro](n),this[Lo]=t}}constructor(){super();const t=Vc(`<style>${this[Wr].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(t.content.cloneNode(!0)),n.addEventListener("move",this),this[Gc]=this[qr].map(i=>new i(n))}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,n,i){const r=this.colorModel.fromAttr(i);this[Ur](r)||(this.color=r)}handleEvent(t){const n=this[zc],i={...n,...t.detail};this[Ro](i);let r;!Dc(i,n)&&!this[Ur](r=this.colorModel.fromHsva(i))&&(this[Lo]=r,Oo(this,"color-changed",{value:r}))}[Ur](t){return this.color&&this.colorModel.equal(t,this.color)}[Ro](t){this[zc]=t,this[Gc].forEach(n=>n.update(t))}};class dm extends Ao{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const n=No({...t,a:0}),i=No({...t,a:1}),r=t.a*100;this.style([{left:`${r}%`,color:No(t)},{"--gradient":`linear-gradient(90deg, ${n}, ${i}`}]);const s=le(r);this.el.setAttribute("aria-valuenow",`${s}`),this.el.setAttribute("aria-valuetext",`${s}%`)}getMove(t,n){return{a:n?li(this.hsva.a+t.x):t.x}}}const pm=`[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 mm extends fm{get[Wr](){return[...super[Wr],pm]}get[qr](){return[...super[qr],dm]}}const gm={defaultColor:"#0001",toHsva:Jp,fromHsva:tm,equal:rm,fromAttr:e=>e};class vm extends mm{get colorModel(){return gm}}class ym extends vm{}customElements.define("hex-alpha-color-picker",ym);const _m=Ut({customOptions:{Popover:To},__name:"ColorPicker",props:{color:{default:Mt.colorPrimary}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=vt(n.color);te(r,(l,u)=>{l!==u&&i("change",l)});const s=vt(),o=l=>{r.value=l.detail.value};return te(s,()=>{s.value&&(s.value.removeEventListener("color-changed",o),s.value.addEventListener("color-changed",o))}),(l,u)=>{const v=sh("hex-alpha-color-picker");return dt(),pe(To,null,{button:ye(()=>[ie(l.$slots,"default",{},()=>[B("span",{class:"button",style:Ot({backgroundColor:r.value})},null,4)],!0)]),panel:ye(()=>[Kt(v,{ref_key:"colorPickerRef",ref:s,color:r.value},null,8,["color"])]),_:3})}}}),eg="",xm=Yt(_m,[["__scopeId","data-v-ac12603f"]]),ng="",bm={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 e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",io&&this.$el.appendChild(e),e.data="about:blank",io||this.$el.appendChild(e)},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&&(!io&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},wm={class:"resize-observer",tabindex:"-1"};function Em(e,t,n,i,r,s){return dt(),_t("div",wm)}const Cm=Yt(bm,[["render",Em],["__scopeId","data-v-97c2da37"]]),Sm=()=>{const e=vt(window.innerWidth),t=vt(window.innerHeight),n=i=>{e.value=i.target.innerWidth,t.value=i.target.innerHeight};return _r(()=>window.addEventListener("resize",n)),Da(()=>window.removeEventListener("resize",n)),{width:e,height:t}},km=Ut({__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(e,{expose:t,emit:n}){const i=e,{width:r,height:s}=Sm(),o=vt(i.mapWidth??r.value+"px"),l=vt(i.mapHeight??s.value+"px");return te(r,(u,v)=>{u!=v&&!i.mapWidth&&(o.value=u+"px")}),te(s,(u,v)=>{u!=v&&!i.mapHeight&&(l.value=u+"px")}),_r(()=>{It.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${i.mapKey}`,()=>{new ap(i.mapContainerID,i.mapCenterLng,i.mapCenterLat,i.mapZoom)},u=>{console.log("error",u)})}),t({}),(u,v)=>(dt(),_t("div",Ds({class:"mapDivWrap"},u.$attrs,{style:{position:"relative",width:o.value,height:l.value}}),[ie(u.$slots,"default",{width:o.value,height:l.value})],16))}}),Tm=["fill"],Pm=["fill"],Im=Ut({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{style:Ot(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[B("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,Tm),B("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,Pm)],4))}}),ig="",Do=Yt(Im,[["__scopeId","data-v-987aed3d"]]),Fo=e=>(Ps("data-v-85491020"),e=e(),Is(),e),Nm=[Fo(()=>B("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)),Fo(()=>B("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)),Fo(()=>B("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))],Om=Ut({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{style:Ot(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Nm,4))}}),ag="",Yr=Yt(Om,[["__scopeId","data-v-85491020"]]),Mm=["data-unactive"],Am=["data-unactive"],Lm=["data-unactive"],Rm=["data-unactive"],Dm=["data-unactive"],Fm=["data-unactive"],Vm=["data-unactive"],$m=["data-unactive"],zm=["data-unactive"],Gm=["data-unactive"],jm=["data-unactive"],Bm=["data-unactive"],Hm=["data-unactive"],Um=["data-unactive"],Wm=["data-unactive"],qm=["data-unactive"],Ym=["data-unactive"],Xm=Ut({customOptions:{Pop:He,SVGCleanUp:Yr},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(),o=vt(0),l=en([]);function u(){l.length==0?o.value=0:l.length==1?o.value=1:o.value=2,l.length>=i.completePlateLength&&y()}te(()=>[...i.initPlates],()=>{Hi(l,i.initPlates),u()},{immediate:!0});const v=()=>{s.value.open(),r("open")},y=()=>{s.value.close(),r("close")},g=()=>{l.pop(),u(),r("plates",l)},m=x=>{if(x.target.dataset.unactive||"")return;let k=x.target.dataset.number;k&&(l.push(k),u(),r("plates",l))};return t({open:v,close:y}),(x,I)=>(dt(),pe(He,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:ye(()=>[B("div",{class:"popup-plate",style:Ot({paddingBottom:ae(Mt).safeAreaBottom})},[B("div",null,[B("div",{onClick:y},"关闭")]),B("div",{class:Wt(["step",o.value==0?"":"hide"])},[B("div",{class:"popitem",onClick:m,"data-number":"京"}," 京 "),B("div",{class:"popitem",onClick:m,"data-number":"沪"}," 沪 "),B("div",{class:"popitem",onClick:m,"data-number":"津"}," 津 "),B("div",{class:"popitem",onClick:m,"data-number":"渝"}," 渝 "),B("div",{class:"popitem",onClick:m,"data-number":"黑"}," 黑 "),B("div",{class:"popitem",onClick:m,"data-number":"吉"}," 吉 "),B("div",{class:"popitem",onClick:m,"data-number":"辽"}," 辽 "),B("div",{class:"popitem",onClick:m,"data-number":"蒙"}," 蒙 "),B("div",{class:"popitem",onClick:m,"data-number":"冀"}," 冀 "),B("div",{class:"popitem",onClick:m,"data-number":"新"}," 新 "),B("div",{class:"popitem",onClick:m,"data-number":"甘"}," 甘 "),B("div",{class:"popitem",onClick:m,"data-number":"青"}," 青 "),B("div",{class:"popitem",onClick:m,"data-number":"陕"}," 陕 "),B("div",{class:"popitem",onClick:m,"data-number":"宁"}," 宁 "),B("div",{class:"popitem",onClick:m,"data-number":"豫"}," 豫 "),B("div",{class:"popitem",onClick:m,"data-number":"鲁"}," 鲁 "),B("div",{class:"popitem",onClick:m,"data-number":"晋"}," 晋 "),B("div",{class:"popitem",onClick:m,"data-number":"皖"}," 皖 "),B("div",{class:"popitem",onClick:m,"data-number":"鄂"}," 鄂 "),B("div",{class:"popitem",onClick:m,"data-number":"湘"}," 湘 "),B("div",{class:"popitem",onClick:m,"data-number":"苏"}," 苏 "),B("div",{class:"popitem",onClick:m,"data-number":"川"}," 川 "),B("div",{class:"popitem",onClick:m,"data-number":"云"}," 云 "),B("div",{class:"popitem",onClick:m,"data-number":"桂"}," 桂 "),B("div",{class:"popitem",onClick:m,"data-number":"藏"}," 藏 "),B("div",{class:"popitem",onClick:m,"data-number":"浙"}," 浙 "),B("div",{class:"popitem",onClick:m,"data-number":"赣"}," 赣 "),B("div",{class:"popitem",onClick:m,"data-number":"粤"}," 粤 "),B("div",{class:"popitem",onClick:m,"data-number":"闽"}," 闽 "),B("div",{class:"popitem",onClick:m,"data-number":"琼"}," 琼 "),B("div",{class:"popitem",onClick:m,"data-number":"贵"}," 贵 "),B("div",{class:"popitem popitem-clear",onClick:g},[Kt(Yr,{width:"16px"})])],2),B("div",{class:Wt(["step",o.value!=0?"":"hide"])},[B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"1","data-unactive":o.value!=2?"unactive":""}," 1 ",10,Mm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"2","data-unactive":o.value!=2?"unactive":""}," 2 ",10,Am),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"3","data-unactive":o.value!=2?"unactive":""}," 3 ",10,Lm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"4","data-unactive":o.value!=2?"unactive":""}," 4 ",10,Rm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"5","data-unactive":o.value!=2?"unactive":""}," 5 ",10,Dm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"6","data-unactive":o.value!=2?"unactive":""}," 6 ",10,Fm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"7","data-unactive":o.value!=2?"unactive":""}," 7 ",10,Vm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"8","data-unactive":o.value!=2?"unactive":""}," 8 ",10,$m),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"9","data-unactive":o.value!=2?"unactive":""}," 9 ",10,zm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"0","data-unactive":o.value!=2?"unactive":""}," 0 ",10,Gm),B("div",{class:"popitem",onClick:m,"data-number":"A"}," A "),B("div",{class:"popitem",onClick:m,"data-number":"B"}," B "),B("div",{class:"popitem",onClick:m,"data-number":"C"}," C "),B("div",{class:"popitem",onClick:m,"data-number":"D"}," D "),B("div",{class:"popitem",onClick:m,"data-number":"E"}," E "),B("div",{class:"popitem",onClick:m,"data-number":"F"}," F "),B("div",{class:"popitem",onClick:m,"data-number":"G"}," G "),B("div",{class:"popitem",onClick:m,"data-number":"H"}," H "),B("div",{class:"popitem",onClick:m,"data-number":"J"}," J "),B("div",{class:"popitem",onClick:m,"data-number":"K"}," K "),B("div",{class:"popitem",onClick:m,"data-number":"L"}," L "),B("div",{class:"popitem",onClick:m,"data-number":"M"}," M "),B("div",{class:"popitem",onClick:m,"data-number":"N"}," N "),B("div",{class:"popitem",onClick:m,"data-number":"P"}," P "),B("div",{class:"popitem",onClick:m,"data-number":"Q"}," Q "),B("div",{class:"popitem",onClick:m,"data-number":"R"}," R "),B("div",{class:"popitem",onClick:m,"data-number":"S"}," S "),B("div",{class:"popitem",onClick:m,"data-number":"T"}," T "),B("div",{class:"popitem",onClick:m,"data-number":"U"}," U "),B("div",{class:"popitem",onClick:m,"data-number":"V"}," V "),B("div",{class:"popitem",onClick:m,"data-number":"W"}," W "),B("div",{class:"popitem",onClick:m,"data-number":"X"}," X "),B("div",{class:"popitem",onClick:m,"data-number":"Y"}," Y "),B("div",{class:"popitem",onClick:m,"data-number":"Z"}," Z "),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"港","data-unactive":o.value!=2?"unactive":""}," 港 ",10,jm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"澳","data-unactive":o.value!=2?"unactive":""}," 澳 ",10,Bm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"学","data-unactive":o.value!=2?"unactive":""}," 学 ",10,Hm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"警","data-unactive":o.value!=2?"unactive":""}," 警 ",10,Um),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"使","data-unactive":o.value!=2?"unactive":""}," 使 ",10,Wm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"领","data-unactive":o.value!=2?"unactive":""}," 领 ",10,qm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"挂","data-unactive":o.value!=2?"unactive":""}," 挂 ",10,Ym),B("div",{class:"popitem popitem-clear",onClick:g},[Kt(Yr,{width:"16px"})])],2)],4)]),_:1},512))}}),lg="",Vo=Yt(Xm,[["__scopeId","data-v-6e8b6f81"]]),Xr=e=>(Ps("data-v-50f7545d"),e=e(),Is(),e),Km=Xr(()=>B("div",{class:"title"},"车牌颜色",-1)),Zm={class:"plate-types"},Qm=["onClick"],Jm=Xr(()=>B("div",{class:"title"},"车牌号码",-1)),t0={class:"plate-numbers"},e0=Xr(()=>B("div",{class:"dot"},"·",-1)),n0=["onClick"],i0=Xr(()=>B("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),r0=Ut({customOptions:{SVGCheck:Do,PlateKeyboard:Vo},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=[{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=vt(),l=vt(0),u=en([]),v=vt(-1),y=x=>{l.value=x,v.value<=s[x].completePlateLength&&u.length<s[x].completePlateLength?(v.value=u.length,o.value.open(),r("clear")):Hi(u,u.slice(0,s[x].completePlateLength)),s[x].completePlateLength===u.length&&r("complete",s[l.value].name,u.join(""))},g=x=>{Hi(u,u.slice(0,x)),v.value=Math.min(Math.max(0,v.value),x),o.value.open(),r("clear")},m=x=>{Hi(u,x),v.value=u.length,u.length===s[l.value].completePlateLength&&r("complete",s[l.value].name,u.join(""))};return t({}),(x,I)=>(dt(),_t(xe,null,[B("div",Ds(x.$attrs,{class:"plate-mobile",style:{maxWidth:i.maxWidth}}),[Km,B("div",Zm,[(dt(),_t(xe,null,Cn(s,(k,A)=>B("div",{key:A,class:Wt(A==l.value?"checked":""),onClick:$=>y(A)},[B("div",{style:Ot(k.style)},null,4),B("div",null,de(k.name),1),B("div",null,[Kt(Do,{color:"#ffffff",width:"0.14rem"})])],10,Qm)),64))]),Jm,B("div",t0,[B("div",{onClick:I[0]||(I[0]=k=>g(0)),class:Wt(v.value==0?"current":"")},de(u[0]),3),B("div",{onClick:I[1]||(I[1]=k=>g(1)),class:Wt(v.value==1?"current":"")},de(u[1]),3),e0,(dt(!0),_t(xe,null,Cn(s[l.value].completePlateLength-2,k=>(dt(),_t("div",{key:k,class:Wt(k+1==v.value?"current":""),onClick:A=>g(k+1)},de(u[k+1]),11,n0))),128))]),i0],16),Kt(Vo,{ref_key:"plateKeyboardRef",ref:o,initPlates:u,completePlateLength:s[l.value].completePlateLength,onPlates:m},null,8,["initPlates","completePlateLength"])],64))}}),cg="",s0=Yt(r0,[["__scopeId","data-v-50f7545d"]]),o0=["width","height"],a0=["fill"],l0=Ut({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[B("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,a0)],8,o0))}}),ug="",$o=Yt(l0,[["__scopeId","data-v-4747d4a7"]]),c0=Ut({customOptions:{SVGDelete:$o},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Mt.colorGrayFF},deleteColor:{default:Mt.colorRed},fontColor:{default:Mt.colorGrayFF},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(!1),o=()=>{r("delete"),s.value=!1};let l;const u=vt();return te(u,()=>{u.value&&(l=new Ic(u.value),l.on("panLeft",()=>{s.value=!0}),l.on("panRight",()=>{s.value=!1}),l.on("tapOutSide",()=>{s.value=!1}))}),Da(()=>{l?.destroy()}),t({}),(v,y)=>(dt(),_t("div",{class:"parent",ref_key:"item",ref:u,style:Ot({backgroundColor:i.bgColor})},[B("div",{class:"content",style:Ot({transition:"all ease-in "+i.transtionDuration,transform:s.value?"translate(-"+i.deleteWidth+", 0)":"translate(0, 0)"})},[ie(v.$slots,"default",{},void 0,!0)],4),B("div",{class:"delete",onClick:o,style:Ot({backgroundColor:i.deleteColor,width:i.deleteWidth,transition:"all ease-in "+i.transtionDuration,transform:s.value?"translate(0, 0)":"translate("+i.deleteWidth+", 0)"})},[Kt($o,{color:i.fontColor},null,8,["color"])],4)],4))}}),hg="",u0=Yt(c0,[["__scopeId","data-v-407674aa"]]),h0={class:"parent"},f0=Ut({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(e,{expose:t,emit:n}){const i=e,r=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function s(g){return g.length>2?g.substring(0,2)+"·"+g.substring(2):g}function o(g){const m=r.filter(x=>x.name===g);return m.length?m[0]:o("未知")}const l=s(i.plate),u=vt(o(i.plateType));let v=i.fontColor,y=i.fontSize;switch(i.displayType){case"dot":v=v??"#999999",y=y??"14px";break;case"chinese":v=v??"#333333",y=y??"20px";break}return t({}),(g,m)=>(dt(),_t("div",h0,[B("div",{class:Wt(["leading",i.displayType]),style:Ot(u.value.style)},de(u.value.name),7),B("div",{class:"text",style:Ot({color:ae(v),"font-size":ae(y)})},de(ae(l)),5)]))}}),fg="",d0=Yt(f0,[["__scopeId","data-v-8d55b13b"]]),p0={class:"tab"},m0=Ut({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(e,{expose:t}){return t({}),(n,i)=>(dt(),_t("div",p0,[ie(n.$slots,"default",{},void 0,!0)]))}}),dg="",jc=Yt(m0,[["__scopeId","data-v-6589e7fa"]]),g0=["onClick"],v0={class:"content"},y0=Ut({customOptions:{Tab:jc},inheritAttrs:!0,__name:"Tabs",props:{initIndex:{default:0}},emits:["changedIndex"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(i.initIndex),o=en([]),l=vt(),u=vt(0),v=vt(0),y=vt(0),g=vt([]),m=[],x=yh(),I=x.default&&x.default();I&&(Hi(o,I),$(s.value));const k=(P,O)=>{if(P){if(m.push({index:O,el:P}),m.length<o.length)return;g.value=m}};te([l,g],()=>{A()});function A(){if(l.value&&g.value.length){const P=l.value.getBoundingClientRect(),O=g.value[s.value].el.getBoundingClientRect();u.value=O.x-P.x,v.value=O.y-P.y+O.height,y.value=O.width}}function $(P){s.value=P,r("changedIndex",P),A()}return t({}),(P,O)=>(dt(),_t("div",null,[B("div",{class:"header",ref_key:"headerRef",ref:l},[(dt(!0),_t(xe,null,Cn(o,(D,W)=>(dt(),_t("div",{key:D.props?.label,class:Wt(W==s.value?"active":""),onClick:U=>$(W)},[B("div",{ref_for:!0,ref:U=>k(U,W)},de(D.props?.label),513)],10,g0))),128)),B("div",{class:"indicator",style:Ot({top:v.value+"px",left:u.value+"px",width:y.value+"px",height:"2px"})},null,4)],512),B("div",v0,[(dt(),pe(fh,{include:"Tab"},[(dt(),pe(oh(o[s.value]),{key:o[s.value]?.props?.label}))],1024))])]))}}),pg="",_0=Yt(y0,[["__scopeId","data-v-e8093875"]]);var er=function(){var e=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(y){y.preventDefault(),i(++e%t.children.length)},!1);function n(y){return t.appendChild(y.dom),y}function i(y){for(var g=0;g<t.children.length;g++)t.children[g].style.display=g===y?"block":"none";e=y}var r=(performance||Date).now(),s=r,o=0,l=n(new er.Panel("FPS","#0ff","#002")),u=n(new er.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var v=n(new er.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:t,addPanel:n,showPanel:i,begin:function(){r=(performance||Date).now()},end:function(){o++;var y=(performance||Date).now();if(u.update(y-r,200),y>s+1e3&&(l.update(o*1e3/(y-s),100),s=y,o=0,v)){var g=performance.memory;v.update(g.usedJSHeapSize/1048576,g.jsHeapSizeLimit/1048576)}return y},update:function(){r=this.end()},domElement:t,setMode:i}};er.Panel=function(e,t,n){var i=1/0,r=0,s=Math.round,o=s(window.devicePixelRatio||1),l=80*o,u=48*o,v=3*o,y=2*o,g=3*o,m=15*o,x=74*o,I=30*o,k=document.createElement("canvas");k.width=l,k.height=u,k.style.cssText="width:80px;height:48px";var A=k.getContext("2d");return A.font="bold "+9*o+"px Helvetica,Arial,sans-serif",A.textBaseline="top",A.fillStyle=n,A.fillRect(0,0,l,u),A.fillStyle=t,A.fillText(e,v,y),A.fillRect(g,m,x,I),A.fillStyle=n,A.globalAlpha=.9,A.fillRect(g,m,x,I),{dom:k,update:function($,P){i=Math.min(i,$),r=Math.max(r,$),A.fillStyle=n,A.globalAlpha=1,A.fillRect(0,0,l,m),A.fillStyle=t,A.fillText(s($)+" "+e+" ("+s(i)+"-"+s(r)+")",v,y),A.drawImage(k,g+o,m,x-o,I,g,m,x-o,I),A.fillRect(g+x-o,m,o,I),A.fillStyle=n,A.globalAlpha=.9,A.fillRect(g+x-o,m,o,s((1-$/P)*I))}}};const x0=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(e,{expose:t}){const n=vt();return _r(()=>{const i=new er,r=i.domElement.style;r.margin="1em",n.value.appendChild(i.domElement),Oc.register(()=>(i.update(),!0))}),t({}),(i,r)=>(dt(),_t("div",{ref_key:"containerRef",ref:n},null,512))}}),b0={class:"ease-graph"},w0=["width","height"],E0=Ut({customOptions:{Button:Oe},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(e,{expose:t,emit:n}){const i=e,r=n;let s;const o=vt();te(o,()=>{o.value&&(s=new jr(o.value),l(),r("onMounted",i.easeName))});const l=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.lineWidth=.5,s.strokeStyle="rgb(230,230,230)",s.beginPath(),s.moveTo(0,i.graphVerticalGap),s.lineTo(i.canvasWidth,i.graphVerticalGap),s.moveTo(0,i.canvasHeight-i.graphVerticalGap),s.lineTo(i.canvasWidth,i.canvasHeight-i.graphVerticalGap),s.closePath(),s.stroke(),s.lineWidth=2,s.strokeStyle="rgb(255,127,127)"};let u=!1;const v=()=>{if(!s||u)return;u=!0,r("onStart",i.easeName),l();const g={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap},m={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap};Ji.toTween(g,{x:i.canvasWidth-i.graphHorizontalGap},{duration:i.easeDuration,easeFunction:xt.Easing.Linear.None}).startAuto(),Ji.toTween(g,{y:i.graphVerticalGap},{duration:i.easeDuration,easeFunction:i.easeFunction,onUpdate:()=>{s.beginPath(),s.moveTo(m.x,m.y),s.lineTo(g.x,g.y),s.closePath(),s.stroke(),m.x=g.x,m.y=g.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.easeName),u=!1},i.easeDuration)},y=()=>{r("onSelected",i.easeName,i.easeFunction)};return t({start:v}),(g,m)=>(dt(),_t("div",b0,[B("div",null,"缓动:"+de(g.easeName),1),B("div",null,[Kt(Oe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:v},{default:ye(()=>[rn(" 开始 ")]),_:1}),Kt(Oe,{stylePattern:i.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:y},{default:ye(()=>[rn(" 选择 ")]),_:1},8,["stylePattern"])]),B("canvas",{ref_key:"canvasRef",ref:o,width:g.canvasWidth,height:g.canvasHeight},null,8,w0)]))}}),gg="",zo=Yt(E0,[["__scopeId","data-v-1f39c8d3"]]),C0={class:"ease-graph-wrap"},S0={key:0,class:"ease-group-gap"},Bc=2e3,k0=Ut({customOptions:{EaseGraphDisplay:zo},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:xt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:xt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:xt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:xt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:xt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:xt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:xt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:xt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:xt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:xt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:xt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:xt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:xt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:xt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:xt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:xt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:xt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:xt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:xt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:xt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:xt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:xt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:xt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:xt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:xt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:xt.Easing.Back.In},{easeName:"BackOut",easeFunction:xt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:xt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:xt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:xt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:xt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:xt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:xt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:xt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:xt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:xt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:xt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:xt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(e,{expose:t,emit:n}){const i=e,r=n,s={};function o(g,m){g&&(s[m]=g)}const l=new $l(10);function u(g){l.addTask(()=>(s[g].start(),new Promise(m=>{setTimeout(()=>{m()},Bc)})))}const v=vt("");function y(g,m){v.value=g,r("selectedEaseFunction",m)}return t({}),(g,m)=>(dt(),_t("div",null,[(dt(!0),_t(xe,null,Cn(i.easeList,x=>(dt(),_t(xe,{key:x.easeName},[B("div",C0,[x.easeFunction?(dt(),pe(zo,{key:0,easeName:x.easeName,easeFunction:x.easeFunction,easeDuration:Bc,isSelected:v.value==x.easeName,onOnMounted:u,onOnSelected:y,ref_for:!0,ref:I=>o(I,x.easeName)},null,8,["easeName","easeFunction","isSelected"])):he("",!0)]),x.easeFunction?he("",!0):(dt(),_t("div",S0))],64))),128))]))}}),vg="",T0=Yt(k0,[["__scopeId","data-v-78813c75"]]),P0={class:"interpolation-graph"},I0=["width","height"],Hc=1/6,Uc=5/6,N0=Ut({customOptions:{Button:Oe},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(e,{expose:t,emit:n}){const i=e,r=n;let s;const o=vt();te(o,()=>{o.value&&(s=new jr(o.value),x(),r("onMounted",i.interpolationName))});const l=i.canvasWidth*Hc,u=i.canvasHeight/2,v=[i.canvasWidth*Uc,i.canvasWidth/2],y=[i.canvasHeight*Hc,i.canvasHeight*Uc],g=[...v,l],m=[...y,u],x=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.fillStyle="rgb(200,200,200)",s.fillRect(l-3,u-3,6,6),s.fillRect(v[v.length-1]-3,y[y.length-1]-3,6,6);for(var A=0;A<v.length;A++)s.fillRect(v[A]-2,y[A]-2,4,4)};let I=!1;const k=()=>{if(!s||I)return;I=!0,r("onStart",i.interpolationName),x();const A={x:l,y:u,old:{x:l,y:u}};Ji.toTween(A,{x:v,y},{duration:i.easeDuration,easeFunction:xt.Easing.Linear.None,interpolationFunction:i.interpolationFunction,onUpdate:P=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.9)",s.beginPath(),s.moveTo(P.old.x,P.old.y),s.lineTo(P.x,P.y),s.closePath(),s.stroke(),P.old.x=P.x,P.old.y=P.y}}).startAuto();const $={x:l,y:u,old:{x:l,y:u}};Ji.toTween($,{x:g,y:m},{duration:i.easeDuration,easeFunction:xt.Easing.Linear.None,interpolationFunction:i.interpolationFunction,onUpdate:P=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.5)",s.beginPath(),s.moveTo(P.old.x,P.old.y),s.lineTo(P.x,P.y),s.closePath(),s.stroke(),P.old.x=P.x,P.old.y=P.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.interpolationName),I=!1},i.easeDuration)};return t({start:k}),(A,$)=>(dt(),_t("div",P0,[B("div",null,[rn(" 插值:"+de(A.interpolationName)+" ",1),Kt(Oe,{stylePattern:"outline",height:"32px",onClick:k},{default:ye(()=>[rn(" 开始 ")]),_:1})]),B("canvas",{ref_key:"canvasRef",ref:o,width:A.canvasWidth,height:A.canvasHeight},null,8,I0)]))}}),yg="",Go=Yt(N0,[["__scopeId","data-v-5e4289c7"]]),Wc=2e3,O0=Ut({customOptions:{InterpolationGraphDisplay:Go},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:xt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:xt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:xt.Interpolation.CatmullRom}]}},setup(e,{expose:t,emit:n}){const i=e,r={};function s(u,v){u&&(r[v]=u)}const o=new $l(1);function l(u){o.addTask(()=>(r[u].start(),new Promise(v=>{setTimeout(()=>{v()},Wc)})))}return t({}),(u,v)=>(dt(),_t("div",null,[(dt(!0),_t(xe,null,Cn(i.interpolationList,y=>(dt(),_t("div",{key:y.interpolationName,class:"interpolation-graph-wrap"},[Kt(Go,{interpolationName:y.interpolationName,interpolationFunction:y.interpolationFunction,easeDuration:Wc,onOnMounted:l,ref_for:!0,ref:g=>s(g,y.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),_g="",M0=Yt(O0,[["__scopeId","data-v-59130b9e"]]),A0=["width","height"],L0=Ut({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(e,{expose:t,emit:n}){const i=e;let r=()=>{};const s=vt();return te(s,()=>{if(!s.value)return;const o=new Ic(s.value);o.ctx.strokeStyle=i.brushColor,o.ctx.lineWidth=i.brushSize,o.drawMouseMoveLine("line"),r=()=>{o.ctx.toSVGOperation().toDownloadSVGString(o.ctx.toRawSVG().raw,i.downloadFileName)}}),t({download:()=>r()}),(o,l)=>(dt(),_t("canvas",{ref_key:"panelRef",ref:s,width:i.canvasWidth,height:i.canvasHeight,style:Ot([`border: 1px solid ${o.borderColor}`])},null,12,A0))}});return jt.Button=Oe,jt.CheckboxGroup=Kp,jt.ColorPicker=xm,jt.Dialog=ko,jt.DialogLoading=Op,jt.EaseGraphDisplay=zo,jt.EaseGroupGraphDisplay=T0,jt.FPSStats=x0,jt.HandWritePanel=L0,jt.Icon=Wn,jt.InterpolationGraphDisplay=Go,jt.InterpolationGroupGraphDisplay=M0,jt.MapTianditu=km,jt.MobileLayout=yp,jt.Overlay=tr,jt.PlateDisplay=d0,jt.PlateKeyboard=Vo,jt.PlateMobile=s0,jt.Pop=He,jt.Popover=To,jt.RadioGroup=Bp,jt.ResizeObserver=Cm,jt.SVGCheck=Do,jt.SVGCleanUp=Yr,jt.SVGDelete=$o,jt.Select=Lp,jt.SlideLeftItem=u0,jt.Switch=Dp,jt.Tab=jc,jt.Tabs=_0,Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"}),jt}({});
48
+ })`}static encodeHTML(e,n="encode"){const s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e=e.replace(new RegExp(n=="decode"?i:s[i],"g"),n=="decode"?s[i]:i));return e}static getInnerText=e=>{let n=e.innerText;if(!n){const s=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!n&&i<=s.length-1;)"innerText"in s[i]&&(n=s[i].innerText),i++}return n};static copyToClipboard=e=>new Promise((n,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(n).catch(s);else{const i=document.createElement("textarea");i.value=e,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")?n():s()}catch(r){s(r)}document.body.removeChild(i)}});static scrollTo=(e,n)=>window.scrollTo(e,n);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):n("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(e,n="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=n,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,n)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(e,n=12,s=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=n>12?n+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=e,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r};static getFixedWidthText=(e,n,s=12,i=400,r=!0)=>{let o="";if(!e||n<s)return o;const a=e.split(""),l="...";let c=r?Z.getTextWidth(l,s,i):0;for(let u=0,h=a.length;u<h;u++)if(c+=Z.getTextWidth(a[u],s,i),c>n){r&&(o+=l);break}else o+=a[u];return o}}function Jp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
49
+ * http://hammerjs.github.io/
50
+ *
51
+ * Copyright (c) 2016 Jorik Tangelder;
52
+ * Licensed under the MIT license */(function(t){(function(e,n,s,i){var r=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(w(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 k;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(k=0;k<p.length;)g.call(b,p[k],k,p),k++;else for(k in p)p.hasOwnProperty(k)&&g.call(b,p[k],k,p)}function m(p,g,b){var k="DEPRECATED METHOD: "+g+`
53
+ `+b+` AT
54
+ `;return function(){var V=new Error("get-stack-trace"),K=V&&V.stack?V.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ye=e.console&&(e.console.warn||e.console.log);return ye&&ye.call(e.console,k,K),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),k=1;k<arguments.length;k++){var V=arguments[k];if(V!==i&&V!==null)for(var K in V)V.hasOwnProperty(K)&&(b[K]=V[K])}return b}:v=Object.assign;var y=m(function(g,b,k){for(var V=Object.keys(b),K=0;K<V.length;)(!k||k&&g[V[K]]===i)&&(g[V[K]]=b[V[K]]),K++;return g},"extend","Use `assign`."),E=m(function(g,b){return y(g,b,!0)},"merge","Use `assign`.");function C(p,g,b){var k=g.prototype,V;V=p.prototype=Object.create(k),V.constructor=p,V._super=k,b&&v(V,b)}function w(p,g){return function(){return p.apply(g,arguments)}}function S(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function $(p,g){return p===i?g:p}function O(p,g,b){d(pe(g),function(k){p.addEventListener(k,b,!1)})}function R(p,g,b){d(pe(g),function(k){p.removeEventListener(k,b,!1)})}function le(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function ue(p,g){return p.indexOf(g)>-1}function pe(p){return p.trim().split(/\s+/g)}function De(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var k=0;k<p.length;){if(b&&p[k][b]==g||!b&&p[k]===g)return k;k++}return-1}function Oe(p){return Array.prototype.slice.call(p,0)}function at(p,g,b){for(var k=[],V=[],K=0;K<p.length;){var ye=g?p[K][g]:p[K];De(V,ye)<0&&k.push(p[K]),V[K]=ye,K++}return b&&(g?k=k.sort(function(nt,_t){return nt[g]>_t[g]}):k=k.sort()),k}function lt(p,g){for(var b,k,V=g[0].toUpperCase()+g.slice(1),K=0;K<r.length;){if(b=r[K],k=b?b+V:g,k in p)return k;K++}return i}var We=1;function Te(){return We++}function he(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var M=/mobile|tablet|ip(ad|hone|od)|android/i,Y="ontouchstart"in e,j=lt(e,"PointerEvent")!==i,de=Y&&M.test(navigator.userAgent),fe="touch",Me="pen",Je="mouse",Et="kinect",Ct=25,Ae=1,kt=2,$e=4,et=8,At=1,en=2,tn=4,_=8,x=16,P=en|tn,I=_|x,A=P|I,H=["x","y"],W=["clientX","clientY"];function L(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(k){S(p.options.enable,[p])&&b.handler(k)},this.init()}L.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(he(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(he(this.element),this.evWin,this.domHandler)}};function U(p){var g,b=p.options.inputClass;return b?g=b:j?g=Xo:de?g=Xi:Y?g=qo:g=gt,new g(p,F)}function F(p,g,b){var k=b.pointers.length,V=b.changedPointers.length,K=g&Ae&&k-V===0,ye=g&($e|et)&&k-V===0;b.isFirst=!!K,b.isFinal=!!ye,K&&(p.session={}),b.eventType=g,X(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function X(p,g){var b=p.session,k=g.pointers,V=k.length;b.firstInput||(b.firstInput=ce(g)),V>1&&!b.firstMultiple?b.firstMultiple=ce(g):V===1&&(b.firstMultiple=!1);var K=b.firstInput,ye=b.firstMultiple,qe=ye?ye.center:K.center,nt=g.center=ge(k);g.timeStamp=u(),g.deltaTime=g.timeStamp-K.timeStamp,g.angle=mt(qe,nt),g.distance=Fe(qe,nt),ie(b,g),g.offsetDirection=Ie(g.deltaX,g.deltaY);var _t=we(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=_t.x,g.overallVelocityY=_t.y,g.overallVelocity=c(_t.x)>c(_t.y)?_t.x:_t.y,g.scale=ye?Ui(ye.pointers,k):1,g.rotation=ye?_n(ye.pointers,k):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,te(b,g);var Ht=p.element;le(g.srcEvent.target,Ht)&&(Ht=g.srcEvent.target),g.target=Ht}function ie(p,g){var b=g.center,k=p.offsetDelta||{},V=p.prevDelta||{},K=p.prevInput||{};(g.eventType===Ae||K.eventType===$e)&&(V=p.prevDelta={x:K.deltaX||0,y:K.deltaY||0},k=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=V.x+(b.x-k.x),g.deltaY=V.y+(b.y-k.y)}function te(p,g){var b=p.lastInterval||g,k=g.timeStamp-b.timeStamp,V,K,ye,qe;if(g.eventType!=et&&(k>Ct||b.velocity===i)){var nt=g.deltaX-b.deltaX,_t=g.deltaY-b.deltaY,Ht=we(k,nt,_t);K=Ht.x,ye=Ht.y,V=c(Ht.x)>c(Ht.y)?Ht.x:Ht.y,qe=Ie(nt,_t),p.lastInterval=g}else V=b.velocity,K=b.velocityX,ye=b.velocityY,qe=b.direction;g.velocity=V,g.velocityX=K,g.velocityY=ye,g.direction=qe}function ce(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:ge(g),deltaX:p.deltaX,deltaY:p.deltaY}}function ge(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,k=0,V=0;V<g;)b+=p[V].clientX,k+=p[V].clientY,V++;return{x:l(b/g),y:l(k/g)}}function we(p,g,b){return{x:g/p||0,y:b/p||0}}function Ie(p,g){return p===g?At:c(p)>=c(g)?p<0?en:tn:g<0?_:x}function Fe(p,g,b){b||(b=H);var k=g[b[0]]-p[b[0]],V=g[b[1]]-p[b[1]];return Math.sqrt(k*k+V*V)}function mt(p,g,b){b||(b=H);var k=g[b[0]]-p[b[0]],V=g[b[1]]-p[b[1]];return Math.atan2(V,k)*180/Math.PI}function _n(p,g){return mt(g[1],g[0],W)+mt(p[1],p[0],W)}function Ui(p,g){return Fe(g[0],g[1],W)/Fe(p[0],p[1],W)}var Ln={mousedown:Ae,mousemove:kt,mouseup:$e},Wi="mousedown",tt="mousemove mouseup";function gt(){this.evEl=Wi,this.evWin=tt,this.pressed=!1,L.apply(this,arguments)}C(gt,L,{handler:function(g){var b=Ln[g.type];b&Ae&&g.button===0&&(this.pressed=!0),b&kt&&g.which!==1&&(b=$e),this.pressed&&(b&$e&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:Je,srcEvent:g}))}});var Yi={pointerdown:Ae,pointermove:kt,pointerup:$e,pointercancel:et,pointerout:et},Fv={2:fe,3:Me,4:Je,5:Et},bu="pointerdown",xu="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(bu="MSPointerDown",xu="MSPointerMove MSPointerUp MSPointerCancel");function Xo(){this.evEl=bu,this.evWin=xu,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Xo,L,{handler:function(g){var b=this.store,k=!1,V=g.type.toLowerCase().replace("ms",""),K=Yi[V],ye=Fv[g.pointerType]||g.pointerType,qe=ye==fe,nt=De(b,g.pointerId,"pointerId");K&Ae&&(g.button===0||qe)?nt<0&&(b.push(g),nt=b.length-1):K&($e|et)&&(k=!0),!(nt<0)&&(b[nt]=g,this.callback(this.manager,K,{pointers:b,changedPointers:[g],pointerType:ye,srcEvent:g}),k&&b.splice(nt,1))}});var Vv={touchstart:Ae,touchmove:kt,touchend:$e,touchcancel:et},Gv="touchstart",zv="touchstart touchmove touchend touchcancel";function wu(){this.evTarget=Gv,this.evWin=zv,this.started=!1,L.apply(this,arguments)}C(wu,L,{handler:function(g){var b=Vv[g.type];if(b===Ae&&(this.started=!0),!!this.started){var k=jv.call(this,g,b);b&($e|et)&&k[0].length-k[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:k[0],changedPointers:k[1],pointerType:fe,srcEvent:g})}}});function jv(p,g){var b=Oe(p.touches),k=Oe(p.changedTouches);return g&($e|et)&&(b=at(b.concat(k),"identifier",!0)),[b,k]}var Hv={touchstart:Ae,touchmove:kt,touchend:$e,touchcancel:et},Bv="touchstart touchmove touchend touchcancel";function Xi(){this.evTarget=Bv,this.targetIds={},L.apply(this,arguments)}C(Xi,L,{handler:function(g){var b=Hv[g.type],k=Uv.call(this,g,b);k&&this.callback(this.manager,b,{pointers:k[0],changedPointers:k[1],pointerType:fe,srcEvent:g})}});function Uv(p,g){var b=Oe(p.touches),k=this.targetIds;if(g&(Ae|kt)&&b.length===1)return k[b[0].identifier]=!0,[b,b];var V,K,ye=Oe(p.changedTouches),qe=[],nt=this.target;if(K=b.filter(function(_t){return le(_t.target,nt)}),g===Ae)for(V=0;V<K.length;)k[K[V].identifier]=!0,V++;for(V=0;V<ye.length;)k[ye[V].identifier]&&qe.push(ye[V]),g&($e|et)&&delete k[ye[V].identifier],V++;if(qe.length)return[at(K.concat(qe),"identifier",!0),qe]}var Wv=2500,Eu=25;function qo(){L.apply(this,arguments);var p=w(this.handler,this);this.touch=new Xi(this.manager,p),this.mouse=new gt(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}C(qo,L,{handler:function(g,b,k){var V=k.pointerType==fe,K=k.pointerType==Je;if(!(K&&k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents)){if(V)Yv.call(this,b,k);else if(K&&Xv.call(this,k))return;this.callback(g,b,k)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Yv(p,g){p&Ae?(this.primaryTouch=g.changedPointers[0].identifier,Cu.call(this,g)):p&($e|et)&&Cu.call(this,g)}function Cu(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var k=this.lastTouches,V=function(){var K=k.indexOf(b);K>-1&&k.splice(K,1)};setTimeout(V,Wv)}}function Xv(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,k=0;k<this.lastTouches.length;k++){var V=this.lastTouches[k],K=Math.abs(g-V.x),ye=Math.abs(b-V.y);if(K<=Eu&&ye<=Eu)return!0}return!1}var Tu=lt(o.style,"touchAction"),Su=Tu!==i,ku="compute",Pu="auto",Ko="manipulation",Fn="none",Ls="pan-x",Fs="pan-y",qi=Kv();function Zo(p,g){this.manager=p,this.set(g)}Zo.prototype={set:function(p){p==ku&&(p=this.compute()),Su&&this.manager.element.style&&qi[p]&&(this.manager.element.style[Tu]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return d(this.manager.recognizers,function(g){S(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),qv(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var k=this.actions,V=ue(k,Fn)&&!qi[Fn],K=ue(k,Fs)&&!qi[Fs],ye=ue(k,Ls)&&!qi[Ls];if(V){var qe=p.pointers.length===1,nt=p.distance<2,_t=p.deltaTime<250;if(qe&&nt&&_t)return}if(!(ye&&K)&&(V||K&&b&P||ye&&b&I))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function qv(p){if(ue(p,Fn))return Fn;var g=ue(p,Ls),b=ue(p,Fs);return g&&b?Fn:g||b?g?Ls:Fs:ue(p,Ko)?Ko:Pu}function Kv(){if(!Su)return!1;var p={},g=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?e.CSS.supports("touch-action",b):!0}),p}var Ki=1,Pt=2,Zn=4,vn=8,nn=vn,Vs=16,jt=32;function sn(p){this.options=v({},this.defaults,p||{}),this.id=Te(),this.manager=null,this.options.enable=$(this.options.enable,!0),this.state=Ki,this.simultaneous={},this.requireFail=[]}sn.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=Zi(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Zi(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Zi(p,this),De(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Zi(p,this);var g=De(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 k(V){g.manager.emit(V,p)}b<vn&&k(g.options.event+Nu(b)),k(g.options.event),p.additionalEvent&&k(p.additionalEvent),b>=vn&&k(g.options.event+Nu(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=jt},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(jt|Ki)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!S(this.options.enable,[this,g])){this.reset(),this.state=jt;return}this.state&(nn|Vs|jt)&&(this.state=Ki),this.state=this.process(g),this.state&(Pt|Zn|vn|Vs)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Nu(p){return p&Vs?"cancel":p&vn?"end":p&Zn?"move":p&Pt?"start":""}function Ou(p){return p==x?"down":p==_?"up":p==en?"left":p==tn?"right":""}function Zi(p,g){var b=g.manager;return b?b.get(p):p}function Rt(){sn.apply(this,arguments)}C(Rt,sn,{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,k=g&(Pt|Zn),V=this.attrTest(p);return k&&(b&et||!V)?g|Vs:k||V?b&$e?g|vn:g&Pt?g|Zn:Pt:jt}});function Qi(){Rt.apply(this,arguments),this.pX=null,this.pY=null}C(Qi,Rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:A},getTouchAction:function(){var p=this.options.direction,g=[];return p&P&&g.push(Fs),p&I&&g.push(Ls),g},directionTest:function(p){var g=this.options,b=!0,k=p.distance,V=p.direction,K=p.deltaX,ye=p.deltaY;return V&g.direction||(g.direction&P?(V=K===0?At:K<0?en:tn,b=K!=this.pX,k=Math.abs(p.deltaX)):(V=ye===0?At:ye<0?_:x,b=ye!=this.pY,k=Math.abs(p.deltaY))),p.direction=V,b&&k>g.threshold&&V&g.direction},attrTest:function(p){return Rt.prototype.attrTest.call(this,p)&&(this.state&Pt||!(this.state&Pt)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Ou(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Qo(){Rt.apply(this,arguments)}C(Qo,Rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Fn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&Pt)},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 Jo(){sn.apply(this,arguments),this._timer=null,this._input=null}C(Jo,sn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Pu]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,k=p.distance<g.threshold,V=p.deltaTime>g.time;if(this._input=p,!k||!b||p.eventType&($e|et)&&!V)this.reset();else if(p.eventType&Ae)this.reset(),this._timer=h(function(){this.state=nn,this.tryEmit()},g.time,this);else if(p.eventType&$e)return nn;return jt},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===nn&&(p&&p.eventType&$e?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ea(){Rt.apply(this,arguments)}C(ea,Rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Fn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&Pt)}});function ta(){Rt.apply(this,arguments)}C(ta,Rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:P|I,pointers:1},getTouchAction:function(){return Qi.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(P|I)?b=p.overallVelocity:g&P?b=p.overallVelocityX:g&I&&(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&$e},emit:function(p){var g=Ou(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Ji(){sn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(Ji,sn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ko]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,k=p.distance<g.threshold,V=p.deltaTime<g.time;if(this.reset(),p.eventType&Ae&&this.count===0)return this.failTimeout();if(k&&V&&b){if(p.eventType!=$e)return this.failTimeout();var K=this.pTime?p.timeStamp-this.pTime<g.interval:!0,ye=!this.pCenter||Fe(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!ye||!K?this.count=1:this.count+=1,this._input=p;var qe=this.count%g.taps;if(qe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=nn,this.tryEmit()},g.interval,this),Pt):nn}return jt},failTimeout:function(){return this._timer=h(function(){this.state=jt},this.options.interval,this),jt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==nn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function rn(p,g){return g=g||{},g.recognizers=$(g.recognizers,rn.defaults.preset),new na(p,g)}rn.VERSION="2.0.7",rn.defaults={domEvents:!1,touchAction:ku,enable:!0,inputTarget:null,inputClass:null,preset:[[ea,{enable:!1}],[Qo,{enable:!1},["rotate"]],[ta,{direction:P}],[Qi,{direction:P},["swipe"]],[Ji],[Ji,{event:"doubletap",taps:2},["tap"]],[Jo]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Zv=1,Iu=2;function na(p,g){this.options=v({},rn.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=U(this),this.touchAction=new Zo(this,this.options.touchAction),Mu(this,!0),d(this.options.recognizers,function(b){var k=this.add(new b[0](b[1]));b[2]&&k.recognizeWith(b[2]),b[3]&&k.requireFailure(b[3])},this)}na.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?Iu:Zv},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,k=this.recognizers,V=g.curRecognizer;(!V||V&&V.state&nn)&&(V=g.curRecognizer=null);for(var K=0;K<k.length;)b=k[K],g.stopped!==Iu&&(!V||b==V||b.canRecognizeWith(V))?b.recognize(p):b.reset(),!V&&b.state&(Pt|Zn|vn)&&(V=g.curRecognizer=b),K++}},get:function(p){if(p instanceof sn)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=De(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(pe(p),function(k){b[k]=b[k]||[],b[k].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return d(pe(p),function(k){g?b[k]&&b[k].splice(De(b[k],g),1):delete b[k]}),this}},emit:function(p,g){this.options.domEvents&&Qv(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 k=0;k<b.length;)b[k](g),k++}},destroy:function(){this.element&&Mu(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Mu(p,g){var b=p.element;if(b.style){var k;d(p.options.cssProps,function(V,K){k=lt(b.style,K),g?(p.oldCssProps[k]=b.style[k],b.style[k]=V):b.style[k]=p.oldCssProps[k]||""}),g||(p.oldCssProps={})}}function Qv(p,g){var b=n.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}v(rn,{INPUT_START:Ae,INPUT_MOVE:kt,INPUT_END:$e,INPUT_CANCEL:et,STATE_POSSIBLE:Ki,STATE_BEGAN:Pt,STATE_CHANGED:Zn,STATE_ENDED:vn,STATE_RECOGNIZED:nn,STATE_CANCELLED:Vs,STATE_FAILED:jt,DIRECTION_NONE:At,DIRECTION_LEFT:en,DIRECTION_RIGHT:tn,DIRECTION_UP:_,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:P,DIRECTION_VERTICAL:I,DIRECTION_ALL:A,Manager:na,Input:L,TouchAction:Zo,TouchInput:Xi,MouseInput:gt,PointerEventInput:Xo,TouchMouseInput:qo,SingleTouchInput:wu,Recognizer:sn,AttrRecognizer:Rt,Tap:Ji,Pan:Qi,Swipe:ta,Pinch:Qo,Rotate:ea,Press:Jo,on:O,off:R,each:d,merge:E,extend:y,assign:v,inherit:C,bindFn:w,prefixed:lt});var Jv=typeof e<"u"?e:typeof self<"u"?self:{};Jv.Hammer=rn,typeof i=="function"&&i.amd?i(function(){return rn}):t.exports?t.exports=rn:e[s]=rn})(window,document,"Hammer")})(Gc);var em=Gc.exports;const tm=Jp(em);function zc(t){return t*Math.PI/180}function jc(t){return t*180/Math.PI}function Ii(t,e,n,s){const i=t-n,r=e-s;return Math.sqrt(i*i+r*r)}function Hc(t,e,n,s){const i=n-t,r=s-e;return Math.atan2(r,i)}function Bc(t,e){return{x:Math.cos(t)*e,y:Math.sin(t)*e}}function Uc(t,e){const n=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return{x:t/=n,y:e/=n}}const ks=Math.PI*2;function Wc(t,e,n,s){const i=t*s-e*n<0?-1:1;let r=t*n+e*s;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function nm(t,e,n,s,i,r,o,a,l,c){const u=c*(t-n)/2+l*(e-s)/2,h=-l*(t-n)/2+c*(e-s)/2,f=o*o,d=a*a,m=u*u,v=h*h;let y=f*d-f*v-d*m;y<0&&(y=0),y/=f*v+d*m,y=Math.sqrt(y)*(i===r?-1:1);const E=y*o/a*h,C=y*-a/o*u,w=c*E-l*C+(t+n)/2,S=l*E+c*C+(e+s)/2,$=(u-E)/o,O=(h-C)/a,R=(-u-E)/o,le=(-h-C)/a,ue=Wc(1,0,$,O);let pe=Wc($,O,R,le);return r===0&&pe>0&&(pe-=ks),r===1&&pe<0&&(pe+=ks),[w,S,ue,pe]}function sm(t,e){const n=1.3333333333333333*Math.tan(e/4),s=Math.cos(t),i=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[s,i,s-i*n,i+s*n,r+o*n,o-r*n,r,o]}function im(t,e,n,s,i,r,o,a,l){const c=Math.sin(l*ks/360),u=Math.cos(l*ks/360),h=u*(t-n)/2+c*(e-s)/2,f=-c*(t-n)/2+u*(e-s)/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=nm(t,e,n,s,i,r,o,a,c,u),v=[];let y=m[2],E=m[3];const C=Math.max(Math.ceil(Math.abs(E)/(ks/4)),1);E/=C;for(let w=0;w<C;w++)v.push(sm(y,E)),y+=E;return v.map(w=>{for(let S=0;S<w.length;S+=2){let $=w[S+0],O=w[S+1];$*=o,O*=a;const R=u*$-c*O,le=c*$+u*O;w[S+0]=R+m[0],w[S+1]=le+m[1]}return w})}function Yc(t,e,n,s,i,r){return[t/3+.6666666666666666*n,e/3+.6666666666666666*s,i/3+.6666666666666666*n,r/3+.6666666666666666*s,i,r]}function Mi(t,e,n,s){return[t,e,n,s,n,s]}class ht{static createSVGElement(e="path"){return document.createElementNS.call(document,"http://www.w3.org/2000/svg",e)}static createSvgPath(e){const n=this.createSVGElement("path");return n.setAttribute("d",e),n}static downloadFromSVGElement(e,n="shape"){Lc(zp(e),`${n}.svg`)}static downloadFromSVGString(e,n="shape"){Lc($c(e),`${n}.svg`)}static SVGParsedPathArgsLength={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}static parseSVGPath(e){const n=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,r)=>{let o=i.toLowerCase();const a=$p(r);for(o=="m"&&a.length>this.SVGParsedPathArgsLength[o]&&(n.push([i,...a.splice(0,this.SVGParsedPathArgsLength[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<this.SVGParsedPathArgsLength[o])throw new Error(`SVGPathD ! : ${s}`);n.push([i,...a.splice(0,this.SVGParsedPathArgsLength[o])])}return o=="z"&&n.push([i]),""}),n}static absolutizeSVGPath(e){let n=0,s=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=n,r=s;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=n=o[1],r=s=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(e){let n=0,s=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=n,r=s;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],n+=o[1],s+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(e){let n=[],s=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=e.length;f<d;f++){let m=e[f];const v=m[0];switch(v){case"M":s=m[1],i=m[2];break;case"A":const y=im(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!y.length)continue;y.forEach((w,S)=>{const[$,O,R,le,ue,pe,De,Oe]=w;m=["C",R,le,ue,pe,De,Oe],S<y.length-1&&n.push(m)});break;case"S":let E=r,C=o;(h=="C"||h=="S")&&(E+=E-c,C+=C-u),m=["C",E,C,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",...Yc(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...Yc(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...Mi(r,o,m[1],m[2])];break;case"H":m=["C",...Mi(r,o,m[1],o)];break;case"V":m=["C",...Mi(r,o,r,m[1])];break;case"Z":m=["C",...Mi(r,o,s,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),n.push(m)}return n}static zvhToLSVGPath(e){let n=[],s=["L",0,0],i;for(let r=0,o=e.length;r<o;r++){let a=e[r];switch(a[0]){case"M":s=["L",a[1],a[2]],n.push(a);break;case"Z":n.push(s);break;case"H":i=n[n.length-1]||["L",0,0],n.push(["L",a[1],i[i.length-1]]);break;case"V":i=n[n.length-1]||["L",0,0],n.push(["L",i[i.length-2],a[1]]);break;default:n.push(a)}}return n}static longhandSVGPath(e){const n={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,r=0;for(let o=0,a=e.length;o<a;o++){const l=e[o],c=n[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),r=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),r=Number(s[s.length-1]))),l.splice(1,0,i,r)),s=l}return e}static SVGPathDataToD(e){return e.map(n=>{switch(n[0].toLowerCase()){case"a":return`${n[0]} ${n[1]},${n[2]} ${n[3]} ${n[4]},${n[5]} ${n[6]},${n[7]}`;case"c":return`${n[0]} ${n[1]},${n[2]} ${n[3]},${n[4]} ${n[5]},${n[6]}`;case"s":case"q":return`${n[0]} ${n[1]},${n[2]} ${n[3]},${n[4]}`;default:return n[0]+" "+n.slice(1).join(",")}}).join(" ")}static absoluteSVGPathD(e){return this.SVGPathDataToD(this.absolutizeSVGPath(this.parseSVGPath(e)))}static walkSVGPathDCacheMap=new Map;static getWalkSVGPathD(e){if(this.walkSVGPathDCacheMap.has(e))return this.walkSVGPathDCacheMap.get(e);const n={at:s=>this.walkSVGPathD(e,s).pos,length:()=>this.walkSVGPathD(e).length};return this.walkSVGPathDCacheMap.set(e,n),n}static walkSVGPathD(e,n){const s=this.longhandSVGPath(this.zvhToLSVGPath(this.absolutizeSVGPath(this.parseSVGPath(e))));function i(f,d){return Math.pow(1-d,3)*u[0]+3*Math.pow(1-d,2)*d*f[1]+3*(1-d)*Math.pow(d,2)*f[3]+Math.pow(d,3)*f[5]}function r(f,d){return Math.pow(1-d,3)*u[1]+3*Math.pow(1-d,2)*d*f[2]+3*(1-d)*Math.pow(d,2)*f[4]+Math.pow(d,3)*f[6]}function o(f,d){return Math.pow(1-d,2)*u[0]+2*(1-d)*d*f[1]+Math.pow(d,2)*f[3]}function a(f,d){return Math.pow(1-d,2)*u[1]+2*(1-d)*d*f[2]+Math.pow(d,2)*f[4]}let l=[0,0],c=[0,0,0],u=[0,0],h=0;for(let f=0,d=s.length;f<d;f++){let m=s[f];if(m[0]==="M"){if(l[0]=m[1],l[1]=m[2],n===0)return{length:h,pos:l}}else if(m[0]==="C"){c[0]=u[0]=l[0],c[1]=u[1]=l[1],c[2]=h;let v=100;for(let y=0;y<=v;y++){let E=y/v,C=i(m,E),w=r(m,E);if(h+=Ii(l[0],l[1],C,w),l[0]=C,l[1]=w,typeof n=="number"&&h>=n){let S=(h-n)/(h-c[2]),$=[l[0]*(1-S)+c[0]*S,l[1]*(1-S)+c[1]*S];return{length:h,pos:$}}c[0]=l[0],c[1]=l[1],c[2]=h}}else if(m[0]==="Q"){c[0]=u[0]=l[0],c[1]=u[1]=l[1],c[2]=h;let v=100;for(let y=0;y<=v;y++){let E=y/v,C=o(m,E),w=a(m,E);if(h+=Ii(l[0],l[1],C,w),l[0]=C,l[1]=w,typeof n=="number"&&h>=n){let S=(h-n)/(h-c[2]),$=[l[0]*(1-S)+c[0]*S,l[1]*(1-S)+c[1]*S];return{length:h,pos:$}}c[0]=l[0],c[1]=l[1],c[2]=h}}else if(m[0]==="L"){if(c[0]=l[0],c[1]=l[1],c[2]=h,h+=Ii(l[0],l[1],m[1],m[2]),l[0]=m[1],l[1]=m[2],typeof n=="number"&&h>=n){let v=(h-n)/(h-c[2]),y=[l[0]*(1-v)+c[0]*v,l[1]*(1-v)+c[1]*v];return{length:h,pos:y}}c[0]=l[0],c[1]=l[1],c[2]=h}}return{length:h,pos:l}}static catmullRom2bezier(e){let n=[];for(let s=0,i=e.length;i-2>s;s+=2){let r;s==0?r=[{x:e[s],y:e[s+1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}]:i-4==s?r=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+2],y:e[s+3]}]:r=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+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}];n.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return n}static findDotsAtSegment(e,n,s,i,r,o,a,l,c){let u=1-c,h=Math.pow(u,3),f=Math.pow(u,2),d=c*c,m=d*c,v=h*e+f*3*c*s+u*3*c*c*r+m*a,y=h*n+f*3*c*i+u*3*c*c*o+m*l,E=e+2*c*(s-e)+d*(r-2*s+e),C=n+2*c*(i-n)+d*(o-2*i+n),w=s+2*c*(r-s)+d*(a-2*r+s),S=i+2*c*(o-i)+d*(l-2*o+i),$=u*e+c*s,O=u*n+c*i,R=u*r+c*a,le=u*o+c*l,ue=90-Math.atan2(E-w,C-S)*180/Math.PI;return(E>w||C<S)&&(ue+=180),{x:v,y,m:{x:E,y:C},n:{x:w,y:S},start:{x:$,y:O},end:{x:R,y:le},alpha:ue}}static findDotAtSegment(e,n,s,i,r,o,a,l,c){const u=1-c;return{x:Math.pow(u,3)*e+Math.pow(u,2)*3*c*s+u*3*c*c*r+Math.pow(c,3)*a,y:Math.pow(u,3)*n+Math.pow(u,2)*3*c*i+u*3*c*c*o+Math.pow(c,3)*l}}static curveDim(e,n,s,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,v,y,E,C;for(let O=0;O<2;++O){if(O===0?(f=6*e-12*s+6*r,h=-3*e+9*s-9*r+3*a,d=3*s-3*e):(f=6*n-12*i+6*o,h=-3*n+9*i-9*o+3*l,d=3*i-3*n),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,C=Math.sqrt(E),!(E<0)&&(v=(-f+C)/(2*h),v>0&&v<1&&c.push(v),y=(-f-C)/(2*h),y>0&&y<1&&c.push(y))}let w=c.length,S;const $=w;for(;w--;)m=c[w],S=1-m,u[0][w]=S*S*S*e+3*S*S*m*s+3*S*m*m*r+m*m*m*a,u[1][w]=S*S*S*n+3*S*S*m*i+3*S*m*m*o+m*m*m*l;return u[0][$]=e,u[1][$]=n,u[0][$+1]=a,u[1][$+1]=l,u[0].length=u[1].length=$+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])}}}}class Rn{id;x;y;rotate;scale;vx;vy;ax;ay;mass;XYIsShapeCenter=!1;path2d=new Path2D;isMouseInShape=!1;isDragging=!1;constructor(e){this.id=Ip(),this.x=e?.x||0,this.y=e?.y||0,this.rotate=e?.rotate||0,this.scale=e?.scale||1,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0}getBoundingClientRect(){return null}toSVGPathD(){const e=[],n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),ht.SVGPathDataToD(e)}distanceTo(e){return Ii(this.x,this.y,e.x,e.y)}angleTo(e){return this.rotate=Hc(this.x,this.y,e.x,e.y),this.rotate}velocityTo(e){return{vx:e.x-this.x,vy:e.y-this.y}}followTo(e,n=3){const s=this.angleTo(e),{x:i,y:r}=Bc(s,n);this.vx=i,this.vy=r,this.nextFrame()}followAccelerationTo(e,n=.05){const s=this.angleTo(e),{x:i,y:r}=Bc(s,n);this.ax=i,this.ay=r,this.nextFrame()}nextFrame(e){const n=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,s>0){const i=Math.atan2(this.vy,this.vx);let r=Math.sqrt(this.vx*this.vx+this.vy*this.vy);r>s?r-=s:r=0,this.vx=Math.cos(i)*r,this.vy=Math.sin(i)*r}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,n){const s=n?.gravity??0,i=n?.friction??1,r=n?.easing??.05,o=e.x-this.x,a=e.y-this.y;this.vx=o*r,this.vy=a*r,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,n){const s=n?.gravity??0,i=n?.friction??.95,r=n?.spring??.03;(Array.isArray(e)?e:[e]).forEach(a=>{const l=a.x-this.x,c=a.y-this.y,u=l*r,h=c*r;this.vx+=u,this.vy+=h}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,n){const s=n?.gravity??0,i=n?.friction??.95,r=n?.spring??.03,o=n?.springLength??100,a=this.angleTo(e);this.nextFrameSpringTo(new rt({x:e.x-Math.cos(a)*o,y:e.y-Math.sin(a)*o}),{spring:r,friction:i,gravity:s})}}class Dt extends Rn{width;height;borderRadius;centerX;centerY;rMin;rMax;r;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0,this.centerX=this.x+this.width/2,this.centerY=this.y+this.height/2,this.rMin=Math.min(this.width,this.height)/2,this.rMax=Math.max(this.width,this.height)/2,this.r=Math.sqrt(this.width*this.width+this.height*this.height)/2}getBoundingClientRect(){return this}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,n){return e>=this.x&&e<=this.x+this.width&&n>=this.y&&n<=this.y+this.height}clone(e){return new Dt({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}class rt extends Rn{radius;constructor(e){super(e),this.XYIsShapeCenter=!0,this.radius=e?.radius||0}getBoundingClientRect(){return new Dt({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return["M",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}toArray(){return[this.x,this.y]}setX(e){this.x=e}setY(e){this.y=e}setXY(e,n){this.x=e,this.y=n}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new rt({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}clone(e){return new rt({x:e.x,y:e.y,radius:e.radius})}nextFrameCollisionTo(e){const n=e.x-this.x,s=e.y-this.y;if(Math.sqrt(n*n+s*s)<this.radius+e.radius){const o=Math.atan2(s,n),a=Math.sin(o),l=Math.cos(o),c={x:0,y:0},u=r(n,s,a,l,!0),h=r(this.vx,this.vy,a,l,!0),f=r(e.vx,e.vy,a,l,!0),d=h.x-f.x;h.x=((this.mass-e.mass)*h.x+2*e.mass*f.x)/(this.mass+e.mass),f.x=d+h.x;const m=Math.abs(h.x)+Math.abs(f.x),v=this.radius+e.radius-Math.abs(c.x-u.x);c.x+=h.x/m*v,u.x+=f.x/m*v;const y=r(c.x,c.y,a,l,!1),E=r(u.x,u.y,a,l,!1);e.x=this.x+E.x,e.y=this.y+E.y,this.x=this.x+y.x,this.y=this.y+y.y;const C=r(h.x,h.y,a,l,!1),w=r(f.x,f.y,a,l,!1);this.vx=C.x,this.vy=C.y,e.vx=w.x,e.vy=w.y}function r(o,a,l,c,u=!1){return{x:u?o*c+a*l:o*c-a*l,y:u?a*c-o*l:a*c+o*l}}}nextFrameBounce(e,n){const s=e.x,i=e.y,r=e.x+e.width,o=e.y+e.height,a=n?.bounce??-1;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=a):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=a),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}}class rm{constructor(){}static getFormatKeyNames(e){const n=Kp(),s=[];return e.ctrl&&s.push(n?"Cmd":"Ctrl"),e.shift&&s.push("Shift"),e.alt&&s.push("Alt"),typeof e.key=="string"?s.push(fo(e.key)):Array.isArray(e.key)&&(e.key.map(i=>fo(i)),s.push(...e.key)),s}static matchKeyScheme(e,n){const s=e.ctrl??!1,i=e.shift??!1,r=e.alt??!1;if(e.exact)return(s===n.metaKey||s===n.ctrlKey)&&i===n.shiftKey&&r===n.altKey;const o=[];return s&&o.push(s===n.metaKey||s===n.ctrlKey),i&&o.push(i===n.shiftKey),r&&o.push(r===n.altKey),o.every(a=>a)}static on(e,n){if(e?.key===void 0||e?.key===null)return n;const s=e?.target??window;let i=!1;const r=this.getFormatKeyNames(e),o=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&r.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(e,a)){a.preventDefault();const l=n(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return n.title=e?.title??"",n.formatedKeyNames=r,n.pause=()=>i=!0,n.restart=()=>i=!1,n.removeListener=()=>s.removeEventListener("keydown",o),s.addEventListener("keydown",o),n}}class xe extends Ac{container;mousePoint;hammer;domEventRemoveListeners=[];constructor(e=document.documentElement,n=!0){super(),this.container=e,this.hammer=new tm(this.container),this.mousePoint=new rt({x:0,y:0}),n&&this.start()}_emitDebounce=Fp((e,...n)=>super.emit(e,...n),50);emit(e,...n){switch(e){case"panLeft":case"panRight":this._emitDebounce(e,...n);break;default:super.emit(e,...n);break}return this}static singleton;static globalScrollChangeCallbacks=[];static get page(){if(xe.singleton)return xe.singleton;xe.singleton=new xe,xe.singleton.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{jp().then(n=>Hp(n[0])).then(n=>{xe.singleton.emit("openFile",n)}).catch(n=>{xe.singleton.emit("openFileError",n)})}),xe.singleton.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>xe.globalScrollChangeCallbacks.forEach(n=>n());return xe.singleton.registerGlobalScrollChange=n=>{xe.globalScrollChangeCallbacks.push(n),xe.globalScrollChangeCallbacks.length==1&&document.addEventListener("scroll",e)},xe.singleton.removeGlobalScrollChange=n=>{const s=xe.globalScrollChangeCallbacks.findIndex(i=>i==n);s>=0&&(xe.globalScrollChangeCallbacks.splice(s,1),xe.globalScrollChangeCallbacks.length==0&&document.removeEventListener("scroll",e))},xe.singleton}start(){this.initMouseEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventRemoveListeners(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParentWhenScrollChange()}restart(){this.destroy(),this.start()}destroy(){this.domEventRemoveListeners.forEach(e=>e()),this.removeAllListeners()}addDOMEventRemoveListeners(e){this.domEventRemoveListeners.push(e)}setMousePoint(e){const n=Xp(this.container,e);return this.mousePoint.x=n.x,this.mousePoint.y=n.y,n}initMouseEventListeners(){const e=M=>{this.emit("mouseDown",M),this.container.style.userSelect="none"},n=M=>{this.emit("mouseUp",M),this.container.style.userSelect=""},s=M=>{this.emit("mouseMove",M)},i=M=>{this.emit("mouseOver",M)},r=M=>{this.emit("mouseOut",M),this.container.style.userSelect=""},o=M=>{this.emit("mouseClick",M)},a=M=>{this.emit("mouseDoubleClick",M)},l=M=>{this.emit("mouseWheel",M)},c=M=>{this.emit("mouseContextMenu",M)},u=M=>{this.emit("touchStart",M),this.container.style.userSelect="none"},h=M=>{this.emit("touchEnd",M),this.container.style.userSelect=""},f=M=>{this.emit("touchCancel",M),this.container.style.userSelect=""},d=M=>{this.emit("touchMove",M)},m=M=>{this.emit("pointerDown",M),this.container.style.userSelect="none"},v=M=>{this.emit("pointerUp",M),this.container.style.userSelect=""},y=M=>{this.emit("pointerCancel",M),this.container.style.userSelect=""},E=M=>{this.emit("pointerMove",M)},C=M=>{this.emit("pan",M)},w=M=>{this.emit("panStart",M),this.container.style.userSelect="none"},S=M=>{this.emit("panMove",M)},$=M=>{this.emit("panEnd",M),this.container.style.userSelect=""},O=M=>{this.emit("panCancel",M),this.container.style.userSelect=""},R=M=>{this.emit("panLeft",M)},le=M=>{this.emit("panRight",M)},ue=M=>{this.emit("panUp",M),this.container.style.userSelect=""},pe=M=>{this.emit("panDown",M),this.container.style.userSelect="none"},De=M=>{this.emit("pinch",M)},Oe=M=>{this.emit("press",M)},at=M=>{this.emit("rotate",M)},lt=M=>{this.emit("swipe",M)},We=M=>{this.emit("tap",M)},Te=M=>{!M.target||this.container==M.target||this.container.contains(M.target)||this.emit("tapOutSide",M)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",n),this.container.addEventListener("mousemove",s),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",y),this.container.addEventListener("pointermove",E),this.hammer.on("pan",C),this.hammer.on("panstart",w),this.hammer.on("panmove",S),this.hammer.on("panend",$),this.hammer.on("pancancel",O),this.hammer.on("panleft",R),this.hammer.on("panright",le),this.hammer.on("panup",ue),this.hammer.on("pandown",pe),this.hammer.on("pinch",De),this.hammer.on("press",Oe),this.hammer.on("rotate",at),this.hammer.on("swipe",lt),this.hammer.on("tap",We),document.addEventListener("pointerdown",Te,!1);const he=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",n),this.container.removeEventListener("mousemove",s),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",y),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",C),this.hammer.off("panstart",w),this.hammer.off("panmove",S),this.hammer.off("panend",$),this.hammer.off("pancancel",O),this.hammer.off("panleft",R),this.hammer.off("panright",le),this.hammer.off("panup",ue),this.hammer.off("pandown",pe),this.hammer.off("pinch",De),this.hammer.off("press",Oe),this.hammer.off("rotate",at),this.hammer.off("swipe",lt),this.hammer.off("tap",We),document.removeEventListener("pointerdown",Te,!1),document.removeEventListener("touchstart",Te,!1),document.removeEventListener("mousedown",Te,!1)};return this.addDOMEventRemoveListeners(he),he}registerKeyDown(e,n,s){const i=rm.on(e,o=>(n(o,i.formatedKeyNames,i.pause,i.restart),s)),r=()=>{i.removeListener?.()};return this.addDOMEventRemoveListeners(r),r}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:i,height:r}=s[0].contentRect;this.emit("resize",i,r)});e.observe(this.container);const n=()=>{e.unobserve(this.container)};return this.addDOMEventRemoveListeners(n),n}registerMatchMediaChange(e){let n="";switch(e){case"(prefers-color-scheme: dark)":n="matchMediaChangePrefersColorSchemeDark";break;default:n=e;break}const s=r=>{this.emit(n,r.matches)};window.matchMedia(e).addEventListener("change",s);const i=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventRemoveListeners(i),i}registerElementDisplayInParentWhenScrollChange(e){const n={threshold:e?.threshold||.5,root:e?.parentElement},s=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>=n.threshold?this.emit("showInParent"):this.emit("showOffParent")},n);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventRemoveListeners(i),i}registerPullDownRefresh(e){const n=e?.distance||50;let s=0,i=0;return this.captureMove({start:r=>{s=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<n&&this.emit("pullDownIng",i)},end:()=>{i>=n&&this.emit("pullDown")}})}registerPullUpLoading(e){const n=e?.distance||50;let s=0,i=0;return this.captureMove({start:r=>{s=this.setMousePoint(r).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<n&&this.emit("pullUpIng",i)},end:()=>{i>=n&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const n=o=>{this.container.setPointerCapture(o.pointerId),this.container.style.userSelect="none",e?.start?.(o)},s=o=>{this.container.style.userSelect="",e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("pointerDown",n),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",n),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventRemoveListeners(r),r}captureMoveUseMouse(e){const n=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(o)},s=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("mouseDown",n);const r=()=>{this.off("mouseDown",n)};return this.addDOMEventRemoveListeners(r),r}captureMoveUseTouch(e){const n=o=>{o.preventDefault(),e?.start?.(o)},s=o=>{e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("touchStart",n),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const r=()=>{this.off("touchStart",n),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventRemoveListeners(r),r}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class vo{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",n=>{n.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const n=document.createElement("iframe"),s=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",s.append(i),n.width="5",n.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(n),n.contentDocument?.body.append(s),setTimeout(()=>{n.width="15"}),setTimeout(()=>{n.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(n=>{e.play().then(()=>{e.autoplay=!0,n(!0)}).catch(()=>{vo.setAutoPlayWhenClick(e),n(!1)})})}static setAutoPlayWhenClick(e){function n(){e.autoplay=!0,e.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}class om extends Ac{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Op(this.source);if(e===0){this.emit("finish");return}let n,s,i=Pc(this.source,0);for(let r=1;r<e;r++)n=s,s=i,i=Pc(this.source,r),this.raw+=s,s&&this.step(s,i,n);i&&this.step(i,void 0,s),this.emit("finish")}step(e,n,s){e==`
55
+ `&&this.emit("newline"),this.act(e,n,s)}act(e,n,s){switch(this.mode){case"text":switch(e){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":Qt("whitespace",e)?(this.textchunk+=Z.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=Z.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(s=="!"&&e=="-"&&n=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(s=="]"&&e=="]"&&n==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,n,s)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":n==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&s=="-"&&n==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&n==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!Qt("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,n,s)}break;case"close tag name start":Qt("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,n,s));break;case"close tag name":if(Qt("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if(Qt("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=n,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":Qt("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,n,s));break;case"attr":if(Qt("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=e;break}break;case"attr value start":if(!Qt("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,n,s)}break;case"attr value":if(Qt("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function Xc(t,e){if(typeof e<"u")window.localStorage.setItem(t,e);else return window.localStorage.getItem(t)??void 0}xe.page.on("matchMediaChangePrefersColorSchemeDark",t=>{yo(t?"dark":"light")}),am();function yo(t){Xc("colorScheme",t),document.documentElement.classList.toggle("dark",t=="dark")}function am(){const t=Xc("colorScheme");if(t=="dark"||t=="light")return yo(t),t;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return yo(e),e}}const ne={safeAreaTop:Z.getCSSVar("--safe-area-inset-top"),safeAreaRight:Z.getCSSVar("--safe-area-inset-right"),safeAreaBottom:Z.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:Z.getCSSVar("--safe-area-inset-left"),colorPrimary:Z.getCSSVar("--color-primary")||"#5078f0",colorRed:Z.getCSSVar("--color-red")||"#ff5050",colorOrange:Z.getCSSVar("--color-orange")||"#fa8c00",colorYellow:Z.getCSSVar("--color-yellow")||"#fadc32",colorGreen:Z.getCSSVar("--color-green")||"#00c878",colorBlue:Z.getCSSVar("--color-blue")||"#00b4fa",colorPurple:Z.getCSSVar("--color-purple")||"#6464fa",colorBlack:Z.getCSSVar("--color-black")||"#001428",colorGray00:Z.getCSSVar("--color-gray-00")||"#000000",colorGray33:Z.getCSSVar("--color-gray-33")||"#333333",colorGray66:Z.getCSSVar("--color-gray-66")||"#666666",colorGray99:Z.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:Z.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:Z.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:Z.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:Z.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:Z.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:Z.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:Z.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:Z.getCSSVar("--font-line-height")||"1,4",fontSize32:Z.getCSSVar("--font-size-32")||"32px",fontSize24:Z.getCSSVar("--font-size-24")||"24px",fontSize20:Z.getCSSVar("--font-size-20")||"20px",fontSize18:Z.getCSSVar("--font-size-18")||"18px",fontSize16:Z.getCSSVar("--font-size-16")||"16px",fontSize14:Z.getCSSVar("--font-size-14")||"14px",fontSize12:Z.getCSSVar("--font-size-12")||"12px",fontSize11:Z.getCSSVar("--font-size-11")||"11px",gap4:Z.getCSSVar("--gap-4")||"4px",gap8:Z.getCSSVar("--gap-8")||"8px",gap12:Z.getCSSVar("--gap-12")||"12px",gap16:Z.getCSSVar("--gap-16")||"16px",gap20:Z.getCSSVar("--gap-20")||"20px",gap40:Z.getCSSVar("--gap-40")||"40px",height44:Z.getCSSVar("--height-44")||"44px",height32:Z.getCSSVar("--height-32")||"32px",borderRadius:Z.getCSSVar("--border-radius")||"4px"},lm=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,cm=function(t,e=1){const n=t>>16&255,s=t>>8&255,i=t&255,r=e<0?0:e>1?1:e;return r===1?"rgb("+n+","+s+","+i+")":"rgba("+n+","+s+","+i+","+r+")"},qc=function(t){return t[0]==="#"&&(t=t.slice(1)),parseInt(t,16)},um=function(t,e=1){const n=qc(t);return cm(n,e)};function Ps(t,e){let n=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16);n==0&&(n=32),s==0&&(s=32),i==0&&(i=32),n=n*(100+e)/100,s=s*(100+e)/100,i=i*(100+e)/100,n=n<255?n:255,s=s<255?s:255,i=i<255?i:255,n=Math.round(n),s=Math.round(s),i=Math.round(i);const r=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),o=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+r+o+a}const Di=new Map;async function hm(t){return new Promise((e,n)=>{fm(t,(s,i)=>s?n(s):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const fm=(t,e)=>{if(Di.has(t))return e(null,Di.get(t));const n=new Image;n.onload=function(){Di.set(t,{width:n.naturalWidth||n.width,height:n.naturalHeight||n.height,element:n}),e(null,Di.get(t))},n.onerror=function(s){e(s,null)},n.src=t},Kc=[1,0,0,1,0,0],Zc=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class ot{value;matrix3d;isEverTo3d=!1;_prev_translate_z=0;_prev_rotate=0;_prev_rotate_x=0;_prev_rotate_y=0;_prev_rotate_z=0;_prev_scale_z=1;constructor(e=Kc){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Kc),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,n,s=0,i=0){const r=e-s,o=n-i;return e=r*this.value[0]+o*this.value[2]+this.value[4],n=r*this.value[1]+o*this.value[3]+this.value[5],[e+s,n+i]}fromString(e){const n=kc("number",e);return n.length===6?n.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(e=this.matrix3d){const n=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return e?(e.value=n,e):new Wn(n)}clone(){return new ot(this.value)}multiply(e){const n=this.value;let s;e instanceof ot?s=e.value:s=e;const i=n[0]*s[0]+n[2]*s[1],r=n[1]*s[0]+n[3]*s[1],o=n[0]*s[2]+n[2]*s[3],a=n[1]*s[2]+n[3]*s[3],l=n[0]*s[4]+n[2]*s[5]+n[4],c=n[1]*s[4]+n[3]*s[5]+n[5];return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=l,n[5]=c,this}inverse(){const e=new ot(this.value),n=e.value,s=1/(n[0]*n[3]-n[1]*n[2]),i=n[3]*s,r=-n[1]*s,o=-n[2]*s,a=n[0]*s,l=s*(n[2]*n[5]-n[3]*n[4]),c=s*(n[1]*n[4]-n[0]*n[5]);return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=l,n[5]=c,e}offset(e=0,n=0){return[e-this.value[4],n-this.value[5]]}translate(e,n){return this.matrix3d.translate(e,n,0),this.multiply([1,0,0,1,e,n])}translateTo(e,n){const s=this.offset(e,n);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.value[5])}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.value[4],e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translateZTo(e){return this.translateZ(e-this._prev_translate_z),this._prev_translate_z=e,this}translate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,n,s)}translate3dTo(e,n,s){return this.translate3d(e-this.matrix3d.value[12],e-this.matrix3d.value[13],s-this._prev_translate_z),this._prev_translate_z=s,this}rotate(e,n=0,s=0){const i=zc(e),r=+Math.cos(i).toFixed(9),o=+Math.sin(i).toFixed(9);return this.multiply([r,o,-o,r,n,s]),this.translate(-n,-s),this}rotateTo(e,n=0,s=0){return this.rotate(e-this._prev_rotate,n,s),this._prev_rotate=e,this}rotateX(e){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotate_x),this._prev_rotate_x=e,this}rotateY(e){return this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotate_y),this._prev_rotate_y=e,this}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotateZTo(e){return this.rotateZ(e-this._prev_rotate_z),this._prev_rotate_z=e,this}rotate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",n).rotate("z",s)}rotate3dTo(e,n,s){return this.rotate3d(e-this._prev_rotate_x,n-this._prev_rotate_y,s-this._prev_rotate_z),this._prev_rotate_x=e,this._prev_rotate_y=n,this._prev_rotate_z=s,this}scale(e,n=e,s=0,i=0){return this.matrix3d.scale(e,n,1),this.translate(s,i),this.multiply([e,0,0,n,0,0]),this.translate(-s,-i),this}scaleTo(e,n=e,s=0,i=0){return this.scale(e/this.value[0],n/this.value[3],s,i),this}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.value[0],1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.value[3])}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scaleZTo(e){return this.scaleZ(e/this._prev_scale_z),this._prev_scale_z=e,this}scale3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.scale(e,n,s)}scale3dTo(e,n,s){return this.scale3d(e/this.matrix3d.value[0],n/this.matrix3d.value[5],s/this._prev_scale_z),this._prev_scale_z=s,this}skew(e,n=e){const s=e*Math.PI/180,i=n*Math.PI/180,r=Math.tan(s),o=Math.tan(i);return this.multiply([1,o,r,1,0,0])}skewTo(e,n=e){return this.skew(e-this.value[2],n-this.value[1])}skewX(e){return this.skew(e,this.value[1])}skewXTo(e){return this.skewTo(e,this.value[1])}skewY(e){return this.skew(this.value[2],e)}skewYTo(e){return this.skewTo(this.value[2],e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,n,s){return this}skew3dTo(e,n,s){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(Math.pow(n[0][0],2)+Math.pow(n[0][1],2));let s=Uc(n[0][0],n[0][1]);n[0][0]=s.x,n[0][1]=s.y,e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=Math.sqrt(Math.pow(n[1][0],2)+Math.pow(n[1][1],2)),s=Uc(n[1][0],n[1][1]),n[1][0]=s.x,n[1][1]=s.y,e.shear/=e.scaley;const i=-n[0][1],r=n[1][1];return r<0?(e.rotate=jc(Math.acos(r)),i<0&&(e.rotate=360-e.rotate)):e.rotate=jc(Math.asin(i)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}static split2(e){const n=Math.atan2(e[1],e[0]),s=Math.pow(e[0],2)+Math.pow(e[1],2),i=Math.sqrt(s),r=(e[0]*e[3]-e[2]*e[1])/i;return{rotation:n/(Math.PI/180),scaleX:i,scaleY:r,x:e[4],y:e[5]}}static getGroupCoords(e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=n[0],u=n[1],h=n[2],f=n[3],d=n[4],m=n[5],v=c*f,y=u*h,E=(h*i-s*f)/(y-v),C=(c*i-s*u)/(v-y),w=(h*o-r*f)/(y-v),S=(c*o-r*u)/(v-y),$=(h*(l-m)+f*(d-a))/(y-v),O=(c*(l-m)+u*(d-a))/(v-y),R=[E,C,w,S,$,O];return ot.split2(R)}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(e=>Mc(e,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class Wn{value;constructor(e=Zc){this.value=Array.from(e)}unit(){return this.value=Array.from(Zc),this}fromString(e){const n=kc("number",e);return n.length===16?n.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=n,e):new ot(n)}multiplyMatrix(e){const n=this.value[0],s=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=this.value[6],c=this.value[7],u=this.value[8],h=this.value[9],f=this.value[10],d=this.value[11],m=this.value[12],v=this.value[13],y=this.value[14],E=this.value[15],C=e.value[0],w=e.value[1],S=e.value[2],$=e.value[3],O=C*n+w*o+S*u+$*m,R=C*s+w*a+S*h+$*v,le=C*i+w*l+S*f+$*y,ue=C*r+w*c+S*d+$*E;return new ot([O,R,le,ue,0,0])}multiply(e){const n=new ot([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new ot([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new ot([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),r=new ot([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),o=this.multiplyMatrix(n),a=this.multiplyMatrix(s),l=this.multiplyMatrix(i),c=this.multiplyMatrix(r);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(e=0,n=0,s=0){return this.multiply(new Wn([1,0,0,0,0,1,0,0,0,0,1,0,e,n,s,1]))}scale(e=1,n=1,s=1){return this.multiply(new Wn([e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1]))}rotate(e,n){const s=zc(n),i=Math.sin,r=Math.cos;let o;switch(e){case"x":o=[1,0,0,0,0,r(s),i(s),0,0,-i(s),r(s),0,0,0,0,1];break;case"y":o=[r(s),0,-i(s),0,0,1,0,0,i(s),0,r(s),0,0,0,0,1];break;case"z":o=[r(s),i(s),0,0,-i(s),r(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new Wn(o))}toString(){return`matrix3d(${this.value.map(e=>Mc(e,6)).join(",")})`}}function Ai(t){const e=new ot;return t.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,s,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(s.toLowerCase()){case"t":case"translate":e.translate(r[0],r[1]);break;case"translatex":e.translateX(r[0]);break;case"translatey":e.translateY(r[0]);break;case"translatez":e.translateZ(r[0]);break;case"translate3d":e.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":e.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":e.rotateX(r[0]);break;case"rotatey":e.rotateY(r[0]);break;case"rotatez":e.rotateZ(r[0]);break;case"rotate3d":e.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":e.scale(r[0],r[1]??r[0]);break;case"scalex":e.scaleX(r[0]);break;case"scaley":e.scaleY(r[0]);break;case"scalez":e.scaleZ(r[0]);break;case"scale3d":e.scale3d(r[0],r[1],r[2]);break;case"skew":e.skew(r[0],r[1]??0);break;case"skewx":e.skewX(r[0]);break;case"skewy":e.skewY(r[0]);break;case"skewz":e.skewZ(r[0]);break;case"skew3d":e.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":e.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]);break;case"matrix3d":e.matrix3d.multiply(new Wn(r));break}return""}),e}class dm extends om{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(n,s)=>{switch(this.text="",this.currentItem={type:n},n){case"g":this.groups.push(this.currentItem);break}this.processAttrs(n,s)}),this.on("text",n=>{if(this.currentItem.type=="style"){try{const s=Vp(n);for(let i of s.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: "+n)}return}this.text+=n}),this.on("/tag",(n,s)=>{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),xo(this.currentItem.style,this.currentItem,wo)}switch(this.processAttrs(n,s),n){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(e,n){let s=[],i;switch(e){case"svg":let r="",o="";if(n.width&&n.height)r=n.width,o=n.height;else if(n.viewBox){const a=n.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 n.x1=="number"&&typeof n.y1=="number"&&typeof n.x2=="number"&&typeof n.y2=="number"&&(this.currentItem.path="M"+[n.x1,n.y1,n.x2,n.y2]);break;case"stop":i={},n.style&&xo(n.style,i),i.offset=i.offset||n.offset,i.color=i["stop-color"]||n["stop-color"],i.opacity=i["stop-opacity"]||n["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+bo(parseFloat(n.x1),parseFloat(n.y1),parseFloat(n.x2),parseFloat(n.y2),parseFloat(n.x1)+100,parseFloat(n.y1))).toFixed(2),s=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in n){const o=n[r];if(wo.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"&&xo(o,this.currentItem,wo),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 bo(t,e,n,s,i,r){if(typeof i>"u"||typeof r>"u"){const o=t-n,a=e-s;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return bo(t,e,i,r)-bo(n,s,i,r)}function xo(t,e,n){const s=(t+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=s.length;r<o;r++){let a=s[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!n||n.includes(l))&&(e[l]=a[1].replace(i,""))}}const wo=["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 ft extends Rn{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,n){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new ft({x:e[1],y:e[2],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=Hc(this.fromX,this.fromY,this.x,this.y);if(e===0){const n=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new Dt({x:n,y:s,width:i-n,height:r-s})}else{const n=Math.sin(e),s=Math.cos(e),i=s*this.fromX-n*this.fromY,r=s*this.x-n*this.y,o=s*this.fromY+n*this.fromX,a=s*this.y+n*this.x;return new Dt({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)})}}}class Eo extends ft{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,n){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Eo({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=ht.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new Dt({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}base3(e,n,s,i,r){const o=-3*n+9*s-9*i+3*r,a=e*o+6*n-12*s+6*i;return e*a-3*n+3*s}length(e=1){e=Math.max(0,Math.min(e,1));const n=e/2,s=12,i=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],r=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let o=0;for(let a=0;a<s;a++){const l=n*i[a]+n,c=this.base3(l,this.fromX,this.c1x,this.c2x,this.x),u=this.base3(l,this.fromY,this.c1y,this.c2y,this.y),h=c*c+u*u;o+=r[a]*Math.sqrt(h)}return n*o}}const Co=Eo;class To extends ft{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,n){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new To({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}}const Qc=To;class Ri{prevPoint;startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(){}setStartPoint(e,n){return this.startPoint=new rt({x:e,y:n}),this.prevPoint=this.startPoint,this}addLine(e){return this.lines.push(e),this}static fromSVGPathD(e,n){if(!ht.isSVGPath(e))throw new Error("Not an SVG path!");return this.fromSVGPathData(ht.parseSVGPath(e),n)}static fromSVGPathData(e,n){const s=new Ri,i=ht.normalizeSVGPath(ht.absolutizeSVGPath(e));for(let o=0,a=i.length;o<a;o++){const l=i[o],c=l[0];if(o==0&&c=="M"){s.setStartPoint(l[1],l[2]);continue}if(o==a-1&&c=="Z"){s.isClosed=!0;continue}s.addLine(new Co({c1x:l[1],c1y:l[2],c2x:l[3],c2y:l[4],x:l[5],y:l[6]}))}s.normalize();const r=Ai(n??"");return s.transform(r)}normalize(){this.normalizedLines=[];const e=ht.normalizeSVGPath(ht.absolutizeSVGPath(this.lines.map(n=>n.toSVGPathData())));for(let n=0,s=e.length;n<s;n++){const i=e[n];this.normalizedLines.push(Co.fromSVGPathData(i,this.prevPoint)),this.prevPoint=new rt({x:i[i.length-2],y:i[i.length-1]})}return this}toSVGPathData(){const e=[];this.startPoint&&e.push(this.startPoint.toSVGPathData());for(let n=0,s=this.normalizedLines.length;n<s;n++)e.push(this.normalizedLines[n].toSVGPathData());return this.isClosed&&e.push(["Z"]),e}toSVGPathD(){return ht.SVGPathDataToD(this.toSVGPathData())}transform(e){if(this.startPoint){const[n,s]=e.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(n,s)}return this.normalizedLines=this.normalizedLines.map(n=>{const[s,...i]=n.toSVGPathData(),r=[s];for(let o=0,a=i.length;o<a;o+=2){const[l,c]=e.transformPoint(i[o],i[o+1]);r.push(l,c)}return Co.fromSVGPathData(r)}),this}translate(e,n){const s=new ot().translate(e,n);return this.transform(s)}rotate(e,n=0,s=0){const i=new ot().rotate(e,n,s);return this.transform(i)}scale(e,n=e,s=0,i=0){const r=new ot().scale(e,n,s,i);return this.transform(r)}skew(e,n=0){const s=new ot().skew(e,n);return this.transform(s)}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}toCanvasContext(e){this.normalizedLines.length&&(this.startPoint&&(e.beginPath(),e.moveTo(this.startPoint.x,this.startPoint.y)),this.normalizedLines.forEach(n=>{const[s,...i]=n.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}),this.isClosed&&e.closePath())}getBoundingClientRect(){let e=0,n=0,s=[],i=[];this.startPoint&&(e=this.startPoint.x,n=this.startPoint.y,s.push(e),i.push(n)),this.normalizedLines.forEach(c=>{const u=ht.curveDim(e,n,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,n=c.y});const r=Math.min.apply(0,s),o=Math.min.apply(0,i),a=Math.max.apply(0,s),l=Math.max.apply(0,i);return new Dt({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return Tc?ht.createSvgPath(this.toSVGPathD()).getTotalLength():ht.getWalkSVGPathD(this.toSVGPathD()).length()}getPointAtLength(e){if(Tc)return ht.createSvgPath(this.toSVGPathD()).getPointAtLength(e);{const n=ht.getWalkSVGPathD(this.toSVGPathD()),[s,i]=n.at(e);return{x:s,y:i}}}isPointInPath(e,n,s){return e.isPointInPath(new Path2D(this.toSVGPathD()),n,s)}isPointInStroke(e,n,s){return e.isPointInStroke(new Path2D(this.toSVGPathD()),n,s)}static generateRosetta(e,n,s,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new Ri;o.setStartPoint(e,n);const a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=e+2*s*Math.cos(c),h=n+2*s*Math.sin(c);o.addLine(new Qc({x:u,y:h,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.addLine(new Qc({x:e,y:n,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o.normalize(),o}}class So extends Rn{svgWidth=0;svgHeight=0;width=0;height=0;pgas=[];history=[];save(){this.history.push(Ni(this.pgas))}restore(){const e=this.history.pop();e&&(this.pgas=e)}current(){return Ni(this.pgas)}constructor(e){super(e),this.width=e.width;const n=new dm(e.svg).parse();for(let s=0,i=n.length;s<i;s++){const r=n[s];if(r.type=="viewbox"&&r.width&&r.height){this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height);const l=this.svgWidth/this.svgHeight;this.height=this.width/l;continue}if(r.type!="path")continue;const o={};for(const l in r)l==="type"||l==="path"||l==="transform"||(o[l]=r[l]);const a=Ri.fromSVGPathD(r.path,r.transform);this.width&&this.svgWidth&&a.scale(this.width/this.svgWidth),this.pgas.push({pg:a,attrs:o})}}getBoundingClientRect(){return new Dt({x:this.x,y:this.y,width:this.width,height:this.height})}toSVGPathData(){return this.pgas.map(e=>e.pg.toSVGPathData()).reduce((e,n)=>e.concat(n),[])}toCanvasContext(e){for(let n=0,s=this.pgas.length;n<s;n++){e.save();const i=this.pgas[n];this.SVGAttrsToCanvasAttrs(e,i.attrs),i.pg.toCanvasContext(e),i.attrs.stroke!=="none"&&e.stroke(),i.attrs.fill!=="none"&&e.fill(),e.restore()}}SVGAttrsToCanvasAttrs(e,n){for(const s in n){const i=n[s];switch(s){case"fill":e.fillStyle=i;break;case"stroke":e.strokeStyle=i;break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":e.lineJoin=i;break}}}}class ko extends Rn{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=[];for(let n=0,s=this.length;n<s;n++)e.push([n===0?"M":"L",this.points[n].x,this.points[n].y]);return e}toCanvasContext(e){const n=this.points.length;if(n<3)throw new Error("points length must >= 3");e.beginPath();const s=(this.points[0].x+this.points[n-1].x)/2,i=(this.points[0].y+this.points[n-1].y)/2;e.moveTo(s,i);let r=0;for(;r<n-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;e.quadraticCurveTo(this.points[r].x-this.x,this.points[r].y-this.y,o-this.x,a-this.y)}e.quadraticCurveTo(this.points[r].x-this.x,this.points[r].y-this.y,s-this.x,i-this.y)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,n){const s=this.length;let i=!1;const r=2e-10;for(let o=0,a=s-1;o<s;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===e&&c===n||u===e&&h===n||n===c&&n===h)return!0;if(n>=c&&n<h||n<c&&n>=h){const f=(u-l)/(h-c),d=l+f*(n-c);if(d===e||Math.abs(d-e)<r)return!0;d>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generateInMultiplePoint(e,n,s,i,r=1){const o=new ko;for(let a=0;a<=r*s;a+=1){const l=Math.floor(a/r)/s*2*Math.PI,c=e+Math.cos(l)*i,u=n+Math.sin(l)*i;o.addPoint(new rt({x:c,y:u}))}return o}}class Po extends ft{cx;cy;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy}static fromSVGPathData(e,n){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new Po({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e,n){const s=typeof n?.isLineThrough=="boolean"?n?.isLineThrough:!0;if(e.beginPath(),e.moveTo(this.fromX,this.fromY),s){const i=this.cx*2-(this.fromX+this.x)/2,r=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(i,r,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}}class Jc extends Rn{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",0,-25],["l",0,-50],["l",50,0],["l",0,50],["l",0,25],["l",-50,25],["l",-50,-25],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class pm extends Rn{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",8,16],["l",14,10],["l",15,0],["l",9,-10],["l",2,0],["l",-2,0],["l",-9,-10],["l",-15,0],["l",-14,10],["l",-8,16],["l",-4,24],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}(function(){let t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const n=new Date().getTime(),s=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+s)},s);return t=n+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const mm=t=>{let e=window.requestAnimationFrame(function n(s){e=window.requestAnimationFrame(n),t(s,e)});return()=>window.cancelAnimationFrame(e)};class gm{id=0;renders={};cancelFn;constructor(){}get length(){let e=0;for(let n in this.renders)e++;return e}register(e){const n=this.id++;this.renders[n]=e,this.run()}registerAccurateSetTimeout(e,n=0){let s;this.register(i=>(s||(s=i),i-s>=n?(e(),!1):!0))}run(){this.cancelFn||(this.cancelFn=mm((e,n)=>{const s=[];for(let i in this.renders)this.renders[i](e)===!1&&s.push(parseInt(i));for(let i of s)delete this.renders[i];!this.length&&this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}))}}const dt=new gm;let Ns;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ns=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ns=self.performance.now.bind(self.performance):Date.now!==void 0?Ns=Date.now:Ns=function(){return new Date().getTime()};const Yn=Ns;class Os{static _nextId=0;static nextId(){return Os._nextId++}}const $i={Linear:{None:function(t){return t}},Ease:{In:function(t){return Math.pow(t,1.7)}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}},Exponential:{In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}},Back:{In:function(t){return t===1?1:t*t*((1.70158+1)*t-1.70158)},Out:function(t){return t===0?0:--t*t*((1.70158+1)*t+1.70158)+1},InOut:function(t){const e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-$i.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?$i.Bounce.In(t*2)*.5:$i.Bounce.Out(t*2-1)*.5+.5}},generatePow:function(t=4){return t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return e**t},Out:function(e){return 1-(1-e)**t},InOut:function(e){return e<.5?(e*2)**t/2:(1-(2-e*2)**t)/2+.5}}},random:function(t){return Math.random()},createStep:function(t){return function(e){return Math.floor(e*t)/t}},createNoisyEasing:function(t,e=.1){const n=1-e;return function(s){return e*Math.random()+n*t(s)}}},No=$i,Is={Utils:{Linear:function(t,e,n){return(e-t)*n+t},Factorial:function(){const t=[1];return function(e){let n=1;if(t[e])return t[e];for(let s=e;s>1;s--)n*=s;return t[e]=n,n}}(),Bernstein:function(t,e){const n=Is.Utils.Factorial;return n(t)/n(e)/n(t-e)},CatmullRom:function(t,e,n,s,i){const r=(n-t)*.5,o=(s-e)*.5,a=i*i,l=i*a;return(2*e-2*n+r+o)*l+(-3*e+3*n-2*r-o)*a+r*i+e}},Linear:function(t,e){const n=t.length-1,s=n*e,i=Math.floor(s),r=Is.Utils.Linear;return e<0?r(t[0],t[1],s):e>1?r(t[n],t[n-1],n-s):r(t[i],t[i+1>n?n:i+1],s-i)},Bezier:function(t,e){let n=0;const s=t.length-1,i=Math.pow,r=Is.Utils.Bernstein;for(let o=0;o<=s;o++)n+=i(1-e,s-o)*i(e,o)*t[o]*r(s,o);return n},CatmullRom:function(t,e){const n=t.length-1;let s=n*e,i=Math.floor(s);const r=Is.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(s=n*(1+e))),r(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],s-i)):e<0?t[0]-(r(t[0],t[0],t[1],t[1],-s)-t[0]):e>1?t[n]-(r(t[n],t[n],t[n-1],t[n-1],s-n)-t[n]):r(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],s-i)}},Oo=Is;class eu{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Yn(),n=!1){let s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(let i=0;i<s.length;i++){const r=this._tweens[s[i]],o=!n;r&&r.update(e,o)===!1&&!n&&delete this._tweens[s[i]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Tt=new eu;class _m{constructor(e,n=Tt){this._object=e,this._group=n}_id=Os.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=No.Linear.None;_interpolationFunction=Oo.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,n){return this._valuesEnd=Object.create(e),n!==void 0&&(this._durationTime=n),this}duration(e=1e3){return this._durationTime=e,this}start(e=Yn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,n,s,i){for(const r in s){const o=e[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(s[r]);if(!(l==="undefined"||l==="function")){if(c){let u=s[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),s[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){n[r]=a?[]:{};for(const u in o)n[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,n[r],s[r],i[r])}else typeof n[r]>"u"&&(n[r]=o),a||(n[r]*=1),c?i[r]=s[r].slice().reverse():i[r]=n[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Yn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Yn()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this}group(e=Tt){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=No.Linear.None){return this._easingFunction=e,this}interpolation(e=Oo.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Yn(),n=!0){if(this._isPaused)return!0;let s,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>r)return!1;n&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,n,s,i){for(const r in s){if(n[r]===void 0)continue;const o=n[r]||0;let a=s[r];const l=Array.isArray(e[r]),c=Array.isArray(a);!l&&c?e[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[r]=o+(a-o)*i))}}_handleRelativeValue(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(e){const n=this._valuesStartRepeat[e],s=this._valuesEnd[e];typeof s=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(s):this._valuesStartRepeat[e]=s,this._valuesEnd[e]=n}}const vm=_m,ym=Os.nextId,bm=Tt.getAll.bind(Tt),xm=Tt.removeAll.bind(Tt),wm=Tt.add.bind(Tt),Em=Tt.remove.bind(Tt),Cm=Tt.update.bind(Tt),se={now:Yn,Sequence:Os,Easing:No,Interpolation:Oo,Group:eu,Tween:vm,nextId:ym,getAll:bm,removeAll:xm,add:wm,remove:Em,update:Cm};function tu(t){switch(t){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 Tm={attributeName:["display"],values:[["block","block"]]},wt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Ye{currentPredefinedAnimateName;currentPredefinedAnimateArgs;objects=[];currentObjects=[];isRunning=!1;constructor(){}destroy(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(n=>{this.objects.push({width:parseFloat(Z.getStyle(n,"width")),height:parseFloat(Z.getStyle(n,"height")),el:n,originCSSObject:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(e){Ye.isRunningGlobalTween||dt.register(()=>(Ye.isRunningGlobalTween=se.update(e?.()),Ye.isRunningGlobalTween))}static toTween(e,n,s){const i=s?.onUpdate??(()=>{}),r=s?.onStart??(()=>{}),o=s?.onComplete??(()=>{}),a=s?.duration??1e3,l=s?.delay??0,c=s?.easeFunction??se.Easing.Linear.None,u=s?.repeat??0,h=s?.yoyo??!1,f=new se.Tween(e).to(n,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(r).onUpdate(function(d,m){i(d,m)}).onComplete(o);return s?.interpolationFunction&&f.interpolation(s.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),dt.register(()=>{const m=f.update(d?.());if(s?.precision){let v=!0;for(let y in e)po(e[y],n[y],s.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenCSS(e,n,s,i){const r={_matrix:Ai(Z.getStyle(e,"transform")??"")},o=i?.onUpdate??(()=>{});return Ye.toTween(n,s,Object.assign(i??{},{onUpdate:(a,l)=>{for(let c in a)Ye.setCSSObjectTransformUseMatrix(c,a[c],r);e.style.transform=r.transform,o(a,l)}}))}static setCSSObjectTransformUseMatrix(e,n,s={},i){switch(e){case"translate":s._matrix.translate(n[0]??0,n[1]??0);break;case"translateTo":s._matrix.translateTo(n[0]??0,n[1]??0);break;case"translateX":s._matrix.translateX(n??0);break;case"translateXTo":s._matrix.translateXTo(n??0);break;case"translateY":s._matrix.translateY(n??0);break;case"translateYTo":s._matrix.translateYTo(n??0);break;case"translateZ":s._matrix.translateZ(n??0);break;case"translateZTo":s._matrix.translateZTo(n??0);break;case"translate3d":s._matrix.translate3d(n[0]??0,n[1]??0,n[2]??0);break;case"translate3dTo":s._matrix.translate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotate":typeof n=="number"?s._matrix.rotate(n??0):s._matrix.rotate(n[0]??0,n[1]??0,n[2]??0);break;case"rotateTo":typeof n=="number"?s._matrix.rotateTo(n??0):s._matrix.rotateTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotateX":s._matrix.rotateX(n??0);break;case"rotateXTo":s._matrix.rotateXTo(n??0);break;case"rotateY":s._matrix.rotateY(n??0);break;case"rotateYTo":s._matrix.rotateYTo(n??0);break;case"rotateZ":s._matrix.rotateZ(n??0);break;case"rotateZTo":s._matrix.rotateZTo(n??0);break;case"rotate3d":s._matrix.rotate3d(n[0]??0,n[1]??0,n[2]??0);break;case"rotate3dTo":s._matrix.rotate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"scale":typeof n=="number"?s._matrix.scale(n??1):s._matrix.scale(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleTo":typeof n=="number"?s._matrix.scaleTo(n??1):s._matrix.scaleTo(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleX":s._matrix.scaleX(n??1);break;case"scaleXTo":s._matrix.scaleXTo(n??1);break;case"scaleY":s._matrix.scaleY(n??1);break;case"scaleYTo":s._matrix.scaleYTo(n??1);break;case"scaleZ":s._matrix.scaleZ(n??1);break;case"scaleZTo":s._matrix.scaleZTo(n??1);break;case"scale3d":s._matrix.scale3d(n??1);break;case"scale3dTo":s._matrix.scale3dTo(n??1);break;case"skew":typeof n=="number"?s._matrix.skew(n??0):s._matrix.skew(n[0]??0,n[1]??0);break;case"skewTo":typeof n=="number"?s._matrix.skewTo(n??0):s._matrix.skewTo(n[0]??0,n[1]??0);break;case"skewX":s._matrix.skewX(n??0);break;case"skewXTo":s._matrix.skewXTo(n??1);break;case"skewY":s._matrix.skewY(n??0);break;case"skewYTo":s._matrix.skewYTo(n??1);break;case"skewZ":case"skewZTo":case"skew3d":case"skew3dTo":break;default:i&&!Object.prototype.hasOwnProperty.call(i.originCSSObject,e)&&(i.originCSSObject[e]=Z.getStyle(i.el,e)),Object.assign(s,{[e]:`${n??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addCurrentObject(e=Tm,n=wt,s=0,i,r=!1){const o=n.keyTimes??[0,1],a=[];o.forEach((c,u)=>{u>0&&a.push(tu(n.easeName??"linear"))});const l=n.dur??300;return this.currentObjects=r?[]:this.currentObjects,this.currentObjects.push({objectIndex:s,sequenceType:i,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,begin:n.begin??0,dur:l,keyTimes:o,realKeyTimes:o.map(c=>l*c),keySplines:a,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze",onComplete:n.onComplete}),this}_resetGroupCurrentObjects(e,n,s,i,r=wt,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=mo(o,0,h);let f=o-1;f=mo(f,0,h);let d=o+1;d=mo(d,0,h);const m=this.objects[o],v=this.objects[f],y=this.objects[d];if(v&&f!==o){const E=e(v);E&&(this._addCurrentObject(E,r,f,"prev",a),a=!1,l=!0)}if(m){const E=n(m);E&&(this._addCurrentObject(E,r,o,"current",a),a=!1,c=!0)}if(y&&d!==o){const E=s(y);E&&(this._addCurrentObject(E,r,d,"next",a),a=!1,u=!0)}this.objects.forEach((E,C)=>{if(!(C==f&&l||C==o&&c||C==d&&u)){const w=i(E);w&&(this._addCurrentObject(w,r,C,"other",a),a=!1)}})}toCSS(e,...n){if(!this.hasObjects()||this.isRunning)return;switch(this.currentPredefinedAnimateName=e,this.currentPredefinedAnimateArgs=n,this[e](...n),this.objects[0].el&&this.objects[0].el.parentElement&&(this.objects[0].el.parentElement.style.position=Z.getStyle(this.objects[0].el.parentElement,"transform")||"relative",this.objects[0].el.parentElement.style.perspective=Z.getStyle(this.objects[0].el.parentElement,"perspective")||"1000px"),e){default:this.objects.forEach((r,o)=>{Z.setStyle(r.el,Object.assign(r?.originCSSObject??{},{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"}))});break}let s=0;const i=()=>{this.isRunning=!0,this.currentObjects.forEach((r,o)=>{const a=this.objects[r.objectIndex];let l=[],c=[];Array.isArray(r.attributeName)?(l=r.attributeName,c=r.values):r.attributeName&&(l=[r.attributeName],c=[r.values]);const u=r.keyTimes.length;let h=r.begin;r.keyTimes.forEach((f,d)=>{if(d==0||r.immediate){const m={_matrix:Ai("")};l.forEach((v,y)=>{const E=c[y][r.direction=="reverse"?u-1-d:d];Ye.setCSSObjectTransformUseMatrix(v,E,m,a)}),Z.setStyle(a.el,Object.assign(m,{transition:"all 0ms!important"}))}else dt.registerAccurateSetTimeout(((m,v,y)=>()=>{const E={_matrix:Ai("")};l.forEach((C,w)=>{const S=c[w][v.direction=="reverse"?u-1-m:m];Ye.setCSSObjectTransformUseMatrix(C,S,E,y)}),Z.setStyle(y.el,Object.assign(E,{transition:`all ${v.realKeyTimes[m]}ms cubic-bezier(${v.keySplines[m-1].join(",")})`}))})(d,r,a),h+1),h+=r.realKeyTimes[d]}),dt.registerAccurateSetTimeout(((f,d)=>()=>{f.fill==="remove"&&Z.setStyle(a.el,a.originCSSObject??{}),d==this.currentObjects.length-1&&(f.onComplete?.(),this.isRunning=!1,(typeof f.repeatCount=="number"&&++s<f.repeatCount||f.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentPredefinedAnimateName===e&&i()}))})(r,o),r.begin+r.dur)})};i()}slideLeft(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.width,0],[s.width,0]]],immediate:!0}),e,n)}slideRight(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.width,0],[-s.width,0]]],immediate:!0}),e,n)}slideDown(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.height],[0,-s.height]]],immediate:!0}),e,n)}slideUp(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.height],[0,s.height]]],immediate:!0}),e,n)}flipLeft(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}flipRight(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}flipDown(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}flipUp(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}popIn(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}popOut(e=wt,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}rotate(e=wt,n=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree??360;this._resetGroupCurrentObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}static flipCSS(e,n,s=wt){const i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o=Z.getStyle(e,"backgroundColor"),a=Z.getStyle(n,"backgroundColor");n.style.transition="none",n.style.left=""+i.left,n.style.top=""+i.top,n.style.width=i.width+"px",n.style.height=i.height+"px",o&&(n.style.backgroundColor=o),dt.registerAccurateSetTimeout(()=>{n.style.transition=`all ${s.dur}ms cubic-bezier(${tu(s.easeName??"linear").join(",")})`,n.style.left=""+r.left,n.style.top=""+r.top,n.style.width=r.width+"px",n.style.height=r.height+"px",a&&(n.style.backgroundColor=a)},s.begin)}}const nu=Sm("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 Sm(t,e=10){const n={},s=t.split(",");for(let i=0;i<s.length;i+=2){const r="&"+s[i+1]+";",o=parseInt(s[i],e);n[r]="&#"+o+";"}return n["\\xa0"]="&#160;",n}function pt(t,e){const n=Object.keys(e);for(let s=0;s<n.length;s++)t=t.replace(new RegExp("{"+n[s]+"}","gi"),""+e[n[s]]);return t}function Li(t){let e,n;if(!t)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",n=0;n<12;n++)e+=s[Math.floor(Math.random()*s.length)];while(t[e]);return e}function km(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function Pm(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}const Ms={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"}};class Io{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}addColorStop(e,n){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+e),n.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);r&&(s.setAttribute("stop-color",pt("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),s.setAttribute("stop-opacity",r[4]))}else s.setAttribute("stop-color",n);this.__root.appendChild(s)}}class su{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}}class Fi{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:n=500,height:s=500,enableMirroring:i=!1}){this.enableMirroring=i,e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=n,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(Ms);for(let n=0,s=e.length;n<s;n++){const i=e[n];this[i]=Ms[i].canvas}}__getStyleState(){const e={},n=Object.keys(Ms);for(let s=0,i=n.length;s<i;s++){const r=n[s];e[r]=this[r]}return e}__applyStyleState(e){const n=Object.keys(e);for(let s=0,i=n.length;s<i;s++){const r=n[s];this[r]=e[r]}}__createElement(e,n={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),r=Object.keys(n);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,n[a])}return i}__applyStyleToCurrentElement(e){let n=this.__currentElement;const s=this.__currentElementsToStyle;s&&(n.setAttribute(e,""),n=s.element,s.children.forEach(r=>{r.setAttribute(e,"")}));const i=Object.keys(Ms);for(let r=0;r<i.length;r++){const o=Ms[i[r]],a=this[i[r]];if(o.apply){if(a instanceof su){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])}n.setAttribute(o.apply,pt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Io)n.setAttribute(o.apply,pt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);n.setAttribute(o.svgAttr,pt("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),n.setAttribute(o.svgAttr+"-opacity",""+u)}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=e+"-"+o.svgAttr,n.getAttribute(l)))continue;l&&n.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(nu);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=nu[a],c=new RegExp(a,"gi");c.test(n)&&(n=n.replace(c,l))}}return n}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(e){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");n.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=e,this.__currentElement.setAttribute("transform",s)}scale(e,n){n===void 0&&(n=e),this.__addTransform(pt("scale({x},{y})",{x:e,y:n}))}rotate(e){const n=e*180/Math.PI;this.__addTransform(pt("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(e,n){this.__addTransform(pt("translate({x},{y})",{x:e,y:n}))}transform(e,n,s,i,r,o){this.__addTransform(pt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:s,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(pt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(pt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(pt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,n,s,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(pt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:s,cp2y:i,x:r,y:o}))}quadraticCurveTo(e,n,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(pt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:s,y:i}))}normalize(e){const n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]}arcTo(e,n,s,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===e&&a===n||e===s&&n===i||r===0){this.lineTo(e,n);return}const l=this.normalize([o-e,a-n]),c=this.normalize([s-e,i-n]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,n);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),d=r/Math.sin(h/2),m=e+d*f[0],v=n+d*f[1],y=[-l[1],l[0]],E=[c[1],-c[0]],C=function($){const O=$[0];return $[1]>=0?Math.acos(O):-Math.acos(O)},w=C(y),S=C(E);this.lineTo(m+y[0]*r,v+y[1]*r),this.arc(m,v,r,w,S)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,n,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,n),this.lineTo(e+s,n),this.lineTo(e+s,n+i),this.lineTo(e,n+i),this.lineTo(e,n),this.closePath()}fillRect(e,n,s,i){const r=this.__createElement("rect",{x:e,y:n,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(e,n,s,i){const r=this.__createElement("rect",{x:e,y:n,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&s.removeChild(i[r]);this.__currentElement=s,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(e,n,s,i){if(e===0&&n===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:n,width:s,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(e,n,s,i){const r=this.__createElement("linearGradient",{id:Li(this.__ids),x1:e+"px",x2:s+"px",y1:n+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Io(r,this)}createRadialGradient(e,n,s,i,r,o){const a=this.__createElement("radialGradient",{id:Li(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:e+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Io(a,this)}__parseFont(){const n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(e,n){if(e.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),s.appendChild(n),s}return n}__applyText(e,n,s,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:n,y:s,"text-anchor":km(this.textAlign),"dominant-baseline":Pm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(e,n,s){this.__applyText(e,n,s,"fill")}strokeText(e,n,s){this.__applyText(e,n,s,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,n,s,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+s*Math.cos(r),l=n+s*Math.sin(r),c=e+s*Math.cos(i),u=n+s*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(pt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const e=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),s=Li(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),n.setAttribute("id",s),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),e.setAttribute("clip-path",pt("url(#{id})",{id:s})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let n=e[0],s,i,r,o,a=0,l=0,c,u,h,f,d,m,v,y;if(e.length===3)s=e[1],i=e[2],c=n.width,u=n.height,r=c,o=u;else if(e.length===5)s=e[1],i=e[2],r=e[3],o=e[4],c=n.width,u=n.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],s=e[5],i=e[6],r=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const E=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+s+", "+i+")";if(n instanceof Fi){if(h=n.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)y=f.childNodes[0].getAttribute("id"),this.__ids[y]=y,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const w=d.getAttribute("transform");let S;w?S=w+" "+C:S=C,d.setAttribute("transform",S),E.appendChild(d)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==n.width||u!==n.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(n,a,l,c,u,0,0,r,o),n=v),m.setAttribute("transform",C),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),E.appendChild(m))}createPattern(e,n){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Li(this.__ids);let r;return s.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+e.width),r.setAttribute("height",""+e.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(r),this.__SVGdefs.appendChild(s)):e instanceof Fi&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new su(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Nm{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;matrixs=[];hasSetCustomLineWidth=!1;hasSetCustomFillStyle=!1;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.customContext=new Fi({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(e){this.hasSetCustomLineWidth=!0,this.context.lineWidth=e,this.customContext.lineWidth=e}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.context.lineCap=e,this.customContext.lineCap=e}get lineCap(){return this.context.lineCap}set lineJoin(e){this.context.lineJoin=e,this.customContext.lineCap=e}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.context.lineDashOffset=e,this.customContext.lineDashOffset=e}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.context.miterLimit=e,this.customContext.miterLimit=e}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext.globalAlpha=e}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext.fillStyle=e):(this.context.fillStyle=e.gradient,this.customContext.fillStyle=e.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext.strokeStyle=e):(this.context.strokeStyle=e.gradient,this.customContext.strokeStyle=e.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext.font=e}get font(){return this.context.font}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext.fill()),this}fillRect(e,n,s,i){return this.context.fillRect(e,n,s,i),this.customContext.fillRect(e,n,s,i),this}fillText(e,n,s,i){return this.context.fillText(e,n,s,i),this.customContext.fillText(e,n,s),this}setLineDash(e){return this.context.setLineDash(e),this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext.stroke()),this}strokeText(e,n,s,i){return this.context.strokeText(e,n,s,i),this.customContext.strokeText(e,n,s),this}strokeRect(e,n,s,i){return this.context.strokeRect(e,n,s,i),this.customContext.strokeRect(e,n,s,i),this}clearRect(e=0,n=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,n,s,i),this.customContext.clearRect(e,n,s,i),this}save(){return this.context.save(),this.customContext.save(),this.path2Ds.push(this.currentPath2D),this.matrixs.push(this.currentMatrix),this.currentPath2D=new Path2D,this.currentMatrix=new DOMMatrix,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomLineWidth=!1,this.hasSetCustomFillStyle=!1,this.currentPath2D=this.path2Ds.pop()||new Path2D,this.currentMatrix=this.matrixs.pop()||new DOMMatrix,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}addPath(e=this.currentPath2D,n=this.currentMatrix){const s=new Path2D;s.addPath(e,n),this.currentPath2D=s}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,n){return this.context.translate(e,n),this.customContext.translate(e,n),this.currentMatrix.translate(e,n),this.addPath(),this}rotate(e){return this.context.rotate(e),this.customContext.rotate(e),this.currentMatrix.rotate(e),this.addPath(),this}scale(e,n=e){return this.context.scale(e,n),this.customContext.scale(e,n),this.currentMatrix.scale(e,n),this.addPath(),this}moveTo(e,n){return this.context.moveTo(e,n),this.customContext.moveTo(e,n),this.currentPath2D.moveTo(e,n),this}lineTo(e,n){return this.context.lineTo(e,n),this.customContext.lineTo(e,n),this.currentPath2D.lineTo(e,n),this}arc(e,n,s,i,r,o){return this.context.arc(e,n,s,i,r,o),this.customContext.arc(e,n,s,i,r,o?-1:1),this.currentPath2D.arc(e,n,s,i,r,o),this}arcTo(e,n,s,i,r){return this.context.arcTo(e,n,s,i,r),this.customContext.arcTo(e,n,s,i,r),this.currentPath2D.arcTo(e,n,s,i,r),this}ellipse(e,n,s,i,r,o,a,l){return this.context.ellipse(e,n,s,i,r,o,a,l),this.currentPath2D.ellipse(e,n,s,i,r,o,a,l),this}quadraticCurveTo(e,n,s,i){return this.context.quadraticCurveTo(e,n,s,i),this.customContext.quadraticCurveTo(e,n,s,i),this.currentPath2D.quadraticCurveTo(e,n,s,i),this}bezierCurveTo(e,n,s,i,r,o){return this.context.bezierCurveTo(e,n,s,i,r,o),this.customContext.bezierCurveTo(e,n,s,i,r,o),this.currentPath2D.bezierCurveTo(e,n,s,i,r,o),this}rect(e,n,s,i){return this.context.rect(e,n,s,i),this.customContext.rect(e,n,s,i),this.currentPath2D.rect(e,n,s,i),this}createLinearGradient(e,n,s,i,r){const o=this.context.createLinearGradient(e,n,s,i),a=this.customContext.createLinearGradient(e,n,s,i);return r&&Object.keys(r).forEach(l=>{const c=parseFloat(l);o.addColorStop(c,r[c]),a.addColorStop(c,r[c])}),{gradient:o,gradientCustom:a}}createRadialGradient(e,n,s,i,r,o,a){const l=this.context.createRadialGradient(e,n,s,i,r,o),c=this.customContext.createRadialGradient(e,n,s,i,r,o);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);l.addColorStop(h,a[h]),c.addColorStop(h,a[h])}),{gradient:l,gradientCustom:c}}drawImage(e,...n){if(n.length===0)this.context.drawImage(e,0,0);else if(n.length===2){const s=n[0],i=n[1];this.context.drawImage(e,s,i)}else if(n.length===4){const s=n[0],i=n[1],r=n[2],o=n[3];this.context.drawImage(e,s,i,r,o)}else if(n.length===8){const s=n[0],i=n[1],r=n[2],o=n[3],a=n[4],l=n[5],c=n[6],u=n[7];this.context.drawImage(e,s,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+n.length);return this.customContext.drawImage(e,...n),this}getImageData(e=0,n=0,s=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(e,n,s,i,r)}putImageData(e,n=0,s=0){return this.context.putImageData(e,n,s)}toRawSVG(){const e=this.customContext.getSerializedSvg(!0),n=this.customContext.getSvg();return{raw:e,element:n}}}const Om=Nm;let iu=class{app;ctx;shapes=[];isMouseDown=!1;draggingShapeID="";removes=[];constructor(e){this.app=e,this.ctx=new Om(this.app.container),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.draggingShapeID="",this.setCursor()},move:()=>{this.setCursor()}})}setCursor(){this.draggingShapeID?this.app.container.style.cursor="grabbing":this.shapes.filter(e=>e.shape.isMouseInShape&&e.dragMouseMove).length?this.app.container.style.cursor="grab":this.app.container.style.cursor="default"}flushShapes(e=[]){return this.shapes=[],Ap(e)?this.shapes.push(...e):this.shapes.push(e),this}draw(){return this.removes.forEach(e=>e()),this.shapes.forEach(e=>{if(this.ctx.save(),e.followMouseMove&&(!po(e.shape.x,this.app.mousePoint.x,5)||!po(e.shape.y,this.app.mousePoint.y,5))&&(e.shape.angleTo(this.app.mousePoint),e.shape.followTo(this.app.mousePoint)),e.dragFreeEaseTo&&(this.isMouseDown||e.shape.nextFrameEaseTo(new rt({x:e.dragFreeEaseTo.targetX,y:e.dragFreeEaseTo.targetY}),{easing:e.dragFreeEaseTo?.easing??.05})),e.clickInPath&&e.shape instanceof So){const n=()=>{if(!(e.shape instanceof So))return;const s=e.shape.pgas.findIndex(i=>i.pg.isPointInPath(this.ctx,this.app.mousePoint.x,this.app.mousePoint.y));s>=0&&e.clickInPath?.(s)};this.app.on("tap",n),this.removes.push(()=>{this.app.off("tap",n)})}if(e.extra?.(this.ctx),e.shape instanceof ft||this.ctx.translate(e.shape.x,e.shape.y),this.ctx.rotate(e.shape.rotate),this.ctx.scale(e.shape.scale,e.shape.scale),e.shape.toCanvasContext(this.ctx,{isLineThrough:e.isLineThrough}),e.shape.path2d=this.ctx.currentPath2D,e.shape.isMouseInShape=e.shape.getBoundingClientRect()?.isContainPoint(this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInPath(e.shape.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1,this.ctx.hasSetCustomLineWidth&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.dragMouseMove&&!this.draggingShapeID&&this.isMouseDown&&e.shape.isMouseInShape&&(this.draggingShapeID=e.shape.id,e.shape.isDragging=!0,this.shapes.filter(n=>n.shape.id!=e.shape.id).forEach(n=>n.shape.isDragging=!1)),this.draggingShapeID==e.shape.id){e.shape.x=this.app.mousePoint.x,e.shape.y=this.app.mousePoint.y;const n=e.shape.getBoundingClientRect();n&&n.width&&n.height&&!e.shape.XYIsShapeCenter&&(e.shape.x-=n.width/2,e.shape.y-=n.height/2),e.shape instanceof ft||this.ctx.translate(e.shape.x,e.shape.y),e.shape.path2d=this.ctx.currentPath2D}this.ctx.restore()}),this}drawMouseMoveLine(e="line",n){switch(e){case"brush":const s=(n&&n.brushSize)??10,i=(n&&n.brushDensity)??50,r=(n&&n.brushColor)??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=qc(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()*s,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>>16&255,a[m+1]=l>>8&255,a[m+2]=l&255,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 Im{map;constructor(e,n=120.619585,s=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(n,s),i)}}const Mm=J({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("span",{class:"icon",style:q(["color: "+n.color])},[oe(Ce(Np),{icon:e.icon,color:n.color},null,8,["icon","color"])],4))}}),sy="",ee=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n},$n=ee(Mm,[["__scopeId","data-v-8789b4ce"]]),Dm=J({customOptions:{},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:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(s.borderColor),a=G(s.bgColor),l=G(s.fontColor),c=G(s.borderColor),u=G(s.bgColor);function h(w){switch(w){case"outline":o.value=s.borderColor??ne.colorPrimary,a.value=s.bgColor??ne.colorGrayFF,l.value=s.fontColor??ne.colorPrimary,c.value=o.value,u.value=a.value;break;default:o.value=s.borderColor??ne.colorPrimary,a.value=s.bgColor??ne.colorPrimary,l.value=s.fontColor??ne.colorGrayFF,c.value=o.value,u.value=a.value;break}}ve(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const f=G(s.isDisabled?"0.6":"1"),d=G(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,o.value=Ps(c.value,10),a.value=Ps(u.value,10))},y=()=>{s.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},C=Lp(()=>{s.isDisabled||(o.value=Ps(c.value,-10),a.value=Ps(u.value,-10),setTimeout(()=>{m?v():y()},150),i("ceClick"),i("click"))},500);return e({wrapper:r}),(w,S)=>(D(),z("div",{ref_key:"wrapper",ref:r,class:"button",style:q([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:y,onClick:S[0]||(S[0]=(...$)=>Ce(C)&&Ce(C)(...$))},[N("label",{class:"label truncate",style:q({padding:"0 "+w.padding,cursor:d.value})},[Re(w.$slots,"default",{},()=>[w.icon&&w.iconPosition==="left"?(D(),Qe($n,{key:0,icon:w.icon,color:l.value,style:q({marginRight:Ce(ne).gap4,cursor:d.value})},null,8,["icon","color","style"])):Be("",!0),N("span",{style:q({cursor:d.value})},be(w.label),5),w.icon&&w.iconPosition==="right"?(D(),Qe($n,{key:1,icon:w.icon,color:l.value,style:q({marginLeft:Ce(ne).gap4,cursor:d.value})},null,8,["icon","color","style"])):Be("",!0)],!0)],4)],36))}}),iy="",Ne=ee(Dm,[["__scopeId","data-v-ee116edd"]]),Am=["onClick","value"],Rm={class:"option-inner"},$m=J({customOptions:{Icon:$n,Button:Ne},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;fn(()=>{Z.setStyleSheet(`
56
+ :root {
57
+ --select-option-bg-color: ${ne.colorGrayFF};
58
+ --select-option-bg-color-hover: ${ne.colorGrayF5};
59
+ }
60
+ `)});const i=G(!1),r=G(n.initIndex);ve(r,function(){s("change",r.value,n.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(D(),z("div",{class:"select",style:q(["font-size:"+l.fontSize])},[N("div",{onClick:o},[Re(l.$slots,"button",{selectedIndex:r.value},()=>[oe(Ne,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Pr(N("div",{class:"options",style:q({border:"1px solid "+Ce(ne).colorGrayCC})},[(D(!0),z(ke,null,ct(l.options,(u,h)=>(D(),z("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:q({borderTop:(h==0?"0":"1px")+" solid "+Ce(ne).colorGrayCC})},[N("div",Rm,[Re(l.$slots,"default",{item:u,index:h},()=>[N("span",null,be(u),1),h==r.value?(D(),Qe($n,{key:0,icon:"mingcute:check-fill",class:"icon"})):Be("",!0)],!0)])],12,Am))),128))],4),[[vi,i.value]])],4))}}),ry="",Lm=ee($m,[["__scopeId","data-v-8bb25be3"]]),Fm=["width","height"],Vm=["fill"],Gm=J({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ne.colorGrayCC}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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:e.color},null,8,Vm)],8,Fm))}}),oy="",Ds=ee(Gm,[["__scopeId","data-v-b1f2ae20"]]),zm={class:"button-default"},jm={class:"truncate"},Hm=["onClick","value"],Bm=J({customOptions:{SVGDown:Ds},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ne.colorGrayFF},hoverColor:{default:ne.colorGrayF5},selectedColor:{default:ne.colorPrimary},fontColor:{default:ne.colorGray33},duration:{default:300}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;fn(()=>{Z.setStyleSheet(`
61
+ :root {
62
+ --select-option-bg-color: ${n.bgColor};
63
+ --select-option-bg-color-hover: ${n.hoverColor};
64
+ }
65
+ `)});const i=G(!1),r=G(n.initIndex);ve(r,function(){s("change",r.value,n.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=G("rotate(-180deg)");return Ja(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(D(),z("div",{class:"select-absolute",style:q({fontSize:n.fontSize,backgroundColor:n.bgColor})},[N("div",{class:"select-absolute-button",onClick:o},[Re(c.$slots,"button",{selectedIndex:r.value},()=>[N("div",zm,[N("div",jm,be(c.options[r.value]),1),oe(Ds,{class:"icon-down",width:"20px",style:q({transition:`transform ${n.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),N("div",{class:"options",style:q({maxHeight:i.value?"200px":0,transition:`all ${n.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(D(!0),z(ke,null,ct(c.options,(h,f)=>(D(),z("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Re(c.$slots,"default",{item:h,index:f},()=>[N("div",{class:"option-default",style:q({color:r.value==f?n.selectedColor:n.fontColor})},be(h),5)],!0)],8,Hm))),128))],4)],4))}}),ay="",Um=ee(Bm,[["__scopeId","data-v-5096cb20"]]),Wm=J({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ne.colorPrimary},colorBgOn:{default:ne.colorGrayEF},colorBgOff:{default:ne.colorGrayF5}},emits:["change"],setup(t,{emit:e}){const n=t,s=Ss(n.width),i=Ss(n.height),r=Ss(n.padding),o=i.number-r.number*2+i.suffix,a=n.padding,l=s.number-Ss(a).number-Ss(o).number+s.suffix,c=e,u=G(n.init);ve(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(D(),z("div",{class:"switch",onClick:h,style:q(["width: "+n.width,"height: "+n.height,"background-color: "+(u.value?n.colorBgOn:n.colorBgOff)])},[N("span",{class:"round",style:q(["width: "+o,"height: "+o,"background-color: "+(u.value?n.colorPrimary:Ce(Ps)(n.colorPrimary,30)),"transform: translate("+(u.value?l:Ce(a))+", 0)"])},null,4)],4))}}),ly="",Ym=ee(Wm,[["__scopeId","data-v-8a5d8a64"]]),Xm={class:"wrap"},qm=["onClick"],Km=["stroke","fill"],Zm=["stroke","fill"],Qm=["stroke"],Jm=J({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:ne.colorPrimary},colorBg:{default:ne.colorGrayFF},colorBorder:{default:ne.colorGrayCC},fontSize:{default:ne.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;let i=G(n.initIndexs??0);ve(i,function(){s("change",n.options[i.value])});const r=function(o){i.value=o};return(o,a)=>(D(),z("div",Xm,[(D(!0),z(ke,null,ct(o.options,(l,c)=>(D(),z("span",{class:"item",key:c,onClick:u=>r(c),style:q(["margin-left:"+(c>0?n.itemPadding:0)])},[Re(o.$slots,"default",{label:l,index:c},()=>[(D(),z("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:q(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?Be("",!0):(D(),z("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBg,"fill-opacity":1},null,8,Km)),n.isRounded?(D(),z("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i)===c?o.colorPath:o.colorBg,"fill-opacity":1},null,8,Zm)):Be("",!0),Pr(N("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Qm),[[vi,Ce(i)===c]])],4)),N("span",{style:q(["font-size:"+n.fontSize])},be(l),5)],!0)],12,qm))),128))]))}}),cy="",eg=ee(Jm,[["__scopeId","data-v-7e2eff94"]]),tg={class:"wrap"},ng=["onClick"],sg=["stroke","fill"],ig=["stroke","fill"],rg=["stroke"],og=J({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:ne.colorPrimary},colorBg:{default:ne.colorGrayFF},colorBorder:{default:ne.colorGrayCC},fontSize:{default:ne.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;let i=st(n.initIndexs??[0]);ve(i,function(){s("change",i.map(o=>n.options[o]))});const r=function(o){const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(D(),z("div",tg,[(D(!0),z(ke,null,ct(o.options,(l,c)=>(D(),z("span",{class:"item",key:c,onClick:u=>r(c),style:q(["margin-left:"+(c>0?n.itemPadding:0)])},[Re(o.$slots,"default",{label:l,index:c},()=>[(D(),z("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:q(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?Be("",!0):(D(),z("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,sg)),n.isRounded?(D(),z("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Ce(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,ig)):Be("",!0),Pr(N("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,rg),[[vi,Ce(i).findIndex(u=>u===c)>=0]])],4)),N("span",{style:q(["font-size:"+n.fontSize])},be(l),5)],!0)],12,ng))),128))]))}}),uy="",ag=ee(og,[["__scopeId","data-v-ae9d25d1"]]),lg=["width","height"],cg=["fill"],ug=["fill"],hg=["fill"],fg=J({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ne.colorRed}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("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:e.color},null,8,cg),N("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:e.color},null,8,ug),N("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:e.color},null,8,hg)],8,lg))}}),hy="",ru=ee(fg,[["__scopeId","data-v-41294f60"]]),dg={class:"wrap"},pg=["type","required"],mg={class:"ellipsis"},gg={key:1,style:{}},_g=J({customOptions:{SVGPrompt:ru},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ne.colorPrimary},errorColor:{default:ne.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(t,{expose:e,emit:n}){const s=t,i=n,r=s.placeholder.split(""),o=s.duration/r.length,a=G(!1),l=G(""),c=G("");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&&s.validator){const m=s.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return Ve(()=>{}),e({}),(m,v)=>(D(),z("div",dg,[N("input",{type:s.type,required:s.required,autocomplete:"off",style:q({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:l.value?s.errorColor:a.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),class:vt([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,pg),N("div",{class:"placeholder",style:q({lineHeight:a.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(D(),z("div",{key:0,style:q({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[oe(ru,{class:"icon"}),N("div",mg,be(l.value),1)],4)):Be("",!0),!l.value&&!s.placeholderJump?(D(),z("div",gg,be(s.placeholder),1)):Be("",!0),!l.value&&s.placeholderJump?(D(!0),z(ke,{key:2},ct(Ce(r),(y,E)=>(D(),z("span",{key:E,style:q({transition:s.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"},be(y),5))),128)):Be("",!0)],4),N("div",{class:"bg",style:q({transition:s.duration+"ms",backgroundColor:a.value||c.value?"transparent":s.bgColor,height:a.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),fy="",vg=ee(_g,[["__scopeId","data-v-e02afc20"]]),yg=["width","height"],bg=["fill"],xg=J({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[N("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,bg)],8,yg))}}),dy="",Mo=ee(xg,[["__scopeId","data-v-4747d4a7"]]),wg=J({customOptions:{SVGDelete:Mo},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ne.colorGrayFF},deleteColor:{default:ne.colorRed},fontColor:{default:ne.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(!1),o=()=>{i("delete"),r.value=!1};let a;const l=G();return ve(l,()=>{l.value&&(a=new xe(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),Ve(()=>{a?.destroy()}),e({}),(c,u)=>(D(),z("div",{class:"parent",ref_key:"item",ref:l,style:q({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[N("div",{class:"content",style:q({transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Re(c.$slots,"default",{},void 0,!0)],4),N("div",{class:"delete",onClick:o,style:q({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[oe(Mo,{color:s.fontColor},null,8,["color"])],4)],4))}}),py="",Eg=ee(wg,[["__scopeId","data-v-244215c2"]]),Cg=t=>{const e={};for(const n of t.attributes)e[n.name]=n.value;return e},Tg={class:"overlay-content",style:q(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},Sg=J({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:um(ne.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(t,{expose:e,emit:n}){const s=t,i=G();function r(o){s.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 ve(()=>s.visible,()=>{r(s.visible)},{immediate:!0}),e({}),(o,a)=>s.visible?(D(),z("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:q([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[N("div",Tg,[Re(o.$slots,"default",{},void 0,!0)])],4)):Be("",!0)}}),my="",Xn=ee(Sg,[["__scopeId","data-v-1972073d"]]),kg=(t=>(ls("data-v-ad23bc09"),t=t(),cs(),t))(()=>N("div",null,null,-1)),Pg=J({customOptions:{Overlay:Xn},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(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o;const a=st({}),l=st({});function c(){switch(Cs(a),Cs(l),s.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}}ve(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Ye,h=(E=!0)=>{!o||!r.value||(E?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};ve(r,()=>{r.value&&h(!0)},{});const f=G(!1);function d(){f.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function y(E){s.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(E.target)&&s.closeWhenClickOverlay&&v():r.value&&!r.value.contains(E.target)&&s.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(E,C)=>(D(),Qe(Xn,{visible:f.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Pe(()=>[N("div",{class:"pop-parent",style:q([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:y},[N("div",{ref_key:"pop",ref:r,class:"pop",style:q([{position:"absolute","z-index":"3000"},l])},[Re(E.$slots,"default",{},()=>[kg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),_y="",St=ee(Pg,[["__scopeId","data-v-ad23bc09"]]),Ng={class:"dialog-parent"},Og={key:0,class:"title"},Ig={key:0,class:"title-inner truncate"},Mg={class:"custom-content"},Dg={class:"custom-content-default"},Ag={key:1,class:"btns"},Rg=J({customOptions:{Overlay:Xn,Pop:St,Icon:$n,Button:Ne},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(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(""),a=G(""),l=G(!1),c=G(""),u=G("");let h,f,d;function m(C){o.value=C?.title||"",a.value=C?.content||"",l.value=typeof C?.showClose=="boolean"?C?.showClose:!1,c.value=C?.cancelText||"",u.value=C?.confirmText||"",r.value.open(),h=C?.onClose,f=C?.onCancel,d=C?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function y(){v(),f?.(),i("cancel")}function E(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(C,w)=>(D(),Qe(St,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Pe(()=>[N("div",Ng,[N("div",{class:"dialog",style:q({minWidth:s.minWidth,maxWidth:s.maxWidth})},[o.value||l.value?(D(),z("div",Og,[o.value?(D(),z("div",Ig,be(o.value),1)):Be("",!0),l.value?(D(),z("div",{key:1,class:"close",onClick:v},[oe($n,{icon:"ic:baseline-close",color:Ce(ne).colorGrayCC},null,8,["color"])])):Be("",!0)])):Be("",!0),N("div",Mg,[Re(C.$slots,"default",{},()=>[N("div",Dg,be(a.value),1)],!0)]),c.value||u.value?(D(),z("div",Ag,[c.value?(D(),Qe(Ne,{key:0,onClick:y,class:"btn",bgColor:Ce(ne).colorGrayE6,borderColor:Ce(ne).colorGrayE6,fontColor:Ce(ne).colorGray33,borderRadius:"0"},{default:Pe(()=>[He(be(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Be("",!0),u.value?(D(),Qe(Ne,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:Pe(()=>[He(be(u.value),1)]),_:1})):Be("",!0)])):Be("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),vy="",As=ee(Rg,[["__scopeId","data-v-6bd255c9"]]),$g={class:"toast"},Lg={class:"content"},Fg=J({customOptions:{Overlay:Xn,Pop:St,Dialog:As},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(D(),Qe(As,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Pe(()=>[N("div",$g,[N("div",Lg,be(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),yy="",ou=ee(Fg,[["__scopeId","data-v-50ed852e"]]),Vg={class:"loading-8"},Gg={viewBox:"25 25 50 50"},zg=J({__name:"Loading8",props:{color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("div",Vg,[(D(),z("svg",Gg,[N("circle",{cx:"50",cy:"50",r:"20",style:q(["stroke: "+e.color])},null,4)]))]))}}),by="",Do=ee(zg,[["__scopeId","data-v-e5e3cf4c"]]),jg={class:"loading"},Hg={class:"icon"},Bg={style:{width:"8em"}},Ug={key:0,class:"content"},Wg=J({customOptions:{Overlay:Xn,Pop:St,Dialog:As,Loading8:Do},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(D(),Qe(As,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Pe(()=>[N("div",jg,[N("div",Hg,[Re(c.$slots,"default",{},()=>[N("div",Bg,[oe(Do)])],!0)]),o.value?(D(),z("div",Ug,be(o.value),1)):Be("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),xy="",Yg=ee(Wg,[["__scopeId","data-v-cb469a6c"]]),Ao=t=>(ls("data-v-85491020"),t=t(),cs(),t),Xg=[Ao(()=>N("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)),Ao(()=>N("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)),Ao(()=>N("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))],qg=J({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{style:q(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Xg,4))}}),Ty="",Vi=ee(qg,[["__scopeId","data-v-85491020"]]),Kg=["data-number"],Zg=["data-number","data-unactive"],Qg=["data-number"],Jg=["data-number","data-unactive"],e0=J({customOptions:{Pop:St,SVGCleanUp:Vi},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(0),a=st([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=s.completePlateLength&&u()}ve(()=>[...s.initPlates],()=>{Ts(a,s.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 w=E.target.dataset.number;w&&(a.push(w),l(),i("plates",a))};e({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],y=["港","澳","学","警","使","领","挂","应","急"];return(E,C)=>(D(),Qe(St,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Pe(()=>[N("div",{class:"popup-plate",style:q({paddingBottom:Ce(ne).safeAreaBottom})},[N("div",null,[N("div",{onClick:u},"关闭")]),N("div",{class:vt(["step",o.value==0?"":"hide"])},[(D(),z(ke,null,ct(d,w=>N("div",{key:w,class:"popitem",onClick:f,"data-number":w},be(w),9,Kg)),64)),N("div",{class:"popitem popitem-clear",onClick:h},[oe(Vi,{width:"16px"})])],2),N("div",{class:vt(["step",o.value!=0?"":"hide"])},[(D(),z(ke,null,ct(m,w=>N("div",{key:w,class:vt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":w,"data-unactive":o.value!=2?"unactive":""},be(w),11,Zg)),64)),(D(),z(ke,null,ct(v,w=>N("div",{key:w,class:"popitem",onClick:f,"data-number":w},be(w),9,Qg)),64)),(D(),z(ke,null,ct(y,w=>N("div",{key:w,class:vt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":w,"data-unactive":o.value!=2?"unactive":""},be(w),11,Jg)),64)),N("div",{class:"popitem popitem-clear",onClick:h},[oe(Vi,{width:"16px"})])],2)],4)]),_:1},512))}}),Sy="",au=ee(e0,[["__scopeId","data-v-bade3529"]]),lu=document.getElementById("teleport")||document.documentElement;function cu(t,e){{const n=xt(ou,{});bi(n,lu),n.component?.exposed?.open(t,e)}}function t0(t,e="bottom"){let n;t instanceof HTMLElement?n=xt(St,{directionFrom:e},()=>xt("div",{...Cg(t),innerHTML:t.innerHTML})):n=xt(St,{directionFrom:e},()=>t),bi(n,document.getElementById("teleport")||document.documentElement),n.component?.exposed?.open();const s=()=>{n.component?.exposed?.close()};return s.vnode=n,s}function n0(t){return t0(t,"absolute")}function s0(t){{const e=xt(au,t);return bi(e,lu),e.component?.exposed?.open(),()=>{e.component?.exposed?.close()}}}const i0={class:"content"},r0=J({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#3cefff"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(!1),a=st({}),l=st({}),c=st({});let u=1,h;ve(r,()=>{r.value&&(d(),h=new xe(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const y=Math.min(m,v);l.width=y+"px",l.height=y+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){Z.copyToClipboard(Z.getInnerText(r.value)).then(()=>{cu("复制成功")}).catch(m=>{cu(m.toString())})}function d(){switch(s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.timeGap}ms ease,box-shadow ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.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 ${s.timeGap*u}ms ease`,Un(l,c),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 ${s.timeGap*u}ms ease`,Un(l,c),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 ${s.timeGap*u}ms ease`,Un(l,c),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 ${s.timeGap*u}ms ease`,Un(l,c),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 ${s.timeGap*u}ms ease`,Un(l,c),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 ${s.timeGap*u}ms ease`,Un(l,c),c.bottom="0";break}}return Ve(()=>{h?.destroy()}),e({}),(m,v)=>(D(),z("div",{ref_key:"wrap",ref:r,class:"wrap",style:q({...a}),onClick:f},[N("div",{class:"before",style:q({backgroundColor:s.coverColor,...l})},null,4),N("div",i0,[Re(m.$slots,"default",{},void 0,!0)]),N("div",{class:"after",style:q({backgroundColor:s.coverColor,...c})},null,4)],4))}}),ky="",Py="",o0=ee(r0,[["__scopeId","data-v-faa28034"]]),a0=J({customOptions:{SVGDown:Ds},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(t,{expose:e,emit:n}){const s=t,i=n,r=G(Number.MAX_SAFE_INTEGER+"px"),o=G(),a=G(!0);let l;ve(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new xe(o.value),l.on("resize",(h,f)=>{i("resize",h,f)}),a.value=s.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=G("rotate(0deg)");return Ja(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),Ve(()=>{l?.destroy()}),e({}),(h,f)=>(D(),z("div",{class:"wrap",style:q({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[N("div",{class:"title",onClick:c,style:q({height:s.height,lineHeight:s.height,margin:`0 ${s.padding}`,transitionDelay:`${a.value?0:s.duration}ms`,borderBottom:`${a.value?1:0}px solid ${s.borderColor}`})},[Re(h.$slots,"title",{},()=>[He("title")],!0),oe(Ds,{class:"arrow",style:q({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),N("div",{ref_key:"content",ref:o,class:"content",style:q({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[Re(h.$slots,"content",{},void 0,!0)],4)],4))}}),Ny="",l0=ee(a0,[["__scopeId","data-v-9ced806f"]]),c0=J({__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(t,{expose:e,emit:n}){const s=t,i=n,r=G(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);Ye.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return e({start:o,goto:a}),(l,c)=>(D(),z("div",{class:"wrap",style:q({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[N("div",{class:"bar",style:q({width:r.value+"%",backgroundColor:s.progressColor})},be(s.showText?r.value+"%":""),5)],4))}}),Oy="",Rs=ee(c0,[["__scopeId","data-v-30de81f6"]]),u0=["width","height"],h0=["src","type"],f0={class:"bar-wrap"},d0=J({customOptions:{ProgressBar:Rs},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(t,{expose:e,emit:n}){const s=t;function i(){Ye.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=G(),o=G();ve(r,()=>{r.value&&(r.value.addEventListener("play",i),s.autoplay&&vo.tryAutoPlayOrAutoPlayAfterClick(r.value))}),Ve(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return e({play:a}),(l,c)=>(D(),z("div",{class:"wrap",style:q({width:s.width,height:s.height}),onClick:a},[N("video",{ref_key:"video",ref:r,width:s.width,height:s.height,preload:"metadata"},[N("source",{src:s.src,type:s.type},null,8,h0)],8,u0),N("div",f0,[oe(Rs,{ref_key:"bar",ref:o,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),Iy="",p0=ee(d0,[["__scopeId","data-v-edddb069"]]),m0=J({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(),a=G(0),l=G(0),c=G(0),u=G(0),h=G(1),f=G(0),d=G(0);hm(s.src).then($=>{c.value=$.width,u.value=$.height,h.value=$.aspectRatio,C()});let m;ve(r,()=>{r.value&&(m=new xe(r.value,!1),m.on("resize",($,O)=>{a.value=$,l.value=O,C()}),m.start())});let v=!1;const y={x:0,y:0,width:0,height:0};let E;function C(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.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}La(()=>{const $=o.value.getBoundingClientRect();i("settled",$.x,$.y,f.value,d.value),v&&E(y.x,y.y,y.width,y.height)})}}function w($,O,R,le){const ue=(Oe,at,lt,We,Te,he,M,Y,j)=>{if(!Te||!he||!M||!Y){const fe=De.vnode.el.getBoundingClientRect(),Me=fe.width,Je=fe.height;let Et=0,Ct=0;h.value>=1?(Et=Me,Ct=Et/h.value,Ct>Je&&(Ct=Je,Et=Ct*h.value)):(Ct=Je,Et=Ct*h.value,Et>Me.value&&(Et=Me.value,Ct=Et/h.value)),Te=(Me-Et)/2,he=(Je-Ct)/2,M=Et,Y=Ct}const de=200;Ye.toTween({left:Oe,top:at,width:lt,height:We},{left:Te,top:he,width:M,height:Y},{duration:de,onStart(){},onUpdate(fe){pe.el.style.left=fe.left+"px",pe.el.style.top=fe.top+"px",pe.el.style.width=fe.width+"px",pe.el.style.height=fe.height+"px"},onComplete(fe){y.x=fe.left,y.y=fe.top,y.width=fe.width,y.height=fe.height,j?.()}}).startAuto()},pe=xt("div",{style:`
66
+ position:absolute;
67
+ left:${$}px;
68
+ top:${O}px;
69
+ width: ${R}px;
70
+ height: ${le}px;
71
+ background-image: url(${s.src});
72
+ background-repeat: no-repeat;
73
+ background-position: center center;
74
+ background-size: 100% 100%`,onVnodeMounted:()=>{ue($,O,R,le)}}),De=n0(xt("div",{style:`
75
+ position:absolute;
76
+ width: 100%;
77
+ height: 100%;
78
+ background-color: transparent;
79
+ display: flex;
80
+ justify-content: center;
81
+ align-items: center;
82
+ `,onClick:()=>{const{x:Oe,y:at,width:lt,height:We}=o.value.getBoundingClientRect();ue(y.x,y.y,y.width,y.height,Oe,at,lt,We,()=>{De(),v=!1})}},pe));return ue}function S(){if(!r.value||!s.openImageViewWhenClick)return;v=!0;const{x:$,y:O,width:R,height:le}=o.value.getBoundingClientRect();E=w($,O,R,le)}return Ve(()=>{m?.destroy()}),e({}),($,O)=>(D(),z("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:q({backgroundColor:s.bgColor}),onClick:S},[N("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:q({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),Dy="",Ro=ee(m0,[["__scopeId","data-v-928690db"]]),g0=J({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o=[],a;const l=new Ye;let c=0,u=!1;const h={};function f(){switch(Cs(h),s.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&&(bi(xt("div",{class:"routes-inner-wrap",style:""},o.map(O=>xt("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},xt(O.component,{...O.attributes,style:{...O.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=O=>{if(!(!a||u||!o.length)){if(u=!0,O.push&&(c=o.length-1),O.pop){if(!o.length){u=!1;return}c=o.length-1}if(O.reset&&(c=0),O.forward){if(c>=o.length-1){u=!1;return}c++}if(O.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:O?.dur??s.duration,direction:O.back||O.pop?"reverse":"normal",onComplete:()=>{(O.back||O.pop)&&c--,O.pop&&(o.pop(),d()),i("finish",c),u=!1,O?.onComplete?.()}},c)}};function v(O=[],R){o=[],O.forEach(le=>o.push({component:le.component,attributes:le.attributes??{}})),d(),m({reset:!0,onComplete:R})}function y(O,R={}){o.push({component:O,attributes:R}),d(),m({push:!0})}function E(){m({pop:!0})}function C(){m({forward:!0})}function w(){m({back:!0})}function S(O,R){O>o.length-1||O<0||O==c||(R||(R=s.duration/Math.abs(O-c)),c<O?m({forward:!0,dur:R,onComplete:()=>{setTimeout(()=>{S(O,R)})}}):m({back:!0,dur:R,onComplete:()=>{setTimeout(()=>{S(O,R)})}}))}function $(){d(),m({resize:!0})}return fn(()=>{xe.page.on("resize",$)}),Ve(()=>{l.destroy(),xe.page.off("resize",$)}),e({reset:v,push:y,pop:E,forward:C,back:w,goto:S}),(O,R)=>(D(),z("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))}}),Ay="",uu=ee(g0,[["__scopeId","data-v-210d799a"]]),_0={style:{position:"absolute",width:"100%",height:"100%"}},v0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},y0=J({customOptions:{Image:Ro},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(t,{expose:e,emit:n}){const s=t,i=G(),r=G(),o=G(),a=G(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}ve(r,()=>{r.value&&(l?.destroy(),l=new xe(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),ve(o,()=>{o.value&&o.value.reset(s.urls.map(m=>({component:xt("div",{style:"position:absolute;width:100%;height:100%"},xt(Ro,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return Ve(()=>{l?.destroy()}),e({open:f,close:d}),(m,v)=>(D(),Qe(St,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Pe(()=>[N("div",_0,[s.urls.length>1?(D(),z("div",v0,be(a.value+1)+" / "+be(s.urls.length),1)):Be("",!0),N("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[oe(uu,{ref_key:"routesRef",ref:o,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),Ry="",b0=ee(y0,[["__scopeId","data-v-be51d205"]]),$y="",x0={class:"page"},w0={class:"header"},E0={class:"main"},C0={class:"main-scroll"},T0={class:"footer"},S0=J({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(t,{expose:e,emit:n}){return Qp(t.designWidth),e({}),(i,r)=>(D(),z("div",x0,[N("header",w0,[Re(i.$slots,"header",{},void 0,!0)]),N("div",E0,[N("div",C0,[Re(i.$slots,"main",{},void 0,!0)])]),N("footer",T0,[Re(i.$slots,"footer",{},void 0,!0)])]))}}),Ly="",k0=ee(S0,[["__scopeId","data-v-3904d6b5"]]),P0=J({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(t,{expose:e,emit:n}){const s=t,i=st({}),r=st({});function o(){switch(Cs(i),Cs(r),s.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(),Ve(()=>{}),e({}),(a,l)=>(D(),z("div",{class:"layout-center",style:q(i)},[N("div",{style:q(r)},[Re(a.$slots,"default",{},void 0,!0)],4)],4))}}),Fy="",N0=ee(P0,[["__scopeId","data-v-a768b36f"]]),O0=(t=>(ls("data-v-d02782ac"),t=t(),cs(),t))(()=>N("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),I0=J({customOptions:{Pop:St,Button:Ne},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(t){const e=t,n=G(),s=G(),i=G(),r=st({left:"0",top:"0"});ve(s,()=>{o()}),ve(i,()=>{o()});function o(){if(!s.value||!i.value)return;const l=Fc(),c=s.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+e.gap,m=c.y;d=Math.max(e.gap,Math.min(d,l.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,l.height-f-e.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){n.value.open()}return(l,c)=>(D(),z(ke,null,[N("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[Re(l.$slots,"button",{},()=>[oe(Ne,null,{default:Pe(()=>[He("popover-default-button")]),_:1})],!0)],512),oe(St,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal},{default:Pe(()=>[N("div",{ref_key:"popoverPanelRef",ref:i,style:q([{display:"inline-block",position:"absolute"},r])},[Re(l.$slots,"panel",{},()=>[O0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),Gy="",$o=ee(I0,[["__scopeId","data-v-d02782ac"]]),M0={class:"tab"},D0=J({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(t,{expose:e}){return e({}),(n,s)=>(D(),z("div",M0,[Re(n.$slots,"default",{},void 0,!0)]))}}),zy="",A0=ee(D0,[["__scopeId","data-v-6589e7fa"]]),R0={class:"tabs"},$0=["onClick"],L0={class:"content"},F0=J({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(s.initIndex),o=st([]),a=G(),l=G(0),c=G(0),u=G(0),h=G([]),f=[],d=pf(),m=d.default&&d.default();m&&(Ts(o,m),E(r.value));const v=(w,S)=>{if(w){if(f.push({index:S,el:w}),f.length<o.length)return;h.value=f}};ve([a,h],()=>{y()});function y(){if(a.value&&h.value.length){const w=a.value.getBoundingClientRect(),S=h.value[r.value].el.getBoundingClientRect();l.value=S.x-w.x,c.value=S.y-w.y+S.height-2,u.value=S.width}}function E(w){r.value=w,i("changedIndex",w),y(),C.value.goto(w)}const C=G();return ve(C,()=>{C.value&&C.value.reset(s.pages,()=>{C.value.goto(s.initIndex)})}),e({}),(w,S)=>(D(),z("div",R0,[N("div",{class:"header",ref_key:"headerRef",ref:a},[(D(!0),z(ke,null,ct(s.labels,($,O)=>(D(),z("div",{key:$,class:vt(O==r.value?"active":""),onClick:R=>E(O)},[N("div",{ref_for:!0,ref:R=>v(R,O)},be($),513)],10,$0))),128)),N("div",{class:"indicator",style:q({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),N("div",L0,[oe(uu,{ref_key:"routesRef",ref:C,direction:"rightToLeft",duration:200},null,512)])]))}}),jy="",V0=ee(F0,[["__scopeId","data-v-e74e266d"]]),G0=["width","height"],z0=J({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(t,{expose:e,emit:n}){const s=t;let i=()=>{};const r=G();return ve(r,()=>{if(!r.value)return;const o=new xe(r.value),a=new iu(o);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),i=()=>{ht.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>i()}),(o,a)=>(D(),z("canvas",{ref_key:"panelRef",ref:r,width:s.canvasWidth,height:s.canvasHeight,style:q([`border: 1px solid ${o.borderColor}`])},null,12,G0))}}),j0={class:"wrap",style:{}},H0=J({customOptions:{ProgressBar:Rs},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(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=()=>{const a=Wp();i("progress",a),r.value?.goto(a)};return xe.page.registerGlobalScrollChange(o),Ve(()=>{xe.page.removeGlobalScrollChange(o)}),e({}),(a,l)=>(D(),z("div",j0,[oe(Rs,{ref_key:"bar",ref:r,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),Hy="",B0=ee(H0,[["__scopeId","data-v-2e31cfe2"]]),U0=["fill"],W0=["fill"],Y0=J({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("svg",{style:q(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,U0),N("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,W0)],4))}}),By="",Lo=ee(Y0,[["__scopeId","data-v-987aed3d"]]),Gi=t=>(ls("data-v-5f064292"),t=t(),cs(),t),X0=Gi(()=>N("div",{class:"title"},"车牌颜色",-1)),q0={class:"plate-types"},K0=["onClick"],Z0=Gi(()=>N("div",{class:"title"},"车牌号码",-1)),Q0={class:"plate-numbers"},J0=Gi(()=>N("div",{class:"dot"},"·",-1)),e_=["onClick"],t_=Gi(()=>N("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),n_=J({customOptions:{SVGCheck:Lo},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,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=G(0),a=st([]),l=G(-1);function c(){s0({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{Ts(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")):Ts(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{Ts(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return e({}),(f,d)=>(D(),z("div",jr(f.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[X0,N("div",q0,[(D(),z(ke,null,ct(r,(m,v)=>N("div",{key:v,class:vt(v==o.value?"checked":""),onClick:y=>u(v)},[N("div",{style:q(m.style)},null,4),N("div",null,be(m.name),1),N("div",null,[oe(Lo,{color:"#ffffff",width:"0.14rem"})])],10,K0)),64))]),Z0,N("div",Q0,[N("div",{onClick:d[0]||(d[0]=m=>h(0)),class:vt(l.value==0?"current":"")},be(a[0]),3),N("div",{onClick:d[1]||(d[1]=m=>h(1)),class:vt(l.value==1?"current":"")},be(a[1]),3),J0,(D(!0),z(ke,null,ct(r[o.value].completePlateLength-2,m=>(D(),z("div",{key:m,class:vt(m+1==l.value?"current":""),onClick:v=>h(m+1)},be(a[m+1]),11,e_))),128))]),t_],16))}}),Uy="",s_=ee(n_,[["__scopeId","data-v-5f064292"]]),i_={class:"parent"},r_=J({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(t,{expose:e,emit:n}){const s=t,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(s.plate),l=G(o(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return e({}),(h,f)=>(D(),z("div",i_,[N("div",{class:vt(["leading",s.displayType]),style:q(l.value.style)},be(l.value.name),7),N("div",{class:"text",style:q({color:Ce(c),"font-size":Ce(u)})},be(Ce(a)),5)]))}}),Wy="",o_=ee(r_,[["__scopeId","data-v-11a104c3"]]),qn=(t,e=0,n=1)=>t>n?n:t<e?e:t,Xe=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,a_=t=>h_(Fo(t)),Fo=t=>(t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Xe(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Xe(parseInt(t.substring(6,8),16)/255,2):1}),l_=t=>u_(c_(t)),hu=({h:t,s:e,v:n,a:s})=>{const i=(200-e)*n/100;return{h:Xe(t),s:Xe(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:Xe(i/2),a:Xe(s,2)}},Vo=t=>{const{h:e,s:n,l:s}=hu(t);return`hsl(${e}, ${n}%, ${s}%)`},Go=t=>{const{h:e,s:n,l:s,a:i}=hu(t);return`hsla(${e}, ${n}%, ${s}%, ${i})`},c_=({h:t,s:e,v:n,a:s})=>{t=t/360*6,e=e/100,n=n/100;const i=Math.floor(t),r=n*(1-e),o=n*(1-(t-i)*e),a=n*(1-(1-t+i)*e),l=i%6;return{r:Xe([n,o,r,r,a,n][l]*255),g:Xe([a,n,n,o,r,r][l]*255),b:Xe([r,r,a,n,n,o][l]*255),a:Xe(s,2)}},zi=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},u_=({r:t,g:e,b:n,a:s})=>{const i=s<1?zi(Xe(s*255)):"";return"#"+zi(t)+zi(e)+zi(n)+i},h_=({r:t,g:e,b:n,a:s})=>{const i=Math.max(t,e,n),r=i-Math.min(t,e,n),o=r?i===t?(e-n)/r:i===e?2+(n-t)/r:4+(t-e)/r:0;return{h:Xe(60*(o<0?o+6:o)),s:Xe(i?r/i*100:0),v:Xe(i/255*100),a:s}},fu=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},f_=(t,e)=>t.toLowerCase()===e.toLowerCase()?!0:fu(Fo(t),Fo(e)),du={},pu=t=>{let e=du[t];return e||(e=document.createElement("template"),e.innerHTML=t,du[t]=e),e},zo=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Kn=!1;const jo=t=>"touches"in t,d_=t=>Kn&&!jo(t)?!1:(Kn||(Kn=jo(t)),!0),mu=(t,e)=>{const n=jo(e)?e.touches[0]:e,s=t.el.getBoundingClientRect();zo(t.el,"move",t.getMove({x:qn((n.pageX-(s.left+window.pageXOffset))/s.width),y:qn((n.pageY-(s.top+window.pageYOffset))/s.height)}))},p_=(t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),zo(t.el,"move",t.getMove({x:n===39?.01:n===37?-.01:n===34?.05:n===33?-.05:n===35?1:n===36?-1:0,y:n===40?.01:n===38?-.01:0},!0)))};class Ho{constructor(e,n,s,i){const r=pu(`<div role="slider" tabindex="0" part="${n}" ${s}><div part="${n}-pointer"></div></div>`);e.appendChild(r.content.cloneNode(!0));const o=e.querySelector(`[part=${n}]`);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(e){const n=e?document.addEventListener:document.removeEventListener;n(Kn?"touchmove":"mousemove",this),n(Kn?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!d_(e)||!Kn&&e.button!=0)return;this.el.focus(),mu(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),mu(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":p_(this,e);break}}style(e){e.forEach((n,s)=>{for(const i in n)this.nodes[s].style.setProperty(i,n[i])})}}class m_ extends Ho{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:Vo({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Xe(e)}`)}getMove(e,n){return{h:n?qn(this.h+e.x*360,0,360):360*e.x}}}class g_ extends Ho{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:Vo(e)},{"background-color":Vo({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Xe(e.s)}%, Brightness ${Xe(e.v)}%`)}getMove(e,n){return{s:n?qn(this.hsva.s+e.x*100,0,100):e.x*100,v:n?qn(this.hsva.v-e.y*100,0,100):Math.round(100-e.y*100)}}}const __=':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)}',v_="[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}",y_="[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}",ji=Symbol("same"),Bo=Symbol("color"),gu=Symbol("hsva"),Uo=Symbol("update"),_u=Symbol("parts"),Hi=Symbol("css"),Bi=Symbol("sliders");let b_=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Hi](){return[__,v_,y_]}get[Bi](){return[g_,m_]}get color(){return this[Bo]}set color(e){if(!this[ji](e)){const n=this.colorModel.toHsva(e);this[Uo](n),this[Bo]=e}}constructor(){super();const e=pu(`<style>${this[Hi].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(e.content.cloneNode(!0)),n.addEventListener("move",this),this[_u]=this[Bi].map(s=>new s(n))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,n,s){const i=this.colorModel.fromAttr(s);this[ji](i)||(this.color=i)}handleEvent(e){const n=this[gu],s={...n,...e.detail};this[Uo](s);let i;!fu(s,n)&&!this[ji](i=this.colorModel.fromHsva(s))&&(this[Bo]=i,zo(this,"color-changed",{value:i}))}[ji](e){return this.color&&this.colorModel.equal(e,this.color)}[Uo](e){this[gu]=e,this[_u].forEach(n=>n.update(e))}};class x_ extends Ho{constructor(e){super(e,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(e){this.hsva=e;const n=Go({...e,a:0}),s=Go({...e,a:1}),i=e.a*100;this.style([{left:`${i}%`,color:Go(e)},{"--gradient":`linear-gradient(90deg, ${n}, ${s}`}]);const r=Xe(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(e,n){return{a:n?qn(this.hsva.a+e.x):e.x}}}const w_=`[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 E_ extends b_{get[Hi](){return[...super[Hi],w_]}get[Bi](){return[...super[Bi],x_]}}const C_={defaultColor:"#0001",toHsva:a_,fromHsva:l_,equal:f_,fromAttr:t=>t};class T_ extends E_{get colorModel(){return C_}}class S_ extends T_{}customElements.define("hex-alpha-color-picker",S_);const k_=J({customOptions:{Popover:$o},__name:"ColorPicker",props:{color:{default:ne.colorPrimary}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,i=G(n.color);ve(i,(a,l)=>{a!==l&&s("change",a)});const r=G(),o=a=>{i.value=a.detail.value};return ve(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Uh("hex-alpha-color-picker");return D(),Qe($o,null,{button:Pe(()=>[Re(a.$slots,"default",{},()=>[N("span",{class:"button",style:q({backgroundColor:i.value})},null,4)],!0)]),panel:Pe(()=>[oe(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),Yy="",P_=ee(k_,[["__scopeId","data-v-ac12603f"]]),Xy="",N_={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 t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",_o&&this.$el.appendChild(t),t.data="about:blank",_o||this.$el.appendChild(t)},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&&(!_o&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},O_={class:"resize-observer",tabindex:"-1"};function I_(t,e,n,s,i,r){return D(),z("div",O_)}const M_=ee(N_,[["render",I_],["__scopeId","data-v-d5987ae1"]]),D_=J({__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(t,{expose:e,emit:n}){const s=t,i=G(s.mapWidth),r=G(s.mapHeight);let o;const a=G();return ve(a,()=>{a.value&&(o=new xe(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),fn(()=>{Z.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Im(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),Ve(()=>{o.destroy()}),e({}),(l,c)=>(D(),z("div",jr({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Re(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),qy="",A_=ee(D_,[["__scopeId","data-v-e5da8598"]]);var $s=function(){var t=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),s(++t%e.children.length)},!1);function n(u){return e.appendChild(u.dom),u}function s(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";t=u}var i=(performance||Date).now(),r=i,o=0,a=n(new $s.Panel("FPS","#0ff","#002")),l=n(new $s.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=n(new $s.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:n,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:e,setMode:s}};$s.Panel=function(t,e,n){var s=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 y=v.getContext("2d");return y.font="bold "+9*o+"px Helvetica,Arial,sans-serif",y.textBaseline="top",y.fillStyle=n,y.fillRect(0,0,a,l),y.fillStyle=e,y.fillText(t,c,u),y.fillRect(h,f,d,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(h,f,d,m),{dom:v,update:function(E,C){s=Math.min(s,E),i=Math.max(i,E),y.fillStyle=n,y.globalAlpha=1,y.fillRect(0,0,a,f),y.fillStyle=e,y.fillText(r(E)+" "+t+" ("+r(s)+"-"+r(i)+")",c,u),y.drawImage(v,h+o,f,d-o,m,h,f,d-o,m),y.fillRect(h+d-o,f,o,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(h+d-o,f,o,r((1-E/C)*m))}}};const R_=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(t,{expose:e}){const n=G();return fn(()=>{const s=new $s,i=s.domElement.style;i.margin="1em",n.value.appendChild(s.domElement),dt.register(()=>(s.update(),!0))}),e({}),(s,i)=>(D(),z("div",{ref_key:"containerRef",ref:n},null,512))}}),$_=["width","height"],L_=J({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G(),o=G(),a=G(0),l=G(0);let c;ve(r,()=>{r.value&&(c=new xe(r.value,!1),c.on("resize",(y,E)=>{const C=Fc();a.value=Math.min(y,C.width),l.value=Math.min(E,C.height),d()}),c.start())}),ve(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new xe(o.value,!1),u.on("resize",(y,E)=>{i("resize",y,E)}),u.start(),h=new iu(u),i("complete",h),f?.(h))}function m(){return new Promise(y=>{if(h)return y(h);f=y})}function v(y){u&&y(u)}return Ve(()=>{u?.destroy(),c?.destroy()}),e({draw:v,getCanvasElement:()=>o.value,getCanvas:m}),(y,E)=>(D(),z("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[N("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:q({backgroundColor:s.bgColor})},null,12,$_)],512))}}),Zy="",zt=ee(L_,[["__scopeId","data-v-7bda10ec"]]),F_={class:"ease-graph"},V_=J({customOptions:{Button:Ne,Canvas:zt},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(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o;ve(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",s.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",s.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),o.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let f=!1,d=!1;Ye.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:se.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),Ye.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.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",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return Ve(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(D(),z("div",F_,[N("div",null,"缓动:"+be(u.easeName),1),N("div",null,[N("div",null,[oe(Ne,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Pe(()=>[He(" 开始 ")]),_:1})]),N("div",null,[oe(Ne,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Pe(()=>[He(" 选择 ")]),_:1},8,["stylePattern"])])]),N("div",{style:q({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[oe(zt,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Qy="",Wo=ee(V_,[["__scopeId","data-v-a2b487d0"]]),G_=2e3,z_=J({customOptions:{EaseGraphDisplay:Wo},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:se.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:se.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:se.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:se.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:se.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:se.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:se.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:se.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:se.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:se.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:se.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:se.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:se.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:se.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:se.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:se.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:se.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:se.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:se.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:se.Easing.Circular.In},{easeName:"CircularOut",easeFunction:se.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:se.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:se.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:se.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:se.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:se.Easing.Back.In},{easeName:"BackOut",easeFunction:se.Easing.Back.Out},{easeName:"BackInOut",easeFunction:se.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:se.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:se.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:se.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:se.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:se.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:se.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:se.Easing.createStep(4)},{easeName:"8 steps",easeFunction:se.Easing.createStep(8)},{easeName:"12 steps",easeFunction:se.Easing.createStep(12)},{easeName:"16 steps",easeFunction:se.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:se.Easing.createNoisyEasing(se.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:se.Easing.createNoisyEasing(se.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:se.Easing.createNoisyEasing(se.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(t,{expose:e,emit:n}){const s=t,i=n,r={};function o(f,d){f&&(r[d]={el:f})}const a=new Dc(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=G("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",se.Easing.Linear.None),e({}),(f,d)=>(D(),z("div",null,[(D(!0),z(ke,null,ct(s.easeList,m=>(D(),z("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(D(),Qe(Wo,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:G_,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"])):Be("",!0)]))),128))]))}}),Jy="",j_=ee(z_,[["__scopeId","data-v-7e8d1feb"]]),H_={class:"interpolation-graph"},vu=1/6,yu=5/6,B_=J({customOptions:{Button:Ne,Canvas:zt},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(t,{expose:e,emit:n}){const s=t,i=n,r=G();let o;ve(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",s.interpolationName),o.app.on("showInParent",m)})});const a=s.canvasWidth*vu,l=s.canvasHeight/2,c=[s.canvasWidth*yu,s.canvasWidth/2],u=[s.canvasHeight*vu,s.canvasHeight*yu],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!0,i("onStart",s.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.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 y=!1,E=!1;const C={x:a,y:l,old:{x:a,y:l}};Ye.toTween(C,{x:c,y:u},{duration:s.easeDuration,easeFunction:se.Easing.Linear.None,interpolationFunction:s.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:()=>{y=!0,y&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto();const w={x:a,y:l,old:{x:a,y:l}};Ye.toTween(w,{x:h,y:f},{duration:s.easeDuration,easeFunction:se.Easing.Linear.None,interpolationFunction:s.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:()=>{E=!0,y&&E&&(i("onCompleted",s.interpolationName),d=!1)}}).startAuto()};return Ve(()=>{o.app.off("showInParent",m)}),e({start:m}),(v,y)=>(D(),z("div",H_,[N("div",null,[He(" 插值:"+be(v.interpolationName)+" ",1),oe(Ne,{stylePattern:"outline",height:"32px",onClick:m},{default:Pe(()=>[He(" 开始 ")]),_:1})]),N("div",{style:q({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[oe(zt,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),e1="",Yo=ee(B_,[["__scopeId","data-v-18aca8d5"]]),U_=2e3,W_=J({customOptions:{InterpolationGraphDisplay:Yo},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:se.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:se.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:se.Interpolation.CatmullRom}]}},setup(t,{expose:e,emit:n}){const s=t,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Dc(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>(D(),z("div",null,[(D(!0),z(ke,null,ct(s.interpolationList,h=>(D(),z("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[oe(Yo,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:U_,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),t1="",Y_=ee(W_,[["__scopeId","data-v-6e8312e3"]]),X_={class:"wrap"},q_={class:"btns"},K_={class:"tween-css",style:{width:"100%",height:"400px"}},Z_=J({customOptions:{Button:Ne},inheritAttrs:!0,__name:"TweenCSS",props:{easeFunction:{type:Function,default:se.Easing.Linear.None}},setup(t){const e=t,n=st({translateTo:{from:{translateTo:[0,0]},to:{translateTo:["150px","150px"]},selected:!1},translateXTo:{from:{translateXTo:0},to:{translateXTo:"150px"},selected:!1},translateYTo:{from:{translateYTo:0},to:{translateYTo:"150px"},selected:!1},translateZTo:{from:{translateZTo:0},to:{translateZTo:"150px"},selected:!1},translate3dTo:{from:{translate3dTo:[0,0,0]},to:{translate3dTo:["150px","150px","150px"]},selected:!1},rotateTo:{from:{rotateTo:0},to:{rotateTo:360},selected:!1},rotateXTo:{from:{rotateXTo:0},to:{rotateXTo:360},selected:!1},rotateYTo:{from:{rotateYTo:0},to:{rotateYTo:360},selected:!1},rotateZTo:{from:{rotateZTo:0},to:{rotateZTo:360},selected:!1},rotate3dTo:{from:{rotate3dTo:[0,0,0]},to:{rotate3dTo:[360,360,360]},selected:!1},scaleTo:{from:{scaleTo:1},to:{scaleTo:2},selected:!1},scaleXTo:{from:{scaleXTo:1},to:{scaleXTo:2},selected:!1},scaleYTo:{from:{scaleYTo:1},to:{scaleYTo:2},selected:!1},scaleZTo:{from:{scaleZTo:1},to:{scaleZTo:2},selected:!1},scale3dTo:{from:{scale3dTo:[1,1,1]},to:{scale3dTo:[2,2,2]},selected:!1},skewTo:{from:{skewTo:0},to:{skewTo:1},selected:!1},skewXTo:{from:{skewXTo:0},to:{skewXTo:1},selected:!1},skewYTo:{from:{skewYTo:0},to:{skewYTo:1},selected:!1}}),s=G();function i(r){if(!s.value)return;n[r].selected=!n[r].selected;const o={},a={};for(let l in n){const c=n[l];c.selected?(Object.assign(o,c.from),Object.assign(a,c.to)):(Ic(o,c.from),Ic(a,c.to))}s.value.style.transform="",Ye.toTweenCSS(s.value,o,a,{duration:2e3,easeFunction:e.easeFunction}).startAuto()}return Ve(()=>{}),(r,o)=>(D(),z("div",X_,[N("div",q_,[(D(!0),z(ke,null,ct(n,(a,l,c)=>(D(),Qe(Ne,{onClick:u=>i(l.toString()),key:l,stylePattern:a.selected?"fullfilled":"outline"},{default:Pe(()=>[He(be(l),1)]),_:2},1032,["onClick","stylePattern"]))),128))]),N("div",K_,[N("div",{class:"tween-css-target",ref_key:"tweenCSSTargetRef",ref:s},null,512)])]))}}),n1="",Q_=ee(Z_,[["__scopeId","data-v-44d0bbdc"]]),J_={class:"wrap"},ev={class:"btns"},tv={style:{height:"400px"}},nv=J({customOptions:{Button:Ne,Canvas:zt},inheritAttrs:!0,__name:"CanvasSport",setup(t){const e=G(),n=G("");function s(){const f="Arrow";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=new Jc({scale:.5}),v=new ft({x:d.ctx.canvas.width/2,y:d.ctx.canvas.height/2});dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),d.flushShapes([{shape:v,extra:y=>{v.fromX=m.x,v.fromY=m.y,y.lineWidth=2,y.strokeStyle="pink"}},{shape:m,followMouseMove:!0,extra:y=>{y.fillStyle=y.createLinearGradient(0,0,100,100,{0:"#ffffff",1:"#ff0000"})}}]).draw(),console.log(`distance: ${m.distanceTo(v)}`),!0))}))}function i(){const f="RectGame";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=[];function v(){const O=new Dt({x:Math.random()*d.ctx.canvas.width,y:0,width:50,height:50});return m.push(O),O}let y=v();const E=.2,C=()=>{y&&(y.ay=.2)},w=()=>{y&&(y.ay=-.2)},S=()=>{y&&(y.ay=0)},$=[];$.push(d.app.registerKeyDown({key:"ArrowDown"},C,S)),$.push(d.app.registerKeyDown({key:"ArrowRight"},C,S)),$.push(d.app.registerKeyDown({key:"ArrowUp"},w,S)),$.push(d.app.registerKeyDown({key:"ArrowLeft"},w,S)),dt.register(()=>n.value!=f?($.forEach(O=>O()),!1):(d.ctx.clearRect(),d.isMouseDown?d.flushShapes(m.map(O=>({shape:O,dragMouseMove:!0,extra:R=>{R.fillStyle="#ff0000"}}))).draw():(y&&y.nextFrame({gravity:E}),y&&y.y+y.height>=d.ctx.canvas.height&&(y.y=d.ctx.canvas.height-y.height,y=v()),d.flushShapes(m.map(O=>(y&&y!==O&&y.isIntersectRect(O)&&(y.y=O.y-y.height,y.y>=y.height?y=v():y=null),{shape:O,dragMouseMove:!0,extra:R=>{R.fillStyle="#ff0000"}}))).draw()),!0))}))}function r(){const f="PointWater";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=[];for(let v=0;v<80;v++){const y=new rt({x:d.ctx.canvas.width/2,y:d.ctx.canvas.height,radius:2});y.vx=Math.random()*2-1,y.vy=Math.random()*-10-10,m.push(y)}dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),d.flushShapes(m.map(v=>(v.nextFrame({gravity:.5}),(v.x-v.radius>d.ctx.canvas.width||v.x+v.radius<0||v.y-v.radius>d.ctx.canvas.height||v.y+v.radius<0)&&(v.x=d.ctx.canvas.width/2,v.y=d.ctx.canvas.height,v.vx=Math.random()*2-1,v.vy=Math.random()*-10-10),{shape:v,extra:y=>{y.fillStyle=lm()}}))).draw(),!0))}))}function o(){const f="PointEase";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=d.ctx.canvas.width/2,v=d.ctx.canvas.height/2,y=new rt({x:m,y:v,radius:30});dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),d.flushShapes([{shape:y,extra:E=>{E.fillStyle="#00ff00"},dragMouseMove:!0,dragFreeEaseTo:{targetX:m,targetY:v}}]).draw(),!0))}))}function a(){const f="PointSpringChain";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=d.ctx.canvas.width/2,v=d.ctx.canvas.height/2,y=[];for(let $=0;$<3;$++)y.push(new rt({x:m,y:v,radius:20}));const E=new ft,C=.03,w=.9,S=2;dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),y.forEach(($,O)=>{if(O===0)$.nextFrameSpringTo(d.app.mousePoint,{spring:C,friction:w,gravity:S}),E.fromX=d.app.mousePoint.x,E.fromY=d.app.mousePoint.y,E.x=$.x,E.y=$.y;else{const R=y[O-1];$.nextFrameSpringTo(R,{spring:C,friction:w,gravity:S}),E.fromX=R.x,E.fromY=R.y,E.x=$.x,E.y=$.y}d.flushShapes({shape:E,extra:R=>{R.lineWidth=1,R.strokeStyle="#eeeeee"}}).draw()}),d.flushShapes(y.map($=>({shape:$,extra:O=>{O.fillStyle="#0000ff"}}))).draw(),!0))}))}function l(){const f="PointSpringMulti";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=d.ctx.canvas.width/2,v=d.ctx.canvas.height/2,y=new rt({x:m,y:v,radius:20}),E=[];for(let w=0;w<3;w++)E.push(new rt({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,radius:10}));const C=[new ft,new ft,new ft];dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),y.nextFrameSpringTo(E,{spring:.03,friction:.9}),E.forEach((w,S)=>{C[S].fromX=y.x,C[S].fromY=y.y,C[S].x=w.x,C[S].y=w.y}),d.flushShapes([...C.map(w=>({shape:w,extra:S=>{S.lineWidth=1,S.strokeStyle="#eeeeee"}})),...E.map(w=>({shape:w,dragMouseMove:!0,extra:S=>{S.fillStyle="#00ff00"}})),{shape:y,extra:w=>{w.fillStyle="#ff0000"}}]).draw(),!0))}))}function c(){const f="PointSpringConnect";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const m=[];for(let E=0;E<3;E++)m.push(new rt({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,radius:15}));const v=[new ft,new ft,new ft],y={springLength:120,spring:.03,friction:.9};dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),m[0].isDragging||(m[0].nextFrameSpringConnect(m[1],y),m[0].nextFrameSpringConnect(m[2],y)),m[1].isDragging||(m[1].nextFrameSpringConnect(m[0],y),m[1].nextFrameSpringConnect(m[2],y)),m[2].isDragging||(m[2].nextFrameSpringConnect(m[0],y),m[2].nextFrameSpringConnect(m[1],y)),v[0].x=m[0].x,v[0].y=m[0].y,v[0].fromX=m[1].x,v[0].fromY=m[1].y,v[1].x=m[1].x,v[1].y=m[1].y,v[1].fromX=m[2].x,v[1].fromY=m[2].y,v[2].x=m[2].x,v[2].y=m[2].y,v[2].fromX=m[0].x,v[2].fromY=m[0].y,d.flushShapes([...v.map(E=>({shape:E,extra:C=>{C.strokeStyle="#eeeeee",C.lineWidth=1}})),...m.map(E=>({shape:E,dragMouseMove:!0,extra:C=>{C.fillStyle="#ff0000"}}))]).draw(),!0))}))}function u(){const f="QuadraticBezierCurve";n.value!=f&&(n.value=f,e.value.getCanvas().then(d=>{const v=new Po({x:50,y:d.ctx.canvas.height-50,fromX:d.ctx.canvas.width-50,fromY:d.ctx.canvas.height-50,cx:d.app.mousePoint.x,cy:d.app.mousePoint.y});dt.register(()=>n.value!=f?!1:(d.ctx.clearRect(),v.cx=d.app.mousePoint.x,v.cy=d.app.mousePoint.y,d.flushShapes([{shape:v,isLineThrough:!1,extra:y=>{y.lineWidth=2,y.strokeStyle="#ff0000"}},{shape:v,isLineThrough:!0,extra:y=>{y.lineWidth=2,y.strokeStyle="#00ff00"}}]).draw(),!0))}))}function h(){const f="PointsRandom";n.value=f,e.value.getCanvas().then(d=>{d.ctx.clearRect();const m=[];for(let v=0;v<10;v++){const y=new rt({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height});m.push(y),d.flushShapes({shape:new Dt({x:y.x,y:y.y,width:6,height:6}),extra:E=>{E.fillStyle="#eeeeee"}}).draw()}d.flushShapes({shape:new ko(m),extra:v=>{v.lineWidth=2,v.strokeStyle="pink"}}).draw()})}return Ve(()=>{}),(f,d)=>(D(),z("div",J_,[N("div",ev,[oe(Ne,{onClick:s,stylePattern:n.value=="Arrow"?"fullfilled":"outline"},{default:Pe(()=>[He(" Arrow ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:i,stylePattern:n.value=="RectGame"?"fullfilled":"outline"},{default:Pe(()=>[He(" Rect - 俄罗斯方块 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:r,stylePattern:n.value=="PointWater"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 喷泉 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:o,stylePattern:n.value=="PointEase"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - ease ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:a,stylePattern:n.value=="PointSpringChain"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 链式弹簧 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:l,stylePattern:n.value=="PointSpringMulti"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 多点弹簧 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:c,stylePattern:n.value=="PointSpringConnect"?"fullfilled":"outline"},{default:Pe(()=>[He(" Point - 连接弹簧 ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:u,stylePattern:n.value=="QuadraticBezierCurve"?"fullfilled":"outline"},{default:Pe(()=>[He(" QuadraticBezier - curve ")]),_:1},8,["stylePattern"]),oe(Ne,{onClick:h,stylePattern:n.value=="PointsRandom"?"fullfilled":"outline"},{default:Pe(()=>[He(" Points - random ")]),_:1},8,["stylePattern"])]),N("div",tv,[oe(zt,{ref_key:"canvas",ref:e},null,512)])]))}}),s1="",sv=ee(nv,[["__scopeId","data-v-39cba7a8"]]),iv={class:"wrap"},rv={class:"btns"},ov={style:{height:"400px"}},av=J({customOptions:{Button:Ne,Canvas:zt},inheritAttrs:!0,__name:"CanvasShape",setup(t){const e=G();ve(e,()=>{if(!e.value)return;const s=new Dt({width:100,height:60,borderRadius:10}),i=new Jc({x:150,y:50,scale:.5}),r=new pm({x:250,y:50,scale:1});e.value.getCanvas().then(o=>{dt.register(()=>(o.ctx.clearRect(),o.flushShapes([{shape:s,dragMouseMove:!0,extra:a=>{a.fillStyle=a.createRadialGradient(10,10,0,10,10,20,{0:"#ffffff",1:"#ff0000"})}},{shape:i,dragMouseMove:!0,extra:a=>{a.fillStyle="#5a82f0"}},{shape:r,dragMouseMove:!0,extra:a=>{a.fillStyle="rgb(200,80,80)"}}]).draw(),!0))})});function n(){}return Ve(()=>{}),(s,i)=>(D(),z("div",iv,[N("div",rv,[oe(Ne,{onClick:n},{default:Pe(()=>[He("start")]),_:1})]),N("div",ov,[oe(zt,{ref_key:"canvas",ref:e},null,512)])]))}}),i1="",lv=ee(av,[["__scopeId","data-v-47eb1a02"]]),cv=J({customOptions:{Canvas:zt},inheritAttrs:!0,__name:"CanvasFromSVG",props:{raw:{},bgColor:{default:"#ffffff"}},setup(t,{expose:e}){const n=t,s=G();ve(s,()=>{s.value&&o()});let i;ve(()=>n.raw,(a,l)=>{a!=l&&(i=new So({svg:n.raw,width:300}),o())},{immediate:!0});function r(a,l){o()}function o(){if(!n.raw||!s.value)return;let a=-1,l;s.value.getCanvas().then(c=>{const u={shape:i,extra:h=>{h.lineWidth=4,h.strokeStyle="#ff0000"},clickInPath:h=>{a>=0&&(i.pgas[a]=l),a=h,l=Ni(i.pgas[h]),i.pgas[h].attrs.fill="pink",i.pgas[h].attrs.stroke="green",c.shapes=[u,{shape:i.pgas[h].pg.getBoundingClientRect(),extra:f=>{f.lineWidth=4,f.strokeStyle="#ff0000"}}],c.ctx.clearRect(),c.draw()}};c.flushShapes([u]).draw()})}return Ve(()=>{}),e({}),(a,l)=>(D(),Qe(zt,{ref_key:"canvasRef",ref:s,bgColor:n.bgColor,onResize:r},null,8,["bgColor"]))}}),r1="",uv=ee(cv,[["__scopeId","data-v-b80feebb"]]),hv={class:"loading-1"},fv=J({__name:"Loading1",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",hv,[N("div",{class:"rect1",style:n}),N("div",{class:"rect2",style:n}),N("div",{class:"rect3",style:n}),N("div",{class:"rect4",style:n}),N("div",{class:"rect5",style:n})]))}}),o1="",dv=ee(fv,[["__scopeId","data-v-48b10c9a"]]),pv={class:"loading-2"},mv=J({__name:"Loading2",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",pv,[N("div",{class:"dot1",style:n}),N("div",{class:"dot2",style:n})]))}}),a1="",gv=ee(mv,[["__scopeId","data-v-79f9930f"]]),_v=J({__name:"Loading3",props:{fromColor:{default:ne.colorPrimary},toColor:{default:ne.colorRed}},setup(t){const e=t,n=`
83
+ @keyframes snake {
84
+ 0% {
85
+ opacity: 0.3;
86
+ transform: translateY(0px);
87
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
88
+ }
89
+ 50% {
90
+ opacity: 1;
91
+ transform: translateY(-10px);
92
+ background-color: ${e.toColor};
93
+ box-shadow: 0px 20px 3px rgba(0, 0, 0, 0.05);
94
+ }
95
+ 100% {
96
+ opacity: 0.3;
97
+ transform: translateY(0px);
98
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
99
+ }
100
+ }
101
+ `,s={backgroundColor:e.fromColor,width:"20%"},i=G();return ve(i,()=>{i.value&&Z.setStyleSheet(n,i.value)}),fn(()=>{}),Ve(()=>{}),(r,o)=>(D(),z("div",{class:"loading-3",ref_key:"loading3",ref:i},[N("div",{class:"dot",style:q({...s,left:"0"})},null,4),N("div",{class:"dot",style:q({...s,left:"20%"})},null,4),N("div",{class:"dot",style:q({...s,left:"40%"})},null,4),N("div",{class:"dot",style:q({...s,left:"60%"})},null,4),N("div",{class:"dot",style:q({...s,left:"80%"})},null,4)],512))}}),l1="",vv=ee(_v,[["__scopeId","data-v-718133c0"]]),yv={class:"loading-4"},bv=J({__name:"Loading4",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",yv,[N("div",{class:"rect",style:n})]))}}),c1="",xv=ee(bv,[["__scopeId","data-v-9028c8cf"]]),wv={class:"loading-5"},Ev=J({__name:"Loading5",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",wv,[N("div",{class:"cube1",style:n}),N("div",{class:"cube2",style:n})]))}}),u1="",Cv=ee(Ev,[["__scopeId","data-v-6f68ee6f"]]),Tv={class:"loading-6"},Sv=J({__name:"Loading6",props:{color:{default:ne.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(D(),z("div",Tv,[N("div",{style:n}),N("div",{style:n}),N("div",{style:n})]))}}),h1="",kv=ee(Sv,[["__scopeId","data-v-e397194b"]]),Pv=[(t=>(ls("data-v-ef280c02"),t=t(),cs(),t))(()=>N("div",null,null,-1))],Nv=J({__name:"Loading7",props:{color:{default:ne.colorPrimary}},setup(t){const e=t,n=`
102
+ :root {
103
+ --loading-7-bg-color: ${e.color}
104
+ }
105
+ :host {
106
+ --loading-7-bg-color: ${e.color}
107
+ }
108
+ `,s=G();return ve(s,()=>{s.value&&Z.setStyleSheet(n,s.value)}),fn(()=>{}),Ve(()=>{}),(i,r)=>(D(),z("div",{class:"loading-7",ref_key:"loading7",ref:s},Pv,512))}}),p1="",Ov=ee(Nv,[["__scopeId","data-v-ef280c02"]]),Iv={class:"loading-9"},Mv=J({__name:"Loading9",props:{color:{default:ne.colorPrimary}},setup(t){const n={borderTopColor:t.color};return(s,i)=>(D(),z("div",Iv,[N("div",{style:n})]))}}),m1="",Dv=ee(Mv,[["__scopeId","data-v-a563aaa4"]]),Av={class:"loading-10"},Rv={viewBox:"0 0 50 50"},$v=J({__name:"Loading10",props:{color:{default:ne.colorPrimary}},setup(t){const e=t;return(n,s)=>(D(),z("div",Av,[(D(),z("svg",Rv,[N("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:q(["stroke: rgba(0,0,0,0.1)"])},null,4),N("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:q(["fill: "+e.color])},null,4)]))]))}}),g1="",Lv=ee($v,[["__scopeId","data-v-361d898a"]]);return Q.Accordion=l0,Q.Button=Ne,Q.CanvasFromSVG=uv,Q.CanvasShape=lv,Q.CanvasSport=sv,Q.CheckboxGroup=ag,Q.ColorPicker=P_,Q.Dialog=As,Q.DialogLoading=Yg,Q.DialogToast=ou,Q.EaseGraphDisplay=Wo,Q.EaseGroupGraphDisplay=j_,Q.FPSStats=R_,Q.HandWritePanel=z0,Q.Icon=$n,Q.Image=Ro,Q.ImageView=b0,Q.Input=vg,Q.InterpolationGraphDisplay=Yo,Q.InterpolationGroupGraphDisplay=Y_,Q.LayoutCenter=N0,Q.LayoutMobile=k0,Q.Loading1=dv,Q.Loading10=Lv,Q.Loading2=gv,Q.Loading3=vv,Q.Loading4=xv,Q.Loading5=Cv,Q.Loading6=kv,Q.Loading7=Ov,Q.Loading8=Do,Q.Loading9=Dv,Q.MapTianditu=A_,Q.MouseOver=o0,Q.Overlay=Xn,Q.PageVerticalScrollProgressBar=B0,Q.PlateDisplay=o_,Q.PlateKeyboard=au,Q.PlateMobile=s_,Q.Pop=St,Q.Popover=$o,Q.ProgressBar=Rs,Q.RadioGroup=eg,Q.ResizeObserver=M_,Q.SVGCheck=Lo,Q.SVGCleanUp=Vi,Q.SVGDelete=Mo,Q.SVGDown=Ds,Q.Select=Lm,Q.SelectAbsolute=Um,Q.SlideLeftItem=Eg,Q.Switch=Ym,Q.Tab=A0,Q.Tabs=V0,Q.TweenCSS=Q_,Q.Video=p0,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Q}({});
57
109
  //# sourceMappingURL=zyzgroup_core_vue.iife.js.map