@zyzgroup/core-vue 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ce/yz_custom_element.iife.js +50 -50
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +570 -584
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +50 -50
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/zyzgroup_core_vue.iife.js +4 -4
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +198 -212
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +4 -4
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function($,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue"),require("vue-router"),require("vuex")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuex"],f):($=typeof globalThis<"u"?globalThis:$||self,f($.ZYZGroupCoreVue={},$.vue,$["vue-router"],$.vuex))})(this,function($,f,Ft,kt){"use strict";function Ji(){return f.getCurrentInstance()}function Hs(n,t){return f.createVNode(n,t)}function tr(n){const t=Hs(n.component,n.props);n.appContext&&(t.appContext=n.appContext),f.render(t,n.selfContainer),n.parentContainer?.appendChild(n.selfContainer)}function er(n){let t;f.onMounted(()=>{t=n()}),f.onUnmounted(()=>{t?.()})}const sr={};function nr(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:this||sr}const ir=nr(),rr="@@zyz/";function or(n){const t=`${rr}${n}`;return typeof Symbol=="function"?Symbol(t):t}const ie=or("meta");class ar{}function cr(n){n||(n=ir),Object.hasOwnProperty.call(n,ie)===!1&&Object.defineProperty(n,ie,{value:new ar});const t=(i,r=void 0)=>{const o=n[ie][i];return o===void 0&&r?(e(i,r),r):o},e=(i,r)=>n[ie][i]=r;return{get:t,set:e,delete:i=>{delete n[ie][i]}}}var Zs=(n=>(n.UNKNOWN="",n.TEXT="text/plain",n.MD="text/plain",n.HTML="text/html",n.XML_TEXT="text/xml",n.CSS="text/css",n.JPEG="image/jpeg",n.PNG="image/png",n.GIF="image/gif",n.BMP="image/bmp",n.WEBP="image/webp",n.SVG="image/svg+xml",n.ICON="image/x-icon",n.MICROSOFT_ICON="image/vnd.microsoft.icon",n.MPEG="audio/mpeg",n.MP3="audio/mpeg",n.MP4="video/mp4",n.OGG="audio/ogg",n.WAV="audio/wav",n.MIDI="audio/midi",n.WEBM="video/webm",n.VIDEO_OGG="video/ogg",n.OCTET_STREAM="application/octet-stream",n.JAVASCRIPT="application/javascript",n.ECMASCRIPT="application/ecmascript",n.JSON="application/json",n.XML="application/xml",n.XHTML="application/xhtml+xml",n.XWWW="application/x-www-form-urlencoded",n.DOC="application/msword",n.CSV="application/x-csv",n.EXCEL="application/vnb.ms-excel",n.PPT="application/vnb.mspowerpoint",n.PDF="application/pdf",n.ZIP="application/zip",n.TGZ="application/x-gtar",n.TAR_GZ="application/x-gzip",n.EOT="appliaction/vnd.ms-fontobject",n.TTF="aplication/font-sfnt",n.PKCS12="aplication/pkcs12",n))(Zs||{}),xe=(n=>(n.ascii="ascii",n.utf8="utf8",n.utf16le="utf16le",n.ucs2="ucs2",n.base64="base64",n.base64url="base64url",n.latin1="latin1",n.binary="binary",n.hex="hex",n))(xe||{});const
|
|
1
|
+
(function($,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue"),require("vue-router"),require("vuex")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuex"],f):($=typeof globalThis<"u"?globalThis:$||self,f($.ZYZGroupCoreVue={},$.vue,$["vue-router"],$.vuex))})(this,function($,f,Ft,kt){"use strict";function Ji(){return f.getCurrentInstance()}function Hs(n,t){return f.createVNode(n,t)}function tr(n){const t=Hs(n.component,n.props);n.appContext&&(t.appContext=n.appContext),f.render(t,n.selfContainer),n.parentContainer?.appendChild(n.selfContainer)}function er(n){let t;f.onMounted(()=>{t=n()}),f.onUnmounted(()=>{t?.()})}const sr={};function nr(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:this||sr}const ir=nr(),rr="@@zyz/";function or(n){const t=`${rr}${n}`;return typeof Symbol=="function"?Symbol(t):t}const ie=or("meta");class ar{}function cr(n){n||(n=ir),Object.hasOwnProperty.call(n,ie)===!1&&Object.defineProperty(n,ie,{value:new ar});const t=(i,r=void 0)=>{const o=n[ie][i];return o===void 0&&r?(e(i,r),r):o},e=(i,r)=>n[ie][i]=r;return{get:t,set:e,delete:i=>{delete n[ie][i]}}}var Zs=(n=>(n.UNKNOWN="",n.TEXT="text/plain",n.MD="text/plain",n.HTML="text/html",n.XML_TEXT="text/xml",n.CSS="text/css",n.JPEG="image/jpeg",n.PNG="image/png",n.GIF="image/gif",n.BMP="image/bmp",n.WEBP="image/webp",n.SVG="image/svg+xml",n.ICON="image/x-icon",n.MICROSOFT_ICON="image/vnd.microsoft.icon",n.MPEG="audio/mpeg",n.MP3="audio/mpeg",n.MP4="video/mp4",n.OGG="audio/ogg",n.WAV="audio/wav",n.MIDI="audio/midi",n.WEBM="video/webm",n.VIDEO_OGG="video/ogg",n.OCTET_STREAM="application/octet-stream",n.JAVASCRIPT="application/javascript",n.ECMASCRIPT="application/ecmascript",n.JSON="application/json",n.XML="application/xml",n.XHTML="application/xhtml+xml",n.XWWW="application/x-www-form-urlencoded",n.DOC="application/msword",n.CSV="application/x-csv",n.EXCEL="application/vnb.ms-excel",n.PPT="application/vnb.mspowerpoint",n.PDF="application/pdf",n.ZIP="application/zip",n.TGZ="application/x-gtar",n.TAR_GZ="application/x-gzip",n.EOT="appliaction/vnd.ms-fontobject",n.TTF="aplication/font-sfnt",n.PKCS12="aplication/pkcs12",n))(Zs||{}),xe=(n=>(n.ascii="ascii",n.utf8="utf8",n.utf16le="utf16le",n.ucs2="ucs2",n.base64="base64",n.base64url="base64url",n.latin1="latin1",n.binary="binary",n.hex="hex",n))(xe||{});const es=n=>{let t=null;switch(n){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/i;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"trim":t=/^\s+|\s+$/g;break;case"regexp":t=/[\\^$.*+?()[\]{}|]/g;break;case"regexp-flags":t=/\w*$/;break;case"native-method":t=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(es("regexp"),"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+?[1-9]{1}[0-9]{10}$/g;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+\@[A-Za-z0-9._-]+\.[A-Za-z0-9]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"time":t=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"datetime":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"whitespace":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
2
2
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
3
3
|
|[\u{4E00}-\u{9FCC}]
|
|
4
4
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|[\u{2B740}-\u{2B81D}]
|
|
8
8
|
|[\u{2B820}-\u{2CEAF}]
|
|
9
9
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
10
|
-
`.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},lr=(n,t)=>{typeof n=="string"&&(n=ss(n)||new RegExp(n));const e=t.match(n);return e?n.flags.toLowerCase().indexOf("g")>=0?e.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Ws=(n,t)=>{typeof n=="string"&&(n=ss(n)||new RegExp(n));const e=[],s=t.matchAll(n);for(const i of s)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function be(n=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let s="";for(let i=0;i<n;i++)s+=t[Math.floor(Math.random()*e)];return s}function hr(n){return n.replace(/(^\w)/g,t=>t.toLowerCase())}const Et=(n,t="-")=>{let e=n.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function ur(n){return n.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function fr(n){return hr(ur(n))}const mr="[object String]",dr="[object Symbol]";function Qs(n){return Object.prototype.toString.call(n)}function pr(n){return Qs(n)===mr}function gr(n){return n===n+0}function yr(n){return Qs(n)===dr}function _r(n,...t){return new n.constructor(...t)}function xr(n,t){const e=n.findIndex(s=>s===t);return e>=0&&n.splice(e,1),n}let Ks;try{Ks=Map}catch{Ks=function(){}}let Js;try{Js=Set}catch{Js=function(){}}function bt(n,t){const e=parseFloat(n);if(Number.isNaN(e)){if(typeof t=="number")return t;throw new Error(`parseNumber(${n}) is NaN!`)}return e}function Y(n,t,e){const s=Math.min(t,e),i=Math.max(t,e);return n<s?s:n>i?i:n}function br(n,t){return(n%t+t)%t}function ns(n,t,e){return(1-e)*n+e*t}function vr(n,t=12){return bt(n,0).toFixed(t)}function Ht(n,t=12){return+vr(n,t)}function tn(n){const t=lr("number",n);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}Tr();function Tr(){const n=new ArrayBuffer(4),t=new Float32Array(n),e=new Uint32Array(n),s=new Uint32Array(512),i=new Uint32Array(512);for(let c=0;c<256;++c){const l=c-127;l<-27?(s[c]=0,s[c|256]=32768,i[c]=24,i[c|256]=24):l<-14?(s[c]=1024>>-l-14,s[c|256]=1024>>-l-14|32768,i[c]=-l-1,i[c|256]=-l-1):l<=15?(s[c]=l+15<<10,s[c|256]=l+15<<10|32768,i[c]=13,i[c|256]=13):l<128?(s[c]=31744,s[c|256]=64512,i[c]=24,i[c|256]=24):(s[c]=31744,s[c|256]=64512,i[c]=13,i[c|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let c=1;c<1024;++c){let l=c<<13,h=0;for(;!(l&8388608);)l<<=1,h-=8388608;l&=-8388609,h+=947912704,r[c]=l|h}for(let c=1024;c<2048;++c)r[c]=939524096+(c-1024<<13);for(let c=1;c<31;++c)o[c]=c<<23;o[31]=1199570944,o[32]=2147483648;for(let c=33;c<63;++c)o[c]=2147483648+(c-32<<23);o[63]=3347054592;for(let c=1;c<64;++c)c!==32&&(a[c]=1024);return{floatView:t,uint32View:e,baseTable:s,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}const en=(n,t,e)=>t?e===xe.base64?new Blob([n],{type:`${t};${e}`}):e===xe.utf8?new Blob([n],{type:`${t};charset=${e}`}):new Blob([n],{type:`${t}`}):new Blob([n]);function Z(){return(performance||Date).now()}class is{_maps=new Map;_mapsAddedDuringUpdate=new Map;_overflow;constructor(t){this._overflow=()=>{if(!t)return!1;const e=this.length;return e==0?!1:t?.overflow?t.overflow():!!t.size&&t.size>0&&e>=t.size}}entries(){return Array.from(this._maps.entries())}keys(){return Array.from(this._maps.keys())}values(){return Array.from(this._maps.values())}json(){return this.entries().reduce((t,[e,s])=>((pr(e)||gr(e)||yr(e))&&(t[e]=s),t),{})}get length(){return this.entries().length}set(t,e){for(;this._overflow();){const s=this._maps.keys().next();s.done||this.delete(s.value)}this._maps.set(t,e),this._mapsAddedDuringUpdate.set(t,e)}get(t){return this._maps.get(t)}has(t){return this._maps.has(t)}getIndex(t){const e=this.entries();if(e.length&&e[t])return e[t]}top(){return this.getIndex(0)}shift(){const t=this.top();if(t){const[e]=t;this.delete(e)}return t}delete(t){return this._mapsAddedDuringUpdate.delete(t),this._maps.delete(t)}clear(){this._maps.clear(),this._mapsAddedDuringUpdate.clear()}flush(){this.clear()}filter(t){let e=Array.from(this._maps.entries());for(;e.length>0;){this._mapsAddedDuringUpdate.clear();for(let s=0,i=e.length;s<i;s++){const[r,o]=e[s];t(r,o)===!1&&this.delete(r)}e=Array.from(this._mapsAddedDuringUpdate.entries())}}}const wr=300;function Cr(n,t=wr,e){const s=typeof e?.leading=="boolean"?e.leading:!0,i=typeof e?.trailing=="boolean"?e.trailing:!1;return function(...o){const{get:a,set:c}=cr(this||n);if(!a("__THROTTLE_READY__",!0)){(s||i)&&c("__THROTTLE_FN_ARGS__",o);return}c("__THROTTLE_READY__",!1),s&&n.apply(this,o),i&&c("__THROTTLE_FN_ARGS__",o),setTimeout(()=>{const h=a("__THROTTLE_FN_ARGS__");h&&n.apply(this,h),c("__THROTTLE_FN_ARGS__",void 0),c("__THROTTLE_READY__",!0)},t)}}Array.prototype.ap=function(n){return this.reduce((t,e)=>t.concat(n.map(e)),[])};let re;function rs(n){re=n,n(),re=null}class Sr{subscribers=new Set;add(){re&&!this.subscribers.has(re)&&this.subscribers.add(re)}notify(){this.subscribers.forEach(t=>t())}}const sn=new WeakMap;function ve(n,t){let e=sn.get(n);e||(e=new Map,sn.set(n,e));let s=e.get(t);return s||(s=new Sr,e.set(t,s)),s}function Pr(n,t=!1){return Object.keys(n).forEach(e=>{let s=n[e];if(t&&typeof s=="object"&&s!==null)n[e]=os(s,t);else{const i=ve(n,e);Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get(){return i.add(),s},set(r){s!=r&&(s=r,i.notify())}})}}),n}function nn(n,t=!1){return Pr({value:n},t)}function os(n,t=!1){const e={get(i,r,o){const a=Reflect.get(i,r,o);if(t&&typeof a=="object"&&a!==null&&!("isYZReactiveProxy"in a)){const l=os(a,t);l.YZReactiveProxyParentTarget=i,l.YZReactiveProxyParentKey=r,Reflect.set(o,r,l)}return ve(i,r).add(),Reflect.get(i,r,o)},set(i,r,o,a){const c=Reflect.get(i,r,a),l=Reflect.set(i,r,o,a);return Array.isArray(i)?ve(i.YZReactiveProxyParentTarget,i.YZReactiveProxyParentKey).notify():c!=o&&ve(i,r).notify(),l},has(i,r){return r==="isYZReactiveProxy"||r in i}};return new Proxy(n,e)}const kr=os;class Te{events;constructor(){this.events={}}isEmpty(t){return this.events[t]==null||this.events[t].length==0}has(t,e){return this.events[t]!==void 0&&this.events[t].indexOf(e)!==-1}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}addListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}on(t,e){return this.addListener(t,e),this}removeListener(t,e){return this.events[t]&&(this.events[t]=this.events[t].filter(s=>s!==e)),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].slice(0).forEach(i=>{i(...e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,e(...o),this.off(t,i))}})();return this.on(t,i),this}}function Er(n,t=(e,s)=>e<=s){const e=n.length;let s=Math.floor(e/2);for(;s>0;){for(let i=s;i<e;i++){const r=n[i];let o=i;for(;o>=s&&!t(n[o-s],r);)n[o]=n[o-s],o-=s;n[o]=r}s=Math.floor(s/2)}}let rn;try{rn=Promise}catch{rn=function(){}}class Ar extends Te{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(i=>i())),s=this.results.length;e.forEach((i,r)=>{if(i.status=="fulfilled"){const o=i.value;this.results.push(o),this.controller?.enqueue(o),this.emit("success",s+r,o)}else if(i.status=="rejected"){const o=new Error(i.reason);this.results.push(o),this.controller?.enqueue(o),this.emit("error",s+r,o)}}),this.activeTaskCount-=e.length}}}function Mr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ir={exports:{}};(function(n,t){(function(e){n.exports=e()})(function(e){var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(w,C){var _=w[0],p=w[1],v=w[2],x=w[3];_+=(p&v|~p&x)+C[0]-680876936|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[1]-389564586|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[2]+606105819|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[3]-1044525330|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[4]-176418897|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[5]+1200080426|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[6]-1473231341|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[7]-45705983|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[8]+1770035416|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[9]-1958414417|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[10]-42063|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[11]-1990404162|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[12]+1804603682|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[13]-40341101|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[14]-1502002290|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[15]+1236535329|0,p=(p<<22|p>>>10)+v|0,_+=(p&x|v&~x)+C[1]-165796510|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[6]-1069501632|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[11]+643717713|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[0]-373897302|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[5]-701558691|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[10]+38016083|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[15]-660478335|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[4]-405537848|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[9]+568446438|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[14]-1019803690|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[3]-187363961|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[8]+1163531501|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[13]-1444681467|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[2]-51403784|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[7]+1735328473|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[12]-1926607734|0,p=(p<<20|p>>>12)+v|0,_+=(p^v^x)+C[5]-378558|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[8]-2022574463|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[11]+1839030562|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[14]-35309556|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[1]-1530992060|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[4]+1272893353|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[7]-155497632|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[10]-1094730640|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[13]+681279174|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[0]-358537222|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[3]-722521979|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[6]+76029189|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[9]-640364487|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[12]-421815835|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[15]+530742520|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[2]-995338651|0,p=(p<<23|p>>>9)+v|0,_+=(v^(p|~x))+C[0]-198630844|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[7]+1126891415|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[14]-1416354905|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[5]-57434055|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[12]+1700485571|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[3]-1894986606|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[10]-1051523|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[1]-2054922799|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[8]+1873313359|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[15]-30611744|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[6]-1560198380|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[13]+1309151649|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[4]-145523070|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[11]-1120210379|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[2]+718787259|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[9]-343485551|0,p=(p<<21|p>>>11)+v|0,w[0]=_+w[0]|0,w[1]=p+w[1]|0,w[2]=v+w[2]|0,w[3]=x+w[3]|0}function r(w){var C=[],_;for(_=0;_<64;_+=4)C[_>>2]=w.charCodeAt(_)+(w.charCodeAt(_+1)<<8)+(w.charCodeAt(_+2)<<16)+(w.charCodeAt(_+3)<<24);return C}function o(w){var C=[],_;for(_=0;_<64;_+=4)C[_>>2]=w[_]+(w[_+1]<<8)+(w[_+2]<<16)+(w[_+3]<<24);return C}function a(w){var C=w.length,_=[1732584193,-271733879,-1732584194,271733878],p,v,x,I,O,R;for(p=64;p<=C;p+=64)i(_,r(w.substring(p-64,p)));for(w=w.substring(p-64),v=w.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<v;p+=1)x[p>>2]|=w.charCodeAt(p)<<(p%4<<3);if(x[p>>2]|=128<<(p%4<<3),p>55)for(i(_,x),p=0;p<16;p+=1)x[p]=0;return I=C*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(I[2],16),R=parseInt(I[1],16)||0,x[14]=O,x[15]=R,i(_,x),_}function c(w){var C=w.length,_=[1732584193,-271733879,-1732584194,271733878],p,v,x,I,O,R;for(p=64;p<=C;p+=64)i(_,o(w.subarray(p-64,p)));for(w=p-64<C?w.subarray(p-64):new Uint8Array(0),v=w.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<v;p+=1)x[p>>2]|=w[p]<<(p%4<<3);if(x[p>>2]|=128<<(p%4<<3),p>55)for(i(_,x),p=0;p<16;p+=1)x[p]=0;return I=C*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(I[2],16),R=parseInt(I[1],16)||0,x[14]=O,x[15]=R,i(_,x),_}function l(w){var C="",_;for(_=0;_<4;_+=1)C+=s[w>>_*8+4&15]+s[w>>_*8&15];return C}function h(w){var C;for(C=0;C<w.length;C+=1)w[C]=l(w[C]);return w.join("")}h(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function w(C,_){return C=C|0||0,C<0?Math.max(C+_,0):Math.min(C,_)}ArrayBuffer.prototype.slice=function(C,_){var p=this.byteLength,v=w(C,p),x=p,I,O,R,L;return _!==e&&(x=w(_,p)),v>x?new ArrayBuffer(0):(I=x-v,O=new ArrayBuffer(I),R=new Uint8Array(O),L=new Uint8Array(this,v,I),R.set(L),O)}}();function g(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function b(w,C){var _=w.length,p=new ArrayBuffer(_),v=new Uint8Array(p),x;for(x=0;x<_;x+=1)v[x]=w.charCodeAt(x);return C?v:p}function y(w){return String.fromCharCode.apply(null,new Uint8Array(w))}function m(w,C,_){var p=new Uint8Array(w.byteLength+C.byteLength);return p.set(new Uint8Array(w)),p.set(new Uint8Array(C),w.byteLength),_?p:p.buffer}function S(w){var C=[],_=w.length,p;for(p=0;p<_-1;p+=2)C.push(parseInt(w.substr(p,2),16));return String.fromCharCode.apply(String,C)}function P(){this.reset()}return P.prototype.append=function(w){return this.appendBinary(g(w)),this},P.prototype.appendBinary=function(w){this._buff+=w,this._length+=w.length;var C=this._buff.length,_;for(_=64;_<=C;_+=64)i(this._hash,r(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},P.prototype.end=function(w){var C=this._buff,_=C.length,p,v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x;for(p=0;p<_;p+=1)v[p>>2]|=C.charCodeAt(p)<<(p%4<<3);return this._finish(v,_),x=h(this._hash),w&&(x=S(x)),this.reset(),x},P.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},P.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},P.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},P.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},P.prototype._finish=function(w,C){var _=C,p,v,x;if(w[_>>2]|=128<<(_%4<<3),_>55)for(i(this._hash,w),_=0;_<16;_+=1)w[_]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(p[2],16),x=parseInt(p[1],16)||0,w[14]=v,w[15]=x,i(this._hash,w)},P.hash=function(w,C){return P.hashBinary(g(w),C)},P.hashBinary=function(w,C){var _=a(w),p=h(_);return C?S(p):p},P.ArrayBuffer=function(){this.reset()},P.ArrayBuffer.prototype.append=function(w){var C=m(this._buff.buffer,w,!0),_=C.length,p;for(this._length+=w.byteLength,p=64;p<=_;p+=64)i(this._hash,o(C.subarray(p-64,p)));return this._buff=p-64<_?new Uint8Array(C.buffer.slice(p-64)):new Uint8Array(0),this},P.ArrayBuffer.prototype.end=function(w){var C=this._buff,_=C.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v,x;for(v=0;v<_;v+=1)p[v>>2]|=C[v]<<(v%4<<3);return this._finish(p,_),x=h(this._hash),w&&(x=S(x)),this.reset(),x},P.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},P.ArrayBuffer.prototype.getState=function(){var w=P.prototype.getState.call(this);return w.buff=y(w.buff),w},P.ArrayBuffer.prototype.setState=function(w){return w.buff=b(w.buff,!0),P.prototype.setState.call(this,w)},P.ArrayBuffer.prototype.destroy=P.prototype.destroy,P.ArrayBuffer.prototype._finish=P.prototype._finish,P.ArrayBuffer.hash=function(w,C){var _=c(new Uint8Array(w)),p=h(_);return C?S(p):p},P})})(Ir);const on=n=>new XMLSerializer().serializeToString(n),Fr=(n,t=Zs.SVG,e=xe.utf8)=>en(on(n),t,e);function zr(n,t){const e=nn(t||"");if(!t)try{let s=window.localStorage.getItem(n);s&&(s=JSON.parse(s),e.value=s?s.value:"")}catch{}return rs(()=>{if(e.value)try{window.localStorage.setItem(n,JSON.stringify(e))}catch{}else window.localStorage.removeItem(n)}),e}function U(n,t,e,s=!1){const i=async r=>{await e(r)};try{n.addEventListener(t,i,s)}catch{n.attachEvent("on"+t,i)}return()=>{try{n.removeEventListener(t,i,s)}catch{n.detachEvent("on"+t,i)}}}(function(){if(!window.requestAnimationFrame){let n=Z();window.requestAnimationFrame=function(t){const e=Z(),s=Math.max(0,16-(e-n)),i=window.setTimeout(function(){t(e+s)},s);return n=e+s,i}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})();function Or(n){let t=!1;return window.requestAnimationFrame(function e(s){!t&&n(s)&&window.requestAnimationFrame(e)}),()=>{t=!0}}window.requestIdleCallback=window.requestIdleCallback||function(n,t){const e=Z();return setTimeout(function(){n({didTimeout:Z()-e>50,timeRemaining:()=>Math.max(0,50-(Z()-e))})},t?.timeout)},window.cancelIdleCallback=window.cancelIdleCallback||function(n){clearTimeout(n)};const as=new is;let cs=!1;function an(n,t,e){n&&t&&as.set(n,{cb:t,startTime:Z(),timeout:e}),!cs&&(cs=!0,Lr(s=>{cs=!1;let i=s.timeRemaining();as.filter((r,o)=>{let a=!1;const c=Z();(i>0||o.timeout&&Z()-o.startTime>=o.timeout)&&(o.cb(),a=!0);const l=Z();return i-=l-c,!a}),as.length>0&&an()}))}let we=0,Yt=33,Nt=33,ls;const cn=new MessageChannel,Rr=cn.port2;cn.port1.onmessage=n=>{ls!==null&&ls({didTimeout:we<=Z(),timeRemaining:()=>Math.max(0,we-Z())})};function Lr(n){return ls=n,requestAnimationFrame(t=>{let e=t-we+Nt;e<Nt&&Yt<Nt?(e<8&&(e=8),Nt=e<Yt?Yt:e):e>Nt&&Yt>Nt?Nt=e<Yt?Yt:e:Yt=e,we=t+Nt,Rr.postMessage(null)})}class hs{static _nextId=0;static nextId(){return hs._nextId++}}const F={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)}},Bounce:{In:function(n){return 1-F.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?F.Bounce.In(n*2)*.5:F.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(t){return t**n},Out:function(t){return 1-(1-t)**n},InOut:function(t){return t<.5?(t*2)**n/2:(1-(2-t*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(t){return Math.floor(t*n)/n}},createNoisyEasing:function(n,t=.1){const e=1-t;return function(s){return t*Math.random()+e*n(s)}},swing:function(n){return n+Math.sin(n*Math.PI*2)/2},causeSeizures:function(n){return n+.2*Math.random()-.1}};function Nr(n){switch(n){case F.Quadratic.In:return F.Quadratic.Out;case F.Quadratic.Out:return F.Quadratic.In;case F.Quadratic.InOut:return F.Quadratic.InOut;case F.Cubic.In:return F.Cubic.Out;case F.Cubic.Out:return F.Cubic.In;case F.Cubic.InOut:return F.Cubic.InOut;case F.Quartic.In:return F.Quartic.Out;case F.Quartic.Out:return F.Quartic.In;case F.Quartic.InOut:return F.Quartic.InOut;case F.Quintic.In:return F.Quintic.Out;case F.Quintic.Out:return F.Quintic.In;case F.Quintic.InOut:return F.Quintic.InOut;case F.Sinusoidal.In:return F.Sinusoidal.Out;case F.Sinusoidal.Out:return F.Sinusoidal.In;case F.Sinusoidal.InOut:return F.Sinusoidal.InOut;case F.Exponential.In:return F.Exponential.Out;case F.Exponential.Out:return F.Exponential.In;case F.Exponential.InOut:return F.Exponential.InOut;case F.Circular.In:return F.Circular.Out;case F.Circular.Out:return F.Circular.In;case F.Circular.InOut:return F.Circular.InOut;case F.Elastic.In:return F.Elastic.Out;case F.Elastic.Out:return F.Elastic.In;case F.Elastic.InOut:return F.Elastic.InOut;case F.Back.In:return F.Back.Out;case F.Back.Out:return F.Back.In;case F.Back.InOut:return F.Back.InOut;case F.Bounce.In:return F.Bounce.Out;case F.Bounce.Out:return F.Bounce.In;case F.Bounce.InOut:return F.Bounce.InOut;default:return n}}const Gt={Utils:{Linear:function(n,t,e){return(t-n)*e+n},Factorial:function(){const n=[1];return function(t){let e=1;if(n[t])return n[t];for(let s=t;s>1;s--)e*=s;return n[t]=e,e}}(),Bernstein:function(n,t){const e=Gt.Utils.Factorial;return e(n)/e(t)/e(n-t)},CatmullRom:function(n,t,e,s,i){const r=(e-n)*.5,o=(s-t)*.5,a=i*i,c=i*a;return(2*t-2*e+r+o)*c+(-3*t+3*e-2*r-o)*a+r*i+t},QuadraticBezier:(n,t,e,s)=>{const i=1-s;return i*i*n+2*i*s*t+s*s*e},CubicBezier:(n,t,e,s,i)=>{const r=1-i;return r*r*r*n+3*r*r*i*t+3*r*i*i*e+i*i*i*s}},Linear:function(n,t){const e=n.length-1,s=e*t,i=Math.floor(s),r=Gt.Utils.Linear;return t<0?r(n[0],n[1],s):t>1?r(n[e],n[e-1],e-s):r(n[i],n[i+1>e?e:i+1],s-i)},Bezier:function(n,t){let e=0;const s=n.length-1,i=Math.pow,r=Gt.Utils.Bernstein;for(let o=0;o<=s;o++)e+=i(1-t,s-o)*i(t,o)*n[o]*r(s,o);return e},CatmullRom:function(n,t){const e=n.length-1;let s=e*t,i=Math.floor(s);const r=Gt.Utils.CatmullRom;return n[0]===n[e]?(t<0&&(i=Math.floor(s=e*(1+t))),r(n[(i-1+e)%e],n[i],n[(i+1)%e],n[(i+2)%e],s-i)):t<0?n[0]-(r(n[0],n[0],n[1],n[1],-s)-n[0]):t>1?n[e]-(r(n[e],n[e],n[e-1],n[e-1],s-e)-n[e]):r(n[i?i-1:0],n[i],n[e<i+1?e:i+1],n[e<i+2?e:i+2],s-i)}};class Dr{_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=Z(),e=!1){const s=Object.keys(this._tweens);for(let i=0;i<s.length;i++){const r=this._tweens[s[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[s[i]]}return!!Object.keys(this._tweens).length}}const ln=new Dr;class Vr{constructor(t,e=ln){this._object=t,this._group=e}_id=hs.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=F.Linear.None;_interpolationFunction=Gt.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=Z()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,s,i){for(const r in s){const o=t[r],a=Array.isArray(o),c=a?"array":typeof o,l=!a&&Array.isArray(s[r]);if(!(c==="undefined"||c==="function")){if(l){let h=s[r];if(h.length===0)continue;h=h.map(this._handleRelativeValue.bind(this,o)),s[r]=[o].concat(h)}if((c==="object"||a)&&o&&!l){e[r]=a?[]:{};for(const h in o)e[r][h]=o[h];i[r]=a?[]:{},this._setupProperties(o,e[r],s[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),l?i[r]=s[r].slice().reverse():i[r]=e[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=Z()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Z()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=ln){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=F.Linear.None){return this._easingFunction=t,this}interpolation(t=Gt.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=Z(),e=!0){if(this._isPaused)return!0;let s,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,c=this._chainedTweens.length;a<c;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,s,i){for(const r in s){if(e[r]===void 0)continue;const o=e[r]||0;let a=s[r];const c=Array.isArray(t[r]),l=Array.isArray(a);!c&&l?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=s,this._valuesEnd[t]=e}}class Br{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Z(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Z();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const hn=Br;class Ce{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){Er(this.tweens,(e,s)=>t?e.delay>s.delay:e.delay<=s.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(s=>{const i={...s};delete i.tween,i.fromValues={...i.fromValues},i.toValues={...i.toValues},e.push(i)}),e}addTween(t,e,s){const i={fromValues:t,toValues:e,frames:typeof s?.frames=="number"?s.frames:1,delay:typeof s?.delay=="number"?s.delay:this.tweens.length,easeFunction:s?.easeFunction||F.Linear.None,interpolationFunction:s?.interpolationFunction||Gt.Linear,repeat:typeof s?.repeat=="number"?s.repeat:0,yoyo:s?.yoyo||!1,onStart:s?.onStart||(()=>{}),onUpdate:s?.onUpdate||(()=>{}),onComplete:s?.onComplete||(()=>{})};return this.tweens.push(i),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new hn,s=this.frameDuration;return new Promise(i=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Or(r=>{if(!this.isPaused){const a=Math.max(0,r-this.pausedDuration),c=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(l=>l.delay*s<=c).forEach(l=>{l.tween||(l.tween=new Vr({...l.fromValues}).to({...l.toValues},l.frames*s).easing(l.easeFunction).interpolation(l.interpolationFunction).repeat(l.repeat).yoyo(l.yoyo).onStart(l.onStart).onUpdate(l.onUpdate).onComplete(l.onComplete),l.tween.start(a)),(l.delay+l.frames*(l.repeat+1))*s>c?l.tween.update(a):(l.tween.isPlaying()&&l.tween.end(),xr(t,l))})}const o=!!t.length;return o||(this.onGroupComplete?.(),i()),o})})}isPaused=!1;pausedClock=new hn;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(s=>{e=Math.max(e,s.delay+s.frames),s.easeFunction=Nr(s.easeFunction);const i={...s.toValues};s.toValues={...s.fromValues},s.fromValues={...i}}),t.forEach(s=>{s.delay=e-s.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}const Se=new is,Xr=(n=!0)=>{Se.filter((t,e)=>(e.alternate&&(Wn(e,e.alternate),n&&Se.set(t,e.alternate),e.alternate=void 0),n))};function un(n){let t=Se.get(n);return t||(t=Ss(n),Se.set(n,t)),t}function Yr(n){const t=un(n);return t.alternate||(t.alternate=Ss(n)),t.alternate}function Gr(n,t,e=!0){t(Yr(n)),an("FLUSH_DOM_ACTION",()=>Xr(e),50)}function J(n){return n*Math.PI/180}function ut(n){return n*180/Math.PI}function fn(n,t,e=0){return Math.sqrt(n*n+t*t+e*e)}function mn(n,t,e,s){return fn(e-n,s-t)}function us(n,t,e,s){const i=e-n,r=s-t;return i*i+r*r}function Pe(n,t,e,s){let i=Math.atan2(s-t,e-n);return i<0&&(i+=Math.PI*2),i}function dn(n,t){return{dx:Math.cos(n)*t,dy:Math.sin(n)*t}}const pn=$r("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 $r(n,t=10){const e={},s=n.split(",");for(let i=0;i<s.length;i+=2){const r="&"+s[i+1]+";",o=parseInt(s[i],t);e[r]="&#"+o+";"}return e["\\xa0"]=" ",e}function st(n,t){const e=Object.keys(t);for(let s=0;s<e.length;s++)n=n.replace(new RegExp("{"+e[s]+"}","gi"),""+t[e[s]]);return n}function ke(n){let t,e;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=s[Math.floor(Math.random()*s.length)];while(n[t]);return t}function Ur(n){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[n]||t.start}function qr(n){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[n]||t.alphabetic}const oe={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class fs{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(s.setAttribute("stop-color",st("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),s.setAttribute("stop-opacity",r[4]))}else s.setAttribute("stop-color",e);this.__root.appendChild(s)}}class gn{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class Ee{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:s=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(oe);for(let e=0,s=t.length;e<s;e++){const i=t[e];this[i]=oe[i].canvas}}__getStyleState(){const t={},e=Object.keys(oe);for(let s=0,i=e.length;s<i;s++){const r=e[s];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let s=0,i=e.length;s<i;s++){const r=e[s];this[r]=t[r]}}__createElement(t,e={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const s=this.__currentElementsToStyle;s&&(e.setAttribute(t,""),e=s.element,s.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(oe);for(let r=0;r<i.length;r++){const o=oe[i[r]],a=this[i[r]];if(o.apply){if(a instanceof gn){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(o.apply,st("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof fs)e.setAttribute(o.apply,st("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const l=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(l){e.setAttribute(o.svgAttr,st("rgb({r},{g},{b})",{r:l[1],g:l[2],b:l[3]}));let h=parseFloat(l[4]);const g=this.globalAlpha;g!=null&&(h*=g),e.setAttribute(o.svgAttr+"-opacity",""+h)}}else{let c=o.svgAttr;if(i[r]==="globalAlpha"&&(c=t+"-"+o.svgAttr,e.getAttribute(c)))continue;c&&e.setAttribute(c,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(pn);for(let r=0,o=i.length;r<o;r++){const a=i[r],c=pn[a],l=new RegExp(a,"gi");l.test(e)&&(e=e.replace(l,c))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=t,this.__currentElement.setAttribute("transform",s)}scale(t,e){e===void 0&&(e=t),this.__addTransform(st("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(st("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(st("translate({x},{y})",{x:t,y:e}))}transform(t,e,s,i,r,o){this.__addTransform(st("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:s,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(st("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(st("L {x} {y}",this.__currentPosition)):this.__addPathCommand(st("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,s,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(st("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:s,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(st("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:s,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,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===t&&a===e||t===s&&e===i||r===0){this.lineTo(t,e);return}const c=this.normalize([o-t,a-e]),l=this.normalize([s-t,i-e]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(t,e);return}const h=c[0]*l[0]+c[1]*l[1],g=Math.acos(Math.abs(h)),b=this.normalize([c[0]+l[0],c[1]+l[1]]),y=r/Math.sin(g/2),m=t+y*b[0],S=e+y*b[1],P=[-c[1],c[0]],w=[l[1],-l[0]],C=function(v){const x=v[0];return v[1]>=0?Math.acos(x):-Math.acos(x)},_=C(P),p=C(w);this.lineTo(m+P[0]*r,S+P[1]*r),this.arc(m,S,r,_,p)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,e,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+s,e),this.lineTo(t+s,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=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=[],e&&this.__addTransform(e)}clearRect(t,e,s,i){if(t===0&&e===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:s,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,s,i){const r=this.__createElement("linearGradient",{id:ke(this.__ids),x1:t+"px",x2:s+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new fs(r,this)}createRadialGradient(t,e,s,i,r,o){const a=this.__createElement("radialGradient",{id:ke(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new fs(a,this)}__parseFont(){const e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(t,e){if(t.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),s.appendChild(e),s}return e}__applyText(t,e,s,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:s,"text-anchor":Ur(this.textAlign),"dominant-baseline":qr(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,s){this.__applyText(t,e,s,"fill")}strokeText(t,e,s){this.__applyText(t,e,s,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,s,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+s*Math.cos(r),c=e+s*Math.sin(r),l=t+s*Math.cos(i),h=e+s*Math.sin(i),g=o?0:1;let b=0,y=r-i;y<0&&(y+=2*Math.PI),o?b=y>Math.PI?0:1:b=y>Math.PI?1:0,this.lineTo(l,h),this.__addPathCommand(st("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:b,sweepFlag:g,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),s=ke(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",s),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",st("url(#{id})",{id:s})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],s,i,r,o,a=0,c=0,l,h,g,b,y,m,S,P;if(t.length===3)s=t[1],i=t[2],l=e.width,h=e.height,r=l,o=h;else if(t.length===5)s=t[1],i=t[2],r=t[3],o=t[4],l=e.width,h=e.height;else if(t.length===9)a=t[1],c=t[2],l=t[3],h=t[4],s=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const w=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+s+", "+i+")";if(e instanceof Ee){if(g=e.getSvg().cloneNode(!0),g.childNodes&&g.childNodes.length>1){for(b=g.childNodes[0];b.childNodes.length;)P=b.childNodes[0].getAttribute("id"),this.__ids[P]=P,this.__SVGdefs.appendChild(b.childNodes[0]);if(y=g.childNodes[1],y){const _=y.getAttribute("transform");let p;_?p=_+" "+C:p=C,y.setAttribute("transform",p),w.appendChild(y)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||c||l!==e.width||h!==e.height)&&(S=this.__document.createElement("canvas"),S.width=r,S.height=o,S.getContext("2d")?.drawImage(e,a,c,l,h,0,0,r,o),e=S),m.setAttribute("transform",C),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),w.appendChild(m))}createPattern(t,e){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=ke(this.__ids);let r;return s.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),s.appendChild(r),this.__SVGdefs.appendChild(s)):t instanceof Ee&&(s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new gn(s,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class yn{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,s,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new Ee({canvas:this.canvas,width:e||this.canvas.width,height:s||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,s,i){return this.context.fillRect(t,e,s,i),this.customContext&&this.customContext.fillRect(t,e,s,i),this}fillText(t,e,s,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,s,i),this.customContext&&this.customContext.fillText(t,e,s),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,s,i){return this.context.strokeText(t,e,s,i),this.customContext&&this.customContext.strokeText(t,e,s),this}strokeRect(t,e,s,i){return this.context.strokeRect(t,e,s,i),this.customContext&&this.customContext.strokeRect(t,e,s,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,s,i),this.customContext&&this.customContext.clearRect(t,e,s,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const s=new Path2D;s.addPath(t,e),this.currentPath2D=s}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,s=0){return this.translate(e,s),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-s),this.changePath2D(),this}scale(t,e=t,s=0,i=0){return this.translate(s,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-s,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,s,i,r,o){return this.context.arc(t,e,s,i,r,o),this.customContext&&this.customContext.arc(t,e,s,i,r,o?-1:1),this.currentPath2D.arc(t,e,s,i,r,o),this}arcTo(t,e,s,i,r){return this.context.arcTo(t,e,s,i,r),this.customContext&&this.customContext.arcTo(t,e,s,i,r),this.currentPath2D.arcTo(t,e,s,i,r),this}ellipse(t,e,s,i,r,o,a,c){return this.context.ellipse(t,e,s,i,r,o,a,c),this.currentPath2D.ellipse(t,e,s,i,r,o,a,c),this}quadraticCurveTo(t,e,s,i){return this.context.quadraticCurveTo(t,e,s,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,s,i),this.currentPath2D.quadraticCurveTo(t,e,s,i),this}bezierCurveTo(t,e,s,i,r,o){return this.context.bezierCurveTo(t,e,s,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,s,i,r,o),this.currentPath2D.bezierCurveTo(t,e,s,i,r,o),this}rect(t,e,s,i){return this.context.rect(t,e,s,i),this.customContext&&this.customContext.rect(t,e,s,i),this.currentPath2D.rect(t,e,s,i),this}createLinearGradient(t,e,s,i,r){const o=this.context.createLinearGradient(t,e,s,i);return r&&Object.entries(r).forEach(([a,c])=>{o.addColorStop(parseFloat(a),c)}),o}createRadialGradient(t,e,s,i,r,o,a){const c=this.context.createRadialGradient(t,e,s,i,r,o);return a&&Object.entries(a).forEach(([l,h])=>{c.addColorStop(parseFloat(l),h)}),c}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const s=e[0],i=e[1];this.context.drawImage(t,s,i)}else if(e.length===4){const s=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,s,i,r,o)}else if(e.length===8){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],c=e[5],l=e[6],h=e[7];this.context.drawImage(t,s,i,r,o,a,c,l,h)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,s=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,s,i,r)}putImageData(t,e=0,s=0){return this.context.putImageData(t,e,s)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class ms{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=Pe(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),s=Math.min(this.y,this.toY),i=Math.max(this.x,this.toX),r=Math.max(this.y,this.toY);return{x:e,y:s,width:i-e,height:r-s}}else{const e=Math.sin(t),s=Math.cos(t),i=s*this.x-e*this.y,r=s*this.toX-e*this.toY,o=s*this.y+e*this.x,a=s*this.toY+e*this.toX;return{x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,s=this.y,i=t.toX,r=t.toY,o=this.toX-e,a=t.x-i;if(!o&&!a)return null;const c=(this.toY-s)/o,l=(t.y-r)/a;if(o){if(!a)return{x:i,y:c*(i-e)+s}}else return{x:e,y:l*(e-i)+r};const h=(-l*i+r+c*e-s)/(c-l),g=c*(h-e)+s;return isNaN(h)||isNaN(g)?null:{x:h,y:g}}}class jr extends ms{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,s,i,r,o,a,c]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,s,i,r,o,a,c,!this.sweepFlag)}convert(t,e,s,i,r,o,a,c,l){const h=a/180*Math.PI,g=(t-s)/2,b=(e-i)/2,y=Math.cos(h)*g+Math.sin(h)*b,m=-Math.sin(h)*g+Math.cos(h)*b,S=y*y/(r*r)+m*m/(o*o);if(S>1){const B=Math.sqrt(S);throw r=B*r,o=B*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const P=Math.sqrt((r*r*o*o-r*r*m*m-o*o*y*y)/(r*r*m*m+o*o*y*y)),w=c!=l?1:-1,C=w*P*r*m/o,_=w*P*-o*y/r,p=(t+s)/2,v=(e+i)/2,x=Math.cos(h)*C-Math.sin(h)*_+p,I=Math.sin(h)*C+Math.cos(h)*_+v,O=(B,q,D,X)=>(B*X>=q*D?1:-1)*Math.acos((B*D+q*X)/(Math.sqrt(B*B+q*q)*Math.sqrt(D*D+X*X))),R=O(1,0,t-x,e-I)-h,L=O(t-x,e-I,s-x,i-I);return[x,I,r,o,h,R,R+L]}}const Hr=jr;class Zr extends ms{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,s,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let s,i,r,o;for(let l=0;l<2;++l)s=l==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,i=l==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,r=l==0?this.x:this.y,Math.abs(s)>1e-12&&(o=-i/(2*s),0<o&&o<1&&[t,e][l].push(s*o*o+i*o+r));const a={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},c={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:a.x,y:a.y,width:c.x-a.x,height:c.y-a.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const Wr=Zr;class Zt extends ms{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),s=this.x-this.c1x,i=(-e+Math.sqrt(e*e-4*t*s))/2/t,r=(-e-Math.sqrt(e*e-4*t*s))/2/t;const o=[this.y,this.toY],a=[this.x,this.toX];let c;const l=[];Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(c=this.interpolate(i),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),r>=0&&r<=1&&(c=this.interpolate(r),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),s=this.y-this.c1y,i=(-e+Math.sqrt(e*e-4*t*s))/2/t,r=(-e-Math.sqrt(e*e-4*t*s))/2/t,Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(c=this.interpolate(i),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),r>=0&&r<=1&&(c=this.interpolate(r),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y}));const h=[],g=l.length;for(let m=0;m<g;m++){for(let S=m+1;S<g;S++)l[m].X===l[S].X&&l[m].Y===l[S].Y&&(S=++m);h.push({X:l[m].X,Y:l[m].Y})}const b={x:Math.min.apply(Math,a),y:Math.min.apply(Math,o)},y={x:Math.max.apply(Math,a),y:Math.max.apply(Math,o)};return{x:b.x,y:b.y,width:y.x-b.x,height:y.y-b.y,dots:h}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.toX,y:Math.pow(1-t,3)*this.y+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.toY}}static base3(t,e,s,i,r){const o=-3*e+9*s-9*i+3*r,a=t*o+6*e-12*s+6*i;return t*a-3*e+3*s}static bezlen(t,e,s,i,r,o,a,c,l=1){l=Math.max(0,Math.min(l,1));const h=l/2,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],b=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let y=0;for(let m=0;m<12;m++){const S=h*g[m]+h,P=this.base3(S,t,s,r,a),w=this.base3(S,e,i,o,c);y+=b[m]*Math.sqrt(P*P+w*w)}return h*y}length(t=1){return Zt.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,s=this.y,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,c=this.toX,l=this.toY;if(t<0||Zt.bezlen(e,s,i,r,o,a,c,l)<t)return 0;const h=1;let g=h/2,b=h-g,y=Zt.bezlen(e,s,i,r,o,a,c,l,b);for(;Math.abs(y-t)>.01;)g/=2,b+=(y<t?1:-1)*g,y=Zt.bezlen(e,s,i,r,o,a,c,l,b);return b}getPointAtSegmentLength(t){const e=this.getTatLen(t),s=1-e,i=Math.pow(s,3),r=Math.pow(s,2),o=e*e,a=o*e,c=i*this.x+r*3*e*this.c1x+s*3*e*e*this.c2x+a*this.toX,l=i*this.y+r*3*e*this.c1y+s*3*e*e*this.c2y+a*this.toY,h=this.x+2*e*(this.c1x-this.x)+o*(this.c2x-2*this.c1x+this.x),g=this.y+2*e*(this.c1y-this.y)+o*(this.c2y-2*this.c1y+this.y),b=this.c1x+2*e*(this.c2x-this.c1x)+o*(this.toX-2*this.c2x+this.c1x),y=this.c1y+2*e*(this.c2y-this.c1y)+o*(this.toY-2*this.c2y+this.c1y),m=s*this.x+e*this.c1x,S=s*this.y+e*this.c1y,P=s*this.c2x+e*this.toX,w=s*this.c2y+e*this.toY,C=90-Math.atan2(h-b,g-y)*180/Math.PI;return{x:c,y:l,m:{x:h,y:g},n:{x:b,y},start:{x:m,y:S},end:{x:P,y:w},alpha:C}}}const Dt=Zt,ae=Math.PI*2;function _n(n,t,e,s){const i=n*s-t*e<0?-1:1;let r=n*e+t*s;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function Qr(n,t,e,s,i,r,o,a,c,l){const h=l*(n-e)/2+c*(t-s)/2,g=-c*(n-e)/2+l*(t-s)/2,b=o*o,y=a*a,m=h*h,S=g*g;let P=b*y-b*S-y*m;P<0&&(P=0),P/=b*S+y*m,P=Math.sqrt(P)*(i===r?-1:1);const w=P*o/a*g,C=P*-a/o*h,_=l*w-c*C+(n+e)/2,p=c*w+l*C+(t+s)/2,v=(h-w)/o,x=(g-C)/a,I=(-h-w)/o,O=(-g-C)/a,R=_n(1,0,v,x);let L=_n(v,x,I,O);return r===0&&L>0&&(L-=ae),r===1&&L<0&&(L+=ae),[_,p,R,L]}function Kr(n,t){const e=1.3333333333333333*Math.tan(t/4),s=Math.cos(n),i=Math.sin(n),r=Math.cos(n+t),o=Math.sin(n+t);return[s,i,s-i*e,i+s*e,r+o*e,o-r*e,r,o]}function xn(n,t,e,s,i,r,o,a,c){const l=Math.sin(c*ae/360),h=Math.cos(c*ae/360),g=h*(n-e)/2+l*(t-s)/2,b=-l*(n-e)/2+h*(t-s)/2;if(g===0&&b===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const y=g*g/(o*o)+b*b/(a*a);y>1&&(o*=Math.sqrt(y),a*=Math.sqrt(y));const m=Qr(n,t,e,s,i,r,o,a,l,h),S=[];let P=m[2],w=m[3];const C=Math.max(Math.ceil(Math.abs(w)/(ae/4)),1);w/=C;for(let _=0;_<C;_++)S.push(Kr(P,w)),P+=w;return S.map(_=>{for(let p=0;p<_.length;p+=2){let v=_[p+0],x=_[p+1];v*=o,x*=a;const I=h*v-l*x,O=l*v+h*x;_[p+0]=I+m[0],_[p+1]=O+m[1]}return _})}function ds(n,t,e,s,i,r){return[n/3+2/3*e,t/3+2/3*s,i/3+2/3*e,r/3+2/3*s,i,r]}function ce(n,t,e,s){return[n,t,e,s,e,s]}const Ae={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class ps{static createSVGElement(t="path",e){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&io(s,e),s}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||be()})}static downloadFromSVGElement(t,e="shape"){return Un(Fr(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Un(en(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return on(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return ps.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,r)=>{let o=i.toLowerCase();const a=tn(r);for(o=="m"&&a.length>Ae[o]&&(e.push([i,...a.splice(0,Ae[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Ae[o])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Ae[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,s=0,i=0,r=0;return t.map(function(o){const a=o[0],c=a.toUpperCase();if(a!=c)switch(o[0]=c,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 l=1;l<o.length;)o[l++]+=i,o[l++]+=r}switch(c){case"Z":i=e,r=s;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=s=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,s=0,i=0,r=0;return t.map(function(o){const a=o[0],c=a.toLowerCase();if(a!=c)switch(o[0]=c,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 l=1;l<o.length;)o[l++]-=i,o[l++]-=r}switch(c){case"z":i=e,r=s;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],s+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let s=0,i=0,r=0,o=0,a=0,c=0,l=0,h=0,g;for(let b=0,y=t.length;b<y;b++){let m=t[b];const S=m[0];switch(S){case"M":s=m[1],i=m[2];break;case"A":const P=xn(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!P.length)continue;P.forEach((_,p)=>{const[v,x,I,O,R,L,B,q]=_;m=["C",I,O,R,L,B,q],p<P.length-1&&e.push(m)});break;case"S":let w=r,C=o;(g=="C"||g=="S")&&(w+=w-l,C+=C-h),m=["C",w,C,m[1],m[2],m[3],m[4]];break;case"T":g=="Q"||g=="T"?(a=r*2-a,c=o*2-c):(a=r,c=o),m=["C",...ds(r,o,a,c,m[1],m[2])];break;case"Q":a=m[1],c=m[2],m=["C",...ds(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...ce(r,o,m[1],m[2])];break;case"H":m=["C",...ce(r,o,m[1],o)];break;case"V":m=["C",...ce(r,o,r,m[1])];break;case"Z":m=["C",...ce(r,o,s,i)];break}g=S,r=m[m.length-2],o=m[m.length-1],m.length>4?(l=m[m.length-4],h=m[m.length-3]):(l=r,h=o),e.push(m)}return e}static catmullRom2bezier(t){const e=[];for(let s=0,i=t.length;i-2>s;s+=2){let r;s==0?r=[{x:t[s],y:t[s+1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}]:i-4==s?r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+2],y:t[s+3]}]:r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){const e=[];let s=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){const a=t[r];switch(a[0]){case"M":s=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(s);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const c=t[o],l=e[c[0]];l&&(c[0]=l.to,s&&(s[0]===l.to?(i=2*Number(s[l.x+2])-Number(s[l.x]),r=2*Number(s[l.x+3])-Number(s[l.x+1])):(i=Number(s[s.length-2]),r=Number(s[s.length-1]))),c.splice(1,0,i,r)),s=c}return t}}const Me=ps;class At{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(Me.parseSVGPath(t),e):t instanceof At?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const s=Me.normalizeSVGPath(Me.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let i=!1;for(let r=0,o=s.length;r<o;r++){const a=s[r];if(a[0]=="M"){i||(i=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Dt({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],toX:a[5],toY:a[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(r=>{({x:r.x,y:r.y}=e.transformPoint({x:r.x,y:r.y})),{x:r.c1x,y:r.c1y}=e.transformPoint({x:r.c1x,y:r.c1y}),{x:r.c2x,y:r.c2y}=e.transformPoint({x:r.c2x,y:r.c2y}),{x:r.toX,y:r.toY}=e.transformPoint({x:r.toX,y:r.toY})}))}static fromPolymorphPoints(t){const e=new At;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let s=2,i=t.length;s+5<i;s+=6)e.appendLine(new Dt({c1x:t[s],c1y:t[s+1],c2x:t[s+2],c2y:t[s+3],toX:t[s+4],toY:t[s+5]}));return e}static fromLines(t){const e=new At;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let s=0,i=t.length;s<i;s++)e.appendLine(t[s]);return e}appendLine(t){if(t instanceof Hr){xn(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(l=>{const[h,g,b,y,m,S,P,w]=l;this.normalizedLines.push(new Dt({x:this.prevPathX,y:this.prevPathY,c1x:b,c1y:y,c2x:m,c2y:S,toX:P,toY:w})),this.prevPathX=P,this.prevPathY=w});return}let e,s,i,r,o,a;t instanceof Dt?(e=t.c1x,s=t.c1y,i=t.c2x,r=t.c2y,o=t.toX,a=t.toY):t instanceof Wr?[e,s,i,r,o,a]=ds(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,s,i,r,o,a]=ce(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Dt({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:s,c2x:i,c2y:r,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform(),i=[];i.push(["M",t,e]);for(let r=0,o=s.length;r<o;r++)i.push(...s[r].toSVGPathData());return i}toSVGPathD(){return Me.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:s,normalizedLines:i}=this.updateTransform();t.beginPath(),t.moveTo(e,s),i.forEach(r=>{r.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],s=[];if(t.forEach(c=>{const l=c.getBoundingClientRect();e.push(l.x,l.x+l.width),s.push(l.y,l.y+l.height)}),e.length==0||s.length==0)return{x:0,y:0,width:0,height:0};const i=Math.min.apply(0,e),r=Math.min.apply(0,s),o=Math.max.apply(0,e),a=Math.max.apply(0,s);return{x:i,y:r,width:o-i,height:a-r}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new mt;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,s=this.startPathY;({x:e,y:s}=t.transformPoint({x:e,y:s}));const i=[];return this.normalizedLines.forEach(r=>{let o=r.x,a=r.y,c=r.c1x,l=r.c1y,h=r.c2x,g=r.c2y,b=r.toX,y=r.toY;({x:o,y:a}=t.transformPoint({x:o,y:a})),{x:c,y:l}=t.transformPoint({x:c,y:l}),{x:h,y:g}=t.transformPoint({x:h,y:g}),{x:b,y}=t.transformPoint({x:b,y}),i.push(new Dt({x:o,y:a,c1x:c,c1y:l,c2x:h,c2y:g,toX:b,toY:y}))}),{startPathX:e,startPathY:s,normalizedLines:i}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,s)=>e+=s.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let s=0;const i=e.length;for(let r=0;r<i;r++){const o=e[r],a=o.length();if(s+a>=t)return o.getPointAtSegmentLength(t-s);s+=a}return e[i-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:s,normalizedLines:i}=this.updateTransform(),r=i.length;if(r===0)return{x:e,y:s};if(r===1)return i[0].interpolate(t);{let o=t*r,a=i[0];if(o--,o>1)for(let c=1;c<r&&(a=i[c],o>1);c++)o-=1;return a.interpolate(o)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const s=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(s,t):s}}getSubpathsAtLength(t,e,s){const{startPathX:i,startPathY:r,normalizedLines:o}=t.updateTransform();let a=null,c=0;const l=new At;l.prevPathX=l.startPathX=i,l.prevPathY=l.startPathY=r;for(let h=0,g=o.length;h<g;h++){const b=o[h],y=b.length();if(c+y>e&&!a){const m=b.getPointAtSegmentLength(e-c);if(l.appendLine(new Dt({c1x:m.start.x,c1y:m.start.y,c2x:m.m.x,c2y:m.m.y,toX:m.x,toY:m.y})),s)return l;a=l,l.appendLine(new Dt({c1x:m.n.x,c1y:m.n.y,c2x:m.end.x,c2y:m.end.y,toX:b.x,toY:b.y})),c+=y;continue}c+=y,l.appendLine(b)}return l}closestPoint(t,e){const s=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let l=0;l<=s;l+=a){const h=this.getPointAtLength(l),g=us(h.x,h.y,t,e);g<o&&(i=h,r=l,o=g)}for(a/=2;a>.5;){const l=r-a,h=this.getPointAtLength(l),g=us(h.x,h.y,t,e),b=r+a,y=this.getPointAtLength(b),m=us(y.x,y.y,t,e);l>=0&&g<o?(i=h,r=l,o=g):b<=s&&m<o?(i=y,r=b,o=m):a/=2}const c=this.getPointAtLength(r+(r===s?-.1:.1));return{point:i,rotation:r>=s?Pe(c.x,c.y,i.x,i.y):Pe(i.x,i.y,c.x,c.y),distance:Math.sqrt(o)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform();return[t,e].concat(s.reduce((i,r)=>i.concat([r.c1x,r.c1y,r.c2x,r.c2y,r.toX,r.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let s=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=mn(t[o],t[o+1],s,i),s=t[o],i=t[o+1];return Math.floor(r)}expendFill(t){const e=this.polymorphPoints,s=e.length;let i=t-s;const r=Math.ceil(t/s),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=s-1;){const c=e[a++],l=e[a++],h=e[a++],g=e[a++],b=e[a++],y=e[a++];o.push(["C",c,l,h,g,b,y]);let m=0;for(;m<r&&i>0;)o.push(["C",b,y,b,y,b,y]),i-=6,m++}return o}static mixPoints(t,e,s){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Ht(t[o]+(e[o]-t[o])*s,6);return r}static getPathInterpolator(t,e){return s=>Math.abs(s-0)<Number.EPSILON?t:Math.abs(s-1)<Number.EPSILON?e:At.fromPolymorphPoints(At.mixPoints(new At({d:t}).polymorphPoints,new At({d:e}).polymorphPoints,s)).toSVGPathData()}}class Jr extends Te{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=be(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.strokeArmyAnts){const s=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",s),this.strokeDashTotalLength=tn(s).reduce((i,r)=>i+r,0)}return kr(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new At,rs(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(s=>{const i=s.originMatrix?s.originMatrix.clone():new mt;i.translate(-t.x+s.x,-t.y+s.y),s.originMatrix=i});const e=this.originMatrix?this.originMatrix.clone():new mt;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,s){if(s instanceof yn)return s.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(i);{const r=this.getBoundingClientRect();if(r)return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height}return!1}isPointInStroke(t,e,s){if(s instanceof yn)return s.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}clone(){return _r(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([s,i])=>[Et(s),i]))):e&&(this.attrs[Et(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[Et(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[Et(t)]}distance(t){return mn(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ut(Pe(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:s,dy:i}=dn(J(this.degree),e);this.vx=s,this.vy=i,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:s,dy:i}=dn(J(this.degree),e);this.ax=s,this.ay=i,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,s=t.y-this.y,i=e*e+s*s,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,c=o*s/r;this.vx+=a/this.mass,this.vy+=c/this.mass,t.vx-=a/t.mass,t.vy-=c/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=bt(t?.gravity,0);this.vy+=e;const s=bt(t?.friction,1);this.vx*=s,this.vy*=s,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const s=bt(e?.easing,.05),i=t.x-this.cX-this.x,r=t.y-this.cY-this.y;this.vx=i*s,this.vy=r*s,this.run(e)}runSpringTo(t,e){const s=bt(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(i=>{const r=i.x-this.cX-this.x,o=i.y-this.cY-this.y,a=r*s,c=o*s;this.vx+=a,this.vy+=c}),this.run({friction:.9,...e})}springMassTo(t,e){const s=bt(e?.springLength,100),i=bt(e?.spring,1e-4),r=t.x-this.x,o=t.y-this.y,a=Math.sqrt(r*r+o*o);if(a<s){const c=r*i,l=o*i;return this.vx+=c/this.mass,this.vy+=l/this.mass,t.vx-=c/t.mass,t.vy-=l/t.mass,1-a/s}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const s=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*s),this.getPointAtLength(e*s)}strokeDashTween(t=1e3,e){const s=this.initPathD(),i=Ht(s.getTotalLength(),0);this.setAttr({strokeDasharray:`${i} ${i}`,strokeDashoffset:`${i}`});const r=e?.onUpdate,o=new Ce({frameDuration:t});o.addTween({offset:i},{offset:0},Object.assign(e||{},{onUpdate:(a,c)=>{this.setAttr("strokeDashoffset",""+Ht(a.offset,2)),r?.(a,c)}})),o.play()}}class to extends Jr{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["M",this.getScreenX(),this.getScreenY()]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,s){this.cX=t,this.cY=e,this.cZ=s}rotateX(t){({x:this.y,y:this.z}=xs(J(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=xs(J(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=xs(J(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return fn(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,s=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+s*s+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y,i=this.z;return{x:s*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-s*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}}const Ie=to;class gs{_x;_y;_z;_w;constructor(t=0,e=0,s=0,i=1){this._x=t,this._y=e,this._z=s,this._w=i}static slerpFlat(t,e,s,i,r,o,a){let c=s[i+0],l=s[i+1],h=s[i+2],g=s[i+3];const b=r[o+0],y=r[o+1],m=r[o+2],S=r[o+3];if(a===0){t[e+0]=c,t[e+1]=l,t[e+2]=h,t[e+3]=g;return}if(a===1){t[e+0]=b,t[e+1]=y,t[e+2]=m,t[e+3]=S;return}if(g!==S||c!==b||l!==y||h!==m){let P=1-a;const w=c*b+l*y+h*m+g*S,C=w>=0?1:-1,_=1-w*w;if(_>Number.EPSILON){const v=Math.sqrt(_),x=Math.atan2(v,w*C);P=Math.sin(P*x)/v,a=Math.sin(a*x)/v}const p=a*C;if(c=c*P+b*p,l=l*P+y*p,h=h*P+m*p,g=g*P+S*p,P===1-a){const v=1/Math.sqrt(c*c+l*l+h*h+g*g);c*=v,l*=v,h*=v,g*=v}}t[e]=c,t[e+1]=l,t[e+2]=h,t[e+3]=g}static multiplyQuaternionsFlat(t,e,s,i,r,o){const a=s[i],c=s[i+1],l=s[i+2],h=s[i+3],g=r[o],b=r[o+1],y=r[o+2],m=r[o+3];return t[e]=a*m+h*g+c*y-l*b,t[e+1]=c*m+h*b+l*g-a*y,t[e+2]=l*m+h*y+a*b-c*g,t[e+3]=h*m-a*g-c*b-l*y,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t=this._x,e=this._y,s=this._z,i=this._w){return this._x=t,this._y=e,this._z=s,this._w=i,this._onChangeCallback(),this}clone(){return new gs(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const s=t.x,i=t.y,r=t.z,o=t.order,a=Math.cos,c=Math.sin,l=a(s/2),h=a(i/2),g=a(r/2),b=c(s/2),y=c(i/2),m=c(r/2);switch(o){case"XYZ":this._x=b*h*g+l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g-b*y*m;break;case"YXZ":this._x=b*h*g+l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g+b*y*m;break;case"ZXY":this._x=b*h*g-l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g-b*y*m;break;case"ZYX":this._x=b*h*g-l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g+b*y*m;break;case"YZX":this._x=b*h*g+l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g-b*y*m;break;case"XZY":this._x=b*h*g-l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g+b*y*m;break;default:console.warn("Quaternion: .setFromEuler() encountered an unknown order: "+o)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const s=e/2,i=Math.sin(s);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix4(t){const e=t.value,s=e[0],i=e[4],r=e[8],o=e[1],a=e[5],c=e[9],l=e[2],h=e[6],g=e[10],b=s+a+g;if(b>0){const y=.5/Math.sqrt(b+1);this._w=.25/y,this._x=(h-c)*y,this._y=(r-l)*y,this._z=(o-i)*y}else if(s>a&&s>g){const y=2*Math.sqrt(1+s-a-g);this._w=(h-c)/y,this._x=.25*y,this._y=(i+o)/y,this._z=(r+l)/y}else if(a>g){const y=2*Math.sqrt(1+a-s-g);this._w=(r-l)/y,this._x=(i+o)/y,this._y=.25*y,this._z=(c+h)/y}else{const y=2*Math.sqrt(1+g-s-a);this._w=(o-i)/y,this._x=(r+l)/y,this._y=(c+h)/y,this._z=.25*y}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let s=t.dot(e)+1;return s<Number.EPSILON?(s=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=s):(this._x=0,this._y=-t.z,this._z=t.y,this._w=s)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=s),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Y(this.dot(t),-1,1)))}rotateTowards(t,e){const s=this.angleTo(t);if(s===0)return this;const i=Math.min(1,e/s);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const s=t._x,i=t._y,r=t._z,o=t._w,a=e._x,c=e._y,l=e._z,h=e._w;return this._x=s*h+o*a+i*l-r*c,this._y=i*h+o*c+r*a-s*l,this._z=r*h+o*l+s*c-i*a,this._w=o*h-s*a-i*c-r*l,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);const s=this._x,i=this._y,r=this._z,o=this._w;let a=o*t._w+s*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=s,this._y=i,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const y=1-e;return this._w=y*o+e*this._w,this._x=y*s+e*this._x,this._y=y*i+e*this._y,this._z=y*r+e*this._z,this.normalize(),this}const l=Math.sqrt(c),h=Math.atan2(l,a),g=Math.sin((1-e)*h)/l,b=Math.sin(e*h)/l;return this._w=o*g+this._w*b,this._x=s*g+this._x*b,this._y=i*g+this._y*b,this._z=r*g+this._z*b,this._onChangeCallback(),this}slerpQuaternions(t,e,s){return this.copy(t).slerp(e,s)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),s=Math.random(),i=Math.sqrt(1-s),r=Math.sqrt(s);return this.set(i*Math.sin(t),i*Math.cos(t),r*Math.sin(e),r*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class vt{x=0;y=0;z=0;constructor(t=0,e=0,s=0){this.x=t,this.y=e,this.z=s}set(t=0,e=0,s=0){return this.x=t,this.y=e,this.z=s,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new vt(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(bn.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(bn.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,s=this.y,i=this.z,r=t.value;return this.x=r[0]*e+r[3]*s+r[6]*i,this.y=r[1]*e+r[4]*s+r[7]*i,this.z=r[2]*e+r[5]*s+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,s=this.y,i=this.z,r=t.value,o=1/(r[3]*e+r[7]*s+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*s+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*s+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*s+r[10]*i+r[14])*o,this}applyQuaternion(t){const e=this.x,s=this.y,i=this.z,r=t.x,o=t.y,a=t.z,c=t.w,l=2*(o*i-a*s),h=2*(a*e-r*i),g=2*(r*s-o*e);return this.x=e+c*l+o*g-a*h,this.y=s+c*h+a*l-r*g,this.z=i+c*g+r*h-o*l,this}transformDirection(t){const e=this.x,s=this.y,i=this.z,r=t.value;return this.x=r[0]*e+r[4]*s+r[8]*i,this.y=r[1]*e+r[5]*s+r[9]*i,this.z=r[2]*e+r[6]*s+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Y(this.x,t.x,e.x),this.y=Y(this.y,t.y,e.y),this.z=Y(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=Y(this.x,t,e),this.y=Y(this.y,t,e),this.z=Y(this.z,t,e),this}clampLength(t,e){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Y(s,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,s){return this.x=t.x+(e.x-t.x)*s,this.y=t.y+(e.y-t.y)*s,this.z=t.z+(e.z-t.z)*s,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const s=t.x,i=t.y,r=t.z,o=e.x,a=e.y,c=e.z;return this.x=i*c-r*a,this.y=r*o-s*c,this.z=s*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(e===0)return this.set(0,0,0);const s=t.dot(this)/e;return this.copy(t).multiplyScalar(s)}perpendOnVector(t){return ys.copy(this).projectOnVector(t),this.sub(ys)}projectOnPlane(t){return this.perpendOnVector(t)}reflect(t){return this.sub(ys.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const s=this.dot(t)/e;return Math.acos(Y(s,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,s=this.y-t.y,i=this.z-t.z;return e*e+s*s+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromMatrix4Position(t){const e=t.value;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrix4Scale(t){const e=this.setFromMatrix4Column(t,0).length(),s=this.setFromMatrix4Column(t,1).length(),i=this.setFromMatrix4Column(t,2).length();return this.x=e,this.y=s,this.z=i,this}setFromMatrix4Column(t,e){return this.fromArray(t.value,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.value,e*3)}setFromEuler(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=Math.random()*2-1,s=Math.sqrt(1-e*e);return this.x=s*Math.cos(t),this.y=e,this.z=s*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ys=new vt,bn=new gs,Fe=2e3,vn=2001,Tn=[1,0,0,1,0,0],wn=[1,0,0,0,1,0,0,0,1],Cn=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class le{value;constructor(t=wn){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m21(){return this.value[3]}get m22(){return this.value[4]}get m23(){return this.value[5]}get m31(){return this.value[6]}get m32(){return this.value[7]}get m33(){return this.value[8]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m21(t){this.value[3]=t}set m22(t){this.value[4]=t}set m23(t){this.value[5]=t}set m31(t){this.value[6]=t}set m32(t){this.value[7]=t}set m33(t){this.value[8]=t}set(t=1,e=0,s=0,i=0,r=1,o=0,a=0,c=0,l=1){const h=this.value;return h[0]=t,h[1]=i,h[2]=a,h[3]=e,h[4]=r,h[5]=c,h[6]=s,h[7]=o,h[8]=l,this}identity(){return this.value=Array.from(wn),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}copy(t){return this.m11=t.m11,this.m12=t.m12,this.m13=t.m13,this.m21=t.m21,this.m22=t.m22,this.m23=t.m23,this.m31=t.m31,this.m32=t.m32,this.m33=t.m33,this}clone(){return new le(this.value)}fromArray(t,e=0){for(let s=0;s<9;s++)this.value[s]=t[s+e];return this}toArray(t=[],e=0){return t[e]=this.m11,t[e+1]=this.m12,t[e+2]=this.m13,t[e+3]=this.m21,t[e+4]=this.m22,t[e+5]=this.m23,t[e+6]=this.m31,t[e+7]=this.m32,t[e+8]=this.m33,t}extractBasis(t,e,s){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(t){return this.set(t.m11,t.m21,t.m31,t.m12,t.m22,t.m32,t.m13,t.m23,t.m33),this}multiplyMatrices(t,e){const s=t.value,i=e.value,r=this.value,o=s[0],a=s[3],c=s[6],l=s[1],h=s[4],g=s[7],b=s[2],y=s[5],m=s[8],S=i[0],P=i[3],w=i[6],C=i[1],_=i[4],p=i[7],v=i[2],x=i[5],I=i[8];return r[0]=o*S+a*C+c*v,r[3]=o*P+a*_+c*x,r[6]=o*w+a*p+c*I,r[1]=l*S+h*C+g*v,r[4]=l*P+h*_+g*x,r[7]=l*w+h*p+g*I,r[2]=b*S+y*C+m*v,r[5]=b*P+y*_+m*x,r[8]=b*w+y*p+m*I,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}determinant(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8];return e*o*h-e*a*l-s*r*h+s*a*c+i*r*l-i*o*c}invert(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8],g=h*o-a*l,b=a*c-h*r,y=l*r-o*c,m=e*g+s*b+i*y;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const S=1/m;return t[0]=g*S,t[1]=(i*l-h*s)*S,t[2]=(a*s-i*o)*S,t[3]=b*S,t[4]=(h*e-i*c)*S,t[5]=(i*r-a*e)*S,t[6]=y*S,t[7]=(s*c-l*e)*S,t[8]=(o*e-s*r)*S,this}transpose(){let t;const e=this.value;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.value;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,s,i,r,o,a){const c=Math.cos(r),l=Math.sin(r);return this.set(s*c,s*l,-s*(c*o+l*a)+o+t,-i*l,i*c,-i*(-l*o+c*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(_s.makeScale(t,e)),this}rotate(t){return this.premultiply(_s.makeRotation(-t)),this}translate(t,e){return this.premultiply(_s.makeTranslation(t,e)),this}makeTranslation(t,e){return typeof t=="number"?this.set(1,0,t,0,1,e,0,0,1):this.set(1,0,t.x,0,1,t.y,0,0,1),this}makeRotation(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,-s,0,s,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){for(let e=0;e<9;e++)if(this.value[e]!==t.value[e])return!1;return!0}}class ft{value;is3dSpecial=!1;constructor(t=Cn){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}set(t=1,e=0,s=0,i=0,r=0,o=1,a=0,c=0,l=0,h=0,g=1,b=0,y=0,m=0,S=0,P=1){const w=this.value;return w[0]=t,w[4]=e,w[8]=s,w[12]=i,w[1]=r,w[5]=o,w[9]=a,w[13]=c,w[2]=l,w[6]=h,w[10]=g,w[14]=b,w[3]=y,w[7]=m,w[11]=S,w[15]=P,this}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Cn),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}copy(t){return this.m11=t.m11,this.m12=t.m12,this.m13=t.m13,this.m14=t.m14,this.m21=t.m21,this.m22=t.m22,this.m23=t.m23,this.m24=t.m24,this.m31=t.m31,this.m32=t.m32,this.m33=t.m33,this.m34=t.m34,this.m41=t.m41,this.m42=t.m42,this.m43=t.m43,this.m44=t.m44,this}clone(){return new ft(this.value)}static fromString(t){const e=new ft,s=Ws("number",t);return s.length===16&&s.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}fromArray(t,e=0){for(let s=0;s<16;s++)this.value[s]=t[s+e];return this}toArray(t=[],e=0){const s=this.value;return t[e]=s[0],t[e+1]=s[1],t[e+2]=s[2],t[e+3]=s[3],t[e+4]=s[4],t[e+5]=s[5],t[e+6]=s[6],t[e+7]=s[7],t[e+8]=s[8],t[e+9]=s[9],t[e+10]=s[10],t[e+11]=s[11],t[e+12]=s[12],t[e+13]=s[13],t[e+14]=s[14],t[e+15]=s[15],t}copyPosition(t){const e=this.value,s=t.value;return e[12]=s[12],e[13]=s[13],e[14]=s[14],this}setFromMatrix3(t){const e=t.value;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,s){return t.setFromMatrix4Column(this,0),e.setFromMatrix4Column(this,1),s.setFromMatrix4Column(this,2),this}makeBasis(t,e,s){return this.set(t.x,e.x,s.x,0,t.y,e.y,s.y,0,t.z,e.z,s.z,0,0,0,0,1),this}normalize(){return this.multiplyScalar(1/(this.m44||1e-4))}transformPoint(t){const e=t.z||1,s=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+s*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+s*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+s*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+s*this.m44}}toMatrix(t){const{scalarX:e,scalarY:s,skewX:i,skewY:r,x:o,y:a}=this.split(),c=[e,r,i,s,o,a];return t?(t.value=c,t):new mt(c)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>Ht(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),s=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),i=ut(Y(Math.asin(-this.m13),-1,1));let r=ut(Math.atan2(this.m23,this.m33));Math.cos(J(i))===0&&(r=ut(Math.atan2(-this.m31,this.m22)));let o=ut(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:s,degreeX:r,degreeY:i,degreeZ:o,skewX:ut(this.m14),skewY:ut(this.m24),skewZ:ut(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}extractRotation(t){const e=this.value,s=t.value,i=1/Wt.setFromMatrix4Column(t,0).length(),r=1/Wt.setFromMatrix4Column(t,1).length(),o=1/Wt.setFromMatrix4Column(t,2).length();return e[0]=s[0]*i,e[1]=s[1]*i,e[2]=s[2]*i,e[3]=0,e[4]=s[4]*r,e[5]=s[5]*r,e[6]=s[6]*r,e[7]=0,e[8]=s[8]*o,e[9]=s[9]*o,e[10]=s[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.value,s=t.x,i=t.y,r=t.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(i),l=Math.sin(i),h=Math.cos(r),g=Math.sin(r);if(t.order==="XYZ"){const b=o*h,y=o*g,m=a*h,S=a*g;e[0]=c*h,e[4]=-c*g,e[8]=l,e[1]=y+m*l,e[5]=b-S*l,e[9]=-a*c,e[2]=S-b*l,e[6]=m+y*l,e[10]=o*c}else if(t.order==="YXZ"){const b=c*h,y=c*g,m=l*h,S=l*g;e[0]=b+S*a,e[4]=m*a-y,e[8]=o*l,e[1]=o*g,e[5]=o*h,e[9]=-a,e[2]=y*a-m,e[6]=S+b*a,e[10]=o*c}else if(t.order==="ZXY"){const b=c*h,y=c*g,m=l*h,S=l*g;e[0]=b-S*a,e[4]=-o*g,e[8]=m+y*a,e[1]=y+m*a,e[5]=o*h,e[9]=S-b*a,e[2]=-o*l,e[6]=a,e[10]=o*c}else if(t.order==="ZYX"){const b=o*h,y=o*g,m=a*h,S=a*g;e[0]=c*h,e[4]=m*l-y,e[8]=b*l+S,e[1]=c*g,e[5]=S*l+b,e[9]=y*l-m,e[2]=-l,e[6]=a*c,e[10]=o*c}else if(t.order==="YZX"){const b=o*c,y=o*l,m=a*c,S=a*l;e[0]=c*h,e[4]=S-b*g,e[8]=m*g+y,e[1]=g,e[5]=o*h,e[9]=-a*h,e[2]=-l*h,e[6]=y*g+m,e[10]=b-S*g}else if(t.order==="XZY"){const b=o*c,y=o*l,m=a*c,S=a*l;e[0]=c*h,e[4]=-g,e[8]=l*h,e[1]=b*g+S,e[5]=o*h,e[9]=y*g-m,e[2]=m*g-y,e[6]=a*h,e[10]=S*g+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(eo,t,so)}lookAt(t,e,s){const i=this.value;return at.subVectors(t,e),at.lengthSq()===0&&(at.z=1),at.normalize(),Vt.crossVectors(s,at),Vt.lengthSq()===0&&(Math.abs(s.z)===1?at.x+=1e-4:at.z+=1e-4,at.normalize(),Vt.crossVectors(s,at)),Vt.normalize(),ze.crossVectors(at,Vt),i[0]=Vt.x,i[4]=ze.x,i[8]=at.x,i[1]=Vt.y,i[5]=ze.y,i[9]=at.y,i[2]=Vt.z,i[6]=ze.z,i[10]=at.z,this}multiplyMatrices(t,e){const s=t.value,i=e.value,r=this.value,o=s[0],a=s[4],c=s[8],l=s[12],h=s[1],g=s[5],b=s[9],y=s[13],m=s[2],S=s[6],P=s[10],w=s[14],C=s[3],_=s[7],p=s[11],v=s[15],x=i[0],I=i[4],O=i[8],R=i[12],L=i[1],B=i[5],q=i[9],D=i[13],X=i[2],W=i[6],ot=i[10],pt=i[14],wt=i[3],gt=i[7],Ct=i[11],St=i[15];return r[0]=o*x+a*L+c*X+l*wt,r[4]=o*I+a*B+c*W+l*gt,r[8]=o*O+a*q+c*ot+l*Ct,r[12]=o*R+a*D+c*pt+l*St,r[1]=h*x+g*L+b*X+y*wt,r[5]=h*I+g*B+b*W+y*gt,r[9]=h*O+g*q+b*ot+y*Ct,r[13]=h*R+g*D+b*pt+y*St,r[2]=m*x+S*L+P*X+w*wt,r[6]=m*I+S*B+P*W+w*gt,r[10]=m*O+S*q+P*ot+w*Ct,r[14]=m*R+S*D+P*pt+w*St,r[3]=C*x+_*L+p*X+v*wt,r[7]=C*I+_*B+p*W+v*gt,r[11]=C*O+_*q+p*ot+v*Ct,r[15]=C*R+_*D+p*pt+v*St,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this}determinant(){const t=this.value,e=t[0],s=t[4],i=t[8],r=t[12],o=t[1],a=t[5],c=t[9],l=t[13],h=t[2],g=t[6],b=t[10],y=t[14],m=t[3],S=t[7],P=t[11],w=t[15];return m*(+r*c*g-i*l*g-r*a*b+s*l*b+i*a*y-s*c*y)+S*(+e*c*y-e*l*b+r*o*b-i*o*y+i*l*h-r*c*h)+P*(+e*l*g-e*a*y-r*o*g+s*o*y+r*a*h-s*l*h)+w*(-i*a*h-e*c*g+e*a*b+i*o*g-s*o*b+s*c*h)}transpose(){const t=this.value;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,s){const i=this.value;return t instanceof vt?(i[12]=t.x,i[13]=t.y,i[14]=t.z):typeof t=="number"&&typeof e=="number"&&typeof s=="number"&&(i[12]=t,i[13]=e,i[14]=s),this}invert(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8],g=t[9],b=t[10],y=t[11],m=t[12],S=t[13],P=t[14],w=t[15],C=g*P*l-S*b*l+S*c*y-a*P*y-g*c*w+a*b*w,_=m*b*l-h*P*l-m*c*y+o*P*y+h*c*w-o*b*w,p=h*S*l-m*g*l+m*a*y-o*S*y-h*a*w+o*g*w,v=m*g*c-h*S*c-m*a*b+o*S*b+h*a*P-o*g*P,x=e*C+s*_+i*p+r*v;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const I=1/x;return t[0]=C*I,t[1]=(S*b*r-g*P*r-S*i*y+s*P*y+g*i*w-s*b*w)*I,t[2]=(a*P*r-S*c*r+S*i*l-s*P*l-a*i*w+s*c*w)*I,t[3]=(g*c*r-a*b*r-g*i*l+s*b*l+a*i*y-s*c*y)*I,t[4]=_*I,t[5]=(h*P*r-m*b*r+m*i*y-e*P*y-h*i*w+e*b*w)*I,t[6]=(m*c*r-o*P*r-m*i*l+e*P*l+o*i*w-e*c*w)*I,t[7]=(o*b*r-h*c*r+h*i*l-e*b*l-o*i*y+e*c*y)*I,t[8]=p*I,t[9]=(m*g*r-h*S*r-m*s*y+e*S*y+h*s*w-e*g*w)*I,t[10]=(o*S*r-m*a*r+m*s*l-e*S*l-o*s*w+e*a*w)*I,t[11]=(h*a*r-o*g*r-h*s*l+e*g*l+o*s*y-e*a*y)*I,t[12]=v*I,t[13]=(h*S*i-m*g*i+m*s*b-e*S*b-h*s*P+e*g*P)*I,t[14]=(m*a*i-o*S*i-m*s*c+e*S*c+o*s*P-e*a*P)*I,t[15]=(o*g*i-h*a*i+h*s*c-e*g*c-o*s*b+e*a*b)*I,this}getMaxScaleOnAxis(){const t=this.value,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],s=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,s,i))}makeTranslation(t,e,s){return t instanceof vt?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,s,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),s=Math.sin(t);return this.set(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const s=Math.cos(e),i=Math.sin(e),r=1-s,o=t.x,a=t.y,c=t.z,l=r*o,h=r*a;return this.set(l*o+s,l*a-i*c,l*c+i*a,0,l*a+i*c,h*a+s,h*c-i*o,0,l*c-i*a,h*c+i*o,r*c*c+s,0,0,0,0,1),this}makeScale(t,e,s){return this.set(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1),this}makeShear(t,e,s,i,r,o){return this.set(1,s,r,0,t,1,o,0,e,i,1,0,0,0,0,1),this}makePerspective(t,e,s,i,r,o,a=Fe){const c=this.value,l=2*r/(e-t),h=2*r/(s-i),g=(e+t)/(e-t),b=(s+i)/(s-i);let y,m;if(a===Fe)y=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===vn)y=-o/(o-r),m=-o*r/(o-r);else throw new Error("Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=l,c[4]=0,c[8]=g,c[12]=0,c[1]=0,c[5]=h,c[9]=b,c[13]=0,c[2]=0,c[6]=0,c[10]=y,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(t,e,s,i,r,o,a=Fe){const c=this.value,l=1/(e-t),h=1/(s-i),g=1/(o-r),b=(e+t)*l,y=(s+i)*h;let m,S;if(a===Fe)m=(o+r)*g,S=-2*g;else if(a===vn)m=r*g,S=-1*g;else throw new Error("Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*l,c[4]=0,c[8]=0,c[12]=-b,c[1]=0,c[5]=2*h,c[9]=0,c[13]=-y,c[2]=0,c[6]=0,c[10]=S,c[14]=-m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}compose(t,e,s){const i=this.value,r=e.x,o=e.y,a=e.z,c=e.w,l=r+r,h=o+o,g=a+a,b=r*l,y=r*h,m=r*g,S=o*h,P=o*g,w=a*g,C=c*l,_=c*h,p=c*g,v=s.x,x=s.y,I=s.z;return i[0]=(1-(S+w))*v,i[1]=(y+p)*v,i[2]=(m-_)*v,i[3]=0,i[4]=(y-p)*x,i[5]=(1-(b+w))*x,i[6]=(P+C)*x,i[7]=0,i[8]=(m+_)*I,i[9]=(P-C)*I,i[10]=(1-(b+S))*I,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,s){const i=this.value;let r=Wt.set(i[0],i[1],i[2]).length();const o=Wt.set(i[4],i[5],i[6]).length(),a=Wt.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],Tt.copy(this);const l=1/r,h=1/o,g=1/a;return Tt.value[0]*=l,Tt.value[1]*=l,Tt.value[2]*=l,Tt.value[4]*=h,Tt.value[5]*=h,Tt.value[6]*=h,Tt.value[8]*=g,Tt.value[9]*=g,Tt.value[10]*=g,e.setFromRotationMatrix4(Tt),s.x=r,s.y=o,s.z=a,this}equals(t){for(let e=0;e<16;e++)if(this.value[e]!==t.value[e])return!1;return!0}translate(t=0,e=0,s=0){return this.multiply(new ft([1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1]))}scale(t=1,e=1,s=1){return this.multiply(new ft([t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1]))}scaleVector3(t){const e=this.value,s=t.x,i=t.y,r=t.z;return e[0]*=s,e[4]*=i,e[8]*=r,e[1]*=s,e[5]*=i,e[9]*=r,e[2]*=s,e[6]*=i,e[10]*=r,e[3]*=s,e[7]*=i,e[11]*=r,this}rotateX(t){const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([1,0,0,0,0,s,i,0,0,-i,s,0,0,0,0,1]))}rotateY(t){const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([s,0,-i,0,0,1,0,0,i,0,s,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,s=0){return this.multiply(new ft([1,0,0,J(t),0,1,0,J(e),0,0,1,J(s),0,0,0,1]))}perspective(t){return this.multiply(new ft([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,s=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=s+this.m32,c=i+this.m33,l=r+this.m34;r==0&&(r=1e-4),e/=r,s/=r,i/=r,l==0&&(l=1e-4),o/=l,a/=l,c/=l;const h=c-i;if(h==0)return{x:e,y:s,z:i,mass:r};const g=-i/h;return e+=g*(o-e),s+=g*(a-s),{x:e,y:s,z:i,mass:r}}project(t){const e=t.z;let s=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),s/=r,i/=r,r<0&&(s-=this.m41,i-=this.m42,s*=1/r,i*=1/r,s+=this.m41,i+=this.m42),{x:s,y:i,z:e,mass:r}}bounds(t,e,s,i){const r=new Ie({x:t,y:e}),o=new Ie({x:t+s,y:e}),a=new Ie({x:t+s,y:e+i}),c=new Ie({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:c.x,y:c.y,z:c.z,mass:c.mass}=this.project(c);const l=Math.min(r.x,o.x,a.x,c.x),h=Math.min(r.y,o.y,a.y,c.y),g=Math.max(r.x,o.x,a.x,c.x)-l,b=Math.max(r.y,o.y,a.y,c.y)-h;return{x:l,y:h,width:g,height:b}}}class mt{value;_m13=0;_m23=0;_m33=1;matrix4;constructor(t=Tn){this.value=Array.from(t),this.matrix4=this.toMatrix4()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=t}static fromString(t){const e=new mt,s=Ws("number",t);return s.length===6&&s.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}toMatrix4(t=this.matrix4){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new ft(e)}identity(){return this.value=Array.from(Tn),this.m13=0,this.m23=0,this.m33=1,this.matrix4=this.toMatrix4(),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.multiplyScalar(1/t)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new mt(this.value)}multiply(t){const e=this.clone(),s=t instanceof mt?t:new mt(t);return this.m11=s.m11*e.m11+s.m12*e.m21+s.m13*e.m31,this.m12=s.m11*e.m12+s.m12*e.m22+s.m13*e.m32,this.m13=s.m11*e.m13+s.m12*e.m23+s.m13*e.m33,this.m21=s.m21*e.m11+s.m22*e.m21+s.m23*e.m31,this.m22=s.m21*e.m12+s.m22*e.m22+s.m23*e.m32,this.m23=s.m21*e.m13+s.m22*e.m23+s.m23*e.m33,this.m31=s.m31*e.m11+s.m32*e.m21+s.m33*e.m31,this.m32=s.m31*e.m12+s.m32*e.m22+s.m33*e.m32,this.m33=s.m31*e.m13+s.m32*e.m23+s.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}invert(){const t=this.m11,e=this.m12,s=this.m13,i=this.m21,r=this.m22,o=this.m23,a=this.m31,c=this.m32,l=this.m33,h=l*r-o*c,g=-l*i+o*a,b=c*i-r*a;let y=t*h+e*g+s*b;return y?(y=1/y,this.m11=h*y,this.m12=(-l*e+s*c)*y,this.m13=(o*e-s*r)*y,this.m21=g*y,this.m22=(l*t-s*a)*y,this.m23=(-o*t+s*i)*y,this.m31=b*y,this.m32=(-c*t+e*a)*y,this.m33=(r*t-e*i)*y,this):null}adjugate(){const t=new mt;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=ut(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:ut(Math.atan2(-this.m21,this.m22)),skewY:ut(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],s=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],c=t.value[0],l=t.value[1],h=t.value[2],g=t.value[3],b=t.value[4],y=t.value[5],m=c*g,S=l*h,P=(h*s-e*g)/(S-m),w=(c*s-e*l)/(m-S),C=(h*r-i*g)/(S-m),_=(c*r-i*l)/(m-S),p=(h*(a-y)+g*(b-o))/(S-m),v=(c*(a-y)+l*(b-o))/(m-S),x=[P,w,C,_,p,v];return new mt(x)}toString(t=6){return this.matrix4.is2D()?`matrix(${this.value.map(e=>Ht(e,t)).join(",")})`:this.matrix4.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix4(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix4.translate(0,0,t),this.matrix4.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix4.m43),this}translate3d(t,e,s){return this.matrix4.translate(t,e,s),this.matrix4.toMatrix(this),this}translate3dTo(t,e,s){return this.translate3d(t-this.matrix4.m41,e-this.matrix4.m42,s-this.matrix4.m43),this}rotate(t,e=0,s=0){const i=J(t),r=Math.cos(i),o=Math.sin(i);return this.translate(e,s),this.multiply([r,o,-o,r,0,0]),this.translate(-e,-s),this.toMatrix4(),this}rotateTo(t,e=0,s=0){const{degree:i}=this.split();return this.rotate(t-i,e,s),this}rotateX(t){return this.matrix4.rotateX(t),this.matrix4.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix4.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix4.rotateY(t),this.matrix4.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix4.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix4.rotateZ(t),this.matrix4.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix4.split();return this.rotateZ(t-e),this}rotate3d(t,e,s){return this.matrix4.rotateX(t).rotateY(e).rotateZ(s),this.matrix4.toMatrix(this),this}rotate3dTo(t,e,s){const{degreeX:i,degreeY:r,degreeZ:o}=this.matrix4.split();return this.rotate3d(t-i,e-r,s-o),this}scale(t,e=t,s=0,i=0){return this.translate(s,i),this.multiply([t,0,0,e,0,0]),this.translate(-s,-i),this.toMatrix4(),this}scaleTo(t,e=t,s=0,i=0){return this.scale(t/this.m11,e/this.m22,s,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix4.scale(1,1,t),this.matrix4.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix4.split();return this.scaleZ(t/e),this}scale3d(t,e=t,s=t){return this.matrix4.scale(t,e,s),this.matrix4.toMatrix(this),this}scale3dTo(t,e=t,s=t){const{scalarX:i,scalarY:r,scalarZ:o}=this.matrix4.split();return this.scale3d(t/i,e/r,s/o),this}skew(t,e=t){return this.multiply([Math.cos(J(e)),Math.sin(J(e)),-Math.sin(J(t)),Math.cos(J(t)),0,0]),this.toMatrix4(),this}skewTo(t,e=t){const{skewX:s,skewY:i}=this.split();return this.skew(t-s,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,s){return this}skew3dTo(t,e,s){return this}perspective(t){return this.matrix4.perspective(t),this.matrix4.toMatrix(this),this}}const eo=new vt(0,0,0),so=new vt(1,1,1),Vt=new vt,ze=new vt,at=new vt,Wt=new vt,_s=new le,Tt=new ft;function xs(n,t,e){const s=new mt;return s.rotate(ut(n)),s.transformPoint({x:t,y:e})}function bs(n,t,e){const s=un(n);return s.props.style=s.props.style||{},t?s.props.style[t]||s.props.style[fr(t)]||s.props.style[Et(t)]||"":s.props.style}function Sn(n){const t={};if(getComputedStyle){const e=getComputedStyle(n);for(let s=0,i=e.length;s<i;s++)t[e[s]]=e.getPropertyValue(t[s])}else{const e=n.currentStyle;for(const s in e)t[s]=e[s]}return n.style.cssText&&n.style.cssText.split(";").filter(e=>!!e).forEach(e=>{const[s,i]=e.split(":");s&&i&&(t[s.trim()]=i.trim())}),t}function Pn(n,t,e){let s=n.style[t]||"";if(!s&&getComputedStyle){t=Et(t);const i=getComputedStyle(n,e),r=i.getPropertyPriority(t);s=i.getPropertyValue(t).trim()+(r?"!"+r:"")}return s||(s=n.currentStyle[t]||""),s}function he(n,t,e){typeof t=="string"&&e?n.style.setProperty(Et(t),e.replace(/!important/i,""),e.toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(s=>{he(n,s,t[s])})}function kn(n,t){typeof t=="string"?n.style.removeProperty(Et(t)):Object.keys(t).forEach(e=>{kn(n,e)})}function no(n,t){let e;if(typeof t=="string"){const s=document.querySelector(t)?.shadowRoot;s?e=s:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];if(e){const s=document.createElement("style");return s.innerHTML=n,e.appendChild(s),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(s)}}else{const s=document.styleSheets[0].insertRule(n);return()=>{document.styleSheets[0].deleteRule(s)}}}function io(n,t,e){if(t===void 0&&e===void 0)return En(n);if(typeof t=="string"&&e===void 0)return ro(n,t);let s={};typeof t=="object"?s=t:typeof t=="string"&&typeof e=="string"&&(s[t]=""+e),Gr(n,i=>{Object.entries(s).forEach(([r,o])=>{i.props[r]=""+o})})}function En(n){const t={};for(let e=0,s=n.attributes,i=s.length;e<i;e++){const r=s[e];r.nodeName&&r.nodeValue&&(r.nodeName==="style"?t[r.nodeName]=Sn(n):t[r.nodeName]=r.nodeValue)}return t}function ro(n,t){return t==="style"?Sn(n):n.getAttribute(Et(t))}function Oe(n,t,e){return n.setAttribute(Et(t),""+e)}function An(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent}}function oo(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function Mn(n){const{top:t,left:e,width:s,height:i}=n.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=An();return{x:e+r,y:t+o,width:s,height:i}}function ao(){const n={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0,isDown:!1},t={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0,isDown:!1};return{mousePoint:t,setStartMousePoint:function(e,s){n.x=e.x,n.y=e.y,typeof s=="boolean"&&(n.isDown=s),this.setCurrentMousePoint(e,s)},setCurrentMousePoint:(e,s)=>{const i=t.x,r=t.y;t.x=e.x,t.y=e.y,t.dx=t.x-i,t.dy=t.y-r,t.dStartX=t.x-n.x,t.dStartY=t.y-n.y,typeof s=="boolean"&&(t.isDown=s)}}}function In(n){if("center"in n)return n.center;if(typeof n.pageX=="number"&&typeof n.pageY=="number")return{x:n.pageX,y:n.pageY};const{scrollLeft:t,scrollTop:e}=An();return{x:n.clientX+t,y:n.clientY+e}}function ue(n,t){const e={x:0,y:0};if(t){const s=In(n),i=Mn(t);e.x=Y(s.x-i.x,0,i.width),e.y=Y(s.y-i.y,0,i.height)}else{let s=0,i=0;if("currentTarget"in n&&n.currentTarget&&n.target&&n.currentTarget!=n.target){const r=n.currentTarget.getBoundingClientRect(),o=n.target.getBoundingClientRect();s=o.left-r.left,i=o.top-r.top}if("offsetX"in n)e.x=n.offsetX+s,e.y=n.offsetY+i;else{const r=In(n),o=Mn(n.target);e.x=Y(r.x-o.x+s,0,o.width),e.y=Y(r.y-o.y+i,0,o.height)}}return e}var Fn={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
10
|
+
`.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},lr=(n,t)=>{typeof n=="string"&&(n=es(n)||new RegExp(n));const e=t.match(n);return e?n.flags.toLowerCase().indexOf("g")>=0?e.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Ws=(n,t)=>{typeof n=="string"&&(n=es(n)||new RegExp(n));const e=[],s=t.matchAll(n);for(const i of s)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function be(n=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let s="";for(let i=0;i<n;i++)s+=t[Math.floor(Math.random()*e)];return s}function hr(n){return n.replace(/(^\w)/g,t=>t.toLowerCase())}const Et=(n,t="-")=>{let e=n.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function ur(n){return n.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function fr(n){return hr(ur(n))}const mr="[object String]",dr="[object Symbol]";function Qs(n){return Object.prototype.toString.call(n)}function pr(n){return Qs(n)===mr}function gr(n){return n===n+0}function yr(n){return Qs(n)===dr}function _r(n,...t){return new n.constructor(...t)}function xr(n,t){const e=n.findIndex(s=>s===t);return e>=0&&n.splice(e,1),n}let Ks;try{Ks=Map}catch{Ks=function(){}}let Js;try{Js=Set}catch{Js=function(){}}function bt(n,t){const e=parseFloat(n);if(Number.isNaN(e)){if(typeof t=="number")return t;throw new Error(`parseNumber(${n}) is NaN!`)}return e}function Y(n,t,e){const s=Math.min(t,e),i=Math.max(t,e);return n<s?s:n>i?i:n}function br(n,t){return(n%t+t)%t}function ss(n,t,e){return(1-e)*n+e*t}function vr(n,t=12){return bt(n,0).toFixed(t)}function Ht(n,t=12){return+vr(n,t)}function tn(n){const t=lr("number",n);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}Tr();function Tr(){const n=new ArrayBuffer(4),t=new Float32Array(n),e=new Uint32Array(n),s=new Uint32Array(512),i=new Uint32Array(512);for(let c=0;c<256;++c){const l=c-127;l<-27?(s[c]=0,s[c|256]=32768,i[c]=24,i[c|256]=24):l<-14?(s[c]=1024>>-l-14,s[c|256]=1024>>-l-14|32768,i[c]=-l-1,i[c|256]=-l-1):l<=15?(s[c]=l+15<<10,s[c|256]=l+15<<10|32768,i[c]=13,i[c|256]=13):l<128?(s[c]=31744,s[c|256]=64512,i[c]=24,i[c|256]=24):(s[c]=31744,s[c|256]=64512,i[c]=13,i[c|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let c=1;c<1024;++c){let l=c<<13,h=0;for(;!(l&8388608);)l<<=1,h-=8388608;l&=-8388609,h+=947912704,r[c]=l|h}for(let c=1024;c<2048;++c)r[c]=939524096+(c-1024<<13);for(let c=1;c<31;++c)o[c]=c<<23;o[31]=1199570944,o[32]=2147483648;for(let c=33;c<63;++c)o[c]=2147483648+(c-32<<23);o[63]=3347054592;for(let c=1;c<64;++c)c!==32&&(a[c]=1024);return{floatView:t,uint32View:e,baseTable:s,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}const en=(n,t,e)=>t?e===xe.base64?new Blob([n],{type:`${t};${e}`}):e===xe.utf8?new Blob([n],{type:`${t};charset=${e}`}):new Blob([n],{type:`${t}`}):new Blob([n]);function Z(){return(performance||Date).now()}class wr{results=[];queue=[];concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t}clear(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this._runTasks()}async _runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,Math.max(0,this.concurrency-this.activeTaskCount));this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(s=>s()));e.forEach((s,i)=>{if(s.status=="fulfilled"){const r=s.value;this.results.push(r)}else if(s.status=="rejected"){const r=new Error(s.reason);this.results.push(r)}}),this.activeTaskCount-=e.length}}}class ns{_maps=new Map;_mapsAddedDuringUpdate=new Map;_overflow;constructor(t){this._overflow=()=>{if(!t)return!1;const e=this.length;return e==0?!1:t?.overflow?t.overflow():!!t.size&&t.size>0&&e>=t.size}}entries(){return Array.from(this._maps.entries())}keys(){return Array.from(this._maps.keys())}values(){return Array.from(this._maps.values())}json(){return this.entries().reduce((t,[e,s])=>((pr(e)||gr(e)||yr(e))&&(t[e]=s),t),{})}get length(){return this.entries().length}set(t,e){for(;this._overflow();){const s=this._maps.keys().next();s.done||this.delete(s.value)}this._maps.set(t,e),this._mapsAddedDuringUpdate.set(t,e)}get(t){return this._maps.get(t)}has(t){return this._maps.has(t)}getIndex(t){const e=this.entries();if(e.length&&e[t])return e[t]}top(){return this.getIndex(0)}shift(){const t=this.top();if(t){const[e]=t;this.delete(e)}return t}delete(t){return this._mapsAddedDuringUpdate.delete(t),this._maps.delete(t)}clear(){this._maps.clear(),this._mapsAddedDuringUpdate.clear()}flush(){this.clear()}filter(t){let e=Array.from(this._maps.entries());for(;e.length>0;){this._mapsAddedDuringUpdate.clear();for(let s=0,i=e.length;s<i;s++){const[r,o]=e[s];t(r,o)===!1&&this.delete(r)}e=Array.from(this._mapsAddedDuringUpdate.entries())}}}const Cr=300;function Sr(n,t=Cr,e){const s=typeof e?.leading=="boolean"?e.leading:!0,i=typeof e?.trailing=="boolean"?e.trailing:!1;return function(...o){const{get:a,set:c}=cr(this||n);if(!a("__THROTTLE_READY__",!0)){(s||i)&&c("__THROTTLE_FN_ARGS__",o);return}c("__THROTTLE_READY__",!1),s&&n.apply(this,o),i&&c("__THROTTLE_FN_ARGS__",o),setTimeout(()=>{const h=a("__THROTTLE_FN_ARGS__");h&&n.apply(this,h),c("__THROTTLE_FN_ARGS__",void 0),c("__THROTTLE_READY__",!0)},t)}}Array.prototype.ap=function(n){return this.reduce((t,e)=>t.concat(n.map(e)),[])};let re;function is(n){re=n,n(),re=null}class Pr{subscribers=new Set;add(){re&&!this.subscribers.has(re)&&this.subscribers.add(re)}notify(){this.subscribers.forEach(t=>t())}}const sn=new WeakMap;function ve(n,t){let e=sn.get(n);e||(e=new Map,sn.set(n,e));let s=e.get(t);return s||(s=new Pr,e.set(t,s)),s}function kr(n,t=!1){return Object.keys(n).forEach(e=>{let s=n[e];if(t&&typeof s=="object"&&s!==null)n[e]=rs(s,t);else{const i=ve(n,e);Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get(){return i.add(),s},set(r){s!=r&&(s=r,i.notify())}})}}),n}function nn(n,t=!1){return kr({value:n},t)}function rs(n,t=!1){const e={get(i,r,o){const a=Reflect.get(i,r,o);if(t&&typeof a=="object"&&a!==null&&!("isYZReactiveProxy"in a)){const l=rs(a,t);l.YZReactiveProxyParentTarget=i,l.YZReactiveProxyParentKey=r,Reflect.set(o,r,l)}return ve(i,r).add(),Reflect.get(i,r,o)},set(i,r,o,a){const c=Reflect.get(i,r,a),l=Reflect.set(i,r,o,a);return Array.isArray(i)?ve(i.YZReactiveProxyParentTarget,i.YZReactiveProxyParentKey).notify():c!=o&&ve(i,r).notify(),l},has(i,r){return r==="isYZReactiveProxy"||r in i}};return new Proxy(n,e)}const Er=rs;class os{events;constructor(){this.events={}}isEmpty(t){return this.events[t]==null||this.events[t].length==0}has(t,e){return this.events[t]!==void 0&&this.events[t].indexOf(e)!==-1}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}addListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}on(t,e){return this.addListener(t,e),this}removeListener(t,e){return this.events[t]&&(this.events[t]=this.events[t].filter(s=>s!==e)),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].slice(0).forEach(i=>{i(...e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,e(...o),this.off(t,i))}})();return this.on(t,i),this}}function Ar(n,t=(e,s)=>e<=s){const e=n.length;let s=Math.floor(e/2);for(;s>0;){for(let i=s;i<e;i++){const r=n[i];let o=i;for(;o>=s&&!t(n[o-s],r);)n[o]=n[o-s],o-=s;n[o]=r}s=Math.floor(s/2)}}let rn;try{rn=Promise}catch{rn=function(){}}function Mr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ir={exports:{}};(function(n,t){(function(e){n.exports=e()})(function(e){var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(w,C){var _=w[0],p=w[1],v=w[2],x=w[3];_+=(p&v|~p&x)+C[0]-680876936|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[1]-389564586|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[2]+606105819|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[3]-1044525330|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[4]-176418897|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[5]+1200080426|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[6]-1473231341|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[7]-45705983|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[8]+1770035416|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[9]-1958414417|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[10]-42063|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[11]-1990404162|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[12]+1804603682|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[13]-40341101|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[14]-1502002290|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[15]+1236535329|0,p=(p<<22|p>>>10)+v|0,_+=(p&x|v&~x)+C[1]-165796510|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[6]-1069501632|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[11]+643717713|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[0]-373897302|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[5]-701558691|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[10]+38016083|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[15]-660478335|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[4]-405537848|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[9]+568446438|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[14]-1019803690|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[3]-187363961|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[8]+1163531501|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[13]-1444681467|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[2]-51403784|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[7]+1735328473|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[12]-1926607734|0,p=(p<<20|p>>>12)+v|0,_+=(p^v^x)+C[5]-378558|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[8]-2022574463|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[11]+1839030562|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[14]-35309556|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[1]-1530992060|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[4]+1272893353|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[7]-155497632|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[10]-1094730640|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[13]+681279174|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[0]-358537222|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[3]-722521979|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[6]+76029189|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[9]-640364487|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[12]-421815835|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[15]+530742520|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[2]-995338651|0,p=(p<<23|p>>>9)+v|0,_+=(v^(p|~x))+C[0]-198630844|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[7]+1126891415|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[14]-1416354905|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[5]-57434055|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[12]+1700485571|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[3]-1894986606|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[10]-1051523|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[1]-2054922799|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[8]+1873313359|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[15]-30611744|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[6]-1560198380|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[13]+1309151649|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[4]-145523070|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[11]-1120210379|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[2]+718787259|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[9]-343485551|0,p=(p<<21|p>>>11)+v|0,w[0]=_+w[0]|0,w[1]=p+w[1]|0,w[2]=v+w[2]|0,w[3]=x+w[3]|0}function r(w){var C=[],_;for(_=0;_<64;_+=4)C[_>>2]=w.charCodeAt(_)+(w.charCodeAt(_+1)<<8)+(w.charCodeAt(_+2)<<16)+(w.charCodeAt(_+3)<<24);return C}function o(w){var C=[],_;for(_=0;_<64;_+=4)C[_>>2]=w[_]+(w[_+1]<<8)+(w[_+2]<<16)+(w[_+3]<<24);return C}function a(w){var C=w.length,_=[1732584193,-271733879,-1732584194,271733878],p,v,x,I,O,R;for(p=64;p<=C;p+=64)i(_,r(w.substring(p-64,p)));for(w=w.substring(p-64),v=w.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<v;p+=1)x[p>>2]|=w.charCodeAt(p)<<(p%4<<3);if(x[p>>2]|=128<<(p%4<<3),p>55)for(i(_,x),p=0;p<16;p+=1)x[p]=0;return I=C*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(I[2],16),R=parseInt(I[1],16)||0,x[14]=O,x[15]=R,i(_,x),_}function c(w){var C=w.length,_=[1732584193,-271733879,-1732584194,271733878],p,v,x,I,O,R;for(p=64;p<=C;p+=64)i(_,o(w.subarray(p-64,p)));for(w=p-64<C?w.subarray(p-64):new Uint8Array(0),v=w.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<v;p+=1)x[p>>2]|=w[p]<<(p%4<<3);if(x[p>>2]|=128<<(p%4<<3),p>55)for(i(_,x),p=0;p<16;p+=1)x[p]=0;return I=C*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(I[2],16),R=parseInt(I[1],16)||0,x[14]=O,x[15]=R,i(_,x),_}function l(w){var C="",_;for(_=0;_<4;_+=1)C+=s[w>>_*8+4&15]+s[w>>_*8&15];return C}function h(w){var C;for(C=0;C<w.length;C+=1)w[C]=l(w[C]);return w.join("")}h(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function w(C,_){return C=C|0||0,C<0?Math.max(C+_,0):Math.min(C,_)}ArrayBuffer.prototype.slice=function(C,_){var p=this.byteLength,v=w(C,p),x=p,I,O,R,L;return _!==e&&(x=w(_,p)),v>x?new ArrayBuffer(0):(I=x-v,O=new ArrayBuffer(I),R=new Uint8Array(O),L=new Uint8Array(this,v,I),R.set(L),O)}}();function g(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function b(w,C){var _=w.length,p=new ArrayBuffer(_),v=new Uint8Array(p),x;for(x=0;x<_;x+=1)v[x]=w.charCodeAt(x);return C?v:p}function y(w){return String.fromCharCode.apply(null,new Uint8Array(w))}function m(w,C,_){var p=new Uint8Array(w.byteLength+C.byteLength);return p.set(new Uint8Array(w)),p.set(new Uint8Array(C),w.byteLength),_?p:p.buffer}function S(w){var C=[],_=w.length,p;for(p=0;p<_-1;p+=2)C.push(parseInt(w.substr(p,2),16));return String.fromCharCode.apply(String,C)}function P(){this.reset()}return P.prototype.append=function(w){return this.appendBinary(g(w)),this},P.prototype.appendBinary=function(w){this._buff+=w,this._length+=w.length;var C=this._buff.length,_;for(_=64;_<=C;_+=64)i(this._hash,r(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},P.prototype.end=function(w){var C=this._buff,_=C.length,p,v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x;for(p=0;p<_;p+=1)v[p>>2]|=C.charCodeAt(p)<<(p%4<<3);return this._finish(v,_),x=h(this._hash),w&&(x=S(x)),this.reset(),x},P.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},P.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},P.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},P.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},P.prototype._finish=function(w,C){var _=C,p,v,x;if(w[_>>2]|=128<<(_%4<<3),_>55)for(i(this._hash,w),_=0;_<16;_+=1)w[_]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(p[2],16),x=parseInt(p[1],16)||0,w[14]=v,w[15]=x,i(this._hash,w)},P.hash=function(w,C){return P.hashBinary(g(w),C)},P.hashBinary=function(w,C){var _=a(w),p=h(_);return C?S(p):p},P.ArrayBuffer=function(){this.reset()},P.ArrayBuffer.prototype.append=function(w){var C=m(this._buff.buffer,w,!0),_=C.length,p;for(this._length+=w.byteLength,p=64;p<=_;p+=64)i(this._hash,o(C.subarray(p-64,p)));return this._buff=p-64<_?new Uint8Array(C.buffer.slice(p-64)):new Uint8Array(0),this},P.ArrayBuffer.prototype.end=function(w){var C=this._buff,_=C.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v,x;for(v=0;v<_;v+=1)p[v>>2]|=C[v]<<(v%4<<3);return this._finish(p,_),x=h(this._hash),w&&(x=S(x)),this.reset(),x},P.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},P.ArrayBuffer.prototype.getState=function(){var w=P.prototype.getState.call(this);return w.buff=y(w.buff),w},P.ArrayBuffer.prototype.setState=function(w){return w.buff=b(w.buff,!0),P.prototype.setState.call(this,w)},P.ArrayBuffer.prototype.destroy=P.prototype.destroy,P.ArrayBuffer.prototype._finish=P.prototype._finish,P.ArrayBuffer.hash=function(w,C){var _=c(new Uint8Array(w)),p=h(_);return C?S(p):p},P})})(Ir);const on=n=>new XMLSerializer().serializeToString(n),Fr=(n,t=Zs.SVG,e=xe.utf8)=>en(on(n),t,e);function zr(n,t){const e=nn(t||"");if(!t)try{let s=window.localStorage.getItem(n);s&&(s=JSON.parse(s),e.value=s?s.value:"")}catch{}return is(()=>{if(e.value)try{window.localStorage.setItem(n,JSON.stringify(e))}catch{}else window.localStorage.removeItem(n)}),e}function U(n,t,e,s=!1){const i=async r=>{await e(r)};try{n.addEventListener(t,i,s)}catch{n.attachEvent("on"+t,i)}return()=>{try{n.removeEventListener(t,i,s)}catch{n.detachEvent("on"+t,i)}}}(function(){if(!window.requestAnimationFrame){let n=Z();window.requestAnimationFrame=function(t){const e=Z(),s=Math.max(0,16-(e-n)),i=window.setTimeout(function(){t(e+s)},s);return n=e+s,i}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})();function Or(n){let t=!1;return window.requestAnimationFrame(function e(s){!t&&n(s)&&window.requestAnimationFrame(e)}),()=>{t=!0}}window.requestIdleCallback=window.requestIdleCallback||function(n,t){const e=Z();return setTimeout(function(){n({didTimeout:Z()-e>50,timeRemaining:()=>Math.max(0,50-(Z()-e))})},t?.timeout)},window.cancelIdleCallback=window.cancelIdleCallback||function(n){clearTimeout(n)};const as=new ns;let cs=!1;function an(n,t,e){n&&t&&as.set(n,{cb:t,startTime:Z(),timeout:e}),!cs&&(cs=!0,Lr(s=>{cs=!1;let i=s.timeRemaining();as.filter((r,o)=>{let a=!1;const c=Z();(i>0||o.timeout&&Z()-o.startTime>=o.timeout)&&(o.cb(),a=!0);const l=Z();return i-=l-c,!a}),as.length>0&&an()}))}let Te=0,Yt=33,Nt=33,ls;const cn=new MessageChannel,Rr=cn.port2;cn.port1.onmessage=n=>{ls!==null&&ls({didTimeout:Te<=Z(),timeRemaining:()=>Math.max(0,Te-Z())})};function Lr(n){return ls=n,requestAnimationFrame(t=>{let e=t-Te+Nt;e<Nt&&Yt<Nt?(e<8&&(e=8),Nt=e<Yt?Yt:e):e>Nt&&Yt>Nt?Nt=e<Yt?Yt:e:Yt=e,Te=t+Nt,Rr.postMessage(null)})}class hs{static _nextId=0;static nextId(){return hs._nextId++}}const F={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)}},Bounce:{In:function(n){return 1-F.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?F.Bounce.In(n*2)*.5:F.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(t){return t**n},Out:function(t){return 1-(1-t)**n},InOut:function(t){return t<.5?(t*2)**n/2:(1-(2-t*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(t){return Math.floor(t*n)/n}},createNoisyEasing:function(n,t=.1){const e=1-t;return function(s){return t*Math.random()+e*n(s)}},swing:function(n){return n+Math.sin(n*Math.PI*2)/2},causeSeizures:function(n){return n+.2*Math.random()-.1}};function Nr(n){switch(n){case F.Quadratic.In:return F.Quadratic.Out;case F.Quadratic.Out:return F.Quadratic.In;case F.Quadratic.InOut:return F.Quadratic.InOut;case F.Cubic.In:return F.Cubic.Out;case F.Cubic.Out:return F.Cubic.In;case F.Cubic.InOut:return F.Cubic.InOut;case F.Quartic.In:return F.Quartic.Out;case F.Quartic.Out:return F.Quartic.In;case F.Quartic.InOut:return F.Quartic.InOut;case F.Quintic.In:return F.Quintic.Out;case F.Quintic.Out:return F.Quintic.In;case F.Quintic.InOut:return F.Quintic.InOut;case F.Sinusoidal.In:return F.Sinusoidal.Out;case F.Sinusoidal.Out:return F.Sinusoidal.In;case F.Sinusoidal.InOut:return F.Sinusoidal.InOut;case F.Exponential.In:return F.Exponential.Out;case F.Exponential.Out:return F.Exponential.In;case F.Exponential.InOut:return F.Exponential.InOut;case F.Circular.In:return F.Circular.Out;case F.Circular.Out:return F.Circular.In;case F.Circular.InOut:return F.Circular.InOut;case F.Elastic.In:return F.Elastic.Out;case F.Elastic.Out:return F.Elastic.In;case F.Elastic.InOut:return F.Elastic.InOut;case F.Back.In:return F.Back.Out;case F.Back.Out:return F.Back.In;case F.Back.InOut:return F.Back.InOut;case F.Bounce.In:return F.Bounce.Out;case F.Bounce.Out:return F.Bounce.In;case F.Bounce.InOut:return F.Bounce.InOut;default:return n}}const Gt={Utils:{Linear:function(n,t,e){return(t-n)*e+n},Factorial:function(){const n=[1];return function(t){let e=1;if(n[t])return n[t];for(let s=t;s>1;s--)e*=s;return n[t]=e,e}}(),Bernstein:function(n,t){const e=Gt.Utils.Factorial;return e(n)/e(t)/e(n-t)},CatmullRom:function(n,t,e,s,i){const r=(e-n)*.5,o=(s-t)*.5,a=i*i,c=i*a;return(2*t-2*e+r+o)*c+(-3*t+3*e-2*r-o)*a+r*i+t},QuadraticBezier:(n,t,e,s)=>{const i=1-s;return i*i*n+2*i*s*t+s*s*e},CubicBezier:(n,t,e,s,i)=>{const r=1-i;return r*r*r*n+3*r*r*i*t+3*r*i*i*e+i*i*i*s}},Linear:function(n,t){const e=n.length-1,s=e*t,i=Math.floor(s),r=Gt.Utils.Linear;return t<0?r(n[0],n[1],s):t>1?r(n[e],n[e-1],e-s):r(n[i],n[i+1>e?e:i+1],s-i)},Bezier:function(n,t){let e=0;const s=n.length-1,i=Math.pow,r=Gt.Utils.Bernstein;for(let o=0;o<=s;o++)e+=i(1-t,s-o)*i(t,o)*n[o]*r(s,o);return e},CatmullRom:function(n,t){const e=n.length-1;let s=e*t,i=Math.floor(s);const r=Gt.Utils.CatmullRom;return n[0]===n[e]?(t<0&&(i=Math.floor(s=e*(1+t))),r(n[(i-1+e)%e],n[i],n[(i+1)%e],n[(i+2)%e],s-i)):t<0?n[0]-(r(n[0],n[0],n[1],n[1],-s)-n[0]):t>1?n[e]-(r(n[e],n[e],n[e-1],n[e-1],s-e)-n[e]):r(n[i?i-1:0],n[i],n[e<i+1?e:i+1],n[e<i+2?e:i+2],s-i)}};class Dr{_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=Z(),e=!1){const s=Object.keys(this._tweens);for(let i=0;i<s.length;i++){const r=this._tweens[s[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[s[i]]}return!!Object.keys(this._tweens).length}}const ln=new Dr;class Vr{constructor(t,e=ln){this._object=t,this._group=e}_id=hs.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=F.Linear.None;_interpolationFunction=Gt.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=Z()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,s,i){for(const r in s){const o=t[r],a=Array.isArray(o),c=a?"array":typeof o,l=!a&&Array.isArray(s[r]);if(!(c==="undefined"||c==="function")){if(l){let h=s[r];if(h.length===0)continue;h=h.map(this._handleRelativeValue.bind(this,o)),s[r]=[o].concat(h)}if((c==="object"||a)&&o&&!l){e[r]=a?[]:{};for(const h in o)e[r][h]=o[h];i[r]=a?[]:{},this._setupProperties(o,e[r],s[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),l?i[r]=s[r].slice().reverse():i[r]=e[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=Z()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Z()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=ln){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=F.Linear.None){return this._easingFunction=t,this}interpolation(t=Gt.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=Z(),e=!0){if(this._isPaused)return!0;let s,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,c=this._chainedTweens.length;a<c;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,s,i){for(const r in s){if(e[r]===void 0)continue;const o=e[r]||0;let a=s[r];const c=Array.isArray(t[r]),l=Array.isArray(a);!c&&l?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=s,this._valuesEnd[t]=e}}class Br{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Z(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Z();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const hn=Br;class we{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){Ar(this.tweens,(e,s)=>t?e.delay>s.delay:e.delay<=s.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(s=>{const i={...s};delete i.tween,i.fromValues={...i.fromValues},i.toValues={...i.toValues},e.push(i)}),e}addTween(t,e,s){const i={fromValues:t,toValues:e,frames:typeof s?.frames=="number"?s.frames:1,delay:typeof s?.delay=="number"?s.delay:this.tweens.length,easeFunction:s?.easeFunction||F.Linear.None,interpolationFunction:s?.interpolationFunction||Gt.Linear,repeat:typeof s?.repeat=="number"?s.repeat:0,yoyo:s?.yoyo||!1,onStart:s?.onStart||(()=>{}),onUpdate:s?.onUpdate||(()=>{}),onComplete:s?.onComplete||(()=>{})};return this.tweens.push(i),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new hn,s=this.frameDuration;return new Promise(i=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Or(r=>{if(!this.isPaused){const a=Math.max(0,r-this.pausedDuration),c=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(l=>l.delay*s<=c).forEach(l=>{l.tween||(l.tween=new Vr({...l.fromValues}).to({...l.toValues},l.frames*s).easing(l.easeFunction).interpolation(l.interpolationFunction).repeat(l.repeat).yoyo(l.yoyo).onStart(l.onStart).onUpdate(l.onUpdate).onComplete(l.onComplete),l.tween.start(a)),(l.delay+l.frames*(l.repeat+1))*s>c?l.tween.update(a):(l.tween.isPlaying()&&l.tween.end(),xr(t,l))})}const o=!!t.length;return o||(this.onGroupComplete?.(),i()),o})})}isPaused=!1;pausedClock=new hn;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(s=>{e=Math.max(e,s.delay+s.frames),s.easeFunction=Nr(s.easeFunction);const i={...s.toValues};s.toValues={...s.fromValues},s.fromValues={...i}}),t.forEach(s=>{s.delay=e-s.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}const Ce=new ns,Xr=(n=!0)=>{Ce.filter((t,e)=>(e.alternate&&(Wn(e,e.alternate),n&&Ce.set(t,e.alternate),e.alternate=void 0),n))};function un(n){let t=Ce.get(n);return t||(t=Ss(n),Ce.set(n,t)),t}function Yr(n){const t=un(n);return t.alternate||(t.alternate=Ss(n)),t.alternate}function Gr(n,t,e=!0){t(Yr(n)),an("FLUSH_DOM_ACTION",()=>Xr(e),50)}function J(n){return n*Math.PI/180}function ut(n){return n*180/Math.PI}function fn(n,t,e=0){return Math.sqrt(n*n+t*t+e*e)}function mn(n,t,e,s){return fn(e-n,s-t)}function us(n,t,e,s){const i=e-n,r=s-t;return i*i+r*r}function Se(n,t,e,s){let i=Math.atan2(s-t,e-n);return i<0&&(i+=Math.PI*2),i}function dn(n,t){return{dx:Math.cos(n)*t,dy:Math.sin(n)*t}}const pn=$r("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 $r(n,t=10){const e={},s=n.split(",");for(let i=0;i<s.length;i+=2){const r="&"+s[i+1]+";",o=parseInt(s[i],t);e[r]="&#"+o+";"}return e["\\xa0"]=" ",e}function st(n,t){const e=Object.keys(t);for(let s=0;s<e.length;s++)n=n.replace(new RegExp("{"+e[s]+"}","gi"),""+t[e[s]]);return n}function Pe(n){let t,e;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=s[Math.floor(Math.random()*s.length)];while(n[t]);return t}function Ur(n){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[n]||t.start}function qr(n){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[n]||t.alphabetic}const oe={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class fs{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(s.setAttribute("stop-color",st("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),s.setAttribute("stop-opacity",r[4]))}else s.setAttribute("stop-color",e);this.__root.appendChild(s)}}class gn{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class ke{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:s=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(oe);for(let e=0,s=t.length;e<s;e++){const i=t[e];this[i]=oe[i].canvas}}__getStyleState(){const t={},e=Object.keys(oe);for(let s=0,i=e.length;s<i;s++){const r=e[s];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let s=0,i=e.length;s<i;s++){const r=e[s];this[r]=t[r]}}__createElement(t,e={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const s=this.__currentElementsToStyle;s&&(e.setAttribute(t,""),e=s.element,s.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(oe);for(let r=0;r<i.length;r++){const o=oe[i[r]],a=this[i[r]];if(o.apply){if(a instanceof gn){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(o.apply,st("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof fs)e.setAttribute(o.apply,st("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const l=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(l){e.setAttribute(o.svgAttr,st("rgb({r},{g},{b})",{r:l[1],g:l[2],b:l[3]}));let h=parseFloat(l[4]);const g=this.globalAlpha;g!=null&&(h*=g),e.setAttribute(o.svgAttr+"-opacity",""+h)}}else{let c=o.svgAttr;if(i[r]==="globalAlpha"&&(c=t+"-"+o.svgAttr,e.getAttribute(c)))continue;c&&e.setAttribute(c,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(pn);for(let r=0,o=i.length;r<o;r++){const a=i[r],c=pn[a],l=new RegExp(a,"gi");l.test(e)&&(e=e.replace(l,c))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=t,this.__currentElement.setAttribute("transform",s)}scale(t,e){e===void 0&&(e=t),this.__addTransform(st("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(st("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(st("translate({x},{y})",{x:t,y:e}))}transform(t,e,s,i,r,o){this.__addTransform(st("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:s,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(st("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(st("L {x} {y}",this.__currentPosition)):this.__addPathCommand(st("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,s,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(st("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:s,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(st("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:s,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,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===t&&a===e||t===s&&e===i||r===0){this.lineTo(t,e);return}const c=this.normalize([o-t,a-e]),l=this.normalize([s-t,i-e]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(t,e);return}const h=c[0]*l[0]+c[1]*l[1],g=Math.acos(Math.abs(h)),b=this.normalize([c[0]+l[0],c[1]+l[1]]),y=r/Math.sin(g/2),m=t+y*b[0],S=e+y*b[1],P=[-c[1],c[0]],w=[l[1],-l[0]],C=function(v){const x=v[0];return v[1]>=0?Math.acos(x):-Math.acos(x)},_=C(P),p=C(w);this.lineTo(m+P[0]*r,S+P[1]*r),this.arc(m,S,r,_,p)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,e,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+s,e),this.lineTo(t+s,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=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=[],e&&this.__addTransform(e)}clearRect(t,e,s,i){if(t===0&&e===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:s,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,s,i){const r=this.__createElement("linearGradient",{id:Pe(this.__ids),x1:t+"px",x2:s+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new fs(r,this)}createRadialGradient(t,e,s,i,r,o){const a=this.__createElement("radialGradient",{id:Pe(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new fs(a,this)}__parseFont(){const e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(t,e){if(t.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),s.appendChild(e),s}return e}__applyText(t,e,s,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:s,"text-anchor":Ur(this.textAlign),"dominant-baseline":qr(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,s){this.__applyText(t,e,s,"fill")}strokeText(t,e,s){this.__applyText(t,e,s,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,s,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+s*Math.cos(r),c=e+s*Math.sin(r),l=t+s*Math.cos(i),h=e+s*Math.sin(i),g=o?0:1;let b=0,y=r-i;y<0&&(y+=2*Math.PI),o?b=y>Math.PI?0:1:b=y>Math.PI?1:0,this.lineTo(l,h),this.__addPathCommand(st("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:b,sweepFlag:g,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),s=Pe(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",s),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",st("url(#{id})",{id:s})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],s,i,r,o,a=0,c=0,l,h,g,b,y,m,S,P;if(t.length===3)s=t[1],i=t[2],l=e.width,h=e.height,r=l,o=h;else if(t.length===5)s=t[1],i=t[2],r=t[3],o=t[4],l=e.width,h=e.height;else if(t.length===9)a=t[1],c=t[2],l=t[3],h=t[4],s=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const w=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+s+", "+i+")";if(e instanceof ke){if(g=e.getSvg().cloneNode(!0),g.childNodes&&g.childNodes.length>1){for(b=g.childNodes[0];b.childNodes.length;)P=b.childNodes[0].getAttribute("id"),this.__ids[P]=P,this.__SVGdefs.appendChild(b.childNodes[0]);if(y=g.childNodes[1],y){const _=y.getAttribute("transform");let p;_?p=_+" "+C:p=C,y.setAttribute("transform",p),w.appendChild(y)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||c||l!==e.width||h!==e.height)&&(S=this.__document.createElement("canvas"),S.width=r,S.height=o,S.getContext("2d")?.drawImage(e,a,c,l,h,0,0,r,o),e=S),m.setAttribute("transform",C),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),w.appendChild(m))}createPattern(t,e){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Pe(this.__ids);let r;return s.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),s.appendChild(r),this.__SVGdefs.appendChild(s)):t instanceof ke&&(s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new gn(s,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class yn{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,s,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new ke({canvas:this.canvas,width:e||this.canvas.width,height:s||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,s,i){return this.context.fillRect(t,e,s,i),this.customContext&&this.customContext.fillRect(t,e,s,i),this}fillText(t,e,s,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,s,i),this.customContext&&this.customContext.fillText(t,e,s),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,s,i){return this.context.strokeText(t,e,s,i),this.customContext&&this.customContext.strokeText(t,e,s),this}strokeRect(t,e,s,i){return this.context.strokeRect(t,e,s,i),this.customContext&&this.customContext.strokeRect(t,e,s,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,s,i),this.customContext&&this.customContext.clearRect(t,e,s,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const s=new Path2D;s.addPath(t,e),this.currentPath2D=s}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,s=0){return this.translate(e,s),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-s),this.changePath2D(),this}scale(t,e=t,s=0,i=0){return this.translate(s,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-s,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,s,i,r,o){return this.context.arc(t,e,s,i,r,o),this.customContext&&this.customContext.arc(t,e,s,i,r,o?-1:1),this.currentPath2D.arc(t,e,s,i,r,o),this}arcTo(t,e,s,i,r){return this.context.arcTo(t,e,s,i,r),this.customContext&&this.customContext.arcTo(t,e,s,i,r),this.currentPath2D.arcTo(t,e,s,i,r),this}ellipse(t,e,s,i,r,o,a,c){return this.context.ellipse(t,e,s,i,r,o,a,c),this.currentPath2D.ellipse(t,e,s,i,r,o,a,c),this}quadraticCurveTo(t,e,s,i){return this.context.quadraticCurveTo(t,e,s,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,s,i),this.currentPath2D.quadraticCurveTo(t,e,s,i),this}bezierCurveTo(t,e,s,i,r,o){return this.context.bezierCurveTo(t,e,s,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,s,i,r,o),this.currentPath2D.bezierCurveTo(t,e,s,i,r,o),this}rect(t,e,s,i){return this.context.rect(t,e,s,i),this.customContext&&this.customContext.rect(t,e,s,i),this.currentPath2D.rect(t,e,s,i),this}createLinearGradient(t,e,s,i,r){const o=this.context.createLinearGradient(t,e,s,i);return r&&Object.entries(r).forEach(([a,c])=>{o.addColorStop(parseFloat(a),c)}),o}createRadialGradient(t,e,s,i,r,o,a){const c=this.context.createRadialGradient(t,e,s,i,r,o);return a&&Object.entries(a).forEach(([l,h])=>{c.addColorStop(parseFloat(l),h)}),c}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const s=e[0],i=e[1];this.context.drawImage(t,s,i)}else if(e.length===4){const s=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,s,i,r,o)}else if(e.length===8){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],c=e[5],l=e[6],h=e[7];this.context.drawImage(t,s,i,r,o,a,c,l,h)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,s=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,s,i,r)}putImageData(t,e=0,s=0){return this.context.putImageData(t,e,s)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class ms{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=Se(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),s=Math.min(this.y,this.toY),i=Math.max(this.x,this.toX),r=Math.max(this.y,this.toY);return{x:e,y:s,width:i-e,height:r-s}}else{const e=Math.sin(t),s=Math.cos(t),i=s*this.x-e*this.y,r=s*this.toX-e*this.toY,o=s*this.y+e*this.x,a=s*this.toY+e*this.toX;return{x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,s=this.y,i=t.toX,r=t.toY,o=this.toX-e,a=t.x-i;if(!o&&!a)return null;const c=(this.toY-s)/o,l=(t.y-r)/a;if(o){if(!a)return{x:i,y:c*(i-e)+s}}else return{x:e,y:l*(e-i)+r};const h=(-l*i+r+c*e-s)/(c-l),g=c*(h-e)+s;return isNaN(h)||isNaN(g)?null:{x:h,y:g}}}class jr extends ms{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,s,i,r,o,a,c]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,s,i,r,o,a,c,!this.sweepFlag)}convert(t,e,s,i,r,o,a,c,l){const h=a/180*Math.PI,g=(t-s)/2,b=(e-i)/2,y=Math.cos(h)*g+Math.sin(h)*b,m=-Math.sin(h)*g+Math.cos(h)*b,S=y*y/(r*r)+m*m/(o*o);if(S>1){const B=Math.sqrt(S);throw r=B*r,o=B*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const P=Math.sqrt((r*r*o*o-r*r*m*m-o*o*y*y)/(r*r*m*m+o*o*y*y)),w=c!=l?1:-1,C=w*P*r*m/o,_=w*P*-o*y/r,p=(t+s)/2,v=(e+i)/2,x=Math.cos(h)*C-Math.sin(h)*_+p,I=Math.sin(h)*C+Math.cos(h)*_+v,O=(B,q,D,X)=>(B*X>=q*D?1:-1)*Math.acos((B*D+q*X)/(Math.sqrt(B*B+q*q)*Math.sqrt(D*D+X*X))),R=O(1,0,t-x,e-I)-h,L=O(t-x,e-I,s-x,i-I);return[x,I,r,o,h,R,R+L]}}const Hr=jr;class Zr extends ms{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,s,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let s,i,r,o;for(let l=0;l<2;++l)s=l==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,i=l==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,r=l==0?this.x:this.y,Math.abs(s)>1e-12&&(o=-i/(2*s),0<o&&o<1&&[t,e][l].push(s*o*o+i*o+r));const a={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},c={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:a.x,y:a.y,width:c.x-a.x,height:c.y-a.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const Wr=Zr;class Zt extends ms{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),s=this.x-this.c1x,i=(-e+Math.sqrt(e*e-4*t*s))/2/t,r=(-e-Math.sqrt(e*e-4*t*s))/2/t;const o=[this.y,this.toY],a=[this.x,this.toX];let c;const l=[];Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(c=this.interpolate(i),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),r>=0&&r<=1&&(c=this.interpolate(r),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),s=this.y-this.c1y,i=(-e+Math.sqrt(e*e-4*t*s))/2/t,r=(-e-Math.sqrt(e*e-4*t*s))/2/t,Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(c=this.interpolate(i),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),r>=0&&r<=1&&(c=this.interpolate(r),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y}));const h=[],g=l.length;for(let m=0;m<g;m++){for(let S=m+1;S<g;S++)l[m].X===l[S].X&&l[m].Y===l[S].Y&&(S=++m);h.push({X:l[m].X,Y:l[m].Y})}const b={x:Math.min.apply(Math,a),y:Math.min.apply(Math,o)},y={x:Math.max.apply(Math,a),y:Math.max.apply(Math,o)};return{x:b.x,y:b.y,width:y.x-b.x,height:y.y-b.y,dots:h}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.toX,y:Math.pow(1-t,3)*this.y+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.toY}}static base3(t,e,s,i,r){const o=-3*e+9*s-9*i+3*r,a=t*o+6*e-12*s+6*i;return t*a-3*e+3*s}static bezlen(t,e,s,i,r,o,a,c,l=1){l=Math.max(0,Math.min(l,1));const h=l/2,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],b=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let y=0;for(let m=0;m<12;m++){const S=h*g[m]+h,P=this.base3(S,t,s,r,a),w=this.base3(S,e,i,o,c);y+=b[m]*Math.sqrt(P*P+w*w)}return h*y}length(t=1){return Zt.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,s=this.y,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,c=this.toX,l=this.toY;if(t<0||Zt.bezlen(e,s,i,r,o,a,c,l)<t)return 0;const h=1;let g=h/2,b=h-g,y=Zt.bezlen(e,s,i,r,o,a,c,l,b);for(;Math.abs(y-t)>.01;)g/=2,b+=(y<t?1:-1)*g,y=Zt.bezlen(e,s,i,r,o,a,c,l,b);return b}getPointAtSegmentLength(t){const e=this.getTatLen(t),s=1-e,i=Math.pow(s,3),r=Math.pow(s,2),o=e*e,a=o*e,c=i*this.x+r*3*e*this.c1x+s*3*e*e*this.c2x+a*this.toX,l=i*this.y+r*3*e*this.c1y+s*3*e*e*this.c2y+a*this.toY,h=this.x+2*e*(this.c1x-this.x)+o*(this.c2x-2*this.c1x+this.x),g=this.y+2*e*(this.c1y-this.y)+o*(this.c2y-2*this.c1y+this.y),b=this.c1x+2*e*(this.c2x-this.c1x)+o*(this.toX-2*this.c2x+this.c1x),y=this.c1y+2*e*(this.c2y-this.c1y)+o*(this.toY-2*this.c2y+this.c1y),m=s*this.x+e*this.c1x,S=s*this.y+e*this.c1y,P=s*this.c2x+e*this.toX,w=s*this.c2y+e*this.toY,C=90-Math.atan2(h-b,g-y)*180/Math.PI;return{x:c,y:l,m:{x:h,y:g},n:{x:b,y},start:{x:m,y:S},end:{x:P,y:w},alpha:C}}}const Dt=Zt,ae=Math.PI*2;function _n(n,t,e,s){const i=n*s-t*e<0?-1:1;let r=n*e+t*s;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function Qr(n,t,e,s,i,r,o,a,c,l){const h=l*(n-e)/2+c*(t-s)/2,g=-c*(n-e)/2+l*(t-s)/2,b=o*o,y=a*a,m=h*h,S=g*g;let P=b*y-b*S-y*m;P<0&&(P=0),P/=b*S+y*m,P=Math.sqrt(P)*(i===r?-1:1);const w=P*o/a*g,C=P*-a/o*h,_=l*w-c*C+(n+e)/2,p=c*w+l*C+(t+s)/2,v=(h-w)/o,x=(g-C)/a,I=(-h-w)/o,O=(-g-C)/a,R=_n(1,0,v,x);let L=_n(v,x,I,O);return r===0&&L>0&&(L-=ae),r===1&&L<0&&(L+=ae),[_,p,R,L]}function Kr(n,t){const e=1.3333333333333333*Math.tan(t/4),s=Math.cos(n),i=Math.sin(n),r=Math.cos(n+t),o=Math.sin(n+t);return[s,i,s-i*e,i+s*e,r+o*e,o-r*e,r,o]}function xn(n,t,e,s,i,r,o,a,c){const l=Math.sin(c*ae/360),h=Math.cos(c*ae/360),g=h*(n-e)/2+l*(t-s)/2,b=-l*(n-e)/2+h*(t-s)/2;if(g===0&&b===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const y=g*g/(o*o)+b*b/(a*a);y>1&&(o*=Math.sqrt(y),a*=Math.sqrt(y));const m=Qr(n,t,e,s,i,r,o,a,l,h),S=[];let P=m[2],w=m[3];const C=Math.max(Math.ceil(Math.abs(w)/(ae/4)),1);w/=C;for(let _=0;_<C;_++)S.push(Kr(P,w)),P+=w;return S.map(_=>{for(let p=0;p<_.length;p+=2){let v=_[p+0],x=_[p+1];v*=o,x*=a;const I=h*v-l*x,O=l*v+h*x;_[p+0]=I+m[0],_[p+1]=O+m[1]}return _})}function ds(n,t,e,s,i,r){return[n/3+2/3*e,t/3+2/3*s,i/3+2/3*e,r/3+2/3*s,i,r]}function ce(n,t,e,s){return[n,t,e,s,e,s]}const Ee={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class ps{static createSVGElement(t="path",e){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&io(s,e),s}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||be()})}static downloadFromSVGElement(t,e="shape"){return Un(Fr(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Un(en(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return on(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return ps.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,r)=>{let o=i.toLowerCase();const a=tn(r);for(o=="m"&&a.length>Ee[o]&&(e.push([i,...a.splice(0,Ee[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Ee[o])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Ee[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,s=0,i=0,r=0;return t.map(function(o){const a=o[0],c=a.toUpperCase();if(a!=c)switch(o[0]=c,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 l=1;l<o.length;)o[l++]+=i,o[l++]+=r}switch(c){case"Z":i=e,r=s;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=s=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,s=0,i=0,r=0;return t.map(function(o){const a=o[0],c=a.toLowerCase();if(a!=c)switch(o[0]=c,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 l=1;l<o.length;)o[l++]-=i,o[l++]-=r}switch(c){case"z":i=e,r=s;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],s+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let s=0,i=0,r=0,o=0,a=0,c=0,l=0,h=0,g;for(let b=0,y=t.length;b<y;b++){let m=t[b];const S=m[0];switch(S){case"M":s=m[1],i=m[2];break;case"A":const P=xn(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!P.length)continue;P.forEach((_,p)=>{const[v,x,I,O,R,L,B,q]=_;m=["C",I,O,R,L,B,q],p<P.length-1&&e.push(m)});break;case"S":let w=r,C=o;(g=="C"||g=="S")&&(w+=w-l,C+=C-h),m=["C",w,C,m[1],m[2],m[3],m[4]];break;case"T":g=="Q"||g=="T"?(a=r*2-a,c=o*2-c):(a=r,c=o),m=["C",...ds(r,o,a,c,m[1],m[2])];break;case"Q":a=m[1],c=m[2],m=["C",...ds(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...ce(r,o,m[1],m[2])];break;case"H":m=["C",...ce(r,o,m[1],o)];break;case"V":m=["C",...ce(r,o,r,m[1])];break;case"Z":m=["C",...ce(r,o,s,i)];break}g=S,r=m[m.length-2],o=m[m.length-1],m.length>4?(l=m[m.length-4],h=m[m.length-3]):(l=r,h=o),e.push(m)}return e}static catmullRom2bezier(t){const e=[];for(let s=0,i=t.length;i-2>s;s+=2){let r;s==0?r=[{x:t[s],y:t[s+1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}]:i-4==s?r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+2],y:t[s+3]}]:r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){const e=[];let s=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){const a=t[r];switch(a[0]){case"M":s=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(s);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const c=t[o],l=e[c[0]];l&&(c[0]=l.to,s&&(s[0]===l.to?(i=2*Number(s[l.x+2])-Number(s[l.x]),r=2*Number(s[l.x+3])-Number(s[l.x+1])):(i=Number(s[s.length-2]),r=Number(s[s.length-1]))),c.splice(1,0,i,r)),s=c}return t}}const Ae=ps;class At{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(Ae.parseSVGPath(t),e):t instanceof At?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const s=Ae.normalizeSVGPath(Ae.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let i=!1;for(let r=0,o=s.length;r<o;r++){const a=s[r];if(a[0]=="M"){i||(i=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Dt({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],toX:a[5],toY:a[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(r=>{({x:r.x,y:r.y}=e.transformPoint({x:r.x,y:r.y})),{x:r.c1x,y:r.c1y}=e.transformPoint({x:r.c1x,y:r.c1y}),{x:r.c2x,y:r.c2y}=e.transformPoint({x:r.c2x,y:r.c2y}),{x:r.toX,y:r.toY}=e.transformPoint({x:r.toX,y:r.toY})}))}static fromPolymorphPoints(t){const e=new At;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let s=2,i=t.length;s+5<i;s+=6)e.appendLine(new Dt({c1x:t[s],c1y:t[s+1],c2x:t[s+2],c2y:t[s+3],toX:t[s+4],toY:t[s+5]}));return e}static fromLines(t){const e=new At;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let s=0,i=t.length;s<i;s++)e.appendLine(t[s]);return e}appendLine(t){if(t instanceof Hr){xn(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(l=>{const[h,g,b,y,m,S,P,w]=l;this.normalizedLines.push(new Dt({x:this.prevPathX,y:this.prevPathY,c1x:b,c1y:y,c2x:m,c2y:S,toX:P,toY:w})),this.prevPathX=P,this.prevPathY=w});return}let e,s,i,r,o,a;t instanceof Dt?(e=t.c1x,s=t.c1y,i=t.c2x,r=t.c2y,o=t.toX,a=t.toY):t instanceof Wr?[e,s,i,r,o,a]=ds(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,s,i,r,o,a]=ce(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Dt({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:s,c2x:i,c2y:r,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform(),i=[];i.push(["M",t,e]);for(let r=0,o=s.length;r<o;r++)i.push(...s[r].toSVGPathData());return i}toSVGPathD(){return Ae.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:s,normalizedLines:i}=this.updateTransform();t.beginPath(),t.moveTo(e,s),i.forEach(r=>{r.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],s=[];if(t.forEach(c=>{const l=c.getBoundingClientRect();e.push(l.x,l.x+l.width),s.push(l.y,l.y+l.height)}),e.length==0||s.length==0)return{x:0,y:0,width:0,height:0};const i=Math.min.apply(0,e),r=Math.min.apply(0,s),o=Math.max.apply(0,e),a=Math.max.apply(0,s);return{x:i,y:r,width:o-i,height:a-r}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new mt;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,s=this.startPathY;({x:e,y:s}=t.transformPoint({x:e,y:s}));const i=[];return this.normalizedLines.forEach(r=>{let o=r.x,a=r.y,c=r.c1x,l=r.c1y,h=r.c2x,g=r.c2y,b=r.toX,y=r.toY;({x:o,y:a}=t.transformPoint({x:o,y:a})),{x:c,y:l}=t.transformPoint({x:c,y:l}),{x:h,y:g}=t.transformPoint({x:h,y:g}),{x:b,y}=t.transformPoint({x:b,y}),i.push(new Dt({x:o,y:a,c1x:c,c1y:l,c2x:h,c2y:g,toX:b,toY:y}))}),{startPathX:e,startPathY:s,normalizedLines:i}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,s)=>e+=s.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let s=0;const i=e.length;for(let r=0;r<i;r++){const o=e[r],a=o.length();if(s+a>=t)return o.getPointAtSegmentLength(t-s);s+=a}return e[i-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:s,normalizedLines:i}=this.updateTransform(),r=i.length;if(r===0)return{x:e,y:s};if(r===1)return i[0].interpolate(t);{let o=t*r,a=i[0];if(o--,o>1)for(let c=1;c<r&&(a=i[c],o>1);c++)o-=1;return a.interpolate(o)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const s=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(s,t):s}}getSubpathsAtLength(t,e,s){const{startPathX:i,startPathY:r,normalizedLines:o}=t.updateTransform();let a=null,c=0;const l=new At;l.prevPathX=l.startPathX=i,l.prevPathY=l.startPathY=r;for(let h=0,g=o.length;h<g;h++){const b=o[h],y=b.length();if(c+y>e&&!a){const m=b.getPointAtSegmentLength(e-c);if(l.appendLine(new Dt({c1x:m.start.x,c1y:m.start.y,c2x:m.m.x,c2y:m.m.y,toX:m.x,toY:m.y})),s)return l;a=l,l.appendLine(new Dt({c1x:m.n.x,c1y:m.n.y,c2x:m.end.x,c2y:m.end.y,toX:b.x,toY:b.y})),c+=y;continue}c+=y,l.appendLine(b)}return l}closestPoint(t,e){const s=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let l=0;l<=s;l+=a){const h=this.getPointAtLength(l),g=us(h.x,h.y,t,e);g<o&&(i=h,r=l,o=g)}for(a/=2;a>.5;){const l=r-a,h=this.getPointAtLength(l),g=us(h.x,h.y,t,e),b=r+a,y=this.getPointAtLength(b),m=us(y.x,y.y,t,e);l>=0&&g<o?(i=h,r=l,o=g):b<=s&&m<o?(i=y,r=b,o=m):a/=2}const c=this.getPointAtLength(r+(r===s?-.1:.1));return{point:i,rotation:r>=s?Se(c.x,c.y,i.x,i.y):Se(i.x,i.y,c.x,c.y),distance:Math.sqrt(o)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform();return[t,e].concat(s.reduce((i,r)=>i.concat([r.c1x,r.c1y,r.c2x,r.c2y,r.toX,r.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let s=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=mn(t[o],t[o+1],s,i),s=t[o],i=t[o+1];return Math.floor(r)}expendFill(t){const e=this.polymorphPoints,s=e.length;let i=t-s;const r=Math.ceil(t/s),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=s-1;){const c=e[a++],l=e[a++],h=e[a++],g=e[a++],b=e[a++],y=e[a++];o.push(["C",c,l,h,g,b,y]);let m=0;for(;m<r&&i>0;)o.push(["C",b,y,b,y,b,y]),i-=6,m++}return o}static mixPoints(t,e,s){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Ht(t[o]+(e[o]-t[o])*s,6);return r}static getPathInterpolator(t,e){return s=>Math.abs(s-0)<Number.EPSILON?t:Math.abs(s-1)<Number.EPSILON?e:At.fromPolymorphPoints(At.mixPoints(new At({d:t}).polymorphPoints,new At({d:e}).polymorphPoints,s)).toSVGPathData()}}class Jr extends os{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=be(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.strokeArmyAnts){const s=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",s),this.strokeDashTotalLength=tn(s).reduce((i,r)=>i+r,0)}return Er(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new At,is(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(s=>{const i=s.originMatrix?s.originMatrix.clone():new mt;i.translate(-t.x+s.x,-t.y+s.y),s.originMatrix=i});const e=this.originMatrix?this.originMatrix.clone():new mt;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,s){if(s instanceof yn)return s.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(i);{const r=this.getBoundingClientRect();if(r)return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height}return!1}isPointInStroke(t,e,s){if(s instanceof yn)return s.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}clone(){return _r(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([s,i])=>[Et(s),i]))):e&&(this.attrs[Et(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[Et(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[Et(t)]}distance(t){return mn(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ut(Se(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:s,dy:i}=dn(J(this.degree),e);this.vx=s,this.vy=i,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:s,dy:i}=dn(J(this.degree),e);this.ax=s,this.ay=i,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,s=t.y-this.y,i=e*e+s*s,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,c=o*s/r;this.vx+=a/this.mass,this.vy+=c/this.mass,t.vx-=a/t.mass,t.vy-=c/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=bt(t?.gravity,0);this.vy+=e;const s=bt(t?.friction,1);this.vx*=s,this.vy*=s,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const s=bt(e?.easing,.05),i=t.x-this.cX-this.x,r=t.y-this.cY-this.y;this.vx=i*s,this.vy=r*s,this.run(e)}runSpringTo(t,e){const s=bt(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(i=>{const r=i.x-this.cX-this.x,o=i.y-this.cY-this.y,a=r*s,c=o*s;this.vx+=a,this.vy+=c}),this.run({friction:.9,...e})}springMassTo(t,e){const s=bt(e?.springLength,100),i=bt(e?.spring,1e-4),r=t.x-this.x,o=t.y-this.y,a=Math.sqrt(r*r+o*o);if(a<s){const c=r*i,l=o*i;return this.vx+=c/this.mass,this.vy+=l/this.mass,t.vx-=c/t.mass,t.vy-=l/t.mass,1-a/s}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const s=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*s),this.getPointAtLength(e*s)}strokeDashTween(t=1e3,e){const s=this.initPathD(),i=Ht(s.getTotalLength(),0);this.setAttr({strokeDasharray:`${i} ${i}`,strokeDashoffset:`${i}`});const r=e?.onUpdate,o=new we({frameDuration:t});o.addTween({offset:i},{offset:0},Object.assign(e||{},{onUpdate:(a,c)=>{this.setAttr("strokeDashoffset",""+Ht(a.offset,2)),r?.(a,c)}})),o.play()}}class to extends Jr{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["M",this.getScreenX(),this.getScreenY()]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,s){this.cX=t,this.cY=e,this.cZ=s}rotateX(t){({x:this.y,y:this.z}=xs(J(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=xs(J(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=xs(J(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return fn(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,s=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+s*s+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y,i=this.z;return{x:s*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-s*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}}const Me=to;class gs{_x;_y;_z;_w;constructor(t=0,e=0,s=0,i=1){this._x=t,this._y=e,this._z=s,this._w=i}static slerpFlat(t,e,s,i,r,o,a){let c=s[i+0],l=s[i+1],h=s[i+2],g=s[i+3];const b=r[o+0],y=r[o+1],m=r[o+2],S=r[o+3];if(a===0){t[e+0]=c,t[e+1]=l,t[e+2]=h,t[e+3]=g;return}if(a===1){t[e+0]=b,t[e+1]=y,t[e+2]=m,t[e+3]=S;return}if(g!==S||c!==b||l!==y||h!==m){let P=1-a;const w=c*b+l*y+h*m+g*S,C=w>=0?1:-1,_=1-w*w;if(_>Number.EPSILON){const v=Math.sqrt(_),x=Math.atan2(v,w*C);P=Math.sin(P*x)/v,a=Math.sin(a*x)/v}const p=a*C;if(c=c*P+b*p,l=l*P+y*p,h=h*P+m*p,g=g*P+S*p,P===1-a){const v=1/Math.sqrt(c*c+l*l+h*h+g*g);c*=v,l*=v,h*=v,g*=v}}t[e]=c,t[e+1]=l,t[e+2]=h,t[e+3]=g}static multiplyQuaternionsFlat(t,e,s,i,r,o){const a=s[i],c=s[i+1],l=s[i+2],h=s[i+3],g=r[o],b=r[o+1],y=r[o+2],m=r[o+3];return t[e]=a*m+h*g+c*y-l*b,t[e+1]=c*m+h*b+l*g-a*y,t[e+2]=l*m+h*y+a*b-c*g,t[e+3]=h*m-a*g-c*b-l*y,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t=this._x,e=this._y,s=this._z,i=this._w){return this._x=t,this._y=e,this._z=s,this._w=i,this._onChangeCallback(),this}clone(){return new gs(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const s=t.x,i=t.y,r=t.z,o=t.order,a=Math.cos,c=Math.sin,l=a(s/2),h=a(i/2),g=a(r/2),b=c(s/2),y=c(i/2),m=c(r/2);switch(o){case"XYZ":this._x=b*h*g+l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g-b*y*m;break;case"YXZ":this._x=b*h*g+l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g+b*y*m;break;case"ZXY":this._x=b*h*g-l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g-b*y*m;break;case"ZYX":this._x=b*h*g-l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g+b*y*m;break;case"YZX":this._x=b*h*g+l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g-b*y*m;break;case"XZY":this._x=b*h*g-l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g+b*y*m;break;default:console.warn("Quaternion: .setFromEuler() encountered an unknown order: "+o)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const s=e/2,i=Math.sin(s);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix4(t){const e=t.value,s=e[0],i=e[4],r=e[8],o=e[1],a=e[5],c=e[9],l=e[2],h=e[6],g=e[10],b=s+a+g;if(b>0){const y=.5/Math.sqrt(b+1);this._w=.25/y,this._x=(h-c)*y,this._y=(r-l)*y,this._z=(o-i)*y}else if(s>a&&s>g){const y=2*Math.sqrt(1+s-a-g);this._w=(h-c)/y,this._x=.25*y,this._y=(i+o)/y,this._z=(r+l)/y}else if(a>g){const y=2*Math.sqrt(1+a-s-g);this._w=(r-l)/y,this._x=(i+o)/y,this._y=.25*y,this._z=(c+h)/y}else{const y=2*Math.sqrt(1+g-s-a);this._w=(o-i)/y,this._x=(r+l)/y,this._y=(c+h)/y,this._z=.25*y}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let s=t.dot(e)+1;return s<Number.EPSILON?(s=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=s):(this._x=0,this._y=-t.z,this._z=t.y,this._w=s)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=s),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Y(this.dot(t),-1,1)))}rotateTowards(t,e){const s=this.angleTo(t);if(s===0)return this;const i=Math.min(1,e/s);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const s=t._x,i=t._y,r=t._z,o=t._w,a=e._x,c=e._y,l=e._z,h=e._w;return this._x=s*h+o*a+i*l-r*c,this._y=i*h+o*c+r*a-s*l,this._z=r*h+o*l+s*c-i*a,this._w=o*h-s*a-i*c-r*l,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);const s=this._x,i=this._y,r=this._z,o=this._w;let a=o*t._w+s*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=s,this._y=i,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const y=1-e;return this._w=y*o+e*this._w,this._x=y*s+e*this._x,this._y=y*i+e*this._y,this._z=y*r+e*this._z,this.normalize(),this}const l=Math.sqrt(c),h=Math.atan2(l,a),g=Math.sin((1-e)*h)/l,b=Math.sin(e*h)/l;return this._w=o*g+this._w*b,this._x=s*g+this._x*b,this._y=i*g+this._y*b,this._z=r*g+this._z*b,this._onChangeCallback(),this}slerpQuaternions(t,e,s){return this.copy(t).slerp(e,s)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),s=Math.random(),i=Math.sqrt(1-s),r=Math.sqrt(s);return this.set(i*Math.sin(t),i*Math.cos(t),r*Math.sin(e),r*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class vt{x=0;y=0;z=0;constructor(t=0,e=0,s=0){this.x=t,this.y=e,this.z=s}set(t=0,e=0,s=0){return this.x=t,this.y=e,this.z=s,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new vt(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(bn.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(bn.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,s=this.y,i=this.z,r=t.value;return this.x=r[0]*e+r[3]*s+r[6]*i,this.y=r[1]*e+r[4]*s+r[7]*i,this.z=r[2]*e+r[5]*s+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,s=this.y,i=this.z,r=t.value,o=1/(r[3]*e+r[7]*s+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*s+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*s+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*s+r[10]*i+r[14])*o,this}applyQuaternion(t){const e=this.x,s=this.y,i=this.z,r=t.x,o=t.y,a=t.z,c=t.w,l=2*(o*i-a*s),h=2*(a*e-r*i),g=2*(r*s-o*e);return this.x=e+c*l+o*g-a*h,this.y=s+c*h+a*l-r*g,this.z=i+c*g+r*h-o*l,this}transformDirection(t){const e=this.x,s=this.y,i=this.z,r=t.value;return this.x=r[0]*e+r[4]*s+r[8]*i,this.y=r[1]*e+r[5]*s+r[9]*i,this.z=r[2]*e+r[6]*s+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Y(this.x,t.x,e.x),this.y=Y(this.y,t.y,e.y),this.z=Y(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=Y(this.x,t,e),this.y=Y(this.y,t,e),this.z=Y(this.z,t,e),this}clampLength(t,e){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Y(s,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,s){return this.x=t.x+(e.x-t.x)*s,this.y=t.y+(e.y-t.y)*s,this.z=t.z+(e.z-t.z)*s,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const s=t.x,i=t.y,r=t.z,o=e.x,a=e.y,c=e.z;return this.x=i*c-r*a,this.y=r*o-s*c,this.z=s*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(e===0)return this.set(0,0,0);const s=t.dot(this)/e;return this.copy(t).multiplyScalar(s)}perpendOnVector(t){return ys.copy(this).projectOnVector(t),this.sub(ys)}projectOnPlane(t){return this.perpendOnVector(t)}reflect(t){return this.sub(ys.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const s=this.dot(t)/e;return Math.acos(Y(s,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,s=this.y-t.y,i=this.z-t.z;return e*e+s*s+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromMatrix4Position(t){const e=t.value;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrix4Scale(t){const e=this.setFromMatrix4Column(t,0).length(),s=this.setFromMatrix4Column(t,1).length(),i=this.setFromMatrix4Column(t,2).length();return this.x=e,this.y=s,this.z=i,this}setFromMatrix4Column(t,e){return this.fromArray(t.value,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.value,e*3)}setFromEuler(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=Math.random()*2-1,s=Math.sqrt(1-e*e);return this.x=s*Math.cos(t),this.y=e,this.z=s*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ys=new vt,bn=new gs,Ie=2e3,vn=2001,Tn=[1,0,0,1,0,0],wn=[1,0,0,0,1,0,0,0,1],Cn=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class le{value;constructor(t=wn){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m21(){return this.value[3]}get m22(){return this.value[4]}get m23(){return this.value[5]}get m31(){return this.value[6]}get m32(){return this.value[7]}get m33(){return this.value[8]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m21(t){this.value[3]=t}set m22(t){this.value[4]=t}set m23(t){this.value[5]=t}set m31(t){this.value[6]=t}set m32(t){this.value[7]=t}set m33(t){this.value[8]=t}set(t=1,e=0,s=0,i=0,r=1,o=0,a=0,c=0,l=1){const h=this.value;return h[0]=t,h[1]=i,h[2]=a,h[3]=e,h[4]=r,h[5]=c,h[6]=s,h[7]=o,h[8]=l,this}identity(){return this.value=Array.from(wn),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}copy(t){return this.m11=t.m11,this.m12=t.m12,this.m13=t.m13,this.m21=t.m21,this.m22=t.m22,this.m23=t.m23,this.m31=t.m31,this.m32=t.m32,this.m33=t.m33,this}clone(){return new le(this.value)}fromArray(t,e=0){for(let s=0;s<9;s++)this.value[s]=t[s+e];return this}toArray(t=[],e=0){return t[e]=this.m11,t[e+1]=this.m12,t[e+2]=this.m13,t[e+3]=this.m21,t[e+4]=this.m22,t[e+5]=this.m23,t[e+6]=this.m31,t[e+7]=this.m32,t[e+8]=this.m33,t}extractBasis(t,e,s){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(t){return this.set(t.m11,t.m21,t.m31,t.m12,t.m22,t.m32,t.m13,t.m23,t.m33),this}multiplyMatrices(t,e){const s=t.value,i=e.value,r=this.value,o=s[0],a=s[3],c=s[6],l=s[1],h=s[4],g=s[7],b=s[2],y=s[5],m=s[8],S=i[0],P=i[3],w=i[6],C=i[1],_=i[4],p=i[7],v=i[2],x=i[5],I=i[8];return r[0]=o*S+a*C+c*v,r[3]=o*P+a*_+c*x,r[6]=o*w+a*p+c*I,r[1]=l*S+h*C+g*v,r[4]=l*P+h*_+g*x,r[7]=l*w+h*p+g*I,r[2]=b*S+y*C+m*v,r[5]=b*P+y*_+m*x,r[8]=b*w+y*p+m*I,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}determinant(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8];return e*o*h-e*a*l-s*r*h+s*a*c+i*r*l-i*o*c}invert(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8],g=h*o-a*l,b=a*c-h*r,y=l*r-o*c,m=e*g+s*b+i*y;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const S=1/m;return t[0]=g*S,t[1]=(i*l-h*s)*S,t[2]=(a*s-i*o)*S,t[3]=b*S,t[4]=(h*e-i*c)*S,t[5]=(i*r-a*e)*S,t[6]=y*S,t[7]=(s*c-l*e)*S,t[8]=(o*e-s*r)*S,this}transpose(){let t;const e=this.value;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.value;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,s,i,r,o,a){const c=Math.cos(r),l=Math.sin(r);return this.set(s*c,s*l,-s*(c*o+l*a)+o+t,-i*l,i*c,-i*(-l*o+c*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(_s.makeScale(t,e)),this}rotate(t){return this.premultiply(_s.makeRotation(-t)),this}translate(t,e){return this.premultiply(_s.makeTranslation(t,e)),this}makeTranslation(t,e){return typeof t=="number"?this.set(1,0,t,0,1,e,0,0,1):this.set(1,0,t.x,0,1,t.y,0,0,1),this}makeRotation(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,-s,0,s,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){for(let e=0;e<9;e++)if(this.value[e]!==t.value[e])return!1;return!0}}class ft{value;is3dSpecial=!1;constructor(t=Cn){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}set(t=1,e=0,s=0,i=0,r=0,o=1,a=0,c=0,l=0,h=0,g=1,b=0,y=0,m=0,S=0,P=1){const w=this.value;return w[0]=t,w[4]=e,w[8]=s,w[12]=i,w[1]=r,w[5]=o,w[9]=a,w[13]=c,w[2]=l,w[6]=h,w[10]=g,w[14]=b,w[3]=y,w[7]=m,w[11]=S,w[15]=P,this}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Cn),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}copy(t){return this.m11=t.m11,this.m12=t.m12,this.m13=t.m13,this.m14=t.m14,this.m21=t.m21,this.m22=t.m22,this.m23=t.m23,this.m24=t.m24,this.m31=t.m31,this.m32=t.m32,this.m33=t.m33,this.m34=t.m34,this.m41=t.m41,this.m42=t.m42,this.m43=t.m43,this.m44=t.m44,this}clone(){return new ft(this.value)}static fromString(t){const e=new ft,s=Ws("number",t);return s.length===16&&s.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}fromArray(t,e=0){for(let s=0;s<16;s++)this.value[s]=t[s+e];return this}toArray(t=[],e=0){const s=this.value;return t[e]=s[0],t[e+1]=s[1],t[e+2]=s[2],t[e+3]=s[3],t[e+4]=s[4],t[e+5]=s[5],t[e+6]=s[6],t[e+7]=s[7],t[e+8]=s[8],t[e+9]=s[9],t[e+10]=s[10],t[e+11]=s[11],t[e+12]=s[12],t[e+13]=s[13],t[e+14]=s[14],t[e+15]=s[15],t}copyPosition(t){const e=this.value,s=t.value;return e[12]=s[12],e[13]=s[13],e[14]=s[14],this}setFromMatrix3(t){const e=t.value;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,s){return t.setFromMatrix4Column(this,0),e.setFromMatrix4Column(this,1),s.setFromMatrix4Column(this,2),this}makeBasis(t,e,s){return this.set(t.x,e.x,s.x,0,t.y,e.y,s.y,0,t.z,e.z,s.z,0,0,0,0,1),this}normalize(){return this.multiplyScalar(1/(this.m44||1e-4))}transformPoint(t){const e=t.z||1,s=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+s*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+s*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+s*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+s*this.m44}}toMatrix(t){const{scalarX:e,scalarY:s,skewX:i,skewY:r,x:o,y:a}=this.split(),c=[e,r,i,s,o,a];return t?(t.value=c,t):new mt(c)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>Ht(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),s=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),i=ut(Y(Math.asin(-this.m13),-1,1));let r=ut(Math.atan2(this.m23,this.m33));Math.cos(J(i))===0&&(r=ut(Math.atan2(-this.m31,this.m22)));let o=ut(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:s,degreeX:r,degreeY:i,degreeZ:o,skewX:ut(this.m14),skewY:ut(this.m24),skewZ:ut(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}extractRotation(t){const e=this.value,s=t.value,i=1/Wt.setFromMatrix4Column(t,0).length(),r=1/Wt.setFromMatrix4Column(t,1).length(),o=1/Wt.setFromMatrix4Column(t,2).length();return e[0]=s[0]*i,e[1]=s[1]*i,e[2]=s[2]*i,e[3]=0,e[4]=s[4]*r,e[5]=s[5]*r,e[6]=s[6]*r,e[7]=0,e[8]=s[8]*o,e[9]=s[9]*o,e[10]=s[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.value,s=t.x,i=t.y,r=t.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(i),l=Math.sin(i),h=Math.cos(r),g=Math.sin(r);if(t.order==="XYZ"){const b=o*h,y=o*g,m=a*h,S=a*g;e[0]=c*h,e[4]=-c*g,e[8]=l,e[1]=y+m*l,e[5]=b-S*l,e[9]=-a*c,e[2]=S-b*l,e[6]=m+y*l,e[10]=o*c}else if(t.order==="YXZ"){const b=c*h,y=c*g,m=l*h,S=l*g;e[0]=b+S*a,e[4]=m*a-y,e[8]=o*l,e[1]=o*g,e[5]=o*h,e[9]=-a,e[2]=y*a-m,e[6]=S+b*a,e[10]=o*c}else if(t.order==="ZXY"){const b=c*h,y=c*g,m=l*h,S=l*g;e[0]=b-S*a,e[4]=-o*g,e[8]=m+y*a,e[1]=y+m*a,e[5]=o*h,e[9]=S-b*a,e[2]=-o*l,e[6]=a,e[10]=o*c}else if(t.order==="ZYX"){const b=o*h,y=o*g,m=a*h,S=a*g;e[0]=c*h,e[4]=m*l-y,e[8]=b*l+S,e[1]=c*g,e[5]=S*l+b,e[9]=y*l-m,e[2]=-l,e[6]=a*c,e[10]=o*c}else if(t.order==="YZX"){const b=o*c,y=o*l,m=a*c,S=a*l;e[0]=c*h,e[4]=S-b*g,e[8]=m*g+y,e[1]=g,e[5]=o*h,e[9]=-a*h,e[2]=-l*h,e[6]=y*g+m,e[10]=b-S*g}else if(t.order==="XZY"){const b=o*c,y=o*l,m=a*c,S=a*l;e[0]=c*h,e[4]=-g,e[8]=l*h,e[1]=b*g+S,e[5]=o*h,e[9]=y*g-m,e[2]=m*g-y,e[6]=a*h,e[10]=S*g+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(eo,t,so)}lookAt(t,e,s){const i=this.value;return at.subVectors(t,e),at.lengthSq()===0&&(at.z=1),at.normalize(),Vt.crossVectors(s,at),Vt.lengthSq()===0&&(Math.abs(s.z)===1?at.x+=1e-4:at.z+=1e-4,at.normalize(),Vt.crossVectors(s,at)),Vt.normalize(),Fe.crossVectors(at,Vt),i[0]=Vt.x,i[4]=Fe.x,i[8]=at.x,i[1]=Vt.y,i[5]=Fe.y,i[9]=at.y,i[2]=Vt.z,i[6]=Fe.z,i[10]=at.z,this}multiplyMatrices(t,e){const s=t.value,i=e.value,r=this.value,o=s[0],a=s[4],c=s[8],l=s[12],h=s[1],g=s[5],b=s[9],y=s[13],m=s[2],S=s[6],P=s[10],w=s[14],C=s[3],_=s[7],p=s[11],v=s[15],x=i[0],I=i[4],O=i[8],R=i[12],L=i[1],B=i[5],q=i[9],D=i[13],X=i[2],W=i[6],ot=i[10],pt=i[14],wt=i[3],gt=i[7],Ct=i[11],St=i[15];return r[0]=o*x+a*L+c*X+l*wt,r[4]=o*I+a*B+c*W+l*gt,r[8]=o*O+a*q+c*ot+l*Ct,r[12]=o*R+a*D+c*pt+l*St,r[1]=h*x+g*L+b*X+y*wt,r[5]=h*I+g*B+b*W+y*gt,r[9]=h*O+g*q+b*ot+y*Ct,r[13]=h*R+g*D+b*pt+y*St,r[2]=m*x+S*L+P*X+w*wt,r[6]=m*I+S*B+P*W+w*gt,r[10]=m*O+S*q+P*ot+w*Ct,r[14]=m*R+S*D+P*pt+w*St,r[3]=C*x+_*L+p*X+v*wt,r[7]=C*I+_*B+p*W+v*gt,r[11]=C*O+_*q+p*ot+v*Ct,r[15]=C*R+_*D+p*pt+v*St,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this}determinant(){const t=this.value,e=t[0],s=t[4],i=t[8],r=t[12],o=t[1],a=t[5],c=t[9],l=t[13],h=t[2],g=t[6],b=t[10],y=t[14],m=t[3],S=t[7],P=t[11],w=t[15];return m*(+r*c*g-i*l*g-r*a*b+s*l*b+i*a*y-s*c*y)+S*(+e*c*y-e*l*b+r*o*b-i*o*y+i*l*h-r*c*h)+P*(+e*l*g-e*a*y-r*o*g+s*o*y+r*a*h-s*l*h)+w*(-i*a*h-e*c*g+e*a*b+i*o*g-s*o*b+s*c*h)}transpose(){const t=this.value;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,s){const i=this.value;return t instanceof vt?(i[12]=t.x,i[13]=t.y,i[14]=t.z):typeof t=="number"&&typeof e=="number"&&typeof s=="number"&&(i[12]=t,i[13]=e,i[14]=s),this}invert(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8],g=t[9],b=t[10],y=t[11],m=t[12],S=t[13],P=t[14],w=t[15],C=g*P*l-S*b*l+S*c*y-a*P*y-g*c*w+a*b*w,_=m*b*l-h*P*l-m*c*y+o*P*y+h*c*w-o*b*w,p=h*S*l-m*g*l+m*a*y-o*S*y-h*a*w+o*g*w,v=m*g*c-h*S*c-m*a*b+o*S*b+h*a*P-o*g*P,x=e*C+s*_+i*p+r*v;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const I=1/x;return t[0]=C*I,t[1]=(S*b*r-g*P*r-S*i*y+s*P*y+g*i*w-s*b*w)*I,t[2]=(a*P*r-S*c*r+S*i*l-s*P*l-a*i*w+s*c*w)*I,t[3]=(g*c*r-a*b*r-g*i*l+s*b*l+a*i*y-s*c*y)*I,t[4]=_*I,t[5]=(h*P*r-m*b*r+m*i*y-e*P*y-h*i*w+e*b*w)*I,t[6]=(m*c*r-o*P*r-m*i*l+e*P*l+o*i*w-e*c*w)*I,t[7]=(o*b*r-h*c*r+h*i*l-e*b*l-o*i*y+e*c*y)*I,t[8]=p*I,t[9]=(m*g*r-h*S*r-m*s*y+e*S*y+h*s*w-e*g*w)*I,t[10]=(o*S*r-m*a*r+m*s*l-e*S*l-o*s*w+e*a*w)*I,t[11]=(h*a*r-o*g*r-h*s*l+e*g*l+o*s*y-e*a*y)*I,t[12]=v*I,t[13]=(h*S*i-m*g*i+m*s*b-e*S*b-h*s*P+e*g*P)*I,t[14]=(m*a*i-o*S*i-m*s*c+e*S*c+o*s*P-e*a*P)*I,t[15]=(o*g*i-h*a*i+h*s*c-e*g*c-o*s*b+e*a*b)*I,this}getMaxScaleOnAxis(){const t=this.value,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],s=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,s,i))}makeTranslation(t,e,s){return t instanceof vt?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,s,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),s=Math.sin(t);return this.set(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const s=Math.cos(e),i=Math.sin(e),r=1-s,o=t.x,a=t.y,c=t.z,l=r*o,h=r*a;return this.set(l*o+s,l*a-i*c,l*c+i*a,0,l*a+i*c,h*a+s,h*c-i*o,0,l*c-i*a,h*c+i*o,r*c*c+s,0,0,0,0,1),this}makeScale(t,e,s){return this.set(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1),this}makeShear(t,e,s,i,r,o){return this.set(1,s,r,0,t,1,o,0,e,i,1,0,0,0,0,1),this}makePerspective(t,e,s,i,r,o,a=Ie){const c=this.value,l=2*r/(e-t),h=2*r/(s-i),g=(e+t)/(e-t),b=(s+i)/(s-i);let y,m;if(a===Ie)y=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===vn)y=-o/(o-r),m=-o*r/(o-r);else throw new Error("Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=l,c[4]=0,c[8]=g,c[12]=0,c[1]=0,c[5]=h,c[9]=b,c[13]=0,c[2]=0,c[6]=0,c[10]=y,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(t,e,s,i,r,o,a=Ie){const c=this.value,l=1/(e-t),h=1/(s-i),g=1/(o-r),b=(e+t)*l,y=(s+i)*h;let m,S;if(a===Ie)m=(o+r)*g,S=-2*g;else if(a===vn)m=r*g,S=-1*g;else throw new Error("Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*l,c[4]=0,c[8]=0,c[12]=-b,c[1]=0,c[5]=2*h,c[9]=0,c[13]=-y,c[2]=0,c[6]=0,c[10]=S,c[14]=-m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}compose(t,e,s){const i=this.value,r=e.x,o=e.y,a=e.z,c=e.w,l=r+r,h=o+o,g=a+a,b=r*l,y=r*h,m=r*g,S=o*h,P=o*g,w=a*g,C=c*l,_=c*h,p=c*g,v=s.x,x=s.y,I=s.z;return i[0]=(1-(S+w))*v,i[1]=(y+p)*v,i[2]=(m-_)*v,i[3]=0,i[4]=(y-p)*x,i[5]=(1-(b+w))*x,i[6]=(P+C)*x,i[7]=0,i[8]=(m+_)*I,i[9]=(P-C)*I,i[10]=(1-(b+S))*I,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,s){const i=this.value;let r=Wt.set(i[0],i[1],i[2]).length();const o=Wt.set(i[4],i[5],i[6]).length(),a=Wt.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],Tt.copy(this);const l=1/r,h=1/o,g=1/a;return Tt.value[0]*=l,Tt.value[1]*=l,Tt.value[2]*=l,Tt.value[4]*=h,Tt.value[5]*=h,Tt.value[6]*=h,Tt.value[8]*=g,Tt.value[9]*=g,Tt.value[10]*=g,e.setFromRotationMatrix4(Tt),s.x=r,s.y=o,s.z=a,this}equals(t){for(let e=0;e<16;e++)if(this.value[e]!==t.value[e])return!1;return!0}translate(t=0,e=0,s=0){return this.multiply(new ft([1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1]))}scale(t=1,e=1,s=1){return this.multiply(new ft([t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1]))}scaleVector3(t){const e=this.value,s=t.x,i=t.y,r=t.z;return e[0]*=s,e[4]*=i,e[8]*=r,e[1]*=s,e[5]*=i,e[9]*=r,e[2]*=s,e[6]*=i,e[10]*=r,e[3]*=s,e[7]*=i,e[11]*=r,this}rotateX(t){const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([1,0,0,0,0,s,i,0,0,-i,s,0,0,0,0,1]))}rotateY(t){const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([s,0,-i,0,0,1,0,0,i,0,s,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,s=0){return this.multiply(new ft([1,0,0,J(t),0,1,0,J(e),0,0,1,J(s),0,0,0,1]))}perspective(t){return this.multiply(new ft([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,s=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=s+this.m32,c=i+this.m33,l=r+this.m34;r==0&&(r=1e-4),e/=r,s/=r,i/=r,l==0&&(l=1e-4),o/=l,a/=l,c/=l;const h=c-i;if(h==0)return{x:e,y:s,z:i,mass:r};const g=-i/h;return e+=g*(o-e),s+=g*(a-s),{x:e,y:s,z:i,mass:r}}project(t){const e=t.z;let s=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),s/=r,i/=r,r<0&&(s-=this.m41,i-=this.m42,s*=1/r,i*=1/r,s+=this.m41,i+=this.m42),{x:s,y:i,z:e,mass:r}}bounds(t,e,s,i){const r=new Me({x:t,y:e}),o=new Me({x:t+s,y:e}),a=new Me({x:t+s,y:e+i}),c=new Me({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:c.x,y:c.y,z:c.z,mass:c.mass}=this.project(c);const l=Math.min(r.x,o.x,a.x,c.x),h=Math.min(r.y,o.y,a.y,c.y),g=Math.max(r.x,o.x,a.x,c.x)-l,b=Math.max(r.y,o.y,a.y,c.y)-h;return{x:l,y:h,width:g,height:b}}}class mt{value;_m13=0;_m23=0;_m33=1;matrix4;constructor(t=Tn){this.value=Array.from(t),this.matrix4=this.toMatrix4()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=t}static fromString(t){const e=new mt,s=Ws("number",t);return s.length===6&&s.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}toMatrix4(t=this.matrix4){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new ft(e)}identity(){return this.value=Array.from(Tn),this.m13=0,this.m23=0,this.m33=1,this.matrix4=this.toMatrix4(),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.multiplyScalar(1/t)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new mt(this.value)}multiply(t){const e=this.clone(),s=t instanceof mt?t:new mt(t);return this.m11=s.m11*e.m11+s.m12*e.m21+s.m13*e.m31,this.m12=s.m11*e.m12+s.m12*e.m22+s.m13*e.m32,this.m13=s.m11*e.m13+s.m12*e.m23+s.m13*e.m33,this.m21=s.m21*e.m11+s.m22*e.m21+s.m23*e.m31,this.m22=s.m21*e.m12+s.m22*e.m22+s.m23*e.m32,this.m23=s.m21*e.m13+s.m22*e.m23+s.m23*e.m33,this.m31=s.m31*e.m11+s.m32*e.m21+s.m33*e.m31,this.m32=s.m31*e.m12+s.m32*e.m22+s.m33*e.m32,this.m33=s.m31*e.m13+s.m32*e.m23+s.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}invert(){const t=this.m11,e=this.m12,s=this.m13,i=this.m21,r=this.m22,o=this.m23,a=this.m31,c=this.m32,l=this.m33,h=l*r-o*c,g=-l*i+o*a,b=c*i-r*a;let y=t*h+e*g+s*b;return y?(y=1/y,this.m11=h*y,this.m12=(-l*e+s*c)*y,this.m13=(o*e-s*r)*y,this.m21=g*y,this.m22=(l*t-s*a)*y,this.m23=(-o*t+s*i)*y,this.m31=b*y,this.m32=(-c*t+e*a)*y,this.m33=(r*t-e*i)*y,this):null}adjugate(){const t=new mt;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=ut(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:ut(Math.atan2(-this.m21,this.m22)),skewY:ut(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],s=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],c=t.value[0],l=t.value[1],h=t.value[2],g=t.value[3],b=t.value[4],y=t.value[5],m=c*g,S=l*h,P=(h*s-e*g)/(S-m),w=(c*s-e*l)/(m-S),C=(h*r-i*g)/(S-m),_=(c*r-i*l)/(m-S),p=(h*(a-y)+g*(b-o))/(S-m),v=(c*(a-y)+l*(b-o))/(m-S),x=[P,w,C,_,p,v];return new mt(x)}toString(t=6){return this.matrix4.is2D()?`matrix(${this.value.map(e=>Ht(e,t)).join(",")})`:this.matrix4.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix4(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix4.translate(0,0,t),this.matrix4.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix4.m43),this}translate3d(t,e,s){return this.matrix4.translate(t,e,s),this.matrix4.toMatrix(this),this}translate3dTo(t,e,s){return this.translate3d(t-this.matrix4.m41,e-this.matrix4.m42,s-this.matrix4.m43),this}rotate(t,e=0,s=0){const i=J(t),r=Math.cos(i),o=Math.sin(i);return this.translate(e,s),this.multiply([r,o,-o,r,0,0]),this.translate(-e,-s),this.toMatrix4(),this}rotateTo(t,e=0,s=0){const{degree:i}=this.split();return this.rotate(t-i,e,s),this}rotateX(t){return this.matrix4.rotateX(t),this.matrix4.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix4.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix4.rotateY(t),this.matrix4.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix4.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix4.rotateZ(t),this.matrix4.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix4.split();return this.rotateZ(t-e),this}rotate3d(t,e,s){return this.matrix4.rotateX(t).rotateY(e).rotateZ(s),this.matrix4.toMatrix(this),this}rotate3dTo(t,e,s){const{degreeX:i,degreeY:r,degreeZ:o}=this.matrix4.split();return this.rotate3d(t-i,e-r,s-o),this}scale(t,e=t,s=0,i=0){return this.translate(s,i),this.multiply([t,0,0,e,0,0]),this.translate(-s,-i),this.toMatrix4(),this}scaleTo(t,e=t,s=0,i=0){return this.scale(t/this.m11,e/this.m22,s,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix4.scale(1,1,t),this.matrix4.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix4.split();return this.scaleZ(t/e),this}scale3d(t,e=t,s=t){return this.matrix4.scale(t,e,s),this.matrix4.toMatrix(this),this}scale3dTo(t,e=t,s=t){const{scalarX:i,scalarY:r,scalarZ:o}=this.matrix4.split();return this.scale3d(t/i,e/r,s/o),this}skew(t,e=t){return this.multiply([Math.cos(J(e)),Math.sin(J(e)),-Math.sin(J(t)),Math.cos(J(t)),0,0]),this.toMatrix4(),this}skewTo(t,e=t){const{skewX:s,skewY:i}=this.split();return this.skew(t-s,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,s){return this}skew3dTo(t,e,s){return this}perspective(t){return this.matrix4.perspective(t),this.matrix4.toMatrix(this),this}}const eo=new vt(0,0,0),so=new vt(1,1,1),Vt=new vt,Fe=new vt,at=new vt,Wt=new vt,_s=new le,Tt=new ft;function xs(n,t,e){const s=new mt;return s.rotate(ut(n)),s.transformPoint({x:t,y:e})}function bs(n,t,e){const s=un(n);return s.props.style=s.props.style||{},t?s.props.style[t]||s.props.style[fr(t)]||s.props.style[Et(t)]||"":s.props.style}function Sn(n){const t={};if(getComputedStyle){const e=getComputedStyle(n);for(let s=0,i=e.length;s<i;s++)t[e[s]]=e.getPropertyValue(t[s])}else{const e=n.currentStyle;for(const s in e)t[s]=e[s]}return n.style.cssText&&n.style.cssText.split(";").filter(e=>!!e).forEach(e=>{const[s,i]=e.split(":");s&&i&&(t[s.trim()]=i.trim())}),t}function Pn(n,t,e){let s=n.style[t]||"";if(!s&&getComputedStyle){t=Et(t);const i=getComputedStyle(n,e),r=i.getPropertyPriority(t);s=i.getPropertyValue(t).trim()+(r?"!"+r:"")}return s||(s=n.currentStyle[t]||""),s}function he(n,t,e){typeof t=="string"&&e?n.style.setProperty(Et(t),e.replace(/!important/i,""),e.toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(s=>{he(n,s,t[s])})}function kn(n,t){typeof t=="string"?n.style.removeProperty(Et(t)):Object.keys(t).forEach(e=>{kn(n,e)})}function no(n,t){let e;if(typeof t=="string"){const s=document.querySelector(t)?.shadowRoot;s?e=s:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];if(e){const s=document.createElement("style");return s.innerHTML=n,e.appendChild(s),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(s)}}else{const s=document.styleSheets[0].insertRule(n);return()=>{document.styleSheets[0].deleteRule(s)}}}function io(n,t,e){if(t===void 0&&e===void 0)return En(n);if(typeof t=="string"&&e===void 0)return ro(n,t);let s={};typeof t=="object"?s=t:typeof t=="string"&&typeof e=="string"&&(s[t]=""+e),Gr(n,i=>{Object.entries(s).forEach(([r,o])=>{i.props[r]=""+o})})}function En(n){const t={};for(let e=0,s=n.attributes,i=s.length;e<i;e++){const r=s[e];r.nodeName&&r.nodeValue&&(r.nodeName==="style"?t[r.nodeName]=Sn(n):t[r.nodeName]=r.nodeValue)}return t}function ro(n,t){return t==="style"?Sn(n):n.getAttribute(Et(t))}function ze(n,t,e){return n.setAttribute(Et(t),""+e)}function An(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent}}function oo(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function Mn(n){const{top:t,left:e,width:s,height:i}=n.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=An();return{x:e+r,y:t+o,width:s,height:i}}function ao(){const n={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0,isDown:!1},t={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0,isDown:!1};return{mousePoint:t,setStartMousePoint:function(e,s){n.x=e.x,n.y=e.y,typeof s=="boolean"&&(n.isDown=s),this.setCurrentMousePoint(e,s)},setCurrentMousePoint:(e,s)=>{const i=t.x,r=t.y;t.x=e.x,t.y=e.y,t.dx=t.x-i,t.dy=t.y-r,t.dStartX=t.x-n.x,t.dStartY=t.y-n.y,typeof s=="boolean"&&(t.isDown=s)}}}function In(n){if("center"in n)return n.center;if(typeof n.pageX=="number"&&typeof n.pageY=="number")return{x:n.pageX,y:n.pageY};const{scrollLeft:t,scrollTop:e}=An();return{x:n.clientX+t,y:n.clientY+e}}function ue(n,t){const e={x:0,y:0};if(t){const s=In(n),i=Mn(t);e.x=Y(s.x-i.x,0,i.width),e.y=Y(s.y-i.y,0,i.height)}else{let s=0,i=0;if("currentTarget"in n&&n.currentTarget&&n.target&&n.currentTarget!=n.target){const r=n.currentTarget.getBoundingClientRect(),o=n.target.getBoundingClientRect();s=o.left-r.left,i=o.top-r.top}if("offsetX"in n)e.x=n.offsetX+s,e.y=n.offsetY+i;else{const r=In(n),o=Mn(n.target);e.x=Y(r.x-o.x+s,0,o.width),e.y=Y(r.y-o.y+i,0,o.height)}}return e}var Fn={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
11
11
|
* http://hammerjs.github.io/
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
14
14
|
* Licensed under the MIT license */(function(n){(function(t,e,s,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",c=Math.round,l=Math.abs,h=Date.now;function g(u,d,T){return setTimeout(_(u,T),d)}function b(u,d,T){return Array.isArray(u)?(y(u,T[d],T),!0):!1}function y(u,d,T){var k;if(u)if(u.forEach)u.forEach(d,T);else if(u.length!==i)for(k=0;k<u.length;)d.call(T,u[k],k,u),k++;else for(k in u)u.hasOwnProperty(k)&&d.call(T,u[k],k,u)}function m(u,d,T){var k="DEPRECATED METHOD: "+d+`
|
|
15
15
|
`+T+` AT
|
|
16
|
-
`;return function(){var M=new Error("get-stack-trace"),z=M&&M.stack?M.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",V=t.console&&(t.console.warn||t.console.log);return V&&V.call(t.console,k,z),u.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(d){if(d===i||d===null)throw new TypeError("Cannot convert undefined or null to object");for(var T=Object(d),k=1;k<arguments.length;k++){var M=arguments[k];if(M!==i&&M!==null)for(var z in M)M.hasOwnProperty(z)&&(T[z]=M[z])}return T}:S=Object.assign;var P=m(function(d,T,k){for(var M=Object.keys(T),z=0;z<M.length;)(!k||k&&d[M[z]]===i)&&(d[M[z]]=T[M[z]]),z++;return d},"extend","Use `assign`."),w=m(function(d,T){return P(d,T,!0)},"merge","Use `assign`.");function C(u,d,T){var k=d.prototype,M;M=u.prototype=Object.create(k),M.constructor=u,M._super=k,T&&S(M,T)}function _(u,d){return function(){return u.apply(d,arguments)}}function p(u,d){return typeof u==a?u.apply(d&&d[0]||i,d):u}function v(u,d){return u===i?d:u}function x(u,d,T){y(L(d),function(k){u.addEventListener(k,T,!1)})}function I(u,d,T){y(L(d),function(k){u.removeEventListener(k,T,!1)})}function O(u,d){for(;u;){if(u==d)return!0;u=u.parentNode}return!1}function R(u,d){return u.indexOf(d)>-1}function L(u){return u.trim().split(/\s+/g)}function B(u,d,T){if(u.indexOf&&!T)return u.indexOf(d);for(var k=0;k<u.length;){if(T&&u[k][T]==d||!T&&u[k]===d)return k;k++}return-1}function q(u){return Array.prototype.slice.call(u,0)}function D(u,d,T){for(var k=[],M=[],z=0;z<u.length;){var V=d?u[z][d]:u[z];B(M,V)<0&&k.push(u[z]),M[z]=V,z++}return T&&(d?k=k.sort(function(et,rt){return et[d]>rt[d]}):k=k.sort()),k}function X(u,d){for(var T,k,M=d[0].toUpperCase()+d.slice(1),z=0;z<r.length;){if(T=r[z],k=T?T+M:d,k in u)return k;z++}return i}var W=1;function ot(){return W++}function pt(u){var d=u.ownerDocument||u;return d.defaultView||d.parentWindow||t}var wt=/mobile|tablet|ip(ad|hone|od)|android/i,gt="ontouchstart"in t,Ct=X(t,"PointerEvent")!==i,St=gt&&wt.test(navigator.userAgent),it="touch",N="pen",E="mouse",ht="kinect",tt=25,G=1,yt=2,j=4,Q=8,se=1,$t=2,Ut=4,Bt=8,A=16,H=$t|Ut,qt=Bt|A,Oi=H|qt,Ri=["x","y"],je=["clientX","clientY"];function _t(u,d){var T=this;this.manager=u,this.callback=d,this.element=u.element,this.target=u.options.inputTarget,this.domHandler=function(k){p(u.options.enable,[u])&&T.handler(k)},this.init()}_t.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(pt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(pt(this.element),this.evWin,this.domHandler)}};function fc(u){var d,T=u.options.inputClass;return T?d=T:Ct?d=Vs:St?d=We:gt?d=Bs:d=Ze,new d(u,mc)}function mc(u,d,T){var k=T.pointers.length,M=T.changedPointers.length,z=d&G&&k-M===0,V=d&(j|Q)&&k-M===0;T.isFirst=!!z,T.isFinal=!!V,z&&(u.session={}),T.eventType=d,dc(u,T),u.emit("hammer.input",T),u.recognize(T),u.session.prevInput=T}function dc(u,d){var T=u.session,k=d.pointers,M=k.length;T.firstInput||(T.firstInput=Li(d)),M>1&&!T.firstMultiple?T.firstMultiple=Li(d):M===1&&(T.firstMultiple=!1);var z=T.firstInput,V=T.firstMultiple,K=V?V.center:z.center,et=d.center=Ni(k);d.timeStamp=h(),d.deltaTime=d.timeStamp-z.timeStamp,d.angle=Ds(K,et),d.distance=He(K,et),pc(T,d),d.offsetDirection=Vi(d.deltaX,d.deltaY);var rt=Di(d.deltaTime,d.deltaX,d.deltaY);d.overallVelocityX=rt.x,d.overallVelocityY=rt.y,d.overallVelocity=l(rt.x)>l(rt.y)?rt.x:rt.y,d.scale=V?_c(V.pointers,k):1,d.rotation=V?yc(V.pointers,k):0,d.maxPointers=T.prevInput?d.pointers.length>T.prevInput.maxPointers?d.pointers.length:T.prevInput.maxPointers:d.pointers.length,gc(T,d);var It=u.element;O(d.srcEvent.target,It)&&(It=d.srcEvent.target),d.target=It}function pc(u,d){var T=d.center,k=u.offsetDelta||{},M=u.prevDelta||{},z=u.prevInput||{};(d.eventType===G||z.eventType===j)&&(M=u.prevDelta={x:z.deltaX||0,y:z.deltaY||0},k=u.offsetDelta={x:T.x,y:T.y}),d.deltaX=M.x+(T.x-k.x),d.deltaY=M.y+(T.y-k.y)}function gc(u,d){var T=u.lastInterval||d,k=d.timeStamp-T.timeStamp,M,z,V,K;if(d.eventType!=Q&&(k>tt||T.velocity===i)){var et=d.deltaX-T.deltaX,rt=d.deltaY-T.deltaY,It=Di(k,et,rt);z=It.x,V=It.y,M=l(It.x)>l(It.y)?It.x:It.y,K=Vi(et,rt),u.lastInterval=d}else M=T.velocity,z=T.velocityX,V=T.velocityY,K=T.direction;d.velocity=M,d.velocityX=z,d.velocityY=V,d.direction=K}function Li(u){for(var d=[],T=0;T<u.pointers.length;)d[T]={clientX:c(u.pointers[T].clientX),clientY:c(u.pointers[T].clientY)},T++;return{timeStamp:h(),pointers:d,center:Ni(d),deltaX:u.deltaX,deltaY:u.deltaY}}function Ni(u){var d=u.length;if(d===1)return{x:c(u[0].clientX),y:c(u[0].clientY)};for(var T=0,k=0,M=0;M<d;)T+=u[M].clientX,k+=u[M].clientY,M++;return{x:c(T/d),y:c(k/d)}}function Di(u,d,T){return{x:d/u||0,y:T/u||0}}function Vi(u,d){return u===d?se:l(u)>=l(d)?u<0?$t:Ut:d<0?Bt:A}function He(u,d,T){T||(T=Ri);var k=d[T[0]]-u[T[0]],M=d[T[1]]-u[T[1]];return Math.sqrt(k*k+M*M)}function Ds(u,d,T){T||(T=Ri);var k=d[T[0]]-u[T[0]],M=d[T[1]]-u[T[1]];return Math.atan2(M,k)*180/Math.PI}function yc(u,d){return Ds(d[1],d[0],je)+Ds(u[1],u[0],je)}function _c(u,d){return He(d[0],d[1],je)/He(u[0],u[1],je)}var xc={mousedown:G,mousemove:yt,mouseup:j},bc="mousedown",vc="mousemove mouseup";function Ze(){this.evEl=bc,this.evWin=vc,this.pressed=!1,_t.apply(this,arguments)}C(Ze,_t,{handler:function(d){var T=xc[d.type];T&G&&d.button===0&&(this.pressed=!0),T&yt&&d.which!==1&&(T=j),this.pressed&&(T&j&&(this.pressed=!1),this.callback(this.manager,T,{pointers:[d],changedPointers:[d],pointerType:E,srcEvent:d}))}});var Tc={pointerdown:G,pointermove:yt,pointerup:j,pointercancel:Q,pointerout:Q},wc={2:it,3:N,4:E,5:ht},Bi="pointerdown",Xi="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Bi="MSPointerDown",Xi="MSPointerMove MSPointerUp MSPointerCancel");function Vs(){this.evEl=Bi,this.evWin=Xi,_t.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Vs,_t,{handler:function(d){var T=this.store,k=!1,M=d.type.toLowerCase().replace("ms",""),z=Tc[M],V=wc[d.pointerType]||d.pointerType,K=V==it,et=B(T,d.pointerId,"pointerId");z&G&&(d.button===0||K)?et<0&&(T.push(d),et=T.length-1):z&(j|Q)&&(k=!0),!(et<0)&&(T[et]=d,this.callback(this.manager,z,{pointers:T,changedPointers:[d],pointerType:V,srcEvent:d}),k&&T.splice(et,1))}});var Cc={touchstart:G,touchmove:yt,touchend:j,touchcancel:Q},Sc="touchstart",Pc="touchstart touchmove touchend touchcancel";function Yi(){this.evTarget=Sc,this.evWin=Pc,this.started=!1,_t.apply(this,arguments)}C(Yi,_t,{handler:function(d){var T=Cc[d.type];if(T===G&&(this.started=!0),!!this.started){var k=kc.call(this,d,T);T&(j|Q)&&k[0].length-k[1].length===0&&(this.started=!1),this.callback(this.manager,T,{pointers:k[0],changedPointers:k[1],pointerType:it,srcEvent:d})}}});function kc(u,d){var T=q(u.touches),k=q(u.changedTouches);return d&(j|Q)&&(T=D(T.concat(k),"identifier",!0)),[T,k]}var Ec={touchstart:G,touchmove:yt,touchend:j,touchcancel:Q},Ac="touchstart touchmove touchend touchcancel";function We(){this.evTarget=Ac,this.targetIds={},_t.apply(this,arguments)}C(We,_t,{handler:function(d){var T=Ec[d.type],k=Mc.call(this,d,T);k&&this.callback(this.manager,T,{pointers:k[0],changedPointers:k[1],pointerType:it,srcEvent:d})}});function Mc(u,d){var T=q(u.touches),k=this.targetIds;if(d&(G|yt)&&T.length===1)return k[T[0].identifier]=!0,[T,T];var M,z,V=q(u.changedTouches),K=[],et=this.target;if(z=T.filter(function(rt){return O(rt.target,et)}),d===G)for(M=0;M<z.length;)k[z[M].identifier]=!0,M++;for(M=0;M<V.length;)k[V[M].identifier]&&K.push(V[M]),d&(j|Q)&&delete k[V[M].identifier],M++;if(K.length)return[D(z.concat(K),"identifier",!0),K]}var Ic=2500,Gi=25;function Bs(){_t.apply(this,arguments);var u=_(this.handler,this);this.touch=new We(this.manager,u),this.mouse=new Ze(this.manager,u),this.primaryTouch=null,this.lastTouches=[]}C(Bs,_t,{handler:function(d,T,k){var M=k.pointerType==it,z=k.pointerType==E;if(!(z&&k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents)){if(M)Fc.call(this,T,k);else if(z&&zc.call(this,k))return;this.callback(d,T,k)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Fc(u,d){u&G?(this.primaryTouch=d.changedPointers[0].identifier,$i.call(this,d)):u&(j|Q)&&$i.call(this,d)}function $i(u){var d=u.changedPointers[0];if(d.identifier===this.primaryTouch){var T={x:d.clientX,y:d.clientY};this.lastTouches.push(T);var k=this.lastTouches,M=function(){var z=k.indexOf(T);z>-1&&k.splice(z,1)};setTimeout(M,Ic)}}function zc(u){for(var d=u.srcEvent.clientX,T=u.srcEvent.clientY,k=0;k<this.lastTouches.length;k++){var M=this.lastTouches[k],z=Math.abs(d-M.x),V=Math.abs(T-M.y);if(z<=Gi&&V<=Gi)return!0}return!1}var Ui=X(o.style,"touchAction"),qi=Ui!==i,ji="compute",Hi="auto",Xs="manipulation",jt="none",ge="pan-x",ye="pan-y",Qe=Rc();function Ys(u,d){this.manager=u,this.set(d)}Ys.prototype={set:function(u){u==ji&&(u=this.compute()),qi&&this.manager.element.style&&Qe[u]&&(this.manager.element.style[Ui]=u),this.actions=u.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var u=[];return y(this.manager.recognizers,function(d){p(d.options.enable,[d])&&(u=u.concat(d.getTouchAction()))}),Oc(u.join(" "))},preventDefaults:function(u){var d=u.srcEvent,T=u.offsetDirection;if(this.manager.session.prevented){d.preventDefault();return}var k=this.actions,M=R(k,jt)&&!Qe[jt],z=R(k,ye)&&!Qe[ye],V=R(k,ge)&&!Qe[ge];if(M){var K=u.pointers.length===1,et=u.distance<2,rt=u.deltaTime<250;if(K&&et&&rt)return}if(!(V&&z)&&(M||z&&T&H||V&&T&qt))return this.preventSrc(d)},preventSrc:function(u){this.manager.session.prevented=!0,u.preventDefault()}};function Oc(u){if(R(u,jt))return jt;var d=R(u,ge),T=R(u,ye);return d&&T?jt:d||T?d?ge:ye:R(u,Xs)?Xs:Hi}function Rc(){if(!qi)return!1;var u={},d=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(T){u[T]=d?t.CSS.supports("touch-action",T):!0}),u}var Ke=1,xt=2,ne=4,Xt=8,Ot=Xt,_e=16,Mt=32;function Rt(u){this.options=S({},this.defaults,u||{}),this.id=ot(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=Ke,this.simultaneous={},this.requireFail=[]}Rt.prototype={defaults:{},set:function(u){return S(this.options,u),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(u){if(b(u,"recognizeWith",this))return this;var d=this.simultaneous;return u=Je(u,this),d[u.id]||(d[u.id]=u,u.recognizeWith(this)),this},dropRecognizeWith:function(u){return b(u,"dropRecognizeWith",this)?this:(u=Je(u,this),delete this.simultaneous[u.id],this)},requireFailure:function(u){if(b(u,"requireFailure",this))return this;var d=this.requireFail;return u=Je(u,this),B(d,u)===-1&&(d.push(u),u.requireFailure(this)),this},dropRequireFailure:function(u){if(b(u,"dropRequireFailure",this))return this;u=Je(u,this);var d=B(this.requireFail,u);return d>-1&&this.requireFail.splice(d,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(u){return!!this.simultaneous[u.id]},emit:function(u){var d=this,T=this.state;function k(M){d.manager.emit(M,u)}T<Xt&&k(d.options.event+Zi(T)),k(d.options.event),u.additionalEvent&&k(u.additionalEvent),T>=Xt&&k(d.options.event+Zi(T))},tryEmit:function(u){if(this.canEmit())return this.emit(u);this.state=Mt},canEmit:function(){for(var u=0;u<this.requireFail.length;){if(!(this.requireFail[u].state&(Mt|Ke)))return!1;u++}return!0},recognize:function(u){var d=S({},u);if(!p(this.options.enable,[this,d])){this.reset(),this.state=Mt;return}this.state&(Ot|_e|Mt)&&(this.state=Ke),this.state=this.process(d),this.state&(xt|ne|Xt|_e)&&this.tryEmit(d)},process:function(u){},getTouchAction:function(){},reset:function(){}};function Zi(u){return u&_e?"cancel":u&Xt?"end":u&ne?"move":u&xt?"start":""}function Wi(u){return u==A?"down":u==Bt?"up":u==$t?"left":u==Ut?"right":""}function Je(u,d){var T=d.manager;return T?T.get(u):u}function Pt(){Rt.apply(this,arguments)}C(Pt,Rt,{defaults:{pointers:1},attrTest:function(u){var d=this.options.pointers;return d===0||u.pointers.length===d},process:function(u){var d=this.state,T=u.eventType,k=d&(xt|ne),M=this.attrTest(u);return k&&(T&Q||!M)?d|_e:k||M?T&j?d|Xt:d&xt?d|ne:xt:Mt}});function ts(){Pt.apply(this,arguments),this.pX=null,this.pY=null}C(ts,Pt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Oi},getTouchAction:function(){var u=this.options.direction,d=[];return u&H&&d.push(ye),u&qt&&d.push(ge),d},directionTest:function(u){var d=this.options,T=!0,k=u.distance,M=u.direction,z=u.deltaX,V=u.deltaY;return M&d.direction||(d.direction&H?(M=z===0?se:z<0?$t:Ut,T=z!=this.pX,k=Math.abs(u.deltaX)):(M=V===0?se:V<0?Bt:A,T=V!=this.pY,k=Math.abs(u.deltaY))),u.direction=M,T&&k>d.threshold&&M&d.direction},attrTest:function(u){return Pt.prototype.attrTest.call(this,u)&&(this.state&xt||!(this.state&xt)&&this.directionTest(u))},emit:function(u){this.pX=u.deltaX,this.pY=u.deltaY;var d=Wi(u.direction);d&&(u.additionalEvent=this.options.event+d),this._super.emit.call(this,u)}});function Gs(){Pt.apply(this,arguments)}C(Gs,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jt]},attrTest:function(u){return this._super.attrTest.call(this,u)&&(Math.abs(u.scale-1)>this.options.threshold||this.state&xt)},emit:function(u){if(u.scale!==1){var d=u.scale<1?"in":"out";u.additionalEvent=this.options.event+d}this._super.emit.call(this,u)}});function $s(){Rt.apply(this,arguments),this._timer=null,this._input=null}C($s,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Hi]},process:function(u){var d=this.options,T=u.pointers.length===d.pointers,k=u.distance<d.threshold,M=u.deltaTime>d.time;if(this._input=u,!k||!T||u.eventType&(j|Q)&&!M)this.reset();else if(u.eventType&G)this.reset(),this._timer=g(function(){this.state=Ot,this.tryEmit()},d.time,this);else if(u.eventType&j)return Ot;return Mt},reset:function(){clearTimeout(this._timer)},emit:function(u){this.state===Ot&&(u&&u.eventType&j?this.manager.emit(this.options.event+"up",u):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}});function Us(){Pt.apply(this,arguments)}C(Us,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jt]},attrTest:function(u){return this._super.attrTest.call(this,u)&&(Math.abs(u.rotation)>this.options.threshold||this.state&xt)}});function qs(){Pt.apply(this,arguments)}C(qs,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:H|qt,pointers:1},getTouchAction:function(){return ts.prototype.getTouchAction.call(this)},attrTest:function(u){var d=this.options.direction,T;return d&(H|qt)?T=u.overallVelocity:d&H?T=u.overallVelocityX:d&qt&&(T=u.overallVelocityY),this._super.attrTest.call(this,u)&&d&u.offsetDirection&&u.distance>this.options.threshold&&u.maxPointers==this.options.pointers&&l(T)>this.options.velocity&&u.eventType&j},emit:function(u){var d=Wi(u.offsetDirection);d&&this.manager.emit(this.options.event+d,u),this.manager.emit(this.options.event,u)}});function es(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(es,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Xs]},process:function(u){var d=this.options,T=u.pointers.length===d.pointers,k=u.distance<d.threshold,M=u.deltaTime<d.time;if(this.reset(),u.eventType&G&&this.count===0)return this.failTimeout();if(k&&M&&T){if(u.eventType!=j)return this.failTimeout();var z=this.pTime?u.timeStamp-this.pTime<d.interval:!0,V=!this.pCenter||He(this.pCenter,u.center)<d.posThreshold;this.pTime=u.timeStamp,this.pCenter=u.center,!V||!z?this.count=1:this.count+=1,this._input=u;var K=this.count%d.taps;if(K===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=Ot,this.tryEmit()},d.interval,this),xt):Ot}return Mt},failTimeout:function(){return this._timer=g(function(){this.state=Mt},this.options.interval,this),Mt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ot&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Lt(u,d){return d=d||{},d.recognizers=v(d.recognizers,Lt.defaults.preset),new js(u,d)}Lt.VERSION="2.0.7",Lt.defaults={domEvents:!1,touchAction:ji,enable:!0,inputTarget:null,inputClass:null,preset:[[Us,{enable:!1}],[Gs,{enable:!1},["rotate"]],[qs,{direction:H}],[ts,{direction:H},["swipe"]],[es],[es,{event:"doubletap",taps:2},["tap"]],[$s]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Lc=1,Qi=2;function js(u,d){this.options=S({},Lt.defaults,d||{}),this.options.inputTarget=this.options.inputTarget||u,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=u,this.input=fc(this),this.touchAction=new Ys(this,this.options.touchAction),Ki(this,!0),y(this.options.recognizers,function(T){var k=this.add(new T[0](T[1]));T[2]&&k.recognizeWith(T[2]),T[3]&&k.requireFailure(T[3])},this)}js.prototype={set:function(u){return S(this.options,u),u.touchAction&&this.touchAction.update(),u.inputTarget&&(this.input.destroy(),this.input.target=u.inputTarget,this.input.init()),this},stop:function(u){this.session.stopped=u?Qi:Lc},recognize:function(u){var d=this.session;if(!d.stopped){this.touchAction.preventDefaults(u);var T,k=this.recognizers,M=d.curRecognizer;(!M||M&&M.state&Ot)&&(M=d.curRecognizer=null);for(var z=0;z<k.length;)T=k[z],d.stopped!==Qi&&(!M||T==M||T.canRecognizeWith(M))?T.recognize(u):T.reset(),!M&&T.state&(xt|ne|Xt)&&(M=d.curRecognizer=T),z++}},get:function(u){if(u instanceof Rt)return u;for(var d=this.recognizers,T=0;T<d.length;T++)if(d[T].options.event==u)return d[T];return null},add:function(u){if(b(u,"add",this))return this;var d=this.get(u.options.event);return d&&this.remove(d),this.recognizers.push(u),u.manager=this,this.touchAction.update(),u},remove:function(u){if(b(u,"remove",this))return this;if(u=this.get(u),u){var d=this.recognizers,T=B(d,u);T!==-1&&(d.splice(T,1),this.touchAction.update())}return this},on:function(u,d){if(u!==i&&d!==i){var T=this.handlers;return y(L(u),function(k){T[k]=T[k]||[],T[k].push(d)}),this}},off:function(u,d){if(u!==i){var T=this.handlers;return y(L(u),function(k){d?T[k]&&T[k].splice(B(T[k],d),1):delete T[k]}),this}},emit:function(u,d){this.options.domEvents&&Nc(u,d);var T=this.handlers[u]&&this.handlers[u].slice();if(!(!T||!T.length)){d.type=u,d.preventDefault=function(){d.srcEvent.preventDefault()};for(var k=0;k<T.length;)T[k](d),k++}},destroy:function(){this.element&&Ki(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Ki(u,d){var T=u.element;if(T.style){var k;y(u.options.cssProps,function(M,z){k=X(T.style,z),d?(u.oldCssProps[k]=T.style[k],T.style[k]=M):T.style[k]=u.oldCssProps[k]||""}),d||(u.oldCssProps={})}}function Nc(u,d){var T=e.createEvent("Event");T.initEvent(u,!0,!0),T.gesture=d,d.target.dispatchEvent(T)}S(Lt,{INPUT_START:G,INPUT_MOVE:yt,INPUT_END:j,INPUT_CANCEL:Q,STATE_POSSIBLE:Ke,STATE_BEGAN:xt,STATE_CHANGED:ne,STATE_ENDED:Xt,STATE_RECOGNIZED:Ot,STATE_CANCELLED:_e,STATE_FAILED:Mt,DIRECTION_NONE:se,DIRECTION_LEFT:$t,DIRECTION_RIGHT:Ut,DIRECTION_UP:Bt,DIRECTION_DOWN:A,DIRECTION_HORIZONTAL:H,DIRECTION_VERTICAL:qt,DIRECTION_ALL:Oi,Manager:js,Input:_t,TouchAction:Ys,TouchInput:We,MouseInput:Ze,PointerEventInput:Vs,TouchMouseInput:Bs,SingleTouchInput:Yi,Recognizer:Rt,AttrRecognizer:Pt,Tap:es,Pan:ts,Swipe:qs,Pinch:Gs,Rotate:Us,Press:$s,on:x,off:I,each:y,merge:w,extend:P,assign:S,inherit:C,bindFn:_,prefixed:X});var Dc=typeof t<"u"?t:typeof self<"u"?self:{};Dc.Hammer=Lt,typeof i=="function"&&i.amd?i(function(){return Lt}):n.exports?n.exports=Lt:t[s]=Lt})(window,document,"Hammer")})(Fn);var co=Fn.exports;const lo=Mr(co);async function zn(n,t){return new Promise(e=>{const s=new ResizeObserver(i=>{const o=i[0].contentRect;t(o),e(()=>{s.unobserve(n)})});s.observe(n)})}function ho(n,t){return uo(n,t)}function uo(n,t){const e=n.eb,s=o=>{e.on("pointerMove",r),e.on("pointerUp",i),e.on("pointerCancel",i),t?.start?.(o)},i=o=>{e.off("pointerMove",r),e.off("pointerUp",i),e.off("pointerCancel",i),t?.end?.(o)},r=o=>{t?.move?.(o)};return e.on("pointerDown",s),()=>e.off("pointerDown",s)}function fo(n=document.documentElement){const t=new Te,e=new lo(n);let s=[];const i=ao(),r=i.mousePoint,o=A=>{t.emit("mouseDown",A)},a=A=>{t.emit("mouseUp",A)},c=A=>{r.isDown||i.setCurrentMousePoint(ue(A,n)),t.emit("mouseMove",A)},l=A=>{t.emit("mouseOver",A)},h=A=>{t.emit("mouseOut",A)},g=A=>{t.emit("mouseEnter",A)},b=A=>{t.emit("mouseLeave",A)},y=A=>{t.emit("mouseClick",A)},m=A=>{t.emit("mouseDoubleClick",A)},S=A=>{t.emit("mouseWheel",A)},P=A=>{t.emit("mouseContextMenu",A)},w=A=>{t.emit("touchStart",A)},C=A=>{t.emit("touchEnd",A)},_=A=>{t.emit("touchCancel",A)},p=A=>{const H=A.changedTouches[0];r.isDown||i.setCurrentMousePoint(ue(H,n)),t.emit("touchMove",A)},v=A=>{t.emit("pointerDown",A)},x=A=>{t.emit("pointerUp",A)},I=A=>{t.emit("pointerCancel",A)},O=A=>{t.emit("pointerMove",A)},R=A=>{t.emit("pan",A)},L=A=>{t.emit("panStart",A)},B=A=>{t.emit("panMove",A)},q=A=>{t.emit("panEnd",A)},D=A=>{t.emit("panCancel",A)},X=A=>{t.emit("panLeft",A)},W=A=>{t.emit("panRight",A)},ot=A=>{t.emit("panUp",A)},pt=A=>{t.emit("panDown",A)},wt=A=>{t.emit("pinch",A)},gt=A=>{t.emit("pinchin",A)},Ct=A=>{t.emit("pinchout",A)},St=A=>{t.emit("press",A)},it=A=>{t.emit("rotate",A)},N=A=>{t.emit("swipe",A)},E=A=>{t.emit("swipeLeft",A)},ht=A=>{t.emit("swipeRight",A)},tt=A=>{t.emit("swipeUp",A)},G=A=>{t.emit("swipeDown",A)},yt=A=>{t.emit("tap",A)},j=A=>{!A.target||n==A.target||n.contains(A.target)||t.emit("tapOutSide",A)},Q=A=>{t.emit("transitionstart",A)},se=A=>{t.emit("transitionend",A)},$t=A=>{t.emit("animationstart",A)},Ut=A=>{t.emit("animationend",A)};let Bt={...n.getBoundingClientRect(),width:n.offsetWidth,height:n.offsetHeight};return{el:n,get rect(){return Bt},mousePoint:r,eb:t,start:async function(){s.push(U(n,"mousedown",o)),s.push(U(n,"mouseup",a)),s.push(U(n,"mousemove",c)),s.push(U(n,"mouseover",l)),s.push(U(n,"mouseout",h)),s.push(U(n,"mouseenter",g)),s.push(U(n,"mouseleave",b)),s.push(U(n,"click",y)),s.push(U(n,"dblclick",m)),s.push(U(n,"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",S)),s.push(U(n,"contextmenu",P)),s.push(U(n,"touchstart",w)),s.push(U(n,"touchend",C)),s.push(U(n,"touchcancel",_)),s.push(U(n,"touchmove",p)),s.push(U(n,"pointerdown",v)),s.push(U(n,"pointerup",x)),s.push(U(n,"pointercancel",I)),s.push(U(n,"pointermove",O)),e.on("pan",R),e.on("panstart",L),e.on("panmove",B),e.on("panend",q),e.on("pancancel",D),e.on("panleft",X),e.on("panright",W),e.on("panup",ot),e.on("pandown",pt),e.on("pinch",wt),e.on("pinchin",gt),e.on("pinchout",Ct),e.on("press",St),e.on("rotate",it),e.on("swipe",N),e.on("swipeleft",E),e.on("swiperight",ht),e.on("swipeup",tt),e.on("swipedown",G),e.on("tap",yt),s.push(U(document,"pointerdown",j)),s.push(U(n,"transitionstart",Q)),s.push(U(n,"transitionend",se)),s.push(U(n,"animationstart",$t)),s.push(U(n,"animationend",Ut));const A=await zn(n,H=>{Bt=H,t.emit("resize",H)});s.push(A),s.push(ho(this,{start:H=>{i.setStartMousePoint(ue(H,n),!0)},move:H=>{i.setCurrentMousePoint(ue(H,n))},end:H=>{i.setCurrentMousePoint(ue(H,n),!1)}}))},end:()=>{t.removeAllListeners(),s.forEach(A=>A()),s=[],e.off("pan",R),e.off("panstart",L),e.off("panmove",B),e.off("panend",q),e.off("pancancel",D),e.off("panleft",X),e.off("panright",W),e.off("panup",ot),e.off("pandown",pt),e.off("pinch",wt),e.off("pinchin",gt),e.off("pinchout",Ct),e.off("press",St),e.off("rotate",it),e.off("swipe",N),e.off("swipeleft",E),e.off("swiperight",ht),e.off("swipeup",tt),e.off("swipedown",G),e.off("tap",yt)}}}function mo(n="(prefers-color-scheme: dark)"){const t=window.matchMedia(n),e=nn(t.matches);return U(t,"change",s=>{e.value=s.matches}),e}const vs=zr("__yz_theme__");if(!vs.value){const n=mo("(prefers-color-scheme: dark)");vs.value=n.value?"dark":"light"}rs(()=>{switch(vs.value){case"dark":document.documentElement.classList.add("dark"),Oe(document.documentElement,"data-theme","dark");break;default:document.documentElement.classList.remove("dark"),Oe(document.documentElement,"data-theme","light");break}});function Ts(n,t=""){return getComputedStyle(document.documentElement).getPropertyValue(n)||t}function po(n){document.getElementsByTagName("title")[0].innerText=n,document.title=n}let On=!1;function go(){On||(On=!0,no(`
|
|
16
|
+
`;return function(){var M=new Error("get-stack-trace"),z=M&&M.stack?M.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",V=t.console&&(t.console.warn||t.console.log);return V&&V.call(t.console,k,z),u.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(d){if(d===i||d===null)throw new TypeError("Cannot convert undefined or null to object");for(var T=Object(d),k=1;k<arguments.length;k++){var M=arguments[k];if(M!==i&&M!==null)for(var z in M)M.hasOwnProperty(z)&&(T[z]=M[z])}return T}:S=Object.assign;var P=m(function(d,T,k){for(var M=Object.keys(T),z=0;z<M.length;)(!k||k&&d[M[z]]===i)&&(d[M[z]]=T[M[z]]),z++;return d},"extend","Use `assign`."),w=m(function(d,T){return P(d,T,!0)},"merge","Use `assign`.");function C(u,d,T){var k=d.prototype,M;M=u.prototype=Object.create(k),M.constructor=u,M._super=k,T&&S(M,T)}function _(u,d){return function(){return u.apply(d,arguments)}}function p(u,d){return typeof u==a?u.apply(d&&d[0]||i,d):u}function v(u,d){return u===i?d:u}function x(u,d,T){y(L(d),function(k){u.addEventListener(k,T,!1)})}function I(u,d,T){y(L(d),function(k){u.removeEventListener(k,T,!1)})}function O(u,d){for(;u;){if(u==d)return!0;u=u.parentNode}return!1}function R(u,d){return u.indexOf(d)>-1}function L(u){return u.trim().split(/\s+/g)}function B(u,d,T){if(u.indexOf&&!T)return u.indexOf(d);for(var k=0;k<u.length;){if(T&&u[k][T]==d||!T&&u[k]===d)return k;k++}return-1}function q(u){return Array.prototype.slice.call(u,0)}function D(u,d,T){for(var k=[],M=[],z=0;z<u.length;){var V=d?u[z][d]:u[z];B(M,V)<0&&k.push(u[z]),M[z]=V,z++}return T&&(d?k=k.sort(function(et,rt){return et[d]>rt[d]}):k=k.sort()),k}function X(u,d){for(var T,k,M=d[0].toUpperCase()+d.slice(1),z=0;z<r.length;){if(T=r[z],k=T?T+M:d,k in u)return k;z++}return i}var W=1;function ot(){return W++}function pt(u){var d=u.ownerDocument||u;return d.defaultView||d.parentWindow||t}var wt=/mobile|tablet|ip(ad|hone|od)|android/i,gt="ontouchstart"in t,Ct=X(t,"PointerEvent")!==i,St=gt&&wt.test(navigator.userAgent),it="touch",N="pen",E="mouse",ht="kinect",tt=25,G=1,yt=2,j=4,Q=8,se=1,$t=2,Ut=4,Bt=8,A=16,H=$t|Ut,qt=Bt|A,Oi=H|qt,Ri=["x","y"],qe=["clientX","clientY"];function _t(u,d){var T=this;this.manager=u,this.callback=d,this.element=u.element,this.target=u.options.inputTarget,this.domHandler=function(k){p(u.options.enable,[u])&&T.handler(k)},this.init()}_t.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(pt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(pt(this.element),this.evWin,this.domHandler)}};function fc(u){var d,T=u.options.inputClass;return T?d=T:Ct?d=Vs:St?d=Ze:gt?d=Bs:d=He,new d(u,mc)}function mc(u,d,T){var k=T.pointers.length,M=T.changedPointers.length,z=d&G&&k-M===0,V=d&(j|Q)&&k-M===0;T.isFirst=!!z,T.isFinal=!!V,z&&(u.session={}),T.eventType=d,dc(u,T),u.emit("hammer.input",T),u.recognize(T),u.session.prevInput=T}function dc(u,d){var T=u.session,k=d.pointers,M=k.length;T.firstInput||(T.firstInput=Li(d)),M>1&&!T.firstMultiple?T.firstMultiple=Li(d):M===1&&(T.firstMultiple=!1);var z=T.firstInput,V=T.firstMultiple,K=V?V.center:z.center,et=d.center=Ni(k);d.timeStamp=h(),d.deltaTime=d.timeStamp-z.timeStamp,d.angle=Ds(K,et),d.distance=je(K,et),pc(T,d),d.offsetDirection=Vi(d.deltaX,d.deltaY);var rt=Di(d.deltaTime,d.deltaX,d.deltaY);d.overallVelocityX=rt.x,d.overallVelocityY=rt.y,d.overallVelocity=l(rt.x)>l(rt.y)?rt.x:rt.y,d.scale=V?_c(V.pointers,k):1,d.rotation=V?yc(V.pointers,k):0,d.maxPointers=T.prevInput?d.pointers.length>T.prevInput.maxPointers?d.pointers.length:T.prevInput.maxPointers:d.pointers.length,gc(T,d);var It=u.element;O(d.srcEvent.target,It)&&(It=d.srcEvent.target),d.target=It}function pc(u,d){var T=d.center,k=u.offsetDelta||{},M=u.prevDelta||{},z=u.prevInput||{};(d.eventType===G||z.eventType===j)&&(M=u.prevDelta={x:z.deltaX||0,y:z.deltaY||0},k=u.offsetDelta={x:T.x,y:T.y}),d.deltaX=M.x+(T.x-k.x),d.deltaY=M.y+(T.y-k.y)}function gc(u,d){var T=u.lastInterval||d,k=d.timeStamp-T.timeStamp,M,z,V,K;if(d.eventType!=Q&&(k>tt||T.velocity===i)){var et=d.deltaX-T.deltaX,rt=d.deltaY-T.deltaY,It=Di(k,et,rt);z=It.x,V=It.y,M=l(It.x)>l(It.y)?It.x:It.y,K=Vi(et,rt),u.lastInterval=d}else M=T.velocity,z=T.velocityX,V=T.velocityY,K=T.direction;d.velocity=M,d.velocityX=z,d.velocityY=V,d.direction=K}function Li(u){for(var d=[],T=0;T<u.pointers.length;)d[T]={clientX:c(u.pointers[T].clientX),clientY:c(u.pointers[T].clientY)},T++;return{timeStamp:h(),pointers:d,center:Ni(d),deltaX:u.deltaX,deltaY:u.deltaY}}function Ni(u){var d=u.length;if(d===1)return{x:c(u[0].clientX),y:c(u[0].clientY)};for(var T=0,k=0,M=0;M<d;)T+=u[M].clientX,k+=u[M].clientY,M++;return{x:c(T/d),y:c(k/d)}}function Di(u,d,T){return{x:d/u||0,y:T/u||0}}function Vi(u,d){return u===d?se:l(u)>=l(d)?u<0?$t:Ut:d<0?Bt:A}function je(u,d,T){T||(T=Ri);var k=d[T[0]]-u[T[0]],M=d[T[1]]-u[T[1]];return Math.sqrt(k*k+M*M)}function Ds(u,d,T){T||(T=Ri);var k=d[T[0]]-u[T[0]],M=d[T[1]]-u[T[1]];return Math.atan2(M,k)*180/Math.PI}function yc(u,d){return Ds(d[1],d[0],qe)+Ds(u[1],u[0],qe)}function _c(u,d){return je(d[0],d[1],qe)/je(u[0],u[1],qe)}var xc={mousedown:G,mousemove:yt,mouseup:j},bc="mousedown",vc="mousemove mouseup";function He(){this.evEl=bc,this.evWin=vc,this.pressed=!1,_t.apply(this,arguments)}C(He,_t,{handler:function(d){var T=xc[d.type];T&G&&d.button===0&&(this.pressed=!0),T&yt&&d.which!==1&&(T=j),this.pressed&&(T&j&&(this.pressed=!1),this.callback(this.manager,T,{pointers:[d],changedPointers:[d],pointerType:E,srcEvent:d}))}});var Tc={pointerdown:G,pointermove:yt,pointerup:j,pointercancel:Q,pointerout:Q},wc={2:it,3:N,4:E,5:ht},Bi="pointerdown",Xi="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Bi="MSPointerDown",Xi="MSPointerMove MSPointerUp MSPointerCancel");function Vs(){this.evEl=Bi,this.evWin=Xi,_t.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Vs,_t,{handler:function(d){var T=this.store,k=!1,M=d.type.toLowerCase().replace("ms",""),z=Tc[M],V=wc[d.pointerType]||d.pointerType,K=V==it,et=B(T,d.pointerId,"pointerId");z&G&&(d.button===0||K)?et<0&&(T.push(d),et=T.length-1):z&(j|Q)&&(k=!0),!(et<0)&&(T[et]=d,this.callback(this.manager,z,{pointers:T,changedPointers:[d],pointerType:V,srcEvent:d}),k&&T.splice(et,1))}});var Cc={touchstart:G,touchmove:yt,touchend:j,touchcancel:Q},Sc="touchstart",Pc="touchstart touchmove touchend touchcancel";function Yi(){this.evTarget=Sc,this.evWin=Pc,this.started=!1,_t.apply(this,arguments)}C(Yi,_t,{handler:function(d){var T=Cc[d.type];if(T===G&&(this.started=!0),!!this.started){var k=kc.call(this,d,T);T&(j|Q)&&k[0].length-k[1].length===0&&(this.started=!1),this.callback(this.manager,T,{pointers:k[0],changedPointers:k[1],pointerType:it,srcEvent:d})}}});function kc(u,d){var T=q(u.touches),k=q(u.changedTouches);return d&(j|Q)&&(T=D(T.concat(k),"identifier",!0)),[T,k]}var Ec={touchstart:G,touchmove:yt,touchend:j,touchcancel:Q},Ac="touchstart touchmove touchend touchcancel";function Ze(){this.evTarget=Ac,this.targetIds={},_t.apply(this,arguments)}C(Ze,_t,{handler:function(d){var T=Ec[d.type],k=Mc.call(this,d,T);k&&this.callback(this.manager,T,{pointers:k[0],changedPointers:k[1],pointerType:it,srcEvent:d})}});function Mc(u,d){var T=q(u.touches),k=this.targetIds;if(d&(G|yt)&&T.length===1)return k[T[0].identifier]=!0,[T,T];var M,z,V=q(u.changedTouches),K=[],et=this.target;if(z=T.filter(function(rt){return O(rt.target,et)}),d===G)for(M=0;M<z.length;)k[z[M].identifier]=!0,M++;for(M=0;M<V.length;)k[V[M].identifier]&&K.push(V[M]),d&(j|Q)&&delete k[V[M].identifier],M++;if(K.length)return[D(z.concat(K),"identifier",!0),K]}var Ic=2500,Gi=25;function Bs(){_t.apply(this,arguments);var u=_(this.handler,this);this.touch=new Ze(this.manager,u),this.mouse=new He(this.manager,u),this.primaryTouch=null,this.lastTouches=[]}C(Bs,_t,{handler:function(d,T,k){var M=k.pointerType==it,z=k.pointerType==E;if(!(z&&k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents)){if(M)Fc.call(this,T,k);else if(z&&zc.call(this,k))return;this.callback(d,T,k)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Fc(u,d){u&G?(this.primaryTouch=d.changedPointers[0].identifier,$i.call(this,d)):u&(j|Q)&&$i.call(this,d)}function $i(u){var d=u.changedPointers[0];if(d.identifier===this.primaryTouch){var T={x:d.clientX,y:d.clientY};this.lastTouches.push(T);var k=this.lastTouches,M=function(){var z=k.indexOf(T);z>-1&&k.splice(z,1)};setTimeout(M,Ic)}}function zc(u){for(var d=u.srcEvent.clientX,T=u.srcEvent.clientY,k=0;k<this.lastTouches.length;k++){var M=this.lastTouches[k],z=Math.abs(d-M.x),V=Math.abs(T-M.y);if(z<=Gi&&V<=Gi)return!0}return!1}var Ui=X(o.style,"touchAction"),qi=Ui!==i,ji="compute",Hi="auto",Xs="manipulation",jt="none",ge="pan-x",ye="pan-y",We=Rc();function Ys(u,d){this.manager=u,this.set(d)}Ys.prototype={set:function(u){u==ji&&(u=this.compute()),qi&&this.manager.element.style&&We[u]&&(this.manager.element.style[Ui]=u),this.actions=u.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var u=[];return y(this.manager.recognizers,function(d){p(d.options.enable,[d])&&(u=u.concat(d.getTouchAction()))}),Oc(u.join(" "))},preventDefaults:function(u){var d=u.srcEvent,T=u.offsetDirection;if(this.manager.session.prevented){d.preventDefault();return}var k=this.actions,M=R(k,jt)&&!We[jt],z=R(k,ye)&&!We[ye],V=R(k,ge)&&!We[ge];if(M){var K=u.pointers.length===1,et=u.distance<2,rt=u.deltaTime<250;if(K&&et&&rt)return}if(!(V&&z)&&(M||z&&T&H||V&&T&qt))return this.preventSrc(d)},preventSrc:function(u){this.manager.session.prevented=!0,u.preventDefault()}};function Oc(u){if(R(u,jt))return jt;var d=R(u,ge),T=R(u,ye);return d&&T?jt:d||T?d?ge:ye:R(u,Xs)?Xs:Hi}function Rc(){if(!qi)return!1;var u={},d=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(T){u[T]=d?t.CSS.supports("touch-action",T):!0}),u}var Qe=1,xt=2,ne=4,Xt=8,Ot=Xt,_e=16,Mt=32;function Rt(u){this.options=S({},this.defaults,u||{}),this.id=ot(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=Qe,this.simultaneous={},this.requireFail=[]}Rt.prototype={defaults:{},set:function(u){return S(this.options,u),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(u){if(b(u,"recognizeWith",this))return this;var d=this.simultaneous;return u=Ke(u,this),d[u.id]||(d[u.id]=u,u.recognizeWith(this)),this},dropRecognizeWith:function(u){return b(u,"dropRecognizeWith",this)?this:(u=Ke(u,this),delete this.simultaneous[u.id],this)},requireFailure:function(u){if(b(u,"requireFailure",this))return this;var d=this.requireFail;return u=Ke(u,this),B(d,u)===-1&&(d.push(u),u.requireFailure(this)),this},dropRequireFailure:function(u){if(b(u,"dropRequireFailure",this))return this;u=Ke(u,this);var d=B(this.requireFail,u);return d>-1&&this.requireFail.splice(d,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(u){return!!this.simultaneous[u.id]},emit:function(u){var d=this,T=this.state;function k(M){d.manager.emit(M,u)}T<Xt&&k(d.options.event+Zi(T)),k(d.options.event),u.additionalEvent&&k(u.additionalEvent),T>=Xt&&k(d.options.event+Zi(T))},tryEmit:function(u){if(this.canEmit())return this.emit(u);this.state=Mt},canEmit:function(){for(var u=0;u<this.requireFail.length;){if(!(this.requireFail[u].state&(Mt|Qe)))return!1;u++}return!0},recognize:function(u){var d=S({},u);if(!p(this.options.enable,[this,d])){this.reset(),this.state=Mt;return}this.state&(Ot|_e|Mt)&&(this.state=Qe),this.state=this.process(d),this.state&(xt|ne|Xt|_e)&&this.tryEmit(d)},process:function(u){},getTouchAction:function(){},reset:function(){}};function Zi(u){return u&_e?"cancel":u&Xt?"end":u&ne?"move":u&xt?"start":""}function Wi(u){return u==A?"down":u==Bt?"up":u==$t?"left":u==Ut?"right":""}function Ke(u,d){var T=d.manager;return T?T.get(u):u}function Pt(){Rt.apply(this,arguments)}C(Pt,Rt,{defaults:{pointers:1},attrTest:function(u){var d=this.options.pointers;return d===0||u.pointers.length===d},process:function(u){var d=this.state,T=u.eventType,k=d&(xt|ne),M=this.attrTest(u);return k&&(T&Q||!M)?d|_e:k||M?T&j?d|Xt:d&xt?d|ne:xt:Mt}});function Je(){Pt.apply(this,arguments),this.pX=null,this.pY=null}C(Je,Pt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Oi},getTouchAction:function(){var u=this.options.direction,d=[];return u&H&&d.push(ye),u&qt&&d.push(ge),d},directionTest:function(u){var d=this.options,T=!0,k=u.distance,M=u.direction,z=u.deltaX,V=u.deltaY;return M&d.direction||(d.direction&H?(M=z===0?se:z<0?$t:Ut,T=z!=this.pX,k=Math.abs(u.deltaX)):(M=V===0?se:V<0?Bt:A,T=V!=this.pY,k=Math.abs(u.deltaY))),u.direction=M,T&&k>d.threshold&&M&d.direction},attrTest:function(u){return Pt.prototype.attrTest.call(this,u)&&(this.state&xt||!(this.state&xt)&&this.directionTest(u))},emit:function(u){this.pX=u.deltaX,this.pY=u.deltaY;var d=Wi(u.direction);d&&(u.additionalEvent=this.options.event+d),this._super.emit.call(this,u)}});function Gs(){Pt.apply(this,arguments)}C(Gs,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jt]},attrTest:function(u){return this._super.attrTest.call(this,u)&&(Math.abs(u.scale-1)>this.options.threshold||this.state&xt)},emit:function(u){if(u.scale!==1){var d=u.scale<1?"in":"out";u.additionalEvent=this.options.event+d}this._super.emit.call(this,u)}});function $s(){Rt.apply(this,arguments),this._timer=null,this._input=null}C($s,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Hi]},process:function(u){var d=this.options,T=u.pointers.length===d.pointers,k=u.distance<d.threshold,M=u.deltaTime>d.time;if(this._input=u,!k||!T||u.eventType&(j|Q)&&!M)this.reset();else if(u.eventType&G)this.reset(),this._timer=g(function(){this.state=Ot,this.tryEmit()},d.time,this);else if(u.eventType&j)return Ot;return Mt},reset:function(){clearTimeout(this._timer)},emit:function(u){this.state===Ot&&(u&&u.eventType&j?this.manager.emit(this.options.event+"up",u):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}});function Us(){Pt.apply(this,arguments)}C(Us,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jt]},attrTest:function(u){return this._super.attrTest.call(this,u)&&(Math.abs(u.rotation)>this.options.threshold||this.state&xt)}});function qs(){Pt.apply(this,arguments)}C(qs,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:H|qt,pointers:1},getTouchAction:function(){return Je.prototype.getTouchAction.call(this)},attrTest:function(u){var d=this.options.direction,T;return d&(H|qt)?T=u.overallVelocity:d&H?T=u.overallVelocityX:d&qt&&(T=u.overallVelocityY),this._super.attrTest.call(this,u)&&d&u.offsetDirection&&u.distance>this.options.threshold&&u.maxPointers==this.options.pointers&&l(T)>this.options.velocity&&u.eventType&j},emit:function(u){var d=Wi(u.offsetDirection);d&&this.manager.emit(this.options.event+d,u),this.manager.emit(this.options.event,u)}});function ts(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(ts,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Xs]},process:function(u){var d=this.options,T=u.pointers.length===d.pointers,k=u.distance<d.threshold,M=u.deltaTime<d.time;if(this.reset(),u.eventType&G&&this.count===0)return this.failTimeout();if(k&&M&&T){if(u.eventType!=j)return this.failTimeout();var z=this.pTime?u.timeStamp-this.pTime<d.interval:!0,V=!this.pCenter||je(this.pCenter,u.center)<d.posThreshold;this.pTime=u.timeStamp,this.pCenter=u.center,!V||!z?this.count=1:this.count+=1,this._input=u;var K=this.count%d.taps;if(K===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=Ot,this.tryEmit()},d.interval,this),xt):Ot}return Mt},failTimeout:function(){return this._timer=g(function(){this.state=Mt},this.options.interval,this),Mt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ot&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Lt(u,d){return d=d||{},d.recognizers=v(d.recognizers,Lt.defaults.preset),new js(u,d)}Lt.VERSION="2.0.7",Lt.defaults={domEvents:!1,touchAction:ji,enable:!0,inputTarget:null,inputClass:null,preset:[[Us,{enable:!1}],[Gs,{enable:!1},["rotate"]],[qs,{direction:H}],[Je,{direction:H},["swipe"]],[ts],[ts,{event:"doubletap",taps:2},["tap"]],[$s]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Lc=1,Qi=2;function js(u,d){this.options=S({},Lt.defaults,d||{}),this.options.inputTarget=this.options.inputTarget||u,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=u,this.input=fc(this),this.touchAction=new Ys(this,this.options.touchAction),Ki(this,!0),y(this.options.recognizers,function(T){var k=this.add(new T[0](T[1]));T[2]&&k.recognizeWith(T[2]),T[3]&&k.requireFailure(T[3])},this)}js.prototype={set:function(u){return S(this.options,u),u.touchAction&&this.touchAction.update(),u.inputTarget&&(this.input.destroy(),this.input.target=u.inputTarget,this.input.init()),this},stop:function(u){this.session.stopped=u?Qi:Lc},recognize:function(u){var d=this.session;if(!d.stopped){this.touchAction.preventDefaults(u);var T,k=this.recognizers,M=d.curRecognizer;(!M||M&&M.state&Ot)&&(M=d.curRecognizer=null);for(var z=0;z<k.length;)T=k[z],d.stopped!==Qi&&(!M||T==M||T.canRecognizeWith(M))?T.recognize(u):T.reset(),!M&&T.state&(xt|ne|Xt)&&(M=d.curRecognizer=T),z++}},get:function(u){if(u instanceof Rt)return u;for(var d=this.recognizers,T=0;T<d.length;T++)if(d[T].options.event==u)return d[T];return null},add:function(u){if(b(u,"add",this))return this;var d=this.get(u.options.event);return d&&this.remove(d),this.recognizers.push(u),u.manager=this,this.touchAction.update(),u},remove:function(u){if(b(u,"remove",this))return this;if(u=this.get(u),u){var d=this.recognizers,T=B(d,u);T!==-1&&(d.splice(T,1),this.touchAction.update())}return this},on:function(u,d){if(u!==i&&d!==i){var T=this.handlers;return y(L(u),function(k){T[k]=T[k]||[],T[k].push(d)}),this}},off:function(u,d){if(u!==i){var T=this.handlers;return y(L(u),function(k){d?T[k]&&T[k].splice(B(T[k],d),1):delete T[k]}),this}},emit:function(u,d){this.options.domEvents&&Nc(u,d);var T=this.handlers[u]&&this.handlers[u].slice();if(!(!T||!T.length)){d.type=u,d.preventDefault=function(){d.srcEvent.preventDefault()};for(var k=0;k<T.length;)T[k](d),k++}},destroy:function(){this.element&&Ki(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Ki(u,d){var T=u.element;if(T.style){var k;y(u.options.cssProps,function(M,z){k=X(T.style,z),d?(u.oldCssProps[k]=T.style[k],T.style[k]=M):T.style[k]=u.oldCssProps[k]||""}),d||(u.oldCssProps={})}}function Nc(u,d){var T=e.createEvent("Event");T.initEvent(u,!0,!0),T.gesture=d,d.target.dispatchEvent(T)}S(Lt,{INPUT_START:G,INPUT_MOVE:yt,INPUT_END:j,INPUT_CANCEL:Q,STATE_POSSIBLE:Qe,STATE_BEGAN:xt,STATE_CHANGED:ne,STATE_ENDED:Xt,STATE_RECOGNIZED:Ot,STATE_CANCELLED:_e,STATE_FAILED:Mt,DIRECTION_NONE:se,DIRECTION_LEFT:$t,DIRECTION_RIGHT:Ut,DIRECTION_UP:Bt,DIRECTION_DOWN:A,DIRECTION_HORIZONTAL:H,DIRECTION_VERTICAL:qt,DIRECTION_ALL:Oi,Manager:js,Input:_t,TouchAction:Ys,TouchInput:Ze,MouseInput:He,PointerEventInput:Vs,TouchMouseInput:Bs,SingleTouchInput:Yi,Recognizer:Rt,AttrRecognizer:Pt,Tap:ts,Pan:Je,Swipe:qs,Pinch:Gs,Rotate:Us,Press:$s,on:x,off:I,each:y,merge:w,extend:P,assign:S,inherit:C,bindFn:_,prefixed:X});var Dc=typeof t<"u"?t:typeof self<"u"?self:{};Dc.Hammer=Lt,typeof i=="function"&&i.amd?i(function(){return Lt}):n.exports?n.exports=Lt:t[s]=Lt})(window,document,"Hammer")})(Fn);var co=Fn.exports;const lo=Mr(co);async function zn(n,t){return new Promise(e=>{const s=new ResizeObserver(i=>{const o=i[0].contentRect;t(o),e(()=>{s.unobserve(n)})});s.observe(n)})}function ho(n,t){return uo(n,t)}function uo(n,t){const e=n.eb,s=o=>{e.on("pointerMove",r),e.on("pointerUp",i),e.on("pointerCancel",i),t?.start?.(o)},i=o=>{e.off("pointerMove",r),e.off("pointerUp",i),e.off("pointerCancel",i),t?.end?.(o)},r=o=>{t?.move?.(o)};return e.on("pointerDown",s),()=>e.off("pointerDown",s)}function fo(n=document.documentElement){const t=new os,e=new lo(n);let s=[];const i=ao(),r=i.mousePoint,o=A=>{t.emit("mouseDown",A)},a=A=>{t.emit("mouseUp",A)},c=A=>{r.isDown||i.setCurrentMousePoint(ue(A,n)),t.emit("mouseMove",A)},l=A=>{t.emit("mouseOver",A)},h=A=>{t.emit("mouseOut",A)},g=A=>{t.emit("mouseEnter",A)},b=A=>{t.emit("mouseLeave",A)},y=A=>{t.emit("mouseClick",A)},m=A=>{t.emit("mouseDoubleClick",A)},S=A=>{t.emit("mouseWheel",A)},P=A=>{t.emit("mouseContextMenu",A)},w=A=>{t.emit("touchStart",A)},C=A=>{t.emit("touchEnd",A)},_=A=>{t.emit("touchCancel",A)},p=A=>{const H=A.changedTouches[0];r.isDown||i.setCurrentMousePoint(ue(H,n)),t.emit("touchMove",A)},v=A=>{t.emit("pointerDown",A)},x=A=>{t.emit("pointerUp",A)},I=A=>{t.emit("pointerCancel",A)},O=A=>{t.emit("pointerMove",A)},R=A=>{t.emit("pan",A)},L=A=>{t.emit("panStart",A)},B=A=>{t.emit("panMove",A)},q=A=>{t.emit("panEnd",A)},D=A=>{t.emit("panCancel",A)},X=A=>{t.emit("panLeft",A)},W=A=>{t.emit("panRight",A)},ot=A=>{t.emit("panUp",A)},pt=A=>{t.emit("panDown",A)},wt=A=>{t.emit("pinch",A)},gt=A=>{t.emit("pinchin",A)},Ct=A=>{t.emit("pinchout",A)},St=A=>{t.emit("press",A)},it=A=>{t.emit("rotate",A)},N=A=>{t.emit("swipe",A)},E=A=>{t.emit("swipeLeft",A)},ht=A=>{t.emit("swipeRight",A)},tt=A=>{t.emit("swipeUp",A)},G=A=>{t.emit("swipeDown",A)},yt=A=>{t.emit("tap",A)},j=A=>{!A.target||n==A.target||n.contains(A.target)||t.emit("tapOutSide",A)},Q=A=>{t.emit("transitionstart",A)},se=A=>{t.emit("transitionend",A)},$t=A=>{t.emit("animationstart",A)},Ut=A=>{t.emit("animationend",A)};let Bt={...n.getBoundingClientRect(),width:n.offsetWidth,height:n.offsetHeight};return{el:n,get rect(){return Bt},mousePoint:r,eb:t,start:async function(){s.push(U(n,"mousedown",o)),s.push(U(n,"mouseup",a)),s.push(U(n,"mousemove",c)),s.push(U(n,"mouseover",l)),s.push(U(n,"mouseout",h)),s.push(U(n,"mouseenter",g)),s.push(U(n,"mouseleave",b)),s.push(U(n,"click",y)),s.push(U(n,"dblclick",m)),s.push(U(n,"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",S)),s.push(U(n,"contextmenu",P)),s.push(U(n,"touchstart",w)),s.push(U(n,"touchend",C)),s.push(U(n,"touchcancel",_)),s.push(U(n,"touchmove",p)),s.push(U(n,"pointerdown",v)),s.push(U(n,"pointerup",x)),s.push(U(n,"pointercancel",I)),s.push(U(n,"pointermove",O)),e.on("pan",R),e.on("panstart",L),e.on("panmove",B),e.on("panend",q),e.on("pancancel",D),e.on("panleft",X),e.on("panright",W),e.on("panup",ot),e.on("pandown",pt),e.on("pinch",wt),e.on("pinchin",gt),e.on("pinchout",Ct),e.on("press",St),e.on("rotate",it),e.on("swipe",N),e.on("swipeleft",E),e.on("swiperight",ht),e.on("swipeup",tt),e.on("swipedown",G),e.on("tap",yt),s.push(U(document,"pointerdown",j)),s.push(U(n,"transitionstart",Q)),s.push(U(n,"transitionend",se)),s.push(U(n,"animationstart",$t)),s.push(U(n,"animationend",Ut));const A=await zn(n,H=>{Bt=H,t.emit("resize",H)});s.push(A),s.push(ho(this,{start:H=>{i.setStartMousePoint(ue(H,n),!0)},move:H=>{i.setCurrentMousePoint(ue(H,n))},end:H=>{i.setCurrentMousePoint(ue(H,n),!1)}}))},end:()=>{t.removeAllListeners(),s.forEach(A=>A()),s=[],e.off("pan",R),e.off("panstart",L),e.off("panmove",B),e.off("panend",q),e.off("pancancel",D),e.off("panleft",X),e.off("panright",W),e.off("panup",ot),e.off("pandown",pt),e.off("pinch",wt),e.off("pinchin",gt),e.off("pinchout",Ct),e.off("press",St),e.off("rotate",it),e.off("swipe",N),e.off("swipeleft",E),e.off("swiperight",ht),e.off("swipeup",tt),e.off("swipedown",G),e.off("tap",yt)}}}function mo(n="(prefers-color-scheme: dark)"){const t=window.matchMedia(n),e=nn(t.matches);return U(t,"change",s=>{e.value=s.matches}),e}const vs=zr("__yz_theme__");if(!vs.value){const n=mo("(prefers-color-scheme: dark)");vs.value=n.value?"dark":"light"}is(()=>{switch(vs.value){case"dark":document.documentElement.classList.add("dark"),ze(document.documentElement,"data-theme","dark");break;default:document.documentElement.classList.remove("dark"),ze(document.documentElement,"data-theme","light");break}});function Ts(n,t=""){return getComputedStyle(document.documentElement).getPropertyValue(n)||t}function po(n){document.getElementsByTagName("title")[0].innerText=n,document.title=n}let On=!1;function go(){On||(On=!0,no(`
|
|
17
17
|
:root {
|
|
18
18
|
--sat:env(safe-area-inset-top, 0px);
|
|
19
19
|
--sar:env(safe-area-inset-right, 0px);
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
--sab:env(safe-area-inset-bottom, 0px);
|
|
27
27
|
--sal:env(safe-area-inset-left, 0px);
|
|
28
28
|
}
|
|
29
|
-
`))}go();const dt=new Te;let Re,Le,Ne,De;zn(document.documentElement,()=>{setTimeout(()=>{const n=getComputedStyle(document.documentElement),t=n.getPropertyValue("--sat");t!==Re&&dt.emit("top",t),Re=t;const e=n.getPropertyValue("--sar");e!==Le&&dt.emit("right",e),Le=e;const s=n.getPropertyValue("--sab");s!==Ne&&dt.emit("bottom",s),Ne=s;const i=n.getPropertyValue("--sal");i!==De&&dt.emit("left",i),De=i},0)});const yo={onTop:n=>(Re&&n(Re),dt.on("top",n),()=>{dt.off("top",n)}),onRight:n=>(Le&&n(Le),dt.on("right",n),()=>{dt.off("right",n)}),onBottom:n=>(Ne&&n(Ne),dt.on("bottom",n),()=>{dt.off("bottom",n)}),onLeft:n=>(De&&n(De),dt.on("left",n),()=>{dt.off("left",n)})};function Rn(n,t,e,s,i){const r=t/e;let o=0,a=0;switch(n){case"aspectFit":r>=1?(o=s,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>s&&(o=s,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=s,a=o/r);break;case"widthFix":o=s,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=s,a=i;break}return{width:o,height:a}}function _o(n){try{const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}catch{return new ImageData(n.width,n.height)}}const xo={1:705234,2:8108026,3:6346665,4:16630114,5:16607842,6:16158139,7:2542847,8:10640125,9:16735870,10:8978266,11:16580418,12:16754221,13:16725759,14:14436630,15:6844849,16:13744437,17:1817755,18:16744272,19:4964291,20:16750848,aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};class ct{static NAMES=xo;_color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),this.setAlpha(e)}get color(){return this._color}set color(t){const e=`Color: Unknown color(${t}) type(${typeof t})`;if(typeof t=="number")this.setHEX(t);else if(typeof t=="string"){let s;if(s=/^(\w+)\(([^)]*)\)/.exec(t)){const i=s[2];let r;switch(s[1]){case"rgb":case"rgba":(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?(this.r=parseInt(r[1],10),this.g=parseInt(r[2],10),this.b=parseInt(r[3],10),this.a=r[4]?parseFloat(r[4]):1):(r=/^\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?(this.r=Y(parseFloat(r[1]),0,100)*255/100,this.g=Y(parseFloat(r[2]),0,100)*255/100,this.b=Y(parseFloat(r[3]),0,100)*255/100,this.a=r[4]?parseFloat(r[4]):1):console.warn(e);break;case"hsl":case"hsla":(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,r[4]?parseFloat(r[4]):1):console.warn(e);break;case"hsv":case"hsva":case"hsb":case"hsba":(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?this.setHSV(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,r[4]?parseFloat(r[4]):1):console.warn(e);break;default:console.warn(e)}}else if(s=/#([A-Fa-f0-9]+)/.exec(t)){const i=s[1],r=i.length;r===3?this.setRGB(parseInt(i.charAt(0),16),parseInt(i.charAt(1),16),parseInt(i.charAt(2),16),1):r===6||r===8?this.setHEX(parseInt(i,16)):console.warn(e)}else if(t&&t.length>0)try{this.setColorName(t)}catch{console.warn(e)}else console.warn(e)}else t instanceof ct?this.setRGB(t.r,t.g,t.b,t.a):Object.prototype.hasOwnProperty.call(t,"r")&&Object.prototype.hasOwnProperty.call(t,"g")&&Object.prototype.hasOwnProperty.call(t,"b")?this.setRGB(t.r,t.g,t.b,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"l")?this.setHSL(t.h,t.s,t.l,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"v")?this.setHSV(t.h,t.s,t.v,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"b")?this.setHSV(t.h,t.s,t.b,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):console.warn(e)}setColor(t){return this.color=t,this}set(t){return this.setColor(t)}get r(){return this._color.r}set r(t){try{this._color.r=Y(Math.round(bt(t)),0,255)}catch{}}get g(){return this._color.g}set g(t){try{this._color.g=Y(Math.round(bt(t)),0,255)}catch{}}get b(){return this._color.b}set b(t){try{this._color.b=Y(Math.round(bt(t)),0,255)}catch{}}get a(){return this._color.a}set a(t){try{this._color.a=Y(bt(t),0,1)}catch{}}setAlpha(t){return this.a=t,this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const e=this.r,s=this.g,i=this.b,r=t.value;return this.r=r[0]*e+r[3]*s+r[6]*i,this.g=r[1]*e+r[4]*s+r[7]*i,this.b=r[2]*e+r[5]*s+r[8]*i,this}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this.a=t[e+3],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t[e+3]=this.a,t}toRGBString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${Ht(this.a,6)})`}toHexString(){return this.a===1?("000000"+this.hex.toString(16)).slice(-6):("00000000"+this.hex.toString(16)).slice(-8)}toString(){return this.a===1?"#"+this.toHexString():this.toRGBString()}toColorSpaceString(t=Jt){Gn.fromWorkingColorSpace(nt.copy(this),t);const e=nt.r,s=nt.g,i=nt.b;return t!==Jt?`color(${t} ${e.toFixed(3)} ${s.toFixed(3)} ${i.toFixed(3)})`:this.toRGBString()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b,yield this.a}clone(){return new ct(this.color)}copy(t){return this.setColor(t.color),this}copySRGBToLinear(t){return this.r=Qt(t.r),this.g=Qt(t.g),this.b=Qt(t.b),this}copyLinearToSRGB(t){return this.r=Kt(t.r),this.g=Kt(t.g),this.b=Kt(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}add(t){return this.r=this.r+t.r,this.g=this.g+t.g,this.b=this.b+t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r=this.r+t,this.g=this.g+t,this.b=this.b+t,this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}sub(t){return this.r=this.r-t.r,this.g=this.g-t.g,this.b=this.b-t.b,this}multiply(t){return this.r=this.r*t.r,this.g=this.g*t.g,this.b=this.b*t.b,this}multiplyScalar(t){return this.r=this.r*t,this.g=this.g*t,this.b=this.b*t,this}opposite(t=!0,e="#000000",s="#ffffff"){if(t)return this.setColor(this.r*.299+this.g*.587+this.b*.114>186?e:s);{const{r:i,g:r,b:o}=this.color;return this.r=255-i,this.g=255-r,this.b=255-o,this}}lighten(t){t=Y(t,0,1);const{r:e,g:s,b:i}=this.color;return this.r=e+(255-e)*t,this.g=s+(255-s)*t,this.b=i+(255-i)*t,this}darken(t){t=Y(t,0,1);const{r:e,g:s,b:i}=this.color;return this.r=e*(1-t),this.g=s*(1-t),this.b=i*(1-t),this}lerp(t,e){e=Y(e,0,1);const{r:s,g:i,b:r}=this.color;return this.r=s+(t.r-s)*e,this.g=i+(t.g-i)*e,this.b=r+(t.b-r)*e,this}lerpColors(t,e,s){return s=Y(s,0,1),this.r=t.r+(e.r-t.r)*s,this.g=t.g+(e.g-t.g)*s,this.b=t.b+(e.b-t.b)*s,this}static gradient(t,e,s){try{return nt.lerpColors(new ct(t),new ct(e),s).toString()}catch{return e}}static random(){return nt.setHEX(Math.random()*16777215).toString()}static nextIndex=0;static next(t=ct.nextIndex){ct.nextIndex=t;const e=Object.keys(ct.NAMES),s=e.length;return nt.setHEX(ct.NAMES[e[ct.nextIndex++%s]]).toString()}setColorName(t){const e=ct.NAMES[t.toLowerCase()];return e!==void 0?this.setHEX(e):t==="none"?this.a=0:(this.a=1,console.warn("Color.setColorName: Unknown color "+t)),this}static getColors(){return Object.values(ct.NAMES).map(t=>nt.setHEX(t).toString())}setRGB(t,e,s,i=1){return this.r=t,this.g=e,this.b=s,this.a=i,this}get rgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}setHEX(t){return t=Math.floor(t),t<16777216?(this.r=t>>16&255,this.g=t>>8&255,this.b=t&255,this.a=1):(this.r=t>>24&255,this.g=t>>16&255,this.b=t>>8&255,this.a=(t&255)/255),this}get hex(){let t=(this.r<<16)+(this.g<<8)+this.b;return this.a!==1&&(t=t<<8,t+=Math.round(this.a*255)),t}setHSL(t,e,s,i=1){const r=br(t,1),o=Y(e,0,1),a=Y(s,0,1);if(o===0)this.r=a*255,this.g=a*255,this.b=a*255;else{const c=a<=.5?a*(1+o):a+o-a*o,l=2*a-c;this.r=Cs(l,c,r+1/3)*255,this.g=Cs(l,c,r)*255,this.b=Cs(l,c,r-1/3)*255}return this.a=i,this}getHSL(t){const e=this.r,s=this.g,i=this.b,r=Math.max(e,s,i)/255,o=Math.min(e,s,i)/255;let a,c;const l=(o+r)/2;if(o===r)a=0,c=0;else{const h=r-o;switch(c=l<=.5?h/(r+o):h/(2-r-o),r){case e:a=(s-i)/h+(s<i?6:0);break;case s:a=(i-e)/h+2;break;case i:default:a=(e-s)/h+4;break}a/=6}return t&&t.setHSL(a,c,l,this.a),{h:a,s:c,l,a:this.a}}offsetHSL(t,e,s){const i=this.getHSL();return this.setHSL(i.h+t,i.s+e,i.l+s)}lerpHSL(t,e){const s=this.getHSL(),i=t.getHSL(),r=ns(s.h,i.h,e),o=ns(s.s,i.s,e),a=ns(s.l,i.l,e);return this.setHSL(r,o,a),this}setHSV(t,e,s,i=1){const r=Y(t,0,1)*360,o=Y(e,0,1),a=Y(s,0,1),c=Math.floor(r/60)%6,l=r/60-Math.floor(r/60),h=a*(1-o),g=a*(1-l*o),b=a*(1-(1-l)*o),y=[[a,b,h],[g,a,h],[h,a,b],[h,g,a],[b,h,a],[a,h,g]][c];return this.r=y[0]*255,this.g=y[1]*255,this.b=y[2]*255,this.a=i,this}setHSB(t,e,s,i=1){this.setHSV(t,e,s,i)}getHSV(t){const{r:e,g:s,b:i,a:r}=this.color,o=Math.max(e,s,i),a=Math.min(e,s,i),c=o-a;let l;e===o?l=(s-i)/c:s===o?l=2+(i-e)/c:l=4+(e-s)/c,l/=6,l<0&&(l+=1);const h=c==0?0:l,g=o===0?0:c/o,b=o/255;return t&&t.setHSV(h,g,b,r),{h,s:g,v:b,a:r}}getHSB(t){const{h:e,s,v:i,a:r}=this.getHSV(t);return{h:e,s,b:i,a:r}}}const nt=new ct;function Qt(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Kt(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}const bo="",Jt="srgb",Ln="srgb-linear",Nn="linear",ws="srgb",Dn=new le().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Vn=new le().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715),Bn=[.64,.33,.3,.6,.15,.06],Xn=[.2126,.7152,.0722],Yn=[.3127,.329],Gn={enabled:!0,workingColorSpace:Ln,spaces:{},convert:function(n,t,e){return this.enabled===!1||t===e||!t||!e||(this.spaces[t].transfer===ws&&(n.r=Qt(n.r),n.g=Qt(n.g),n.b=Qt(n.b)),this.spaces[t].primaries!==this.spaces[e].primaries&&(n.applyMatrix3(this.spaces[t].toXYZ),n.applyMatrix3(this.spaces[e].fromXYZ)),this.spaces[e].transfer===ws&&(n.r=Kt(n.r),n.g=Kt(n.g),n.b=Kt(n.b))),n},fromWorkingColorSpace:function(n,t){return this.convert(n,this.workingColorSpace,t)},toWorkingColorSpace:function(n,t){return this.convert(n,t,this.workingColorSpace)},getPrimaries:function(n){return this.spaces[n].primaries},getTransfer:function(n){return n===bo?Nn:this.spaces[n].transfer},getLuminanceCoefficients:function(n,t=this.workingColorSpace){return n.fromArray(this.spaces[t].luminanceCoefficients)},define:function(n){Object.assign(this.spaces,n)},_getMatrix:function(n,t,e){return n.copy(this.spaces[t].toXYZ).multiply(this.spaces[e].fromXYZ)},_getDrawingBufferColorSpace:function(n){return this.spaces[n].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(n=this.workingColorSpace){return this.spaces[n].workingColorSpaceConfig.unpackColorSpace}};Gn.define({[Ln]:{primaries:Bn,whitePoint:Yn,transfer:Nn,toXYZ:Dn,fromXYZ:Vn,luminanceCoefficients:Xn,workingColorSpaceConfig:{unpackColorSpace:Jt},outputColorSpaceConfig:{drawingBufferColorSpace:Jt}},[Jt]:{primaries:Bn,whitePoint:Yn,transfer:ws,toXYZ:Dn,fromXYZ:Vn,luminanceCoefficients:Xn,outputColorSpaceConfig:{drawingBufferColorSpace:Jt}}});function Cs(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*6*(2/3-e):n}function vo(n){return window.URL.createObjectURL(n)}const $n=new is;async function To(n,t=6e4){return new Promise((e,s)=>{const i=typeof n=="string"?n:vo(n),r=$n.get(i);if(r)return e(r);const o=document.createElement("img");o.onload=c=>{clearTimeout(a);const l=o.naturalWidth||o.width,h=o.naturalHeight||o.height,g={width:l,height:h,aspectRatio:l/h,element:o,imageData:_o(o)};$n.set(i,g),e(g),o.onerror=o.onload=null},o.onerror=c=>{clearTimeout(a),s(c)},o.src=i;const a=setTimeout(()=>{s("Timeout!")},t)})}function Un(n,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof n=="string"?e.href=n:e.href=window.URL.createObjectURL(n),e.click()}function qn(n,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(n.className)||!1}function jn(n){return{el:n,isRoot:()=>/(html|body)/i.test(n.tagName)||n===document.documentElement,isActive:()=>n===document.activeElement&&(n.type||n.href),getRemSize:function(){return parseFloat(getComputedStyle(document.documentElement).fontSize)},rem2px:function(t){return t*this.getRemSize()},getEmSize:function(){return n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):this.getRemSize()},nearestElement:()=>{let t=n;for(;t&&t.nodeType!==1&&t.parentElement;)t=t.parentElement;return t},parent:()=>n.parentElement,parents:function(t=n,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,s=t.length;e<s;e++)if(/(auto|scroll)/.test(bs(t[e],"overflow")+bs(t[e],"overflow-y")+bs(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>n.contains?n!=t&&n.contains(t):!!(n.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(n.parentElement?.children).filter(t=>t!==n),nextElementSibling:()=>n.nextElementSibling,previousElementSibling:()=>n.previousElementSibling,closest:t=>n.closest(t),shadowRoot:()=>n.shadowRoot,isInput:()=>n.tagName==="INPUT"||n instanceof HTMLInputElement,isSelect:()=>n.tagName==="SELECT"||n instanceof HTMLSelectElement,isTextArea:()=>n.tagName==="TEXTAREA"||n instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(n)&&n.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(n)&&n.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(n)&&n.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(n)&&n.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=n.options;for(let s=0,i=e.length;s<i;s++)e[s].selected=e[s].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(n.name);for(let s=0,i=e.length;s<i;s++){const r=e[s];r.checked=r.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(n.checked=t)},insert:(t,e="append")=>{typeof t=="string"?n[e](wo(t)):n[e](t)},html:function(t){if(typeof t=="string"){n.innerHTML=t;const e=Hn(n);e!=n&&(n=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{n.textContent=t},getInnerText:()=>{if(n instanceof SVGElement)return"";let t=n.innerText;if(!t){const e=n.querySelector("slot")?.assignedNodes()||[];let s=0;for(;!t&&s<=e.length-1;)"innerText"in e[s]&&(t=e[s].innerText),s++}return t},remove:()=>n.remove()}}function wo(n,t=!1){const e=document.createElement("template");return e.innerHTML=n,t&&e.content.childNodes.forEach(s=>{const i=Hn(s);i!=s&&e.content.replaceChild(i,s)}),e.content}function Hn(n){return n.tagName=="SCRIPT"&&(n=Zn(n)),n.querySelectorAll&&n.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Zn(t),t)}),n}function Zn(n){const t=n.ownerDocument.createElement("script");t.text=n.text;const e=n.attributes;for(let s=0,i=e.length;s<i;s++)t.setAttribute(e[s].name,e[s].value);return t}async function Co(n){if(navigator.clipboard)return await navigator.clipboard.writeText(n);{const t=document.createElement("textarea");return t.value=n,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function So(n,t={},e=[],s){return{tag:n,props:t,children:e,el:s}}function Ss(n){return So(n.tagName,En(n),Array.from(n.children).map(t=>Ss(t)),n)}function Ve(n,t=document.documentElement){if(n.el)return n.el;if(n.el=document.createElement(n.tag),n.props)for(const e in n.props){const s=n.props[e];e.startsWith("on")?n.el.addEventListener(e.slice(2).toLowerCase(),s):e==="style"?he(n.el,n.props[e]):Oe(n.el,e,s)}return n.children&&(typeof n.children=="string"?n.el.appendChild(document.createTextNode(n.children)):n.children.forEach(e=>{Ve(e,n.el)})),t.appendChild(n.el),n.el}function Wn(n,t){if(!n.el)return;if(n.tag!==t.tag){(n.el.parentElement||document.body).replaceChild(Ve(t),n.el);return}const e=t.el=n.el,s=n.props,i=t.props;for(const a in s)a in i||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),s[a]):e.removeAttribute(a));for(const a in i){const c=s[a],l=i[a];if(l!=c)if(a.startsWith("on")){const h=a.slice(2).toLowerCase();e.removeEventListener(h,c),e.addEventListener(h,l)}else if(a==="style"){for(const h in c)h in l||kn(e,h);he(e,l)}else Oe(e,a,l)}const r=n.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof r=="string")e.innerHTML="",o.forEach(a=>{Ve(a,e)});else{const a=Math.min(r.length,o.length);for(let c=0;c<a;c++)Wn(r[c],o[c]);o.length>r.length&&o.slice(r.length).forEach(c=>{Ve(c,e)}),o.length<r.length&&r.slice(o.length).forEach(c=>{c.el&&e.removeChild(c.el)})}}const Po={class:"page"},ko={class:"page-header"},Eo={class:"page-main"},Ao={class:"page-main-scroll"},Mo={class:"page-footer"},Io={class:"page-global"},Fo=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutPage",setup(n,{expose:t}){return t({}),(e,s)=>(f.openBlock(),f.createElementBlock("div",Po,[f.createElementVNode("div",ko,[f.renderSlot(e.$slots,"header",{},void 0,!0)]),f.createElementVNode("div",Eo,[f.createElementVNode("div",Ao,[f.renderSlot(e.$slots,"default",{},void 0,!0)])]),f.createElementVNode("div",Mo,[f.renderSlot(e.$slots,"footer",{},void 0,!0)]),f.createElementVNode("div",Io,[f.renderSlot(e.$slots,"global",{},void 0,!0)])]))}}),Vc="",zt=(n,t)=>{const e=n.__vccOpts||n;for(const[s,i]of t)e[s]=i;return e},te=zt(Fo,[["__scopeId","data-v-3c77fd20"]]),zo={class:"view-document"},Oo=["src"],Ro=f.defineComponent({inheritAttrs:!0,customOptions:{LayoutPage:te},__name:"ViewDocument",props:{src:{default:""},title:{default:""}},setup(n){const t=n,e=Ft.useRoute();po(typeof e.params.title=="string"?e.params.title:t.title);const s=decodeURIComponent(typeof e.params.src=="string"?e.params.src:t.src);return(i,r)=>(f.openBlock(),f.createBlock(te,null,{default:f.withCtx(()=>[f.createElementVNode("div",zo,[f.createElementVNode("img",{class:"img",src:f.unref(s)},null,8,Oo)])]),_:1}))}}),Bc="",Qn=zt(Ro,[["__scopeId","data-v-786ac2a3"]]),Kn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Be=(n,t,e,s="")=>{const i=n.split(":");if(n.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(),c=i.pop(),l={provider:i.length>0?i[0]:s,prefix:c,name:a};return t&&!Xe(l)?null:l}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return t&&!Xe(a)?null:a}if(e&&s===""){const a={provider:s,prefix:"",name:r};return t&&!Xe(a,e)?null:a}return null},Xe=(n,t)=>n?!!((t&&n.prefix===""||n.prefix)&&n.name):!1,Jn=Object.freeze({left:0,top:0,width:16,height:16}),Ye=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ge=Object.freeze({...Jn,...Ye}),Ps=Object.freeze({...Ge,body:"",hidden:!1});function Lo(n,t){const e={};!n.hFlip!=!t.hFlip&&(e.hFlip=!0),!n.vFlip!=!t.vFlip&&(e.vFlip=!0);const s=((n.rotate||0)+(t.rotate||0))%4;return s&&(e.rotate=s),e}function ti(n,t){const e=Lo(n,t);for(const s in Ps)s in Ye?s in n&&!(s in e)&&(e[s]=Ye[s]):s in t?e[s]=t[s]:s in n&&(e[s]=n[s]);return e}function No(n,t){const e=n.icons,s=n.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=s[o]&&s[o].parent,c=a&&r(a);c&&(i[o]=[a].concat(c))}return i[o]}return Object.keys(e).concat(Object.keys(s)).forEach(r),i}function Do(n,t,e){const s=n.icons,i=n.aliases||Object.create(null);let r={};function o(a){r=ti(s[a]||i[a],r)}return o(t),e.forEach(o),ti(n,r)}function ei(n,t){const e=[];if(typeof n!="object"||typeof n.icons!="object")return e;n.not_found instanceof Array&&n.not_found.forEach(i=>{t(i,null),e.push(i)});const s=No(n);for(const i in s){const r=s[i];r&&(t(i,Do(n,i,r)),e.push(i))}return e}const Vo={provider:"",aliases:{},not_found:{},...Jn};function ks(n,t){for(const e in t)if(e in n&&typeof n[e]!=typeof t[e])return!1;return!0}function si(n){if(typeof n!="object"||n===null)return null;const t=n;if(typeof t.prefix!="string"||!n.icons||typeof n.icons!="object"||!ks(n,Vo))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i||typeof r.body!="string"||!ks(r,Ps))return null}const s=t.aliases||Object.create(null);for(const i in s){const r=s[i],o=r.parent;if(!i||typeof o!="string"||!e[o]&&!s[o]||!ks(r,Ps))return null}return t}const ni=Object.create(null);function Bo(n,t){return{provider:n,prefix:t,icons:Object.create(null),missing:new Set}}function ee(n,t){const e=ni[n]||(ni[n]=Object.create(null));return e[t]||(e[t]=Bo(n,t))}function ii(n,t){return si(t)?ei(t,(e,s)=>{s?n.icons[e]=s:n.missing.add(e)}):[]}function Xo(n,t,e){try{if(typeof e.body=="string")return n.icons[t]={...e},!0}catch{}return!1}let fe=!1;function ri(n){return typeof n=="boolean"&&(fe=n),fe}function Yo(n){const t=typeof n=="string"?Be(n,!0,fe):n;if(t){const e=ee(t.provider,t.prefix),s=t.name;return e.icons[s]||(e.missing.has(s)?null:void 0)}}function Go(n,t){const e=Be(n,!0,fe);if(!e)return!1;const s=ee(e.provider,e.prefix);return t?Xo(s,e.name,t):(s.missing.add(e.name),!0)}function $o(n,t){if(typeof n!="object")return!1;if(typeof t!="string"&&(t=n.provider||""),fe&&!t&&!n.prefix){let i=!1;return si(n)&&(n.prefix="",ei(n,(r,o)=>{Go(r,o)&&(i=!0)})),i}const e=n.prefix;if(!Xe({provider:t,prefix:e,name:"a"}))return!1;const s=ee(t,e);return!!ii(s,n)}const oi=Object.freeze({width:null,height:null}),ai=Object.freeze({...oi,...Ye}),Uo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ci(n,t,e){if(t===1)return n;if(e=e||100,typeof n=="number")return Math.ceil(n*t*e)/e;if(typeof n!="string")return n;const s=n.split(Uo);if(s===null||!s.length)return n;const i=[];let r=s.shift(),o=qo.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=s.shift(),r===void 0)return i.join("");o=!o}}function jo(n,t="defs"){let e="";const s=n.indexOf("<"+t);for(;s>=0;){const i=n.indexOf(">",s),r=n.indexOf("</"+t);if(i===-1||r===-1)break;const o=n.indexOf(">",r);if(o===-1)break;e+=n.slice(i+1,r).trim(),n=n.slice(0,s).trim()+n.slice(o+1)}return{defs:e,content:n}}function Ho(n,t){return n?"<defs>"+n+"</defs>"+t:t}function Zo(n,t,e){const s=jo(n);return Ho(s.defs,t+s.content+e)}const Wo=n=>n==="unset"||n==="undefined"||n==="none";function Qo(n,t){const e={...Ge,...n},s={...ai,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,s].forEach(S=>{const P=[],w=S.hFlip,C=S.vFlip;let _=S.rotate;w?C?_+=2:(P.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),P.push("scale(-1 1)"),i.top=i.left=0):C&&(P.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),P.push("scale(1 -1)"),i.top=i.left=0);let p;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:p=i.height/2+i.top,P.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:P.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:p=i.width/2+i.left,P.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}_%2===1&&(i.left!==i.top&&(p=i.left,i.left=i.top,i.top=p),i.width!==i.height&&(p=i.width,i.width=i.height,i.height=p)),P.length&&(r=Zo(r,'<g transform="'+P.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,c=i.width,l=i.height;let h,g;o===null?(g=a===null?"1em":a==="auto"?l:a,h=ci(g,c/l)):(h=o==="auto"?c:o,g=a===null?ci(h,l/c):a==="auto"?l:a);const b={},y=(S,P)=>{Wo(P)||(b[S]=P.toString())};y("width",h),y("height",g);const m=[i.left,i.top,c,l];return b.viewBox=m.join(" "),{attributes:b,viewBox:m,body:r}}const Ko=/\sid="(\S+)"/g,Jo="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ta=0;function ea(n,t=Jo){const e=[];let s;for(;s=Ko.exec(n);)e.push(s[1]);if(!e.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(ta++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const Es=Object.create(null);function sa(n,t){Es[n]=t}function As(n){return Es[n]||Es[""]}function Ms(n){let t;if(typeof n.resources=="string")t=[n.resources];else if(t=n.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const Is=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],$e=[];for(;me.length>0;)me.length===1||Math.random()>.5?$e.push(me.shift()):$e.push(me.pop());Is[""]=Ms({resources:["https://api.iconify.design"].concat($e)});function na(n,t){const e=Ms(t);return e===null?!1:(Is[n]=e,!0)}function Fs(n){return Is[n]}let li=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function ia(n,t){const e=Fs(n);if(!e)return 0;let s;if(!e.maxURL)s=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";s=e.maxURL-i-e.path.length-r.length}return s}function ra(n){return n===404}const oa=(n,t,e)=>{const s=[],i=ia(n,t),r="icons";let o={type:r,provider:n,prefix:t,icons:[]},a=0;return e.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(s.push(o),o={type:r,provider:n,prefix:t,icons:[]},a=c.length),o.icons.push(c)}),s.push(o),s};function aa(n){if(typeof n=="string"){const t=Fs(n);if(t)return t.path}return"/"}const ca={prepare:oa,send:(n,t,e)=>{if(!li){e("abort",424);return}let s=aa(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;li(n+s).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(ra(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function la(n){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);n.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 n.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,c=e[r]||(e[r]=Object.create(null)),l=c[o]||(c[o]=ee(r,o));let h;a in l.icons?h=t.loaded:o===""||l.missing.has(a)?h=t.missing:h=t.pending;const g={provider:r,prefix:o,name:a};h.push(g)}),t}function hi(n,t){n.forEach(e=>{const s=e.loaderCallbacks;s&&(e.loaderCallbacks=s.filter(i=>i.id!==t))})}function ha(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const t=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const s=n.provider,i=n.prefix;t.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(n.icons[l])o.loaded.push({provider:s,prefix:i,name:l});else if(n.missing.has(l))o.missing.push({provider:s,prefix:i,name:l});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||hi([n],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let ua=0;function fa(n,t,e){const s=ua++,i=hi.bind(null,e,s);if(!t.pending.length)return i;const r={id:s,icons:t,callback:n,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function ma(n,t=!0,e=!1){const s=[];return n.forEach(i=>{const r=typeof i=="string"?Be(i,t,e):i;r&&s.push(r)}),s}var da={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pa(n,t,e,s){const i=n.resources.length,r=n.random?Math.floor(Math.random()*i):n.index;let o;if(n.random){let x=n.resources.slice(0);for(o=[];x.length>1;){const I=Math.floor(Math.random()*x.length);o.push(x[I]),x=x.slice(0,I).concat(x.slice(I+1))}o=o.concat(x)}else o=n.resources.slice(r).concat(n.resources.slice(0,r));const a=Date.now();let c="pending",l=0,h,g=null,b=[],y=[];typeof s=="function"&&y.push(s);function m(){g&&(clearTimeout(g),g=null)}function S(){c==="pending"&&(c="aborted"),m(),b.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),b=[]}function P(x,I){I&&(y=[]),typeof x=="function"&&y.push(x)}function w(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:b.length,subscribe:P,abort:S}}function C(){c="failed",y.forEach(x=>{x(void 0,h)})}function _(){b.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),b=[]}function p(x,I,O){const R=I!=="success";switch(b=b.filter(L=>L!==x),c){case"pending":break;case"failed":if(R||!n.dataAfterTimeout)return;break;default:return}if(I==="abort"){h=O,C();return}if(R){h=O,b.length||(o.length?v():C());return}if(m(),_(),!n.random){const L=n.resources.indexOf(x.resource);L!==-1&&L!==n.index&&(n.index=L)}c="completed",y.forEach(L=>{L(O)})}function v(){if(c!=="pending")return;m();const x=o.shift();if(x===void 0){if(b.length){g=setTimeout(()=>{m(),c==="pending"&&(_(),C())},n.timeout);return}C();return}const I={status:"pending",resource:x,callback:(O,R)=>{p(I,O,R)}};b.push(I),l++,g=setTimeout(v,n.rotate),e(x,t,I.callback)}return setTimeout(v),w}function ui(n){const t={...da,...n};let e=[];function s(){e=e.filter(a=>a().status==="pending")}function i(a,c,l){const h=pa(t,a,c,(g,b)=>{s(),l&&l(g,b)});return e.push(h),h}function r(a){return e.find(c=>a(c))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:s}}function fi(){}const zs=Object.create(null);function ga(n){if(!zs[n]){const t=Fs(n);if(!t)return;const e=ui(t),s={config:t,redundancy:e};zs[n]=s}return zs[n]}function ya(n,t,e){let s,i;if(typeof n=="string"){const r=As(n);if(!r)return e(void 0,424),fi;i=r.send;const o=ga(n);o&&(s=o.redundancy)}else{const r=Ms(n);if(r){s=ui(r);const o=n.resources?n.resources[0]:"",a=As(o);a&&(i=a.send)}}return!s||!i?(e(void 0,424),fi):s.query(t,i,e)().abort}function mi(){}function _a(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,ha(n)}))}function xa(n){const t=[],e=[];return n.forEach(s=>{(s.match(Kn)?t:e).push(s)}),{valid:t,invalid:e}}function de(n,t,e){function s(){const i=n.pendingIcons;t.forEach(r=>{i&&i.delete(r),n.icons[r]||n.missing.add(r)})}if(e&&typeof e=="object")try{if(!ii(n,e).length){s();return}}catch(i){console.error(i)}s(),_a(n)}function di(n,t){n instanceof Promise?n.then(e=>{t(e)}).catch(()=>{t(null)}):t(n)}function ba(n,t){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(t).sort():n.iconsToLoad=t,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:e,prefix:s}=n,i=n.iconsToLoad;if(delete n.iconsToLoad,!i||!i.length)return;const r=n.loadIcon;if(n.loadIcons&&(i.length>1||!r)){di(n.loadIcons(i,s,e),h=>{de(n,i,h)});return}if(r){i.forEach(h=>{const g=r(h,s,e);di(g,b=>{const y=b?{prefix:s,icons:{[h]:b}}:null;de(n,[h],y)})});return}const{valid:o,invalid:a}=xa(i);if(a.length&&de(n,a,null),!o.length)return;const c=s.match(Kn)?As(e):null;if(!c){de(n,o,null);return}c.prepare(e,s,o).forEach(h=>{ya(e,h,g=>{de(n,h.icons,g)})})}))}const va=(n,t)=>{const e=ma(n,!0,ri()),s=la(e);if(!s.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(s.loaded,s.missing,s.pending,mi)}),()=>{c=!1}}const i=Object.create(null),r=[];let o,a;return s.pending.forEach(c=>{const{provider:l,prefix:h}=c;if(h===a&&l===o)return;o=l,a=h,r.push(ee(l,h));const g=i[l]||(i[l]=Object.create(null));g[h]||(g[h]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:h,name:g}=c,b=ee(l,h),y=b.pendingIcons||(b.pendingIcons=new Set);y.has(g)||(y.add(g),i[l][h].push(g))}),r.forEach(c=>{const l=i[c.provider][c.prefix];l.length&&ba(c,l)}),t?fa(t,s,r):mi};function Ta(n,t){const e={...n};for(const s in t){const i=t[s],r=typeof i;s in oi?(i===null||i&&(r==="string"||r==="number"))&&(e[s]=i):r===typeof e[s]&&(e[s]=s==="rotate"?i%4:i)}return e}const wa=/[\s,]+/;function Ca(n,t){t.split(wa).forEach(e=>{switch(e.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function Sa(n,t=0){const e=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(e!==n){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(n.slice(0,n.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?s(r):0)}}return t}function Pa(n,t){let e=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)e+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+n+"</svg>"}function ka(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ea(n){return"data:image/svg+xml,"+ka(n)}function Aa(n){return'url("'+Ea(n)+'")'}const pi={...ai,inline:!1},Ma={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ia={display:"inline-block"},Os={backgroundColor:"currentColor"},gi={backgroundColor:"transparent"},yi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},_i={webkitMask:Os,mask:Os,background:gi};for(const n in _i){const t=_i[n];for(const e in yi)t[n+e]=yi[e]}const Ue={};["horizontal","vertical"].forEach(n=>{const t=n.slice(0,1)+"Flip";Ue[n+"-flip"]=t,Ue[n.slice(0,1)+"-flip"]=t,Ue[n+"Flip"]=t});function xi(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const bi=(n,t)=>{const e=Ta(pi,t),s={...Ma},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let S in t){const P=t[S];if(P!==void 0)switch(S){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":e[S]=P===!0||P==="true"||P===1;break;case"flip":typeof P=="string"&&Ca(e,P);break;case"color":r.color=P;break;case"rotate":typeof P=="string"?e[S]=Sa(P):typeof P=="number"&&(e[S]=P);break;case"ariaHidden":case"aria-hidden":P!==!0&&P!=="true"&&delete s["aria-hidden"];break;default:{const w=Ue[S];w?(P===!0||P==="true"||P===1)&&(e[w]=!0):pi[S]===void 0&&(s[S]=P)}}}const c=Qo(n,e),l=c.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){s.style={...r,...a},Object.assign(s,l);let S=0,P=t.id;return typeof P=="string"&&(P=P.replace(/-/g,"_")),s.innerHTML=ea(c.body,P?()=>P+"ID"+S++:"iconifyVue"),f.h("svg",s)}const{body:h,width:g,height:b}=n,y=i==="mask"||(i==="bg"?!1:h.indexOf("currentColor")!==-1),m=Pa(h,{...l,width:g+"",height:b+""});return s.style={...r,"--svg":Aa(m),width:xi(l.width),height:xi(l.height),...Ia,...y?Os:gi,...a},f.h("span",s)};if(ri(!0),sa("",ca),typeof document<"u"&&typeof window<"u"){const n=window;if(n.IconifyPreload!==void 0){const t=n.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!$o(s))&&console.error(e)}catch{console.error(e)}})}if(n.IconifyProviders!==void 0){const t=n.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const s="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;na(e,i)||console.error(s)}catch{console.error(s)}}}}const Fa={...Ge,body:""},za=f.defineComponent({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(n,t,e){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let s;if(typeof n!="string"||(s=Be(n,!1,!0))===null)return this.abortLoading(),null;let i=Yo(s);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:n,abort:va([s],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==n&&(this._name=n,t&&t(n)),e){i=Object.assign({},i);const o=e(i.body,s.name,s.prefix,s.provider);typeof o=="string"&&(i.body=o)}const r=["iconify"];return s.prefix!==""&&r.push("iconify--"+s.prefix),s.provider!==""&&r.push("iconify--"+s.provider),{data:i,classes:r}}},render(){this.counter;const n=this.$attrs,t=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad,n.customise):null;if(!t)return bi(Fa,n);let e=n;return t.classes&&(e={...n,class:(typeof n.class=="string"?n.class+" ":"")+t.classes.join(" ")}),bi({...Ge,...t.data},e)}}),vi=f.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ts("--xg-blue")}},setup(n){const t=n;return(e,s)=>(f.openBlock(),f.createElementBlock("span",{class:"icon",style:f.normalizeStyle(["color: "+e.color,"display: inline-flex","justify-content: center","align-items: center","cursor: pointer","font-size: 1em"])},[f.createVNode(f.unref(za),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Oa={class:"loading-11",ref:"loading11"},Ra={class:"container container-1"},La={class:"container container-2"},Na={class:"container container-3"},Da=f.defineComponent({__name:"Loading11",props:{color:{default:Ts("--xg-blue")},width:{default:"0.8em"}},setup(n){const t=n;return(e,s)=>(f.openBlock(),f.createElementBlock("div",Oa,[f.createElementVNode("div",{class:"loading-11-inner",style:f.normalizeStyle({width:t.width,height:t.width})},[f.createElementVNode("div",Ra,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)]),f.createElementVNode("div",La,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)]),f.createElementVNode("div",Na,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),Gc="",Ti=zt(Da,[["__scopeId","data-v-b6f6b2a6"]]),Va={key:0,class:"loading",style:{"margin-right":"6px"}},Rs=.03,Ls=.06,wi=f.defineComponent({customOptions:{Loading11:Ti},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"16px"},fontWeight:{default:"normal"},borderRadius:{default:"4px"},stylePattern:{default:"fullfill"},fontColor:{},borderColor:{},bgColor:{},bgColorStart:{},bgColorEnd:{},asyncClick:{}},emits:["yz-click","click"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.ref(),o=Ts("--xg-blue","#5a82f0"),a=f.ref(s.fontColor),c=f.ref(s.borderColor),l=f.ref(s.bgColor),h=f.ref(a.value),g=f.ref(c.value),b=f.ref(l.value),y=f.ref(s.bgColorStart||""),m=f.ref(s.bgColorEnd||""),S=s.bgColorStart&&s.bgColorEnd;function P(R){switch(R){case"transparent":c.value=s.borderColor||"rgba(255,255,255,0)",l.value=s.bgColor||"rgba(255,255,255,0)",a.value=s.fontColor||o;break;case"outline":c.value=s.borderColor||o,l.value=s.bgColor||"rgba(255,255,255,0)",a.value=s.fontColor||o;break;case"fullfill":default:c.value=s.borderColor||"rgba(255,255,255,0)",l.value=s.bgColor||o,a.value=s.fontColor||nt.set(l.value).opposite(!0).toString();break}h.value=a.value,g.value=c.value,b.value=l.value,S&&(y.value=s.bgColorStart,m.value=s.bgColorEnd,l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`)}f.watch(()=>s.stylePattern,()=>{P(s.stylePattern)},{immediate:!0});const w=f.ref(s.disabled?"0.6":"1"),C=f.ref(s.disabled?"not-allowed":"pointer");let _=!1;const p=()=>{s.disabled||(_=!0,s.stylePattern=="transparent"&&(a.value=nt.set(h.value).darken(Rs).toString()),c.value=nt.set(g.value).darken(Rs).toString(),S?l.value=`linear-gradient(180deg, ${m.value} 0%, ${y.value} 100%)`:l.value=nt.set(b.value).darken(Rs).toString())},v=()=>{s.disabled||(_=!1,a.value=h.value,c.value=g.value,S?l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`:l.value=b.value)},x=f.ref(!1),O=Cr(()=>{s.disabled||x.value||(s.stylePattern=="transparent"&&(a.value=nt.set(h.value).darken(Ls).toString()),c.value=nt.set(g.value).darken(Ls).toString(),S?l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`:l.value=nt.set(b.value).darken(Ls).toString(),setTimeout(()=>{_?p():v()},150),i("yz-click"),i("click"),s.asyncClick&&(x.value=!0,s.asyncClick().then(()=>{x.value=!1}).catch(()=>{x.value=!1})))},300);return t({el:r}),(R,L)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"el",ref:r,class:"button",style:f.normalizeStyle([`opacity: ${w.value}`,`border: 1px solid ${c.value}`,`background: ${l.value}`,`color: ${a.value}`,`border-radius: ${s.borderRadius}`,`width: ${s.width}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${C.value}`,"user-select: none","box-sizing: border-box","display: inline-flex","justify-content: center","align-items: center","z-index: 0"]),onMouseover:p,onMouseleave:v,onClick:L[0]||(L[0]=(...B)=>f.unref(O)&&f.unref(O)(...B))},[f.createElementVNode("label",{class:"label truncate",style:f.normalizeStyle({padding:"0 "+R.padding,cursor:C.value,display:"inline-flex",justifyContent:"center",alignItems:"center",fontWeight:s.fontWeight||"normal"})},[x.value?(f.openBlock(),f.createElementBlock("div",Va,[f.createVNode(Ti,{color:a.value},null,8,["color"])])):f.createCommentVNode("",!0),f.renderSlot(R.$slots,"default",{},()=>[R.icon&&R.iconPosition==="left"?(f.openBlock(),f.createBlock(vi,{key:0,icon:R.icon,color:a.value,style:f.normalizeStyle({marginRight:"4px",cursor:C.value})},null,8,["icon","color","style"])):f.createCommentVNode("",!0),f.createElementVNode("span",{style:f.normalizeStyle({cursor:C.value})},f.toDisplayString(R.label),5),R.icon&&R.iconPosition==="right"?(f.openBlock(),f.createBlock(vi,{key:1,icon:R.icon,color:a.value,style:f.normalizeStyle({marginLeft:"4px",cursor:C.value})},null,8,["icon","color","style"])):f.createCommentVNode("",!0)])],4)],36))}}),Ba={class:"xg-footer-inner"},Xa=f.defineComponent({customOptions:{Button:wi},inheritAttrs:!0,__name:"Footer",setup(n){const t=Ft.useRouter();function e(){t.push("/park")}const s=f.ref("0px");let i;return f.onMounted(()=>{i=yo.onBottom(r=>{s.value=r})}),f.onUnmounted(()=>{i?.()}),(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:"xg-footer",style:f.normalizeStyle({paddingBottom:s.value})},[f.createElementVNode("div",Ba,[f.createVNode(wi,{label:"去支付",width:"100%",onClick:e})])],4))}}),$c="",Ci=zt(Xa,[["__scopeId","data-v-47056f4a"]]),Ya={class:"text"},Ga=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"}},setup(n,{expose:t,emit:e}){const s=n,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":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function r(l){switch(l){case"b":case"蓝牌":l="蓝牌";break;case"g":case"绿牌":l="绿牌";break;case"y":case"黄牌":l="黄牌";break;case"q":case"黄绿":l="黄绿";break;case"d":case"黑牌":l="黑牌";break;case"w":case"白牌":l="白牌";break;default:l="未知";break}const h=i.filter(g=>g.name===l);return h.length?h[0]:r("未知")}const o=f.ref(r(s.plateType||"")),a=f.ref(),c=f.ref(14);return f.onMounted(()=>{c.value=jn(a.value).getEmSize()}),t({}),(l,h)=>(f.openBlock(),f.createElementBlock("div",{class:"plate-display",ref_key:"el",ref:a},[l.displayType=="dot"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["leading",l.displayType]),style:f.normalizeStyle({...o.value.style,width:c.value+"px",height:c.value+"px",marginRight:.36*c.value+"px"})},f.toDisplayString(o.value.name),7)):f.createCommentVNode("",!0),l.displayType=="chinese"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(["leading",l.displayType]),style:f.normalizeStyle(o.value.style)},f.toDisplayString(o.value.name),7)):f.createCommentVNode("",!0),l.displayType=="plaintext"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:2,class:f.normalizeClass(["leading",l.displayType])},f.toDisplayString(o.value.name),3)):f.createCommentVNode("",!0),f.createElementVNode("div",Ya,f.toDisplayString(l.plate),1)],512))}}),Uc="",Si=zt(Ga,[["__scopeId","data-v-6395bb5a"]]),lt=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1}},emits:["ready","update","clipboard_success","clipboard_error","start","end"],setup(n,{expose:t,emit:e}){const s=n,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},c=()=>{r=="start"?a():o()},l=f.ref();let h,g,b=!1;return f.watchEffect(()=>{l.value&&(h||(h=fo(l.value),h.eb.on("resize",()=>{b&&i("update",h)}),h.eb.on("mouseEnter",()=>{s.effectTriggerTiming=="mouseMove"&&c()}),h.eb.on("mouseLeave",()=>{s.effectTriggerTiming=="mouseMove"&&c()}),h.eb.on("tap",()=>{if(s.effectTriggerTiming=="click"&&c(),s.supportCopyText){const y=jn(l.value).getInnerText();Co(y).then(()=>{i("clipboard_success",y)}).catch(m=>{i("clipboard_error",m.toString())})}}),s.effectTriggerTiming!=="manual"&&o(),s.effectTriggerTiming=="immediate"&&c(),h.start().then(()=>{g?.(h),i("ready",h),b=!0})))}),f.onMounted(()=>{}),f.onUnmounted(()=>{h?.end()}),t({getController:()=>new Promise(y=>{if(h)return y(h);g=y}),getElement:()=>l.value,getRect:()=>l.value.getBoundingClientRect()}),(y,m)=>(f.openBlock(),f.createElementBlock("div",f.mergeProps({ref_key:"r",ref:l,class:"container",style:{position:"relative",boxSizing:"border-box",display:s.type=="shrink"?"inline-block":"block",width:s.type=="full"?"100%":"auto",height:s.type=="full"?"100%":"auto"}},y.$attrs),[f.renderSlot(y.$slots,"default")],16))}}),Pi=f.defineComponent({customOptions:{Container:lt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.reactive({}),o=f.reactive({});let a=s.name,c=s.duration,l=s.timingFunction,h=s.delay,g=s.repeat,b=s.direction;function y(x){switch(a=x,a){case"superRainbow":c=s.duration||15e3;break;case"heartBeat":c=s.duration||1300;break;case"statusProcessing":c=s.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":c=s.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":c=s.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":c=s.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":c=s.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":c=s.duration||600;break;default:c=s.duration||500;break}switch(a){case"superRainbow":l=s.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":l=s.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":l=s.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":l=s.timingFunction||"ease-in-out";break;default:l=s.timingFunction||"ease";break}switch(a){default:h=s.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":g=s.repeat||"infinite";break;default:g=s.repeat||1;break}switch(a){case"superRainbow":b=s.direction||"alternate";break;default:b=s.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}const m=f.ref(),S=x=>{r.perspective=s.perspective,x.eb.on("animationstart",I=>{i("cssanimationstart",I.animationName)}),x.eb.on("animationend",I=>{i("cssanimationend",I.animationName)})};function P(){m.value.style.animation="none",m.value.offsetHeight,m.value.style.animation=null}const w=()=>{o.animation="none"},C=()=>{P(),o.animation=`${c}ms ${l} ${h}ms ${g} ${b} ${s.fillMode} ${s.playState} ${a}`},_=x=>{x&&y(x),w(),b="normal",C()},p=x=>{x&&y(x),w(),b="reverse",C()},v=()=>{o.animation="none"};return f.watch(()=>s.name,()=>{y(s.name)},{immediate:!0}),t({trigger:_,triggerReverse:p,clear:v}),(x,I)=>(f.openBlock(),f.createBlock(lt,{class:"css-animation",type:s.containerType,supportCopyText:s.supportCopyText,effectTriggerTiming:s.effectTriggerTiming,style:f.normalizeStyle(r),onReady:S,onStart:w,onEnd:C},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"css-animation-inner",ref_key:"animationRef",ref:m,style:f.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[f.renderSlot(x.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),qc="",ki=f.defineComponent({customOptions:{Container:lt,CSSAnimation:Pi},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:F.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.ref(),o=f.reactive({}),a=()=>{i("ready",x,I)},c=()=>{S()},l=f.ref();let h="rotateRightSideFirst",g=s.effect;function b(O,R){switch(g){case"static":R();break;default:O();break}}let y=!1;const m=new Ce,S=()=>{const O={},R={};m.clear(),m.frameDuration=s.duration,b(()=>{h=g},()=>{m.addTween(O,R,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{i(y?"pageCloseStart":"pageOpenStart")},onUpdate:L=>{o.transform="","x"in L&&(o.transform+=` translateX(${L.x}%)`),"y"in L&&(o.transform+=` translateY(${L.y}%)`),"rx"in L&&(o.transform+=` rotateX(${L.rx}deg)`),"ry"in L&&(o.transform+=` rotateY(${L.ry}deg)`),"scale"in L&&(o.transform+=` scale(${L.scale})`),"opacity"in L&&(o.opacity=`${L.opacity}`)},onComplete:()=>{i(y?"pageCloseEnd":"pageOpenEnd")}})})};f.watch(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{g=s.effect,S()},{immediate:!0});const P=()=>{i(y?"pageCloseStart":"pageOpenStart")},w=()=>{i(y?"pageCloseEnd":"pageOpenEnd")},C=()=>{b(()=>{l.value.trigger(h)},()=>{m.play()})},_=()=>{b(()=>{l.value.triggerReverse(h)},()=>{m.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function v(){b(()=>{p()},()=>{l.value?.clear()})}const x=O=>{O&&(g=O,S()),y=!1,v(),C()},I=O=>{O&&(g=O,S()),y=!0,v(),_()};return t({open:x,close:I,clear:p}),(O,R)=>(f.openBlock(),f.createBlock(lt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onUpdate:c},{default:f.withCtx(()=>[f.createVNode(Pi,{ref_key:"cssAnimationRef",ref:l,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:P,onCssanimationend:w},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"page-inner",style:f.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[f.renderSlot(O.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Ei=f.defineComponent({customOptions:{Page:ki,Container:lt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:F.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(n,{expose:t,emit:e}){const s=n,i=e;let r=-1,o=-1,a;const c=[];let l=[],h=[],g=[];function b(N){return N>=0&&N<l.length}function y(){return o>r}function m(N,E,ht){switch(N){case r:return y()?E:ht;case o:return y()?ht:E;default:return"static"}}function S(N,E){switch(N){case"moveToLeft":return m(E,"moveToLeft","moveFromRight");case"moveToRight":return m(E,"moveToRight","moveFromLeft");case"moveToTop":return m(E,"moveToTop","moveFromBottom");case"moveToBottom":return m(E,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return m(E,"fade","moveFromLeft");case"moveFromRightPrevFade":return m(E,"fade","moveFromRight");case"moveFromTopPrevFade":return m(E,"fade","moveFromTop");case"moveFromBottomPrevFade":return m(E,"fade","moveFromBottom");case"moveToLeftFade":return m(E,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return m(E,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return m(E,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return m(E,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return m(E,"moveToLeft","moveFromRight");case"moveToRightEasing":return m(E,"moveToRight","moveFromLeft");case"moveToTopEasing":return m(E,"moveToTop","moveFromBottom");case"moveToBottomEasing":return m(E,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return m(E,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return m(E,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return m(E,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return m(E,"scaleToSmall","moveFromBottom");case"scaleSmall":return m(E,"scaleToSmall","scaleFromLarge");case"scaleLarge":return m(E,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return m(E,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return m(E,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return m(E,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return m(E,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return m(E,"moveToBottom","scaleFromSmall");case"glueToLeft":return m(E,"rotateRightSideFirst","moveFromRight");case"glueToRight":return m(E,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return m(E,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return m(E,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return m(E,"flipOutLeft","flipInRight");case"flipToRight":return m(E,"flipOutRight","flipInLeft");case"flipToTop":return m(E,"flipOutTop","flipInBottom");case"flipToBottom":return m(E,"flipOutBottom","flipInTop");case"rotateFall":return m(E,"rotateFall","scaleFromSmall");case"newspaper":return m(E,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return m(E,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return m(E,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return m(E,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return m(E,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return m(E,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return m(E,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return m(E,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return m(E,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return m(E,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return m(E,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return m(E,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return m(E,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return m(E,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return m(E,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return m(E,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return m(E,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return m(E,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return m(E,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return m(E,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return m(E,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return m(E,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return m(E,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return m(E,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return m(E,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return m(E,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return m(E,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return m(E,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return m(E,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return m(E,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return m(E,"rotateSlideOut","rotateSlideIn")}}function P(N,E=600,ht=600){switch(N){case r:return E;case o:return ht;default:return s.duration}}function w(N,E){switch(N){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return P(E,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return P(E,700,600);case"scaleSmall":return P(E,700,500);case"scaleLarge":return P(E,500,700);case"scaleToLargePrevScaleToSmall":return P(E,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return P(E,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return P(E,800,600);default:return s.duration}}let C=s.timingFunction;function _(N){switch(N){default:return s.easeFunction}}function p(N,E){switch(N){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(E){case r:C=y()?"ease-in-out":"ease";break;case o:default:C=y()?"ease":"ease-in-out"}return _(E);default:return C=s.timingFunction,s.easeFunction}}function v(N,E=300){switch(N){case o:return s.delay+E;default:return s.delay}}function x(N,E){switch(N){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return v(E,500);case"scaleSmall":case"scaleLarge":return v(E,300);case"scaleToLargePrevScaleToSmall":return v(E,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return v(E,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return v(E,180);default:return s.delay}}let I=2,O=2;const R=()=>{I=2,O=2},L=()=>{I=2,O=3},B=()=>{I=3,O=2};function q(N){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":B();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":y()?B():L();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":y()?L():B();break;default:R();break}b(r)&&r==N&&(g[r].style.zIndex=`${I}`,g[r].style.visibility="visible"),b(o)&&o==N&&(g[o].style.zIndex=`${O}`,g[o].style.visibility="visible")}function D(N){L(),N==r&&(g[r].style.zIndex=`${I}`,g[r].style.visibility="hidden"),N==o&&(g[o].style.zIndex=`${O}`,g[o].style.visibility="visible",c.shift()?.(),i("routeChangeEnd",r,o,l.length),r=o)}const X=f.ref();function W(N=0,E=!1){if(!X.value)return;let ht=0;f.render(f.h("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},l.map((tt,G)=>{const yt=S(s.effect,G);return f.h("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==G?"visible":"hidden",zIndex:E?"1":"0"}},tt.pageKey?{key:tt.pageKey}:{}),f.h(ki,{effect:yt,duration:w(s.effect,G),easeFunction:p(s.effect,G),timingFunction:C,delay:x(s.effect,G),onReady:(j,Q)=>{h[G]={open:j,close:Q},++ht==N&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{q(G)},onPageOpenEnd:()=>{D(G)},onPageCloseStart:()=>{q(G)},onPageCloseEnd:()=>{D(G)}},{default:()=>tt.component instanceof HTMLElement?f.h("div",{...tt.attributes,innerHTML:tt.component.innerHTML}):f.h(tt.component,tt.attributes,()=>tt.child)}))})),X.value),g=X.value.children[0].children}f.watch(()=>s.effect,()=>{W()});function ot(N=[]){l=[...N],l.forEach(E=>{E.pageKey=E.pageKey||be()}),a=()=>{r=-1,it(0)},W(l.length,!0)}function pt(N){N.pageKey=N.pageKey||be(),l.push(N),a=()=>{it(l.length-1)},W(1,l.length==1)}function wt(){l.length<=1||it(l.length-2,()=>{l.splice(l.length-1,1),r=l.length-1,W()})}function gt(){it(r+1)}function Ct(){it(r-1)}const St=new Ar(1);function it(N,E){St.addTask(()=>new Promise(ht=>{const tt=()=>{E?.(),ht()};if(!b(N)){tt();return}if(o=N,o==r){tt();return}c.push(tt),W(),i("routeChangeStart",r,o,l.length),y()?(b(r)&&h[r].open(),b(o)&&h[o].open()):(b(r)&&h[r].close(),b(o)&&h[o].close())}))}return t({reset:ot,push:pt,pop:wt,forward:gt,back:Ct,goto:it,currentPageIndex:()=>r,totalPages:()=>l.length}),(N,E)=>(f.openBlock(),f.createElementBlock("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),Ai=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},global:{type:Boolean,default:!0},color:{default:"rgba(0, 0, 0, 0.25)"}},setup(n,{expose:t}){const e=n,s=f.computed(()=>({display:e.visible?"block":"none",overflow:"hidden","background-color":e.color,position:"fixed","z-index":"99999",width:"100%",height:"100%",inset:"0"})),i=f.ref(),r=Pn(document.documentElement,"overflow")||"visible";let o="";return f.watch(()=>e.visible,()=>{e.global?he(document.documentElement,"overflow",e.visible?"hidden":r):(o||(o=Pn(i.value.parentElement,"overflow")||"visible"),he(i.value.parentElement,"overflow",e.visible?"hidden":o))},{immediate:!0}),t({}),(a,c)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"el",ref:i,class:"overlay",style:f.normalizeStyle(s.value)},[f.renderSlot(a.$slots,"default")],4))}}),pe=f.defineComponent({customOptions:{Overlay:Ai,Container:lt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},global:{type:Boolean,default:!0},overlayBgColor:{},popValue:{}},emits:["open","close","resize","clickOverlay"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=new Ce({frameDuration:s.dur}),o=f.reactive({position:"absolute",opacity:"1",transformOrigin:"center",willChange:"transform"}),a=f.ref(!1),c=f.ref("full");f.watch(()=>[s.directionFrom,s.popValue],()=>{r.clear();const S=!s.popValue,P=s.popValue?s.popValue:100,w=s.popValue?"px":"%";switch(s.directionFrom){case"left":o.height="100%",S?delete o.width:o.width=`${P}${w}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:P},{left:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.left=`-${C.left}${w}`},onComplete:g});break;case"right":o.height="100%",S?delete o.width:o.width=`${P}${w}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:P},{right:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.right=`-${C.right}${w}`},onComplete:g});break;case"top":o.width="100%",S?delete o.height:o.height=`${P}${w}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:P},{top:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.top=`-${C.top}${w}`},onComplete:g});break;case"bottom":o.width="100%",S?delete o.height:o.height=`${P}${w}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:P},{bottom:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.bottom=`-${C.bottom}${w}`},onComplete:g});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:F.Quadratic.Out,onUpdate(C){o.transform=`translate(-50%, -50%) scale(${C.scale})`,o.opacity=`${C.opacity}`},onComplete:g});break;case"absolute":o.width=s.absoluteWidth,o.height=s.absoluteHeight,o.left=s.absoluteLeft,o.top=s.absoluteTop,delete o.right,delete o.bottom;break}switch(s.directionFrom){case"center":c.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":c.value="shrink",delete o.transform,delete o.opacity;break;default:c.value="full",delete o.transform,delete o.opacity;break}S&&(c.value="shrink")},{immediate:!0}),f.watch(()=>s.absoluteLeft,()=>{switch(s.directionFrom){case"absolute":o.left=s.absoluteLeft;break}}),f.watch(()=>s.absoluteTop,()=>{switch(s.directionFrom){case"absolute":o.top=s.absoluteTop;break}}),f.watch(()=>s.absoluteWidth,()=>{switch(s.directionFrom){case"absolute":o.width=s.absoluteWidth;break}}),f.watch(()=>s.absoluteHeight,()=>{switch(s.directionFrom){case"absolute":o.height=s.absoluteHeight;break}});const l=S=>{i("resize",S.rect)};let h="open";function g(){h=="open"?i("open"):(a.value=!1,i("close"))}function b(){a.value=!0,h="open",r.play()}function y(){switch(h="close",s.directionFrom){case"absolute":g();break;default:r.reverse();break}}function m(S){const P=s.directionFrom=="absolute"&&s.absoluteWidth=="100%"&&s.absoluteHeight=="100%"?"pop-content":"pop";S.target&&qn(S.target,P)&&(s.closeWhenClickOverlay&&y(),i("clickOverlay"))}return t({open:b,close:y}),(S,P)=>(f.openBlock(),f.createBlock(Ai,{visible:a.value,global:s.global,color:s.overlayBgColor},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%"},onClick:m},[f.createVNode(lt,{class:"pop-content",type:c.value,style:f.normalizeStyle(o),onReady:l,onUpdate:l},{default:f.withCtx(()=>[f.renderSlot(S.$slots,"default",{},()=>[P[0]||(P[0]=f.createElementVNode("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","global","color"]))}}),$a=["src"],Ua=f.defineComponent({name:"Image",customOptions:{Container:lt,Pop:pe},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=new Ce({frameDuration:s.dur}),o=f.ref(0),a=f.ref(0),c=f.ref(0),l=f.ref(0),h=f.ref(0),g=f.ref(0),b=f.ref(0),y=f.ref(0),m=f.ref(!0),S=f.ref(0),P=f.ref(0);To(s.src).then(D=>{S.value=D.width,P.value=D.height,x()}).catch(()=>{m.value=!1});const w=f.ref(0),C=f.ref(0),_=D=>{w.value=D.rect.width,C.value=D.rect.height,x()},p=f.ref(0),v=f.ref(0);function x(){if(!w.value||!C.value||!S.value||!P.value)return;const D=Rn(s.mode,S.value,P.value,w.value,C.value);p.value=D.width,v.value=D.height;const{width:X,height:W}=oo(),ot=Rn("aspectFit",S.value,P.value,X,W);b.value=ot.width,y.value=ot.height,h.value=(X-b.value)/2,g.value=(W-y.value)/2}const I=D=>{i("settled",D.rect.x,D.rect.y,D.rect.width,D.rect.height)};let O=!1;const R=f.ref(),L=f.ref();async function B(){if(!s.openImageDetailWhenClick)return;const D=await R.value.getRect();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:h.value,top:g.value,width:b.value,height:y.value},{easeFunction:F.Quadratic.Out,onUpdate(X){o.value=X.left,a.value=X.top,c.value=X.width,l.value=X.height},onComplete(){O&&L.value.close(),O=!O}}),O||(L.value.open(),r.play())}function q(){O&&r.reverse()}return t({}),(D,X)=>(f.openBlock(),f.createBlock(lt,{class:"image",type:"full",style:f.normalizeStyle({backgroundColor:s.bgColor}),onReady:_,onUpdate:_,onClick:B},{default:f.withCtx(()=>[m.value?(f.openBlock(),f.createBlock(lt,{key:0,class:"image-inner",ref_key:"imageRef",ref:R,type:"shrink",style:f.normalizeStyle({width:p.value+"px",height:v.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${p.value}px ${v.value}px`}),onReady:I,onUpdate:I},null,8,["style"])):f.createCommentVNode("",!0),m.value?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lt,{key:1,type:"shrink"},{default:f.withCtx(()=>[f.createElementVNode("img",{src:s.src,style:{display:"block",objectFit:"contain"}},null,8,$a)]),_:1})),f.createVNode(pe,{ref_key:"popRef",ref:L,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${c.value}px`,"absolute-height":`${l.value}px`,"close-when-click-overlay":!1,onClickOverlay:q},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"image-pop",style:f.normalizeStyle({width:"100%",height:"100%",backgroundImage:`url(${s.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),jc="",Mi=zt(Ua,[["__scopeId","data-v-67c2d0de"]]),qa={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ii=f.defineComponent({customOptions:{Image:Mi,Container:lt,Routes:Ei},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(n,{expose:t,emit:e}){const s=n,i=f.ref(0);function r(b,y){i.value=y}const o=f.ref(),a=b=>{b.eb.on("panLeft",()=>{o.value?.forward()}),b.eb.on("panRight",()=>{o.value?.back()}),o.value.reset(s.urls.map(y=>({component:f.h(Mi,{mode:"aspectFit",src:y,openImageDetailWhenClick:!1})})))},c=f.ref();function l(){c.value?.open()}function h(){c.value?.close()}const g=b=>{b.target&&qn(b.target,"image")&&h()};return t({open:l,close:h}),(b,y)=>(f.openBlock(),f.createBlock(pe,{ref_key:"popRef",ref:c,directionFrom:"absolute",onClick:g},{default:f.withCtx(()=>[s.urls.length>1?(f.openBlock(),f.createElementBlock("div",qa,f.toDisplayString(i.value+1)+" / "+f.toDisplayString(s.urls.length),1)):f.createCommentVNode("",!0),f.createVNode(lt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:f.withCtx(()=>[f.createVNode(Ei,{ref_key:"routesRef",ref:o,effect:s.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),ja={class:"pop-tel"},Ha=["href"],Za=f.defineComponent({customOptions:{Pop:pe},inheritAttrs:!0,__name:"PopTel",props:{tel:{}},setup(n,{expose:t,emit:e}){const s=f.ref();function i(){s.value?.open()}function r(){s.value?.close()}return t({open:i,close:r}),(o,a)=>(f.openBlock(),f.createBlock(pe,{directionFrom:"bottom",closeWhenClickOverlay:!1,ref_key:"el",ref:s},{default:f.withCtx(()=>[f.createElementVNode("div",ja,[f.createElementVNode("div",null,f.toDisplayString(o.tel),1),f.createElementVNode("a",{class:"pop-tel-call",onClick:r,href:`tel:${o.tel}`}," 呼叫 ",8,Ha),f.createElementVNode("div",{class:"pop-tel-cancel",onClick:r}," 取消 ")])]),_:1},512))}}),Hc="",Fi=zt(Za,[["__scopeId","data-v-c1425500"]]),Wa={class:"lot-main"},Qa={class:"lot-detail"},Ka={class:"bold"},Ja=f.defineComponent({customOptions:{LayoutPage:te,Footer:Ci,PlateDisplay:Si,ViewDocument:Qn,PopTel:Fi,ImageView:Ii},inheritAttrs:!0,__name:"Lot",setup(n){const t=Ft.useRouter();function e(){t.push({name:"view-document",params:{title:"收费标准",src:encodeURIComponent("https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159")}})}const s=f.ref();function i(){s.value?.open()}const r=f.ref();function o(){r.value?.open()}return(a,c)=>(f.openBlock(),f.createBlock(te,{class:"lot"},{footer:f.withCtx(()=>[f.createVNode(Ci)]),global:f.withCtx(()=>[f.createVNode(Fi,{tel:"15851575410",ref_key:"popTelEl",ref:s},null,512),f.createVNode(Ii,{urls:["https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159","https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159"],ref_key:"imageViewEl",ref:r},null,512)]),default:f.withCtx(()=>[c[15]||(c[15]=f.createElementVNode("div",{class:"lot-main-bg"},null,-1)),f.createElementVNode("div",Wa,[c[12]||(c[12]=f.createElementVNode("div",null,"若临测试泊位机器人停车场",-1)),c[13]||(c[13]=f.createElementVNode("div",null,[f.createElementVNode("div"),f.createElementVNode("div",null,"编号"),f.createElementVNode("div")],-1)),c[14]||(c[14]=f.createElementVNode("div",null,[f.createElementVNode("span",null,"103"),f.createElementVNode("span",null,"002")],-1)),f.createElementVNode("div",null,[c[0]||(c[0]=f.createElementVNode("div",null,"停车场主页",-1)),c[1]||(c[1]=f.createElementVNode("div",null,"更换附近车位",-1)),f.createElementVNode("div",{onClick:e},"收费标准")]),f.createElementVNode("div",Qa,[c[4]||(c[4]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"待支付"),f.createElementVNode("div",{class:"red"},"¥0.01")],-1)),c[5]||(c[5]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"已支付"),f.createElementVNode("div",null,"¥0.01")],-1)),c[6]||(c[6]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"订单编号"),f.createElementVNode("div",null,"33333333333")],-1)),c[7]||(c[7]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"开始时间"),f.createElementVNode("div",null,"2025-04-08 09:41:25")],-1)),c[8]||(c[8]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"停车时长"),f.createElementVNode("div",null,"51小时53分钟15秒")],-1)),c[9]||(c[9]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"优惠券"),f.createElementVNode("div",{class:"red"},"1分钟")],-1)),c[10]||(c[10]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"优惠信息"),f.createElementVNode("div",{class:"red"},"xxxx")],-1)),c[11]||(c[11]=f.createElementVNode("div",{class:"lot-detail-gap"},null,-1)),f.createElementVNode("div",null,[c[2]||(c[2]=f.createElementVNode("div",null,"车牌号",-1)),f.createElementVNode("div",Ka,[f.createVNode(Si,{plate:"苏U77777","plate-type":"b"})])]),f.createElementVNode("div",null,[c[3]||(c[3]=f.createElementVNode("div",null,"现场照片",-1)),f.createElementVNode("div",{onClick:o},"查看")])]),f.createElementVNode("div",{class:"lot-actions"},[f.createElementVNode("div",{onClick:i},"联系客服")])])]),_:1}))}}),Zc="",tc=zt(Ja,[["__scopeId","data-v-feee85ac"]]),ec=f.defineComponent({customOptions:{LayoutPage:te},inheritAttrs:!0,__name:"Park",setup(n){return(t,e)=>(f.openBlock(),f.createBlock(te,{class:"park"},{default:f.withCtx(()=>e[0]||(e[0]=[f.createTextVNode("Park")])),_:1}))}}),Wc="",sc=zt(ec,[["__scopeId","data-v-9704593b"]]),nc=Ft.createRouter({history:Ft.createWebHashHistory("/"),routes:[{path:"/view-document/:title/:src",name:"view-document",component:Qn},{path:"/",name:"xg",redirect:"/lot"},{path:"/lot",name:"lot",component:tc},{path:"/park",name:"park",component:sc}],scrollBehavior:(n,t,e)=>e||{left:0,top:0}}),Ns=f.ref("next"),qe=[];nc.beforeEach((n,t,e)=>{const s=qe.length,i=qe.findIndex(r=>r==n.name);s>1&&i>=0&&i<s-1?(Ns.value="prev",qe.splice(i+1)):(Ns.value="next",qe.push(n.name)),e()});const ic="increment",rc="decrement",oc="incrementAction";function ac(){return{store:kt.useStore()}}function cc(n,t){let e=kt.mapState;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapState:t=n,zi(t,e)}function lc(n,t){let e=kt.mapGetters;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapGetters:t=n,zi(t,e)}function hc(n,t){let e=kt.mapMutations;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapMutations:t=n,Array.isArray(t),e(t)}function uc(n,t){let e=kt.mapActions;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapActions:t=n,Array.isArray(t),e(t)}function zi(n,t){const e=kt.useStore(),s={},i=t(n);return Object.keys(i).forEach(r=>{const o=i[r].bind({$store:e});s[r]=f.computed(o)}),s}Object.defineProperty($,"RouterLink",{enumerable:!0,get:()=>Ft.RouterLink}),Object.defineProperty($,"RouterView",{enumerable:!0,get:()=>Ft.RouterView}),Object.defineProperty($,"useRoute",{enumerable:!0,get:()=>Ft.useRoute}),Object.defineProperty($,"useRouter",{enumerable:!0,get:()=>Ft.useRouter}),$.DECREMENT=rc,$.INCREMENT=ic,$.INCREMENTACTION=oc,$.getInstance=Ji,$.getVNode=Hs,$.renderComponent=tr,$.routeDirection=Ns,$.useVueEffect=er,$.useVuex=ac,$.useVuexActions=uc,$.useVuexGetters=lc,$.useVuexMutations=hc,$.useVuexStates=cc,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
|
29
|
+
`))}go();const dt=new os;let Oe,Re,Le,Ne;zn(document.documentElement,()=>{setTimeout(()=>{const n=getComputedStyle(document.documentElement),t=n.getPropertyValue("--sat");t!==Oe&&dt.emit("top",t),Oe=t;const e=n.getPropertyValue("--sar");e!==Re&&dt.emit("right",e),Re=e;const s=n.getPropertyValue("--sab");s!==Le&&dt.emit("bottom",s),Le=s;const i=n.getPropertyValue("--sal");i!==Ne&&dt.emit("left",i),Ne=i},0)});const yo={onTop:n=>(Oe&&n(Oe),dt.on("top",n),()=>{dt.off("top",n)}),onRight:n=>(Re&&n(Re),dt.on("right",n),()=>{dt.off("right",n)}),onBottom:n=>(Le&&n(Le),dt.on("bottom",n),()=>{dt.off("bottom",n)}),onLeft:n=>(Ne&&n(Ne),dt.on("left",n),()=>{dt.off("left",n)})};function Rn(n,t,e,s,i){const r=t/e;let o=0,a=0;switch(n){case"aspectFit":r>=1?(o=s,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>s&&(o=s,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=s,a=o/r);break;case"widthFix":o=s,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=s,a=i;break}return{width:o,height:a}}function _o(n){try{const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}catch{return new ImageData(n.width,n.height)}}const xo={1:705234,2:8108026,3:6346665,4:16630114,5:16607842,6:16158139,7:2542847,8:10640125,9:16735870,10:8978266,11:16580418,12:16754221,13:16725759,14:14436630,15:6844849,16:13744437,17:1817755,18:16744272,19:4964291,20:16750848,aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};class ct{static NAMES=xo;_color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),this.setAlpha(e)}get color(){return this._color}set color(t){const e=`Color: Unknown color(${t}) type(${typeof t})`;if(typeof t=="number")this.setHEX(t);else if(typeof t=="string"){let s;if(s=/^(\w+)\(([^)]*)\)/.exec(t)){const i=s[2];let r;switch(s[1]){case"rgb":case"rgba":(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?(this.r=parseInt(r[1],10),this.g=parseInt(r[2],10),this.b=parseInt(r[3],10),this.a=r[4]?parseFloat(r[4]):1):(r=/^\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?(this.r=Y(parseFloat(r[1]),0,100)*255/100,this.g=Y(parseFloat(r[2]),0,100)*255/100,this.b=Y(parseFloat(r[3]),0,100)*255/100,this.a=r[4]?parseFloat(r[4]):1):console.warn(e);break;case"hsl":case"hsla":(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,r[4]?parseFloat(r[4]):1):console.warn(e);break;case"hsv":case"hsva":case"hsb":case"hsba":(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?this.setHSV(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,r[4]?parseFloat(r[4]):1):console.warn(e);break;default:console.warn(e)}}else if(s=/#([A-Fa-f0-9]+)/.exec(t)){const i=s[1],r=i.length;r===3?this.setRGB(parseInt(i.charAt(0),16),parseInt(i.charAt(1),16),parseInt(i.charAt(2),16),1):r===6||r===8?this.setHEX(parseInt(i,16)):console.warn(e)}else if(t&&t.length>0)try{this.setColorName(t)}catch{console.warn(e)}else console.warn(e)}else t instanceof ct?this.setRGB(t.r,t.g,t.b,t.a):Object.prototype.hasOwnProperty.call(t,"r")&&Object.prototype.hasOwnProperty.call(t,"g")&&Object.prototype.hasOwnProperty.call(t,"b")?this.setRGB(t.r,t.g,t.b,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"l")?this.setHSL(t.h,t.s,t.l,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"v")?this.setHSV(t.h,t.s,t.v,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"b")?this.setHSV(t.h,t.s,t.b,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):console.warn(e)}setColor(t){return this.color=t,this}set(t){return this.setColor(t)}get r(){return this._color.r}set r(t){try{this._color.r=Y(Math.round(bt(t)),0,255)}catch{}}get g(){return this._color.g}set g(t){try{this._color.g=Y(Math.round(bt(t)),0,255)}catch{}}get b(){return this._color.b}set b(t){try{this._color.b=Y(Math.round(bt(t)),0,255)}catch{}}get a(){return this._color.a}set a(t){try{this._color.a=Y(bt(t),0,1)}catch{}}setAlpha(t){return this.a=t,this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const e=this.r,s=this.g,i=this.b,r=t.value;return this.r=r[0]*e+r[3]*s+r[6]*i,this.g=r[1]*e+r[4]*s+r[7]*i,this.b=r[2]*e+r[5]*s+r[8]*i,this}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this.a=t[e+3],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t[e+3]=this.a,t}toRGBString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${Ht(this.a,6)})`}toHexString(){return this.a===1?("000000"+this.hex.toString(16)).slice(-6):("00000000"+this.hex.toString(16)).slice(-8)}toString(){return this.a===1?"#"+this.toHexString():this.toRGBString()}toColorSpaceString(t=Jt){Gn.fromWorkingColorSpace(nt.copy(this),t);const e=nt.r,s=nt.g,i=nt.b;return t!==Jt?`color(${t} ${e.toFixed(3)} ${s.toFixed(3)} ${i.toFixed(3)})`:this.toRGBString()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b,yield this.a}clone(){return new ct(this.color)}copy(t){return this.setColor(t.color),this}copySRGBToLinear(t){return this.r=Qt(t.r),this.g=Qt(t.g),this.b=Qt(t.b),this}copyLinearToSRGB(t){return this.r=Kt(t.r),this.g=Kt(t.g),this.b=Kt(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}add(t){return this.r=this.r+t.r,this.g=this.g+t.g,this.b=this.b+t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r=this.r+t,this.g=this.g+t,this.b=this.b+t,this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}sub(t){return this.r=this.r-t.r,this.g=this.g-t.g,this.b=this.b-t.b,this}multiply(t){return this.r=this.r*t.r,this.g=this.g*t.g,this.b=this.b*t.b,this}multiplyScalar(t){return this.r=this.r*t,this.g=this.g*t,this.b=this.b*t,this}opposite(t=!0,e="#000000",s="#ffffff"){if(t)return this.setColor(this.r*.299+this.g*.587+this.b*.114>186?e:s);{const{r:i,g:r,b:o}=this.color;return this.r=255-i,this.g=255-r,this.b=255-o,this}}lighten(t){t=Y(t,0,1);const{r:e,g:s,b:i}=this.color;return this.r=e+(255-e)*t,this.g=s+(255-s)*t,this.b=i+(255-i)*t,this}darken(t){t=Y(t,0,1);const{r:e,g:s,b:i}=this.color;return this.r=e*(1-t),this.g=s*(1-t),this.b=i*(1-t),this}lerp(t,e){e=Y(e,0,1);const{r:s,g:i,b:r}=this.color;return this.r=s+(t.r-s)*e,this.g=i+(t.g-i)*e,this.b=r+(t.b-r)*e,this}lerpColors(t,e,s){return s=Y(s,0,1),this.r=t.r+(e.r-t.r)*s,this.g=t.g+(e.g-t.g)*s,this.b=t.b+(e.b-t.b)*s,this}static gradient(t,e,s){try{return nt.lerpColors(new ct(t),new ct(e),s).toString()}catch{return e}}static random(){return nt.setHEX(Math.random()*16777215).toString()}static nextIndex=0;static next(t=ct.nextIndex){ct.nextIndex=t;const e=Object.keys(ct.NAMES),s=e.length;return nt.setHEX(ct.NAMES[e[ct.nextIndex++%s]]).toString()}setColorName(t){const e=ct.NAMES[t.toLowerCase()];return e!==void 0?this.setHEX(e):t==="none"?this.a=0:(this.a=1,console.warn("Color.setColorName: Unknown color "+t)),this}static getColors(){return Object.values(ct.NAMES).map(t=>nt.setHEX(t).toString())}setRGB(t,e,s,i=1){return this.r=t,this.g=e,this.b=s,this.a=i,this}get rgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}setHEX(t){return t=Math.floor(t),t<16777216?(this.r=t>>16&255,this.g=t>>8&255,this.b=t&255,this.a=1):(this.r=t>>24&255,this.g=t>>16&255,this.b=t>>8&255,this.a=(t&255)/255),this}get hex(){let t=(this.r<<16)+(this.g<<8)+this.b;return this.a!==1&&(t=t<<8,t+=Math.round(this.a*255)),t}setHSL(t,e,s,i=1){const r=br(t,1),o=Y(e,0,1),a=Y(s,0,1);if(o===0)this.r=a*255,this.g=a*255,this.b=a*255;else{const c=a<=.5?a*(1+o):a+o-a*o,l=2*a-c;this.r=Cs(l,c,r+1/3)*255,this.g=Cs(l,c,r)*255,this.b=Cs(l,c,r-1/3)*255}return this.a=i,this}getHSL(t){const e=this.r,s=this.g,i=this.b,r=Math.max(e,s,i)/255,o=Math.min(e,s,i)/255;let a,c;const l=(o+r)/2;if(o===r)a=0,c=0;else{const h=r-o;switch(c=l<=.5?h/(r+o):h/(2-r-o),r){case e:a=(s-i)/h+(s<i?6:0);break;case s:a=(i-e)/h+2;break;case i:default:a=(e-s)/h+4;break}a/=6}return t&&t.setHSL(a,c,l,this.a),{h:a,s:c,l,a:this.a}}offsetHSL(t,e,s){const i=this.getHSL();return this.setHSL(i.h+t,i.s+e,i.l+s)}lerpHSL(t,e){const s=this.getHSL(),i=t.getHSL(),r=ss(s.h,i.h,e),o=ss(s.s,i.s,e),a=ss(s.l,i.l,e);return this.setHSL(r,o,a),this}setHSV(t,e,s,i=1){const r=Y(t,0,1)*360,o=Y(e,0,1),a=Y(s,0,1),c=Math.floor(r/60)%6,l=r/60-Math.floor(r/60),h=a*(1-o),g=a*(1-l*o),b=a*(1-(1-l)*o),y=[[a,b,h],[g,a,h],[h,a,b],[h,g,a],[b,h,a],[a,h,g]][c];return this.r=y[0]*255,this.g=y[1]*255,this.b=y[2]*255,this.a=i,this}setHSB(t,e,s,i=1){this.setHSV(t,e,s,i)}getHSV(t){const{r:e,g:s,b:i,a:r}=this.color,o=Math.max(e,s,i),a=Math.min(e,s,i),c=o-a;let l;e===o?l=(s-i)/c:s===o?l=2+(i-e)/c:l=4+(e-s)/c,l/=6,l<0&&(l+=1);const h=c==0?0:l,g=o===0?0:c/o,b=o/255;return t&&t.setHSV(h,g,b,r),{h,s:g,v:b,a:r}}getHSB(t){const{h:e,s,v:i,a:r}=this.getHSV(t);return{h:e,s,b:i,a:r}}}const nt=new ct;function Qt(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Kt(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}const bo="",Jt="srgb",Ln="srgb-linear",Nn="linear",ws="srgb",Dn=new le().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Vn=new le().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715),Bn=[.64,.33,.3,.6,.15,.06],Xn=[.2126,.7152,.0722],Yn=[.3127,.329],Gn={enabled:!0,workingColorSpace:Ln,spaces:{},convert:function(n,t,e){return this.enabled===!1||t===e||!t||!e||(this.spaces[t].transfer===ws&&(n.r=Qt(n.r),n.g=Qt(n.g),n.b=Qt(n.b)),this.spaces[t].primaries!==this.spaces[e].primaries&&(n.applyMatrix3(this.spaces[t].toXYZ),n.applyMatrix3(this.spaces[e].fromXYZ)),this.spaces[e].transfer===ws&&(n.r=Kt(n.r),n.g=Kt(n.g),n.b=Kt(n.b))),n},fromWorkingColorSpace:function(n,t){return this.convert(n,this.workingColorSpace,t)},toWorkingColorSpace:function(n,t){return this.convert(n,t,this.workingColorSpace)},getPrimaries:function(n){return this.spaces[n].primaries},getTransfer:function(n){return n===bo?Nn:this.spaces[n].transfer},getLuminanceCoefficients:function(n,t=this.workingColorSpace){return n.fromArray(this.spaces[t].luminanceCoefficients)},define:function(n){Object.assign(this.spaces,n)},_getMatrix:function(n,t,e){return n.copy(this.spaces[t].toXYZ).multiply(this.spaces[e].fromXYZ)},_getDrawingBufferColorSpace:function(n){return this.spaces[n].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(n=this.workingColorSpace){return this.spaces[n].workingColorSpaceConfig.unpackColorSpace}};Gn.define({[Ln]:{primaries:Bn,whitePoint:Yn,transfer:Nn,toXYZ:Dn,fromXYZ:Vn,luminanceCoefficients:Xn,workingColorSpaceConfig:{unpackColorSpace:Jt},outputColorSpaceConfig:{drawingBufferColorSpace:Jt}},[Jt]:{primaries:Bn,whitePoint:Yn,transfer:ws,toXYZ:Dn,fromXYZ:Vn,luminanceCoefficients:Xn,outputColorSpaceConfig:{drawingBufferColorSpace:Jt}}});function Cs(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*6*(2/3-e):n}function vo(n){return window.URL.createObjectURL(n)}const $n=new ns;async function To(n,t=6e4){return new Promise((e,s)=>{const i=typeof n=="string"?n:vo(n),r=$n.get(i);if(r)return e(r);const o=document.createElement("img");o.onload=c=>{clearTimeout(a);const l=o.naturalWidth||o.width,h=o.naturalHeight||o.height,g={width:l,height:h,aspectRatio:l/h,element:o,imageData:_o(o)};$n.set(i,g),e(g),o.onerror=o.onload=null},o.onerror=c=>{clearTimeout(a),s(c)},o.src=i;const a=setTimeout(()=>{s("Timeout!")},t)})}function Un(n,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof n=="string"?e.href=n:e.href=window.URL.createObjectURL(n),e.click()}function qn(n,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(n.className)||!1}function jn(n){return{el:n,isRoot:()=>/(html|body)/i.test(n.tagName)||n===document.documentElement,isActive:()=>n===document.activeElement&&(n.type||n.href),getRemSize:function(){return parseFloat(getComputedStyle(document.documentElement).fontSize)},rem2px:function(t){return t*this.getRemSize()},getEmSize:function(){return n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):this.getRemSize()},nearestElement:()=>{let t=n;for(;t&&t.nodeType!==1&&t.parentElement;)t=t.parentElement;return t},parent:()=>n.parentElement,parents:function(t=n,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,s=t.length;e<s;e++)if(/(auto|scroll)/.test(bs(t[e],"overflow")+bs(t[e],"overflow-y")+bs(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>n.contains?n!=t&&n.contains(t):!!(n.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(n.parentElement?.children).filter(t=>t!==n),nextElementSibling:()=>n.nextElementSibling,previousElementSibling:()=>n.previousElementSibling,closest:t=>n.closest(t),shadowRoot:()=>n.shadowRoot,isInput:()=>n.tagName==="INPUT"||n instanceof HTMLInputElement,isSelect:()=>n.tagName==="SELECT"||n instanceof HTMLSelectElement,isTextArea:()=>n.tagName==="TEXTAREA"||n instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(n)&&n.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(n)&&n.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(n)&&n.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(n)&&n.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=n.options;for(let s=0,i=e.length;s<i;s++)e[s].selected=e[s].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(n.name);for(let s=0,i=e.length;s<i;s++){const r=e[s];r.checked=r.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(n.checked=t)},insert:(t,e="append")=>{typeof t=="string"?n[e](wo(t)):n[e](t)},html:function(t){if(typeof t=="string"){n.innerHTML=t;const e=Hn(n);e!=n&&(n=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{n.textContent=t},getInnerText:()=>{if(n instanceof SVGElement)return"";let t=n.innerText;if(!t){const e=n.querySelector("slot")?.assignedNodes()||[];let s=0;for(;!t&&s<=e.length-1;)"innerText"in e[s]&&(t=e[s].innerText),s++}return t},remove:()=>n.remove()}}function wo(n,t=!1){const e=document.createElement("template");return e.innerHTML=n,t&&e.content.childNodes.forEach(s=>{const i=Hn(s);i!=s&&e.content.replaceChild(i,s)}),e.content}function Hn(n){return n.tagName=="SCRIPT"&&(n=Zn(n)),n.querySelectorAll&&n.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Zn(t),t)}),n}function Zn(n){const t=n.ownerDocument.createElement("script");t.text=n.text;const e=n.attributes;for(let s=0,i=e.length;s<i;s++)t.setAttribute(e[s].name,e[s].value);return t}async function Co(n){if(navigator.clipboard)return await navigator.clipboard.writeText(n);{const t=document.createElement("textarea");return t.value=n,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function So(n,t={},e=[],s){return{tag:n,props:t,children:e,el:s}}function Ss(n){return So(n.tagName,En(n),Array.from(n.children).map(t=>Ss(t)),n)}function De(n,t=document.documentElement){if(n.el)return n.el;if(n.el=document.createElement(n.tag),n.props)for(const e in n.props){const s=n.props[e];e.startsWith("on")?n.el.addEventListener(e.slice(2).toLowerCase(),s):e==="style"?he(n.el,n.props[e]):ze(n.el,e,s)}return n.children&&(typeof n.children=="string"?n.el.appendChild(document.createTextNode(n.children)):n.children.forEach(e=>{De(e,n.el)})),t.appendChild(n.el),n.el}function Wn(n,t){if(!n.el)return;if(n.tag!==t.tag){(n.el.parentElement||document.body).replaceChild(De(t),n.el);return}const e=t.el=n.el,s=n.props,i=t.props;for(const a in s)a in i||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),s[a]):e.removeAttribute(a));for(const a in i){const c=s[a],l=i[a];if(l!=c)if(a.startsWith("on")){const h=a.slice(2).toLowerCase();e.removeEventListener(h,c),e.addEventListener(h,l)}else if(a==="style"){for(const h in c)h in l||kn(e,h);he(e,l)}else ze(e,a,l)}const r=n.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof r=="string")e.innerHTML="",o.forEach(a=>{De(a,e)});else{const a=Math.min(r.length,o.length);for(let c=0;c<a;c++)Wn(r[c],o[c]);o.length>r.length&&o.slice(r.length).forEach(c=>{De(c,e)}),o.length<r.length&&r.slice(o.length).forEach(c=>{c.el&&e.removeChild(c.el)})}}const Po={class:"page"},ko={class:"page-header"},Eo={class:"page-main"},Ao={class:"page-main-scroll"},Mo={class:"page-footer"},Io={class:"page-global"},Fo=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutPage",setup(n,{expose:t}){return t({}),(e,s)=>(f.openBlock(),f.createElementBlock("div",Po,[f.createElementVNode("div",ko,[f.renderSlot(e.$slots,"header",{},void 0,!0)]),f.createElementVNode("div",Eo,[f.createElementVNode("div",Ao,[f.renderSlot(e.$slots,"default",{},void 0,!0)])]),f.createElementVNode("div",Mo,[f.renderSlot(e.$slots,"footer",{},void 0,!0)]),f.createElementVNode("div",Io,[f.renderSlot(e.$slots,"global",{},void 0,!0)])]))}}),Vc="",zt=(n,t)=>{const e=n.__vccOpts||n;for(const[s,i]of t)e[s]=i;return e},te=zt(Fo,[["__scopeId","data-v-3c77fd20"]]),zo={class:"view-document"},Oo=["src"],Ro=f.defineComponent({inheritAttrs:!0,customOptions:{LayoutPage:te},__name:"ViewDocument",props:{src:{default:""},title:{default:""}},setup(n){const t=n,e=Ft.useRoute();po(typeof e.params.title=="string"?e.params.title:t.title);const s=decodeURIComponent(typeof e.params.src=="string"?e.params.src:t.src);return(i,r)=>(f.openBlock(),f.createBlock(te,null,{default:f.withCtx(()=>[f.createElementVNode("div",zo,[f.createElementVNode("img",{class:"img",src:f.unref(s)},null,8,Oo)])]),_:1}))}}),Bc="",Qn=zt(Ro,[["__scopeId","data-v-786ac2a3"]]),Kn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ve=(n,t,e,s="")=>{const i=n.split(":");if(n.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(),c=i.pop(),l={provider:i.length>0?i[0]:s,prefix:c,name:a};return t&&!Be(l)?null:l}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return t&&!Be(a)?null:a}if(e&&s===""){const a={provider:s,prefix:"",name:r};return t&&!Be(a,e)?null:a}return null},Be=(n,t)=>n?!!((t&&n.prefix===""||n.prefix)&&n.name):!1,Jn=Object.freeze({left:0,top:0,width:16,height:16}),Xe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ye=Object.freeze({...Jn,...Xe}),Ps=Object.freeze({...Ye,body:"",hidden:!1});function Lo(n,t){const e={};!n.hFlip!=!t.hFlip&&(e.hFlip=!0),!n.vFlip!=!t.vFlip&&(e.vFlip=!0);const s=((n.rotate||0)+(t.rotate||0))%4;return s&&(e.rotate=s),e}function ti(n,t){const e=Lo(n,t);for(const s in Ps)s in Xe?s in n&&!(s in e)&&(e[s]=Xe[s]):s in t?e[s]=t[s]:s in n&&(e[s]=n[s]);return e}function No(n,t){const e=n.icons,s=n.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=s[o]&&s[o].parent,c=a&&r(a);c&&(i[o]=[a].concat(c))}return i[o]}return Object.keys(e).concat(Object.keys(s)).forEach(r),i}function Do(n,t,e){const s=n.icons,i=n.aliases||Object.create(null);let r={};function o(a){r=ti(s[a]||i[a],r)}return o(t),e.forEach(o),ti(n,r)}function ei(n,t){const e=[];if(typeof n!="object"||typeof n.icons!="object")return e;n.not_found instanceof Array&&n.not_found.forEach(i=>{t(i,null),e.push(i)});const s=No(n);for(const i in s){const r=s[i];r&&(t(i,Do(n,i,r)),e.push(i))}return e}const Vo={provider:"",aliases:{},not_found:{},...Jn};function ks(n,t){for(const e in t)if(e in n&&typeof n[e]!=typeof t[e])return!1;return!0}function si(n){if(typeof n!="object"||n===null)return null;const t=n;if(typeof t.prefix!="string"||!n.icons||typeof n.icons!="object"||!ks(n,Vo))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i||typeof r.body!="string"||!ks(r,Ps))return null}const s=t.aliases||Object.create(null);for(const i in s){const r=s[i],o=r.parent;if(!i||typeof o!="string"||!e[o]&&!s[o]||!ks(r,Ps))return null}return t}const ni=Object.create(null);function Bo(n,t){return{provider:n,prefix:t,icons:Object.create(null),missing:new Set}}function ee(n,t){const e=ni[n]||(ni[n]=Object.create(null));return e[t]||(e[t]=Bo(n,t))}function ii(n,t){return si(t)?ei(t,(e,s)=>{s?n.icons[e]=s:n.missing.add(e)}):[]}function Xo(n,t,e){try{if(typeof e.body=="string")return n.icons[t]={...e},!0}catch{}return!1}let fe=!1;function ri(n){return typeof n=="boolean"&&(fe=n),fe}function Yo(n){const t=typeof n=="string"?Ve(n,!0,fe):n;if(t){const e=ee(t.provider,t.prefix),s=t.name;return e.icons[s]||(e.missing.has(s)?null:void 0)}}function Go(n,t){const e=Ve(n,!0,fe);if(!e)return!1;const s=ee(e.provider,e.prefix);return t?Xo(s,e.name,t):(s.missing.add(e.name),!0)}function $o(n,t){if(typeof n!="object")return!1;if(typeof t!="string"&&(t=n.provider||""),fe&&!t&&!n.prefix){let i=!1;return si(n)&&(n.prefix="",ei(n,(r,o)=>{Go(r,o)&&(i=!0)})),i}const e=n.prefix;if(!Be({provider:t,prefix:e,name:"a"}))return!1;const s=ee(t,e);return!!ii(s,n)}const oi=Object.freeze({width:null,height:null}),ai=Object.freeze({...oi,...Xe}),Uo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ci(n,t,e){if(t===1)return n;if(e=e||100,typeof n=="number")return Math.ceil(n*t*e)/e;if(typeof n!="string")return n;const s=n.split(Uo);if(s===null||!s.length)return n;const i=[];let r=s.shift(),o=qo.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=s.shift(),r===void 0)return i.join("");o=!o}}function jo(n,t="defs"){let e="";const s=n.indexOf("<"+t);for(;s>=0;){const i=n.indexOf(">",s),r=n.indexOf("</"+t);if(i===-1||r===-1)break;const o=n.indexOf(">",r);if(o===-1)break;e+=n.slice(i+1,r).trim(),n=n.slice(0,s).trim()+n.slice(o+1)}return{defs:e,content:n}}function Ho(n,t){return n?"<defs>"+n+"</defs>"+t:t}function Zo(n,t,e){const s=jo(n);return Ho(s.defs,t+s.content+e)}const Wo=n=>n==="unset"||n==="undefined"||n==="none";function Qo(n,t){const e={...Ye,...n},s={...ai,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,s].forEach(S=>{const P=[],w=S.hFlip,C=S.vFlip;let _=S.rotate;w?C?_+=2:(P.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),P.push("scale(-1 1)"),i.top=i.left=0):C&&(P.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),P.push("scale(1 -1)"),i.top=i.left=0);let p;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:p=i.height/2+i.top,P.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:P.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:p=i.width/2+i.left,P.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}_%2===1&&(i.left!==i.top&&(p=i.left,i.left=i.top,i.top=p),i.width!==i.height&&(p=i.width,i.width=i.height,i.height=p)),P.length&&(r=Zo(r,'<g transform="'+P.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,c=i.width,l=i.height;let h,g;o===null?(g=a===null?"1em":a==="auto"?l:a,h=ci(g,c/l)):(h=o==="auto"?c:o,g=a===null?ci(h,l/c):a==="auto"?l:a);const b={},y=(S,P)=>{Wo(P)||(b[S]=P.toString())};y("width",h),y("height",g);const m=[i.left,i.top,c,l];return b.viewBox=m.join(" "),{attributes:b,viewBox:m,body:r}}const Ko=/\sid="(\S+)"/g,Jo="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ta=0;function ea(n,t=Jo){const e=[];let s;for(;s=Ko.exec(n);)e.push(s[1]);if(!e.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(ta++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const Es=Object.create(null);function sa(n,t){Es[n]=t}function As(n){return Es[n]||Es[""]}function Ms(n){let t;if(typeof n.resources=="string")t=[n.resources];else if(t=n.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const Is=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],Ge=[];for(;me.length>0;)me.length===1||Math.random()>.5?Ge.push(me.shift()):Ge.push(me.pop());Is[""]=Ms({resources:["https://api.iconify.design"].concat(Ge)});function na(n,t){const e=Ms(t);return e===null?!1:(Is[n]=e,!0)}function Fs(n){return Is[n]}let li=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function ia(n,t){const e=Fs(n);if(!e)return 0;let s;if(!e.maxURL)s=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";s=e.maxURL-i-e.path.length-r.length}return s}function ra(n){return n===404}const oa=(n,t,e)=>{const s=[],i=ia(n,t),r="icons";let o={type:r,provider:n,prefix:t,icons:[]},a=0;return e.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(s.push(o),o={type:r,provider:n,prefix:t,icons:[]},a=c.length),o.icons.push(c)}),s.push(o),s};function aa(n){if(typeof n=="string"){const t=Fs(n);if(t)return t.path}return"/"}const ca={prepare:oa,send:(n,t,e)=>{if(!li){e("abort",424);return}let s=aa(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;li(n+s).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(ra(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function la(n){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);n.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 n.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,c=e[r]||(e[r]=Object.create(null)),l=c[o]||(c[o]=ee(r,o));let h;a in l.icons?h=t.loaded:o===""||l.missing.has(a)?h=t.missing:h=t.pending;const g={provider:r,prefix:o,name:a};h.push(g)}),t}function hi(n,t){n.forEach(e=>{const s=e.loaderCallbacks;s&&(e.loaderCallbacks=s.filter(i=>i.id!==t))})}function ha(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const t=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const s=n.provider,i=n.prefix;t.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(n.icons[l])o.loaded.push({provider:s,prefix:i,name:l});else if(n.missing.has(l))o.missing.push({provider:s,prefix:i,name:l});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||hi([n],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let ua=0;function fa(n,t,e){const s=ua++,i=hi.bind(null,e,s);if(!t.pending.length)return i;const r={id:s,icons:t,callback:n,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function ma(n,t=!0,e=!1){const s=[];return n.forEach(i=>{const r=typeof i=="string"?Ve(i,t,e):i;r&&s.push(r)}),s}var da={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pa(n,t,e,s){const i=n.resources.length,r=n.random?Math.floor(Math.random()*i):n.index;let o;if(n.random){let x=n.resources.slice(0);for(o=[];x.length>1;){const I=Math.floor(Math.random()*x.length);o.push(x[I]),x=x.slice(0,I).concat(x.slice(I+1))}o=o.concat(x)}else o=n.resources.slice(r).concat(n.resources.slice(0,r));const a=Date.now();let c="pending",l=0,h,g=null,b=[],y=[];typeof s=="function"&&y.push(s);function m(){g&&(clearTimeout(g),g=null)}function S(){c==="pending"&&(c="aborted"),m(),b.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),b=[]}function P(x,I){I&&(y=[]),typeof x=="function"&&y.push(x)}function w(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:b.length,subscribe:P,abort:S}}function C(){c="failed",y.forEach(x=>{x(void 0,h)})}function _(){b.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),b=[]}function p(x,I,O){const R=I!=="success";switch(b=b.filter(L=>L!==x),c){case"pending":break;case"failed":if(R||!n.dataAfterTimeout)return;break;default:return}if(I==="abort"){h=O,C();return}if(R){h=O,b.length||(o.length?v():C());return}if(m(),_(),!n.random){const L=n.resources.indexOf(x.resource);L!==-1&&L!==n.index&&(n.index=L)}c="completed",y.forEach(L=>{L(O)})}function v(){if(c!=="pending")return;m();const x=o.shift();if(x===void 0){if(b.length){g=setTimeout(()=>{m(),c==="pending"&&(_(),C())},n.timeout);return}C();return}const I={status:"pending",resource:x,callback:(O,R)=>{p(I,O,R)}};b.push(I),l++,g=setTimeout(v,n.rotate),e(x,t,I.callback)}return setTimeout(v),w}function ui(n){const t={...da,...n};let e=[];function s(){e=e.filter(a=>a().status==="pending")}function i(a,c,l){const h=pa(t,a,c,(g,b)=>{s(),l&&l(g,b)});return e.push(h),h}function r(a){return e.find(c=>a(c))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:s}}function fi(){}const zs=Object.create(null);function ga(n){if(!zs[n]){const t=Fs(n);if(!t)return;const e=ui(t),s={config:t,redundancy:e};zs[n]=s}return zs[n]}function ya(n,t,e){let s,i;if(typeof n=="string"){const r=As(n);if(!r)return e(void 0,424),fi;i=r.send;const o=ga(n);o&&(s=o.redundancy)}else{const r=Ms(n);if(r){s=ui(r);const o=n.resources?n.resources[0]:"",a=As(o);a&&(i=a.send)}}return!s||!i?(e(void 0,424),fi):s.query(t,i,e)().abort}function mi(){}function _a(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,ha(n)}))}function xa(n){const t=[],e=[];return n.forEach(s=>{(s.match(Kn)?t:e).push(s)}),{valid:t,invalid:e}}function de(n,t,e){function s(){const i=n.pendingIcons;t.forEach(r=>{i&&i.delete(r),n.icons[r]||n.missing.add(r)})}if(e&&typeof e=="object")try{if(!ii(n,e).length){s();return}}catch(i){console.error(i)}s(),_a(n)}function di(n,t){n instanceof Promise?n.then(e=>{t(e)}).catch(()=>{t(null)}):t(n)}function ba(n,t){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(t).sort():n.iconsToLoad=t,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:e,prefix:s}=n,i=n.iconsToLoad;if(delete n.iconsToLoad,!i||!i.length)return;const r=n.loadIcon;if(n.loadIcons&&(i.length>1||!r)){di(n.loadIcons(i,s,e),h=>{de(n,i,h)});return}if(r){i.forEach(h=>{const g=r(h,s,e);di(g,b=>{const y=b?{prefix:s,icons:{[h]:b}}:null;de(n,[h],y)})});return}const{valid:o,invalid:a}=xa(i);if(a.length&&de(n,a,null),!o.length)return;const c=s.match(Kn)?As(e):null;if(!c){de(n,o,null);return}c.prepare(e,s,o).forEach(h=>{ya(e,h,g=>{de(n,h.icons,g)})})}))}const va=(n,t)=>{const e=ma(n,!0,ri()),s=la(e);if(!s.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(s.loaded,s.missing,s.pending,mi)}),()=>{c=!1}}const i=Object.create(null),r=[];let o,a;return s.pending.forEach(c=>{const{provider:l,prefix:h}=c;if(h===a&&l===o)return;o=l,a=h,r.push(ee(l,h));const g=i[l]||(i[l]=Object.create(null));g[h]||(g[h]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:h,name:g}=c,b=ee(l,h),y=b.pendingIcons||(b.pendingIcons=new Set);y.has(g)||(y.add(g),i[l][h].push(g))}),r.forEach(c=>{const l=i[c.provider][c.prefix];l.length&&ba(c,l)}),t?fa(t,s,r):mi};function Ta(n,t){const e={...n};for(const s in t){const i=t[s],r=typeof i;s in oi?(i===null||i&&(r==="string"||r==="number"))&&(e[s]=i):r===typeof e[s]&&(e[s]=s==="rotate"?i%4:i)}return e}const wa=/[\s,]+/;function Ca(n,t){t.split(wa).forEach(e=>{switch(e.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function Sa(n,t=0){const e=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(e!==n){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(n.slice(0,n.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?s(r):0)}}return t}function Pa(n,t){let e=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)e+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+n+"</svg>"}function ka(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ea(n){return"data:image/svg+xml,"+ka(n)}function Aa(n){return'url("'+Ea(n)+'")'}const pi={...ai,inline:!1},Ma={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ia={display:"inline-block"},Os={backgroundColor:"currentColor"},gi={backgroundColor:"transparent"},yi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},_i={webkitMask:Os,mask:Os,background:gi};for(const n in _i){const t=_i[n];for(const e in yi)t[n+e]=yi[e]}const $e={};["horizontal","vertical"].forEach(n=>{const t=n.slice(0,1)+"Flip";$e[n+"-flip"]=t,$e[n.slice(0,1)+"-flip"]=t,$e[n+"Flip"]=t});function xi(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const bi=(n,t)=>{const e=Ta(pi,t),s={...Ma},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let S in t){const P=t[S];if(P!==void 0)switch(S){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":e[S]=P===!0||P==="true"||P===1;break;case"flip":typeof P=="string"&&Ca(e,P);break;case"color":r.color=P;break;case"rotate":typeof P=="string"?e[S]=Sa(P):typeof P=="number"&&(e[S]=P);break;case"ariaHidden":case"aria-hidden":P!==!0&&P!=="true"&&delete s["aria-hidden"];break;default:{const w=$e[S];w?(P===!0||P==="true"||P===1)&&(e[w]=!0):pi[S]===void 0&&(s[S]=P)}}}const c=Qo(n,e),l=c.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){s.style={...r,...a},Object.assign(s,l);let S=0,P=t.id;return typeof P=="string"&&(P=P.replace(/-/g,"_")),s.innerHTML=ea(c.body,P?()=>P+"ID"+S++:"iconifyVue"),f.h("svg",s)}const{body:h,width:g,height:b}=n,y=i==="mask"||(i==="bg"?!1:h.indexOf("currentColor")!==-1),m=Pa(h,{...l,width:g+"",height:b+""});return s.style={...r,"--svg":Aa(m),width:xi(l.width),height:xi(l.height),...Ia,...y?Os:gi,...a},f.h("span",s)};if(ri(!0),sa("",ca),typeof document<"u"&&typeof window<"u"){const n=window;if(n.IconifyPreload!==void 0){const t=n.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!$o(s))&&console.error(e)}catch{console.error(e)}})}if(n.IconifyProviders!==void 0){const t=n.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const s="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;na(e,i)||console.error(s)}catch{console.error(s)}}}}const Fa={...Ye,body:""},za=f.defineComponent({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(n,t,e){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let s;if(typeof n!="string"||(s=Ve(n,!1,!0))===null)return this.abortLoading(),null;let i=Yo(s);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:n,abort:va([s],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==n&&(this._name=n,t&&t(n)),e){i=Object.assign({},i);const o=e(i.body,s.name,s.prefix,s.provider);typeof o=="string"&&(i.body=o)}const r=["iconify"];return s.prefix!==""&&r.push("iconify--"+s.prefix),s.provider!==""&&r.push("iconify--"+s.provider),{data:i,classes:r}}},render(){this.counter;const n=this.$attrs,t=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad,n.customise):null;if(!t)return bi(Fa,n);let e=n;return t.classes&&(e={...n,class:(typeof n.class=="string"?n.class+" ":"")+t.classes.join(" ")}),bi({...Ye,...t.data},e)}}),vi=f.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ts("--xg-blue")}},setup(n){const t=n;return(e,s)=>(f.openBlock(),f.createElementBlock("span",{class:"icon",style:f.normalizeStyle(["color: "+e.color,"display: inline-flex","justify-content: center","align-items: center","cursor: pointer","font-size: 1em"])},[f.createVNode(f.unref(za),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Oa={class:"loading-11",ref:"loading11"},Ra={class:"container container-1"},La={class:"container container-2"},Na={class:"container container-3"},Da=f.defineComponent({__name:"Loading11",props:{color:{default:Ts("--xg-blue")},width:{default:"0.8em"}},setup(n){const t=n;return(e,s)=>(f.openBlock(),f.createElementBlock("div",Oa,[f.createElementVNode("div",{class:"loading-11-inner",style:f.normalizeStyle({width:t.width,height:t.width})},[f.createElementVNode("div",Ra,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)]),f.createElementVNode("div",La,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)]),f.createElementVNode("div",Na,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),Gc="",Ti=zt(Da,[["__scopeId","data-v-b6f6b2a6"]]),Va={key:0,class:"loading",style:{"margin-right":"6px"}},Rs=.03,Ls=.06,wi=f.defineComponent({customOptions:{Loading11:Ti},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"16px"},fontWeight:{default:"normal"},borderRadius:{default:"4px"},stylePattern:{default:"fullfill"},fontColor:{},borderColor:{},bgColor:{},bgColorStart:{},bgColorEnd:{},asyncClick:{}},emits:["yz-click","click"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.ref(),o=Ts("--xg-blue","#5a82f0"),a=f.ref(s.fontColor),c=f.ref(s.borderColor),l=f.ref(s.bgColor),h=f.ref(a.value),g=f.ref(c.value),b=f.ref(l.value),y=f.ref(s.bgColorStart||""),m=f.ref(s.bgColorEnd||""),S=s.bgColorStart&&s.bgColorEnd;function P(R){switch(R){case"transparent":c.value=s.borderColor||"rgba(255,255,255,0)",l.value=s.bgColor||"rgba(255,255,255,0)",a.value=s.fontColor||o;break;case"outline":c.value=s.borderColor||o,l.value=s.bgColor||"rgba(255,255,255,0)",a.value=s.fontColor||o;break;case"fullfill":default:c.value=s.borderColor||"rgba(255,255,255,0)",l.value=s.bgColor||o,a.value=s.fontColor||nt.set(l.value).opposite(!0).toString();break}h.value=a.value,g.value=c.value,b.value=l.value,S&&(y.value=s.bgColorStart,m.value=s.bgColorEnd,l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`)}f.watch(()=>s.stylePattern,()=>{P(s.stylePattern)},{immediate:!0});const w=f.ref(s.disabled?"0.6":"1"),C=f.ref(s.disabled?"not-allowed":"pointer");let _=!1;const p=()=>{s.disabled||(_=!0,s.stylePattern=="transparent"&&(a.value=nt.set(h.value).darken(Rs).toString()),c.value=nt.set(g.value).darken(Rs).toString(),S?l.value=`linear-gradient(180deg, ${m.value} 0%, ${y.value} 100%)`:l.value=nt.set(b.value).darken(Rs).toString())},v=()=>{s.disabled||(_=!1,a.value=h.value,c.value=g.value,S?l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`:l.value=b.value)},x=f.ref(!1),O=Sr(()=>{s.disabled||x.value||(s.stylePattern=="transparent"&&(a.value=nt.set(h.value).darken(Ls).toString()),c.value=nt.set(g.value).darken(Ls).toString(),S?l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`:l.value=nt.set(b.value).darken(Ls).toString(),setTimeout(()=>{_?p():v()},150),i("yz-click"),i("click"),s.asyncClick&&(x.value=!0,s.asyncClick().then(()=>{x.value=!1}).catch(()=>{x.value=!1})))},300);return t({el:r}),(R,L)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"el",ref:r,class:"button",style:f.normalizeStyle([`opacity: ${w.value}`,`border: 1px solid ${c.value}`,`background: ${l.value}`,`color: ${a.value}`,`border-radius: ${s.borderRadius}`,`width: ${s.width}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${C.value}`,"user-select: none","box-sizing: border-box","display: inline-flex","justify-content: center","align-items: center","z-index: 0"]),onMouseover:p,onMouseleave:v,onClick:L[0]||(L[0]=(...B)=>f.unref(O)&&f.unref(O)(...B))},[f.createElementVNode("label",{class:"label truncate",style:f.normalizeStyle({padding:"0 "+R.padding,cursor:C.value,display:"inline-flex",justifyContent:"center",alignItems:"center",fontWeight:s.fontWeight||"normal"})},[x.value?(f.openBlock(),f.createElementBlock("div",Va,[f.createVNode(Ti,{color:a.value},null,8,["color"])])):f.createCommentVNode("",!0),f.renderSlot(R.$slots,"default",{},()=>[R.icon&&R.iconPosition==="left"?(f.openBlock(),f.createBlock(vi,{key:0,icon:R.icon,color:a.value,style:f.normalizeStyle({marginRight:"4px",cursor:C.value})},null,8,["icon","color","style"])):f.createCommentVNode("",!0),f.createElementVNode("span",{style:f.normalizeStyle({cursor:C.value})},f.toDisplayString(R.label),5),R.icon&&R.iconPosition==="right"?(f.openBlock(),f.createBlock(vi,{key:1,icon:R.icon,color:a.value,style:f.normalizeStyle({marginLeft:"4px",cursor:C.value})},null,8,["icon","color","style"])):f.createCommentVNode("",!0)])],4)],36))}}),Ba={class:"xg-footer-inner"},Xa=f.defineComponent({customOptions:{Button:wi},inheritAttrs:!0,__name:"Footer",setup(n){const t=Ft.useRouter();function e(){t.push("/park")}const s=f.ref("0px");let i;return f.onMounted(()=>{i=yo.onBottom(r=>{s.value=r})}),f.onUnmounted(()=>{i?.()}),(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:"xg-footer",style:f.normalizeStyle({paddingBottom:s.value})},[f.createElementVNode("div",Ba,[f.createVNode(wi,{label:"去支付",width:"100%",onClick:e})])],4))}}),$c="",Ci=zt(Xa,[["__scopeId","data-v-47056f4a"]]),Ya={class:"text"},Ga=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"}},setup(n,{expose:t,emit:e}){const s=n,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":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function r(l){switch(l){case"b":case"蓝牌":l="蓝牌";break;case"g":case"绿牌":l="绿牌";break;case"y":case"黄牌":l="黄牌";break;case"q":case"黄绿":l="黄绿";break;case"d":case"黑牌":l="黑牌";break;case"w":case"白牌":l="白牌";break;default:l="未知";break}const h=i.filter(g=>g.name===l);return h.length?h[0]:r("未知")}const o=f.ref(r(s.plateType||"")),a=f.ref(),c=f.ref(14);return f.onMounted(()=>{c.value=jn(a.value).getEmSize()}),t({}),(l,h)=>(f.openBlock(),f.createElementBlock("div",{class:"plate-display",ref_key:"el",ref:a},[l.displayType=="dot"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["leading",l.displayType]),style:f.normalizeStyle({...o.value.style,width:c.value+"px",height:c.value+"px",marginRight:.36*c.value+"px"})},f.toDisplayString(o.value.name),7)):f.createCommentVNode("",!0),l.displayType=="chinese"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(["leading",l.displayType]),style:f.normalizeStyle(o.value.style)},f.toDisplayString(o.value.name),7)):f.createCommentVNode("",!0),l.displayType=="plaintext"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:2,class:f.normalizeClass(["leading",l.displayType])},f.toDisplayString(o.value.name),3)):f.createCommentVNode("",!0),f.createElementVNode("div",Ya,f.toDisplayString(l.plate),1)],512))}}),Uc="",Si=zt(Ga,[["__scopeId","data-v-6395bb5a"]]),lt=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1}},emits:["ready","update","clipboard_success","clipboard_error","start","end"],setup(n,{expose:t,emit:e}){const s=n,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},c=()=>{r=="start"?a():o()},l=f.ref();let h,g,b=!1;return f.watchEffect(()=>{l.value&&(h||(h=fo(l.value),h.eb.on("resize",()=>{b&&i("update",h)}),h.eb.on("mouseEnter",()=>{s.effectTriggerTiming=="mouseMove"&&c()}),h.eb.on("mouseLeave",()=>{s.effectTriggerTiming=="mouseMove"&&c()}),h.eb.on("tap",()=>{if(s.effectTriggerTiming=="click"&&c(),s.supportCopyText){const y=jn(l.value).getInnerText();Co(y).then(()=>{i("clipboard_success",y)}).catch(m=>{i("clipboard_error",m.toString())})}}),s.effectTriggerTiming!=="manual"&&o(),s.effectTriggerTiming=="immediate"&&c(),h.start().then(()=>{g?.(h),i("ready",h),b=!0})))}),f.onMounted(()=>{}),f.onUnmounted(()=>{h?.end()}),t({getController:()=>new Promise(y=>{if(h)return y(h);g=y}),getElement:()=>l.value,getRect:()=>l.value.getBoundingClientRect()}),(y,m)=>(f.openBlock(),f.createElementBlock("div",f.mergeProps({ref_key:"r",ref:l,class:"container",style:{position:"relative",boxSizing:"border-box",display:s.type=="shrink"?"inline-block":"block",width:s.type=="full"?"100%":"auto",height:s.type=="full"?"100%":"auto"}},y.$attrs),[f.renderSlot(y.$slots,"default")],16))}}),Pi=f.defineComponent({customOptions:{Container:lt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.reactive({}),o=f.reactive({});let a=s.name,c=s.duration,l=s.timingFunction,h=s.delay,g=s.repeat,b=s.direction;function y(x){switch(a=x,a){case"superRainbow":c=s.duration||15e3;break;case"heartBeat":c=s.duration||1300;break;case"statusProcessing":c=s.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":c=s.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":c=s.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":c=s.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":c=s.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":c=s.duration||600;break;default:c=s.duration||500;break}switch(a){case"superRainbow":l=s.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":l=s.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":l=s.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":l=s.timingFunction||"ease-in-out";break;default:l=s.timingFunction||"ease";break}switch(a){default:h=s.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":g=s.repeat||"infinite";break;default:g=s.repeat||1;break}switch(a){case"superRainbow":b=s.direction||"alternate";break;default:b=s.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}const m=f.ref(),S=x=>{r.perspective=s.perspective,x.eb.on("animationstart",I=>{i("cssanimationstart",I.animationName)}),x.eb.on("animationend",I=>{i("cssanimationend",I.animationName)})};function P(){m.value.style.animation="none",m.value.offsetHeight,m.value.style.animation=null}const w=()=>{o.animation="none"},C=()=>{P(),o.animation=`${c}ms ${l} ${h}ms ${g} ${b} ${s.fillMode} ${s.playState} ${a}`},_=x=>{x&&y(x),w(),b="normal",C()},p=x=>{x&&y(x),w(),b="reverse",C()},v=()=>{o.animation="none"};return f.watch(()=>s.name,()=>{y(s.name)},{immediate:!0}),t({trigger:_,triggerReverse:p,clear:v}),(x,I)=>(f.openBlock(),f.createBlock(lt,{class:"css-animation",type:s.containerType,supportCopyText:s.supportCopyText,effectTriggerTiming:s.effectTriggerTiming,style:f.normalizeStyle(r),onReady:S,onStart:w,onEnd:C},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"css-animation-inner",ref_key:"animationRef",ref:m,style:f.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[f.renderSlot(x.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),qc="",ki=f.defineComponent({customOptions:{Container:lt,CSSAnimation:Pi},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:F.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.ref(),o=f.reactive({}),a=()=>{i("ready",x,I)},c=()=>{S()},l=f.ref();let h="rotateRightSideFirst",g=s.effect;function b(O,R){switch(g){case"static":R();break;default:O();break}}let y=!1;const m=new we,S=()=>{const O={},R={};m.clear(),m.frameDuration=s.duration,b(()=>{h=g},()=>{m.addTween(O,R,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{i(y?"pageCloseStart":"pageOpenStart")},onUpdate:L=>{o.transform="","x"in L&&(o.transform+=` translateX(${L.x}%)`),"y"in L&&(o.transform+=` translateY(${L.y}%)`),"rx"in L&&(o.transform+=` rotateX(${L.rx}deg)`),"ry"in L&&(o.transform+=` rotateY(${L.ry}deg)`),"scale"in L&&(o.transform+=` scale(${L.scale})`),"opacity"in L&&(o.opacity=`${L.opacity}`)},onComplete:()=>{i(y?"pageCloseEnd":"pageOpenEnd")}})})};f.watch(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{g=s.effect,S()},{immediate:!0});const P=()=>{i(y?"pageCloseStart":"pageOpenStart")},w=()=>{i(y?"pageCloseEnd":"pageOpenEnd")},C=()=>{b(()=>{l.value.trigger(h)},()=>{m.play()})},_=()=>{b(()=>{l.value.triggerReverse(h)},()=>{m.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function v(){b(()=>{p()},()=>{l.value?.clear()})}const x=O=>{O&&(g=O,S()),y=!1,v(),C()},I=O=>{O&&(g=O,S()),y=!0,v(),_()};return t({open:x,close:I,clear:p}),(O,R)=>(f.openBlock(),f.createBlock(lt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onUpdate:c},{default:f.withCtx(()=>[f.createVNode(Pi,{ref_key:"cssAnimationRef",ref:l,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:P,onCssanimationend:w},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"page-inner",style:f.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[f.renderSlot(O.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Ei=f.defineComponent({customOptions:{Page:ki,Container:lt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:F.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(n,{expose:t,emit:e}){const s=n,i=e;let r=-1,o=-1,a;const c=[];let l=[],h=[],g=[];function b(N){return N>=0&&N<l.length}function y(){return o>r}function m(N,E,ht){switch(N){case r:return y()?E:ht;case o:return y()?ht:E;default:return"static"}}function S(N,E){switch(N){case"moveToLeft":return m(E,"moveToLeft","moveFromRight");case"moveToRight":return m(E,"moveToRight","moveFromLeft");case"moveToTop":return m(E,"moveToTop","moveFromBottom");case"moveToBottom":return m(E,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return m(E,"fade","moveFromLeft");case"moveFromRightPrevFade":return m(E,"fade","moveFromRight");case"moveFromTopPrevFade":return m(E,"fade","moveFromTop");case"moveFromBottomPrevFade":return m(E,"fade","moveFromBottom");case"moveToLeftFade":return m(E,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return m(E,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return m(E,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return m(E,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return m(E,"moveToLeft","moveFromRight");case"moveToRightEasing":return m(E,"moveToRight","moveFromLeft");case"moveToTopEasing":return m(E,"moveToTop","moveFromBottom");case"moveToBottomEasing":return m(E,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return m(E,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return m(E,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return m(E,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return m(E,"scaleToSmall","moveFromBottom");case"scaleSmall":return m(E,"scaleToSmall","scaleFromLarge");case"scaleLarge":return m(E,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return m(E,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return m(E,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return m(E,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return m(E,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return m(E,"moveToBottom","scaleFromSmall");case"glueToLeft":return m(E,"rotateRightSideFirst","moveFromRight");case"glueToRight":return m(E,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return m(E,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return m(E,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return m(E,"flipOutLeft","flipInRight");case"flipToRight":return m(E,"flipOutRight","flipInLeft");case"flipToTop":return m(E,"flipOutTop","flipInBottom");case"flipToBottom":return m(E,"flipOutBottom","flipInTop");case"rotateFall":return m(E,"rotateFall","scaleFromSmall");case"newspaper":return m(E,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return m(E,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return m(E,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return m(E,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return m(E,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return m(E,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return m(E,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return m(E,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return m(E,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return m(E,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return m(E,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return m(E,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return m(E,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return m(E,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return m(E,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return m(E,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return m(E,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return m(E,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return m(E,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return m(E,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return m(E,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return m(E,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return m(E,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return m(E,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return m(E,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return m(E,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return m(E,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return m(E,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return m(E,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return m(E,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return m(E,"rotateSlideOut","rotateSlideIn")}}function P(N,E=600,ht=600){switch(N){case r:return E;case o:return ht;default:return s.duration}}function w(N,E){switch(N){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return P(E,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return P(E,700,600);case"scaleSmall":return P(E,700,500);case"scaleLarge":return P(E,500,700);case"scaleToLargePrevScaleToSmall":return P(E,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return P(E,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return P(E,800,600);default:return s.duration}}let C=s.timingFunction;function _(N){switch(N){default:return s.easeFunction}}function p(N,E){switch(N){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(E){case r:C=y()?"ease-in-out":"ease";break;case o:default:C=y()?"ease":"ease-in-out"}return _(E);default:return C=s.timingFunction,s.easeFunction}}function v(N,E=300){switch(N){case o:return s.delay+E;default:return s.delay}}function x(N,E){switch(N){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return v(E,500);case"scaleSmall":case"scaleLarge":return v(E,300);case"scaleToLargePrevScaleToSmall":return v(E,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return v(E,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return v(E,180);default:return s.delay}}let I=2,O=2;const R=()=>{I=2,O=2},L=()=>{I=2,O=3},B=()=>{I=3,O=2};function q(N){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":B();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":y()?B():L();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":y()?L():B();break;default:R();break}b(r)&&r==N&&(g[r].style.zIndex=`${I}`,g[r].style.visibility="visible"),b(o)&&o==N&&(g[o].style.zIndex=`${O}`,g[o].style.visibility="visible")}function D(N){L(),N==r&&(g[r].style.zIndex=`${I}`,g[r].style.visibility="hidden"),N==o&&(g[o].style.zIndex=`${O}`,g[o].style.visibility="visible",c.shift()?.(),i("routeChangeEnd",r,o,l.length),r=o)}const X=f.ref();function W(N=0,E=!1){if(!X.value)return;let ht=0;f.render(f.h("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},l.map((tt,G)=>{const yt=S(s.effect,G);return f.h("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==G?"visible":"hidden",zIndex:E?"1":"0"}},tt.pageKey?{key:tt.pageKey}:{}),f.h(ki,{effect:yt,duration:w(s.effect,G),easeFunction:p(s.effect,G),timingFunction:C,delay:x(s.effect,G),onReady:(j,Q)=>{h[G]={open:j,close:Q},++ht==N&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{q(G)},onPageOpenEnd:()=>{D(G)},onPageCloseStart:()=>{q(G)},onPageCloseEnd:()=>{D(G)}},{default:()=>tt.component instanceof HTMLElement?f.h("div",{...tt.attributes,innerHTML:tt.component.innerHTML}):f.h(tt.component,tt.attributes,()=>tt.child)}))})),X.value),g=X.value.children[0].children}f.watch(()=>s.effect,()=>{W()});function ot(N=[]){l=[...N],l.forEach(E=>{E.pageKey=E.pageKey||be()}),a=()=>{r=-1,it(0)},W(l.length,!0)}function pt(N){N.pageKey=N.pageKey||be(),l.push(N),a=()=>{it(l.length-1)},W(1,l.length==1)}function wt(){l.length<=1||it(l.length-2,()=>{l.splice(l.length-1,1),r=l.length-1,W()})}function gt(){it(r+1)}function Ct(){it(r-1)}const St=new wr(1);function it(N,E){St.addTask(()=>new Promise(ht=>{const tt=()=>{E?.(),ht()};if(!b(N)){tt();return}if(o=N,o==r){tt();return}c.push(tt),W(),i("routeChangeStart",r,o,l.length),y()?(b(r)&&h[r].open(),b(o)&&h[o].open()):(b(r)&&h[r].close(),b(o)&&h[o].close())}))}return t({reset:ot,push:pt,pop:wt,forward:gt,back:Ct,goto:it,currentPageIndex:()=>r,totalPages:()=>l.length}),(N,E)=>(f.openBlock(),f.createElementBlock("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),Ai=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},global:{type:Boolean,default:!0},color:{default:"rgba(0, 0, 0, 0.25)"}},setup(n,{expose:t}){const e=n,s=f.computed(()=>({display:e.visible?"block":"none",overflow:"hidden","background-color":e.color,position:"fixed","z-index":"99999",width:"100%",height:"100%",inset:"0"})),i=f.ref(),r=Pn(document.documentElement,"overflow")||"visible";let o="";return f.watch(()=>e.visible,()=>{e.global?he(document.documentElement,"overflow",e.visible?"hidden":r):(o||(o=Pn(i.value.parentElement,"overflow")||"visible"),he(i.value.parentElement,"overflow",e.visible?"hidden":o))},{immediate:!0}),t({}),(a,c)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"el",ref:i,class:"overlay",style:f.normalizeStyle(s.value)},[f.renderSlot(a.$slots,"default")],4))}}),pe=f.defineComponent({customOptions:{Overlay:Ai,Container:lt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},global:{type:Boolean,default:!0},overlayBgColor:{},popValue:{}},emits:["open","close","resize","clickOverlay"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=new we({frameDuration:s.dur}),o=f.reactive({position:"absolute",opacity:"1",transformOrigin:"center",willChange:"transform"}),a=f.ref(!1),c=f.ref("full");f.watch(()=>[s.directionFrom,s.popValue],()=>{r.clear();const S=!s.popValue,P=s.popValue?s.popValue:100,w=s.popValue?"px":"%";switch(s.directionFrom){case"left":o.height="100%",S?delete o.width:o.width=`${P}${w}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:P},{left:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.left=`-${C.left}${w}`},onComplete:g});break;case"right":o.height="100%",S?delete o.width:o.width=`${P}${w}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:P},{right:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.right=`-${C.right}${w}`},onComplete:g});break;case"top":o.width="100%",S?delete o.height:o.height=`${P}${w}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:P},{top:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.top=`-${C.top}${w}`},onComplete:g});break;case"bottom":o.width="100%",S?delete o.height:o.height=`${P}${w}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:P},{bottom:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.bottom=`-${C.bottom}${w}`},onComplete:g});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:F.Quadratic.Out,onUpdate(C){o.transform=`translate(-50%, -50%) scale(${C.scale})`,o.opacity=`${C.opacity}`},onComplete:g});break;case"absolute":o.width=s.absoluteWidth,o.height=s.absoluteHeight,o.left=s.absoluteLeft,o.top=s.absoluteTop,delete o.right,delete o.bottom;break}switch(s.directionFrom){case"center":c.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":c.value="shrink",delete o.transform,delete o.opacity;break;default:c.value="full",delete o.transform,delete o.opacity;break}S&&(c.value="shrink")},{immediate:!0}),f.watch(()=>s.absoluteLeft,()=>{switch(s.directionFrom){case"absolute":o.left=s.absoluteLeft;break}}),f.watch(()=>s.absoluteTop,()=>{switch(s.directionFrom){case"absolute":o.top=s.absoluteTop;break}}),f.watch(()=>s.absoluteWidth,()=>{switch(s.directionFrom){case"absolute":o.width=s.absoluteWidth;break}}),f.watch(()=>s.absoluteHeight,()=>{switch(s.directionFrom){case"absolute":o.height=s.absoluteHeight;break}});const l=S=>{i("resize",S.rect)};let h="open";function g(){h=="open"?i("open"):(a.value=!1,i("close"))}function b(){a.value=!0,h="open",r.play()}function y(){switch(h="close",s.directionFrom){case"absolute":g();break;default:r.reverse();break}}function m(S){const P=s.directionFrom=="absolute"&&s.absoluteWidth=="100%"&&s.absoluteHeight=="100%"?"pop-content":"pop";S.target&&qn(S.target,P)&&(s.closeWhenClickOverlay&&y(),i("clickOverlay"))}return t({open:b,close:y}),(S,P)=>(f.openBlock(),f.createBlock(Ai,{visible:a.value,global:s.global,color:s.overlayBgColor},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%"},onClick:m},[f.createVNode(lt,{class:"pop-content",type:c.value,style:f.normalizeStyle(o),onReady:l,onUpdate:l},{default:f.withCtx(()=>[f.renderSlot(S.$slots,"default",{},()=>[P[0]||(P[0]=f.createElementVNode("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","global","color"]))}}),$a=["src"],Ua=f.defineComponent({name:"Image",customOptions:{Container:lt,Pop:pe},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=new we({frameDuration:s.dur}),o=f.ref(0),a=f.ref(0),c=f.ref(0),l=f.ref(0),h=f.ref(0),g=f.ref(0),b=f.ref(0),y=f.ref(0),m=f.ref(!0),S=f.ref(0),P=f.ref(0);To(s.src).then(D=>{S.value=D.width,P.value=D.height,x()}).catch(()=>{m.value=!1});const w=f.ref(0),C=f.ref(0),_=D=>{w.value=D.rect.width,C.value=D.rect.height,x()},p=f.ref(0),v=f.ref(0);function x(){if(!w.value||!C.value||!S.value||!P.value)return;const D=Rn(s.mode,S.value,P.value,w.value,C.value);p.value=D.width,v.value=D.height;const{width:X,height:W}=oo(),ot=Rn("aspectFit",S.value,P.value,X,W);b.value=ot.width,y.value=ot.height,h.value=(X-b.value)/2,g.value=(W-y.value)/2}const I=D=>{i("settled",D.rect.x,D.rect.y,D.rect.width,D.rect.height)};let O=!1;const R=f.ref(),L=f.ref();async function B(){if(!s.openImageDetailWhenClick)return;const D=await R.value.getRect();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:h.value,top:g.value,width:b.value,height:y.value},{easeFunction:F.Quadratic.Out,onUpdate(X){o.value=X.left,a.value=X.top,c.value=X.width,l.value=X.height},onComplete(){O&&L.value.close(),O=!O}}),O||(L.value.open(),r.play())}function q(){O&&r.reverse()}return t({}),(D,X)=>(f.openBlock(),f.createBlock(lt,{class:"image",type:"full",style:f.normalizeStyle({backgroundColor:s.bgColor}),onReady:_,onUpdate:_,onClick:B},{default:f.withCtx(()=>[m.value?(f.openBlock(),f.createBlock(lt,{key:0,class:"image-inner",ref_key:"imageRef",ref:R,type:"shrink",style:f.normalizeStyle({width:p.value+"px",height:v.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${p.value}px ${v.value}px`}),onReady:I,onUpdate:I},null,8,["style"])):f.createCommentVNode("",!0),m.value?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lt,{key:1,type:"shrink"},{default:f.withCtx(()=>[f.createElementVNode("img",{src:s.src,style:{display:"block",objectFit:"contain"}},null,8,$a)]),_:1})),f.createVNode(pe,{ref_key:"popRef",ref:L,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${c.value}px`,"absolute-height":`${l.value}px`,"close-when-click-overlay":!1,onClickOverlay:q},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"image-pop",style:f.normalizeStyle({width:"100%",height:"100%",backgroundImage:`url(${s.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),jc="",Mi=zt(Ua,[["__scopeId","data-v-67c2d0de"]]),qa={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ii=f.defineComponent({customOptions:{Image:Mi,Container:lt,Routes:Ei},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(n,{expose:t,emit:e}){const s=n,i=f.ref(0);function r(b,y){i.value=y}const o=f.ref(),a=b=>{b.eb.on("panLeft",()=>{o.value?.forward()}),b.eb.on("panRight",()=>{o.value?.back()}),o.value.reset(s.urls.map(y=>({component:f.h(Mi,{mode:"aspectFit",src:y,openImageDetailWhenClick:!1})})))},c=f.ref();function l(){c.value?.open()}function h(){c.value?.close()}const g=b=>{b.target&&qn(b.target,"image")&&h()};return t({open:l,close:h}),(b,y)=>(f.openBlock(),f.createBlock(pe,{ref_key:"popRef",ref:c,directionFrom:"absolute",onClick:g},{default:f.withCtx(()=>[s.urls.length>1?(f.openBlock(),f.createElementBlock("div",qa,f.toDisplayString(i.value+1)+" / "+f.toDisplayString(s.urls.length),1)):f.createCommentVNode("",!0),f.createVNode(lt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:f.withCtx(()=>[f.createVNode(Ei,{ref_key:"routesRef",ref:o,effect:s.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),ja={class:"pop-tel"},Ha=["href"],Za=f.defineComponent({customOptions:{Pop:pe},inheritAttrs:!0,__name:"PopTel",props:{tel:{}},setup(n,{expose:t,emit:e}){const s=f.ref();function i(){s.value?.open()}function r(){s.value?.close()}return t({open:i,close:r}),(o,a)=>(f.openBlock(),f.createBlock(pe,{directionFrom:"bottom",closeWhenClickOverlay:!1,ref_key:"el",ref:s},{default:f.withCtx(()=>[f.createElementVNode("div",ja,[f.createElementVNode("div",null,f.toDisplayString(o.tel),1),f.createElementVNode("a",{class:"pop-tel-call",onClick:r,href:`tel:${o.tel}`}," 呼叫 ",8,Ha),f.createElementVNode("div",{class:"pop-tel-cancel",onClick:r}," 取消 ")])]),_:1},512))}}),Hc="",Fi=zt(Za,[["__scopeId","data-v-c1425500"]]),Wa={class:"lot-main"},Qa={class:"lot-detail"},Ka={class:"bold"},Ja=f.defineComponent({customOptions:{LayoutPage:te,Footer:Ci,PlateDisplay:Si,ViewDocument:Qn,PopTel:Fi,ImageView:Ii},inheritAttrs:!0,__name:"Lot",setup(n){const t=Ft.useRouter();function e(){t.push({name:"view-document",params:{title:"收费标准",src:encodeURIComponent("https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159")}})}const s=f.ref();function i(){s.value?.open()}const r=f.ref();function o(){r.value?.open()}return(a,c)=>(f.openBlock(),f.createBlock(te,{class:"lot"},{footer:f.withCtx(()=>[f.createVNode(Ci)]),global:f.withCtx(()=>[f.createVNode(Fi,{tel:"15851575410",ref_key:"popTelEl",ref:s},null,512),f.createVNode(Ii,{urls:["https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159","https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159"],ref_key:"imageViewEl",ref:r},null,512)]),default:f.withCtx(()=>[c[15]||(c[15]=f.createElementVNode("div",{class:"lot-main-bg"},null,-1)),f.createElementVNode("div",Wa,[c[12]||(c[12]=f.createElementVNode("div",null,"若临测试泊位机器人停车场",-1)),c[13]||(c[13]=f.createElementVNode("div",null,[f.createElementVNode("div"),f.createElementVNode("div",null,"编号"),f.createElementVNode("div")],-1)),c[14]||(c[14]=f.createElementVNode("div",null,[f.createElementVNode("span",null,"103"),f.createElementVNode("span",null,"002")],-1)),f.createElementVNode("div",null,[c[0]||(c[0]=f.createElementVNode("div",null,"停车场主页",-1)),c[1]||(c[1]=f.createElementVNode("div",null,"更换附近车位",-1)),f.createElementVNode("div",{onClick:e},"收费标准")]),f.createElementVNode("div",Qa,[c[4]||(c[4]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"待支付"),f.createElementVNode("div",{class:"red"},"¥0.01")],-1)),c[5]||(c[5]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"已支付"),f.createElementVNode("div",null,"¥0.01")],-1)),c[6]||(c[6]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"订单编号"),f.createElementVNode("div",null,"33333333333")],-1)),c[7]||(c[7]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"开始时间"),f.createElementVNode("div",null,"2025-04-08 09:41:25")],-1)),c[8]||(c[8]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"停车时长"),f.createElementVNode("div",null,"51小时53分钟15秒")],-1)),c[9]||(c[9]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"优惠券"),f.createElementVNode("div",{class:"red"},"1分钟")],-1)),c[10]||(c[10]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"优惠信息"),f.createElementVNode("div",{class:"red"},"xxxx")],-1)),c[11]||(c[11]=f.createElementVNode("div",{class:"lot-detail-gap"},null,-1)),f.createElementVNode("div",null,[c[2]||(c[2]=f.createElementVNode("div",null,"车牌号",-1)),f.createElementVNode("div",Ka,[f.createVNode(Si,{plate:"苏U77777","plate-type":"b"})])]),f.createElementVNode("div",null,[c[3]||(c[3]=f.createElementVNode("div",null,"现场照片",-1)),f.createElementVNode("div",{onClick:o},"查看")])]),f.createElementVNode("div",{class:"lot-actions"},[f.createElementVNode("div",{onClick:i},"联系客服")])])]),_:1}))}}),Zc="",tc=zt(Ja,[["__scopeId","data-v-feee85ac"]]),ec=f.defineComponent({customOptions:{LayoutPage:te},inheritAttrs:!0,__name:"Park",setup(n){return(t,e)=>(f.openBlock(),f.createBlock(te,{class:"park"},{default:f.withCtx(()=>e[0]||(e[0]=[f.createTextVNode("Park")])),_:1}))}}),Wc="",sc=zt(ec,[["__scopeId","data-v-9704593b"]]),nc=Ft.createRouter({history:Ft.createWebHashHistory("/"),routes:[{path:"/view-document/:title/:src",name:"view-document",component:Qn},{path:"/",name:"xg",redirect:"/lot"},{path:"/lot",name:"lot",component:tc},{path:"/park",name:"park",component:sc}],scrollBehavior:(n,t,e)=>e||{left:0,top:0}}),Ns=f.ref("next"),Ue=[];nc.beforeEach((n,t,e)=>{const s=Ue.length,i=Ue.findIndex(r=>r==n.name);s>1&&i>=0&&i<s-1?(Ns.value="prev",Ue.splice(i+1)):(Ns.value="next",Ue.push(n.name)),e()});const ic="increment",rc="decrement",oc="incrementAction";function ac(){return{store:kt.useStore()}}function cc(n,t){let e=kt.mapState;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapState:t=n,zi(t,e)}function lc(n,t){let e=kt.mapGetters;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapGetters:t=n,zi(t,e)}function hc(n,t){let e=kt.mapMutations;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapMutations:t=n,Array.isArray(t),e(t)}function uc(n,t){let e=kt.mapActions;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapActions:t=n,Array.isArray(t),e(t)}function zi(n,t){const e=kt.useStore(),s={},i=t(n);return Object.keys(i).forEach(r=>{const o=i[r].bind({$store:e});s[r]=f.computed(o)}),s}Object.defineProperty($,"RouterLink",{enumerable:!0,get:()=>Ft.RouterLink}),Object.defineProperty($,"RouterView",{enumerable:!0,get:()=>Ft.RouterView}),Object.defineProperty($,"useRoute",{enumerable:!0,get:()=>Ft.useRoute}),Object.defineProperty($,"useRouter",{enumerable:!0,get:()=>Ft.useRouter}),$.DECREMENT=rc,$.INCREMENT=ic,$.INCREMENTACTION=oc,$.getInstance=Ji,$.getVNode=Hs,$.renderComponent=tr,$.routeDirection=Ns,$.useVueEffect=er,$.useVuex=ac,$.useVuexActions=uc,$.useVuexGetters=lc,$.useVuexMutations=hc,$.useVuexStates=cc,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
|
30
30
|
//# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map
|