vite-plugin-vue-devtools 7.0.19 → 7.0.20
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.
|
@@ -24,7 +24,7 @@ function __vite__mapDeps(indexes) {
|
|
|
24
24
|
* vue-router v4.3.0
|
|
25
25
|
* (c) 2024 Eduardo San Martin Morote
|
|
26
26
|
* @license MIT
|
|
27
|
-
*/const DC=typeof document<"u";function arA(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function Rp(e,t){const A={};for(const r in t){const n=t[r];A[r]=hi(n)?n.map(e):e(n)}return A}const pu=()=>{},hi=Array.isArray,NK=/#/g,srA=/&/g,CrA=/\//g,IrA=/=/g,lrA=/\?/g,PK=/\+/g,urA=/%5B/g,crA=/%5D/g,FK=/%5E/g,hrA=/%60/g,RK=/%7B/g,drA=/%7C/g,LK=/%7D/g,BrA=/%20/g;function uM(e){return encodeURI(""+e).replace(drA,"|").replace(urA,"[").replace(crA,"]")}function frA(e){return uM(e).replace(RK,"{").replace(LK,"}").replace(FK,"^")}function Vm(e){return uM(e).replace(PK,"%2B").replace(BrA,"+").replace(NK,"%23").replace(srA,"%26").replace(hrA,"`").replace(RK,"{").replace(LK,"}").replace(FK,"^")}function ErA(e){return Vm(e).replace(IrA,"%3D")}function QrA(e){return uM(e).replace(NK,"%23").replace(lrA,"%3F")}function vrA(e){return e==null?"":QrA(e).replace(CrA,"%2F")}function Xu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const prA=/\/$/,wrA=e=>e.replace(prA,"");function Lp(e,t,A="/"){let r,n={},i="",o="";const g=t.indexOf("#");let a=t.indexOf("?");return g<a&&g>=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,g>-1?g:t.length),n=e(i)),g>-1&&(r=r||t.slice(0,g),o=t.slice(g,t.length)),r=brA(r??t,A),{fullPath:r+(i&&"?")+i+o,path:r,query:n,hash:Xu(o)}}function DrA(e,t){const A=t.query?e(t.query):"";return t.path+(A&&"?")+A+(t.hash||"")}function yrA(e,t,A){const r=t.matched.length-1,n=A.matched.length-1;return r>-1&&r===n&&cI(t.matched[r],A.matched[n])&&$K(t.params,A.params)&&e(t.query)===e(A.query)&&t.hash===A.hash}function cI(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $K(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const A in e)if(!mrA(e[A],t[A]))return!1;return!0}function mrA(e,t){return hi(e)?UP(e,t):hi(t)?UP(t,e):e===t}function UP(e,t){return hi(t)?e.length===t.length&&e.every((A,r)=>A===t[r]):e.length===1&&e[0]===t}function brA(e,t){if(e.startsWith("/"))return e;if(!e)return t;const A=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=A.length-1,o,g;for(o=0;o<r.length;o++)if(g=r[o],g!==".")if(g==="..")i>1&&i--;else break;return A.slice(0,i).join("/")+"/"+r.slice(o).join("/")}var Ac;(function(e){e.pop="pop",e.push="push"})(Ac||(Ac={}));var tE;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tE||(tE={}));const $p="";function MrA(e){if(!e)if(DC){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wrA(e)}const krA=/^[^#]+#/;function SrA(e,t){return e.replace(krA,"#")+t}function NrA(e,t){const A=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-A.left-(t.left||0),top:r.top-A.top-(t.top||0)}}const PrA=()=>({left:window.scrollX,top:window.scrollY});function FrA(e){let t;if("el"in e){const A=e.el,r=typeof A=="string"&&A.startsWith("#"),n=typeof A=="string"?r?document.getElementById(A.slice(1)):document.querySelector(A):A;if(!n)return;t=NrA(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function KP(e,t){return(history.state?history.state.position-t:-1)+e}const Zm=new Map;function RrA(e,t){Zm.set(e,t)}function LrA(e){const t=Zm.get(e);return Zm.delete(e),t}function $rA(e=""){let t=[],A=[$p],r=0;e=MrA(e);function n(g){r++,r!==A.length&&A.splice(r),A.push(g)}function i(g,a,{direction:s,delta:C}){const I={direction:s,delta:C,type:Ac.pop};for(const l of t)l(g,a,I)}const o={location:$p,state:{},base:e,createHref:SrA.bind(null,e),replace(g){A.splice(r--,1),n(g)},push(g,a){n(g)},listen(g){return t.push(g),()=>{const a=t.indexOf(g);a>-1&&t.splice(a,1)}},destroy(){t=[],A=[$p],r=0},go(g,a=!0){const s=this.location,C=g<0?tE.back:tE.forward;r=Math.max(0,Math.min(r+g,A.length-1)),a&&i(this.location,s,{direction:C,delta:g})}};return Object.defineProperty(o,"location",{enumerable:!0,get:()=>A[r]}),o}function OrA(e){return typeof e=="string"||e&&typeof e=="object"}function OK(e){return typeof e=="string"||typeof e=="symbol"}const zo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},GK=Symbol("");var _P;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_P||(_P={}));function hI(e,t){return et(new Error,{type:e,[GK]:!0},t)}function oo(e,t){return e instanceof Error&&GK in e&&(t==null||!!(e.type&t))}const YP="[^/]+?",GrA={sensitive:!1,strict:!1,start:!0,end:!0},xrA=/[.+*?^${}()[\]/\\]/g;function TrA(e,t){const A=et({},GrA,t),r=[];let n=A.start?"^":"";const i=[];for(const s of e){const C=s.length?[]:[90];A.strict&&!s.length&&(n+="/");for(let I=0;I<s.length;I++){const l=s[I];let u=40+(A.sensitive?.25:0);if(l.type===0)I||(n+="/"),n+=l.value.replace(xrA,"\\$&"),u+=40;else if(l.type===1){const{value:c,repeatable:h,optional:d,regexp:B}=l;i.push({name:c,repeatable:h,optional:d});const f=B||YP;if(f!==YP){u+=10;try{new RegExp(`(${f})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${c}" (${f}): `+v.message)}}let E=h?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;I||(E=d&&s.length<2?`(?:/${E})`:"/"+E),d&&(E+="?"),n+=E,u+=20,d&&(u+=-8),h&&(u+=-20),f===".*"&&(u+=-50)}C.push(u)}r.push(C)}if(A.strict&&A.end){const s=r.length-1;r[s][r[s].length-1]+=.7000000000000001}A.strict||(n+="/?"),A.end?n+="$":A.strict&&(n+="(?:/|$)");const o=new RegExp(n,A.sensitive?"":"i");function g(s){const C=s.match(o),I={};if(!C)return null;for(let l=1;l<C.length;l++){const u=C[l]||"",c=i[l-1];I[c.name]=u&&c.repeatable?u.split("/"):u}return I}function a(s){let C="",I=!1;for(const l of e){(!I||!C.endsWith("/"))&&(C+="/"),I=!1;for(const u of l)if(u.type===0)C+=u.value;else if(u.type===1){const{value:c,repeatable:h,optional:d}=u,B=c in s?s[c]:"";if(hi(B)&&!h)throw new Error(`Provided param "${c}" is an array but it is not repeatable (* or + modifiers)`);const f=hi(B)?B.join("/"):B;if(!f)if(d)l.length<2&&(C.endsWith("/")?C=C.slice(0,-1):I=!0);else throw new Error(`Missing required param "${c}"`);C+=f}}return C||"/"}return{re:o,score:r,keys:i,parse:g,stringify:a}}function HrA(e,t){let A=0;for(;A<e.length&&A<t.length;){const r=t[A]-e[A];if(r)return r;A++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function UrA(e,t){let A=0;const r=e.score,n=t.score;for(;A<r.length&&A<n.length;){const i=HrA(r[A],n[A]);if(i)return i;A++}if(Math.abs(n.length-r.length)===1){if(JP(r))return 1;if(JP(n))return-1}return n.length-r.length}function JP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const KrA={type:0,value:""},_rA=/[a-zA-Z0-9_]/;function YrA(e){if(!e)return[[]];if(e==="/")return[[KrA]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${A})/"${s}": ${u}`)}let A=0,r=A;const n=[];let i;function o(){i&&n.push(i),i=[]}let g=0,a,s="",C="";function I(){s&&(A===0?i.push({type:0,value:s}):A===1||A===2||A===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:s,regexp:C,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),s="")}function l(){s+=a}for(;g<e.length;){if(a=e[g++],a==="\\"&&A!==2){r=A,A=4;continue}switch(A){case 0:a==="/"?(s&&I(),o()):a===":"?(I(),A=1):l();break;case 4:l(),A=r;break;case 1:a==="("?A=2:_rA.test(a)?l():(I(),A=0,a!=="*"&&a!=="?"&&a!=="+"&&g--);break;case 2:a===")"?C[C.length-1]=="\\"?C=C.slice(0,-1)+a:A=3:C+=a;break;case 3:I(),A=0,a!=="*"&&a!=="?"&&a!=="+"&&g--,C="";break;default:t("Unknown state");break}}return A===2&&t(`Unfinished custom RegExp for param "${s}"`),I(),o(),n}function JrA(e,t,A){const r=TrA(YrA(e.path),A),n=et(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function zrA(e,t){const A=[],r=new Map;t=qP({strict:!1,end:!0,sensitive:!1},t);function n(C){return r.get(C)}function i(C,I,l){const u=!l,c=WrA(C);c.aliasOf=l&&l.record;const h=qP(t,C),d=[c];if("alias"in C){const E=typeof C.alias=="string"?[C.alias]:C.alias;for(const v of E)d.push(et({},c,{components:l?l.record.components:c.components,path:v,aliasOf:l?l.record:c}))}let B,f;for(const E of d){const{path:v}=E;if(I&&v[0]!=="/"){const p=I.record.path,D=p[p.length-1]==="/"?"":"/";E.path=I.record.path+(v&&D+v)}if(B=JrA(E,I,h),l?l.alias.push(B):(f=f||B,f!==B&&f.alias.push(B),u&&C.name&&!WP(B)&&o(C.name)),c.children){const p=c.children;for(let D=0;D<p.length;D++)i(p[D],B,l&&l.children[D])}l=l||B,(B.record.components&&Object.keys(B.record.components).length||B.record.name||B.record.redirect)&&a(B)}return f?()=>{o(f)}:pu}function o(C){if(OK(C)){const I=r.get(C);I&&(r.delete(C),A.splice(A.indexOf(I),1),I.children.forEach(o),I.alias.forEach(o))}else{const I=A.indexOf(C);I>-1&&(A.splice(I,1),C.record.name&&r.delete(C.record.name),C.children.forEach(o),C.alias.forEach(o))}}function g(){return A}function a(C){let I=0;for(;I<A.length&&UrA(C,A[I])>=0&&(C.record.path!==A[I].record.path||!xK(C,A[I]));)I++;A.splice(I,0,C),C.record.name&&!WP(C)&&r.set(C.record.name,C)}function s(C,I){let l,u={},c,h;if("name"in C&&C.name){if(l=r.get(C.name),!l)throw hI(1,{location:C});h=l.record.name,u=et(zP(I.params,l.keys.filter(f=>!f.optional).concat(l.parent?l.parent.keys.filter(f=>f.optional):[]).map(f=>f.name)),C.params&&zP(C.params,l.keys.map(f=>f.name))),c=l.stringify(u)}else if(C.path!=null)c=C.path,l=A.find(f=>f.re.test(c)),l&&(u=l.parse(c),h=l.record.name);else{if(l=I.name?r.get(I.name):A.find(f=>f.re.test(I.path)),!l)throw hI(1,{location:C,currentLocation:I});h=l.record.name,u=et({},I.params,C.params),c=l.stringify(u)}const d=[];let B=l;for(;B;)d.unshift(B.record),B=B.parent;return{name:h,path:c,params:u,matched:d,meta:jrA(d)}}return e.forEach(C=>i(C)),{addRoute:i,resolve:s,removeRoute:o,getRoutes:g,getRecordMatcher:n}}function zP(e,t){const A={};for(const r of t)r in e&&(A[r]=e[r]);return A}function WrA(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qrA(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qrA(e){const t={},A=e.props||!1;if("component"in e)t.default=A;else for(const r in e.components)t[r]=typeof A=="object"?A[r]:A;return t}function WP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jrA(e){return e.reduce((t,A)=>et(t,A.meta),{})}function qP(e,t){const A={};for(const r in e)A[r]=r in t?t[r]:e[r];return A}function xK(e,t){return t.children.some(A=>A===e||xK(e,A))}function VrA(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(PK," "),o=i.indexOf("="),g=Xu(o<0?i:i.slice(0,o)),a=o<0?null:Xu(i.slice(o+1));if(g in t){let s=t[g];hi(s)||(s=t[g]=[s]),s.push(a)}else t[g]=a}return t}function jP(e){let t="";for(let A in e){const r=e[A];if(A=ErA(A),r==null){r!==void 0&&(t+=(t.length?"&":"")+A);continue}(hi(r)?r.map(i=>i&&Vm(i)):[r&&Vm(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+A,i!=null&&(t+="="+i))})}return t}function ZrA(e){const t={};for(const A in e){const r=e[A];r!==void 0&&(t[A]=hi(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XrA=Symbol(""),VP=Symbol(""),SQ=Symbol(""),cM=Symbol(""),Xm=Symbol("");function _l(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function A(){e=[]}return{add:t,list:()=>e.slice(),reset:A}}function sg(e,t,A,r,n,i=o=>o()){const o=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((g,a)=>{const s=l=>{l===!1?a(hI(4,{from:A,to:t})):l instanceof Error?a(l):OrA(l)?a(hI(2,{from:t,to:l})):(o&&r.enterCallbacks[n]===o&&typeof l=="function"&&o.push(l),g())},C=i(()=>e.call(r&&r.instances[n],t,A,s));let I=Promise.resolve(C);e.length<3&&(I=I.then(s)),I.catch(l=>a(l))})}function Op(e,t,A,r,n=i=>i()){const i=[];for(const o of e)for(const g in o.components){let a=o.components[g];if(!(t!=="beforeRouteEnter"&&!o.instances[g]))if(AnA(a)){const C=(a.__vccOpts||a)[t];C&&i.push(sg(C,A,r,o,g,n))}else{let s=a();i.push(()=>s.then(C=>{if(!C)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${o.path}"`));const I=arA(C)?C.default:C;o.components[g]=I;const u=(I.__vccOpts||I)[t];return u&&sg(u,A,r,o,g,n)()}))}}return i}function AnA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ZP(e){const t=pt(SQ),A=pt(cM),r=W(()=>t.resolve(Q(e.to))),n=W(()=>{const{matched:a}=r.value,{length:s}=a,C=a[s-1],I=A.matched;if(!C||!I.length)return-1;const l=I.findIndex(cI.bind(null,C));if(l>-1)return l;const u=XP(a[s-2]);return s>1&&XP(C)===u&&I[I.length-1].path!==u?I.findIndex(cI.bind(null,a[s-2])):l}),i=W(()=>n.value>-1&&rnA(A.params,r.value.params)),o=W(()=>n.value>-1&&n.value===A.matched.length-1&&$K(A.params,r.value.params));function g(a={}){return tnA(a)?t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(pu):Promise.resolve()}return{route:r,href:W(()=>r.value.href),isActive:i,isExactActive:o,navigate:g}}const enA=DA({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ZP,setup(e,{slots:t}){const A=Ug(ZP(e)),{options:r}=pt(SQ),n=W(()=>({[AF(e.activeClass,r.linkActiveClass,"router-link-active")]:A.isActive,[AF(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const i=t.default&&t.default(A);return e.custom?i:WI("a",{"aria-current":A.isExactActive?e.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:n.value},i)}}}),TK=enA;function tnA(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rnA(e,t){for(const A in t){const r=t[A],n=e[A];if(typeof r=="string"){if(r!==n)return!1}else if(!hi(n)||n.length!==r.length||r.some((i,o)=>i!==n[o]))return!1}return!0}function XP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const AF=(e,t,A)=>e??t??A,nnA=DA({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:A}){const r=pt(Xm),n=W(()=>e.route||r.value),i=pt(VP,0),o=W(()=>{let s=Q(i);const{matched:C}=n.value;let I;for(;(I=C[s])&&!I.components;)s++;return s}),g=W(()=>n.value.matched[o.value]);Io(VP,W(()=>o.value+1)),Io(XrA,g),Io(Xm,n);const a=_();return Ae(()=>[a.value,g.value,e.name],([s,C,I],[l,u,c])=>{C&&(C.instances[I]=s,u&&u!==C&&s&&s===l&&(C.leaveGuards.size||(C.leaveGuards=u.leaveGuards),C.updateGuards.size||(C.updateGuards=u.updateGuards))),s&&C&&(!u||!cI(C,u)||!l)&&(C.enterCallbacks[I]||[]).forEach(h=>h(s))},{flush:"post"}),()=>{const s=n.value,C=e.name,I=g.value,l=I&&I.components[C];if(!l)return eF(A.default,{Component:l,route:s});const u=I.props[C],c=u?u===!0?s.params:typeof u=="function"?u(s):u:null,d=WI(l,et({},c,t,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(I.instances[C]=null)},ref:a}));return eF(A.default,{Component:d,route:s})||d}}});function eF(e,t){if(!e)return null;const A=e(t);return A.length===1?A[0]:A}const inA=nnA;function onA(e){const t=zrA(e.routes,e),A=e.parseQuery||VrA,r=e.stringifyQuery||jP,n=e.history,i=_l(),o=_l(),g=_l(),a=Zi(zo);let s=zo;DC&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=Rp.bind(null,Y=>""+Y),I=Rp.bind(null,vrA),l=Rp.bind(null,Xu);function u(Y,nA){let L,P;return OK(Y)?(L=t.getRecordMatcher(Y),P=nA):P=Y,t.addRoute(P,L)}function c(Y){const nA=t.getRecordMatcher(Y);nA&&t.removeRoute(nA)}function h(){return t.getRoutes().map(Y=>Y.record)}function d(Y){return!!t.getRecordMatcher(Y)}function B(Y,nA){if(nA=et({},nA||a.value),typeof Y=="string"){const b=Lp(A,Y,nA.path),G=t.resolve({path:b.path},nA),J=n.createHref(b.fullPath);return et(b,G,{params:l(G.params),hash:Xu(b.hash),redirectedFrom:void 0,href:J})}let L;if(Y.path!=null)L=et({},Y,{path:Lp(A,Y.path,nA.path).path});else{const b=et({},Y.params);for(const G in b)b[G]==null&&delete b[G];L=et({},Y,{params:I(b)}),nA.params=I(nA.params)}const P=t.resolve(L,nA),$=Y.hash||"";P.params=C(l(P.params));const z=DrA(r,et({},Y,{hash:frA($),path:P.path})),w=n.createHref(z);return et({fullPath:z,hash:$,query:r===jP?ZrA(Y.query):Y.query||{}},P,{redirectedFrom:void 0,href:w})}function f(Y){return typeof Y=="string"?Lp(A,Y,a.value.path):et({},Y)}function E(Y,nA){if(s!==Y)return hI(8,{from:nA,to:Y})}function v(Y){return F(Y)}function p(Y){return v(et(f(Y),{replace:!0}))}function D(Y){const nA=Y.matched[Y.matched.length-1];if(nA&&nA.redirect){const{redirect:L}=nA;let P=typeof L=="function"?L(Y):L;return typeof P=="string"&&(P=P.includes("?")||P.includes("#")?P=f(P):{path:P},P.params={}),et({query:Y.query,hash:Y.hash,params:P.path!=null?{}:Y.params},P)}}function F(Y,nA){const L=s=B(Y),P=a.value,$=Y.state,z=Y.force,w=Y.replace===!0,b=D(L);if(b)return F(et(f(b),{state:typeof b=="object"?et({},$,b.state):$,force:z,replace:w}),nA||L);const G=L;G.redirectedFrom=nA;let J;return!z&&yrA(r,P,L)&&(J=hI(16,{to:G,from:P}),KA(P,P,!0,!1)),(J?Promise.resolve(J):m(G,P)).catch(K=>oo(K)?oo(K,2)?K:XA(K):uA(K,G,P)).then(K=>{if(K){if(oo(K,2))return F(et({replace:w},f(K.to),{state:typeof K.to=="object"?et({},$,K.to.state):$,force:z}),nA||G)}else K=k(G,P,!0,w,$);return R(G,P,K),K})}function N(Y,nA){const L=E(Y,nA);return L?Promise.reject(L):Promise.resolve()}function S(Y){const nA=_A.values().next().value;return nA&&typeof nA.runWithContext=="function"?nA.runWithContext(Y):Y()}function m(Y,nA){let L;const[P,$,z]=gnA(Y,nA);L=Op(P.reverse(),"beforeRouteLeave",Y,nA);for(const b of P)b.leaveGuards.forEach(G=>{L.push(sg(G,Y,nA))});const w=N.bind(null,Y,nA);return L.push(w),ce(L).then(()=>{L=[];for(const b of i.list())L.push(sg(b,Y,nA));return L.push(w),ce(L)}).then(()=>{L=Op($,"beforeRouteUpdate",Y,nA);for(const b of $)b.updateGuards.forEach(G=>{L.push(sg(G,Y,nA))});return L.push(w),ce(L)}).then(()=>{L=[];for(const b of z)if(b.beforeEnter)if(hi(b.beforeEnter))for(const G of b.beforeEnter)L.push(sg(G,Y,nA));else L.push(sg(b.beforeEnter,Y,nA));return L.push(w),ce(L)}).then(()=>(Y.matched.forEach(b=>b.enterCallbacks={}),L=Op(z,"beforeRouteEnter",Y,nA,S),L.push(w),ce(L))).then(()=>{L=[];for(const b of o.list())L.push(sg(b,Y,nA));return L.push(w),ce(L)}).catch(b=>oo(b,8)?b:Promise.reject(b))}function R(Y,nA,L){g.list().forEach(P=>S(()=>P(Y,nA,L)))}function k(Y,nA,L,P,$){const z=E(Y,nA);if(z)return z;const w=nA===zo,b=DC?history.state:{};L&&(P||w?n.replace(Y.fullPath,et({scroll:w&&b&&b.scroll},$)):n.push(Y.fullPath,$)),a.value=Y,KA(Y,nA,L,w),XA()}let O;function H(){O||(O=n.listen((Y,nA,L)=>{if(!ne.listening)return;const P=B(Y),$=D(P);if($){F(et($,{replace:!0}),P).catch(pu);return}s=P;const z=a.value;DC&&RrA(KP(z.fullPath,L.delta),PrA()),m(P,z).catch(w=>oo(w,12)?w:oo(w,2)?(F(w.to,P).then(b=>{oo(b,20)&&!L.delta&&L.type===Ac.pop&&n.go(-1,!1)}).catch(pu),Promise.reject()):(L.delta&&n.go(-L.delta,!1),uA(w,P,z))).then(w=>{w=w||k(P,z,!1),w&&(L.delta&&!oo(w,8)?n.go(-L.delta,!1):L.type===Ac.pop&&oo(w,20)&&n.go(-1,!1)),R(P,z,w)}).catch(pu)}))}let X=_l(),q=_l(),Z;function uA(Y,nA,L){XA(Y);const P=q.list();return P.length?P.forEach($=>$(Y,nA,L)):console.error(Y),Promise.reject(Y)}function MA(){return Z&&a.value!==zo?Promise.resolve():new Promise((Y,nA)=>{X.add([Y,nA])})}function XA(Y){return Z||(Z=!Y,H(),X.list().forEach(([nA,L])=>Y?L(Y):nA()),X.reset()),Y}function KA(Y,nA,L,P){const{scrollBehavior:$}=e;if(!DC||!$)return Promise.resolve();const z=!L&&LrA(KP(Y.fullPath,0))||(P||!L)&&history.state&&history.state.scroll||null;return cr().then(()=>$(Y,nA,z)).then(w=>w&&FrA(w)).catch(w=>uA(w,Y,nA))}const QA=Y=>n.go(Y);let HA;const _A=new Set,ne={currentRoute:a,listening:!0,addRoute:u,removeRoute:c,hasRoute:d,getRoutes:h,resolve:B,options:e,push:v,replace:p,go:QA,back:()=>QA(-1),forward:()=>QA(1),beforeEach:i.add,beforeResolve:o.add,afterEach:g.add,onError:q.add,isReady:MA,install(Y){const nA=this;Y.component("RouterLink",TK),Y.component("RouterView",inA),Y.config.globalProperties.$router=nA,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(a)}),DC&&!HA&&a.value===zo&&(HA=!0,v(n.location).catch($=>{}));const L={};for(const $ in zo)Object.defineProperty(L,$,{get:()=>a.value[$],enumerable:!0});Y.provide(SQ,nA),Y.provide(cM,Y1(L)),Y.provide(Xm,a);const P=Y.unmount;_A.add(Y),Y.unmount=function(){_A.delete(Y),_A.size<1&&(s=zo,O&&O(),O=null,a.value=zo,HA=!1,Z=!1),P()}}};function ce(Y){return Y.reduce((nA,L)=>nA.then(()=>S(L)),Promise.resolve())}return ne}function gnA(e,t){const A=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const g=t.matched[o];g&&(e.matched.find(s=>cI(s,g))?r.push(g):A.push(g));const a=e.matched[o];a&&(t.matched.find(s=>cI(s,a))||n.push(a))}return[A,r,n]}function VI(){return pt(SQ)}function NQ(){return pt(cM)}const anA=["src","alt"],snA=["title"],zc=DA({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0}},setup(e){return(t,A)=>t.icon&&(t.icon.startsWith("/")||t.icon.match(/^https?:/))?(M(),x("img",Ir({key:0,style:{width:"1em",height:"1em"}},t.$attrs,{src:t.icon,alt:t.title}),null,16,anA)):(M(),x("div",Ir({key:1,style:{width:"1em",height:"1em"}},t.$attrs,{class:t.icon||"i-carbon-bring-forward",title:t.showTitle?t.title:void 0}),null,16,snA))}}),CnA=["top","right","bottom","left"],tF=["start","end"],rF=CnA.reduce((e,t)=>e.concat(t,t+"-"+tF[0],t+"-"+tF[1]),[]),ec=Math.min,Sa=Math.max,InA={left:"right",right:"left",bottom:"top",top:"bottom"},lnA={start:"end",end:"start"};function A0(e,t,A){return Sa(e,ec(t,A))}function Ps(e,t){return typeof e=="function"?e(t):e}function Wi(e){return e.split("-")[0]}function ui(e){return e.split("-")[1]}function HK(e){return e==="x"?"y":"x"}function hM(e){return e==="y"?"height":"width"}function Wc(e){return["top","bottom"].includes(Wi(e))?"y":"x"}function dM(e){return HK(Wc(e))}function UK(e,t,A){A===void 0&&(A=!1);const r=ui(e),n=dM(e),i=hM(n);let o=n==="x"?r===(A?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=nE(o)),[o,nE(o)]}function unA(e){const t=nE(e);return[rE(e),t,rE(t)]}function rE(e){return e.replace(/start|end/g,t=>lnA[t])}function cnA(e,t,A){const r=["left","right"],n=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return A?t?n:r:t?r:n;case"left":case"right":return t?i:o;default:return[]}}function hnA(e,t,A,r){const n=ui(e);let i=cnA(Wi(e),A==="start",r);return n&&(i=i.map(o=>o+"-"+n),t&&(i=i.concat(i.map(rE)))),i}function nE(e){return e.replace(/left|right|bottom|top/g,t=>InA[t])}function dnA(e){return{top:0,right:0,bottom:0,left:0,...e}}function KK(e){return typeof e!="number"?dnA(e):{top:e,right:e,bottom:e,left:e}}function wu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function nF(e,t,A){let{reference:r,floating:n}=e;const i=Wc(t),o=dM(t),g=hM(o),a=Wi(t),s=i==="y",C=r.x+r.width/2-n.width/2,I=r.y+r.height/2-n.height/2,l=r[g]/2-n[g]/2;let u;switch(a){case"top":u={x:C,y:r.y-n.height};break;case"bottom":u={x:C,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:I};break;case"left":u={x:r.x-n.width,y:I};break;default:u={x:r.x,y:r.y}}switch(ui(t)){case"start":u[o]-=l*(A&&s?-1:1);break;case"end":u[o]+=l*(A&&s?-1:1);break}return u}const BnA=async(e,t,A)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:o}=A,g=i.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let s=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:C,y:I}=nF(s,r,a),l=r,u={},c=0;for(let h=0;h<g.length;h++){const{name:d,fn:B}=g[h],{x:f,y:E,data:v,reset:p}=await B({x:C,y:I,initialPlacement:r,placement:l,strategy:n,middlewareData:u,rects:s,platform:o,elements:{reference:e,floating:t}});if(C=f??C,I=E??I,u={...u,[d]:{...u[d],...v}},p&&c<=50){c++,typeof p=="object"&&(p.placement&&(l=p.placement),p.rects&&(s=p.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):p.rects),{x:C,y:I}=nF(s,l,a)),h=-1;continue}}return{x:C,y:I,placement:l,strategy:n,middlewareData:u}};async function PQ(e,t){var A;t===void 0&&(t={});const{x:r,y:n,platform:i,rects:o,elements:g,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:C="viewport",elementContext:I="floating",altBoundary:l=!1,padding:u=0}=Ps(t,e),c=KK(u),d=g[l?I==="floating"?"reference":"floating":I],B=wu(await i.getClippingRect({element:(A=await(i.isElement==null?void 0:i.isElement(d)))==null||A?d:d.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(g.floating)),boundary:s,rootBoundary:C,strategy:a})),f=I==="floating"?{...o.floating,x:r,y:n}:o.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(g.floating)),v=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},p=wu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:E,strategy:a}):f);return{top:(B.top-p.top+c.top)/v.y,bottom:(p.bottom-B.bottom+c.bottom)/v.y,left:(B.left-p.left+c.left)/v.x,right:(p.right-B.right+c.right)/v.x}}const fnA=e=>({name:"arrow",options:e,async fn(t){const{x:A,y:r,placement:n,rects:i,platform:o,elements:g}=t,{element:a,padding:s=0}=Ps(e,t)||{};if(a==null)return{};const C=KK(s),I={x:A,y:r},l=dM(n),u=hM(l),c=await o.getDimensions(a),h=l==="y",d=h?"top":"left",B=h?"bottom":"right",f=h?"clientHeight":"clientWidth",E=i.reference[u]+i.reference[l]-I[l]-i.floating[u],v=I[l]-i.reference[l],p=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let D=p?p[f]:0;(!D||!await(o.isElement==null?void 0:o.isElement(p)))&&(D=g.floating[f]||i.floating[u]);const F=E/2-v/2,N=D/2-c[u]/2-1,S=ec(C[d],N),m=ec(C[B],N),R=S,k=D-c[u]-m,O=D/2-c[u]/2+F,H=A0(R,O,k),q=ui(n)!=null&&O!=H&&i.reference[u]/2-(O<R?S:m)-c[u]/2<0?O<R?R-O:k-O:0;return{[l]:I[l]-q,data:{[l]:H,centerOffset:O-H+q}}}});function EnA(e,t,A){return(e?[...A.filter(n=>ui(n)===e),...A.filter(n=>ui(n)!==e)]:A.filter(n=>Wi(n)===n)).filter(n=>e?ui(n)===e||(t?rE(n)!==n:!1):!0)}const QnA=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var A,r,n;const{rects:i,middlewareData:o,placement:g,platform:a,elements:s}=t,{crossAxis:C=!1,alignment:I,allowedPlacements:l=rF,autoAlignment:u=!0,...c}=Ps(e,t),h=I!==void 0||l===rF?EnA(I||null,u,l):l,d=await PQ(t,c),B=((A=o.autoPlacement)==null?void 0:A.index)||0,f=h[B];if(f==null)return{};const E=UK(f,i,await(a.isRTL==null?void 0:a.isRTL(s.floating)));if(g!==f)return{reset:{placement:h[0]}};const v=[d[Wi(f)],d[E[0]],d[E[1]]],p=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:f,overflows:v}],D=h[B+1];if(D)return{data:{index:B+1,overflows:p},reset:{placement:D}};const F=p.map(m=>{const R=ui(m.placement);return[m.placement,R&&C?m.overflows.slice(0,2).reduce((k,O)=>k+O,0):m.overflows[0],m.overflows]}).sort((m,R)=>m[1]-R[1]),S=((n=F.filter(m=>m[2].slice(0,ui(m[0])?2:3).every(R=>R<=0))[0])==null?void 0:n[0])||F[0][0];return S!==g?{data:{index:B+1,overflows:p},reset:{placement:S}}:{}}}},vnA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var A;const{placement:r,middlewareData:n,rects:i,initialPlacement:o,platform:g,elements:a}=t,{mainAxis:s=!0,crossAxis:C=!0,fallbackPlacements:I,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:c=!0,...h}=Ps(e,t),d=Wi(r),B=Wi(o)===o,f=await(g.isRTL==null?void 0:g.isRTL(a.floating)),E=I||(B||!c?[nE(o)]:unA(o));!I&&u!=="none"&&E.push(...hnA(o,c,u,f));const v=[o,...E],p=await PQ(t,h),D=[];let F=((A=n.flip)==null?void 0:A.overflows)||[];if(s&&D.push(p[d]),C){const R=UK(r,i,f);D.push(p[R[0]],p[R[1]])}if(F=[...F,{placement:r,overflows:D}],!D.every(R=>R<=0)){var N,S;const R=(((N=n.flip)==null?void 0:N.index)||0)+1,k=v[R];if(k)return{data:{index:R,overflows:F},reset:{placement:k}};let O=(S=F.filter(H=>H.overflows[0]<=0).sort((H,X)=>H.overflows[1]-X.overflows[1])[0])==null?void 0:S.placement;if(!O)switch(l){case"bestFit":{var m;const H=(m=F.map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Z)=>q+Z,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:m[0];H&&(O=H);break}case"initialPlacement":O=o;break}if(r!==O)return{reset:{placement:O}}}return{}}}};async function pnA(e,t){const{placement:A,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),o=Wi(A),g=ui(A),a=Wc(A)==="y",s=["left","top"].includes(o)?-1:1,C=i&&a?-1:1,I=Ps(t,e);let{mainAxis:l,crossAxis:u,alignmentAxis:c}=typeof I=="number"?{mainAxis:I,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...I};return g&&typeof c=="number"&&(u=g==="end"?c*-1:c),a?{x:u*C,y:l*s}:{x:l*s,y:u*C}}const wnA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:A,y:r}=t,n=await pnA(t,e);return{x:A+n.x,y:r+n.y,data:n}}}},DnA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:A,y:r,placement:n}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:g={fn:d=>{let{x:B,y:f}=d;return{x:B,y:f}}},...a}=Ps(e,t),s={x:A,y:r},C=await PQ(t,a),I=Wc(Wi(n)),l=HK(I);let u=s[l],c=s[I];if(i){const d=l==="y"?"top":"left",B=l==="y"?"bottom":"right",f=u+C[d],E=u-C[B];u=A0(f,u,E)}if(o){const d=I==="y"?"top":"left",B=I==="y"?"bottom":"right",f=c+C[d],E=c-C[B];c=A0(f,c,E)}const h=g.fn({...t,[l]:u,[I]:c});return{...h,data:{x:h.x-A,y:h.y-r}}}}},ynA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:A,rects:r,platform:n,elements:i}=t,{apply:o=()=>{},...g}=Ps(e,t),a=await PQ(t,g),s=Wi(A),C=ui(A),I=Wc(A)==="y",{width:l,height:u}=r.floating;let c,h;s==="top"||s==="bottom"?(c=s,h=C===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(h=s,c=C==="end"?"top":"bottom");const d=u-a[c],B=l-a[h],f=!t.middlewareData.shift;let E=d,v=B;if(I){const D=l-a.left-a.right;v=C||f?ec(B,D):D}else{const D=u-a.top-a.bottom;E=C||f?ec(d,D):D}if(f&&!C){const D=Sa(a.left,0),F=Sa(a.right,0),N=Sa(a.top,0),S=Sa(a.bottom,0);I?v=l-2*(D!==0||F!==0?D+F:Sa(a.left,a.right)):E=u-2*(N!==0||S!==0?N+S:Sa(a.top,a.bottom))}await o({...t,availableWidth:v,availableHeight:E});const p=await n.getDimensions(i.floating);return l!==p.width||u!==p.height?{reset:{rects:!0}}:{}}}};function $n(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xi(e){return $n(e).getComputedStyle(e)}const iF=Math.min,Du=Math.max,iE=Math.round;function _K(e){const t=xi(e);let A=parseFloat(t.width),r=parseFloat(t.height);const n=e.offsetWidth,i=e.offsetHeight,o=iE(A)!==n||iE(r)!==i;return o&&(A=n,r=i),{width:A,height:r,fallback:o}}function Jg(e){return JK(e)?(e.nodeName||"").toLowerCase():""}let Nd;function YK(){if(Nd)return Nd;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Nd=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Nd):navigator.userAgent}function Ti(e){return e instanceof $n(e).HTMLElement}function Dg(e){return e instanceof $n(e).Element}function JK(e){return e instanceof $n(e).Node}function oF(e){return typeof ShadowRoot>"u"?!1:e instanceof $n(e).ShadowRoot||e instanceof ShadowRoot}function FQ(e){const{overflow:t,overflowX:A,overflowY:r,display:n}=xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+A)&&!["inline","contents"].includes(n)}function mnA(e){return["table","td","th"].includes(Jg(e))}function e0(e){const t=/firefox/i.test(YK()),A=xi(e),r=A.backdropFilter||A.WebkitBackdropFilter;return A.transform!=="none"||A.perspective!=="none"||!!r&&r!=="none"||t&&A.willChange==="filter"||t&&!!A.filter&&A.filter!=="none"||["transform","perspective"].some(n=>A.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const i=A.contain;return i!=null&&i.includes(n)})}function zK(){return!/^((?!chrome|android).)*safari/i.test(YK())}function BM(e){return["html","body","#document"].includes(Jg(e))}function WK(e){return Dg(e)?e:e.contextElement}const qK={x:1,y:1};function VC(e){const t=WK(e);if(!Ti(t))return qK;const A=t.getBoundingClientRect(),{width:r,height:n,fallback:i}=_K(t);let o=(i?iE(A.width):A.width)/r,g=(i?iE(A.height):A.height)/n;return o&&Number.isFinite(o)||(o=1),g&&Number.isFinite(g)||(g=1),{x:o,y:g}}function tc(e,t,A,r){var n,i;t===void 0&&(t=!1),A===void 0&&(A=!1);const o=e.getBoundingClientRect(),g=WK(e);let a=qK;t&&(r?Dg(r)&&(a=VC(r)):a=VC(e));const s=g?$n(g):window,C=!zK()&&A;let I=(o.left+(C&&((n=s.visualViewport)==null?void 0:n.offsetLeft)||0))/a.x,l=(o.top+(C&&((i=s.visualViewport)==null?void 0:i.offsetTop)||0))/a.y,u=o.width/a.x,c=o.height/a.y;if(g){const h=$n(g),d=r&&Dg(r)?$n(r):r;let B=h.frameElement;for(;B&&r&&d!==h;){const f=VC(B),E=B.getBoundingClientRect(),v=getComputedStyle(B);E.x+=(B.clientLeft+parseFloat(v.paddingLeft))*f.x,E.y+=(B.clientTop+parseFloat(v.paddingTop))*f.y,I*=f.x,l*=f.y,u*=f.x,c*=f.y,I+=E.x,l+=E.y,B=$n(B).frameElement}}return{width:u,height:c,top:l,right:I+u,bottom:l+c,left:I,x:I,y:l}}function yg(e){return((JK(e)?e.ownerDocument:e.document)||window.document).documentElement}function RQ(e){return Dg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jK(e){return tc(yg(e)).left+RQ(e).scrollLeft}function rc(e){if(Jg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oF(e)&&e.host||yg(e);return oF(t)?t.host:t}function VK(e){const t=rc(e);return BM(t)?t.ownerDocument.body:Ti(t)&&FQ(t)?t:VK(t)}function oE(e,t){var A;t===void 0&&(t=[]);const r=VK(e),n=r===((A=e.ownerDocument)==null?void 0:A.body),i=$n(r);return n?t.concat(i,i.visualViewport||[],FQ(r)?r:[]):t.concat(r,oE(r))}function gF(e,t,A){return t==="viewport"?wu(function(r,n){const i=$n(r),o=yg(r),g=i.visualViewport;let a=o.clientWidth,s=o.clientHeight,C=0,I=0;if(g){a=g.width,s=g.height;const l=zK();(l||!l&&n==="fixed")&&(C=g.offsetLeft,I=g.offsetTop)}return{width:a,height:s,x:C,y:I}}(e,A)):Dg(t)?wu(function(r,n){const i=tc(r,!0,n==="fixed"),o=i.top+r.clientTop,g=i.left+r.clientLeft,a=Ti(r)?VC(r):{x:1,y:1};return{width:r.clientWidth*a.x,height:r.clientHeight*a.y,x:g*a.x,y:o*a.y}}(t,A)):wu(function(r){const n=yg(r),i=RQ(r),o=r.ownerDocument.body,g=Du(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=Du(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let s=-i.scrollLeft+jK(r);const C=-i.scrollTop;return xi(o).direction==="rtl"&&(s+=Du(n.clientWidth,o.clientWidth)-g),{width:g,height:a,x:s,y:C}}(yg(e)))}function aF(e){return Ti(e)&&xi(e).position!=="fixed"?e.offsetParent:null}function sF(e){const t=$n(e);let A=aF(e);for(;A&&mnA(A)&&xi(A).position==="static";)A=aF(A);return A&&(Jg(A)==="html"||Jg(A)==="body"&&xi(A).position==="static"&&!e0(A))?t:A||function(r){let n=rc(r);for(;Ti(n)&&!BM(n);){if(e0(n))return n;n=rc(n)}return null}(e)||t}function bnA(e,t,A){const r=Ti(t),n=yg(t),i=tc(e,!0,A==="fixed",t);let o={scrollLeft:0,scrollTop:0};const g={x:0,y:0};if(r||!r&&A!=="fixed")if((Jg(t)!=="body"||FQ(n))&&(o=RQ(t)),Ti(t)){const a=tc(t,!0);g.x=a.x+t.clientLeft,g.y=a.y+t.clientTop}else n&&(g.x=jK(n));return{x:i.left+o.scrollLeft-g.x,y:i.top+o.scrollTop-g.y,width:i.width,height:i.height}}const MnA={getClippingRect:function(e){let{element:t,boundary:A,rootBoundary:r,strategy:n}=e;const i=A==="clippingAncestors"?function(s,C){const I=C.get(s);if(I)return I;let l=oE(s).filter(d=>Dg(d)&&Jg(d)!=="body"),u=null;const c=xi(s).position==="fixed";let h=c?rc(s):s;for(;Dg(h)&&!BM(h);){const d=xi(h),B=e0(h);(c?B||u:B||d.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=d:l=l.filter(f=>f!==h),h=rc(h)}return C.set(s,l),l}(t,this._c):[].concat(A),o=[...i,r],g=o[0],a=o.reduce((s,C)=>{const I=gF(t,C,n);return s.top=Du(I.top,s.top),s.right=iF(I.right,s.right),s.bottom=iF(I.bottom,s.bottom),s.left=Du(I.left,s.left),s},gF(t,g,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:A,strategy:r}=e;const n=Ti(A),i=yg(A);if(A===i)return t;let o={scrollLeft:0,scrollTop:0},g={x:1,y:1};const a={x:0,y:0};if((n||!n&&r!=="fixed")&&((Jg(A)!=="body"||FQ(i))&&(o=RQ(A)),Ti(A))){const s=tc(A);g=VC(A),a.x=s.x+A.clientLeft,a.y=s.y+A.clientTop}return{width:t.width*g.x,height:t.height*g.y,x:t.x*g.x-o.scrollLeft*g.x+a.x,y:t.y*g.y-o.scrollTop*g.y+a.y}},isElement:Dg,getDimensions:function(e){return Ti(e)?_K(e):e.getBoundingClientRect()},getOffsetParent:sF,getDocumentElement:yg,getScale:VC,async getElementRects(e){let{reference:t,floating:A,strategy:r}=e;const n=this.getOffsetParent||sF,i=this.getDimensions;return{reference:bnA(t,await n(A),r),floating:{x:0,y:0,...await i(A)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>xi(e).direction==="rtl"},knA=(e,t,A)=>{const r=new Map,n={platform:MnA,...A},i={...n.platform,_c:r};return BnA(e,t,{...n,platform:i})},za={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function nc(e,t){let A=za.themes[e]||{},r;do r=A[t],typeof r>"u"?A.$extend?A=za.themes[A.$extend]||{}:(A=null,r=za[t]):A=null;while(A);return r}function SnA(e){const t=[e];let A=za.themes[e]||{};do A.$extend&&!A.$resetCss?(t.push(A.$extend),A=za.themes[A.$extend]||{}):A=null;while(A);return t.map(r=>`v-popper--theme-${r}`)}function CF(e){const t=[e];let A=za.themes[e]||{};do A.$extend?(t.push(A.$extend),A=za.themes[A.$extend]||{}):A=null;while(A);return t}let dI=!1;if(typeof window<"u"){dI=!1;try{const e=Object.defineProperty({},"passive",{get(){dI=!0}});window.addEventListener("test",null,e)}catch{}}let ZK=!1;typeof window<"u"&&typeof navigator<"u"&&(ZK=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const XK=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),IF={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lF={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function uF(e,t){const A=e.indexOf(t);A!==-1&&e.splice(A,1)}function Gp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const ii=[];let ya=null;const cF={};function hF(e){let t=cF[e];return t||(t=cF[e]=[]),t}let t0=function(){};typeof window<"u"&&(t0=window.Element);function Ee(e){return function(t){return nc(t.theme,e)}}const xp="__floating-vue__popper",A_=()=>DA({name:"VPopper",provide(){return{[xp]:{parentPopper:this}}},inject:{[xp]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ee("disabled")},positioningDisabled:{type:Boolean,default:Ee("positioningDisabled")},placement:{type:String,default:Ee("placement"),validator:e=>XK.includes(e)},delay:{type:[String,Number,Object],default:Ee("delay")},distance:{type:[Number,String],default:Ee("distance")},skidding:{type:[Number,String],default:Ee("skidding")},triggers:{type:Array,default:Ee("triggers")},showTriggers:{type:[Array,Function],default:Ee("showTriggers")},hideTriggers:{type:[Array,Function],default:Ee("hideTriggers")},popperTriggers:{type:Array,default:Ee("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ee("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ee("popperHideTriggers")},container:{type:[String,Object,t0,Boolean],default:Ee("container")},boundary:{type:[String,t0],default:Ee("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ee("strategy")},autoHide:{type:[Boolean,Function],default:Ee("autoHide")},handleResize:{type:Boolean,default:Ee("handleResize")},instantMove:{type:Boolean,default:Ee("instantMove")},eagerMount:{type:Boolean,default:Ee("eagerMount")},popperClass:{type:[String,Array,Object],default:Ee("popperClass")},computeTransformOrigin:{type:Boolean,default:Ee("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ee("autoMinSize")},autoSize:{type:[Boolean,String],default:Ee("autoSize")},autoMaxSize:{type:Boolean,default:Ee("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ee("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ee("preventOverflow")},overflowPadding:{type:[Number,String],default:Ee("overflowPadding")},arrowPadding:{type:[Number,String],default:Ee("arrowPadding")},arrowOverflow:{type:Boolean,default:Ee("arrowOverflow")},flip:{type:Boolean,default:Ee("flip")},shift:{type:Boolean,default:Ee("shift")},shiftCrossAxis:{type:Boolean,default:Ee("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ee("noAutoFocus")},disposeTimeout:{type:Number,default:Ee("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[xp])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:A=!1}={}){var r,n;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(A||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var A;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((A=this.parentPopper)==null?void 0:A.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(wnA({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(QnA({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(DnA({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(vnA({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(fnA({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:n,middlewareData:i})=>{let o;const{centerOffset:g}=i.arrow;return r.startsWith("top")||r.startsWith("bottom")?o=Math.abs(g)>n.reference.width/2:o=Math.abs(g)>n.reference.height/2,{data:{overflow:o}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:i,middlewareData:o})=>{var g;if((g=o.autoSize)!=null&&g.skip)return{};let a,s;return i.startsWith("top")||i.startsWith("bottom")?a=n.reference.width:s=n.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=a!=null?`${a}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=s!=null?`${s}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(ynA({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:n})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const A=await knA(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:A.x,y:A.y,placement:A.placement,strategy:A.strategy,arrow:{...A.middlewareData.arrow,...A.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ya&&this.instantMove&&ya.instantMove&&ya!==this.parentPopper){ya.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ya=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Gp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...oE(this.$_referenceNode),...oE(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),A=this.$_popperNode.querySelector(".v-popper__wrapper"),r=A.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(r.left+A.offsetLeft),i=t.y+t.height/2-(r.top+A.offsetTop);this.result.transformOrigin=`${n}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let A=0;A<ii.length;A++)t=ii[A],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}ii.push(this),document.body.classList.add("v-popper--some-open");for(const t of CF(this.theme))hF(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Gp(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,uF(ii,this),ii.length===0&&document.body.classList.remove("v-popper--some-open");for(const A of CF(this.theme)){const r=hF(A);uF(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${A}`)}ya===this&&(ya=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Gp(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=A=>{this.isShown&&!this.$_hideInProgress||(A.usedByTooltip=!0,!this.$_preventShow&&this.show({event:A}))};this.$_registerTriggerListeners(this.$_targetNodes,IF,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],IF,this.popperTriggers,this.popperShowTriggers,e);const t=A=>{A.usedByTooltip||this.hide({event:A})};this.$_registerTriggerListeners(this.$_targetNodes,lF,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lF,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,A){this.$_events.push({targetNodes:e,eventType:t,handler:A}),e.forEach(r=>r.addEventListener(t,A,dI?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,A,r,n){let i=A;r!=null&&(i=typeof r=="function"?r(i):r),i.forEach(o=>{const g=t[o];g&&this.$_registerEventListeners(e,g,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(A=>{const{targetNodes:r,eventType:n,handler:i}=A;!e||e===n?r.forEach(o=>o.removeEventListener(n,i)):t.push(A)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const A of this.$_targetNodes){const r=A.getAttribute(e);r&&(A.removeAttribute(e),A.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const A in e){const r=e[A];r==null?t.removeAttribute(A):t.setAttribute(A,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(yu>=e.left&&yu<=e.right&&mu>=e.top&&mu<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),A=yu-Vo,r=mu-Zo,n=t.left+t.width/2-Vo+(t.top+t.height/2)-Zo+t.width+t.height,i=Vo+A*n,o=Zo+r*n;return Pd(Vo,Zo,i,o,t.left,t.top,t.left,t.bottom)||Pd(Vo,Zo,i,o,t.left,t.top,t.right,t.top)||Pd(Vo,Zo,i,o,t.right,t.top,t.right,t.bottom)||Pd(Vo,Zo,i,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(ZK){const e=dI?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dF(t),e),document.addEventListener("touchend",t=>BF(t,!0),e)}else window.addEventListener("mousedown",e=>dF(e),!0),window.addEventListener("click",e=>BF(e,!1),!0);window.addEventListener("resize",FnA)}function dF(e,t){for(let A=0;A<ii.length;A++){const r=ii[A];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function BF(e,t){NnA(e,t)}function NnA(e,t){const A={};for(let r=ii.length-1;r>=0;r--){const n=ii[r];try{const i=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!A[n.randomId]&&fF(n,i,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let g=n.parentPopper;for(;g;)A[g.randomId]=!0,g=g.parentPopper;return}let o=n.parentPopper;for(;o&&fF(o,o.containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function fF(e,t,A){return A.closeAllPopover||A.closePopover&&t||PnA(e,A)&&!t}function PnA(e,t){if(typeof e.autoHide=="function"){const A=e.autoHide(t);return e.lastAutoHide=A,A}return e.autoHide}function FnA(){for(let e=0;e<ii.length;e++)ii[e].$_computePosition()}let Vo=0,Zo=0,yu=0,mu=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vo=yu,Zo=mu,yu=e.clientX,mu=e.clientY},dI?{passive:!0}:void 0);function Pd(e,t,A,r,n,i,o,g){const a=((o-n)*(t-i)-(g-i)*(e-n))/((g-i)*(A-e)-(o-n)*(r-t)),s=((A-e)*(t-i)-(r-t)*(e-n))/((g-i)*(A-e)-(o-n)*(r-t));return a>=0&&a<=1&&s>=0&&s<=1}const RnA={extends:A_()},LQ=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A};function LnA(e,t,A,r,n,i){return M(),x("div",{ref:"reference",class:bA(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[VA(e.$slots,"default",Oc(zI(e.slotData)))],2)}const $nA=LQ(RnA,[["render",LnA]]);function OnA(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var A=e.indexOf("Trident/");if(A>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let af;function r0(){r0.init||(r0.init=!0,af=OnA()!==-1)}var $Q={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){r0(),cr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",af&&this.$el.appendChild(e),e.data="about:blank",af||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!af&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const GnA=gU();BQ("data-v-b329ee4c");const xnA={class:"resize-observer",tabindex:"-1"};fQ();const TnA=GnA((e,t,A,r,n,i)=>(M(),tA("div",xnA)));$Q.render=TnA;$Q.__scopeId="data-v-b329ee4c";$Q.__file="src/components/ResizeObserver.vue";const e_=(e="theme")=>({computed:{themeClass(){return SnA(this[e])}}}),HnA=DA({name:"VPopperContent",components:{ResizeObserver:$Q},mixins:[e_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),UnA=["id","aria-hidden","tabindex","data-popper-placement"],KnA={ref:"inner",class:"v-popper__inner"},_nA=y("div",{class:"v-popper__arrow-outer"},null,-1),YnA=y("div",{class:"v-popper__arrow-inner"},null,-1),JnA=[_nA,YnA];function znA(e,t,A,r,n,i){const o=En("ResizeObserver");return M(),x("div",{id:e.popperId,ref:"popover",class:bA(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Qt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=$U(g=>e.autoHide&&e.$emit("hide"),["esc"]))},[y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=g=>e.autoHide&&e.$emit("hide"))}),y("div",{class:"v-popper__wrapper",style:Qt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[y("div",KnA,[e.mounted?(M(),x(wA,{key:0},[y("div",null,[VA(e.$slots,"default")]),e.handleResize?(M(),tA(o,{key:0,onNotify:t[1]||(t[1]=g=>e.$emit("resize",g))})):pA("",!0)],64)):pA("",!0)],512),y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Qt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},JnA,4)],4)],46,UnA)}const t_=LQ(HnA,[["render",znA]]),r_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let n0=function(){};typeof window<"u"&&(n0=window.Element);const WnA=DA({name:"VPopperWrapper",components:{Popper:$nA,PopperContent:t_},mixins:[r_,e_("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,n0,Boolean],default:void 0},boundary:{type:[String,n0],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function qnA(e,t,A,r,n,i){const o=En("PopperContent"),g=En("Popper");return M(),tA(g,Ir({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=a=>e.$emit("update:shown",a)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:U(({popperId:a,isShown:s,shouldMountContent:C,skipTransition:I,autoHide:l,show:u,hide:c,handleResize:h,onResize:d,classes:B,result:f})=>[VA(e.$slots,"default",{shown:s,show:u,hide:c}),T(o,{ref:"popperContent","popper-id":a,theme:e.finalTheme,shown:s,mounted:C,"skip-transition":I,"auto-hide":l,"handle-resize":h,classes:B,result:f,onHide:c,onResize:d},{default:U(()=>[VA(e.$slots,"popper",{shown:s,hide:c})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const fM=LQ(WnA,[["render",qnA]]),jnA={...fM,name:"VDropdown",vPopperTheme:"dropdown"};({...fM});const VnA={...fM,name:"VTooltip",vPopperTheme:"tooltip"},ZnA=DA({name:"VTooltipDirective",components:{Popper:A_(),PopperContent:t_},mixins:[r_],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>nc(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>nc(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,A=this.content(this);A.then?A.then(r=>this.onResult(t,r)):this.onResult(t,A)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),XnA=["innerHTML"],AiA=["textContent"];function eiA(e,t,A,r,n,i){const o=En("PopperContent"),g=En("Popper");return M(),tA(g,Ir({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:U(({popperId:a,isShown:s,shouldMountContent:C,skipTransition:I,autoHide:l,hide:u,handleResize:c,onResize:h,classes:d,result:B})=>[T(o,{ref:"popperContent",class:bA({"v-popper--tooltip-loading":e.loading}),"popper-id":a,theme:e.theme,shown:s,mounted:C,"skip-transition":I,"auto-hide":l,"handle-resize":c,classes:d,result:B,onHide:u,onResize:h},{default:U(()=>[e.html?(M(),x("div",{key:0,innerHTML:e.finalContent},null,8,XnA)):(M(),x("div",{key:1,textContent:yA(e.finalContent)},null,8,AiA))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const tiA=LQ(ZnA,[["render",eiA]]),n_="v-popper--has-tooltip";function riA(e,t){let A=e.placement;if(!A&&t)for(const r of XK)t[r]&&(A=r);return A||(A=nc(e.theme||"tooltip","placement")),A}function i_(e,t,A){let r;const n=typeof t;return n==="string"?r={content:t}:t&&n==="object"?r=t:r={content:!1},r.placement=riA(r,A),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let Tp,ic,niA=0;function iiA(){if(Tp)return;ic=_([]),Tp=iM({name:"VTooltipDirectiveApp",setup(){return{directives:ic}},render(){return this.directives.map(t=>WI(tiA,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Tp.mount(e)}function oiA(e,t,A){iiA();const r=_(i_(e,t,A)),n=_(!1),i={id:niA++,options:r,shown:n};return ic.value.push(i),e.classList&&e.classList.add(n_),e.$_popper={options:r,item:i,show(){n.value=!0},hide(){n.value=!1}}}function o_(e){if(e.$_popper){const t=ic.value.indexOf(e.$_popper.item);t!==-1&&ic.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(n_)}function EF(e,{value:t,modifiers:A}){const r=i_(e,t,A);if(!r.content||nc(r.theme||"tooltip","disabled"))o_(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=r):n=oiA(e,t,A),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const giA={beforeMount:EF,updated:EF,beforeUnmount(e){o_(e)}};function QF(e){e.addEventListener("mousedown",gE),e.addEventListener("click",gE),e.addEventListener("touchstart",g_,dI?{passive:!0}:!1)}function vF(e){e.removeEventListener("mousedown",gE),e.removeEventListener("click",gE),e.removeEventListener("touchstart",g_),e.removeEventListener("touchend",a_),e.removeEventListener("touchcancel",s_)}function gE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function g_(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const A=e.changedTouches[0];t.$_vclosepopover_touchPoint=A,t.addEventListener("touchend",a_),t.addEventListener("touchcancel",s_)}}function a_(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const A=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(A.screenY-r.screenY)<20&&Math.abs(A.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function s_(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const aiA={beforeMount(e,{value:t,modifiers:A}){e.$_closePopoverModifiers=A,(typeof t>"u"||t)&&QF(e)},updated(e,{value:t,oldValue:A,modifiers:r}){e.$_closePopoverModifiers=r,t!==A&&(typeof t>"u"||t?QF(e):vF(e))},beforeUnmount(e){vF(e)}},Bn=giA,C_=aiA,siA=jnA,CiA=VnA,EM=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},IiA={},liA={class:"h-3 w-3 $ui-inline-fcc"},uiA=y("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[y("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),y("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),ciA=[uiA];function hiA(e,t){return M(),x("div",liA,ciA)}const I_=EM(IiA,[["render",hiA]]),diA={key:2},ie=DA({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const A=e,r=t,n=XX(),i=W(()=>n.to?"router-link":n.href?"a":"button"),o=W(()=>A.loading||A.disabled);function g(I){if(o.value){I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation();return}r("click",I)}const a={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},s=BU(),C=W(()=>A.flat?a.flat[A.type]:A.outlined?a.outlined[A.type]:a.normal[A.type]);return(I,l)=>(M(),tA(Kg(i.value),Ir(I.$attrs,{role:"button","aria-disabled":o.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[a.common[A.type]],{"rounded-full":A.round==="full","$ui-base-br":A.round==="normal","opacity-50 cursor-not-allowed":o.value,"bg-transparent":A.flat||A.outlined},[I.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",I.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",C.value]]],onClickCapture:g}),{default:U(()=>[I.loading?(M(),tA(I_,{key:0,class:"mt0.5 h-full w3"})):VA(I.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),Q(s).default?(M(),x("div",diA,[VA(I.$slots,"default")])):pA("",!0),VA(I.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),BiA={},fiA={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function EiA(e,t){return M(),x("span",fiA,[VA(e.$slots,"default")])}const pF=EM(BiA,[["render",EiA]]),De=DA({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(e){return(t,A)=>(M(),tA(Kg(t.inline?"span":"div"),{class:bA(["$ui-base",[t.icon,t.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function OQ(e){return x1()?(G4(e),!0):!1}function QiA(e,t,{enumerable:A=!1,unwrap:r=!0}={}){for(const[n,i]of Object.entries(t))n!=="value"&&(YA(i)&&r?Object.defineProperty(e,n,{get(){return i.value},set(o){i.value=o},enumerable:A}):Object.defineProperty(e,n,{value:i,enumerable:A}));return e}function Tn(e){return typeof e=="function"?e():Q(e)}const l_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const viA=e=>typeof e<"u",piA=Object.prototype.toString,wiA=e=>piA.call(e)==="[object Object]",aE=()=>{},wF=DiA();function DiA(){var e,t;return l_&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function u_(e,t){function A(...r){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(n).catch(i)})}return A}const c_=e=>e();function yiA(e,t={}){let A,r,n=aE;const i=o=>{clearTimeout(o),n(),n=aE};return o=>{const g=Tn(e),a=Tn(t.maxWait);return A&&i(A),g<=0||a!==void 0&&a<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((s,C)=>{n=t.rejectOnCancel?C:s,a&&!r&&(r=setTimeout(()=>{A&&i(A),r=null,s(o())},a)),A=setTimeout(()=>{r&&i(r),r=null,s(o())},g)})}}function miA(e=c_){const t=_(!0);function A(){t.value=!1}function r(){t.value=!0}const n=(...i)=>{t.value&&e(...i)};return{isActive:Lo(t),pause:A,resume:r,eventFilter:n}}function biA(e){return e||Aa()}function h_(...e){if(e.length!==1)return AU(...e);const t=e[0];return typeof t=="function"?Lo(j1(()=>({get:t,set:aE}))):_(t)}function MiA(e,t=200,A={}){return u_(yiA(t,A),e)}function kiA(e,t=200,A={}){const r=_(e.value),n=MiA(()=>{r.value=e.value},t,A);return Ae(e,()=>n()),r}function SiA(e,t={}){let A=e,r,n;const i=j1((a,s)=>(r=a,n=s,{get(){return o()},set(C){g(C)}}));function o(a=!0){return a&&r(),A}function g(a,s=!0){var C,I;if(a===A)return;const l=A;((C=t.onBeforeChange)==null?void 0:C.call(t,a,l))!==!1&&(A=a,(I=t.onChanged)==null||I.call(t,a,l),s&&n())}return QiA(i,{get:o,set:g,untrackedGet:()=>o(!1),silentSet:a=>g(a,!1),peek:()=>o(!1),lay:a=>g(a,!1)},{enumerable:!0})}function NiA(e,t,A={}){const{eventFilter:r=c_,...n}=A;return Ae(e,u_(r,t),n)}function PiA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=miA(r);return{stop:NiA(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function QM(e,t=!0,A){biA()?vn(e,A):t?e():cr(e)}function FiA(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=YA(e),i=_(e);function o(g){if(arguments.length)return i.value=g,i.value;{const a=Tn(A);return i.value=i.value===a?Tn(r):a,i.value}}return n?o:[i,o]}function dg(e){var t;const A=Tn(e);return(t=A?.$el)!=null?t:A}const zg=l_?window:void 0;function sE(...e){let t,A,r,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([A,r,n]=e,t=zg):[t,A,r,n]=e,!t)return aE;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(C=>C()),i.length=0},g=(C,I,l,u)=>(C.addEventListener(I,l,u),()=>C.removeEventListener(I,l,u)),a=Ae(()=>[dg(t),Tn(n)],([C,I])=>{if(o(),!C)return;const l=wiA(I)?{...I}:I;i.push(...A.flatMap(u=>r.map(c=>g(C,u,c,l))))},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return OQ(s),s}function RiA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function d_(...e){let t,A,r={};e.length===3?(t=e[0],A=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,A=e[0],r=e[1]):(t=e[0],A=e[1]):(t=!0,A=e[0]);const{target:n=zg,eventName:i="keydown",passive:o=!1,dedupe:g=!1}=r,a=RiA(t);return sE(n,i,s=>{s.repeat&&Tn(g)||a(s)&&A(s)},o)}function LiA(){const e=_(!1),t=Aa();return t&&vn(()=>{e.value=!0},t),e}function B_(e){const t=LiA();return W(()=>(t.value,!!e()))}function $iA(e,t={}){const{window:A=zg}=t,r=B_(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=_(!1),o=s=>{i.value=s.matches},g=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",o):n.removeListener(o))},a=Er(()=>{r.value&&(g(),n=A.matchMedia(Tn(e)),"addEventListener"in n?n.addEventListener("change",o):n.addListener(o),i.value=n.matches)});return OQ(()=>{a(),g(),n=void 0}),i}function OiA(e){return JSON.parse(JSON.stringify(e))}const Fd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rd="__vueuse_ssr_handlers__",GiA=xiA();function xiA(){return Rd in Fd||(Fd[Rd]=Fd[Rd]||{}),Fd[Rd]}function f_(e,t){return GiA[e]||t}function TiA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const HiA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},DF="vueuse-storage";function UiA(e,t,A,r={}){var n;const{flush:i="pre",deep:o=!0,listenToStorageChanges:g=!0,writeDefaults:a=!0,mergeDefaults:s=!1,shallow:C,window:I=zg,eventFilter:l,onError:u=m=>{console.error(m)},initOnMounted:c}=r,h=(C?Zi:_)(typeof t=="function"?t():t);if(!A)try{A=f_("getDefaultStorage",()=>{var m;return(m=zg)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=Tn(t),B=TiA(d),f=(n=r.serializer)!=null?n:HiA[B],{pause:E,resume:v}=PiA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&QM(()=>{sE(I,"storage",N),sE(I,DF,S),c&&N()}),c||N();function p(m,R){I&&I.dispatchEvent(new CustomEvent(DF,{detail:{key:e,oldValue:m,newValue:R,storageArea:A}}))}function D(m){try{const R=A.getItem(e);if(m==null)p(R,null),A.removeItem(e);else{const k=f.write(m);R!==k&&(A.setItem(e,k),p(R,k))}}catch(R){u(R)}}function F(m){const R=m?m.newValue:A.getItem(e);if(R==null)return a&&d!=null&&A.setItem(e,f.write(d)),d;if(!m&&s){const k=f.read(R);return typeof s=="function"?s(k,d):B==="object"&&!Array.isArray(k)?{...d,...k}:k}else return typeof R!="string"?R:f.read(R)}function N(m){if(!(m&&m.storageArea!==A)){if(m&&m.key==null){h.value=d;return}if(!(m&&m.key!==e)){E();try{m?.newValue!==f.write(h.value)&&(h.value=F(m))}catch(R){u(R)}finally{m?cr(v):v()}}}}function S(m){N(m.detail)}return h}function KiA(e){return $iA("(prefers-color-scheme: dark)",e)}function _iA(e={}){const{selector:t="html",attribute:A="class",initialValue:r="auto",window:n=zg,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:a,emitAuto:s,disableTransition:C=!0}=e,I={auto:"",light:"light",dark:"dark",...e.modes||{}},l=KiA({window:n}),u=W(()=>l.value?"dark":"light"),c=a||(o==null?h_(r):UiA(o,r,i,{window:n,listenToStorageChanges:g})),h=W(()=>c.value==="auto"?u.value:c.value),d=f_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):dg(v);if(!F)return;let N;if(C){N=n.document.createElement("style");const S="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";N.appendChild(document.createTextNode(S)),n.document.head.appendChild(N)}if(p==="class"){const S=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{S.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(N).opacity,document.head.removeChild(N))});function B(v){var p;d(t,A,(p=I[v])!=null?p:v)}function f(v){e.onChanged?e.onChanged(v,B):B(v)}Ae(h,f,{flush:"post",immediate:!0}),QM(()=>f(h.value));const E=W({get(){return s?c.value:h.value},set(v){c.value=v}});try{return Object.assign(E,{store:c,system:u,state:h})}catch{return E}}function YiA(e,t,A={}){const{window:r=zg,...n}=A;let i;const o=B_(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=W(()=>Array.isArray(e)?e.map(I=>dg(I)):[dg(e)]),s=Ae(a,I=>{if(g(),o.value&&r){i=new ResizeObserver(t);for(const l of I)l&&i.observe(l,n)}},{immediate:!0,flush:"post"}),C=()=>{g(),s()};return OQ(C),{isSupported:o,stop:C}}function JiA(e,t={width:0,height:0},A={}){const{window:r=zg,box:n="content-box"}=A,i=W(()=>{var I,l;return(l=(I=dg(e))==null?void 0:I.namespaceURI)==null?void 0:l.includes("svg")}),o=_(t.width),g=_(t.height),{stop:a}=YiA(e,([I])=>{const l=n==="border-box"?I.borderBoxSize:n==="content-box"?I.contentBoxSize:I.devicePixelContentBoxSize;if(r&&i.value){const u=dg(e);if(u){const c=r.getComputedStyle(u);o.value=Number.parseFloat(c.width),g.value=Number.parseFloat(c.height)}}else if(l){const u=Array.isArray(l)?l:[l];o.value=u.reduce((c,{inlineSize:h})=>c+h,0),g.value=u.reduce((c,{blockSize:h})=>c+h,0)}else o.value=I.contentRect.width,g.value=I.contentRect.height},A);QM(()=>{const I=dg(e);I&&(o.value="offsetWidth"in I?I.offsetWidth:t.width,g.value="offsetHeight"in I?I.offsetHeight:t.height)});const s=Ae(()=>dg(e),I=>{o.value=I?t.width:0,g.value=I?t.height:0});function C(){a(),s()}return{width:o,height:g,stop:C}}function Hp(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function E_(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const A=e.parentNode;return!A||A.tagName==="BODY"?!1:E_(A)}}function ziA(e){const t=e||window.event,A=t.target;return E_(A)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Ld=new WeakMap;function WiA(e,t=!1){const A=_(t);let r=null;Ae(h_(e),o=>{const g=Hp(Tn(o));if(g){const a=g;Ld.get(a)||Ld.set(a,a.style.overflow),A.value&&(a.style.overflow="hidden")}},{immediate:!0});const n=()=>{const o=Hp(Tn(e));!o||A.value||(wF&&(r=sE(o,"touchmove",g=>{ziA(g)},{passive:!1})),o.style.overflow="hidden",A.value=!0)},i=()=>{var o;const g=Hp(Tn(e));!g||!A.value||(wF&&r?.(),g.style.overflow=(o=Ld.get(g))!=null?o:"",Ld.delete(g),A.value=!1)};return OQ(i),W({get(){return A.value},set(o){o?n():i()}})}function Fs(e,t,A,r={}){var n,i,o;const{clone:g=!1,passive:a=!1,eventName:s,deep:C=!1,defaultValue:I,shouldEmit:l}=r,u=Aa(),c=A||u?.emit||((n=u?.$emit)==null?void 0:n.bind(u))||((o=(i=u?.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(u?.proxy));let h=s;t||(t="modelValue"),h=h||`update:${t.toString()}`;const d=E=>g?typeof g=="function"?g(E):OiA(E):E,B=()=>viA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=_(E);let p=!1;return Ae(()=>e[t],D=>{p||(p=!0,v.value=d(D),cr(()=>p=!1))}),Ae(v,D=>{!p&&(D!==e[t]||C)&&f(D)},{deep:C}),v}else return W({get(){return B()},set(E){f(E)}})}const qiA={class:"$ui-dark-toggle-vtr"},Q_=DA({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(e){const t=e,A=Fs(t,"isDark"),r=_iA({initialValue:A.value?"dark":"light",onChanged:g=>{A.value=g==="dark"}}),n=W({get:()=>r.value==="dark",set:g=>r.value=g?"dark":"light"}),i=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(g){if(!i||!g||!t.animation){n.value=!n.value;return}const a=g.clientX,s=g.clientY,C=Math.hypot(Math.max(a,innerWidth-a),Math.max(s,innerHeight-s));document.startViewTransition(async()=>{n.value=!n.value,await cr()}).ready.then(()=>{const I=[`circle(0px at ${a}px ${s}px)`,`circle(${C}px at ${a}px ${s}px)`];document.documentElement.animate({clipPath:n.value?[...I].reverse():I},{duration:t.animationDuration,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(g,a)=>(M(),x("span",qiA,[VA(g.$slots,"default",Oc(zI({mode:Q(r),isDark:n.value,toggle:o})))]))}}),jiA={},ViA={class:"$ui-base border $ui-border-base rounded shadow-sm"};function ZiA(e,t){return M(),x("div",ViA,[VA(e.$slots,"default")])}const sf=EM(jiA,[["render",ZiA]]),vM=DA({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(e){return(t,A)=>(M(),x("div",{class:bA(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[t.dim?"bg-opacity-50!":"bg-opacity-0!",t.blur?"backdrop-blur-sm":""]])},[VA(t.$slots,"default")],2))}}),XiA={class:"h7.5 w-full $ui-fbc"},AoA={class:"text-4.5"},eoA=y("div",{class:"i-carbon-close"},null,-1),toA=[eoA],roA={class:"content transition-all transition-duration-300"},noA={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},ioA={class:"$ui-fcc"},ooA=DA({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean}},emits:["close","update:modelValue"],setup(e,{emit:t}){const A=e,r=Fs(A,"modelValue",t,{passive:!0}),n=WiA(()=>window.document.documentElement);Er(()=>{r.value?n.value=!0:n.value=!1});function i(){r.value&&A.autoClose&&(r.value=!1)}d_("Escape",()=>{i()});const o=_(!1);return vn(()=>o.value=!0),(g,a)=>o.value||g.mountTo==="body"?(M(),tA(bU,{key:0,to:g.mountTo},[T(Uc,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:U(()=>[Q(r)?(M(),tA(vM,{key:0,dim:g.dim,blur:g.blur},{default:U(()=>[y("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:Qt({width:A.width,height:A.height})},[y("div",XiA,[y("div",AoA,[VA(g.$slots,"title",{},()=>[NA(yA(A.title),1)])]),g.closable?(M(),x("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:i},toA)):pA("",!0)]),y("div",roA,[VA(g.$slots,"default")]),y("div",noA,[VA(g.$slots,"footer",{},()=>[VA(g.$slots,"footer",{},()=>[y("div",ioA,[T(ie,{type:"primary",onClick:i},{default:U(()=>[NA(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):pA("",!0)]),_:3})],8,["to"])):pA("",!0)}}),goA=["type","placeholder","disabled"],aoA={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},Up="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",bo=DA({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1},type:{default:"text"}},emits:["update:modelValue","updateFocused","keyTab"],setup(e,{emit:t}){const A=e,r=t,n=Fs(A,"modelValue",r),i=kiA(W(()=>A.loading),A.loadingDebounceTime),o=SiA(!1,{onChanged(I){r("updateFocused",I)}}),g=W(()=>A.variant==="flat"||A.variant==="warning"||A.disabled||A.readonly),a=W(()=>A.disabled||i.value),s=_();let C=!1;return Er(()=>{i.value&&o.value?C=!0:!i.value&&C&&(C=!1,cr(()=>{o.value=!0}))}),vn(()=>{A.autoFocus&&(o.value=!0)}),Er(()=>{var I;o.value&&((I=s.value)==null||I.focus())}),(I,l)=>(M(),x("div",{class:bA(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":I.variant==="flat","cursor-not-allowed opacity-50":a.value,accent:I.variant==="accent",focused:Q(o)},[I.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:l[2]||(l[2]=()=>{o.value=!0})},[I.leftIcon?(M(),x("div",{key:0,class:bA(Up)},[T(De,{icon:I.leftIcon},null,8,["icon"])])):pA("",!0),vt(y("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":l[0]||(l[0]=u=>YA(n)?n.value=u:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:I.type,placeholder:I.placeholder,disabled:a.value||I.readonly,onBlur:l[1]||(l[1]=u=>o.value=!1)},null,40,goA),[[oeA,Q(n)]]),Q(i)?(M(),x("div",{key:1,class:bA(Up)},[T(I_)])):I.rightIcon?(M(),x("div",{key:2,class:bA(Up)},[T(De,{icon:I.rightIcon},null,8,["icon"])])):pA("",!0),g.value?pA("",!0):(M(),x("div",aoA))],2))}}),soA={class:"overflow-hidden rounded-lg shadow-lg"},CoA=y("div",{class:"p2 opacity-40"}," Empty... ",-1),BI=DA({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(e){const t=e;return Io("$ui-dropdown-disabled",W(()=>t.disabled)),(A,r)=>(M(),tA(Q(siA),{disabled:A.disabled,class:"inline-block w-auto",shown:A.shown,triggers:[A.trigger],distance:A.distance+6,placement:A.placement,skidding:A.skidding,"onUpdate:shown":r[0]||(r[0]=n=>A.$emit("update:visible",n)),onClick:r[1]||(r[1]=n=>{n.stopPropagation()})},{popper:U(({hide:n})=>[y("div",soA,[VA(A.$slots,"popper",Oc(zI({hide:n})),()=>[CoA])])]),default:U(()=>[VA(A.$slots,"default",{},()=>[T(ie,Ir({...A.buttonProps,disabled:A.disabled},{class:A.buttonClass}),hU({icon:U(()=>[VA(A.$slots,"button-icon")]),"icon-right":U(()=>[VA(A.$slots,"button-icon-right")]),_:2},[A.label?{name:"default",fn:U(()=>[NA(yA(A.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),yF=DA({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(e){const t=e,A=pt("$ui-dropdown-disabled",void 0);return(r,n)=>vt((M(),tA(ie,Ir({...t,round:!1},{disabled:Q(A),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:U(()=>[VA(r.$slots,"icon")]),default:U(()=>[VA(r.$slots,"default")]),_:3},16,["disabled"])),[[Q(C_)]])}}),IoA={class:"$ui-fec gap2.5"},loA=DA({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(e,{emit:t}){const A=e,r=t,n=Fs(A,"modelValue",r);Er(()=>{n.value||r("close")});function i(o=!1){(A.autoClose||o)&&(n.value=!1)}return(o,g)=>(M(),tA(ooA,{modelValue:Q(n),"onUpdate:modelValue":g[2]||(g[2]=a=>YA(n)?n.value=a:null),width:o.width,height:o.height,title:o.title,closable:!1},{footer:U(()=>[y("div",IoA,[T(ie,{onClick:g[0]||(g[0]=()=>{r("cancel"),i(!0)})},{default:U(()=>[NA(yA(o.cancelText),1)]),_:1}),T(ie,{loading:o.loading,type:"primary",onClick:g[1]||(g[1]=()=>{r("confirm"),i()})},{default:U(()=>[NA(yA(o.confirmText),1)]),_:1},8,["loading"])])]),default:U(()=>[VA(o.$slots,"default",{class:"h-auto w-auto"},()=>[NA(yA(o.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),uoA={class:"m1 min-w-35 w-auto flex flex-col"},coA=["onClick"],hoA=y("div",{class:"i-mdi-chevron-down"},null,-1),CE=DA({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:e=>String(e)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:t}){const A=e,r=t,n=BU(),i=W({get:()=>A.modelValue,set:a=>r("update:modelValue",a)}),o=W(()=>{const a=A.options.find(s=>s.value===i.value);return a!=null&&a.label?A.labelRenderer(a.label):A.placeholder});function g(a){A.multiple?i.value=i.value.includes(a.value)?i.value.filter(s=>s!==a.value):[...i.value,a.value]:i.value=a.value}return(a,s)=>(M(),tA(BI,Ir({label:o.value},{buttonProps:a.buttonProps,disabled:a.disabled}),hU({popper:U(()=>[y("div",uoA,[Q(n).item?(M(!0),x(wA,{key:0},Be(a.options,C=>(M(),x("div",{key:C.value,class:"cursor-pointer",onClick:I=>g(C)},[VA(a.$slots,"item",Oc(zI({item:C,active:a.multiple?i.value.includes(C.value):C.value===i.value,disabled:a.disabled})))],8,coA))),128)):(M(!0),x(wA,{key:1},Be(a.options,C=>vt((M(),tA(ie,{key:C.value,disabled:a.disabled,round:"normal",class:bA(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:a.multiple?i.value.includes(C.value):C.value===i.value}]),onClick:I=>g(C)},{default:U(()=>[NA(yA(C.label),1)]),_:2},1032,["disabled","class","onClick"])),[[Q(C_),a.autoClose]])),128))])]),"button-icon-right":U(()=>[hoA]),_:2},[Q(n).button?{name:"default",fn:U(()=>[VA(a.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),mF=DA({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Fs(e,"modelValue",t),r=FiA(A);return(n,i)=>(M(),x("div",{class:bA([[n.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:i[0]||(i[0]=o=>!n.disabled&&Q(r)())},[VA(n.$slots,"default"),y("div",{class:bA([{selected:Q(A)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[y("div",{class:bA(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!n.disabled},{"opacity-65":n.disabled}]])},null,2)],2)],2))}}),bC=DA({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Fs(e,"modelValue",t);return(r,n)=>(M(),x("div",{class:bA(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[Q(A)?r.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:n[0]||(n[0]=i=>A.value=!Q(A))},[y("div",{class:bA([[Q(A)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),v_=DA({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean}},emits:["update:modelValue","close"],setup(e,{emit:t}){const A=e,r=t,{height:n}=JiA(()=>typeof A.top=="string"?document.querySelector(A.top):A.top,void 0,{box:"border-box"}),i=Fs(A,"modelValue",r),o={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};d_("Escape",()=>{A.closable&&(i.value=!1)});const g=W(()=>o[A.placement]),a=_(!1);return vn(()=>a.value=!0),(s,C)=>a.value||s.mountTo==="body"?(M(),tA(bU,{key:0,to:s.mountTo},[T(Uc,{"enter-from-class":`${g.value.transition}`,"leave-to-class":`${g.value.transition}`},{default:U(()=>[Q(i)?(M(),tA(vM,{key:0,class:bA({"pointer-events-none":s.permanent}),dim:s.dim,blur:s.blur,onClick:C[2]||(C[2]=I=>s.closeOutside&&s.closable&&(i.value=!1))},{default:U(()=>[y("div",{class:bA([[g.value.class,s.contentClass??"",s.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:Qt({top:s.placement==="bottom"?"auto":`${Q(n)}px`,height:["top","bottom"].includes(s.placement)?"auto":`calc(100% - ${Q(n)}px)`}),onClick:C[1]||(C[1]=fr(()=>{},["stop"]))},[s.closable?(M(),x("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:C[0]||(C[0]=I=>i.value=!1)})):pA("",!0),VA(s.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):pA("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):pA("",!0)}}),doA=DA({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(e){const t=e,A={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},r={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},n=_(!1);vn(()=>{n.value=!0,setTimeout(()=>{n.value=!1},t.duration)});const i=W(()=>t.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(o,g)=>(M(),x("div",{class:bA(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":o.placement.startsWith("top")},{"bottom-0":o.placement.startsWith("bottom")}]])},[T(Uc,{"enter-from-class":i.value,"leave-to-class":i.value,onAfterLeave:g[0]||(g[0]=()=>{var a;n.value||(a=o.onClose)==null||a.call(o)})},{default:U(()=>[n.value?(M(),x("div",{key:0,class:"flex transition-all duration-300",style:Qt({justifyContent:o.placement.includes("right")?"right":o.placement.includes("left")?"left":"center"})},[y("div",{class:bA(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[o.classes,r[o.type]]])},[y("div",{class:bA(A[o.type])},null,2),y("div",null,yA(o.message),1)],2)],4)):pA("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),BoA=DA({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(e){return(t,A)=>(M(),tA(Q(CiA),Ir({disabled:t.disabled,placement:t.placement},t.$attrs),{popper:U(()=>[VA(t.$slots,"popper")]),default:U(()=>[VA(t.$slots,"default")]),_:3},16,["disabled","placement"]))}});function i0(e){const t=document.createElement("div");t.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(t);const A=e.onClose;function r(){fP(null,t)}e.onClose=()=>{r(),A?.(),document.body.removeChild(t)};const n=WI(doA,e);fP(n,t)}function Mo(e){return Array.isArray?Array.isArray(e):D_(e)==="[object Array]"}const foA=1/0;function EoA(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-foA?"-0":t}function QoA(e){return e==null?"":EoA(e)}function Fi(e){return typeof e=="string"}function p_(e){return typeof e=="number"}function voA(e){return e===!0||e===!1||poA(e)&&D_(e)=="[object Boolean]"}function w_(e){return typeof e=="object"}function poA(e){return w_(e)&&e!==null}function cn(e){return e!=null}function Kp(e){return!e.trim().length}function D_(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const woA="Incorrect 'index' type",DoA=e=>`Invalid value for key ${e}`,yoA=e=>`Pattern length exceeds max of ${e}.`,moA=e=>`Missing ${e} property in key`,boA=e=>`Property 'weight' in key '${e}' must be a positive integer`,bF=Object.prototype.hasOwnProperty;class MoA{constructor(t){this._keys=[],this._keyMap={};let A=0;t.forEach(r=>{let n=y_(r);this._keys.push(n),this._keyMap[n.id]=n,A+=n.weight}),this._keys.forEach(r=>{r.weight/=A})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function y_(e){let t=null,A=null,r=null,n=1,i=null;if(Fi(e)||Mo(e))r=e,t=MF(e),A=o0(e);else{if(!bF.call(e,"name"))throw new Error(moA("name"));const o=e.name;if(r=o,bF.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(boA(o));t=MF(o),A=o0(o),i=e.getFn}return{path:t,id:A,weight:n,src:r,getFn:i}}function MF(e){return Mo(e)?e:e.split(".")}function o0(e){return Mo(e)?e.join("."):e}function koA(e,t){let A=[],r=!1;const n=(i,o,g)=>{if(cn(i))if(!o[g])A.push(i);else{let a=o[g];const s=i[a];if(!cn(s))return;if(g===o.length-1&&(Fi(s)||p_(s)||voA(s)))A.push(QoA(s));else if(Mo(s)){r=!0;for(let C=0,I=s.length;C<I;C+=1)n(s[C],o,g+1)}else o.length&&n(s,o,g+1)}};return n(e,Fi(t)?t.split("."):t,0),r?A:A[0]}const SoA={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},NoA={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},PoA={location:0,threshold:.6,distance:100},FoA={useExtendedSearch:!1,getFn:koA,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ee={...NoA,...SoA,...PoA,...FoA};const RoA=/[^ ]+/g;function LoA(e=1,t=3){const A=new Map,r=Math.pow(10,t);return{get(n){const i=n.match(RoA).length;if(A.has(i))return A.get(i);const o=1/Math.pow(i,.5*e),g=parseFloat(Math.round(o*r)/r);return A.set(i,g),g},clear(){A.clear()}}}class pM{constructor({getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){this.norm=LoA(A,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((A,r)=>{this._keysMap[A.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Fi(this.docs[0])?this.docs.forEach((t,A)=>{this._addString(t,A)}):this.docs.forEach((t,A)=>{this._addObject(t,A)}),this.norm.clear())}add(t){const A=this.size();Fi(t)?this._addString(t,A):this._addObject(t,A)}removeAt(t){this.records.splice(t,1);for(let A=t,r=this.size();A<r;A+=1)this.records[A].i-=1}getValueForItemAtKeyId(t,A){return t[this._keysMap[A]]}size(){return this.records.length}_addString(t,A){if(!cn(t)||Kp(t))return;let r={v:t,i:A,n:this.norm.get(t)};this.records.push(r)}_addObject(t,A){let r={i:A,$:{}};this.keys.forEach((n,i)=>{let o=n.getFn?n.getFn(t):this.getFn(t,n.path);if(cn(o)){if(Mo(o)){let g=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:s,value:C}=a.pop();if(cn(C))if(Fi(C)&&!Kp(C)){let I={v:C,i:s,n:this.norm.get(C)};g.push(I)}else Mo(C)&&C.forEach((I,l)=>{a.push({nestedArrIndex:l,value:I})})}r.$[i]=g}else if(Fi(o)&&!Kp(o)){let g={v:o,n:this.norm.get(o)};r.$[i]=g}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function m_(e,t,{getFn:A=ee.getFn,fieldNormWeight:r=ee.fieldNormWeight}={}){const n=new pM({getFn:A,fieldNormWeight:r});return n.setKeys(e.map(y_)),n.setSources(t),n.create(),n}function $oA(e,{getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){const{keys:r,records:n}=e,i=new pM({getFn:t,fieldNormWeight:A});return i.setKeys(r),i.setIndexRecords(n),i}function $d(e,{errors:t=0,currentLocation:A=0,expectedLocation:r=0,distance:n=ee.distance,ignoreLocation:i=ee.ignoreLocation}={}){const o=t/e.length;if(i)return o;const g=Math.abs(r-A);return n?o+g/n:g?1:o}function OoA(e=[],t=ee.minMatchCharLength){let A=[],r=-1,n=-1,i=0;for(let o=e.length;i<o;i+=1){let g=e[i];g&&r===-1?r=i:!g&&r!==-1&&(n=i-1,n-r+1>=t&&A.push([r,n]),r=-1)}return e[i-1]&&i-r>=t&&A.push([r,i-1]),A}const $a=32;function GoA(e,t,A,{location:r=ee.location,distance:n=ee.distance,threshold:i=ee.threshold,findAllMatches:o=ee.findAllMatches,minMatchCharLength:g=ee.minMatchCharLength,includeMatches:a=ee.includeMatches,ignoreLocation:s=ee.ignoreLocation}={}){if(t.length>$a)throw new Error(yoA($a));const C=t.length,I=e.length,l=Math.max(0,Math.min(r,I));let u=i,c=l;const h=g>1||a,d=h?Array(I):[];let B;for(;(B=e.indexOf(t,c))>-1;){let F=$d(t,{currentLocation:B,expectedLocation:l,distance:n,ignoreLocation:s});if(u=Math.min(F,u),c=B+C,h){let N=0;for(;N<C;)d[B+N]=1,N+=1}}c=-1;let f=[],E=1,v=C+I;const p=1<<C-1;for(let F=0;F<C;F+=1){let N=0,S=v;for(;N<S;)$d(t,{errors:F,currentLocation:l+S,expectedLocation:l,distance:n,ignoreLocation:s})<=u?N=S:v=S,S=Math.floor((v-N)/2+N);v=S;let m=Math.max(1,l-S+1),R=o?I:Math.min(l+S,I)+C,k=Array(R+2);k[R+1]=(1<<F)-1;for(let H=R;H>=m;H-=1){let X=H-1,q=A[e.charAt(X)];if(h&&(d[X]=+!!q),k[H]=(k[H+1]<<1|1)&q,F&&(k[H]|=(f[H+1]|f[H])<<1|1|f[H+1]),k[H]&p&&(E=$d(t,{errors:F,currentLocation:X,expectedLocation:l,distance:n,ignoreLocation:s}),E<=u)){if(u=E,c=X,c<=l)break;m=Math.max(1,2*l-c)}}if($d(t,{errors:F+1,currentLocation:l,expectedLocation:l,distance:n,ignoreLocation:s})>u)break;f=k}const D={isMatch:c>=0,score:Math.max(.001,E)};if(h){const F=OoA(d,g);F.length?a&&(D.indices=F):D.isMatch=!1}return D}function xoA(e){let t={};for(let A=0,r=e.length;A<r;A+=1){const n=e.charAt(A);t[n]=(t[n]||0)|1<<r-A-1}return t}class b_{constructor(t,{location:A=ee.location,threshold:r=ee.threshold,distance:n=ee.distance,includeMatches:i=ee.includeMatches,findAllMatches:o=ee.findAllMatches,minMatchCharLength:g=ee.minMatchCharLength,isCaseSensitive:a=ee.isCaseSensitive,ignoreLocation:s=ee.ignoreLocation}={}){if(this.options={location:A,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:g,isCaseSensitive:a,ignoreLocation:s},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const C=(l,u)=>{this.chunks.push({pattern:l,alphabet:xoA(l),startIndex:u})},I=this.pattern.length;if(I>$a){let l=0;const u=I%$a,c=I-u;for(;l<c;)C(this.pattern.substr(l,$a),l),l+=$a;if(u){const h=I-$a;C(this.pattern.substr(h),h)}}else C(this.pattern,0)}searchIn(t){const{isCaseSensitive:A,includeMatches:r}=this.options;if(A||(t=t.toLowerCase()),this.pattern===t){let c={isMatch:!0,score:0};return r&&(c.indices=[[0,t.length-1]]),c}const{location:n,distance:i,threshold:o,findAllMatches:g,minMatchCharLength:a,ignoreLocation:s}=this.options;let C=[],I=0,l=!1;this.chunks.forEach(({pattern:c,alphabet:h,startIndex:d})=>{const{isMatch:B,score:f,indices:E}=GoA(t,c,h,{location:n+d,distance:i,threshold:o,findAllMatches:g,minMatchCharLength:a,includeMatches:r,ignoreLocation:s});B&&(l=!0),I+=f,B&&E&&(C=[...C,...E])});let u={isMatch:l,score:l?I/this.chunks.length:1};return l&&r&&(u.indices=C),u}}class ta{constructor(t){this.pattern=t}static isMultiMatch(t){return kF(t,this.multiRegex)}static isSingleMatch(t){return kF(t,this.singleRegex)}search(){}}function kF(e,t){const A=e.match(t);return A?A[1]:null}class ToA extends ta{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const A=t===this.pattern;return{isMatch:A,score:A?0:1,indices:[0,this.pattern.length-1]}}}class HoA extends ta{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class UoA extends ta{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const A=t.startsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[0,this.pattern.length-1]}}}class KoA extends ta{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const A=!t.startsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[0,t.length-1]}}}class _oA extends ta{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const A=t.endsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class YoA extends ta{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const A=!t.endsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[0,t.length-1]}}}class M_ extends ta{constructor(t,{location:A=ee.location,threshold:r=ee.threshold,distance:n=ee.distance,includeMatches:i=ee.includeMatches,findAllMatches:o=ee.findAllMatches,minMatchCharLength:g=ee.minMatchCharLength,isCaseSensitive:a=ee.isCaseSensitive,ignoreLocation:s=ee.ignoreLocation}={}){super(t),this._bitapSearch=new b_(t,{location:A,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:g,isCaseSensitive:a,ignoreLocation:s})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class k_ extends ta{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let A=0,r;const n=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,A))>-1;)A=r+i,n.push([r,A-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const g0=[ToA,k_,UoA,KoA,YoA,_oA,HoA,M_],SF=g0.length,JoA=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,zoA="|";function WoA(e,t={}){return e.split(zoA).map(A=>{let r=A.trim().split(JoA).filter(i=>i&&!!i.trim()),n=[];for(let i=0,o=r.length;i<o;i+=1){const g=r[i];let a=!1,s=-1;for(;!a&&++s<SF;){const C=g0[s];let I=C.isMultiMatch(g);I&&(n.push(new C(I,t)),a=!0)}if(!a)for(s=-1;++s<SF;){const C=g0[s];let I=C.isSingleMatch(g);if(I){n.push(new C(I,t));break}}}return n})}const qoA=new Set([M_.type,k_.type]);class joA{constructor(t,{isCaseSensitive:A=ee.isCaseSensitive,includeMatches:r=ee.includeMatches,minMatchCharLength:n=ee.minMatchCharLength,ignoreLocation:i=ee.ignoreLocation,findAllMatches:o=ee.findAllMatches,location:g=ee.location,threshold:a=ee.threshold,distance:s=ee.distance}={}){this.query=null,this.options={isCaseSensitive:A,includeMatches:r,minMatchCharLength:n,findAllMatches:o,ignoreLocation:i,location:g,threshold:a,distance:s},this.pattern=A?t:t.toLowerCase(),this.query=WoA(this.pattern,this.options)}static condition(t,A){return A.useExtendedSearch}searchIn(t){const A=this.query;if(!A)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let i=0,o=[],g=0;for(let a=0,s=A.length;a<s;a+=1){const C=A[a];o.length=0,i=0;for(let I=0,l=C.length;I<l;I+=1){const u=C[I],{isMatch:c,indices:h,score:d}=u.search(t);if(c){if(i+=1,g+=d,r){const B=u.constructor.type;qoA.has(B)?o=[...o,...h]:o.push(h)}}else{g=0,i=0,o.length=0;break}}if(i){let I={isMatch:!0,score:g/i};return r&&(I.indices=o),I}}return{isMatch:!1,score:1}}}const a0=[];function VoA(...e){a0.push(...e)}function s0(e,t){for(let A=0,r=a0.length;A<r;A+=1){let n=a0[A];if(n.condition(e,t))return new n(e,t)}return new b_(e,t)}const IE={AND:"$and",OR:"$or"},C0={PATH:"$path",PATTERN:"$val"},I0=e=>!!(e[IE.AND]||e[IE.OR]),ZoA=e=>!!e[C0.PATH],XoA=e=>!Mo(e)&&w_(e)&&!I0(e),NF=e=>({[IE.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function S_(e,t,{auto:A=!0}={}){const r=n=>{let i=Object.keys(n);const o=ZoA(n);if(!o&&i.length>1&&!I0(n))return r(NF(n));if(XoA(n)){const a=o?n[C0.PATH]:i[0],s=o?n[C0.PATTERN]:n[a];if(!Fi(s))throw new Error(DoA(a));const C={keyId:o0(a),pattern:s};return A&&(C.searcher=s0(s,t)),C}let g={children:[],operator:i[0]};return i.forEach(a=>{const s=n[a];Mo(s)&&s.forEach(C=>{g.children.push(r(C))})}),g};return I0(e)||(e=NF(e)),r(e)}function AgA(e,{ignoreFieldNorm:t=ee.ignoreFieldNorm}){e.forEach(A=>{let r=1;A.matches.forEach(({key:n,norm:i,score:o})=>{const g=n?n.weight:null;r*=Math.pow(o===0&&g?Number.EPSILON:o,(g||1)*(t?1:i))}),A.score=r})}function egA(e,t){const A=e.matches;t.matches=[],cn(A)&&A.forEach(r=>{if(!cn(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let o={indices:n,value:i};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),t.matches.push(o)})}function tgA(e,t){t.score=e.score}function rgA(e,t,{includeMatches:A=ee.includeMatches,includeScore:r=ee.includeScore}={}){const n=[];return A&&n.push(egA),r&&n.push(tgA),e.map(i=>{const{idx:o}=i,g={item:t[o],refIndex:o};return n.length&&n.forEach(a=>{a(i,g)}),g})}class Rs{constructor(t,A={},r){this.options={...ee,...A},this.options.useExtendedSearch,this._keyStore=new MoA(this.options.keys),this.setCollection(t,r)}setCollection(t,A){if(this._docs=t,A&&!(A instanceof pM))throw new Error(woA);this._myIndex=A||m_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){cn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const A=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,n-=1,A.push(i))}return A}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:A=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:o,ignoreFieldNorm:g}=this.options;let a=Fi(t)?Fi(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return AgA(a,{ignoreFieldNorm:g}),i&&a.sort(o),p_(A)&&A>-1&&(a=a.slice(0,A)),rgA(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(t){const A=s0(t,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:o,n:g})=>{if(!cn(i))return;const{isMatch:a,score:s,indices:C}=A.searchIn(i);a&&n.push({item:i,idx:o,matches:[{score:s,value:i,norm:g,indices:C}]})}),n}_searchLogical(t){const A=S_(t,this.options),r=(g,a,s)=>{if(!g.children){const{keyId:I,searcher:l}=g,u=this._findMatches({key:this._keyStore.get(I),value:this._myIndex.getValueForItemAtKeyId(a,I),searcher:l});return u&&u.length?[{idx:s,item:a,matches:u}]:[]}const C=[];for(let I=0,l=g.children.length;I<l;I+=1){const u=g.children[I],c=r(u,a,s);if(c.length)C.push(...c);else if(g.operator===IE.AND)return[]}return C},n=this._myIndex.records,i={},o=[];return n.forEach(({$:g,i:a})=>{if(cn(g)){let s=r(A,g,a);s.length&&(i[a]||(i[a]={idx:a,item:g,matches:[]},o.push(i[a])),s.forEach(({matches:C})=>{i[a].matches.push(...C)}))}}),o}_searchObjectList(t){const A=s0(t,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:o,i:g})=>{if(!cn(o))return;let a=[];r.forEach((s,C)=>{a.push(...this._findMatches({key:s,value:o[C],searcher:A}))}),a.length&&i.push({idx:g,item:o,matches:a})}),i}_findMatches({key:t,value:A,searcher:r}){if(!cn(A))return[];let n=[];if(Mo(A))A.forEach(({v:i,i:o,n:g})=>{if(!cn(i))return;const{isMatch:a,score:s,indices:C}=r.searchIn(i);a&&n.push({score:s,key:t,value:i,idx:o,norm:g,indices:C})});else{const{v:i,n:o}=A,{isMatch:g,score:a,indices:s}=r.searchIn(i);g&&n.push({score:a,key:t,value:i,norm:o,indices:s})}return n}}Rs.version="7.0.0";Rs.createIndex=m_;Rs.parseIndex=$oA;Rs.config=ee;Rs.parseQuery=S_;VoA(joA);const ngA=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"},{icon:"i-icon-park-outline:vertical-timeline",name:"timeline",order:-100,path:"timeline",title:"Timeline"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-logos-pinia",name:"pinia",order:-100,path:"pinia",title:"Pinia"},{icon:"i-carbon-language",name:"i18n",order:-100,path:"i18n",title:"I18n Resources"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],N_=["assets","graph","vite-inspect"],PF={pinia:"pinia",router:"vueRouter",i18n:"vueI18n"};function igA(e,t){const A=t.name;return A in PF&&e[PF[A]]}function ogA(e,t){const A=Kf(ngA);return A.forEach(r=>{r[0]==="modules"&&(r[1]=r[1].filter(n=>t?igA(t,n):!0))}),e&&!F1?A:A.map(([r,n])=>[r,n.filter(i=>!N_.includes(i.name))])}const P_=Zi([]),F_=_(null),ggA=W(()=>P_.value.find(e=>e.id===F_.value));function qi(e){return x1()?(G4(e),!0):!1}function It(e){return typeof e=="function"?e():Q(e)}const Is=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const agA=e=>typeof e<"u",sgA=e=>e!=null,CgA=Object.prototype.toString,IgA=e=>CgA.call(e)==="[object Object]",lo=()=>{},lgA=ugA();function ugA(){var e,t;return Is&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function cgA(e,t){function A(...r){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(n).catch(i)})}return A}const R_=e=>e();function hgA(e,t={}){let A,r,n=lo;const i=g=>{clearTimeout(g),n(),n=lo};return g=>{const a=It(e),s=It(t.maxWait);return A&&i(A),a<=0||s!==void 0&&s<=0?(r&&(i(r),r=null),Promise.resolve(g())):new Promise((C,I)=>{n=t.rejectOnCancel?I:C,s&&!r&&(r=setTimeout(()=>{A&&i(A),r=null,C(g())},s)),A=setTimeout(()=>{r&&i(r),r=null,C(g())},a)})}}function dgA(e=R_){const t=_(!0);function A(){t.value=!1}function r(){t.value=!0}const n=(...i)=>{t.value&&e(...i)};return{isActive:Lo(t),pause:A,resume:r,eventFilter:n}}function FF(e,t=!1,A="Timeout"){return new Promise((r,n)=>{setTimeout(t?()=>n(A):r,e)})}function BgA(e){let t;function A(){return t||(t=e()),t}return A.reset=async()=>{const r=t;t=void 0,r&&await r},A}function fgA(e){return e||Aa()}function EgA(...e){if(e.length!==1)return AU(...e);const t=e[0];return typeof t=="function"?Lo(j1(()=>({get:t,set:lo}))):_(t)}function L_(e,t,A={}){const{eventFilter:r=R_,...n}=A;return Ae(e,cgA(r,t),n)}function QgA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=dgA(r);return{stop:L_(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function qc(e,t=!0,A){fgA()?vn(e,A):t?e():cr(e)}function l0(e,t=!1){function A(I,{flush:l="sync",deep:u=!1,timeout:c,throwOnTimeout:h}={}){let d=null;const f=[new Promise(E=>{d=Ae(e,v=>{I(v)!==t&&(d?.(),E(v))},{flush:l,deep:u,immediate:!0})})];return c!=null&&f.push(FF(c,h).then(()=>It(e)).finally(()=>d?.())),Promise.race(f)}function r(I,l){if(!YA(I))return A(v=>v===I,l);const{flush:u="sync",deep:c=!1,timeout:h,throwOnTimeout:d}=l??{};let B=null;const E=[new Promise(v=>{B=Ae([e,I],([p,D])=>{t!==(p===D)&&(B?.(),v(p))},{flush:u,deep:c,immediate:!0})})];return h!=null&&E.push(FF(h,d).then(()=>It(e)).finally(()=>(B?.(),It(e)))),Promise.race(E)}function n(I){return A(l=>!!l,I)}function i(I){return r(null,I)}function o(I){return r(void 0,I)}function g(I){return A(Number.isNaN,I)}function a(I,l){return A(u=>{const c=Array.from(u);return c.includes(I)||c.includes(It(I))},l)}function s(I){return C(1,I)}function C(I=1,l){let u=-1;return A(()=>(u+=1,u>=I),l)}return Array.isArray(It(e))?{toMatch:A,toContains:a,changed:s,changedTimes:C,get not(){return l0(e,!t)}}:{toMatch:A,toBe:r,toBeTruthy:n,toBeNull:i,toBeNaN:g,toBeUndefined:o,changed:s,changedTimes:C,get not(){return l0(e,!t)}}}function vgA(e){return l0(e)}function pgA(e,t=1e3,A={}){const{immediate:r=!0,immediateCallback:n=!1}=A;let i=null;const o=_(!1);function g(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,g()}function s(){const C=It(t);C<=0||(o.value=!0,n&&e(),g(),i=setInterval(e,C))}if(r&&Is&&s(),YA(t)||typeof t=="function"){const C=Ae(t,()=>{o.value&&Is&&s()});qi(C)}return qi(a),{isActive:o,pause:a,resume:s}}function wgA(e,t,A={}){const{immediate:r=!0}=A,n=_(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function g(){n.value=!1,o()}function a(...s){o(),n.value=!0,i=setTimeout(()=>{n.value=!1,i=null,e(...s)},It(t))}return r&&(n.value=!0,Is&&a()),qi(g),{isPending:Lo(n),start:a,stop:g}}function wM(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=YA(e),i=_(e);function o(g){if(arguments.length)return i.value=g,i.value;{const a=It(A);return i.value=i.value===a?It(r):a,i.value}}return n?o:[i,o]}function DM(e,t,A={}){const{debounce:r=0,maxWait:n=void 0,...i}=A;return L_(e,t,{...i,eventFilter:hgA(r,{maxWait:n})})}function $_(e,t,A){const r=Ae(e,(...n)=>(cr(()=>r()),t(...n)),A);return r}function RF(e,t,A){let r;YA(A)?r={evaluating:A}:r=A||{};const{lazy:n=!1,evaluating:i=void 0,shallow:o=!0,onError:g=lo}=r,a=_(!n),s=o?Zi(t):_(t);let C=0;return Er(async I=>{if(!a.value)return;C++;const l=C;let u=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const c=await e(h=>{I(()=>{i&&(i.value=!1),u||h()})});l===C&&(s.value=c)}catch(c){g(c)}finally{i&&l===C&&(i.value=!1),u=!0}}),n?W(()=>(a.value=!0,s.value)):s}function gi(e){var t;const A=It(e);return(t=A?.$el)!=null?t:A}const Qn=Is?window:void 0,DgA=Is?window.document:void 0,O_=Is?window.navigator:void 0;function Zt(...e){let t,A,r,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([A,r,n]=e,t=Qn):[t,A,r,n]=e,!t)return lo;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(C=>C()),i.length=0},g=(C,I,l,u)=>(C.addEventListener(I,l,u),()=>C.removeEventListener(I,l,u)),a=Ae(()=>[gi(t),It(n)],([C,I])=>{if(o(),!C)return;const l=IgA(I)?{...I}:I;i.push(...A.flatMap(u=>r.map(c=>g(C,u,c,l))))},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return qi(s),s}let LF=!1;function ygA(e,t,A={}){const{window:r=Qn,ignore:n=[],capture:i=!0,detectIframe:o=!1}=A;if(!r)return lo;lgA&&!LF&&(LF=!0,Array.from(r.document.body.children).forEach(l=>l.addEventListener("click",lo)),r.document.documentElement.addEventListener("click",lo));let g=!0;const a=l=>n.some(u=>{if(typeof u=="string")return Array.from(r.document.querySelectorAll(u)).some(c=>c===l.target||l.composedPath().includes(c));{const c=gi(u);return c&&(l.target===c||l.composedPath().includes(c))}}),C=[Zt(r,"click",l=>{const u=gi(e);if(!(!u||u===l.target||l.composedPath().includes(u))){if(l.detail===0&&(g=!a(l)),!g){g=!0;return}t(l)}},{passive:!0,capture:i}),Zt(r,"pointerdown",l=>{const u=gi(e);g=!a(l)&&!!(u&&!l.composedPath().includes(u))},{passive:!0}),o&&Zt(r,"blur",l=>{setTimeout(()=>{var u;const c=gi(e);((u=r.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!c?.contains(r.document.activeElement)&&t(l)},0)})].filter(Boolean);return()=>C.forEach(l=>l())}function mgA(){const e=_(!1),t=Aa();return t&&vn(()=>{e.value=!0},t),e}function ZI(e){const t=mgA();return W(()=>(t.value,!!e()))}function bgA(e,t={}){const{immediate:A=!0,fpsLimit:r=void 0,window:n=Qn}=t,i=_(!1),o=r?1e3/r:null;let g=0,a=null;function s(l){if(!i.value||!n)return;g||(g=l);const u=l-g;if(o&&u<o){a=n.requestAnimationFrame(s);return}g=l,e({delta:u,timestamp:l}),a=n.requestAnimationFrame(s)}function C(){!i.value&&n&&(i.value=!0,g=0,a=n.requestAnimationFrame(s))}function I(){i.value=!1,a!=null&&n&&(n.cancelAnimationFrame(a),a=null)}return A&&C(),qi(I),{isActive:Lo(i),pause:I,resume:C}}function G_(e,t={}){const{window:A=Qn}=t,r=ZI(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=_(!1),o=s=>{i.value=s.matches},g=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",o):n.removeListener(o))},a=Er(()=>{r.value&&(g(),n=A.matchMedia(It(e)),"addEventListener"in n?n.addEventListener("change",o):n.addListener(o),i.value=n.matches)});return qi(()=>{a(),g(),n=void 0}),i}function $F(e,t={}){const{controls:A=!1,navigator:r=O_}=t,n=ZI(()=>r&&"permissions"in r);let i;const o=typeof e=="string"?{name:e}:e,g=_(),a=()=>{i&&(g.value=i.state)},s=BgA(async()=>{if(n.value){if(!i)try{i=await r.permissions.query(o),Zt(i,"change",a),a()}catch{g.value="prompt"}return i}});return s(),A?{state:g,isSupported:n,query:s}:g}function yM(e={}){const{navigator:t=O_,read:A=!1,source:r,copiedDuring:n=1500,legacy:i=!1}=e,o=ZI(()=>t&&"clipboard"in t),g=$F("clipboard-read"),a=$F("clipboard-write"),s=W(()=>o.value||i),C=_(""),I=_(!1),l=wgA(()=>I.value=!1,n);function u(){o.value&&B(g.value)?t.clipboard.readText().then(f=>{C.value=f}):C.value=d()}s.value&&A&&Zt(["copy","cut"],u);async function c(f=It(r)){s.value&&f!=null&&(o.value&&B(a.value)?await t.clipboard.writeText(f):h(f),C.value=f,I.value=!0,l.start())}function h(f){const E=document.createElement("textarea");E.value=f??"",E.style.position="absolute",E.style.opacity="0",document.body.appendChild(E),E.select(),document.execCommand("copy"),E.remove()}function d(){var f,E,v;return(v=(E=(f=document?.getSelection)==null?void 0:f.call(document))==null?void 0:E.toString())!=null?v:""}function B(f){return f==="granted"||f==="prompt"}return{isSupported:s,text:C,copied:I,copy:c}}function MgA(e){return JSON.parse(JSON.stringify(e))}const Od=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gd="__vueuse_ssr_handlers__",kgA=SgA();function SgA(){return Gd in Od||(Od[Gd]=Od[Gd]||{}),Od[Gd]}function x_(e,t){return kgA[e]||t}function NgA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const PgA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},OF="vueuse-storage";function T_(e,t,A,r={}){var n;const{flush:i="pre",deep:o=!0,listenToStorageChanges:g=!0,writeDefaults:a=!0,mergeDefaults:s=!1,shallow:C,window:I=Qn,eventFilter:l,onError:u=m=>{console.error(m)},initOnMounted:c}=r,h=(C?Zi:_)(typeof t=="function"?t():t);if(!A)try{A=x_("getDefaultStorage",()=>{var m;return(m=Qn)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=It(t),B=NgA(d),f=(n=r.serializer)!=null?n:PgA[B],{pause:E,resume:v}=QgA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&qc(()=>{Zt(I,"storage",N),Zt(I,OF,S),c&&N()}),c||N();function p(m,R){I&&I.dispatchEvent(new CustomEvent(OF,{detail:{key:e,oldValue:m,newValue:R,storageArea:A}}))}function D(m){try{const R=A.getItem(e);if(m==null)p(R,null),A.removeItem(e);else{const k=f.write(m);R!==k&&(A.setItem(e,k),p(R,k))}}catch(R){u(R)}}function F(m){const R=m?m.newValue:A.getItem(e);if(R==null)return a&&d!=null&&A.setItem(e,f.write(d)),d;if(!m&&s){const k=f.read(R);return typeof s=="function"?s(k,d):B==="object"&&!Array.isArray(k)?{...d,...k}:k}else return typeof R!="string"?R:f.read(R)}function N(m){if(!(m&&m.storageArea!==A)){if(m&&m.key==null){h.value=d;return}if(!(m&&m.key!==e)){E();try{m?.newValue!==f.write(h.value)&&(h.value=F(m))}catch(R){u(R)}finally{m?cr(v):v()}}}}function S(m){N(m.detail)}return h}function H_(e){return G_("(prefers-color-scheme: dark)",e)}function GQ(e={}){const{selector:t="html",attribute:A="class",initialValue:r="auto",window:n=Qn,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:a,emitAuto:s,disableTransition:C=!0}=e,I={auto:"",light:"light",dark:"dark",...e.modes||{}},l=H_({window:n}),u=W(()=>l.value?"dark":"light"),c=a||(o==null?EgA(r):T_(o,r,i,{window:n,listenToStorageChanges:g})),h=W(()=>c.value==="auto"?u.value:c.value),d=x_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):gi(v);if(!F)return;let N;if(C){N=n.document.createElement("style");const S="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";N.appendChild(document.createTextNode(S)),n.document.head.appendChild(N)}if(p==="class"){const S=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{S.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(N).opacity,document.head.removeChild(N))});function B(v){var p;d(t,A,(p=I[v])!=null?p:v)}function f(v){e.onChanged?e.onChanged(v,B):B(v)}Ae(h,f,{flush:"post",immediate:!0}),qc(()=>f(h.value));const E=W({get(){return s?c.value:h.value},set(v){c.value=v}});try{return Object.assign(E,{store:c,system:u,state:h})}catch{return E}}function FgA(e,t,A={}){const{window:r=Qn,...n}=A;let i;const o=ZI(()=>r&&"MutationObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=W(()=>{const l=It(e),u=(Array.isArray(l)?l:[l]).map(gi).filter(sgA);return new Set(u)}),s=Ae(()=>a.value,l=>{g(),o.value&&r&&l.size&&(i=new MutationObserver(t),l.forEach(u=>i.observe(u,n)))},{immediate:!0,flush:"post"}),C=()=>i?.takeRecords(),I=()=>{g(),s()};return qi(I),{isSupported:o,stop:I,takeRecords:C}}function RgA(e={}){const{valueDark:t="dark",valueLight:A="",window:r=Qn}=e,n=GQ({...e,onChanged:(g,a)=>{var s;e.onChanged?(s=e.onChanged)==null||s.call(e,g==="dark",a,g):a(g)},modes:{dark:t,light:A}}),i=W(()=>n.system?n.system.value:H_({window:r}).value?"dark":"light");return W({get(){return n.value==="dark"},set(g){const a=g?"dark":"light";i.value===a?n.value="auto":n.value=a}})}function LgA(e,t,A={}){const{window:r=Qn,...n}=A;let i;const o=ZI(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=W(()=>Array.isArray(e)?e.map(I=>gi(I)):[gi(e)]),s=Ae(a,I=>{if(g(),o.value&&r){i=new ResizeObserver(t);for(const l of I)l&&i.observe(l,n)}},{immediate:!0,flush:"post"}),C=()=>{g(),s()};return qi(C),{isSupported:o,stop:C}}function $gA(e,t={}){const{reset:A=!0,windowResize:r=!0,windowScroll:n=!0,immediate:i=!0}=t,o=_(0),g=_(0),a=_(0),s=_(0),C=_(0),I=_(0),l=_(0),u=_(0);function c(){const h=gi(e);if(!h){A&&(o.value=0,g.value=0,a.value=0,s.value=0,C.value=0,I.value=0,l.value=0,u.value=0);return}const d=h.getBoundingClientRect();o.value=d.height,g.value=d.bottom,a.value=d.left,s.value=d.right,C.value=d.top,I.value=d.width,l.value=d.x,u.value=d.y}return LgA(e,c),Ae(()=>gi(e),h=>!h&&c()),FgA(e,c,{attributeFilter:["style","class"]}),n&&Zt("scroll",c,{capture:!0,passive:!0}),r&&Zt("resize",c,{passive:!0}),qc(()=>{i&&c()}),{height:o,bottom:g,left:a,right:s,top:C,width:I,x:l,y:u,update:c}}function OgA(e={}){const{initialValue:t=""}=e,A=ZI(()=>typeof window<"u"&&"EyeDropper"in window),r=_(t);async function n(i){if(!A.value)return;const g=await new window.EyeDropper().open(i);return r.value=g.sRGBHex,g}return{isSupported:A,sRGBHex:r,open:n}}function GgA(e,t,A={}){const{window:r=Qn}=A;return T_(e,t,r?.localStorage,A)}const xgA={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function TgA(e={}){const{reactive:t=!1,target:A=Qn,aliasMap:r=xgA,passive:n=!0,onEventFired:i=lo}=e,o=Ug(new Set),g={toJSON(){return{}},current:o},a=t?Ug(g):g,s=new Set,C=new Set;function I(h,d){h in a&&(t?a[h]=d:a[h].value=d)}function l(){o.clear();for(const h of C)I(h,!1)}function u(h,d){var B,f;const E=(B=h.key)==null?void 0:B.toLowerCase(),p=[(f=h.code)==null?void 0:f.toLowerCase(),E].filter(Boolean);E&&(d?o.add(E):o.delete(E));for(const D of p)C.add(D),I(D,d);E==="meta"&&!d?(s.forEach(D=>{o.delete(D),I(D,!1)}),s.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&d&&[...o,...p].forEach(D=>s.add(D))}Zt(A,"keydown",h=>(u(h,!0),i(h)),{passive:n}),Zt(A,"keyup",h=>(u(h,!1),i(h)),{passive:n}),Zt("blur",l,{passive:!0}),Zt("focus",l,{passive:!0});const c=new Proxy(a,{get(h,d,B){if(typeof d!="string")return Reflect.get(h,d,B);if(d=d.toLowerCase(),d in r&&(d=r[d]),!(d in a))if(/[+_-]/.test(d)){const E=d.split(/[+_-]/g).map(v=>v.trim());a[d]=W(()=>E.every(v=>It(c[v])))}else a[d]=_(!1);const f=Reflect.get(h,d,B);return t?It(f):f}});return c}function HgA(e={}){const{controls:t=!1,interval:A="requestAnimationFrame"}=e,r=_(new Date),n=()=>r.value=new Date,i=A==="requestAnimationFrame"?bgA(n,{immediate:!0}):pgA(n,A,{immediate:!0});return t?{now:r,...i}:r}let UgA=0;function KgA(e,t={}){const A=_(!1),{document:r=DgA,immediate:n=!0,manual:i=!1,id:o=`vueuse_styletag_${++UgA}`}=t,g=_(e);let a=()=>{};const s=()=>{if(!r)return;const I=r.getElementById(o)||r.createElement("style");I.isConnected||(I.id=o,t.media&&(I.media=t.media),r.head.appendChild(I)),!A.value&&(a=Ae(g,l=>{I.textContent=l},{immediate:!0}),A.value=!0)},C=()=>{!r||!A.value||(a(),r.head.removeChild(r.getElementById(o)),A.value=!1)};return n&&!i&&qc(s),i||qi(C),{id:o,css:g,unload:C,load:s,isLoaded:Lo(A)}}const _gA=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],YgA={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function JgA(e){return e.toISOString().slice(0,10)}function zgA(e,t={}){const{controls:A=!1,updateInterval:r=3e4}=t,{now:n,...i}=HgA({interval:r,controls:!0}),o=W(()=>WgA(new Date(It(e)),t,It(n)));return A?{timeAgo:o,...i}:o}function WgA(e,t={},A=Date.now()){var r;const{max:n,messages:i=YgA,fullDateFormatter:o=JgA,units:g=_gA,showSecond:a=!1,rounding:s="round"}=t,C=typeof s=="number"?d=>+d.toFixed(s):Math[s],I=+A-+e,l=Math.abs(I);function u(d,B){return C(Math.abs(d)/B.value)}function c(d,B){const f=u(d,B),E=d>0,v=h(B.name,f,E);return h(E?"past":"future",v,E)}function h(d,B,f){const E=i[d];return typeof E=="function"?E(B,f):E.replace("{0}",B.toString())}if(l<6e4&&!a)return i.justNow;if(typeof n=="number"&&l>n)return o(new Date(e));if(typeof n=="string"){const d=(r=g.find(B=>B.name===n))==null?void 0:r.max;if(d&&l>d)return o(new Date(e))}for(const[d,B]of g.entries()){if(u(I,B)<=0&&g[d-1])return c(I,g[d-1]);if(l<B.max)return c(I,B)}return i.invalid}function xQ(e,t,A,r={}){var n,i,o;const{clone:g=!1,passive:a=!1,eventName:s,deep:C=!1,defaultValue:I,shouldEmit:l}=r,u=Aa(),c=A||u?.emit||((n=u?.$emit)==null?void 0:n.bind(u))||((o=(i=u?.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(u?.proxy));let h=s;t||(t="modelValue"),h=h||`update:${t.toString()}`;const d=E=>g?typeof g=="function"?g(E):MgA(E):E,B=()=>agA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=_(E);let p=!1;return Ae(()=>e[t],D=>{p||(p=!0,v.value=d(D),cr(()=>p=!1))}),Ae(v,D=>{!p&&(D!==e[t]||C)&&f(D)},{deep:C}),v}else return W({get(){return B()},set(E){f(E)}})}function qgA(e={}){const{window:t=Qn,initialWidth:A=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:i=!0}=e,o=_(A),g=_(r),a=()=>{t&&(i?(o.value=t.innerWidth,g.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,g.value=t.document.documentElement.clientHeight))};if(a(),qc(a),Zt("resize",a,{passive:!0}),n){const s=G_("(orientation: portrait)");Ae(s,()=>a())}return{width:o,height:g}}function U_(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const rt=GgA("__VUE_DEVTOOLS_CLIENT_STATE__",U_(),{mergeDefaults:!0});function jgA(){rt.value=U_()}Ae(()=>rt.value.splitScreen.enabled,(e,t)=>{t&&!e&&(rt.value.splitScreen.size=[50,50])});const Xo=[];function Ei(e){Xo.push(e),qi(()=>{Xo.splice(Xo.indexOf(e),1)});const{connected:t,clientConnected:A}=_n(),r=W(()=>A.value&&t.value);if(r.value){Xo.forEach(n=>n());return}return $_(r,n=>{n&&Xo.forEach(i=>i())}),()=>{Xo.splice(Xo.indexOf(e),1)}}function VgA(){Xo.forEach(e=>e())}let GF=null;function jc(){const e=_n(),t=_(e.tabs.value||[]),A=W(()=>{const g=e.vitePluginDetected.value,a=[...ogA(g,ggA.value?.moduleDetectives)];return t.value.forEach(s=>{const C=a.find(I=>I[0]===s.category);if(C){if(C[1].some(I=>I.name===s.name)||(!g||F1)&&N_.includes(s.name))return;C[1].push({...s})}}),a}),r=W(()=>A.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[])),n=W(()=>{const{hiddenTabCategories:g,hiddenTabs:a,pinnedTabs:s}=rt.value.tabSettings,C=g.includes("pinned"),I=A.value.reduce((l,[u,c])=>{const h=[{hidden:!1,name:u},[]],d=g.includes(u);return c.forEach(B=>{const f=a.includes(B.name);if(s.includes(B.name))l[0][1].push({...B,hidden:f||C});else{const E=f||d;h[1].push({...B,hidden:E})}}),h[0].hidden=h[1].every(B=>B.hidden),l.push(h),l},[[{name:"pinned",hidden:!1},[]]]);return I[0][0].hidden=I[0][1].every(l=>l.hidden),I[0][1].sort((l,u)=>s.indexOf(l.name)-s.indexOf(u.name)),I}),i=W(()=>n.value.reduce((g,[a,s])=>{if(a.hidden)return g;const C=s.filter(I=>!I.hidden);return C.length&&g.push([a,C]),g},[])),o=W(()=>i.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[]));return Ei(()=>{GF?.(),GF=vK(g=>{t.value=g})}),{categorizedTabs:n,flattenedTabs:r,enabledTabs:i,enabledFlattenTabs:o}}function xF(e,t){return W(()=>{const A=[],r=rt.value.tabSettings.pinnedTabs;Om(t).reduce((o,[{name:g,hidden:a},s])=>(s.forEach(C=>{if(Om(e).some(I=>I.name===C.name)){const I=r.includes(C.name)?"pinned":g||"app";o.push({tab:C,category:{name:I,hidden:a}})}}),o),[]).forEach(({tab:o,category:g})=>{const a=A.find(([{name:s}])=>s===g.name);a?a[1].push(o):A.push([g,[o]])});const i=A.find(([{name:o}])=>o==="pinned");return i&&i[1].sort((o,g)=>r.indexOf(o.name)-r.indexOf(g.name)),A})}function ZgA(e){const t=new Map;return e.forEach(A=>t.set(A.id,A)),Array.from(t.values())}const u0=Ug(new Map);let TF=null;function XgA(){const{enabledFlattenTabs:e}=jc(),t=VI(),A=_n(),r=_(A.commands.value||[]);Er(()=>{r.value=A.commands.value||[]}),Ei(()=>{TF?.(),TF=pK(o=>{r.value=o})});const n=[{id:"fixed:settings",title:"Settings",icon:"carbon-settings-adjust",action:()=>{t.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>eaA()}],i=W(()=>e.value.map(o=>({id:`tab:${o.name}`,title:o.title||o.name,icon:o.icon,action:()=>{"onClick"in o&&o.onClick?o.onClick():t.push("path"in o&&o.path?o.path:`/custom-tab-view/${o.name}`)}})));return W(()=>ZgA([...n,...i.value,...AaA(r.value),...Array.from(u0.values()).flatMap(o=>Om(o))]))}function HF(e){e?.type==="url"&&window.open(e.src,"_blank")}function AaA(e){return e.map(t=>({id:`${t.id}`,title:t.title,icon:t.icon,description:t.description,order:t.order,action:()=>{if(t.children)return t.children.map(A=>({id:A.id,title:A.title,icon:A.icon,description:A.description,order:A.order,action:()=>{HF(A.action)}})).sort((A,r)=>(r.order??0)-(A.order??0));HF(t.action)}})).sort((t,A)=>(A.order??0)-(t.order??0))}function UF(e){const t=N7();u0.set(t,e),Ss(()=>{u0.delete(t)})}let _p;async function eaA(){return _p||(_p=(await pr(()=>import("./vue-apis-Nh9IahXf.js"),__vite__mapDeps([]),import.meta.url).then(t=>t.default)).map(t=>({...t,icon:"carbon-api-1",action:()=>{window.open(t.url,"_blank")}}))),_p}const taA={flex:"~ col","max-h-120":"","min-h-60":"",h:"60%","w-xl":"","of-hidden":"",border:"1 base","rounded-md":"","text-3.75":""},raA={border:"b base","flex-none":""},naA={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},iaA=["id","onClick","onMouseover"],oaA={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},gaA={"ws-nowrap":""},aaA={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},saA={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},CaA=y("span",{op50:""},"No results for",-1),IaA={"text-primary":""},laA={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},uaA={"text-xs":"",flex:"~ items-center gap2"},caA={px1:""},haA={px1:""},daA=y("span",{op75:""},"to navigate",-1),BaA={"text-xs":"",flex:"~ items-center gap2"},faA=y("button",{px1:""}," Esc ",-1),EaA={op75:""},QaA={"text-xs":"",flex:"~ items-center gap2"},vaA={px1:""},paA=y("span",{op75:""},"to select",-1),waA=DA({__name:"CommandPalette",setup(e){const t=_(!1),A=_(""),r=XgA(),n=_(),i=W(()=>n.value||r.value),o=W(()=>new Rs(i.value,{keys:["id","title"],distance:50})),g=W(()=>A.value?o.value.search(A.value).map(l=>l.item):i.value||[]),a=_(0);Ae(A,()=>{a.value=0,C()});function s(l){a.value=(a.value+l+g.value.length)%g.value.length,C()}function C(){document.getElementById(g.value[a.value]?.id)?.scrollIntoView({block:"center"})}async function I(l){const u=await l.action();u?(n.value=u,A.value=""):(n.value=void 0,A.value="",t.value=!1)}return Zt("keydown",l=>{if((l.altKey||l.metaKey)&&l.key==="k"){l.preventDefault(),n.value=void 0,A.value="",t.value=!t.value;return}if(t.value)switch(l.key){case"ArrowDown":case"ArrowUp":l.preventDefault(),s(l.key==="ArrowDown"?1:-1);break;case"Enter":{const u=g.value[a.value];u&&(l.preventDefault(),I(u));break}case"Escape":{l.preventDefault(),n.value?(n.value=void 0,A.value=""):t.value=!1;break}}}),(l,u)=>{const c=zc;return Q(t)?(M(),tA(Q(vM),{key:0,dim:"",class:"backdrop-blur-2xl!"},{default:U(()=>[y("div",taA,[y("header",raA,[T(Q(bo),{modelValue:Q(A),"onUpdate:modelValue":u[0]||(u[0]=h=>YA(A)?A.value=h:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),y("div",naA,[(M(!0),x(wA,null,Be(Q(g),(h,d)=>(M(),x("button",{id:h.id,key:h.id,onClick:B=>I(h),onMouseover:B=>a.value=d},[y("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:bA(Q(a)===d?"op100 bg-primary/10 text-primary saturate-100 bg-active":"op80")},[T(c,{icon:h.icon,title:h.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),y("span",oaA,[y("span",gaA,yA(h.title),1),y("span",aaA,yA(h.description),1)]),Q(a)===d?(M(),tA(Q(De),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):pA("",!0)],2)],40,iaA))),128)),Q(g).length?pA("",!0):(M(),x("div",saA,[T(Q(De),{icon:"carbon-search",op50:""}),y("div",null,[CaA,y("strong",IaA,' "'+yA(Q(A))+'" ',1)])]))]),y("footer",laA,[y("div",uaA,[y("button",caA,[T(Q(De),{icon:"carbon-arrow-down"})]),y("button",haA,[T(Q(De),{icon:"carbon-arrow-up"})]),daA]),y("div",BaA,[faA,y("span",EaA,"to "+yA(Q(n)?"go back":"close"),1)]),y("div",QaA,[y("button",vaA,[T(Q(De),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),paA])])])]),_:1})):pA("",!0)}}}),Vc=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},DaA={},yaA={class:"panel-grids-center"};function maA(e,t){return M(),x("div",yaA,[VA(e.$slots,"default")])}const Qi=Vc(DaA,[["render",maA]]),baA={flex:"~ items-center gap-3"},MaA={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},kaA={"translate-y-0.5px":""},SaA={key:0,hidden:"","lg:block":""},K_=DA({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"}},setup(e){const t=e,A=NQ(),r=W(()=>"path"in t.tab?`${t.tab.path.startsWith("/")?"":"/"}${t.tab.path}`:`/custom-tab-view/${t.tab.name}`),n=W(()=>"badge"in t.tab&&t.tab.badge?.()),i=W(()=>A.path.startsWith(r.value));function o(){"onClick"in t.tab&&t.tab.onClick?t.tab.onClick():t.target==="side"&&(rt.value.splitScreen.view=t.tab.name)}return(g,a)=>{const s=zc;return M(),tA(Q(BoA),{disabled:!g.minimized,placement:"right",class:bA({"w-full":!g.minimized})},{popper:U(()=>[y("div",null,yA(g.tab.title),1),"extraTabVNode"in g.tab&&g.tab.extraTabVNode?(M(),x("div",SaA,[(M(),tA(Kg(g.tab.extraTabVNode)))])):pA("",!0)]),default:U(()=>[(M(),tA(Kg(g.target==="main"?Q(TK):"button"),{to:Q(r),flex:`~ items-center ${g.minimized?"justify-center":"justify-between"}`,hover:"bg-active op-100",w:g.minimized?"10":"full",rounded:g.minimized?"xl":"",p:g.minimized?"1":"x3","text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:o},{default:U(()=>[y("div",baA,[T(s,{"text-xl":"",icon:g.tab.icon,title:"Settings","show-title":!1},null,8,["icon"]),g.minimized?pA("",!0):(M(),x("span",MaA,yA(g.tab.title),1))]),Q(n)?(M(),x("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:bA([Q(i)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":g.minimized}])},[y("span",kaA,yA(Q(It)(Q(n))),1)],2)):pA("",!0)]),_:1},8,["to","flex","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),NaA={flex:"~ col gap-1","max-w-80":"",py1:""},PaA={key:0,"h-1px":"",border:"b base"},FaA={flex:"~ wrap",px1:""},__=DA({__name:"TabsGrid",props:{categories:{},target:{}},setup(e){return(t,A)=>{const r=K_;return M(),x("div",NaA,[(M(!0),x(wA,null,Be(t.categories,([n,i],o)=>(M(),x(wA,{key:n},[i.length?(M(),x(wA,{key:0},[o?(M(),x("div",PaA)):pA("",!0),y("div",FaA,[(M(!0),x(wA,null,Be(i,g=>(M(),tA(r,{key:g.name,target:t.target,tab:g},null,8,["target","tab"]))),128))])],64)):pA("",!0)],64))),128))])}}}),RaA={"h-full":"","h-screen":"","of-hidden":""},LaA={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},$aA={flex:"","cursor-pointer":"","items-center":"",gap2:""},OaA=y("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),GaA={capitalize:""},xaA=y("div",{"flex-auto":""},null,-1),TaA=y("div",{"i-carbon:side-panel-open":""},null,-1),HaA=[TaA],UaA={key:1,"of-auto":"",style:{height:"calc(100% - 50px)"}},KaA=y("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),_aA=DA({__name:"SplitScreen",setup(e){function t(){rt.value.splitScreen.enabled=!1}const A=W(()=>rt.value.splitScreen),{enabledTabs:r,flattenedTabs:n}=jc(),i=VI(),o=NQ(),g=Zi();function a(I){const l=o.path.startsWith("/")?o.path.slice(1):o.path;return I&&"path"in I&&l===I.path}const s=W(()=>{const I=n.value.find(l=>l.name===A.value.view);return a(I)?void 0:I});Ae(()=>s.value,I=>{if(!I)return;const l=i.getRoutes(),u=I&&"path"in I?l.find(d=>d.path===(I.path.startsWith("/")?I.path:`/${I.path}`)):l.find(d=>d.name==="custom-tab"),c=o.path.startsWith("/")?o.path.slice(1):o.path;if(u?.path===c||o.params?.name===I.name){g.value=void 0;return}const h=u?.components?.default;typeof h=="function"?g.value=TX(h):g.value=h},{immediate:!0});const C=_(!1);return(I,l)=>{const u=zc,c=__,h=Qi;return M(),x("div",RaA,[Q(g)&&Q(s)?(M(),x("div",LaA,[T(Q(BI),{placement:"bottom-start",distance:12,skidding:5,shown:Q(C),trigger:"click"},{popper:U(()=>[T(c,{categories:Q(r),target:"side"},null,8,["categories"])]),default:U(()=>[y("div",$aA,[OaA,T(u,{"text-xl":"",icon:Q(s)?.icon,title:"Settings","show-title":!1},null,8,["icon"]),y("span",GaA,yA(Q(s)?.name),1)])]),_:1},8,["shown"]),xaA,vt((M(),x("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:t},HaA)),[[Q(Bn),"Close split screen"]])])):pA("",!0),Q(g)&&Q(s)?(M(),x("div",UaA,[(M(),tA(Kg(Q(g)),{key:`tab-${Q(s).name}`}))])):(M(),tA(h,{key:2},{default:U(()=>[KaA,T(Q(sf),{px4:"",py2:"","bg-base":""},{default:U(()=>[T(c,{categories:Q(r),target:"side"},null,8,["categories"])]),_:1}),T(Q(ie),{type:"warning",outlined:"",mt2:"",onClick:t},{default:U(()=>[NA(" Close Split Screen ")]),_:1})]),_:1}))])}}});function mM(){const e=lM(),t=_("");return sI&&ae.chrome.storage.local.get(pp).then(A=>{t.value=A[pp]??"overlay"}),{viewMode:t,toggle(A){t.value=A,ae.chrome.storage.local.set({[pp]:A}),sI&&e.value.emit("toggle-view-mode",A)}}}const YaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},JaA=y("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),zaA=y("div",{"i-carbon-settings-adjust":""},null,-1),WaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},qaA=y("div",{"i-carbon-split-screen":""},null,-1),jaA={px3:"",py2:"",flex:"~ gap2"},VaA=DA({__name:"DockingPanel",setup(e){const t=pt("viewMode",_("overlay")),A=W(()=>t.value==="panel"&&sI),{toggle:r}=mM(),n=VI(),i=W({get:()=>rt.value.expandSidebar,set:l=>rt.value.expandSidebar=l}),o=W({get:()=>rt.value.splitScreen.enabled,set:l=>rt.value.splitScreen.enabled=l});function g(){location.reload()}const a=_n(),s=W(()=>a.appRecords.value.map(l=>({label:l.name+(l.version?` (${l.version})`:""),value:l.id}))),C=_(a.activeAppRecordId.value),I=W(()=>s.value.find(l=>l.value===C.value)?.label??"");return Ae(C,l=>{rK(`${l}`).then(()=>{n.push("/overview").then(()=>{VgA()})})}),(l,u)=>(M(),x("div",null,[y("div",YaA,[T(Q(Q_),null,{default:U(({isDark:c,toggle:h})=>[T(Q(ie),{outlined:"",type:"primary",onClick:h},{default:U(()=>[JaA,NA(" "+yA(c?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),T(Q(ie),{outlined:"",type:"primary",onClick:u[0]||(u[0]=c=>i.value=!Q(i))},{default:U(()=>[T(Q(De),{icon:Q(i)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),NA(" "+yA(Q(i)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),T(Q(ie),{to:"/settings",outlined:"",type:"primary"},{default:U(()=>[zaA,NA(" Settings ")]),_:1})]),y("div",WaA,[T(Q(ie),{outlined:"",type:"primary",onClick:u[1]||(u[1]=c=>o.value=!Q(o))},{default:U(()=>[qaA,NA(" "+yA(Q(o)?"Close Split Screen":"Split Screen"),1)]),_:1})]),y("div",jaA,[Q(s).length>1?(M(),tA(Q(CE),{key:0,modelValue:Q(C),"onUpdate:modelValue":u[2]||(u[2]=c=>YA(C)?C.value=c:null),options:Q(s),placeholder:Q(I)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):pA("",!0),T(Q(ie),{outlined:"",type:"primary",onClick:g},{default:U(()=>[NA(" Refresh Page ")]),_:1}),Q(A)?(M(),tA(Q(ie),{key:1,outlined:"",type:"primary",onClick:u[3]||(u[3]=c=>Q(r)("overlay"))},{default:U(()=>[NA(" Switch to Overlay Mode ")]),_:1})):pA("",!0)])]))}}),ZaA={border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},XaA={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},AsA=y("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),esA=y("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),tsA=y("div",{"flex-auto":""},null,-1),rsA=y("div",{"i-carbon-overflow-menu-vertical":""},null,-1),nsA={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},isA={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},osA=y("div",{"flex-auto":""},null,-1),gsA=["flex"],asA={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},ssA={"translate-y-0.5px":""},CsA=45,IsA=DA({__name:"SideNav",setup(e){const t=_(!1),A=_(!1),r=_(),n=_(),i=_(),o=W(()=>rt.value.expandSidebar),g=W(()=>rt.value.scrollableSidebar),{enabledTabs:a,flattenedTabs:s}=jc(),{height:C}=qgA(),I=W(()=>{const B=C.value-130;return Math.max(0,Math.floor(B/CsA))}),l=W(()=>s.value.slice(0,I.value)),u=W(()=>s.value.slice(I.value)),c=xF(l,a),h=xF(u,a),d=W(()=>g.value||o.value?a.value:c.value);return ygA(r,B=>{n.value&&B.composedPath().includes(n.value)||i.value&&B.composedPath().includes(i.value)||(t.value=!1,A.value=!1)},{detectIframe:!0}),(B,f)=>{const E=VaA,v=K_,p=zc,D=__;return M(),x("div",ZaA,[y("div",XaA,[T(Q(BI),{placement:"left-start",distance:6,skidding:5,trigger:"click",shown:Q(t),class:"w-full"},{popper:U(()=>[T(E)]),default:U(()=>[y("button",{ref_key:"buttonDocking",ref:n,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:bA([Q(o)?"rounded pl2.5":"rounded-xl"])},[AsA,Q(o)?(M(),x(wA,{key:0},[esA,tsA,rsA],64)):pA("",!0)],2)]),_:1},8,["shown"])]),y("div",nsA,[(M(!0),x(wA,null,Be(Q(d),([F,N],S)=>(M(),x(wA,{key:F},[S?(M(),x("div",isA)):pA("",!0),(M(!0),x(wA,null,Be(N.filter(m=>!m.hidden),m=>(M(),tA(v,{key:m.name,tab:m,minimized:!Q(o)},null,8,["tab","minimized"]))),128))],64))),128)),osA]),y("div",{flex:`~ items-center gap-1 ${Q(o)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[Q(u).length&&!Q(g)&&!Q(o)?(M(),tA(Q(BI),{key:0,placement:"left-end",distance:6},{popper:U(()=>[T(D,{categories:Q(h),"max-w-80":"",target:"main"},null,8,["categories"])]),default:U(()=>[y("button",{ref_key:"buttonMoreTabs",ref:i,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[T(p,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),y("div",asA,[y("span",ssA,yA(Q(u).length),1)])],512)]),_:1})):pA("",!0),T(v,{minimized:!Q(o),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,gsA)])}}}),lsA={},usA={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},csA=vAA('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),hsA=[csA];function dsA(e,t){return M(),x("svg",usA,hsA)}const bM=Vc(lsA,[["render",dsA]]),BsA={class:"fixed inset-0 h-screen w-screen flex flex-col items-center justify-center $ui-bg-base"},fsA=y("p",{class:"p3 text-sm font-bold"},[NA(" DevTools is currently injected into user application in "),y("em",{class:"text-primary-600"},"Overlay"),NA(" view mode. ")],-1),EsA=DA({__name:"ViewModeSwitch",setup(e){GQ();const{toggle:t}=mM();return(A,r)=>{const n=bM;return M(),x("div",BsA,[T(n,{"h-18":""}),fsA,y("p",null,[T(Q(ie),{onClick:r[0]||(r[0]=fr(i=>Q(t)("panel"),["stop"]))},{default:U(()=>[NA(" Switch to Panel Mode ")]),_:1})])])}}}),QsA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vsA={class:"h-screen w-screen $ui-fcc flex-col"},psA={class:"outer"},wsA={class:"inner"},DsA=["src"],ysA=DA({__name:"AppConnecting",setup(e){return(t,A)=>(M(),x("div",vsA,[y("div",psA,[y("div",wsA,[y("img",{src:Q(QsA),class:"max-w-18",alt:"Vue logo"},null,8,DsA)])]),VA(t.$slots,"default",{},void 0,!0)]))}}),Y_=Vc(ysA,[["__scopeId","data-v-204233a8"]]),XI={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let A=0;this.panes=this.panes.map((r,n)=>(r.size=n===t?r.max:r.min,n!==t&&(A+=r.min),r)),this.panes[t].size-=A,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:A,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:A-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let A={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:A.prevPanesSize),n=100-(this.pushOtherPanes?0:A.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),n),r);let o=[t,t+1],g=this.panes[o[0]]||null,a=this.panes[o[1]]||null;const s=g.max<100&&i>=g.max+A.prevPanesSize,C=a.max<100&&i<=100-(a.max+this.sumNextPanesSize(t+1));if(s||C){s?(g.size=g.max,a.size=Math.max(100-g.max-A.prevPanesSize-A.nextPanesSize,0)):(g.size=Math.max(100-a.max-A.prevPanesSize-this.sumNextPanesSize(t+1),0),a.size=a.max);return}if(this.pushOtherPanes){const I=this.doPushOtherPanes(A,i);if(!I)return;({sums:A,panesToResize:o}=I),g=this.panes[o[0]]||null,a=this.panes[o[1]]||null}g!==null&&(g.size=Math.min(Math.max(i-A.prevPanesSize-A.prevReachedMinPanes,g.min),g.max)),a!==null&&(a.size=Math.min(Math.max(100-i-A.nextPanesSize-A.nextReachedMinPanes,a.min),a.max))},doPushOtherPanes(e,t){const A=this.touch.activeSplitter,r=[A,A+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(A).index,e.prevReachedMinPanes=0,r[0]<A&&this.panes.forEach((n,i)=>{i>r[0]&&i<=A&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,i)=>{i>0&&i<=A&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(A).index,e.nextReachedMinPanes=0,r[1]>A+1&&this.panes.forEach((n,i)=>{i>A&&i<r[1]&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((n,i)=>{i<this.panesCount-1&&i>=A+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,A,r)=>t+(r<e?A.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,A,r)=>t+(r>e+1?A.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),A=e.classList.contains("splitpanes__splitter");!t&&!A&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,A=!1){const r=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),A||(n.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=i=>this.onMouseDown(i,r)),n.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(n.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(A=>{A.className.includes("splitpanes__splitter")&&this.removeSplitter(A)});let t=0;e.forEach(A=>{A.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,A,!0):t&&this.addSplitter(t,A),t++)})},requestUpdate({target:e,...t}){const A=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,n])=>A[r]=n)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const A=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(A)?0:A,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,i)=>n.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),A=this.panes.splice(t,1)[0];this.panes.forEach((r,n)=>r.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...A,index:t}}),this.$emit("pane-remove",{removed:A,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const A=[],r=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&A.push(n.id),n.size<=n.min&&r.push(n.id)}),t>.1&&this.readjustSizes(t,A,r)},initialPanesSizing(){let e=100;const t=[],A=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&A.push(i.id)});let n=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),n-=i.size}),n>.1&&this.readjustSizes(e,t,A))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let A=100/this.panesCount,r=0;const n=[],i=[];e&&e.givenSize!==null&&(A=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(A,o.max),o.min)),r-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,n,i))},readjustSizes(e,t,A){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-A.length),this.panes.forEach((n,i)=>{if(e>0&&!t.includes(n.id)){const o=Math.max(Math.min(n.size+r,n.max),n.min),g=o-n.size;e-=g,n.size=o}else if(!A.includes(n.id)){const o=Math.max(Math.min(n.size+r,n.max),n.min),g=o-n.size;e-=g,n.size=o}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,A)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,A):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return WI("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},msA=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},bsA={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function MsA(e,t,A,r,n,i){return M(),x("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>i.onPaneClick(o,e._.uid)),style:Qt(e.style)},[VA(e.$slots,"default")],4)}const fn=msA(bsA,[["render",MsA]]);function Zc(){const{copy:e,copied:t}=yM();return{copy:(r,n={})=>{const{silent:i=!1,type:o=""}=n;e(r).then(()=>{i||i0({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{i||i0({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:t}}const ksA=uI("get-open-in-editor-host"),Xc=_(!1),TQ=async e=>{const t=await ksA();return t?jm(e,t):jm(e)},SsA={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},NsA=DA({__name:"App",setup(e){pr(()=>import("./unocss-runtime-1I7U-Xvx.js"),__vite__mapDeps([]),import.meta.url),GQ();const t=VI(),A=NQ(),{connected:r,clientConnected:n}=_n(),i=rt,o=pt("viewMode",_("overlay")),g=W(()=>o.value==="overlay"&&sI),a=lM(),s=W(()=>A.path.startsWith("/__")||A.path==="/"),C=W(()=>i.value.expandSidebar),I=W(()=>n.value&&r.value);Er(()=>{const B=rt.value.scale;document.documentElement.style.fontSize=`${B*15}px`}),Ae(I,B=>{B&&(t.replace(i.value.isFirstVisit?"/":i.value.route),t.afterEach(()=>{const f=A.path;f.includes("__")||(i.value.route=f)}))},{immediate:!0}),Zt("keydown",B=>{B.code==="KeyD"&&B.altKey&&B.shiftKey&&a.value.emit("toggle-panel")}),Er(()=>{a.value.emit("update-client-state",{minimizePanelInteractive:rt.value.minimizePanelInteractive,closeOnOutsideClick:rt.value.interactionCloseOnOutsideClick,showFloatingPanel:rt.value.showPanel})});const l=W(()=>i.value.splitScreen.enabled),u=W({get:()=>i.value.splitScreen.size,set:B=>i.value.splitScreen.size=B}),c=_n();Er(()=>{P_.value=c.appRecords.value,F_.value=c.activeAppRecordId.value});const{copy:h}=Zc(),d=OgA({});return eK().then(B=>{B&&(Xc.value=!0,UF(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{a.value.emit("toggle-panel",!1),await tK()}}]))}),UF(()=>[...d.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{const{sRGBHex:B}=await d.open()||{};B&&h(B)}}]:[]]),(B,f)=>{const E=Y_,v=EsA,p=IsA,D=En("RouterView"),F=_aA,N=waA;return M(),x("main",SsA,[Q(I)?Q(g)?(M(),tA(v,{key:1})):(M(),x("div",{key:2,class:bA(["h-full of-auto",Q(s)?"flex":Q(C)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[Q(s)?pA("",!0):(M(),tA(p,{key:0,"of-x-hidden":"","of-y-auto":""})),T(Q(XI),{"h-full":"","of-hidden":"",onResize:f[0]||(f[0]=S=>u.value=S.map(m=>m.size))},{default:U(()=>[T(Q(fn),{"h-full":"",class:"of-auto!","min-size":"10",size:Q(u)[0]},{default:U(()=>[T(D)]),_:1},8,["size"]),!Q(s)&&Q(l)?(M(),tA(Q(fn),{key:0,relative:"","h-full":"",class:"of-auto!",size:Q(u)[1]},{default:U(()=>[T(F)]),_:1},8,["size"])):pA("",!0)]),_:1})],2)):(M(),tA(E,{key:0})),T(N)])}}}),MM=DA({__name:"ExpandIcon",props:{value:{type:Boolean}},setup(e){return(t,A)=>(M(),x("i",{class:bA(["i-radix-icons:triangle-right flex-none text-5 op-50 transition-base",{"transform rotate-90":t.value}])},null,2))}}),PsA={class:"flex-inline items-center gap4px"},FsA=DA({__name:"EditInput",props:{modelValue:{},customType:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(e,{emit:t}){const A=e,r=t,n=W(()=>A.customType==="date"?"datetime-local":""),{escape:i,enter:o}=TgA();Er(()=>{i.value?r("cancel"):o.value&&r("submit")});const g=xQ(A,"modelValue",r);function a(I){try{return gf(I,A.customType),!0}catch{return!1}}const s=_(!1);return Ae(g,DQ(()=>{s.value=!a(g.value)},300)),(I,l)=>(M(),x("span",PsA,[T(Q(bo),{modelValue:Q(g),"onUpdate:modelValue":l[0]||(l[0]=u=>YA(g)?g.value=u:null),type:Q(n),variant:Q(s)?"warning":"normal",class:bA(["h25px px4px",I.customType==="date"?"w240px":"w120px"]),"auto-focus":I.autoFocus,onClick:l[1]||(l[1]=fr(()=>{},["stop"]))},null,8,["modelValue","type","variant","class","auto-focus"]),I.showActions?(M(),x(wA,{key:0},[vt((M(),tA(Q(ie),{size:"mini",flat:"",class:"p2px!",onClick:l[2]||(l[2]=fr(u=>I.$emit("cancel"),["stop"]))},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-cancel"})]),_:1})),[[Q(Bn),{content:"Esc to cancel"}]]),Q(s)?vt((M(),tA(Q(De),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[Q(Bn),{content:"Invalid value"}]]):vt((M(),tA(Q(ie),{key:0,size:"mini",flat:"",class:"p2px!",onClick:l[3]||(l[3]=fr(u=>I.$emit("submit"),["stop"]))},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-save"})]),_:1})),[[Q(Bn),{content:"Enter to submit change"}]])],64)):pA("",!0)]))}}),J_=Symbol("StateEditorSymbol");function RsA(e){const t=_(e);return Io(J_,t),{context:t}}function kM(){return pt(J_)}function LsA(){const e=_(""),t=_("string"),A=_(!1),r=kM();return{editingText:e,editing:A,toggleEditing(n){n&&(t.value=n),A.value=!A.value},editingType:t,nodeId:r.value.nodeId}}function $sA(e,t){if(e==="array")return t.length;const A="newProp";let r=1;for(;;){const n=`${A}${r}`;if(!t[n])return n;r++}}function OsA(){const e=_({enable:!1,key:"",value:"undefined"});function t(r,n){const i=$sA(r,n);e.value={enable:!0,key:i.toString(),value:"undefined"}}function A(){e.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:t,resetDrafting:A,draftingNewProp:e}}const GsA={class:"inline pl5px"},xsA={class:"w160px py5px"},KF=DA({__name:"Actions",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(e){const t=e,A=kM(),{copy:r,isSupported:n}=yM(),i=_(!1),o=W(()=>aM(t.data.value)),g=W(()=>o.value.value),a=W(()=>o.value.customType),s=W(()=>g.value===null?"null":typeof g.value),C={flat:!0,size:"mini"},I=W(()=>({"opacity-0":!t.hovering}));function l(c,h=!1){eE({path:t.data.key.split("."),inspectorId:A.value.inspectorId,type:t.data.stateType,nodeId:A.value.nodeId,state:{newKey:null,value:Qe(c),type:s.value,remove:h}})}function u(c,h){const d=typeof c=="number"?c+h:BigInt(c)+BigInt(h);l(d)}return(c,h)=>(M(),x("div",GsA,[!t.disableEdit&&c.data.editable?(M(),x(wA,{key:0},[Q(s)==="string"||Q(s)==="number"||Q(s)==="object"||Q(s)==="null"?(M(),x(wA,{key:0},[vt((M(),tA(Q(ie),Ir(C,{class:Q(I),onClick:h[0]||(h[0]=fr(d=>c.$emit("enableEditInput",Q(s)),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[Q(Bn),{content:"Edit value"}]]),Q(s)==="object"&&c.showAddIfNeeded?vt((M(),tA(Q(ie),Ir({key:0},C,{class:Q(I),onClick:h[1]||(h[1]=fr(d=>c.$emit("addNewProp",Array.isArray(Q(g))?"array":"object"),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[Q(Bn),{content:"Add new value"}]]):pA("",!0)],64)):pA("",!0),Q(s)==="boolean"?(M(),tA(Q(ie),Ir({key:1},C,{class:Q(I),onClick:h[2]||(h[2]=d=>l(!Q(g)))}),{icon:U(()=>[T(Q(De),{icon:Q(g)?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):Q(s)==="number"||Q(a)==="bigint"?(M(),x(wA,{key:2},[T(Q(ie),Ir(C,{class:Q(I),onClick:h[3]||(h[3]=fr(d=>u(Q(g),1),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-carbon-add"})]),_:1},16,["class"]),T(Q(ie),Ir(C,{class:Q(I),onClick:h[4]||(h[4]=fr(d=>u(Q(g),-1),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):pA("",!0)],64)):pA("",!0),!t.disableEdit&&c.depth>0?(M(),tA(Q(ie),Ir({key:1},C,{class:Q(I),onClick:h[5]||(h[5]=fr(d=>l(Q(g),!0),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):pA("",!0),T(Q(BI),{class:bA({"opacity-0":!c.hovering&&!Q(i)}),"button-props":{flat:!0,size:"mini"},disabled:!Q(n),"onUpdate:visible":h[8]||(h[8]=d=>i.value=d)},{popper:U(()=>[y("div",xsA,[T(Q(yF),{onClick:h[6]||(h[6]=d=>Q(r)(typeof Q(g)=="object"?JSON.stringify(Q(g)):Q(g).toString()))},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),NA(" Copy Value ")]),_:1}),T(Q(yF),{onClick:h[7]||(h[7]=()=>{Q(r)(c.data.key)})},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),NA(" Copy Path ")]),_:1})])]),"button-icon":U(()=>[T(Q(De),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}});function fI(e){const t=_({}),A=_({});return Io(`CollapseMapSymbol${e}`,t),Io(`CollapseMapSymbol${e}LinkedList`,A),{collapseMap:t,id:e,linkedList:A}}function TsA(e){const t=pt(`CollapseMapSymbol${e}`),A=pt(`CollapseMapSymbol${e}LinkedList`);return{collapseMap:t,linkedList:A,id:e}}function SM(e,t,A){const{collapseMap:r,linkedList:n}=TsA(e),i=W(()=>r.value[t]??!1),o=()=>{r.value[t]=!r.value[t]};return A?.length&&(n.value[t]=A??[]),{isExpanded:i,toggleCollapse:o}}function HsA(e,t={}){const{enter:A=()=>{},leave:r=()=>{},initial:n=!1}=t,i=_(n);return Zt(e,"mouseenter",()=>{i.value=!0,A()}),Zt(e,"mouseleave",()=>{i.value=!1,r()}),{isHovering:i}}const NM=e=>(BQ("data-v-a33ae112"),e=e(),fQ(),e),UsA={key:0},KsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},_sA=NM(()=>y("span",{"mx-1":""},":",-1)),YsA=["innerHTML"],JsA={key:1,"cursor-pointer":""},zsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},WsA=NM(()=>y("span",{"mx-1":""},":",-1)),qsA=["innerHTML"],jsA={key:0},VsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},ZsA=NM(()=>y("span",{"mx-1":""},":",-1)),_F=30,XsA=DA({__name:"InspectorStateField",props:{data:{},depth:{default:0},no:{},rootId:{}},setup(e){const t=e,A=kM(),r=W(()=>qU(t.data.value)),n=W(()=>kQ(t.data.value)),i=W(()=>n.value==="custom"?`state-format-${t.data.value._custom?.type}`:""),{isExpanded:o,toggleCollapse:g}=SM("inspector-state",`${t.rootId}-${t.no}-${t.depth}-${t.data.key}`),a=W(()=>{const k=t.data._custom?.stateTypeName||t.data?.stateTypeName;if(k==="Reactive")return k;if(t.data.value?.fields?.abstract)return"";{const O=`<span class="state-value-${n.value}">${r.value}</span>`;return k?`${O} <span class="text-gray-500">(${k})</span>`:O}}),s=W(()=>aM(t.data.value)),C=_(_F),I=W(()=>{const{value:k,inherit:O,customType:H}=s.value,X=H==="set";let q;return DN(k)?k.slice(0,C.value).map((uA,MA)=>({key:`${t.data.key}.${MA}`,value:uA,...O,editable:t.data.editable&&!X,creating:!1})):(wN(k)?(q=Object.keys(k).slice(0,C.value).map(Z=>({key:`${t.data.key}.${Z}`,value:k[Z],...O,editable:t.data.editable&&!X,creating:!1})),n.value!=="custom"&&(q=S7(q))):q=[],q===t.data.value?{}:q)}),l=W(()=>{const{value:k}=s.value;return DN(k)?k.length:wN(k)?Object.keys(k).length:0}),u=W(()=>{const k=t.data.key,O=k.lastIndexOf(".");return O===-1?k:k.slice(O+1)}),{editingType:c,editing:h,editingText:d,toggleEditing:B,nodeId:f}=LsA();Ae(()=>h.value,k=>{if(k){const{value:O}=s.value;d.value=ktA(O,s.value.customType)}else d.value=""});function E(){const k=t.data;eE({path:k.key.split("."),inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:null,type:c.value,value:gf(d.value,s.value.customType)}}),B()}const{addNewProp:v,draftingNewProp:p,resetDrafting:D}=OsA();function F(k){o.value||g(),v(k,s.value.value)}function N(){const k=t.data,O=k.key.split(".");O.push(p.value.key),eE({path:O,inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:p.value.key,type:typeof gf(p.value.value),value:gf(p.value.value)}}),D()}const S=W(()=>Object.keys(I.value).length>0||p.value.enable),m=_(),{isHovering:R}=HsA(()=>m.value);return(k,O)=>{const H=FsA,X=MM,q=En("InspectorStateField",!0);return M(),x("div",{ref_key:"containerRef",ref:m,class:"pl-6",style:Qt({paddingLeft:`${k.depth*15+4}px`})},[Q(S)?(M(),x("div",JsA,[y("div",{relative:"",flex:"","items-center":"",onClick:O[2]||(O[2]=(...Z)=>Q(g)&&Q(g)(...Z))},[T(X,{value:Q(o),absolute:"","left--6":"","group-hover:text-white":""},null,8,["value"]),y("span",zsA,yA(Q(u)),1),WsA,Q(h)?(M(),tA(H,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[1]||(O[1]=Z=>YA(d)?d.value=Z:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(wA,{key:1},[y("span",{class:bA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,qsA)],2),T(KF,{"show-add-if-needed":!Q(p).enable,hovering:Q(R),data:k.data,"disable-edit":Q(A).disableEdit,depth:k.depth,onEnableEditInput:Q(B),onAddNewProp:F},null,8,["show-add-if-needed","hovering","data","disable-edit","depth","onEnableEditInput"])],64))]),Q(o)?(M(),x("div",jsA,[(M(!0),x(wA,null,Be(Q(I),(Z,uA)=>(M(),tA(q,{key:uA,data:Z,depth:k.depth+1,no:k.no,"root-id":k.rootId},null,8,["data","depth","no","root-id"]))),128)),Q(l)>Q(C)?vt((M(),tA(Q(ie),{key:0,flat:"",size:"mini",class:"ml-4",onClick:O[3]||(O[3]=Z=>C.value+=_F)},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[Q(Bn),"Show more"]]):pA("",!0),Q(p).enable?(M(),x("div",{key:1,style:Qt({paddingLeft:`${(k.depth+1)*15+4}px`})},[y("span",VsA,[T(H,{modelValue:Q(p).key,"onUpdate:modelValue":O[4]||(O[4]=Z=>Q(p).key=Z),"show-actions":!1},null,8,["modelValue"])]),ZsA,T(H,{modelValue:Q(p).value,"onUpdate:modelValue":O[5]||(O[5]=Z=>Q(p).value=Z),"auto-focus":!1,onCancel:Q(D),onSubmit:N},null,8,["modelValue","onCancel"])],4)):pA("",!0)])):pA("",!0)])):(M(),x("div",UsA,[y("span",KsA,yA(Q(u)),1),_sA,Q(h)?(M(),tA(H,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[0]||(O[0]=Z=>YA(d)?d.value=Z:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(wA,{key:1},[y("span",{class:bA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,YsA)],2),T(KF,{hovering:Q(R),"disable-edit":Q(A).disableEdit,data:k.data,depth:k.depth,onEnableEditInput:Q(B),onAddNewProp:F},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],64))]))],4)}}}),ACA=Vc(XsA,[["__scopeId","data-v-a33ae112"]]),eCA=DA({__name:"InspectorStateType",props:{data:{},depth:{default:0},rootId:{}},setup(e){return(t,A)=>{const r=ACA;return M(!0),x(wA,null,Be(t.data,(n,i)=>(M(),x("div",{key:i,class:"flex items-center pl-8 font-data-field"},[T(r,{data:n,no:i,"root-id":t.rootId},null,8,["data","no","root-id"])]))),128)}}}),tCA={"text-primary-400":"","group-hover:text-white":"",class:"text-[#486887] dark:text-[#7595b5]"},Ah=DA({__name:"InspectorState",props:{data:{},name:{},id:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1}},setup(e){const t=e,{isExpanded:A,toggleCollapse:r}=SM("inspector-state",t.id);return!A.value&&r(),RsA({nodeId:t.nodeId,inspectorId:t.inspectorId,disableEdit:t.disableEdit}),(n,i)=>{const o=MM,g=eCA;return M(),x(wA,null,[y("div",{class:"group w-full px-0 selectable-item",onClick:i[0]||(i[0]=(...a)=>Q(r)&&Q(r)(...a))},[T(o,{value:Q(A),"group-hover:text-white":""},null,8,["value"]),y("span",tCA,yA(n.name),1)]),Q(A)?(M(),tA(g,{key:0,data:n.data,"root-id":n.id},null,8,["data","root-id"])):pA("",!0)],64)}}});function c0(e){return e.toString(16).padStart(6,"0")}function rCA(e,t){const A=new Date(e);return`${A.toString().match(/\d\d:\d\d:\d\d/)[0]}${t==="ms"?`.${String(A.getMilliseconds()).padStart(3,"0")}`:""}`}const z_=DA({__name:"InspectorNodeTag",props:{tag:{}},setup(e){return(t,A)=>{const r=EQ("tooltip");return vt((M(),x("span",{style:Qt({color:`#${Q(c0)(t.tag.textColor)}`,backgroundColor:`#${Q(c0)(t.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[NA(yA(t.tag.label),1)],4)),[[r,{content:t.tag.tooltip,html:!0}]])}}});function nCA(e){const t=_("");return Io(`SelectedSymbol${e}`,t),{selected:t,id:e}}function iCA(e){return{selected:pt(`SelectedSymbol${e}`),id:e}}function oCA(e,t,A){const{selected:r}=iCA(e);return{isSelected:W(()=>r.value===t),toggleSelected:o=>{r.value=o,A?.(o)}}}const gCA={key:1,"inline-block":"","h-6":"","w-6":""},aCA={"text-primary-400":"","group-hover:text-white":"",class:"[.active_&]:text-white"},sCA=DA({__name:"ComponentTreeNode",props:{data:{},depth:{default:0},linkedList:{default:()=>[]}},emits:["select","mouseenter","mouseleave"],setup(e,{emit:t}){const A=e,r=t,{isExpanded:n,toggleCollapse:i}=SM("component-tree",A.data.id,[...A.linkedList,A.data.id]),{isSelected:o,toggleSelected:g}=oCA("component-tree",A.data.id,a=>{r("select",a)});return(a,s)=>{const C=MM,I=z_,l=En("ComponentTreeNode",!0);return M(),x(wA,null,[y("div",{class:bA(["group selectable-item",{active:Q(o)}]),style:Qt({paddingLeft:`${a.depth*15+4}px`}),onClick:s[0]||(s[0]=fr(u=>Q(g)(a.data.id),["stop"])),onMouseenter:s[1]||(s[1]=u=>r("mouseenter",a.data.id,!0)),onMouseleave:s[2]||(s[2]=u=>r("mouseleave",a.data.id,!1))},[a.data.children?.length?(M(),tA(C,{key:0,value:Q(n),"group-hover:text-white":"",class:"[.active_&]:text-white",onClick:fr(Q(i),["prevent","stop"])},null,8,["value","onClick"])):(M(),x("i",gCA)),y("span",aCA,yA(a.data.name),1),(M(!0),x(wA,null,Be(a.data.tags,(u,c)=>(M(),tA(I,{key:c,tag:u},null,8,["tag"]))),128))],38),a.data.children?.length&&Q(n)?(M(!0),x(wA,{key:0},Be(a.data.children,u=>(M(),tA(l,{key:u.id,data:u,depth:a.depth+1,"linked-list":[...a.linkedList,a.data.id],onSelect:s[3]||(s[3]=c=>r("select",c)),onMouseenter:s[4]||(s[4]=c=>r("mouseenter",c,!0)),onMouseleave:s[5]||(s[5]=c=>r("mouseleave",c,!1))},null,8,["data","depth","linked-list"]))),128)):pA("",!0)],64)}}}),CCA={"w-full":"",flex:"",gap2:"",px2:"",py2:""},ICA=y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),y("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1),lCA=[ICA],uCA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},cCA={flex:"","justify-between":"","overflow-auto":"",px2:"",py3:"",class:"no-scrollbar"},hCA={key:0},dCA={flex:"~ gap2"},BCA=y("p",{class:"x-divider"},null,-1),YF="components",fCA=DA({__name:"components",setup(e){const t=lM(),A=_([]),r=_(""),n=W(()=>Xc.value),i=_(!1),[o,g]=wM(!0),{selected:a}=nCA("component-tree"),{collapseMap:s,linkedList:C}=fI("component-tree");fI("inspector-state");const I=W(()=>{const H=[],X=q=>{q.forEach(Z=>{Z.id===a.value&&H.push(Z),Z.children?.length&&X(Z.children)})};return X(A.value),H[0]}),l=W(()=>{const H=[],X=(q,Z=[])=>{q.forEach(uA=>{H.push([...Z,uA.id]),uA.children?.length&&X(uA.children,[...Z,uA.id])})};return X(A.value),H}),u=W(()=>I.value?.file??"");function c(H,X){return H.length?H.find(q=>q.id===X)?!0:H.some(q=>c(q.children||[],X)):!1}function h(H){H.length&&(a.value&&c(H,a.value)||(a.value=H?.[0].id,m(H?.[0].id)))}function d(H){return new Promise(X=>{nK({inspectorId:"components",instanceId:H}).then(q=>{X(li(q))})})}function B(H){return{[H[0].id]:!0,...H?.[0].children?.reduce((X,q)=>(X[q.id]=!0,X),{})}}function f(H){return new Promise(X=>{qI({inspectorId:"components",filter:H}).then(q=>{const Z=!Object.keys(s.value).length,uA=li(q);A.value=uA,Z&&(s.value=B(uA)),h(uA),X()})})}const E=_(!1);async function v(H,X){E.value&&await vgA(E).toBe(!1),E.value=!0,d(H).then(q=>{oK({id:H,visible:X,bounds:q}),E.value=!1})}function p(H){gK({id:H})}function D(){t.value.emit("toggle-panel",!1),iK().then(H=>{const X=JSON.parse(H);a.value=X.id,F(X.id);const q=C.value[X.id];q?q.forEach(Z=>{s.value[Z]=!0}):l.value.forEach(Z=>{let uA=Z.indexOf(X.id);if(uA>-1)for(;uA>=0;)s.value[Z[uA]]=!0,uA--})}).finally(()=>{t.value.emit("toggle-panel",!0)})}function F(H){R(),m(H),r.value=H}Ae(a,H=>{aK(H)});const N=_({});function S(H){if(!H||!H?.state)return{};const X={};return H.state.forEach(q=>{X[q.type]||(X[q.type]=[]),X[q.type].push(q)}),X}function m(H){Yc({inspectorId:"components",nodeId:H}).then(X=>{N.value=S(li(X))})}function R(){N.value={}}Ei(()=>{f().then(()=>{i.value=!0}),jI(H=>{!H?.data.length||H.inspectorId!==YF||(A.value=H.data,s.value={...B(H.data),...s.value},h(H.data))}),Jc(H=>{H.inspectorId===YF&&(N.value=S({state:H.state}))})});const k=_("");DM(k,H=>{const X=H.trim().toLowerCase();g(),f(X).then(()=>{g()})},{debounce:300});const O=_n();return(H,X)=>{const q=sCA,Z=Ah,uA=Qi;return M(),tA(uA,{"h-screen":""},{default:U(()=>[T(Q(XI),null,{default:U(()=>[T(Q(fn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",CCA,[Q(i)?(M(),tA(Q(bo),{key:0,modelValue:Q(k),"onUpdate:modelValue":X[0]||(X[0]=MA=>YA(k)?k.value=MA:null),"loading-debounce-time":250,loading:!Q(o),placeholder:"Find components...","flex-1":""},null,8,["modelValue","loading"])):pA("",!0),Q(O).vitePluginDetected.value?(M(),x("button",{key:1,"px-1":"",onClick:D},[(M(),x("svg",{xmlns:"http://www.w3.org/2000/svg",style:Qt([{height:"1.1em",width:"1.1em",opacity:"0.5"},"opacity:1;color:#00dc82"]),viewBox:"0 0 24 24"},lCA))])):pA("",!0)]),y("div",uCA,[(M(!0),x(wA,null,Be(Q(A),MA=>(M(),tA(q,{key:MA.id,data:MA,onSelect:F,onMouseenter:v,onMouseleave:v},null,8,["data"]))),128))])]),_:1}),T(Q(fn),{flex:"","flex-col":""},{default:U(()=>[y("div",cCA,[Q(I)?.name?(M(),x("span",hCA,yA(Q(I).name),1)):pA("",!0),y("div",dCA,[vt(T(Q(De),{title:"Scroll to Component",icon:"i-iconoir:mouse-scroll-wheel",action:"","flex-none":"",border:!1,onClick:X[1]||(X[1]=MA=>p(Q(a)))},null,512),[[Q(Bn),"Scroll to Component"]]),Q(u)&&Q(O).vitePluginDetected.value&&Q(n)?vt((M(),tA(Q(De),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:X[2]||(X[2]=MA=>Q(TQ)(Q(u)))},null,512)),[[Q(Bn),"Open in Editor"]]):pA("",!0)])]),BCA,(M(),x("div",{key:Q(a),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(wA,null,Be(Q(N),(MA,XA)=>(M(),tA(Z,{id:XA,key:XA,"node-id":Q(r),data:MA,name:`${XA}`,"inspector-id":"components"},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),ECA="7.0.19",QCA={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},vCA=y("div",{"flex-auto":""},null,-1),pCA={flex:"~ col","mt-20":"","items-center":""},wCA={flex:"~","mt--10":"","items-center":"","justify-center":""},DCA={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},yCA=y("span",{op40:""}," Vue DevTools ",-1),mCA={op40:""},bCA={flex:"~ gap2 wrap"},MCA={p4:"","theme-card-green":"",flex:"~ col auto"},kCA=y("div",{"i-logos-vue":"","text-3xl":""},null,-1),SCA=y("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),NCA=y("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),PCA={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},FCA=y("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[y("div",{"i-carbon-star":""}),NA(" Star on GitHub ")],-1),RCA=y("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[y("div",{"i-carbon-data-enrichment":""}),NA(" Ideas & Suggestions ")],-1),LCA=y("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[y("div",{"i-carbon-plan":""}),NA(" Project Roadmap ")],-1),$CA=y("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[y("div",{"i-carbon-debug":""}),NA(" Bug Reports ")],-1),OCA=y("div",{"i-carbon-settings":""},null,-1),GCA=y("div",{"flex-auto":""},null,-1),xCA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},TCA=y("span",null,"+",-1),HCA=y("span",null,"+",-1),UCA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},KCA=y("span",null,"+",-1),_CA=y("span",null,"+",-1),YCA=y("span",null,"+",-1),JCA=y("span",null,"+",-1),zCA=DA({__name:"overview",setup(e){const{vueVersion:t}=_n(),A=_(1),r=_(0);function n(i){let o=0;for(const g of i)o++,g.children?.length&&(o+=n(g.children));return o}return Ei(()=>{CM().then(i=>{const o=JSON.parse(i);A.value=o?.routes?.length||1}),IM(i=>{A.value=i?.routes?.length||1}),qI({inspectorId:"components",filter:""}).then(i=>{const o=li(i);r.value=n(o)}),jI(i=>{!i?.data?.length||i.inspectorId!=="components"||(r.value=n(i.data))})}),(i,o)=>{const g=bM,a=En("RouterLink"),s=Qi;return M(),tA(s,{"h-screen":"","w-full":"",flex:"","of-auto":""},{default:U(()=>[y("div",QCA,[vCA,y("div",pCA,[y("div",wCA,[T(g,{"h-18":""})]),y("div",DCA,[yCA,y("code",mCA,"v"+yA(Q(ECA)),1)])]),y("div",bCA,[y("div",MCA,[kCA,y("code",null,"v"+yA(Q(t)),1)]),T(a,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:U(()=>[SCA,y("div",null,yA(Q(A))+" pages",1)]),_:1}),Q(r)?(M(),tA(a,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:U(()=>[NCA,y("div",null,yA(Q(r))+" components",1)]),_:1})):pA("",!0)]),y("div",PCA,[FCA,RCA,LCA,$CA,T(a,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:U(()=>[OCA,NA(" Settings ")]),_:1})]),GCA,y("div",xCA,[NA(" Press "),Q(pN)()?(M(),x(wA,{key:0},[T(Q(ie),null,{default:U(()=>[NA(" ⌘ Command ")]),_:1}),TCA,T(Q(ie),null,{default:U(()=>[NA(" K ")]),_:1})],64)):(M(),x(wA,{key:1},[T(Q(ie),null,{default:U(()=>[NA(" Alt ")]),_:1}),HCA,T(Q(ie),null,{default:U(()=>[NA(" K ")]),_:1})],64)),NA(" to toggle Command Palette ")]),y("div",UCA,[NA(" Press "),Q(pN)()?(M(),x(wA,{key:0},[T(Q(ie),null,{default:U(()=>[NA(" ⇧ Shift ")]),_:1}),KCA,T(Q(ie),null,{default:U(()=>[NA(" ⌥ Option ")]),_:1}),_CA,T(Q(ie),null,{default:U(()=>[NA(" D ")]),_:1})],64)):(M(),x(wA,{key:1},[T(Q(ie),null,{default:U(()=>[NA(" Shift ")]),_:1}),YCA,T(Q(ie),null,{default:U(()=>[NA(" Alt ")]),_:1}),JCA,T(Q(ie),null,{default:U(()=>[NA(" D ")]),_:1})],64)),NA(" to toggle DevTools ")])])]),_:1})}}});function WCA(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var A=e.indexOf("Trident/");if(A>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let Cf;function h0(){h0.init||(h0.init=!0,Cf=WCA()!==-1)}var HQ={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){h0(),cr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Cf&&this.$el.appendChild(e),e.data="about:blank",Cf||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Cf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const qCA=gU();BQ("data-v-b329ee4c");const jCA={class:"resize-observer",tabindex:"-1"};fQ();const VCA=qCA((e,t,A,r,n,i)=>(M(),tA("div",jCA)));HQ.render=VCA;HQ.__scopeId="data-v-b329ee4c";HQ.__file="src/components/ResizeObserver.vue";function If(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?If=function(t){return typeof t}:If=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function ZCA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JF(e,t){for(var A=0;A<t.length;A++){var r=t[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XCA(e,t,A){return t&&JF(e.prototype,t),A&&JF(e,A),e}function zF(e){return AIA(e)||eIA(e)||tIA(e)||rIA()}function AIA(e){if(Array.isArray(e))return d0(e)}function eIA(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tIA(e,t){if(e){if(typeof e=="string")return d0(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);if(A==="Object"&&e.constructor&&(A=e.constructor.name),A==="Map"||A==="Set")return Array.from(e);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d0(e,t)}}function d0(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function rIA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
*/const DC=typeof document<"u";function arA(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function Rp(e,t){const A={};for(const r in t){const n=t[r];A[r]=hi(n)?n.map(e):e(n)}return A}const pu=()=>{},hi=Array.isArray,NK=/#/g,srA=/&/g,CrA=/\//g,IrA=/=/g,lrA=/\?/g,PK=/\+/g,urA=/%5B/g,crA=/%5D/g,FK=/%5E/g,hrA=/%60/g,RK=/%7B/g,drA=/%7C/g,LK=/%7D/g,BrA=/%20/g;function uM(e){return encodeURI(""+e).replace(drA,"|").replace(urA,"[").replace(crA,"]")}function frA(e){return uM(e).replace(RK,"{").replace(LK,"}").replace(FK,"^")}function Vm(e){return uM(e).replace(PK,"%2B").replace(BrA,"+").replace(NK,"%23").replace(srA,"%26").replace(hrA,"`").replace(RK,"{").replace(LK,"}").replace(FK,"^")}function ErA(e){return Vm(e).replace(IrA,"%3D")}function QrA(e){return uM(e).replace(NK,"%23").replace(lrA,"%3F")}function vrA(e){return e==null?"":QrA(e).replace(CrA,"%2F")}function Xu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const prA=/\/$/,wrA=e=>e.replace(prA,"");function Lp(e,t,A="/"){let r,n={},i="",o="";const g=t.indexOf("#");let a=t.indexOf("?");return g<a&&g>=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,g>-1?g:t.length),n=e(i)),g>-1&&(r=r||t.slice(0,g),o=t.slice(g,t.length)),r=brA(r??t,A),{fullPath:r+(i&&"?")+i+o,path:r,query:n,hash:Xu(o)}}function DrA(e,t){const A=t.query?e(t.query):"";return t.path+(A&&"?")+A+(t.hash||"")}function yrA(e,t,A){const r=t.matched.length-1,n=A.matched.length-1;return r>-1&&r===n&&cI(t.matched[r],A.matched[n])&&$K(t.params,A.params)&&e(t.query)===e(A.query)&&t.hash===A.hash}function cI(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $K(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const A in e)if(!mrA(e[A],t[A]))return!1;return!0}function mrA(e,t){return hi(e)?UP(e,t):hi(t)?UP(t,e):e===t}function UP(e,t){return hi(t)?e.length===t.length&&e.every((A,r)=>A===t[r]):e.length===1&&e[0]===t}function brA(e,t){if(e.startsWith("/"))return e;if(!e)return t;const A=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=A.length-1,o,g;for(o=0;o<r.length;o++)if(g=r[o],g!==".")if(g==="..")i>1&&i--;else break;return A.slice(0,i).join("/")+"/"+r.slice(o).join("/")}var Ac;(function(e){e.pop="pop",e.push="push"})(Ac||(Ac={}));var tE;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tE||(tE={}));const $p="";function MrA(e){if(!e)if(DC){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wrA(e)}const krA=/^[^#]+#/;function SrA(e,t){return e.replace(krA,"#")+t}function NrA(e,t){const A=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-A.left-(t.left||0),top:r.top-A.top-(t.top||0)}}const PrA=()=>({left:window.scrollX,top:window.scrollY});function FrA(e){let t;if("el"in e){const A=e.el,r=typeof A=="string"&&A.startsWith("#"),n=typeof A=="string"?r?document.getElementById(A.slice(1)):document.querySelector(A):A;if(!n)return;t=NrA(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function KP(e,t){return(history.state?history.state.position-t:-1)+e}const Zm=new Map;function RrA(e,t){Zm.set(e,t)}function LrA(e){const t=Zm.get(e);return Zm.delete(e),t}function $rA(e=""){let t=[],A=[$p],r=0;e=MrA(e);function n(g){r++,r!==A.length&&A.splice(r),A.push(g)}function i(g,a,{direction:s,delta:C}){const I={direction:s,delta:C,type:Ac.pop};for(const l of t)l(g,a,I)}const o={location:$p,state:{},base:e,createHref:SrA.bind(null,e),replace(g){A.splice(r--,1),n(g)},push(g,a){n(g)},listen(g){return t.push(g),()=>{const a=t.indexOf(g);a>-1&&t.splice(a,1)}},destroy(){t=[],A=[$p],r=0},go(g,a=!0){const s=this.location,C=g<0?tE.back:tE.forward;r=Math.max(0,Math.min(r+g,A.length-1)),a&&i(this.location,s,{direction:C,delta:g})}};return Object.defineProperty(o,"location",{enumerable:!0,get:()=>A[r]}),o}function OrA(e){return typeof e=="string"||e&&typeof e=="object"}function OK(e){return typeof e=="string"||typeof e=="symbol"}const zo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},GK=Symbol("");var _P;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_P||(_P={}));function hI(e,t){return et(new Error,{type:e,[GK]:!0},t)}function oo(e,t){return e instanceof Error&&GK in e&&(t==null||!!(e.type&t))}const YP="[^/]+?",GrA={sensitive:!1,strict:!1,start:!0,end:!0},xrA=/[.+*?^${}()[\]/\\]/g;function TrA(e,t){const A=et({},GrA,t),r=[];let n=A.start?"^":"";const i=[];for(const s of e){const C=s.length?[]:[90];A.strict&&!s.length&&(n+="/");for(let I=0;I<s.length;I++){const l=s[I];let u=40+(A.sensitive?.25:0);if(l.type===0)I||(n+="/"),n+=l.value.replace(xrA,"\\$&"),u+=40;else if(l.type===1){const{value:c,repeatable:h,optional:d,regexp:B}=l;i.push({name:c,repeatable:h,optional:d});const f=B||YP;if(f!==YP){u+=10;try{new RegExp(`(${f})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${c}" (${f}): `+v.message)}}let E=h?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;I||(E=d&&s.length<2?`(?:/${E})`:"/"+E),d&&(E+="?"),n+=E,u+=20,d&&(u+=-8),h&&(u+=-20),f===".*"&&(u+=-50)}C.push(u)}r.push(C)}if(A.strict&&A.end){const s=r.length-1;r[s][r[s].length-1]+=.7000000000000001}A.strict||(n+="/?"),A.end?n+="$":A.strict&&(n+="(?:/|$)");const o=new RegExp(n,A.sensitive?"":"i");function g(s){const C=s.match(o),I={};if(!C)return null;for(let l=1;l<C.length;l++){const u=C[l]||"",c=i[l-1];I[c.name]=u&&c.repeatable?u.split("/"):u}return I}function a(s){let C="",I=!1;for(const l of e){(!I||!C.endsWith("/"))&&(C+="/"),I=!1;for(const u of l)if(u.type===0)C+=u.value;else if(u.type===1){const{value:c,repeatable:h,optional:d}=u,B=c in s?s[c]:"";if(hi(B)&&!h)throw new Error(`Provided param "${c}" is an array but it is not repeatable (* or + modifiers)`);const f=hi(B)?B.join("/"):B;if(!f)if(d)l.length<2&&(C.endsWith("/")?C=C.slice(0,-1):I=!0);else throw new Error(`Missing required param "${c}"`);C+=f}}return C||"/"}return{re:o,score:r,keys:i,parse:g,stringify:a}}function HrA(e,t){let A=0;for(;A<e.length&&A<t.length;){const r=t[A]-e[A];if(r)return r;A++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function UrA(e,t){let A=0;const r=e.score,n=t.score;for(;A<r.length&&A<n.length;){const i=HrA(r[A],n[A]);if(i)return i;A++}if(Math.abs(n.length-r.length)===1){if(JP(r))return 1;if(JP(n))return-1}return n.length-r.length}function JP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const KrA={type:0,value:""},_rA=/[a-zA-Z0-9_]/;function YrA(e){if(!e)return[[]];if(e==="/")return[[KrA]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${A})/"${s}": ${u}`)}let A=0,r=A;const n=[];let i;function o(){i&&n.push(i),i=[]}let g=0,a,s="",C="";function I(){s&&(A===0?i.push({type:0,value:s}):A===1||A===2||A===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:s,regexp:C,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),s="")}function l(){s+=a}for(;g<e.length;){if(a=e[g++],a==="\\"&&A!==2){r=A,A=4;continue}switch(A){case 0:a==="/"?(s&&I(),o()):a===":"?(I(),A=1):l();break;case 4:l(),A=r;break;case 1:a==="("?A=2:_rA.test(a)?l():(I(),A=0,a!=="*"&&a!=="?"&&a!=="+"&&g--);break;case 2:a===")"?C[C.length-1]=="\\"?C=C.slice(0,-1)+a:A=3:C+=a;break;case 3:I(),A=0,a!=="*"&&a!=="?"&&a!=="+"&&g--,C="";break;default:t("Unknown state");break}}return A===2&&t(`Unfinished custom RegExp for param "${s}"`),I(),o(),n}function JrA(e,t,A){const r=TrA(YrA(e.path),A),n=et(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function zrA(e,t){const A=[],r=new Map;t=qP({strict:!1,end:!0,sensitive:!1},t);function n(C){return r.get(C)}function i(C,I,l){const u=!l,c=WrA(C);c.aliasOf=l&&l.record;const h=qP(t,C),d=[c];if("alias"in C){const E=typeof C.alias=="string"?[C.alias]:C.alias;for(const v of E)d.push(et({},c,{components:l?l.record.components:c.components,path:v,aliasOf:l?l.record:c}))}let B,f;for(const E of d){const{path:v}=E;if(I&&v[0]!=="/"){const p=I.record.path,D=p[p.length-1]==="/"?"":"/";E.path=I.record.path+(v&&D+v)}if(B=JrA(E,I,h),l?l.alias.push(B):(f=f||B,f!==B&&f.alias.push(B),u&&C.name&&!WP(B)&&o(C.name)),c.children){const p=c.children;for(let D=0;D<p.length;D++)i(p[D],B,l&&l.children[D])}l=l||B,(B.record.components&&Object.keys(B.record.components).length||B.record.name||B.record.redirect)&&a(B)}return f?()=>{o(f)}:pu}function o(C){if(OK(C)){const I=r.get(C);I&&(r.delete(C),A.splice(A.indexOf(I),1),I.children.forEach(o),I.alias.forEach(o))}else{const I=A.indexOf(C);I>-1&&(A.splice(I,1),C.record.name&&r.delete(C.record.name),C.children.forEach(o),C.alias.forEach(o))}}function g(){return A}function a(C){let I=0;for(;I<A.length&&UrA(C,A[I])>=0&&(C.record.path!==A[I].record.path||!xK(C,A[I]));)I++;A.splice(I,0,C),C.record.name&&!WP(C)&&r.set(C.record.name,C)}function s(C,I){let l,u={},c,h;if("name"in C&&C.name){if(l=r.get(C.name),!l)throw hI(1,{location:C});h=l.record.name,u=et(zP(I.params,l.keys.filter(f=>!f.optional).concat(l.parent?l.parent.keys.filter(f=>f.optional):[]).map(f=>f.name)),C.params&&zP(C.params,l.keys.map(f=>f.name))),c=l.stringify(u)}else if(C.path!=null)c=C.path,l=A.find(f=>f.re.test(c)),l&&(u=l.parse(c),h=l.record.name);else{if(l=I.name?r.get(I.name):A.find(f=>f.re.test(I.path)),!l)throw hI(1,{location:C,currentLocation:I});h=l.record.name,u=et({},I.params,C.params),c=l.stringify(u)}const d=[];let B=l;for(;B;)d.unshift(B.record),B=B.parent;return{name:h,path:c,params:u,matched:d,meta:jrA(d)}}return e.forEach(C=>i(C)),{addRoute:i,resolve:s,removeRoute:o,getRoutes:g,getRecordMatcher:n}}function zP(e,t){const A={};for(const r of t)r in e&&(A[r]=e[r]);return A}function WrA(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qrA(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qrA(e){const t={},A=e.props||!1;if("component"in e)t.default=A;else for(const r in e.components)t[r]=typeof A=="object"?A[r]:A;return t}function WP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jrA(e){return e.reduce((t,A)=>et(t,A.meta),{})}function qP(e,t){const A={};for(const r in e)A[r]=r in t?t[r]:e[r];return A}function xK(e,t){return t.children.some(A=>A===e||xK(e,A))}function VrA(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(PK," "),o=i.indexOf("="),g=Xu(o<0?i:i.slice(0,o)),a=o<0?null:Xu(i.slice(o+1));if(g in t){let s=t[g];hi(s)||(s=t[g]=[s]),s.push(a)}else t[g]=a}return t}function jP(e){let t="";for(let A in e){const r=e[A];if(A=ErA(A),r==null){r!==void 0&&(t+=(t.length?"&":"")+A);continue}(hi(r)?r.map(i=>i&&Vm(i)):[r&&Vm(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+A,i!=null&&(t+="="+i))})}return t}function ZrA(e){const t={};for(const A in e){const r=e[A];r!==void 0&&(t[A]=hi(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XrA=Symbol(""),VP=Symbol(""),SQ=Symbol(""),cM=Symbol(""),Xm=Symbol("");function _l(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function A(){e=[]}return{add:t,list:()=>e.slice(),reset:A}}function sg(e,t,A,r,n,i=o=>o()){const o=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((g,a)=>{const s=l=>{l===!1?a(hI(4,{from:A,to:t})):l instanceof Error?a(l):OrA(l)?a(hI(2,{from:t,to:l})):(o&&r.enterCallbacks[n]===o&&typeof l=="function"&&o.push(l),g())},C=i(()=>e.call(r&&r.instances[n],t,A,s));let I=Promise.resolve(C);e.length<3&&(I=I.then(s)),I.catch(l=>a(l))})}function Op(e,t,A,r,n=i=>i()){const i=[];for(const o of e)for(const g in o.components){let a=o.components[g];if(!(t!=="beforeRouteEnter"&&!o.instances[g]))if(AnA(a)){const C=(a.__vccOpts||a)[t];C&&i.push(sg(C,A,r,o,g,n))}else{let s=a();i.push(()=>s.then(C=>{if(!C)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${o.path}"`));const I=arA(C)?C.default:C;o.components[g]=I;const u=(I.__vccOpts||I)[t];return u&&sg(u,A,r,o,g,n)()}))}}return i}function AnA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ZP(e){const t=pt(SQ),A=pt(cM),r=W(()=>t.resolve(Q(e.to))),n=W(()=>{const{matched:a}=r.value,{length:s}=a,C=a[s-1],I=A.matched;if(!C||!I.length)return-1;const l=I.findIndex(cI.bind(null,C));if(l>-1)return l;const u=XP(a[s-2]);return s>1&&XP(C)===u&&I[I.length-1].path!==u?I.findIndex(cI.bind(null,a[s-2])):l}),i=W(()=>n.value>-1&&rnA(A.params,r.value.params)),o=W(()=>n.value>-1&&n.value===A.matched.length-1&&$K(A.params,r.value.params));function g(a={}){return tnA(a)?t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(pu):Promise.resolve()}return{route:r,href:W(()=>r.value.href),isActive:i,isExactActive:o,navigate:g}}const enA=DA({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ZP,setup(e,{slots:t}){const A=Ug(ZP(e)),{options:r}=pt(SQ),n=W(()=>({[AF(e.activeClass,r.linkActiveClass,"router-link-active")]:A.isActive,[AF(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const i=t.default&&t.default(A);return e.custom?i:WI("a",{"aria-current":A.isExactActive?e.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:n.value},i)}}}),TK=enA;function tnA(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rnA(e,t){for(const A in t){const r=t[A],n=e[A];if(typeof r=="string"){if(r!==n)return!1}else if(!hi(n)||n.length!==r.length||r.some((i,o)=>i!==n[o]))return!1}return!0}function XP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const AF=(e,t,A)=>e??t??A,nnA=DA({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:A}){const r=pt(Xm),n=W(()=>e.route||r.value),i=pt(VP,0),o=W(()=>{let s=Q(i);const{matched:C}=n.value;let I;for(;(I=C[s])&&!I.components;)s++;return s}),g=W(()=>n.value.matched[o.value]);Io(VP,W(()=>o.value+1)),Io(XrA,g),Io(Xm,n);const a=_();return Ae(()=>[a.value,g.value,e.name],([s,C,I],[l,u,c])=>{C&&(C.instances[I]=s,u&&u!==C&&s&&s===l&&(C.leaveGuards.size||(C.leaveGuards=u.leaveGuards),C.updateGuards.size||(C.updateGuards=u.updateGuards))),s&&C&&(!u||!cI(C,u)||!l)&&(C.enterCallbacks[I]||[]).forEach(h=>h(s))},{flush:"post"}),()=>{const s=n.value,C=e.name,I=g.value,l=I&&I.components[C];if(!l)return eF(A.default,{Component:l,route:s});const u=I.props[C],c=u?u===!0?s.params:typeof u=="function"?u(s):u:null,d=WI(l,et({},c,t,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(I.instances[C]=null)},ref:a}));return eF(A.default,{Component:d,route:s})||d}}});function eF(e,t){if(!e)return null;const A=e(t);return A.length===1?A[0]:A}const inA=nnA;function onA(e){const t=zrA(e.routes,e),A=e.parseQuery||VrA,r=e.stringifyQuery||jP,n=e.history,i=_l(),o=_l(),g=_l(),a=Zi(zo);let s=zo;DC&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=Rp.bind(null,Y=>""+Y),I=Rp.bind(null,vrA),l=Rp.bind(null,Xu);function u(Y,nA){let L,P;return OK(Y)?(L=t.getRecordMatcher(Y),P=nA):P=Y,t.addRoute(P,L)}function c(Y){const nA=t.getRecordMatcher(Y);nA&&t.removeRoute(nA)}function h(){return t.getRoutes().map(Y=>Y.record)}function d(Y){return!!t.getRecordMatcher(Y)}function B(Y,nA){if(nA=et({},nA||a.value),typeof Y=="string"){const b=Lp(A,Y,nA.path),G=t.resolve({path:b.path},nA),J=n.createHref(b.fullPath);return et(b,G,{params:l(G.params),hash:Xu(b.hash),redirectedFrom:void 0,href:J})}let L;if(Y.path!=null)L=et({},Y,{path:Lp(A,Y.path,nA.path).path});else{const b=et({},Y.params);for(const G in b)b[G]==null&&delete b[G];L=et({},Y,{params:I(b)}),nA.params=I(nA.params)}const P=t.resolve(L,nA),$=Y.hash||"";P.params=C(l(P.params));const z=DrA(r,et({},Y,{hash:frA($),path:P.path})),w=n.createHref(z);return et({fullPath:z,hash:$,query:r===jP?ZrA(Y.query):Y.query||{}},P,{redirectedFrom:void 0,href:w})}function f(Y){return typeof Y=="string"?Lp(A,Y,a.value.path):et({},Y)}function E(Y,nA){if(s!==Y)return hI(8,{from:nA,to:Y})}function v(Y){return F(Y)}function p(Y){return v(et(f(Y),{replace:!0}))}function D(Y){const nA=Y.matched[Y.matched.length-1];if(nA&&nA.redirect){const{redirect:L}=nA;let P=typeof L=="function"?L(Y):L;return typeof P=="string"&&(P=P.includes("?")||P.includes("#")?P=f(P):{path:P},P.params={}),et({query:Y.query,hash:Y.hash,params:P.path!=null?{}:Y.params},P)}}function F(Y,nA){const L=s=B(Y),P=a.value,$=Y.state,z=Y.force,w=Y.replace===!0,b=D(L);if(b)return F(et(f(b),{state:typeof b=="object"?et({},$,b.state):$,force:z,replace:w}),nA||L);const G=L;G.redirectedFrom=nA;let J;return!z&&yrA(r,P,L)&&(J=hI(16,{to:G,from:P}),KA(P,P,!0,!1)),(J?Promise.resolve(J):m(G,P)).catch(K=>oo(K)?oo(K,2)?K:XA(K):uA(K,G,P)).then(K=>{if(K){if(oo(K,2))return F(et({replace:w},f(K.to),{state:typeof K.to=="object"?et({},$,K.to.state):$,force:z}),nA||G)}else K=k(G,P,!0,w,$);return R(G,P,K),K})}function N(Y,nA){const L=E(Y,nA);return L?Promise.reject(L):Promise.resolve()}function S(Y){const nA=_A.values().next().value;return nA&&typeof nA.runWithContext=="function"?nA.runWithContext(Y):Y()}function m(Y,nA){let L;const[P,$,z]=gnA(Y,nA);L=Op(P.reverse(),"beforeRouteLeave",Y,nA);for(const b of P)b.leaveGuards.forEach(G=>{L.push(sg(G,Y,nA))});const w=N.bind(null,Y,nA);return L.push(w),ce(L).then(()=>{L=[];for(const b of i.list())L.push(sg(b,Y,nA));return L.push(w),ce(L)}).then(()=>{L=Op($,"beforeRouteUpdate",Y,nA);for(const b of $)b.updateGuards.forEach(G=>{L.push(sg(G,Y,nA))});return L.push(w),ce(L)}).then(()=>{L=[];for(const b of z)if(b.beforeEnter)if(hi(b.beforeEnter))for(const G of b.beforeEnter)L.push(sg(G,Y,nA));else L.push(sg(b.beforeEnter,Y,nA));return L.push(w),ce(L)}).then(()=>(Y.matched.forEach(b=>b.enterCallbacks={}),L=Op(z,"beforeRouteEnter",Y,nA,S),L.push(w),ce(L))).then(()=>{L=[];for(const b of o.list())L.push(sg(b,Y,nA));return L.push(w),ce(L)}).catch(b=>oo(b,8)?b:Promise.reject(b))}function R(Y,nA,L){g.list().forEach(P=>S(()=>P(Y,nA,L)))}function k(Y,nA,L,P,$){const z=E(Y,nA);if(z)return z;const w=nA===zo,b=DC?history.state:{};L&&(P||w?n.replace(Y.fullPath,et({scroll:w&&b&&b.scroll},$)):n.push(Y.fullPath,$)),a.value=Y,KA(Y,nA,L,w),XA()}let O;function H(){O||(O=n.listen((Y,nA,L)=>{if(!ne.listening)return;const P=B(Y),$=D(P);if($){F(et($,{replace:!0}),P).catch(pu);return}s=P;const z=a.value;DC&&RrA(KP(z.fullPath,L.delta),PrA()),m(P,z).catch(w=>oo(w,12)?w:oo(w,2)?(F(w.to,P).then(b=>{oo(b,20)&&!L.delta&&L.type===Ac.pop&&n.go(-1,!1)}).catch(pu),Promise.reject()):(L.delta&&n.go(-L.delta,!1),uA(w,P,z))).then(w=>{w=w||k(P,z,!1),w&&(L.delta&&!oo(w,8)?n.go(-L.delta,!1):L.type===Ac.pop&&oo(w,20)&&n.go(-1,!1)),R(P,z,w)}).catch(pu)}))}let X=_l(),q=_l(),Z;function uA(Y,nA,L){XA(Y);const P=q.list();return P.length?P.forEach($=>$(Y,nA,L)):console.error(Y),Promise.reject(Y)}function MA(){return Z&&a.value!==zo?Promise.resolve():new Promise((Y,nA)=>{X.add([Y,nA])})}function XA(Y){return Z||(Z=!Y,H(),X.list().forEach(([nA,L])=>Y?L(Y):nA()),X.reset()),Y}function KA(Y,nA,L,P){const{scrollBehavior:$}=e;if(!DC||!$)return Promise.resolve();const z=!L&&LrA(KP(Y.fullPath,0))||(P||!L)&&history.state&&history.state.scroll||null;return cr().then(()=>$(Y,nA,z)).then(w=>w&&FrA(w)).catch(w=>uA(w,Y,nA))}const QA=Y=>n.go(Y);let HA;const _A=new Set,ne={currentRoute:a,listening:!0,addRoute:u,removeRoute:c,hasRoute:d,getRoutes:h,resolve:B,options:e,push:v,replace:p,go:QA,back:()=>QA(-1),forward:()=>QA(1),beforeEach:i.add,beforeResolve:o.add,afterEach:g.add,onError:q.add,isReady:MA,install(Y){const nA=this;Y.component("RouterLink",TK),Y.component("RouterView",inA),Y.config.globalProperties.$router=nA,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(a)}),DC&&!HA&&a.value===zo&&(HA=!0,v(n.location).catch($=>{}));const L={};for(const $ in zo)Object.defineProperty(L,$,{get:()=>a.value[$],enumerable:!0});Y.provide(SQ,nA),Y.provide(cM,Y1(L)),Y.provide(Xm,a);const P=Y.unmount;_A.add(Y),Y.unmount=function(){_A.delete(Y),_A.size<1&&(s=zo,O&&O(),O=null,a.value=zo,HA=!1,Z=!1),P()}}};function ce(Y){return Y.reduce((nA,L)=>nA.then(()=>S(L)),Promise.resolve())}return ne}function gnA(e,t){const A=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const g=t.matched[o];g&&(e.matched.find(s=>cI(s,g))?r.push(g):A.push(g));const a=e.matched[o];a&&(t.matched.find(s=>cI(s,a))||n.push(a))}return[A,r,n]}function VI(){return pt(SQ)}function NQ(){return pt(cM)}const anA=["src","alt"],snA=["title"],zc=DA({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0}},setup(e){return(t,A)=>t.icon&&(t.icon.startsWith("/")||t.icon.match(/^https?:/))?(M(),x("img",Ir({key:0,style:{width:"1em",height:"1em"}},t.$attrs,{src:t.icon,alt:t.title}),null,16,anA)):(M(),x("div",Ir({key:1,style:{width:"1em",height:"1em"}},t.$attrs,{class:t.icon||"i-carbon-bring-forward",title:t.showTitle?t.title:void 0}),null,16,snA))}}),CnA=["top","right","bottom","left"],tF=["start","end"],rF=CnA.reduce((e,t)=>e.concat(t,t+"-"+tF[0],t+"-"+tF[1]),[]),ec=Math.min,Sa=Math.max,InA={left:"right",right:"left",bottom:"top",top:"bottom"},lnA={start:"end",end:"start"};function A0(e,t,A){return Sa(e,ec(t,A))}function Ps(e,t){return typeof e=="function"?e(t):e}function Wi(e){return e.split("-")[0]}function ui(e){return e.split("-")[1]}function HK(e){return e==="x"?"y":"x"}function hM(e){return e==="y"?"height":"width"}function Wc(e){return["top","bottom"].includes(Wi(e))?"y":"x"}function dM(e){return HK(Wc(e))}function UK(e,t,A){A===void 0&&(A=!1);const r=ui(e),n=dM(e),i=hM(n);let o=n==="x"?r===(A?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=nE(o)),[o,nE(o)]}function unA(e){const t=nE(e);return[rE(e),t,rE(t)]}function rE(e){return e.replace(/start|end/g,t=>lnA[t])}function cnA(e,t,A){const r=["left","right"],n=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return A?t?n:r:t?r:n;case"left":case"right":return t?i:o;default:return[]}}function hnA(e,t,A,r){const n=ui(e);let i=cnA(Wi(e),A==="start",r);return n&&(i=i.map(o=>o+"-"+n),t&&(i=i.concat(i.map(rE)))),i}function nE(e){return e.replace(/left|right|bottom|top/g,t=>InA[t])}function dnA(e){return{top:0,right:0,bottom:0,left:0,...e}}function KK(e){return typeof e!="number"?dnA(e):{top:e,right:e,bottom:e,left:e}}function wu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function nF(e,t,A){let{reference:r,floating:n}=e;const i=Wc(t),o=dM(t),g=hM(o),a=Wi(t),s=i==="y",C=r.x+r.width/2-n.width/2,I=r.y+r.height/2-n.height/2,l=r[g]/2-n[g]/2;let u;switch(a){case"top":u={x:C,y:r.y-n.height};break;case"bottom":u={x:C,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:I};break;case"left":u={x:r.x-n.width,y:I};break;default:u={x:r.x,y:r.y}}switch(ui(t)){case"start":u[o]-=l*(A&&s?-1:1);break;case"end":u[o]+=l*(A&&s?-1:1);break}return u}const BnA=async(e,t,A)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:o}=A,g=i.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let s=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:C,y:I}=nF(s,r,a),l=r,u={},c=0;for(let h=0;h<g.length;h++){const{name:d,fn:B}=g[h],{x:f,y:E,data:v,reset:p}=await B({x:C,y:I,initialPlacement:r,placement:l,strategy:n,middlewareData:u,rects:s,platform:o,elements:{reference:e,floating:t}});if(C=f??C,I=E??I,u={...u,[d]:{...u[d],...v}},p&&c<=50){c++,typeof p=="object"&&(p.placement&&(l=p.placement),p.rects&&(s=p.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):p.rects),{x:C,y:I}=nF(s,l,a)),h=-1;continue}}return{x:C,y:I,placement:l,strategy:n,middlewareData:u}};async function PQ(e,t){var A;t===void 0&&(t={});const{x:r,y:n,platform:i,rects:o,elements:g,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:C="viewport",elementContext:I="floating",altBoundary:l=!1,padding:u=0}=Ps(t,e),c=KK(u),d=g[l?I==="floating"?"reference":"floating":I],B=wu(await i.getClippingRect({element:(A=await(i.isElement==null?void 0:i.isElement(d)))==null||A?d:d.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(g.floating)),boundary:s,rootBoundary:C,strategy:a})),f=I==="floating"?{...o.floating,x:r,y:n}:o.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(g.floating)),v=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},p=wu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:E,strategy:a}):f);return{top:(B.top-p.top+c.top)/v.y,bottom:(p.bottom-B.bottom+c.bottom)/v.y,left:(B.left-p.left+c.left)/v.x,right:(p.right-B.right+c.right)/v.x}}const fnA=e=>({name:"arrow",options:e,async fn(t){const{x:A,y:r,placement:n,rects:i,platform:o,elements:g}=t,{element:a,padding:s=0}=Ps(e,t)||{};if(a==null)return{};const C=KK(s),I={x:A,y:r},l=dM(n),u=hM(l),c=await o.getDimensions(a),h=l==="y",d=h?"top":"left",B=h?"bottom":"right",f=h?"clientHeight":"clientWidth",E=i.reference[u]+i.reference[l]-I[l]-i.floating[u],v=I[l]-i.reference[l],p=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let D=p?p[f]:0;(!D||!await(o.isElement==null?void 0:o.isElement(p)))&&(D=g.floating[f]||i.floating[u]);const F=E/2-v/2,N=D/2-c[u]/2-1,S=ec(C[d],N),m=ec(C[B],N),R=S,k=D-c[u]-m,O=D/2-c[u]/2+F,H=A0(R,O,k),q=ui(n)!=null&&O!=H&&i.reference[u]/2-(O<R?S:m)-c[u]/2<0?O<R?R-O:k-O:0;return{[l]:I[l]-q,data:{[l]:H,centerOffset:O-H+q}}}});function EnA(e,t,A){return(e?[...A.filter(n=>ui(n)===e),...A.filter(n=>ui(n)!==e)]:A.filter(n=>Wi(n)===n)).filter(n=>e?ui(n)===e||(t?rE(n)!==n:!1):!0)}const QnA=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var A,r,n;const{rects:i,middlewareData:o,placement:g,platform:a,elements:s}=t,{crossAxis:C=!1,alignment:I,allowedPlacements:l=rF,autoAlignment:u=!0,...c}=Ps(e,t),h=I!==void 0||l===rF?EnA(I||null,u,l):l,d=await PQ(t,c),B=((A=o.autoPlacement)==null?void 0:A.index)||0,f=h[B];if(f==null)return{};const E=UK(f,i,await(a.isRTL==null?void 0:a.isRTL(s.floating)));if(g!==f)return{reset:{placement:h[0]}};const v=[d[Wi(f)],d[E[0]],d[E[1]]],p=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:f,overflows:v}],D=h[B+1];if(D)return{data:{index:B+1,overflows:p},reset:{placement:D}};const F=p.map(m=>{const R=ui(m.placement);return[m.placement,R&&C?m.overflows.slice(0,2).reduce((k,O)=>k+O,0):m.overflows[0],m.overflows]}).sort((m,R)=>m[1]-R[1]),S=((n=F.filter(m=>m[2].slice(0,ui(m[0])?2:3).every(R=>R<=0))[0])==null?void 0:n[0])||F[0][0];return S!==g?{data:{index:B+1,overflows:p},reset:{placement:S}}:{}}}},vnA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var A;const{placement:r,middlewareData:n,rects:i,initialPlacement:o,platform:g,elements:a}=t,{mainAxis:s=!0,crossAxis:C=!0,fallbackPlacements:I,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:c=!0,...h}=Ps(e,t),d=Wi(r),B=Wi(o)===o,f=await(g.isRTL==null?void 0:g.isRTL(a.floating)),E=I||(B||!c?[nE(o)]:unA(o));!I&&u!=="none"&&E.push(...hnA(o,c,u,f));const v=[o,...E],p=await PQ(t,h),D=[];let F=((A=n.flip)==null?void 0:A.overflows)||[];if(s&&D.push(p[d]),C){const R=UK(r,i,f);D.push(p[R[0]],p[R[1]])}if(F=[...F,{placement:r,overflows:D}],!D.every(R=>R<=0)){var N,S;const R=(((N=n.flip)==null?void 0:N.index)||0)+1,k=v[R];if(k)return{data:{index:R,overflows:F},reset:{placement:k}};let O=(S=F.filter(H=>H.overflows[0]<=0).sort((H,X)=>H.overflows[1]-X.overflows[1])[0])==null?void 0:S.placement;if(!O)switch(l){case"bestFit":{var m;const H=(m=F.map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Z)=>q+Z,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:m[0];H&&(O=H);break}case"initialPlacement":O=o;break}if(r!==O)return{reset:{placement:O}}}return{}}}};async function pnA(e,t){const{placement:A,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),o=Wi(A),g=ui(A),a=Wc(A)==="y",s=["left","top"].includes(o)?-1:1,C=i&&a?-1:1,I=Ps(t,e);let{mainAxis:l,crossAxis:u,alignmentAxis:c}=typeof I=="number"?{mainAxis:I,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...I};return g&&typeof c=="number"&&(u=g==="end"?c*-1:c),a?{x:u*C,y:l*s}:{x:l*s,y:u*C}}const wnA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:A,y:r}=t,n=await pnA(t,e);return{x:A+n.x,y:r+n.y,data:n}}}},DnA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:A,y:r,placement:n}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:g={fn:d=>{let{x:B,y:f}=d;return{x:B,y:f}}},...a}=Ps(e,t),s={x:A,y:r},C=await PQ(t,a),I=Wc(Wi(n)),l=HK(I);let u=s[l],c=s[I];if(i){const d=l==="y"?"top":"left",B=l==="y"?"bottom":"right",f=u+C[d],E=u-C[B];u=A0(f,u,E)}if(o){const d=I==="y"?"top":"left",B=I==="y"?"bottom":"right",f=c+C[d],E=c-C[B];c=A0(f,c,E)}const h=g.fn({...t,[l]:u,[I]:c});return{...h,data:{x:h.x-A,y:h.y-r}}}}},ynA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:A,rects:r,platform:n,elements:i}=t,{apply:o=()=>{},...g}=Ps(e,t),a=await PQ(t,g),s=Wi(A),C=ui(A),I=Wc(A)==="y",{width:l,height:u}=r.floating;let c,h;s==="top"||s==="bottom"?(c=s,h=C===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(h=s,c=C==="end"?"top":"bottom");const d=u-a[c],B=l-a[h],f=!t.middlewareData.shift;let E=d,v=B;if(I){const D=l-a.left-a.right;v=C||f?ec(B,D):D}else{const D=u-a.top-a.bottom;E=C||f?ec(d,D):D}if(f&&!C){const D=Sa(a.left,0),F=Sa(a.right,0),N=Sa(a.top,0),S=Sa(a.bottom,0);I?v=l-2*(D!==0||F!==0?D+F:Sa(a.left,a.right)):E=u-2*(N!==0||S!==0?N+S:Sa(a.top,a.bottom))}await o({...t,availableWidth:v,availableHeight:E});const p=await n.getDimensions(i.floating);return l!==p.width||u!==p.height?{reset:{rects:!0}}:{}}}};function $n(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xi(e){return $n(e).getComputedStyle(e)}const iF=Math.min,Du=Math.max,iE=Math.round;function _K(e){const t=xi(e);let A=parseFloat(t.width),r=parseFloat(t.height);const n=e.offsetWidth,i=e.offsetHeight,o=iE(A)!==n||iE(r)!==i;return o&&(A=n,r=i),{width:A,height:r,fallback:o}}function Jg(e){return JK(e)?(e.nodeName||"").toLowerCase():""}let Nd;function YK(){if(Nd)return Nd;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Nd=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Nd):navigator.userAgent}function Ti(e){return e instanceof $n(e).HTMLElement}function Dg(e){return e instanceof $n(e).Element}function JK(e){return e instanceof $n(e).Node}function oF(e){return typeof ShadowRoot>"u"?!1:e instanceof $n(e).ShadowRoot||e instanceof ShadowRoot}function FQ(e){const{overflow:t,overflowX:A,overflowY:r,display:n}=xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+A)&&!["inline","contents"].includes(n)}function mnA(e){return["table","td","th"].includes(Jg(e))}function e0(e){const t=/firefox/i.test(YK()),A=xi(e),r=A.backdropFilter||A.WebkitBackdropFilter;return A.transform!=="none"||A.perspective!=="none"||!!r&&r!=="none"||t&&A.willChange==="filter"||t&&!!A.filter&&A.filter!=="none"||["transform","perspective"].some(n=>A.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const i=A.contain;return i!=null&&i.includes(n)})}function zK(){return!/^((?!chrome|android).)*safari/i.test(YK())}function BM(e){return["html","body","#document"].includes(Jg(e))}function WK(e){return Dg(e)?e:e.contextElement}const qK={x:1,y:1};function VC(e){const t=WK(e);if(!Ti(t))return qK;const A=t.getBoundingClientRect(),{width:r,height:n,fallback:i}=_K(t);let o=(i?iE(A.width):A.width)/r,g=(i?iE(A.height):A.height)/n;return o&&Number.isFinite(o)||(o=1),g&&Number.isFinite(g)||(g=1),{x:o,y:g}}function tc(e,t,A,r){var n,i;t===void 0&&(t=!1),A===void 0&&(A=!1);const o=e.getBoundingClientRect(),g=WK(e);let a=qK;t&&(r?Dg(r)&&(a=VC(r)):a=VC(e));const s=g?$n(g):window,C=!zK()&&A;let I=(o.left+(C&&((n=s.visualViewport)==null?void 0:n.offsetLeft)||0))/a.x,l=(o.top+(C&&((i=s.visualViewport)==null?void 0:i.offsetTop)||0))/a.y,u=o.width/a.x,c=o.height/a.y;if(g){const h=$n(g),d=r&&Dg(r)?$n(r):r;let B=h.frameElement;for(;B&&r&&d!==h;){const f=VC(B),E=B.getBoundingClientRect(),v=getComputedStyle(B);E.x+=(B.clientLeft+parseFloat(v.paddingLeft))*f.x,E.y+=(B.clientTop+parseFloat(v.paddingTop))*f.y,I*=f.x,l*=f.y,u*=f.x,c*=f.y,I+=E.x,l+=E.y,B=$n(B).frameElement}}return{width:u,height:c,top:l,right:I+u,bottom:l+c,left:I,x:I,y:l}}function yg(e){return((JK(e)?e.ownerDocument:e.document)||window.document).documentElement}function RQ(e){return Dg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jK(e){return tc(yg(e)).left+RQ(e).scrollLeft}function rc(e){if(Jg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oF(e)&&e.host||yg(e);return oF(t)?t.host:t}function VK(e){const t=rc(e);return BM(t)?t.ownerDocument.body:Ti(t)&&FQ(t)?t:VK(t)}function oE(e,t){var A;t===void 0&&(t=[]);const r=VK(e),n=r===((A=e.ownerDocument)==null?void 0:A.body),i=$n(r);return n?t.concat(i,i.visualViewport||[],FQ(r)?r:[]):t.concat(r,oE(r))}function gF(e,t,A){return t==="viewport"?wu(function(r,n){const i=$n(r),o=yg(r),g=i.visualViewport;let a=o.clientWidth,s=o.clientHeight,C=0,I=0;if(g){a=g.width,s=g.height;const l=zK();(l||!l&&n==="fixed")&&(C=g.offsetLeft,I=g.offsetTop)}return{width:a,height:s,x:C,y:I}}(e,A)):Dg(t)?wu(function(r,n){const i=tc(r,!0,n==="fixed"),o=i.top+r.clientTop,g=i.left+r.clientLeft,a=Ti(r)?VC(r):{x:1,y:1};return{width:r.clientWidth*a.x,height:r.clientHeight*a.y,x:g*a.x,y:o*a.y}}(t,A)):wu(function(r){const n=yg(r),i=RQ(r),o=r.ownerDocument.body,g=Du(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=Du(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let s=-i.scrollLeft+jK(r);const C=-i.scrollTop;return xi(o).direction==="rtl"&&(s+=Du(n.clientWidth,o.clientWidth)-g),{width:g,height:a,x:s,y:C}}(yg(e)))}function aF(e){return Ti(e)&&xi(e).position!=="fixed"?e.offsetParent:null}function sF(e){const t=$n(e);let A=aF(e);for(;A&&mnA(A)&&xi(A).position==="static";)A=aF(A);return A&&(Jg(A)==="html"||Jg(A)==="body"&&xi(A).position==="static"&&!e0(A))?t:A||function(r){let n=rc(r);for(;Ti(n)&&!BM(n);){if(e0(n))return n;n=rc(n)}return null}(e)||t}function bnA(e,t,A){const r=Ti(t),n=yg(t),i=tc(e,!0,A==="fixed",t);let o={scrollLeft:0,scrollTop:0};const g={x:0,y:0};if(r||!r&&A!=="fixed")if((Jg(t)!=="body"||FQ(n))&&(o=RQ(t)),Ti(t)){const a=tc(t,!0);g.x=a.x+t.clientLeft,g.y=a.y+t.clientTop}else n&&(g.x=jK(n));return{x:i.left+o.scrollLeft-g.x,y:i.top+o.scrollTop-g.y,width:i.width,height:i.height}}const MnA={getClippingRect:function(e){let{element:t,boundary:A,rootBoundary:r,strategy:n}=e;const i=A==="clippingAncestors"?function(s,C){const I=C.get(s);if(I)return I;let l=oE(s).filter(d=>Dg(d)&&Jg(d)!=="body"),u=null;const c=xi(s).position==="fixed";let h=c?rc(s):s;for(;Dg(h)&&!BM(h);){const d=xi(h),B=e0(h);(c?B||u:B||d.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=d:l=l.filter(f=>f!==h),h=rc(h)}return C.set(s,l),l}(t,this._c):[].concat(A),o=[...i,r],g=o[0],a=o.reduce((s,C)=>{const I=gF(t,C,n);return s.top=Du(I.top,s.top),s.right=iF(I.right,s.right),s.bottom=iF(I.bottom,s.bottom),s.left=Du(I.left,s.left),s},gF(t,g,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:A,strategy:r}=e;const n=Ti(A),i=yg(A);if(A===i)return t;let o={scrollLeft:0,scrollTop:0},g={x:1,y:1};const a={x:0,y:0};if((n||!n&&r!=="fixed")&&((Jg(A)!=="body"||FQ(i))&&(o=RQ(A)),Ti(A))){const s=tc(A);g=VC(A),a.x=s.x+A.clientLeft,a.y=s.y+A.clientTop}return{width:t.width*g.x,height:t.height*g.y,x:t.x*g.x-o.scrollLeft*g.x+a.x,y:t.y*g.y-o.scrollTop*g.y+a.y}},isElement:Dg,getDimensions:function(e){return Ti(e)?_K(e):e.getBoundingClientRect()},getOffsetParent:sF,getDocumentElement:yg,getScale:VC,async getElementRects(e){let{reference:t,floating:A,strategy:r}=e;const n=this.getOffsetParent||sF,i=this.getDimensions;return{reference:bnA(t,await n(A),r),floating:{x:0,y:0,...await i(A)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>xi(e).direction==="rtl"},knA=(e,t,A)=>{const r=new Map,n={platform:MnA,...A},i={...n.platform,_c:r};return BnA(e,t,{...n,platform:i})},za={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function nc(e,t){let A=za.themes[e]||{},r;do r=A[t],typeof r>"u"?A.$extend?A=za.themes[A.$extend]||{}:(A=null,r=za[t]):A=null;while(A);return r}function SnA(e){const t=[e];let A=za.themes[e]||{};do A.$extend&&!A.$resetCss?(t.push(A.$extend),A=za.themes[A.$extend]||{}):A=null;while(A);return t.map(r=>`v-popper--theme-${r}`)}function CF(e){const t=[e];let A=za.themes[e]||{};do A.$extend?(t.push(A.$extend),A=za.themes[A.$extend]||{}):A=null;while(A);return t}let dI=!1;if(typeof window<"u"){dI=!1;try{const e=Object.defineProperty({},"passive",{get(){dI=!0}});window.addEventListener("test",null,e)}catch{}}let ZK=!1;typeof window<"u"&&typeof navigator<"u"&&(ZK=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const XK=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),IF={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lF={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function uF(e,t){const A=e.indexOf(t);A!==-1&&e.splice(A,1)}function Gp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const ii=[];let ya=null;const cF={};function hF(e){let t=cF[e];return t||(t=cF[e]=[]),t}let t0=function(){};typeof window<"u"&&(t0=window.Element);function Ee(e){return function(t){return nc(t.theme,e)}}const xp="__floating-vue__popper",A_=()=>DA({name:"VPopper",provide(){return{[xp]:{parentPopper:this}}},inject:{[xp]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ee("disabled")},positioningDisabled:{type:Boolean,default:Ee("positioningDisabled")},placement:{type:String,default:Ee("placement"),validator:e=>XK.includes(e)},delay:{type:[String,Number,Object],default:Ee("delay")},distance:{type:[Number,String],default:Ee("distance")},skidding:{type:[Number,String],default:Ee("skidding")},triggers:{type:Array,default:Ee("triggers")},showTriggers:{type:[Array,Function],default:Ee("showTriggers")},hideTriggers:{type:[Array,Function],default:Ee("hideTriggers")},popperTriggers:{type:Array,default:Ee("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ee("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ee("popperHideTriggers")},container:{type:[String,Object,t0,Boolean],default:Ee("container")},boundary:{type:[String,t0],default:Ee("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ee("strategy")},autoHide:{type:[Boolean,Function],default:Ee("autoHide")},handleResize:{type:Boolean,default:Ee("handleResize")},instantMove:{type:Boolean,default:Ee("instantMove")},eagerMount:{type:Boolean,default:Ee("eagerMount")},popperClass:{type:[String,Array,Object],default:Ee("popperClass")},computeTransformOrigin:{type:Boolean,default:Ee("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ee("autoMinSize")},autoSize:{type:[Boolean,String],default:Ee("autoSize")},autoMaxSize:{type:Boolean,default:Ee("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ee("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ee("preventOverflow")},overflowPadding:{type:[Number,String],default:Ee("overflowPadding")},arrowPadding:{type:[Number,String],default:Ee("arrowPadding")},arrowOverflow:{type:Boolean,default:Ee("arrowOverflow")},flip:{type:Boolean,default:Ee("flip")},shift:{type:Boolean,default:Ee("shift")},shiftCrossAxis:{type:Boolean,default:Ee("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ee("noAutoFocus")},disposeTimeout:{type:Number,default:Ee("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[xp])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:A=!1}={}){var r,n;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(A||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var A;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((A=this.parentPopper)==null?void 0:A.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(wnA({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(QnA({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(DnA({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(vnA({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(fnA({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:n,middlewareData:i})=>{let o;const{centerOffset:g}=i.arrow;return r.startsWith("top")||r.startsWith("bottom")?o=Math.abs(g)>n.reference.width/2:o=Math.abs(g)>n.reference.height/2,{data:{overflow:o}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:i,middlewareData:o})=>{var g;if((g=o.autoSize)!=null&&g.skip)return{};let a,s;return i.startsWith("top")||i.startsWith("bottom")?a=n.reference.width:s=n.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=a!=null?`${a}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=s!=null?`${s}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(ynA({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:n})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const A=await knA(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:A.x,y:A.y,placement:A.placement,strategy:A.strategy,arrow:{...A.middlewareData.arrow,...A.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ya&&this.instantMove&&ya.instantMove&&ya!==this.parentPopper){ya.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ya=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Gp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...oE(this.$_referenceNode),...oE(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),A=this.$_popperNode.querySelector(".v-popper__wrapper"),r=A.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(r.left+A.offsetLeft),i=t.y+t.height/2-(r.top+A.offsetTop);this.result.transformOrigin=`${n}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let A=0;A<ii.length;A++)t=ii[A],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}ii.push(this),document.body.classList.add("v-popper--some-open");for(const t of CF(this.theme))hF(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Gp(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,uF(ii,this),ii.length===0&&document.body.classList.remove("v-popper--some-open");for(const A of CF(this.theme)){const r=hF(A);uF(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${A}`)}ya===this&&(ya=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Gp(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=A=>{this.isShown&&!this.$_hideInProgress||(A.usedByTooltip=!0,!this.$_preventShow&&this.show({event:A}))};this.$_registerTriggerListeners(this.$_targetNodes,IF,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],IF,this.popperTriggers,this.popperShowTriggers,e);const t=A=>{A.usedByTooltip||this.hide({event:A})};this.$_registerTriggerListeners(this.$_targetNodes,lF,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lF,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,A){this.$_events.push({targetNodes:e,eventType:t,handler:A}),e.forEach(r=>r.addEventListener(t,A,dI?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,A,r,n){let i=A;r!=null&&(i=typeof r=="function"?r(i):r),i.forEach(o=>{const g=t[o];g&&this.$_registerEventListeners(e,g,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(A=>{const{targetNodes:r,eventType:n,handler:i}=A;!e||e===n?r.forEach(o=>o.removeEventListener(n,i)):t.push(A)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const A of this.$_targetNodes){const r=A.getAttribute(e);r&&(A.removeAttribute(e),A.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const A in e){const r=e[A];r==null?t.removeAttribute(A):t.setAttribute(A,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(yu>=e.left&&yu<=e.right&&mu>=e.top&&mu<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),A=yu-Vo,r=mu-Zo,n=t.left+t.width/2-Vo+(t.top+t.height/2)-Zo+t.width+t.height,i=Vo+A*n,o=Zo+r*n;return Pd(Vo,Zo,i,o,t.left,t.top,t.left,t.bottom)||Pd(Vo,Zo,i,o,t.left,t.top,t.right,t.top)||Pd(Vo,Zo,i,o,t.right,t.top,t.right,t.bottom)||Pd(Vo,Zo,i,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(ZK){const e=dI?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dF(t),e),document.addEventListener("touchend",t=>BF(t,!0),e)}else window.addEventListener("mousedown",e=>dF(e),!0),window.addEventListener("click",e=>BF(e,!1),!0);window.addEventListener("resize",FnA)}function dF(e,t){for(let A=0;A<ii.length;A++){const r=ii[A];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function BF(e,t){NnA(e,t)}function NnA(e,t){const A={};for(let r=ii.length-1;r>=0;r--){const n=ii[r];try{const i=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!A[n.randomId]&&fF(n,i,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let g=n.parentPopper;for(;g;)A[g.randomId]=!0,g=g.parentPopper;return}let o=n.parentPopper;for(;o&&fF(o,o.containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function fF(e,t,A){return A.closeAllPopover||A.closePopover&&t||PnA(e,A)&&!t}function PnA(e,t){if(typeof e.autoHide=="function"){const A=e.autoHide(t);return e.lastAutoHide=A,A}return e.autoHide}function FnA(){for(let e=0;e<ii.length;e++)ii[e].$_computePosition()}let Vo=0,Zo=0,yu=0,mu=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vo=yu,Zo=mu,yu=e.clientX,mu=e.clientY},dI?{passive:!0}:void 0);function Pd(e,t,A,r,n,i,o,g){const a=((o-n)*(t-i)-(g-i)*(e-n))/((g-i)*(A-e)-(o-n)*(r-t)),s=((A-e)*(t-i)-(r-t)*(e-n))/((g-i)*(A-e)-(o-n)*(r-t));return a>=0&&a<=1&&s>=0&&s<=1}const RnA={extends:A_()},LQ=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A};function LnA(e,t,A,r,n,i){return M(),x("div",{ref:"reference",class:bA(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[VA(e.$slots,"default",Oc(zI(e.slotData)))],2)}const $nA=LQ(RnA,[["render",LnA]]);function OnA(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var A=e.indexOf("Trident/");if(A>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let af;function r0(){r0.init||(r0.init=!0,af=OnA()!==-1)}var $Q={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){r0(),cr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",af&&this.$el.appendChild(e),e.data="about:blank",af||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!af&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const GnA=gU();BQ("data-v-b329ee4c");const xnA={class:"resize-observer",tabindex:"-1"};fQ();const TnA=GnA((e,t,A,r,n,i)=>(M(),tA("div",xnA)));$Q.render=TnA;$Q.__scopeId="data-v-b329ee4c";$Q.__file="src/components/ResizeObserver.vue";const e_=(e="theme")=>({computed:{themeClass(){return SnA(this[e])}}}),HnA=DA({name:"VPopperContent",components:{ResizeObserver:$Q},mixins:[e_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),UnA=["id","aria-hidden","tabindex","data-popper-placement"],KnA={ref:"inner",class:"v-popper__inner"},_nA=y("div",{class:"v-popper__arrow-outer"},null,-1),YnA=y("div",{class:"v-popper__arrow-inner"},null,-1),JnA=[_nA,YnA];function znA(e,t,A,r,n,i){const o=En("ResizeObserver");return M(),x("div",{id:e.popperId,ref:"popover",class:bA(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Qt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=$U(g=>e.autoHide&&e.$emit("hide"),["esc"]))},[y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=g=>e.autoHide&&e.$emit("hide"))}),y("div",{class:"v-popper__wrapper",style:Qt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[y("div",KnA,[e.mounted?(M(),x(wA,{key:0},[y("div",null,[VA(e.$slots,"default")]),e.handleResize?(M(),tA(o,{key:0,onNotify:t[1]||(t[1]=g=>e.$emit("resize",g))})):pA("",!0)],64)):pA("",!0)],512),y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Qt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},JnA,4)],4)],46,UnA)}const t_=LQ(HnA,[["render",znA]]),r_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let n0=function(){};typeof window<"u"&&(n0=window.Element);const WnA=DA({name:"VPopperWrapper",components:{Popper:$nA,PopperContent:t_},mixins:[r_,e_("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,n0,Boolean],default:void 0},boundary:{type:[String,n0],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function qnA(e,t,A,r,n,i){const o=En("PopperContent"),g=En("Popper");return M(),tA(g,Ir({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=a=>e.$emit("update:shown",a)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:U(({popperId:a,isShown:s,shouldMountContent:C,skipTransition:I,autoHide:l,show:u,hide:c,handleResize:h,onResize:d,classes:B,result:f})=>[VA(e.$slots,"default",{shown:s,show:u,hide:c}),T(o,{ref:"popperContent","popper-id":a,theme:e.finalTheme,shown:s,mounted:C,"skip-transition":I,"auto-hide":l,"handle-resize":h,classes:B,result:f,onHide:c,onResize:d},{default:U(()=>[VA(e.$slots,"popper",{shown:s,hide:c})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const fM=LQ(WnA,[["render",qnA]]),jnA={...fM,name:"VDropdown",vPopperTheme:"dropdown"};({...fM});const VnA={...fM,name:"VTooltip",vPopperTheme:"tooltip"},ZnA=DA({name:"VTooltipDirective",components:{Popper:A_(),PopperContent:t_},mixins:[r_],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>nc(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>nc(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,A=this.content(this);A.then?A.then(r=>this.onResult(t,r)):this.onResult(t,A)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),XnA=["innerHTML"],AiA=["textContent"];function eiA(e,t,A,r,n,i){const o=En("PopperContent"),g=En("Popper");return M(),tA(g,Ir({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:U(({popperId:a,isShown:s,shouldMountContent:C,skipTransition:I,autoHide:l,hide:u,handleResize:c,onResize:h,classes:d,result:B})=>[T(o,{ref:"popperContent",class:bA({"v-popper--tooltip-loading":e.loading}),"popper-id":a,theme:e.theme,shown:s,mounted:C,"skip-transition":I,"auto-hide":l,"handle-resize":c,classes:d,result:B,onHide:u,onResize:h},{default:U(()=>[e.html?(M(),x("div",{key:0,innerHTML:e.finalContent},null,8,XnA)):(M(),x("div",{key:1,textContent:yA(e.finalContent)},null,8,AiA))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const tiA=LQ(ZnA,[["render",eiA]]),n_="v-popper--has-tooltip";function riA(e,t){let A=e.placement;if(!A&&t)for(const r of XK)t[r]&&(A=r);return A||(A=nc(e.theme||"tooltip","placement")),A}function i_(e,t,A){let r;const n=typeof t;return n==="string"?r={content:t}:t&&n==="object"?r=t:r={content:!1},r.placement=riA(r,A),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let Tp,ic,niA=0;function iiA(){if(Tp)return;ic=_([]),Tp=iM({name:"VTooltipDirectiveApp",setup(){return{directives:ic}},render(){return this.directives.map(t=>WI(tiA,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Tp.mount(e)}function oiA(e,t,A){iiA();const r=_(i_(e,t,A)),n=_(!1),i={id:niA++,options:r,shown:n};return ic.value.push(i),e.classList&&e.classList.add(n_),e.$_popper={options:r,item:i,show(){n.value=!0},hide(){n.value=!1}}}function o_(e){if(e.$_popper){const t=ic.value.indexOf(e.$_popper.item);t!==-1&&ic.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(n_)}function EF(e,{value:t,modifiers:A}){const r=i_(e,t,A);if(!r.content||nc(r.theme||"tooltip","disabled"))o_(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=r):n=oiA(e,t,A),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const giA={beforeMount:EF,updated:EF,beforeUnmount(e){o_(e)}};function QF(e){e.addEventListener("mousedown",gE),e.addEventListener("click",gE),e.addEventListener("touchstart",g_,dI?{passive:!0}:!1)}function vF(e){e.removeEventListener("mousedown",gE),e.removeEventListener("click",gE),e.removeEventListener("touchstart",g_),e.removeEventListener("touchend",a_),e.removeEventListener("touchcancel",s_)}function gE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function g_(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const A=e.changedTouches[0];t.$_vclosepopover_touchPoint=A,t.addEventListener("touchend",a_),t.addEventListener("touchcancel",s_)}}function a_(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const A=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(A.screenY-r.screenY)<20&&Math.abs(A.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function s_(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const aiA={beforeMount(e,{value:t,modifiers:A}){e.$_closePopoverModifiers=A,(typeof t>"u"||t)&&QF(e)},updated(e,{value:t,oldValue:A,modifiers:r}){e.$_closePopoverModifiers=r,t!==A&&(typeof t>"u"||t?QF(e):vF(e))},beforeUnmount(e){vF(e)}},Bn=giA,C_=aiA,siA=jnA,CiA=VnA,EM=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},IiA={},liA={class:"h-3 w-3 $ui-inline-fcc"},uiA=y("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[y("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),y("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),ciA=[uiA];function hiA(e,t){return M(),x("div",liA,ciA)}const I_=EM(IiA,[["render",hiA]]),diA={key:2},ie=DA({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const A=e,r=t,n=XX(),i=W(()=>n.to?"router-link":n.href?"a":"button"),o=W(()=>A.loading||A.disabled);function g(I){if(o.value){I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation();return}r("click",I)}const a={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},s=BU(),C=W(()=>A.flat?a.flat[A.type]:A.outlined?a.outlined[A.type]:a.normal[A.type]);return(I,l)=>(M(),tA(Kg(i.value),Ir(I.$attrs,{role:"button","aria-disabled":o.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[a.common[A.type]],{"rounded-full":A.round==="full","$ui-base-br":A.round==="normal","opacity-50 cursor-not-allowed":o.value,"bg-transparent":A.flat||A.outlined},[I.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",I.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",C.value]]],onClickCapture:g}),{default:U(()=>[I.loading?(M(),tA(I_,{key:0,class:"mt0.5 h-full w3"})):VA(I.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),Q(s).default?(M(),x("div",diA,[VA(I.$slots,"default")])):pA("",!0),VA(I.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),BiA={},fiA={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function EiA(e,t){return M(),x("span",fiA,[VA(e.$slots,"default")])}const pF=EM(BiA,[["render",EiA]]),De=DA({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(e){return(t,A)=>(M(),tA(Kg(t.inline?"span":"div"),{class:bA(["$ui-base",[t.icon,t.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function OQ(e){return x1()?(G4(e),!0):!1}function QiA(e,t,{enumerable:A=!1,unwrap:r=!0}={}){for(const[n,i]of Object.entries(t))n!=="value"&&(YA(i)&&r?Object.defineProperty(e,n,{get(){return i.value},set(o){i.value=o},enumerable:A}):Object.defineProperty(e,n,{value:i,enumerable:A}));return e}function Tn(e){return typeof e=="function"?e():Q(e)}const l_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const viA=e=>typeof e<"u",piA=Object.prototype.toString,wiA=e=>piA.call(e)==="[object Object]",aE=()=>{},wF=DiA();function DiA(){var e,t;return l_&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function u_(e,t){function A(...r){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(n).catch(i)})}return A}const c_=e=>e();function yiA(e,t={}){let A,r,n=aE;const i=o=>{clearTimeout(o),n(),n=aE};return o=>{const g=Tn(e),a=Tn(t.maxWait);return A&&i(A),g<=0||a!==void 0&&a<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((s,C)=>{n=t.rejectOnCancel?C:s,a&&!r&&(r=setTimeout(()=>{A&&i(A),r=null,s(o())},a)),A=setTimeout(()=>{r&&i(r),r=null,s(o())},g)})}}function miA(e=c_){const t=_(!0);function A(){t.value=!1}function r(){t.value=!0}const n=(...i)=>{t.value&&e(...i)};return{isActive:Lo(t),pause:A,resume:r,eventFilter:n}}function biA(e){return e||Aa()}function h_(...e){if(e.length!==1)return AU(...e);const t=e[0];return typeof t=="function"?Lo(j1(()=>({get:t,set:aE}))):_(t)}function MiA(e,t=200,A={}){return u_(yiA(t,A),e)}function kiA(e,t=200,A={}){const r=_(e.value),n=MiA(()=>{r.value=e.value},t,A);return Ae(e,()=>n()),r}function SiA(e,t={}){let A=e,r,n;const i=j1((a,s)=>(r=a,n=s,{get(){return o()},set(C){g(C)}}));function o(a=!0){return a&&r(),A}function g(a,s=!0){var C,I;if(a===A)return;const l=A;((C=t.onBeforeChange)==null?void 0:C.call(t,a,l))!==!1&&(A=a,(I=t.onChanged)==null||I.call(t,a,l),s&&n())}return QiA(i,{get:o,set:g,untrackedGet:()=>o(!1),silentSet:a=>g(a,!1),peek:()=>o(!1),lay:a=>g(a,!1)},{enumerable:!0})}function NiA(e,t,A={}){const{eventFilter:r=c_,...n}=A;return Ae(e,u_(r,t),n)}function PiA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=miA(r);return{stop:NiA(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function QM(e,t=!0,A){biA()?vn(e,A):t?e():cr(e)}function FiA(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=YA(e),i=_(e);function o(g){if(arguments.length)return i.value=g,i.value;{const a=Tn(A);return i.value=i.value===a?Tn(r):a,i.value}}return n?o:[i,o]}function dg(e){var t;const A=Tn(e);return(t=A?.$el)!=null?t:A}const zg=l_?window:void 0;function sE(...e){let t,A,r,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([A,r,n]=e,t=zg):[t,A,r,n]=e,!t)return aE;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(C=>C()),i.length=0},g=(C,I,l,u)=>(C.addEventListener(I,l,u),()=>C.removeEventListener(I,l,u)),a=Ae(()=>[dg(t),Tn(n)],([C,I])=>{if(o(),!C)return;const l=wiA(I)?{...I}:I;i.push(...A.flatMap(u=>r.map(c=>g(C,u,c,l))))},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return OQ(s),s}function RiA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function d_(...e){let t,A,r={};e.length===3?(t=e[0],A=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,A=e[0],r=e[1]):(t=e[0],A=e[1]):(t=!0,A=e[0]);const{target:n=zg,eventName:i="keydown",passive:o=!1,dedupe:g=!1}=r,a=RiA(t);return sE(n,i,s=>{s.repeat&&Tn(g)||a(s)&&A(s)},o)}function LiA(){const e=_(!1),t=Aa();return t&&vn(()=>{e.value=!0},t),e}function B_(e){const t=LiA();return W(()=>(t.value,!!e()))}function $iA(e,t={}){const{window:A=zg}=t,r=B_(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=_(!1),o=s=>{i.value=s.matches},g=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",o):n.removeListener(o))},a=Er(()=>{r.value&&(g(),n=A.matchMedia(Tn(e)),"addEventListener"in n?n.addEventListener("change",o):n.addListener(o),i.value=n.matches)});return OQ(()=>{a(),g(),n=void 0}),i}function OiA(e){return JSON.parse(JSON.stringify(e))}const Fd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rd="__vueuse_ssr_handlers__",GiA=xiA();function xiA(){return Rd in Fd||(Fd[Rd]=Fd[Rd]||{}),Fd[Rd]}function f_(e,t){return GiA[e]||t}function TiA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const HiA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},DF="vueuse-storage";function UiA(e,t,A,r={}){var n;const{flush:i="pre",deep:o=!0,listenToStorageChanges:g=!0,writeDefaults:a=!0,mergeDefaults:s=!1,shallow:C,window:I=zg,eventFilter:l,onError:u=m=>{console.error(m)},initOnMounted:c}=r,h=(C?Zi:_)(typeof t=="function"?t():t);if(!A)try{A=f_("getDefaultStorage",()=>{var m;return(m=zg)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=Tn(t),B=TiA(d),f=(n=r.serializer)!=null?n:HiA[B],{pause:E,resume:v}=PiA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&QM(()=>{sE(I,"storage",N),sE(I,DF,S),c&&N()}),c||N();function p(m,R){I&&I.dispatchEvent(new CustomEvent(DF,{detail:{key:e,oldValue:m,newValue:R,storageArea:A}}))}function D(m){try{const R=A.getItem(e);if(m==null)p(R,null),A.removeItem(e);else{const k=f.write(m);R!==k&&(A.setItem(e,k),p(R,k))}}catch(R){u(R)}}function F(m){const R=m?m.newValue:A.getItem(e);if(R==null)return a&&d!=null&&A.setItem(e,f.write(d)),d;if(!m&&s){const k=f.read(R);return typeof s=="function"?s(k,d):B==="object"&&!Array.isArray(k)?{...d,...k}:k}else return typeof R!="string"?R:f.read(R)}function N(m){if(!(m&&m.storageArea!==A)){if(m&&m.key==null){h.value=d;return}if(!(m&&m.key!==e)){E();try{m?.newValue!==f.write(h.value)&&(h.value=F(m))}catch(R){u(R)}finally{m?cr(v):v()}}}}function S(m){N(m.detail)}return h}function KiA(e){return $iA("(prefers-color-scheme: dark)",e)}function _iA(e={}){const{selector:t="html",attribute:A="class",initialValue:r="auto",window:n=zg,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:a,emitAuto:s,disableTransition:C=!0}=e,I={auto:"",light:"light",dark:"dark",...e.modes||{}},l=KiA({window:n}),u=W(()=>l.value?"dark":"light"),c=a||(o==null?h_(r):UiA(o,r,i,{window:n,listenToStorageChanges:g})),h=W(()=>c.value==="auto"?u.value:c.value),d=f_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):dg(v);if(!F)return;let N;if(C){N=n.document.createElement("style");const S="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";N.appendChild(document.createTextNode(S)),n.document.head.appendChild(N)}if(p==="class"){const S=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{S.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(N).opacity,document.head.removeChild(N))});function B(v){var p;d(t,A,(p=I[v])!=null?p:v)}function f(v){e.onChanged?e.onChanged(v,B):B(v)}Ae(h,f,{flush:"post",immediate:!0}),QM(()=>f(h.value));const E=W({get(){return s?c.value:h.value},set(v){c.value=v}});try{return Object.assign(E,{store:c,system:u,state:h})}catch{return E}}function YiA(e,t,A={}){const{window:r=zg,...n}=A;let i;const o=B_(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=W(()=>Array.isArray(e)?e.map(I=>dg(I)):[dg(e)]),s=Ae(a,I=>{if(g(),o.value&&r){i=new ResizeObserver(t);for(const l of I)l&&i.observe(l,n)}},{immediate:!0,flush:"post"}),C=()=>{g(),s()};return OQ(C),{isSupported:o,stop:C}}function JiA(e,t={width:0,height:0},A={}){const{window:r=zg,box:n="content-box"}=A,i=W(()=>{var I,l;return(l=(I=dg(e))==null?void 0:I.namespaceURI)==null?void 0:l.includes("svg")}),o=_(t.width),g=_(t.height),{stop:a}=YiA(e,([I])=>{const l=n==="border-box"?I.borderBoxSize:n==="content-box"?I.contentBoxSize:I.devicePixelContentBoxSize;if(r&&i.value){const u=dg(e);if(u){const c=r.getComputedStyle(u);o.value=Number.parseFloat(c.width),g.value=Number.parseFloat(c.height)}}else if(l){const u=Array.isArray(l)?l:[l];o.value=u.reduce((c,{inlineSize:h})=>c+h,0),g.value=u.reduce((c,{blockSize:h})=>c+h,0)}else o.value=I.contentRect.width,g.value=I.contentRect.height},A);QM(()=>{const I=dg(e);I&&(o.value="offsetWidth"in I?I.offsetWidth:t.width,g.value="offsetHeight"in I?I.offsetHeight:t.height)});const s=Ae(()=>dg(e),I=>{o.value=I?t.width:0,g.value=I?t.height:0});function C(){a(),s()}return{width:o,height:g,stop:C}}function Hp(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function E_(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const A=e.parentNode;return!A||A.tagName==="BODY"?!1:E_(A)}}function ziA(e){const t=e||window.event,A=t.target;return E_(A)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Ld=new WeakMap;function WiA(e,t=!1){const A=_(t);let r=null;Ae(h_(e),o=>{const g=Hp(Tn(o));if(g){const a=g;Ld.get(a)||Ld.set(a,a.style.overflow),A.value&&(a.style.overflow="hidden")}},{immediate:!0});const n=()=>{const o=Hp(Tn(e));!o||A.value||(wF&&(r=sE(o,"touchmove",g=>{ziA(g)},{passive:!1})),o.style.overflow="hidden",A.value=!0)},i=()=>{var o;const g=Hp(Tn(e));!g||!A.value||(wF&&r?.(),g.style.overflow=(o=Ld.get(g))!=null?o:"",Ld.delete(g),A.value=!1)};return OQ(i),W({get(){return A.value},set(o){o?n():i()}})}function Fs(e,t,A,r={}){var n,i,o;const{clone:g=!1,passive:a=!1,eventName:s,deep:C=!1,defaultValue:I,shouldEmit:l}=r,u=Aa(),c=A||u?.emit||((n=u?.$emit)==null?void 0:n.bind(u))||((o=(i=u?.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(u?.proxy));let h=s;t||(t="modelValue"),h=h||`update:${t.toString()}`;const d=E=>g?typeof g=="function"?g(E):OiA(E):E,B=()=>viA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=_(E);let p=!1;return Ae(()=>e[t],D=>{p||(p=!0,v.value=d(D),cr(()=>p=!1))}),Ae(v,D=>{!p&&(D!==e[t]||C)&&f(D)},{deep:C}),v}else return W({get(){return B()},set(E){f(E)}})}const qiA={class:"$ui-dark-toggle-vtr"},Q_=DA({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(e){const t=e,A=Fs(t,"isDark"),r=_iA({initialValue:A.value?"dark":"light",onChanged:g=>{A.value=g==="dark"}}),n=W({get:()=>r.value==="dark",set:g=>r.value=g?"dark":"light"}),i=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(g){if(!i||!g||!t.animation){n.value=!n.value;return}const a=g.clientX,s=g.clientY,C=Math.hypot(Math.max(a,innerWidth-a),Math.max(s,innerHeight-s));document.startViewTransition(async()=>{n.value=!n.value,await cr()}).ready.then(()=>{const I=[`circle(0px at ${a}px ${s}px)`,`circle(${C}px at ${a}px ${s}px)`];document.documentElement.animate({clipPath:n.value?[...I].reverse():I},{duration:t.animationDuration,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(g,a)=>(M(),x("span",qiA,[VA(g.$slots,"default",Oc(zI({mode:Q(r),isDark:n.value,toggle:o})))]))}}),jiA={},ViA={class:"$ui-base border $ui-border-base rounded shadow-sm"};function ZiA(e,t){return M(),x("div",ViA,[VA(e.$slots,"default")])}const sf=EM(jiA,[["render",ZiA]]),vM=DA({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(e){return(t,A)=>(M(),x("div",{class:bA(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[t.dim?"bg-opacity-50!":"bg-opacity-0!",t.blur?"backdrop-blur-sm":""]])},[VA(t.$slots,"default")],2))}}),XiA={class:"h7.5 w-full $ui-fbc"},AoA={class:"text-4.5"},eoA=y("div",{class:"i-carbon-close"},null,-1),toA=[eoA],roA={class:"content transition-all transition-duration-300"},noA={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},ioA={class:"$ui-fcc"},ooA=DA({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean}},emits:["close","update:modelValue"],setup(e,{emit:t}){const A=e,r=Fs(A,"modelValue",t,{passive:!0}),n=WiA(()=>window.document.documentElement);Er(()=>{r.value?n.value=!0:n.value=!1});function i(){r.value&&A.autoClose&&(r.value=!1)}d_("Escape",()=>{i()});const o=_(!1);return vn(()=>o.value=!0),(g,a)=>o.value||g.mountTo==="body"?(M(),tA(bU,{key:0,to:g.mountTo},[T(Uc,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:U(()=>[Q(r)?(M(),tA(vM,{key:0,dim:g.dim,blur:g.blur},{default:U(()=>[y("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:Qt({width:A.width,height:A.height})},[y("div",XiA,[y("div",AoA,[VA(g.$slots,"title",{},()=>[NA(yA(A.title),1)])]),g.closable?(M(),x("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:i},toA)):pA("",!0)]),y("div",roA,[VA(g.$slots,"default")]),y("div",noA,[VA(g.$slots,"footer",{},()=>[VA(g.$slots,"footer",{},()=>[y("div",ioA,[T(ie,{type:"primary",onClick:i},{default:U(()=>[NA(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):pA("",!0)]),_:3})],8,["to"])):pA("",!0)}}),goA=["type","placeholder","disabled"],aoA={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},Up="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",bo=DA({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1},type:{default:"text"}},emits:["update:modelValue","updateFocused","keyTab"],setup(e,{emit:t}){const A=e,r=t,n=Fs(A,"modelValue",r),i=kiA(W(()=>A.loading),A.loadingDebounceTime),o=SiA(!1,{onChanged(I){r("updateFocused",I)}}),g=W(()=>A.variant==="flat"||A.variant==="warning"||A.disabled||A.readonly),a=W(()=>A.disabled||i.value),s=_();let C=!1;return Er(()=>{i.value&&o.value?C=!0:!i.value&&C&&(C=!1,cr(()=>{o.value=!0}))}),vn(()=>{A.autoFocus&&(o.value=!0)}),Er(()=>{var I;o.value&&((I=s.value)==null||I.focus())}),(I,l)=>(M(),x("div",{class:bA(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":I.variant==="flat","cursor-not-allowed opacity-50":a.value,accent:I.variant==="accent",focused:Q(o)},[I.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:l[2]||(l[2]=()=>{o.value=!0})},[I.leftIcon?(M(),x("div",{key:0,class:bA(Up)},[T(De,{icon:I.leftIcon},null,8,["icon"])])):pA("",!0),vt(y("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":l[0]||(l[0]=u=>YA(n)?n.value=u:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:I.type,placeholder:I.placeholder,disabled:a.value||I.readonly,onBlur:l[1]||(l[1]=u=>o.value=!1)},null,40,goA),[[oeA,Q(n)]]),Q(i)?(M(),x("div",{key:1,class:bA(Up)},[T(I_)])):I.rightIcon?(M(),x("div",{key:2,class:bA(Up)},[T(De,{icon:I.rightIcon},null,8,["icon"])])):pA("",!0),g.value?pA("",!0):(M(),x("div",aoA))],2))}}),soA={class:"overflow-hidden rounded-lg shadow-lg"},CoA=y("div",{class:"p2 opacity-40"}," Empty... ",-1),BI=DA({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(e){const t=e;return Io("$ui-dropdown-disabled",W(()=>t.disabled)),(A,r)=>(M(),tA(Q(siA),{disabled:A.disabled,class:"inline-block w-auto",shown:A.shown,triggers:[A.trigger],distance:A.distance+6,placement:A.placement,skidding:A.skidding,"onUpdate:shown":r[0]||(r[0]=n=>A.$emit("update:visible",n)),onClick:r[1]||(r[1]=n=>{n.stopPropagation()})},{popper:U(({hide:n})=>[y("div",soA,[VA(A.$slots,"popper",Oc(zI({hide:n})),()=>[CoA])])]),default:U(()=>[VA(A.$slots,"default",{},()=>[T(ie,Ir({...A.buttonProps,disabled:A.disabled},{class:A.buttonClass}),hU({icon:U(()=>[VA(A.$slots,"button-icon")]),"icon-right":U(()=>[VA(A.$slots,"button-icon-right")]),_:2},[A.label?{name:"default",fn:U(()=>[NA(yA(A.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),yF=DA({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(e){const t=e,A=pt("$ui-dropdown-disabled",void 0);return(r,n)=>vt((M(),tA(ie,Ir({...t,round:!1},{disabled:Q(A),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:U(()=>[VA(r.$slots,"icon")]),default:U(()=>[VA(r.$slots,"default")]),_:3},16,["disabled"])),[[Q(C_)]])}}),IoA={class:"$ui-fec gap2.5"},loA=DA({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(e,{emit:t}){const A=e,r=t,n=Fs(A,"modelValue",r);Er(()=>{n.value||r("close")});function i(o=!1){(A.autoClose||o)&&(n.value=!1)}return(o,g)=>(M(),tA(ooA,{modelValue:Q(n),"onUpdate:modelValue":g[2]||(g[2]=a=>YA(n)?n.value=a:null),width:o.width,height:o.height,title:o.title,closable:!1},{footer:U(()=>[y("div",IoA,[T(ie,{onClick:g[0]||(g[0]=()=>{r("cancel"),i(!0)})},{default:U(()=>[NA(yA(o.cancelText),1)]),_:1}),T(ie,{loading:o.loading,type:"primary",onClick:g[1]||(g[1]=()=>{r("confirm"),i()})},{default:U(()=>[NA(yA(o.confirmText),1)]),_:1},8,["loading"])])]),default:U(()=>[VA(o.$slots,"default",{class:"h-auto w-auto"},()=>[NA(yA(o.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),uoA={class:"m1 min-w-35 w-auto flex flex-col"},coA=["onClick"],hoA=y("div",{class:"i-mdi-chevron-down"},null,-1),CE=DA({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:e=>String(e)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:t}){const A=e,r=t,n=BU(),i=W({get:()=>A.modelValue,set:a=>r("update:modelValue",a)}),o=W(()=>{const a=A.options.find(s=>s.value===i.value);return a!=null&&a.label?A.labelRenderer(a.label):A.placeholder});function g(a){A.multiple?i.value=i.value.includes(a.value)?i.value.filter(s=>s!==a.value):[...i.value,a.value]:i.value=a.value}return(a,s)=>(M(),tA(BI,Ir({label:o.value},{buttonProps:a.buttonProps,disabled:a.disabled}),hU({popper:U(()=>[y("div",uoA,[Q(n).item?(M(!0),x(wA,{key:0},Be(a.options,C=>(M(),x("div",{key:C.value,class:"cursor-pointer",onClick:I=>g(C)},[VA(a.$slots,"item",Oc(zI({item:C,active:a.multiple?i.value.includes(C.value):C.value===i.value,disabled:a.disabled})))],8,coA))),128)):(M(!0),x(wA,{key:1},Be(a.options,C=>vt((M(),tA(ie,{key:C.value,disabled:a.disabled,round:"normal",class:bA(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:a.multiple?i.value.includes(C.value):C.value===i.value}]),onClick:I=>g(C)},{default:U(()=>[NA(yA(C.label),1)]),_:2},1032,["disabled","class","onClick"])),[[Q(C_),a.autoClose]])),128))])]),"button-icon-right":U(()=>[hoA]),_:2},[Q(n).button?{name:"default",fn:U(()=>[VA(a.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),mF=DA({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Fs(e,"modelValue",t),r=FiA(A);return(n,i)=>(M(),x("div",{class:bA([[n.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:i[0]||(i[0]=o=>!n.disabled&&Q(r)())},[VA(n.$slots,"default"),y("div",{class:bA([{selected:Q(A)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[y("div",{class:bA(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!n.disabled},{"opacity-65":n.disabled}]])},null,2)],2)],2))}}),bC=DA({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Fs(e,"modelValue",t);return(r,n)=>(M(),x("div",{class:bA(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[Q(A)?r.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:n[0]||(n[0]=i=>A.value=!Q(A))},[y("div",{class:bA([[Q(A)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),v_=DA({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean}},emits:["update:modelValue","close"],setup(e,{emit:t}){const A=e,r=t,{height:n}=JiA(()=>typeof A.top=="string"?document.querySelector(A.top):A.top,void 0,{box:"border-box"}),i=Fs(A,"modelValue",r),o={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};d_("Escape",()=>{A.closable&&(i.value=!1)});const g=W(()=>o[A.placement]),a=_(!1);return vn(()=>a.value=!0),(s,C)=>a.value||s.mountTo==="body"?(M(),tA(bU,{key:0,to:s.mountTo},[T(Uc,{"enter-from-class":`${g.value.transition}`,"leave-to-class":`${g.value.transition}`},{default:U(()=>[Q(i)?(M(),tA(vM,{key:0,class:bA({"pointer-events-none":s.permanent}),dim:s.dim,blur:s.blur,onClick:C[2]||(C[2]=I=>s.closeOutside&&s.closable&&(i.value=!1))},{default:U(()=>[y("div",{class:bA([[g.value.class,s.contentClass??"",s.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:Qt({top:s.placement==="bottom"?"auto":`${Q(n)}px`,height:["top","bottom"].includes(s.placement)?"auto":`calc(100% - ${Q(n)}px)`}),onClick:C[1]||(C[1]=fr(()=>{},["stop"]))},[s.closable?(M(),x("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:C[0]||(C[0]=I=>i.value=!1)})):pA("",!0),VA(s.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):pA("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):pA("",!0)}}),doA=DA({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(e){const t=e,A={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},r={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},n=_(!1);vn(()=>{n.value=!0,setTimeout(()=>{n.value=!1},t.duration)});const i=W(()=>t.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(o,g)=>(M(),x("div",{class:bA(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":o.placement.startsWith("top")},{"bottom-0":o.placement.startsWith("bottom")}]])},[T(Uc,{"enter-from-class":i.value,"leave-to-class":i.value,onAfterLeave:g[0]||(g[0]=()=>{var a;n.value||(a=o.onClose)==null||a.call(o)})},{default:U(()=>[n.value?(M(),x("div",{key:0,class:"flex transition-all duration-300",style:Qt({justifyContent:o.placement.includes("right")?"right":o.placement.includes("left")?"left":"center"})},[y("div",{class:bA(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[o.classes,r[o.type]]])},[y("div",{class:bA(A[o.type])},null,2),y("div",null,yA(o.message),1)],2)],4)):pA("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),BoA=DA({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(e){return(t,A)=>(M(),tA(Q(CiA),Ir({disabled:t.disabled,placement:t.placement},t.$attrs),{popper:U(()=>[VA(t.$slots,"popper")]),default:U(()=>[VA(t.$slots,"default")]),_:3},16,["disabled","placement"]))}});function i0(e){const t=document.createElement("div");t.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(t);const A=e.onClose;function r(){fP(null,t)}e.onClose=()=>{r(),A?.(),document.body.removeChild(t)};const n=WI(doA,e);fP(n,t)}function Mo(e){return Array.isArray?Array.isArray(e):D_(e)==="[object Array]"}const foA=1/0;function EoA(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-foA?"-0":t}function QoA(e){return e==null?"":EoA(e)}function Fi(e){return typeof e=="string"}function p_(e){return typeof e=="number"}function voA(e){return e===!0||e===!1||poA(e)&&D_(e)=="[object Boolean]"}function w_(e){return typeof e=="object"}function poA(e){return w_(e)&&e!==null}function cn(e){return e!=null}function Kp(e){return!e.trim().length}function D_(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const woA="Incorrect 'index' type",DoA=e=>`Invalid value for key ${e}`,yoA=e=>`Pattern length exceeds max of ${e}.`,moA=e=>`Missing ${e} property in key`,boA=e=>`Property 'weight' in key '${e}' must be a positive integer`,bF=Object.prototype.hasOwnProperty;class MoA{constructor(t){this._keys=[],this._keyMap={};let A=0;t.forEach(r=>{let n=y_(r);this._keys.push(n),this._keyMap[n.id]=n,A+=n.weight}),this._keys.forEach(r=>{r.weight/=A})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function y_(e){let t=null,A=null,r=null,n=1,i=null;if(Fi(e)||Mo(e))r=e,t=MF(e),A=o0(e);else{if(!bF.call(e,"name"))throw new Error(moA("name"));const o=e.name;if(r=o,bF.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(boA(o));t=MF(o),A=o0(o),i=e.getFn}return{path:t,id:A,weight:n,src:r,getFn:i}}function MF(e){return Mo(e)?e:e.split(".")}function o0(e){return Mo(e)?e.join("."):e}function koA(e,t){let A=[],r=!1;const n=(i,o,g)=>{if(cn(i))if(!o[g])A.push(i);else{let a=o[g];const s=i[a];if(!cn(s))return;if(g===o.length-1&&(Fi(s)||p_(s)||voA(s)))A.push(QoA(s));else if(Mo(s)){r=!0;for(let C=0,I=s.length;C<I;C+=1)n(s[C],o,g+1)}else o.length&&n(s,o,g+1)}};return n(e,Fi(t)?t.split("."):t,0),r?A:A[0]}const SoA={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},NoA={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},PoA={location:0,threshold:.6,distance:100},FoA={useExtendedSearch:!1,getFn:koA,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ee={...NoA,...SoA,...PoA,...FoA};const RoA=/[^ ]+/g;function LoA(e=1,t=3){const A=new Map,r=Math.pow(10,t);return{get(n){const i=n.match(RoA).length;if(A.has(i))return A.get(i);const o=1/Math.pow(i,.5*e),g=parseFloat(Math.round(o*r)/r);return A.set(i,g),g},clear(){A.clear()}}}class pM{constructor({getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){this.norm=LoA(A,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((A,r)=>{this._keysMap[A.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Fi(this.docs[0])?this.docs.forEach((t,A)=>{this._addString(t,A)}):this.docs.forEach((t,A)=>{this._addObject(t,A)}),this.norm.clear())}add(t){const A=this.size();Fi(t)?this._addString(t,A):this._addObject(t,A)}removeAt(t){this.records.splice(t,1);for(let A=t,r=this.size();A<r;A+=1)this.records[A].i-=1}getValueForItemAtKeyId(t,A){return t[this._keysMap[A]]}size(){return this.records.length}_addString(t,A){if(!cn(t)||Kp(t))return;let r={v:t,i:A,n:this.norm.get(t)};this.records.push(r)}_addObject(t,A){let r={i:A,$:{}};this.keys.forEach((n,i)=>{let o=n.getFn?n.getFn(t):this.getFn(t,n.path);if(cn(o)){if(Mo(o)){let g=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:s,value:C}=a.pop();if(cn(C))if(Fi(C)&&!Kp(C)){let I={v:C,i:s,n:this.norm.get(C)};g.push(I)}else Mo(C)&&C.forEach((I,l)=>{a.push({nestedArrIndex:l,value:I})})}r.$[i]=g}else if(Fi(o)&&!Kp(o)){let g={v:o,n:this.norm.get(o)};r.$[i]=g}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function m_(e,t,{getFn:A=ee.getFn,fieldNormWeight:r=ee.fieldNormWeight}={}){const n=new pM({getFn:A,fieldNormWeight:r});return n.setKeys(e.map(y_)),n.setSources(t),n.create(),n}function $oA(e,{getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){const{keys:r,records:n}=e,i=new pM({getFn:t,fieldNormWeight:A});return i.setKeys(r),i.setIndexRecords(n),i}function $d(e,{errors:t=0,currentLocation:A=0,expectedLocation:r=0,distance:n=ee.distance,ignoreLocation:i=ee.ignoreLocation}={}){const o=t/e.length;if(i)return o;const g=Math.abs(r-A);return n?o+g/n:g?1:o}function OoA(e=[],t=ee.minMatchCharLength){let A=[],r=-1,n=-1,i=0;for(let o=e.length;i<o;i+=1){let g=e[i];g&&r===-1?r=i:!g&&r!==-1&&(n=i-1,n-r+1>=t&&A.push([r,n]),r=-1)}return e[i-1]&&i-r>=t&&A.push([r,i-1]),A}const $a=32;function GoA(e,t,A,{location:r=ee.location,distance:n=ee.distance,threshold:i=ee.threshold,findAllMatches:o=ee.findAllMatches,minMatchCharLength:g=ee.minMatchCharLength,includeMatches:a=ee.includeMatches,ignoreLocation:s=ee.ignoreLocation}={}){if(t.length>$a)throw new Error(yoA($a));const C=t.length,I=e.length,l=Math.max(0,Math.min(r,I));let u=i,c=l;const h=g>1||a,d=h?Array(I):[];let B;for(;(B=e.indexOf(t,c))>-1;){let F=$d(t,{currentLocation:B,expectedLocation:l,distance:n,ignoreLocation:s});if(u=Math.min(F,u),c=B+C,h){let N=0;for(;N<C;)d[B+N]=1,N+=1}}c=-1;let f=[],E=1,v=C+I;const p=1<<C-1;for(let F=0;F<C;F+=1){let N=0,S=v;for(;N<S;)$d(t,{errors:F,currentLocation:l+S,expectedLocation:l,distance:n,ignoreLocation:s})<=u?N=S:v=S,S=Math.floor((v-N)/2+N);v=S;let m=Math.max(1,l-S+1),R=o?I:Math.min(l+S,I)+C,k=Array(R+2);k[R+1]=(1<<F)-1;for(let H=R;H>=m;H-=1){let X=H-1,q=A[e.charAt(X)];if(h&&(d[X]=+!!q),k[H]=(k[H+1]<<1|1)&q,F&&(k[H]|=(f[H+1]|f[H])<<1|1|f[H+1]),k[H]&p&&(E=$d(t,{errors:F,currentLocation:X,expectedLocation:l,distance:n,ignoreLocation:s}),E<=u)){if(u=E,c=X,c<=l)break;m=Math.max(1,2*l-c)}}if($d(t,{errors:F+1,currentLocation:l,expectedLocation:l,distance:n,ignoreLocation:s})>u)break;f=k}const D={isMatch:c>=0,score:Math.max(.001,E)};if(h){const F=OoA(d,g);F.length?a&&(D.indices=F):D.isMatch=!1}return D}function xoA(e){let t={};for(let A=0,r=e.length;A<r;A+=1){const n=e.charAt(A);t[n]=(t[n]||0)|1<<r-A-1}return t}class b_{constructor(t,{location:A=ee.location,threshold:r=ee.threshold,distance:n=ee.distance,includeMatches:i=ee.includeMatches,findAllMatches:o=ee.findAllMatches,minMatchCharLength:g=ee.minMatchCharLength,isCaseSensitive:a=ee.isCaseSensitive,ignoreLocation:s=ee.ignoreLocation}={}){if(this.options={location:A,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:g,isCaseSensitive:a,ignoreLocation:s},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const C=(l,u)=>{this.chunks.push({pattern:l,alphabet:xoA(l),startIndex:u})},I=this.pattern.length;if(I>$a){let l=0;const u=I%$a,c=I-u;for(;l<c;)C(this.pattern.substr(l,$a),l),l+=$a;if(u){const h=I-$a;C(this.pattern.substr(h),h)}}else C(this.pattern,0)}searchIn(t){const{isCaseSensitive:A,includeMatches:r}=this.options;if(A||(t=t.toLowerCase()),this.pattern===t){let c={isMatch:!0,score:0};return r&&(c.indices=[[0,t.length-1]]),c}const{location:n,distance:i,threshold:o,findAllMatches:g,minMatchCharLength:a,ignoreLocation:s}=this.options;let C=[],I=0,l=!1;this.chunks.forEach(({pattern:c,alphabet:h,startIndex:d})=>{const{isMatch:B,score:f,indices:E}=GoA(t,c,h,{location:n+d,distance:i,threshold:o,findAllMatches:g,minMatchCharLength:a,includeMatches:r,ignoreLocation:s});B&&(l=!0),I+=f,B&&E&&(C=[...C,...E])});let u={isMatch:l,score:l?I/this.chunks.length:1};return l&&r&&(u.indices=C),u}}class ta{constructor(t){this.pattern=t}static isMultiMatch(t){return kF(t,this.multiRegex)}static isSingleMatch(t){return kF(t,this.singleRegex)}search(){}}function kF(e,t){const A=e.match(t);return A?A[1]:null}class ToA extends ta{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const A=t===this.pattern;return{isMatch:A,score:A?0:1,indices:[0,this.pattern.length-1]}}}class HoA extends ta{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class UoA extends ta{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const A=t.startsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[0,this.pattern.length-1]}}}class KoA extends ta{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const A=!t.startsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[0,t.length-1]}}}class _oA extends ta{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const A=t.endsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class YoA extends ta{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const A=!t.endsWith(this.pattern);return{isMatch:A,score:A?0:1,indices:[0,t.length-1]}}}class M_ extends ta{constructor(t,{location:A=ee.location,threshold:r=ee.threshold,distance:n=ee.distance,includeMatches:i=ee.includeMatches,findAllMatches:o=ee.findAllMatches,minMatchCharLength:g=ee.minMatchCharLength,isCaseSensitive:a=ee.isCaseSensitive,ignoreLocation:s=ee.ignoreLocation}={}){super(t),this._bitapSearch=new b_(t,{location:A,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:g,isCaseSensitive:a,ignoreLocation:s})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class k_ extends ta{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let A=0,r;const n=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,A))>-1;)A=r+i,n.push([r,A-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const g0=[ToA,k_,UoA,KoA,YoA,_oA,HoA,M_],SF=g0.length,JoA=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,zoA="|";function WoA(e,t={}){return e.split(zoA).map(A=>{let r=A.trim().split(JoA).filter(i=>i&&!!i.trim()),n=[];for(let i=0,o=r.length;i<o;i+=1){const g=r[i];let a=!1,s=-1;for(;!a&&++s<SF;){const C=g0[s];let I=C.isMultiMatch(g);I&&(n.push(new C(I,t)),a=!0)}if(!a)for(s=-1;++s<SF;){const C=g0[s];let I=C.isSingleMatch(g);if(I){n.push(new C(I,t));break}}}return n})}const qoA=new Set([M_.type,k_.type]);class joA{constructor(t,{isCaseSensitive:A=ee.isCaseSensitive,includeMatches:r=ee.includeMatches,minMatchCharLength:n=ee.minMatchCharLength,ignoreLocation:i=ee.ignoreLocation,findAllMatches:o=ee.findAllMatches,location:g=ee.location,threshold:a=ee.threshold,distance:s=ee.distance}={}){this.query=null,this.options={isCaseSensitive:A,includeMatches:r,minMatchCharLength:n,findAllMatches:o,ignoreLocation:i,location:g,threshold:a,distance:s},this.pattern=A?t:t.toLowerCase(),this.query=WoA(this.pattern,this.options)}static condition(t,A){return A.useExtendedSearch}searchIn(t){const A=this.query;if(!A)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let i=0,o=[],g=0;for(let a=0,s=A.length;a<s;a+=1){const C=A[a];o.length=0,i=0;for(let I=0,l=C.length;I<l;I+=1){const u=C[I],{isMatch:c,indices:h,score:d}=u.search(t);if(c){if(i+=1,g+=d,r){const B=u.constructor.type;qoA.has(B)?o=[...o,...h]:o.push(h)}}else{g=0,i=0,o.length=0;break}}if(i){let I={isMatch:!0,score:g/i};return r&&(I.indices=o),I}}return{isMatch:!1,score:1}}}const a0=[];function VoA(...e){a0.push(...e)}function s0(e,t){for(let A=0,r=a0.length;A<r;A+=1){let n=a0[A];if(n.condition(e,t))return new n(e,t)}return new b_(e,t)}const IE={AND:"$and",OR:"$or"},C0={PATH:"$path",PATTERN:"$val"},I0=e=>!!(e[IE.AND]||e[IE.OR]),ZoA=e=>!!e[C0.PATH],XoA=e=>!Mo(e)&&w_(e)&&!I0(e),NF=e=>({[IE.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function S_(e,t,{auto:A=!0}={}){const r=n=>{let i=Object.keys(n);const o=ZoA(n);if(!o&&i.length>1&&!I0(n))return r(NF(n));if(XoA(n)){const a=o?n[C0.PATH]:i[0],s=o?n[C0.PATTERN]:n[a];if(!Fi(s))throw new Error(DoA(a));const C={keyId:o0(a),pattern:s};return A&&(C.searcher=s0(s,t)),C}let g={children:[],operator:i[0]};return i.forEach(a=>{const s=n[a];Mo(s)&&s.forEach(C=>{g.children.push(r(C))})}),g};return I0(e)||(e=NF(e)),r(e)}function AgA(e,{ignoreFieldNorm:t=ee.ignoreFieldNorm}){e.forEach(A=>{let r=1;A.matches.forEach(({key:n,norm:i,score:o})=>{const g=n?n.weight:null;r*=Math.pow(o===0&&g?Number.EPSILON:o,(g||1)*(t?1:i))}),A.score=r})}function egA(e,t){const A=e.matches;t.matches=[],cn(A)&&A.forEach(r=>{if(!cn(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let o={indices:n,value:i};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),t.matches.push(o)})}function tgA(e,t){t.score=e.score}function rgA(e,t,{includeMatches:A=ee.includeMatches,includeScore:r=ee.includeScore}={}){const n=[];return A&&n.push(egA),r&&n.push(tgA),e.map(i=>{const{idx:o}=i,g={item:t[o],refIndex:o};return n.length&&n.forEach(a=>{a(i,g)}),g})}class Rs{constructor(t,A={},r){this.options={...ee,...A},this.options.useExtendedSearch,this._keyStore=new MoA(this.options.keys),this.setCollection(t,r)}setCollection(t,A){if(this._docs=t,A&&!(A instanceof pM))throw new Error(woA);this._myIndex=A||m_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){cn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const A=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,n-=1,A.push(i))}return A}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:A=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:o,ignoreFieldNorm:g}=this.options;let a=Fi(t)?Fi(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return AgA(a,{ignoreFieldNorm:g}),i&&a.sort(o),p_(A)&&A>-1&&(a=a.slice(0,A)),rgA(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(t){const A=s0(t,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:o,n:g})=>{if(!cn(i))return;const{isMatch:a,score:s,indices:C}=A.searchIn(i);a&&n.push({item:i,idx:o,matches:[{score:s,value:i,norm:g,indices:C}]})}),n}_searchLogical(t){const A=S_(t,this.options),r=(g,a,s)=>{if(!g.children){const{keyId:I,searcher:l}=g,u=this._findMatches({key:this._keyStore.get(I),value:this._myIndex.getValueForItemAtKeyId(a,I),searcher:l});return u&&u.length?[{idx:s,item:a,matches:u}]:[]}const C=[];for(let I=0,l=g.children.length;I<l;I+=1){const u=g.children[I],c=r(u,a,s);if(c.length)C.push(...c);else if(g.operator===IE.AND)return[]}return C},n=this._myIndex.records,i={},o=[];return n.forEach(({$:g,i:a})=>{if(cn(g)){let s=r(A,g,a);s.length&&(i[a]||(i[a]={idx:a,item:g,matches:[]},o.push(i[a])),s.forEach(({matches:C})=>{i[a].matches.push(...C)}))}}),o}_searchObjectList(t){const A=s0(t,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:o,i:g})=>{if(!cn(o))return;let a=[];r.forEach((s,C)=>{a.push(...this._findMatches({key:s,value:o[C],searcher:A}))}),a.length&&i.push({idx:g,item:o,matches:a})}),i}_findMatches({key:t,value:A,searcher:r}){if(!cn(A))return[];let n=[];if(Mo(A))A.forEach(({v:i,i:o,n:g})=>{if(!cn(i))return;const{isMatch:a,score:s,indices:C}=r.searchIn(i);a&&n.push({score:s,key:t,value:i,idx:o,norm:g,indices:C})});else{const{v:i,n:o}=A,{isMatch:g,score:a,indices:s}=r.searchIn(i);g&&n.push({score:a,key:t,value:i,norm:o,indices:s})}return n}}Rs.version="7.0.0";Rs.createIndex=m_;Rs.parseIndex=$oA;Rs.config=ee;Rs.parseQuery=S_;VoA(joA);const ngA=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"},{icon:"i-icon-park-outline:vertical-timeline",name:"timeline",order:-100,path:"timeline",title:"Timeline"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-logos-pinia",name:"pinia",order:-100,path:"pinia",title:"Pinia"},{icon:"i-carbon-language",name:"i18n",order:-100,path:"i18n",title:"I18n Resources"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],N_=["assets","graph","vite-inspect"],PF={pinia:"pinia",router:"vueRouter",i18n:"vueI18n"};function igA(e,t){const A=t.name;return A in PF&&e[PF[A]]}function ogA(e,t){const A=Kf(ngA);return A.forEach(r=>{r[0]==="modules"&&(r[1]=r[1].filter(n=>t?igA(t,n):!0))}),e&&!F1?A:A.map(([r,n])=>[r,n.filter(i=>!N_.includes(i.name))])}const P_=Zi([]),F_=_(null),ggA=W(()=>P_.value.find(e=>e.id===F_.value));function qi(e){return x1()?(G4(e),!0):!1}function It(e){return typeof e=="function"?e():Q(e)}const Is=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const agA=e=>typeof e<"u",sgA=e=>e!=null,CgA=Object.prototype.toString,IgA=e=>CgA.call(e)==="[object Object]",lo=()=>{},lgA=ugA();function ugA(){var e,t;return Is&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function cgA(e,t){function A(...r){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(n).catch(i)})}return A}const R_=e=>e();function hgA(e,t={}){let A,r,n=lo;const i=g=>{clearTimeout(g),n(),n=lo};return g=>{const a=It(e),s=It(t.maxWait);return A&&i(A),a<=0||s!==void 0&&s<=0?(r&&(i(r),r=null),Promise.resolve(g())):new Promise((C,I)=>{n=t.rejectOnCancel?I:C,s&&!r&&(r=setTimeout(()=>{A&&i(A),r=null,C(g())},s)),A=setTimeout(()=>{r&&i(r),r=null,C(g())},a)})}}function dgA(e=R_){const t=_(!0);function A(){t.value=!1}function r(){t.value=!0}const n=(...i)=>{t.value&&e(...i)};return{isActive:Lo(t),pause:A,resume:r,eventFilter:n}}function FF(e,t=!1,A="Timeout"){return new Promise((r,n)=>{setTimeout(t?()=>n(A):r,e)})}function BgA(e){let t;function A(){return t||(t=e()),t}return A.reset=async()=>{const r=t;t=void 0,r&&await r},A}function fgA(e){return e||Aa()}function EgA(...e){if(e.length!==1)return AU(...e);const t=e[0];return typeof t=="function"?Lo(j1(()=>({get:t,set:lo}))):_(t)}function L_(e,t,A={}){const{eventFilter:r=R_,...n}=A;return Ae(e,cgA(r,t),n)}function QgA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=dgA(r);return{stop:L_(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function qc(e,t=!0,A){fgA()?vn(e,A):t?e():cr(e)}function l0(e,t=!1){function A(I,{flush:l="sync",deep:u=!1,timeout:c,throwOnTimeout:h}={}){let d=null;const f=[new Promise(E=>{d=Ae(e,v=>{I(v)!==t&&(d?.(),E(v))},{flush:l,deep:u,immediate:!0})})];return c!=null&&f.push(FF(c,h).then(()=>It(e)).finally(()=>d?.())),Promise.race(f)}function r(I,l){if(!YA(I))return A(v=>v===I,l);const{flush:u="sync",deep:c=!1,timeout:h,throwOnTimeout:d}=l??{};let B=null;const E=[new Promise(v=>{B=Ae([e,I],([p,D])=>{t!==(p===D)&&(B?.(),v(p))},{flush:u,deep:c,immediate:!0})})];return h!=null&&E.push(FF(h,d).then(()=>It(e)).finally(()=>(B?.(),It(e)))),Promise.race(E)}function n(I){return A(l=>!!l,I)}function i(I){return r(null,I)}function o(I){return r(void 0,I)}function g(I){return A(Number.isNaN,I)}function a(I,l){return A(u=>{const c=Array.from(u);return c.includes(I)||c.includes(It(I))},l)}function s(I){return C(1,I)}function C(I=1,l){let u=-1;return A(()=>(u+=1,u>=I),l)}return Array.isArray(It(e))?{toMatch:A,toContains:a,changed:s,changedTimes:C,get not(){return l0(e,!t)}}:{toMatch:A,toBe:r,toBeTruthy:n,toBeNull:i,toBeNaN:g,toBeUndefined:o,changed:s,changedTimes:C,get not(){return l0(e,!t)}}}function vgA(e){return l0(e)}function pgA(e,t=1e3,A={}){const{immediate:r=!0,immediateCallback:n=!1}=A;let i=null;const o=_(!1);function g(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,g()}function s(){const C=It(t);C<=0||(o.value=!0,n&&e(),g(),i=setInterval(e,C))}if(r&&Is&&s(),YA(t)||typeof t=="function"){const C=Ae(t,()=>{o.value&&Is&&s()});qi(C)}return qi(a),{isActive:o,pause:a,resume:s}}function wgA(e,t,A={}){const{immediate:r=!0}=A,n=_(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function g(){n.value=!1,o()}function a(...s){o(),n.value=!0,i=setTimeout(()=>{n.value=!1,i=null,e(...s)},It(t))}return r&&(n.value=!0,Is&&a()),qi(g),{isPending:Lo(n),start:a,stop:g}}function wM(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=YA(e),i=_(e);function o(g){if(arguments.length)return i.value=g,i.value;{const a=It(A);return i.value=i.value===a?It(r):a,i.value}}return n?o:[i,o]}function DM(e,t,A={}){const{debounce:r=0,maxWait:n=void 0,...i}=A;return L_(e,t,{...i,eventFilter:hgA(r,{maxWait:n})})}function $_(e,t,A){const r=Ae(e,(...n)=>(cr(()=>r()),t(...n)),A);return r}function RF(e,t,A){let r;YA(A)?r={evaluating:A}:r=A||{};const{lazy:n=!1,evaluating:i=void 0,shallow:o=!0,onError:g=lo}=r,a=_(!n),s=o?Zi(t):_(t);let C=0;return Er(async I=>{if(!a.value)return;C++;const l=C;let u=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const c=await e(h=>{I(()=>{i&&(i.value=!1),u||h()})});l===C&&(s.value=c)}catch(c){g(c)}finally{i&&l===C&&(i.value=!1),u=!0}}),n?W(()=>(a.value=!0,s.value)):s}function gi(e){var t;const A=It(e);return(t=A?.$el)!=null?t:A}const Qn=Is?window:void 0,DgA=Is?window.document:void 0,O_=Is?window.navigator:void 0;function Zt(...e){let t,A,r,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([A,r,n]=e,t=Qn):[t,A,r,n]=e,!t)return lo;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(C=>C()),i.length=0},g=(C,I,l,u)=>(C.addEventListener(I,l,u),()=>C.removeEventListener(I,l,u)),a=Ae(()=>[gi(t),It(n)],([C,I])=>{if(o(),!C)return;const l=IgA(I)?{...I}:I;i.push(...A.flatMap(u=>r.map(c=>g(C,u,c,l))))},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return qi(s),s}let LF=!1;function ygA(e,t,A={}){const{window:r=Qn,ignore:n=[],capture:i=!0,detectIframe:o=!1}=A;if(!r)return lo;lgA&&!LF&&(LF=!0,Array.from(r.document.body.children).forEach(l=>l.addEventListener("click",lo)),r.document.documentElement.addEventListener("click",lo));let g=!0;const a=l=>n.some(u=>{if(typeof u=="string")return Array.from(r.document.querySelectorAll(u)).some(c=>c===l.target||l.composedPath().includes(c));{const c=gi(u);return c&&(l.target===c||l.composedPath().includes(c))}}),C=[Zt(r,"click",l=>{const u=gi(e);if(!(!u||u===l.target||l.composedPath().includes(u))){if(l.detail===0&&(g=!a(l)),!g){g=!0;return}t(l)}},{passive:!0,capture:i}),Zt(r,"pointerdown",l=>{const u=gi(e);g=!a(l)&&!!(u&&!l.composedPath().includes(u))},{passive:!0}),o&&Zt(r,"blur",l=>{setTimeout(()=>{var u;const c=gi(e);((u=r.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!c?.contains(r.document.activeElement)&&t(l)},0)})].filter(Boolean);return()=>C.forEach(l=>l())}function mgA(){const e=_(!1),t=Aa();return t&&vn(()=>{e.value=!0},t),e}function ZI(e){const t=mgA();return W(()=>(t.value,!!e()))}function bgA(e,t={}){const{immediate:A=!0,fpsLimit:r=void 0,window:n=Qn}=t,i=_(!1),o=r?1e3/r:null;let g=0,a=null;function s(l){if(!i.value||!n)return;g||(g=l);const u=l-g;if(o&&u<o){a=n.requestAnimationFrame(s);return}g=l,e({delta:u,timestamp:l}),a=n.requestAnimationFrame(s)}function C(){!i.value&&n&&(i.value=!0,g=0,a=n.requestAnimationFrame(s))}function I(){i.value=!1,a!=null&&n&&(n.cancelAnimationFrame(a),a=null)}return A&&C(),qi(I),{isActive:Lo(i),pause:I,resume:C}}function G_(e,t={}){const{window:A=Qn}=t,r=ZI(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=_(!1),o=s=>{i.value=s.matches},g=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",o):n.removeListener(o))},a=Er(()=>{r.value&&(g(),n=A.matchMedia(It(e)),"addEventListener"in n?n.addEventListener("change",o):n.addListener(o),i.value=n.matches)});return qi(()=>{a(),g(),n=void 0}),i}function $F(e,t={}){const{controls:A=!1,navigator:r=O_}=t,n=ZI(()=>r&&"permissions"in r);let i;const o=typeof e=="string"?{name:e}:e,g=_(),a=()=>{i&&(g.value=i.state)},s=BgA(async()=>{if(n.value){if(!i)try{i=await r.permissions.query(o),Zt(i,"change",a),a()}catch{g.value="prompt"}return i}});return s(),A?{state:g,isSupported:n,query:s}:g}function yM(e={}){const{navigator:t=O_,read:A=!1,source:r,copiedDuring:n=1500,legacy:i=!1}=e,o=ZI(()=>t&&"clipboard"in t),g=$F("clipboard-read"),a=$F("clipboard-write"),s=W(()=>o.value||i),C=_(""),I=_(!1),l=wgA(()=>I.value=!1,n);function u(){o.value&&B(g.value)?t.clipboard.readText().then(f=>{C.value=f}):C.value=d()}s.value&&A&&Zt(["copy","cut"],u);async function c(f=It(r)){s.value&&f!=null&&(o.value&&B(a.value)?await t.clipboard.writeText(f):h(f),C.value=f,I.value=!0,l.start())}function h(f){const E=document.createElement("textarea");E.value=f??"",E.style.position="absolute",E.style.opacity="0",document.body.appendChild(E),E.select(),document.execCommand("copy"),E.remove()}function d(){var f,E,v;return(v=(E=(f=document?.getSelection)==null?void 0:f.call(document))==null?void 0:E.toString())!=null?v:""}function B(f){return f==="granted"||f==="prompt"}return{isSupported:s,text:C,copied:I,copy:c}}function MgA(e){return JSON.parse(JSON.stringify(e))}const Od=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gd="__vueuse_ssr_handlers__",kgA=SgA();function SgA(){return Gd in Od||(Od[Gd]=Od[Gd]||{}),Od[Gd]}function x_(e,t){return kgA[e]||t}function NgA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const PgA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},OF="vueuse-storage";function T_(e,t,A,r={}){var n;const{flush:i="pre",deep:o=!0,listenToStorageChanges:g=!0,writeDefaults:a=!0,mergeDefaults:s=!1,shallow:C,window:I=Qn,eventFilter:l,onError:u=m=>{console.error(m)},initOnMounted:c}=r,h=(C?Zi:_)(typeof t=="function"?t():t);if(!A)try{A=x_("getDefaultStorage",()=>{var m;return(m=Qn)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=It(t),B=NgA(d),f=(n=r.serializer)!=null?n:PgA[B],{pause:E,resume:v}=QgA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&qc(()=>{Zt(I,"storage",N),Zt(I,OF,S),c&&N()}),c||N();function p(m,R){I&&I.dispatchEvent(new CustomEvent(OF,{detail:{key:e,oldValue:m,newValue:R,storageArea:A}}))}function D(m){try{const R=A.getItem(e);if(m==null)p(R,null),A.removeItem(e);else{const k=f.write(m);R!==k&&(A.setItem(e,k),p(R,k))}}catch(R){u(R)}}function F(m){const R=m?m.newValue:A.getItem(e);if(R==null)return a&&d!=null&&A.setItem(e,f.write(d)),d;if(!m&&s){const k=f.read(R);return typeof s=="function"?s(k,d):B==="object"&&!Array.isArray(k)?{...d,...k}:k}else return typeof R!="string"?R:f.read(R)}function N(m){if(!(m&&m.storageArea!==A)){if(m&&m.key==null){h.value=d;return}if(!(m&&m.key!==e)){E();try{m?.newValue!==f.write(h.value)&&(h.value=F(m))}catch(R){u(R)}finally{m?cr(v):v()}}}}function S(m){N(m.detail)}return h}function H_(e){return G_("(prefers-color-scheme: dark)",e)}function GQ(e={}){const{selector:t="html",attribute:A="class",initialValue:r="auto",window:n=Qn,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:a,emitAuto:s,disableTransition:C=!0}=e,I={auto:"",light:"light",dark:"dark",...e.modes||{}},l=H_({window:n}),u=W(()=>l.value?"dark":"light"),c=a||(o==null?EgA(r):T_(o,r,i,{window:n,listenToStorageChanges:g})),h=W(()=>c.value==="auto"?u.value:c.value),d=x_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):gi(v);if(!F)return;let N;if(C){N=n.document.createElement("style");const S="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";N.appendChild(document.createTextNode(S)),n.document.head.appendChild(N)}if(p==="class"){const S=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{S.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(N).opacity,document.head.removeChild(N))});function B(v){var p;d(t,A,(p=I[v])!=null?p:v)}function f(v){e.onChanged?e.onChanged(v,B):B(v)}Ae(h,f,{flush:"post",immediate:!0}),qc(()=>f(h.value));const E=W({get(){return s?c.value:h.value},set(v){c.value=v}});try{return Object.assign(E,{store:c,system:u,state:h})}catch{return E}}function FgA(e,t,A={}){const{window:r=Qn,...n}=A;let i;const o=ZI(()=>r&&"MutationObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=W(()=>{const l=It(e),u=(Array.isArray(l)?l:[l]).map(gi).filter(sgA);return new Set(u)}),s=Ae(()=>a.value,l=>{g(),o.value&&r&&l.size&&(i=new MutationObserver(t),l.forEach(u=>i.observe(u,n)))},{immediate:!0,flush:"post"}),C=()=>i?.takeRecords(),I=()=>{g(),s()};return qi(I),{isSupported:o,stop:I,takeRecords:C}}function RgA(e={}){const{valueDark:t="dark",valueLight:A="",window:r=Qn}=e,n=GQ({...e,onChanged:(g,a)=>{var s;e.onChanged?(s=e.onChanged)==null||s.call(e,g==="dark",a,g):a(g)},modes:{dark:t,light:A}}),i=W(()=>n.system?n.system.value:H_({window:r}).value?"dark":"light");return W({get(){return n.value==="dark"},set(g){const a=g?"dark":"light";i.value===a?n.value="auto":n.value=a}})}function LgA(e,t,A={}){const{window:r=Qn,...n}=A;let i;const o=ZI(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=W(()=>Array.isArray(e)?e.map(I=>gi(I)):[gi(e)]),s=Ae(a,I=>{if(g(),o.value&&r){i=new ResizeObserver(t);for(const l of I)l&&i.observe(l,n)}},{immediate:!0,flush:"post"}),C=()=>{g(),s()};return qi(C),{isSupported:o,stop:C}}function $gA(e,t={}){const{reset:A=!0,windowResize:r=!0,windowScroll:n=!0,immediate:i=!0}=t,o=_(0),g=_(0),a=_(0),s=_(0),C=_(0),I=_(0),l=_(0),u=_(0);function c(){const h=gi(e);if(!h){A&&(o.value=0,g.value=0,a.value=0,s.value=0,C.value=0,I.value=0,l.value=0,u.value=0);return}const d=h.getBoundingClientRect();o.value=d.height,g.value=d.bottom,a.value=d.left,s.value=d.right,C.value=d.top,I.value=d.width,l.value=d.x,u.value=d.y}return LgA(e,c),Ae(()=>gi(e),h=>!h&&c()),FgA(e,c,{attributeFilter:["style","class"]}),n&&Zt("scroll",c,{capture:!0,passive:!0}),r&&Zt("resize",c,{passive:!0}),qc(()=>{i&&c()}),{height:o,bottom:g,left:a,right:s,top:C,width:I,x:l,y:u,update:c}}function OgA(e={}){const{initialValue:t=""}=e,A=ZI(()=>typeof window<"u"&&"EyeDropper"in window),r=_(t);async function n(i){if(!A.value)return;const g=await new window.EyeDropper().open(i);return r.value=g.sRGBHex,g}return{isSupported:A,sRGBHex:r,open:n}}function GgA(e,t,A={}){const{window:r=Qn}=A;return T_(e,t,r?.localStorage,A)}const xgA={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function TgA(e={}){const{reactive:t=!1,target:A=Qn,aliasMap:r=xgA,passive:n=!0,onEventFired:i=lo}=e,o=Ug(new Set),g={toJSON(){return{}},current:o},a=t?Ug(g):g,s=new Set,C=new Set;function I(h,d){h in a&&(t?a[h]=d:a[h].value=d)}function l(){o.clear();for(const h of C)I(h,!1)}function u(h,d){var B,f;const E=(B=h.key)==null?void 0:B.toLowerCase(),p=[(f=h.code)==null?void 0:f.toLowerCase(),E].filter(Boolean);E&&(d?o.add(E):o.delete(E));for(const D of p)C.add(D),I(D,d);E==="meta"&&!d?(s.forEach(D=>{o.delete(D),I(D,!1)}),s.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&d&&[...o,...p].forEach(D=>s.add(D))}Zt(A,"keydown",h=>(u(h,!0),i(h)),{passive:n}),Zt(A,"keyup",h=>(u(h,!1),i(h)),{passive:n}),Zt("blur",l,{passive:!0}),Zt("focus",l,{passive:!0});const c=new Proxy(a,{get(h,d,B){if(typeof d!="string")return Reflect.get(h,d,B);if(d=d.toLowerCase(),d in r&&(d=r[d]),!(d in a))if(/[+_-]/.test(d)){const E=d.split(/[+_-]/g).map(v=>v.trim());a[d]=W(()=>E.every(v=>It(c[v])))}else a[d]=_(!1);const f=Reflect.get(h,d,B);return t?It(f):f}});return c}function HgA(e={}){const{controls:t=!1,interval:A="requestAnimationFrame"}=e,r=_(new Date),n=()=>r.value=new Date,i=A==="requestAnimationFrame"?bgA(n,{immediate:!0}):pgA(n,A,{immediate:!0});return t?{now:r,...i}:r}let UgA=0;function KgA(e,t={}){const A=_(!1),{document:r=DgA,immediate:n=!0,manual:i=!1,id:o=`vueuse_styletag_${++UgA}`}=t,g=_(e);let a=()=>{};const s=()=>{if(!r)return;const I=r.getElementById(o)||r.createElement("style");I.isConnected||(I.id=o,t.media&&(I.media=t.media),r.head.appendChild(I)),!A.value&&(a=Ae(g,l=>{I.textContent=l},{immediate:!0}),A.value=!0)},C=()=>{!r||!A.value||(a(),r.head.removeChild(r.getElementById(o)),A.value=!1)};return n&&!i&&qc(s),i||qi(C),{id:o,css:g,unload:C,load:s,isLoaded:Lo(A)}}const _gA=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],YgA={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function JgA(e){return e.toISOString().slice(0,10)}function zgA(e,t={}){const{controls:A=!1,updateInterval:r=3e4}=t,{now:n,...i}=HgA({interval:r,controls:!0}),o=W(()=>WgA(new Date(It(e)),t,It(n)));return A?{timeAgo:o,...i}:o}function WgA(e,t={},A=Date.now()){var r;const{max:n,messages:i=YgA,fullDateFormatter:o=JgA,units:g=_gA,showSecond:a=!1,rounding:s="round"}=t,C=typeof s=="number"?d=>+d.toFixed(s):Math[s],I=+A-+e,l=Math.abs(I);function u(d,B){return C(Math.abs(d)/B.value)}function c(d,B){const f=u(d,B),E=d>0,v=h(B.name,f,E);return h(E?"past":"future",v,E)}function h(d,B,f){const E=i[d];return typeof E=="function"?E(B,f):E.replace("{0}",B.toString())}if(l<6e4&&!a)return i.justNow;if(typeof n=="number"&&l>n)return o(new Date(e));if(typeof n=="string"){const d=(r=g.find(B=>B.name===n))==null?void 0:r.max;if(d&&l>d)return o(new Date(e))}for(const[d,B]of g.entries()){if(u(I,B)<=0&&g[d-1])return c(I,g[d-1]);if(l<B.max)return c(I,B)}return i.invalid}function xQ(e,t,A,r={}){var n,i,o;const{clone:g=!1,passive:a=!1,eventName:s,deep:C=!1,defaultValue:I,shouldEmit:l}=r,u=Aa(),c=A||u?.emit||((n=u?.$emit)==null?void 0:n.bind(u))||((o=(i=u?.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(u?.proxy));let h=s;t||(t="modelValue"),h=h||`update:${t.toString()}`;const d=E=>g?typeof g=="function"?g(E):MgA(E):E,B=()=>agA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=_(E);let p=!1;return Ae(()=>e[t],D=>{p||(p=!0,v.value=d(D),cr(()=>p=!1))}),Ae(v,D=>{!p&&(D!==e[t]||C)&&f(D)},{deep:C}),v}else return W({get(){return B()},set(E){f(E)}})}function qgA(e={}){const{window:t=Qn,initialWidth:A=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:i=!0}=e,o=_(A),g=_(r),a=()=>{t&&(i?(o.value=t.innerWidth,g.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,g.value=t.document.documentElement.clientHeight))};if(a(),qc(a),Zt("resize",a,{passive:!0}),n){const s=G_("(orientation: portrait)");Ae(s,()=>a())}return{width:o,height:g}}function U_(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const rt=GgA("__VUE_DEVTOOLS_CLIENT_STATE__",U_(),{mergeDefaults:!0});function jgA(){rt.value=U_()}Ae(()=>rt.value.splitScreen.enabled,(e,t)=>{t&&!e&&(rt.value.splitScreen.size=[50,50])});const Xo=[];function Ei(e){Xo.push(e),qi(()=>{Xo.splice(Xo.indexOf(e),1)});const{connected:t,clientConnected:A}=_n(),r=W(()=>A.value&&t.value);if(r.value){Xo.forEach(n=>n());return}return $_(r,n=>{n&&Xo.forEach(i=>i())}),()=>{Xo.splice(Xo.indexOf(e),1)}}function VgA(){Xo.forEach(e=>e())}let GF=null;function jc(){const e=_n(),t=_(e.tabs.value||[]),A=W(()=>{const g=e.vitePluginDetected.value,a=[...ogA(g,ggA.value?.moduleDetectives)];return t.value.forEach(s=>{const C=a.find(I=>I[0]===s.category);if(C){if(C[1].some(I=>I.name===s.name)||(!g||F1)&&N_.includes(s.name))return;C[1].push({...s})}}),a}),r=W(()=>A.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[])),n=W(()=>{const{hiddenTabCategories:g,hiddenTabs:a,pinnedTabs:s}=rt.value.tabSettings,C=g.includes("pinned"),I=A.value.reduce((l,[u,c])=>{const h=[{hidden:!1,name:u},[]],d=g.includes(u);return c.forEach(B=>{const f=a.includes(B.name);if(s.includes(B.name))l[0][1].push({...B,hidden:f||C});else{const E=f||d;h[1].push({...B,hidden:E})}}),h[0].hidden=h[1].every(B=>B.hidden),l.push(h),l},[[{name:"pinned",hidden:!1},[]]]);return I[0][0].hidden=I[0][1].every(l=>l.hidden),I[0][1].sort((l,u)=>s.indexOf(l.name)-s.indexOf(u.name)),I}),i=W(()=>n.value.reduce((g,[a,s])=>{if(a.hidden)return g;const C=s.filter(I=>!I.hidden);return C.length&&g.push([a,C]),g},[])),o=W(()=>i.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[]));return Ei(()=>{GF?.(),GF=vK(g=>{t.value=g})}),{categorizedTabs:n,flattenedTabs:r,enabledTabs:i,enabledFlattenTabs:o}}function xF(e,t){return W(()=>{const A=[],r=rt.value.tabSettings.pinnedTabs;Om(t).reduce((o,[{name:g,hidden:a},s])=>(s.forEach(C=>{if(Om(e).some(I=>I.name===C.name)){const I=r.includes(C.name)?"pinned":g||"app";o.push({tab:C,category:{name:I,hidden:a}})}}),o),[]).forEach(({tab:o,category:g})=>{const a=A.find(([{name:s}])=>s===g.name);a?a[1].push(o):A.push([g,[o]])});const i=A.find(([{name:o}])=>o==="pinned");return i&&i[1].sort((o,g)=>r.indexOf(o.name)-r.indexOf(g.name)),A})}function ZgA(e){const t=new Map;return e.forEach(A=>t.set(A.id,A)),Array.from(t.values())}const u0=Ug(new Map);let TF=null;function XgA(){const{enabledFlattenTabs:e}=jc(),t=VI(),A=_n(),r=_(A.commands.value||[]);Er(()=>{r.value=A.commands.value||[]}),Ei(()=>{TF?.(),TF=pK(o=>{r.value=o})});const n=[{id:"fixed:settings",title:"Settings",icon:"carbon-settings-adjust",action:()=>{t.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>eaA()}],i=W(()=>e.value.map(o=>({id:`tab:${o.name}`,title:o.title||o.name,icon:o.icon,action:()=>{"onClick"in o&&o.onClick?o.onClick():t.push("path"in o&&o.path?o.path:`/custom-tab-view/${o.name}`)}})));return W(()=>ZgA([...n,...i.value,...AaA(r.value),...Array.from(u0.values()).flatMap(o=>Om(o))]))}function HF(e){e?.type==="url"&&window.open(e.src,"_blank")}function AaA(e){return e.map(t=>({id:`${t.id}`,title:t.title,icon:t.icon,description:t.description,order:t.order,action:()=>{if(t.children)return t.children.map(A=>({id:A.id,title:A.title,icon:A.icon,description:A.description,order:A.order,action:()=>{HF(A.action)}})).sort((A,r)=>(r.order??0)-(A.order??0));HF(t.action)}})).sort((t,A)=>(A.order??0)-(t.order??0))}function UF(e){const t=N7();u0.set(t,e),Ss(()=>{u0.delete(t)})}let _p;async function eaA(){return _p||(_p=(await pr(()=>import("./vue-apis-Nh9IahXf.js"),__vite__mapDeps([]),import.meta.url).then(t=>t.default)).map(t=>({...t,icon:"carbon-api-1",action:()=>{window.open(t.url,"_blank")}}))),_p}const taA={flex:"~ col","max-h-120":"","min-h-60":"",h:"60%","w-xl":"","of-hidden":"",border:"1 base","rounded-md":"","text-3.75":""},raA={border:"b base","flex-none":""},naA={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},iaA=["id","onClick","onMouseover"],oaA={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},gaA={"ws-nowrap":""},aaA={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},saA={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},CaA=y("span",{op50:""},"No results for",-1),IaA={"text-primary":""},laA={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},uaA={"text-xs":"",flex:"~ items-center gap2"},caA={px1:""},haA={px1:""},daA=y("span",{op75:""},"to navigate",-1),BaA={"text-xs":"",flex:"~ items-center gap2"},faA=y("button",{px1:""}," Esc ",-1),EaA={op75:""},QaA={"text-xs":"",flex:"~ items-center gap2"},vaA={px1:""},paA=y("span",{op75:""},"to select",-1),waA=DA({__name:"CommandPalette",setup(e){const t=_(!1),A=_(""),r=XgA(),n=_(),i=W(()=>n.value||r.value),o=W(()=>new Rs(i.value,{keys:["id","title"],distance:50})),g=W(()=>A.value?o.value.search(A.value).map(l=>l.item):i.value||[]),a=_(0);Ae(A,()=>{a.value=0,C()});function s(l){a.value=(a.value+l+g.value.length)%g.value.length,C()}function C(){document.getElementById(g.value[a.value]?.id)?.scrollIntoView({block:"center"})}async function I(l){const u=await l.action();u?(n.value=u,A.value=""):(n.value=void 0,A.value="",t.value=!1)}return Zt("keydown",l=>{if((l.altKey||l.metaKey)&&l.key==="k"){l.preventDefault(),n.value=void 0,A.value="",t.value=!t.value;return}if(t.value)switch(l.key){case"ArrowDown":case"ArrowUp":l.preventDefault(),s(l.key==="ArrowDown"?1:-1);break;case"Enter":{const u=g.value[a.value];u&&(l.preventDefault(),I(u));break}case"Escape":{l.preventDefault(),n.value?(n.value=void 0,A.value=""):t.value=!1;break}}}),(l,u)=>{const c=zc;return Q(t)?(M(),tA(Q(vM),{key:0,dim:"",class:"backdrop-blur-2xl!"},{default:U(()=>[y("div",taA,[y("header",raA,[T(Q(bo),{modelValue:Q(A),"onUpdate:modelValue":u[0]||(u[0]=h=>YA(A)?A.value=h:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),y("div",naA,[(M(!0),x(wA,null,Be(Q(g),(h,d)=>(M(),x("button",{id:h.id,key:h.id,onClick:B=>I(h),onMouseover:B=>a.value=d},[y("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:bA(Q(a)===d?"op100 bg-primary/10 text-primary saturate-100 bg-active":"op80")},[T(c,{icon:h.icon,title:h.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),y("span",oaA,[y("span",gaA,yA(h.title),1),y("span",aaA,yA(h.description),1)]),Q(a)===d?(M(),tA(Q(De),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):pA("",!0)],2)],40,iaA))),128)),Q(g).length?pA("",!0):(M(),x("div",saA,[T(Q(De),{icon:"carbon-search",op50:""}),y("div",null,[CaA,y("strong",IaA,' "'+yA(Q(A))+'" ',1)])]))]),y("footer",laA,[y("div",uaA,[y("button",caA,[T(Q(De),{icon:"carbon-arrow-down"})]),y("button",haA,[T(Q(De),{icon:"carbon-arrow-up"})]),daA]),y("div",BaA,[faA,y("span",EaA,"to "+yA(Q(n)?"go back":"close"),1)]),y("div",QaA,[y("button",vaA,[T(Q(De),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),paA])])])]),_:1})):pA("",!0)}}}),Vc=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},DaA={},yaA={class:"panel-grids-center"};function maA(e,t){return M(),x("div",yaA,[VA(e.$slots,"default")])}const Qi=Vc(DaA,[["render",maA]]),baA={flex:"~ items-center gap-3"},MaA={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},kaA={"translate-y-0.5px":""},SaA={key:0,hidden:"","lg:block":""},K_=DA({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"}},setup(e){const t=e,A=NQ(),r=W(()=>"path"in t.tab?`${t.tab.path.startsWith("/")?"":"/"}${t.tab.path}`:`/custom-tab-view/${t.tab.name}`),n=W(()=>"badge"in t.tab&&t.tab.badge?.()),i=W(()=>A.path.startsWith(r.value));function o(){"onClick"in t.tab&&t.tab.onClick?t.tab.onClick():t.target==="side"&&(rt.value.splitScreen.view=t.tab.name)}return(g,a)=>{const s=zc;return M(),tA(Q(BoA),{disabled:!g.minimized,placement:"right",class:bA({"w-full":!g.minimized})},{popper:U(()=>[y("div",null,yA(g.tab.title),1),"extraTabVNode"in g.tab&&g.tab.extraTabVNode?(M(),x("div",SaA,[(M(),tA(Kg(g.tab.extraTabVNode)))])):pA("",!0)]),default:U(()=>[(M(),tA(Kg(g.target==="main"?Q(TK):"button"),{to:Q(r),flex:`~ items-center ${g.minimized?"justify-center":"justify-between"}`,hover:"bg-active op-100",w:g.minimized?"10":"full",rounded:g.minimized?"xl":"",p:g.minimized?"1":"x3","text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:o},{default:U(()=>[y("div",baA,[T(s,{"text-xl":"",icon:g.tab.icon,title:"Settings","show-title":!1},null,8,["icon"]),g.minimized?pA("",!0):(M(),x("span",MaA,yA(g.tab.title),1))]),Q(n)?(M(),x("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:bA([Q(i)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":g.minimized}])},[y("span",kaA,yA(Q(It)(Q(n))),1)],2)):pA("",!0)]),_:1},8,["to","flex","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),NaA={flex:"~ col gap-1","max-w-80":"",py1:""},PaA={key:0,"h-1px":"",border:"b base"},FaA={flex:"~ wrap",px1:""},__=DA({__name:"TabsGrid",props:{categories:{},target:{}},setup(e){return(t,A)=>{const r=K_;return M(),x("div",NaA,[(M(!0),x(wA,null,Be(t.categories,([n,i],o)=>(M(),x(wA,{key:n},[i.length?(M(),x(wA,{key:0},[o?(M(),x("div",PaA)):pA("",!0),y("div",FaA,[(M(!0),x(wA,null,Be(i,g=>(M(),tA(r,{key:g.name,target:t.target,tab:g},null,8,["target","tab"]))),128))])],64)):pA("",!0)],64))),128))])}}}),RaA={"h-full":"","h-screen":"","of-hidden":""},LaA={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},$aA={flex:"","cursor-pointer":"","items-center":"",gap2:""},OaA=y("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),GaA={capitalize:""},xaA=y("div",{"flex-auto":""},null,-1),TaA=y("div",{"i-carbon:side-panel-open":""},null,-1),HaA=[TaA],UaA={key:1,"of-auto":"",style:{height:"calc(100% - 50px)"}},KaA=y("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),_aA=DA({__name:"SplitScreen",setup(e){function t(){rt.value.splitScreen.enabled=!1}const A=W(()=>rt.value.splitScreen),{enabledTabs:r,flattenedTabs:n}=jc(),i=VI(),o=NQ(),g=Zi();function a(I){const l=o.path.startsWith("/")?o.path.slice(1):o.path;return I&&"path"in I&&l===I.path}const s=W(()=>{const I=n.value.find(l=>l.name===A.value.view);return a(I)?void 0:I});Ae(()=>s.value,I=>{if(!I)return;const l=i.getRoutes(),u=I&&"path"in I?l.find(d=>d.path===(I.path.startsWith("/")?I.path:`/${I.path}`)):l.find(d=>d.name==="custom-tab"),c=o.path.startsWith("/")?o.path.slice(1):o.path;if(u?.path===c||o.params?.name===I.name){g.value=void 0;return}const h=u?.components?.default;typeof h=="function"?g.value=TX(h):g.value=h},{immediate:!0});const C=_(!1);return(I,l)=>{const u=zc,c=__,h=Qi;return M(),x("div",RaA,[Q(g)&&Q(s)?(M(),x("div",LaA,[T(Q(BI),{placement:"bottom-start",distance:12,skidding:5,shown:Q(C),trigger:"click"},{popper:U(()=>[T(c,{categories:Q(r),target:"side"},null,8,["categories"])]),default:U(()=>[y("div",$aA,[OaA,T(u,{"text-xl":"",icon:Q(s)?.icon,title:"Settings","show-title":!1},null,8,["icon"]),y("span",GaA,yA(Q(s)?.name),1)])]),_:1},8,["shown"]),xaA,vt((M(),x("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:t},HaA)),[[Q(Bn),"Close split screen"]])])):pA("",!0),Q(g)&&Q(s)?(M(),x("div",UaA,[(M(),tA(Kg(Q(g)),{key:`tab-${Q(s).name}`}))])):(M(),tA(h,{key:2},{default:U(()=>[KaA,T(Q(sf),{px4:"",py2:"","bg-base":""},{default:U(()=>[T(c,{categories:Q(r),target:"side"},null,8,["categories"])]),_:1}),T(Q(ie),{type:"warning",outlined:"",mt2:"",onClick:t},{default:U(()=>[NA(" Close Split Screen ")]),_:1})]),_:1}))])}}});function mM(){const e=lM(),t=_("");return sI&&ae.chrome.storage.local.get(pp).then(A=>{t.value=A[pp]??"overlay"}),{viewMode:t,toggle(A){t.value=A,ae.chrome.storage.local.set({[pp]:A}),sI&&e.value.emit("toggle-view-mode",A)}}}const YaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},JaA=y("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),zaA=y("div",{"i-carbon-settings-adjust":""},null,-1),WaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},qaA=y("div",{"i-carbon-split-screen":""},null,-1),jaA={px3:"",py2:"",flex:"~ gap2"},VaA=DA({__name:"DockingPanel",setup(e){const t=pt("viewMode",_("overlay")),A=W(()=>t.value==="panel"&&sI),{toggle:r}=mM(),n=VI(),i=W({get:()=>rt.value.expandSidebar,set:l=>rt.value.expandSidebar=l}),o=W({get:()=>rt.value.splitScreen.enabled,set:l=>rt.value.splitScreen.enabled=l});function g(){location.reload()}const a=_n(),s=W(()=>a.appRecords.value.map(l=>({label:l.name+(l.version?` (${l.version})`:""),value:l.id}))),C=_(a.activeAppRecordId.value),I=W(()=>s.value.find(l=>l.value===C.value)?.label??"");return Ae(C,l=>{rK(`${l}`).then(()=>{n.push("/overview").then(()=>{VgA()})})}),(l,u)=>(M(),x("div",null,[y("div",YaA,[T(Q(Q_),null,{default:U(({isDark:c,toggle:h})=>[T(Q(ie),{outlined:"",type:"primary",onClick:h},{default:U(()=>[JaA,NA(" "+yA(c?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),T(Q(ie),{outlined:"",type:"primary",onClick:u[0]||(u[0]=c=>i.value=!Q(i))},{default:U(()=>[T(Q(De),{icon:Q(i)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),NA(" "+yA(Q(i)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),T(Q(ie),{to:"/settings",outlined:"",type:"primary"},{default:U(()=>[zaA,NA(" Settings ")]),_:1})]),y("div",WaA,[T(Q(ie),{outlined:"",type:"primary",onClick:u[1]||(u[1]=c=>o.value=!Q(o))},{default:U(()=>[qaA,NA(" "+yA(Q(o)?"Close Split Screen":"Split Screen"),1)]),_:1})]),y("div",jaA,[Q(s).length>1?(M(),tA(Q(CE),{key:0,modelValue:Q(C),"onUpdate:modelValue":u[2]||(u[2]=c=>YA(C)?C.value=c:null),options:Q(s),placeholder:Q(I)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):pA("",!0),T(Q(ie),{outlined:"",type:"primary",onClick:g},{default:U(()=>[NA(" Refresh Page ")]),_:1}),Q(A)?(M(),tA(Q(ie),{key:1,outlined:"",type:"primary",onClick:u[3]||(u[3]=c=>Q(r)("overlay"))},{default:U(()=>[NA(" Switch to Overlay Mode ")]),_:1})):pA("",!0)])]))}}),ZaA={border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},XaA={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},AsA=y("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),esA=y("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),tsA=y("div",{"flex-auto":""},null,-1),rsA=y("div",{"i-carbon-overflow-menu-vertical":""},null,-1),nsA={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},isA={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},osA=y("div",{"flex-auto":""},null,-1),gsA=["flex"],asA={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},ssA={"translate-y-0.5px":""},CsA=45,IsA=DA({__name:"SideNav",setup(e){const t=_(!1),A=_(!1),r=_(),n=_(),i=_(),o=W(()=>rt.value.expandSidebar),g=W(()=>rt.value.scrollableSidebar),{enabledTabs:a,flattenedTabs:s}=jc(),{height:C}=qgA(),I=W(()=>{const B=C.value-130;return Math.max(0,Math.floor(B/CsA))}),l=W(()=>s.value.slice(0,I.value)),u=W(()=>s.value.slice(I.value)),c=xF(l,a),h=xF(u,a),d=W(()=>g.value||o.value?a.value:c.value);return ygA(r,B=>{n.value&&B.composedPath().includes(n.value)||i.value&&B.composedPath().includes(i.value)||(t.value=!1,A.value=!1)},{detectIframe:!0}),(B,f)=>{const E=VaA,v=K_,p=zc,D=__;return M(),x("div",ZaA,[y("div",XaA,[T(Q(BI),{placement:"left-start",distance:6,skidding:5,trigger:"click",shown:Q(t),class:"w-full"},{popper:U(()=>[T(E)]),default:U(()=>[y("button",{ref_key:"buttonDocking",ref:n,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:bA([Q(o)?"rounded pl2.5":"rounded-xl"])},[AsA,Q(o)?(M(),x(wA,{key:0},[esA,tsA,rsA],64)):pA("",!0)],2)]),_:1},8,["shown"])]),y("div",nsA,[(M(!0),x(wA,null,Be(Q(d),([F,N],S)=>(M(),x(wA,{key:F},[S?(M(),x("div",isA)):pA("",!0),(M(!0),x(wA,null,Be(N.filter(m=>!m.hidden),m=>(M(),tA(v,{key:m.name,tab:m,minimized:!Q(o)},null,8,["tab","minimized"]))),128))],64))),128)),osA]),y("div",{flex:`~ items-center gap-1 ${Q(o)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[Q(u).length&&!Q(g)&&!Q(o)?(M(),tA(Q(BI),{key:0,placement:"left-end",distance:6},{popper:U(()=>[T(D,{categories:Q(h),"max-w-80":"",target:"main"},null,8,["categories"])]),default:U(()=>[y("button",{ref_key:"buttonMoreTabs",ref:i,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[T(p,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),y("div",asA,[y("span",ssA,yA(Q(u).length),1)])],512)]),_:1})):pA("",!0),T(v,{minimized:!Q(o),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,gsA)])}}}),lsA={},usA={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},csA=vAA('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),hsA=[csA];function dsA(e,t){return M(),x("svg",usA,hsA)}const bM=Vc(lsA,[["render",dsA]]),BsA={class:"fixed inset-0 h-screen w-screen flex flex-col items-center justify-center $ui-bg-base"},fsA=y("p",{class:"p3 text-sm font-bold"},[NA(" DevTools is currently injected into user application in "),y("em",{class:"text-primary-600"},"Overlay"),NA(" view mode. ")],-1),EsA=DA({__name:"ViewModeSwitch",setup(e){GQ();const{toggle:t}=mM();return(A,r)=>{const n=bM;return M(),x("div",BsA,[T(n,{"h-18":""}),fsA,y("p",null,[T(Q(ie),{onClick:r[0]||(r[0]=fr(i=>Q(t)("panel"),["stop"]))},{default:U(()=>[NA(" Switch to Panel Mode ")]),_:1})])])}}}),QsA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vsA={class:"h-screen w-screen $ui-fcc flex-col"},psA={class:"outer"},wsA={class:"inner"},DsA=["src"],ysA=DA({__name:"AppConnecting",setup(e){return(t,A)=>(M(),x("div",vsA,[y("div",psA,[y("div",wsA,[y("img",{src:Q(QsA),class:"max-w-18",alt:"Vue logo"},null,8,DsA)])]),VA(t.$slots,"default",{},void 0,!0)]))}}),Y_=Vc(ysA,[["__scopeId","data-v-204233a8"]]),XI={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let A=0;this.panes=this.panes.map((r,n)=>(r.size=n===t?r.max:r.min,n!==t&&(A+=r.min),r)),this.panes[t].size-=A,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:A,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:A-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let A={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:A.prevPanesSize),n=100-(this.pushOtherPanes?0:A.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),n),r);let o=[t,t+1],g=this.panes[o[0]]||null,a=this.panes[o[1]]||null;const s=g.max<100&&i>=g.max+A.prevPanesSize,C=a.max<100&&i<=100-(a.max+this.sumNextPanesSize(t+1));if(s||C){s?(g.size=g.max,a.size=Math.max(100-g.max-A.prevPanesSize-A.nextPanesSize,0)):(g.size=Math.max(100-a.max-A.prevPanesSize-this.sumNextPanesSize(t+1),0),a.size=a.max);return}if(this.pushOtherPanes){const I=this.doPushOtherPanes(A,i);if(!I)return;({sums:A,panesToResize:o}=I),g=this.panes[o[0]]||null,a=this.panes[o[1]]||null}g!==null&&(g.size=Math.min(Math.max(i-A.prevPanesSize-A.prevReachedMinPanes,g.min),g.max)),a!==null&&(a.size=Math.min(Math.max(100-i-A.nextPanesSize-A.nextReachedMinPanes,a.min),a.max))},doPushOtherPanes(e,t){const A=this.touch.activeSplitter,r=[A,A+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(A).index,e.prevReachedMinPanes=0,r[0]<A&&this.panes.forEach((n,i)=>{i>r[0]&&i<=A&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,i)=>{i>0&&i<=A&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(A).index,e.nextReachedMinPanes=0,r[1]>A+1&&this.panes.forEach((n,i)=>{i>A&&i<r[1]&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((n,i)=>{i<this.panesCount-1&&i>=A+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,A,r)=>t+(r<e?A.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,A,r)=>t+(r>e+1?A.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),A=e.classList.contains("splitpanes__splitter");!t&&!A&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,A=!1){const r=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),A||(n.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=i=>this.onMouseDown(i,r)),n.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(n.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(A=>{A.className.includes("splitpanes__splitter")&&this.removeSplitter(A)});let t=0;e.forEach(A=>{A.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,A,!0):t&&this.addSplitter(t,A),t++)})},requestUpdate({target:e,...t}){const A=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,n])=>A[r]=n)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const A=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(A)?0:A,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,i)=>n.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),A=this.panes.splice(t,1)[0];this.panes.forEach((r,n)=>r.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...A,index:t}}),this.$emit("pane-remove",{removed:A,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const A=[],r=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&A.push(n.id),n.size<=n.min&&r.push(n.id)}),t>.1&&this.readjustSizes(t,A,r)},initialPanesSizing(){let e=100;const t=[],A=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&A.push(i.id)});let n=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),n-=i.size}),n>.1&&this.readjustSizes(e,t,A))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let A=100/this.panesCount,r=0;const n=[],i=[];e&&e.givenSize!==null&&(A=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(A,o.max),o.min)),r-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,n,i))},readjustSizes(e,t,A){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-A.length),this.panes.forEach((n,i)=>{if(e>0&&!t.includes(n.id)){const o=Math.max(Math.min(n.size+r,n.max),n.min),g=o-n.size;e-=g,n.size=o}else if(!A.includes(n.id)){const o=Math.max(Math.min(n.size+r,n.max),n.min),g=o-n.size;e-=g,n.size=o}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,A)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,A):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return WI("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},msA=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},bsA={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function MsA(e,t,A,r,n,i){return M(),x("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>i.onPaneClick(o,e._.uid)),style:Qt(e.style)},[VA(e.$slots,"default")],4)}const fn=msA(bsA,[["render",MsA]]);function Zc(){const{copy:e,copied:t}=yM();return{copy:(r,n={})=>{const{silent:i=!1,type:o=""}=n;e(r).then(()=>{i||i0({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{i||i0({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:t}}const ksA=uI("get-open-in-editor-host"),Xc=_(!1),TQ=async e=>{const t=await ksA();return t?jm(e,t):jm(e)},SsA={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},NsA=DA({__name:"App",setup(e){pr(()=>import("./unocss-runtime-1I7U-Xvx.js"),__vite__mapDeps([]),import.meta.url),GQ();const t=VI(),A=NQ(),{connected:r,clientConnected:n}=_n(),i=rt,o=pt("viewMode",_("overlay")),g=W(()=>o.value==="overlay"&&sI),a=lM(),s=W(()=>A.path.startsWith("/__")||A.path==="/"),C=W(()=>i.value.expandSidebar),I=W(()=>n.value&&r.value);Er(()=>{const B=rt.value.scale;document.documentElement.style.fontSize=`${B*15}px`}),Ae(I,B=>{B&&(t.replace(i.value.isFirstVisit?"/":i.value.route),t.afterEach(()=>{const f=A.path;f.includes("__")||(i.value.route=f)}))},{immediate:!0}),Zt("keydown",B=>{B.code==="KeyD"&&B.altKey&&B.shiftKey&&a.value.emit("toggle-panel")}),Er(()=>{a.value.emit("update-client-state",{minimizePanelInteractive:rt.value.minimizePanelInteractive,closeOnOutsideClick:rt.value.interactionCloseOnOutsideClick,showFloatingPanel:rt.value.showPanel})});const l=W(()=>i.value.splitScreen.enabled),u=W({get:()=>i.value.splitScreen.size,set:B=>i.value.splitScreen.size=B}),c=_n();Er(()=>{P_.value=c.appRecords.value,F_.value=c.activeAppRecordId.value});const{copy:h}=Zc(),d=OgA({});return eK().then(B=>{B&&(Xc.value=!0,UF(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{a.value.emit("toggle-panel",!1),await tK()}}]))}),UF(()=>[...d.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{const{sRGBHex:B}=await d.open()||{};B&&h(B)}}]:[]]),(B,f)=>{const E=Y_,v=EsA,p=IsA,D=En("RouterView"),F=_aA,N=waA;return M(),x("main",SsA,[Q(I)?Q(g)?(M(),tA(v,{key:1})):(M(),x("div",{key:2,class:bA(["h-full of-auto",Q(s)?"flex":Q(C)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[Q(s)?pA("",!0):(M(),tA(p,{key:0,"of-x-hidden":"","of-y-auto":""})),T(Q(XI),{"h-full":"","of-hidden":"",onResize:f[0]||(f[0]=S=>u.value=S.map(m=>m.size))},{default:U(()=>[T(Q(fn),{"h-full":"",class:"of-auto!","min-size":"10",size:Q(u)[0]},{default:U(()=>[T(D)]),_:1},8,["size"]),!Q(s)&&Q(l)?(M(),tA(Q(fn),{key:0,relative:"","h-full":"",class:"of-auto!",size:Q(u)[1]},{default:U(()=>[T(F)]),_:1},8,["size"])):pA("",!0)]),_:1})],2)):(M(),tA(E,{key:0})),T(N)])}}}),MM=DA({__name:"ExpandIcon",props:{value:{type:Boolean}},setup(e){return(t,A)=>(M(),x("i",{class:bA(["i-radix-icons:triangle-right flex-none text-5 op-50 transition-base",{"transform rotate-90":t.value}])},null,2))}}),PsA={class:"flex-inline items-center gap4px"},FsA=DA({__name:"EditInput",props:{modelValue:{},customType:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(e,{emit:t}){const A=e,r=t,n=W(()=>A.customType==="date"?"datetime-local":""),{escape:i,enter:o}=TgA();Er(()=>{i.value?r("cancel"):o.value&&r("submit")});const g=xQ(A,"modelValue",r);function a(I){try{return gf(I,A.customType),!0}catch{return!1}}const s=_(!1);return Ae(g,DQ(()=>{s.value=!a(g.value)},300)),(I,l)=>(M(),x("span",PsA,[T(Q(bo),{modelValue:Q(g),"onUpdate:modelValue":l[0]||(l[0]=u=>YA(g)?g.value=u:null),type:Q(n),variant:Q(s)?"warning":"normal",class:bA(["h25px px4px",I.customType==="date"?"w240px":"w120px"]),"auto-focus":I.autoFocus,onClick:l[1]||(l[1]=fr(()=>{},["stop"]))},null,8,["modelValue","type","variant","class","auto-focus"]),I.showActions?(M(),x(wA,{key:0},[vt((M(),tA(Q(ie),{size:"mini",flat:"",class:"p2px!",onClick:l[2]||(l[2]=fr(u=>I.$emit("cancel"),["stop"]))},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-cancel"})]),_:1})),[[Q(Bn),{content:"Esc to cancel"}]]),Q(s)?vt((M(),tA(Q(De),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[Q(Bn),{content:"Invalid value"}]]):vt((M(),tA(Q(ie),{key:0,size:"mini",flat:"",class:"p2px!",onClick:l[3]||(l[3]=fr(u=>I.$emit("submit"),["stop"]))},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-save"})]),_:1})),[[Q(Bn),{content:"Enter to submit change"}]])],64)):pA("",!0)]))}}),J_=Symbol("StateEditorSymbol");function RsA(e){const t=_(e);return Io(J_,t),{context:t}}function kM(){return pt(J_)}function LsA(){const e=_(""),t=_("string"),A=_(!1),r=kM();return{editingText:e,editing:A,toggleEditing(n){n&&(t.value=n),A.value=!A.value},editingType:t,nodeId:r.value.nodeId}}function $sA(e,t){if(e==="array")return t.length;const A="newProp";let r=1;for(;;){const n=`${A}${r}`;if(!t[n])return n;r++}}function OsA(){const e=_({enable:!1,key:"",value:"undefined"});function t(r,n){const i=$sA(r,n);e.value={enable:!0,key:i.toString(),value:"undefined"}}function A(){e.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:t,resetDrafting:A,draftingNewProp:e}}const GsA={class:"inline pl5px"},xsA={class:"w160px py5px"},KF=DA({__name:"Actions",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(e){const t=e,A=kM(),{copy:r,isSupported:n}=yM(),i=_(!1),o=W(()=>aM(t.data.value)),g=W(()=>o.value.value),a=W(()=>o.value.customType),s=W(()=>g.value===null?"null":typeof g.value),C={flat:!0,size:"mini"},I=W(()=>({"opacity-0":!t.hovering}));function l(c,h=!1){eE({path:t.data.key.split("."),inspectorId:A.value.inspectorId,type:t.data.stateType,nodeId:A.value.nodeId,state:{newKey:null,value:Qe(c),type:s.value,remove:h}})}function u(c,h){const d=typeof c=="number"?c+h:BigInt(c)+BigInt(h);l(d)}return(c,h)=>(M(),x("div",GsA,[!t.disableEdit&&c.data.editable?(M(),x(wA,{key:0},[Q(s)==="string"||Q(s)==="number"||Q(s)==="object"||Q(s)==="null"?(M(),x(wA,{key:0},[vt((M(),tA(Q(ie),Ir(C,{class:Q(I),onClick:h[0]||(h[0]=fr(d=>c.$emit("enableEditInput",Q(s)),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[Q(Bn),{content:"Edit value"}]]),Q(s)==="object"&&c.showAddIfNeeded?vt((M(),tA(Q(ie),Ir({key:0},C,{class:Q(I),onClick:h[1]||(h[1]=fr(d=>c.$emit("addNewProp",Array.isArray(Q(g))?"array":"object"),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[Q(Bn),{content:"Add new value"}]]):pA("",!0)],64)):pA("",!0),Q(s)==="boolean"?(M(),tA(Q(ie),Ir({key:1},C,{class:Q(I),onClick:h[2]||(h[2]=d=>l(!Q(g)))}),{icon:U(()=>[T(Q(De),{icon:Q(g)?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):Q(s)==="number"||Q(a)==="bigint"?(M(),x(wA,{key:2},[T(Q(ie),Ir(C,{class:Q(I),onClick:h[3]||(h[3]=fr(d=>u(Q(g),1),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-carbon-add"})]),_:1},16,["class"]),T(Q(ie),Ir(C,{class:Q(I),onClick:h[4]||(h[4]=fr(d=>u(Q(g),-1),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):pA("",!0)],64)):pA("",!0),!t.disableEdit&&c.depth>0?(M(),tA(Q(ie),Ir({key:1},C,{class:Q(I),onClick:h[5]||(h[5]=fr(d=>l(Q(g),!0),["stop"]))}),{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):pA("",!0),T(Q(BI),{class:bA({"opacity-0":!c.hovering&&!Q(i)}),"button-props":{flat:!0,size:"mini"},disabled:!Q(n),"onUpdate:visible":h[8]||(h[8]=d=>i.value=d)},{popper:U(()=>[y("div",xsA,[T(Q(yF),{onClick:h[6]||(h[6]=d=>Q(r)(typeof Q(g)=="object"?JSON.stringify(Q(g)):Q(g).toString()))},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),NA(" Copy Value ")]),_:1}),T(Q(yF),{onClick:h[7]||(h[7]=()=>{Q(r)(c.data.key)})},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),NA(" Copy Path ")]),_:1})])]),"button-icon":U(()=>[T(Q(De),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}});function fI(e){const t=_({}),A=_({});return Io(`CollapseMapSymbol${e}`,t),Io(`CollapseMapSymbol${e}LinkedList`,A),{collapseMap:t,id:e,linkedList:A}}function TsA(e){const t=pt(`CollapseMapSymbol${e}`),A=pt(`CollapseMapSymbol${e}LinkedList`);return{collapseMap:t,linkedList:A,id:e}}function SM(e,t,A){const{collapseMap:r,linkedList:n}=TsA(e),i=W(()=>r.value[t]??!1),o=()=>{r.value[t]=!r.value[t]};return A?.length&&(n.value[t]=A??[]),{isExpanded:i,toggleCollapse:o}}function HsA(e,t={}){const{enter:A=()=>{},leave:r=()=>{},initial:n=!1}=t,i=_(n);return Zt(e,"mouseenter",()=>{i.value=!0,A()}),Zt(e,"mouseleave",()=>{i.value=!1,r()}),{isHovering:i}}const NM=e=>(BQ("data-v-a33ae112"),e=e(),fQ(),e),UsA={key:0},KsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},_sA=NM(()=>y("span",{"mx-1":""},":",-1)),YsA=["innerHTML"],JsA={key:1,"cursor-pointer":""},zsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},WsA=NM(()=>y("span",{"mx-1":""},":",-1)),qsA=["innerHTML"],jsA={key:0},VsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},ZsA=NM(()=>y("span",{"mx-1":""},":",-1)),_F=30,XsA=DA({__name:"InspectorStateField",props:{data:{},depth:{default:0},no:{},rootId:{}},setup(e){const t=e,A=kM(),r=W(()=>qU(t.data.value)),n=W(()=>kQ(t.data.value)),i=W(()=>n.value==="custom"?`state-format-${t.data.value._custom?.type}`:""),{isExpanded:o,toggleCollapse:g}=SM("inspector-state",`${t.rootId}-${t.no}-${t.depth}-${t.data.key}`),a=W(()=>{const k=t.data._custom?.stateTypeName||t.data?.stateTypeName;if(k==="Reactive")return k;if(t.data.value?.fields?.abstract)return"";{const O=`<span class="state-value-${n.value}">${r.value}</span>`;return k?`${O} <span class="text-gray-500">(${k})</span>`:O}}),s=W(()=>aM(t.data.value)),C=_(_F),I=W(()=>{const{value:k,inherit:O,customType:H}=s.value,X=H==="set";let q;return DN(k)?k.slice(0,C.value).map((uA,MA)=>({key:`${t.data.key}.${MA}`,value:uA,...O,editable:t.data.editable&&!X,creating:!1})):(wN(k)?(q=Object.keys(k).slice(0,C.value).map(Z=>({key:`${t.data.key}.${Z}`,value:k[Z],...O,editable:t.data.editable&&!X,creating:!1})),n.value!=="custom"&&(q=S7(q))):q=[],q===t.data.value?{}:q)}),l=W(()=>{const{value:k}=s.value;return DN(k)?k.length:wN(k)?Object.keys(k).length:0}),u=W(()=>{const k=t.data.key,O=k.lastIndexOf(".");return O===-1?k:k.slice(O+1)}),{editingType:c,editing:h,editingText:d,toggleEditing:B,nodeId:f}=LsA();Ae(()=>h.value,k=>{if(k){const{value:O}=s.value;d.value=ktA(O,s.value.customType)}else d.value=""});function E(){const k=t.data;eE({path:k.key.split("."),inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:null,type:c.value,value:gf(d.value,s.value.customType)}}),B()}const{addNewProp:v,draftingNewProp:p,resetDrafting:D}=OsA();function F(k){o.value||g(),v(k,s.value.value)}function N(){const k=t.data,O=k.key.split(".");O.push(p.value.key),eE({path:O,inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:p.value.key,type:typeof gf(p.value.value),value:gf(p.value.value)}}),D()}const S=W(()=>Object.keys(I.value).length>0||p.value.enable),m=_(),{isHovering:R}=HsA(()=>m.value);return(k,O)=>{const H=FsA,X=MM,q=En("InspectorStateField",!0);return M(),x("div",{ref_key:"containerRef",ref:m,class:"pl-6",style:Qt({paddingLeft:`${k.depth*15+4}px`})},[Q(S)?(M(),x("div",JsA,[y("div",{relative:"",flex:"","items-center":"",onClick:O[2]||(O[2]=(...Z)=>Q(g)&&Q(g)(...Z))},[T(X,{value:Q(o),absolute:"","left--6":"","group-hover:text-white":""},null,8,["value"]),y("span",zsA,yA(Q(u)),1),WsA,Q(h)?(M(),tA(H,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[1]||(O[1]=Z=>YA(d)?d.value=Z:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(wA,{key:1},[y("span",{class:bA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,qsA)],2),T(KF,{"show-add-if-needed":!Q(p).enable,hovering:Q(R),data:k.data,"disable-edit":Q(A).disableEdit,depth:k.depth,onEnableEditInput:Q(B),onAddNewProp:F},null,8,["show-add-if-needed","hovering","data","disable-edit","depth","onEnableEditInput"])],64))]),Q(o)?(M(),x("div",jsA,[(M(!0),x(wA,null,Be(Q(I),(Z,uA)=>(M(),tA(q,{key:uA,data:Z,depth:k.depth+1,no:k.no,"root-id":k.rootId},null,8,["data","depth","no","root-id"]))),128)),Q(l)>Q(C)?vt((M(),tA(Q(ie),{key:0,flat:"",size:"mini",class:"ml-4",onClick:O[3]||(O[3]=Z=>C.value+=_F)},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[Q(Bn),"Show more"]]):pA("",!0),Q(p).enable?(M(),x("div",{key:1,style:Qt({paddingLeft:`${(k.depth+1)*15+4}px`})},[y("span",VsA,[T(H,{modelValue:Q(p).key,"onUpdate:modelValue":O[4]||(O[4]=Z=>Q(p).key=Z),"show-actions":!1},null,8,["modelValue"])]),ZsA,T(H,{modelValue:Q(p).value,"onUpdate:modelValue":O[5]||(O[5]=Z=>Q(p).value=Z),"auto-focus":!1,onCancel:Q(D),onSubmit:N},null,8,["modelValue","onCancel"])],4)):pA("",!0)])):pA("",!0)])):(M(),x("div",UsA,[y("span",KsA,yA(Q(u)),1),_sA,Q(h)?(M(),tA(H,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[0]||(O[0]=Z=>YA(d)?d.value=Z:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(wA,{key:1},[y("span",{class:bA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,YsA)],2),T(KF,{hovering:Q(R),"disable-edit":Q(A).disableEdit,data:k.data,depth:k.depth,onEnableEditInput:Q(B),onAddNewProp:F},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],64))]))],4)}}}),ACA=Vc(XsA,[["__scopeId","data-v-a33ae112"]]),eCA=DA({__name:"InspectorStateType",props:{data:{},depth:{default:0},rootId:{}},setup(e){return(t,A)=>{const r=ACA;return M(!0),x(wA,null,Be(t.data,(n,i)=>(M(),x("div",{key:i,class:"flex items-center pl-8 font-data-field"},[T(r,{data:n,no:i,"root-id":t.rootId},null,8,["data","no","root-id"])]))),128)}}}),tCA={"text-primary-400":"","group-hover:text-white":"",class:"text-[#486887] dark:text-[#7595b5]"},Ah=DA({__name:"InspectorState",props:{data:{},name:{},id:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1}},setup(e){const t=e,{isExpanded:A,toggleCollapse:r}=SM("inspector-state",t.id);return!A.value&&r(),RsA({nodeId:t.nodeId,inspectorId:t.inspectorId,disableEdit:t.disableEdit}),(n,i)=>{const o=MM,g=eCA;return M(),x(wA,null,[y("div",{class:"group w-full px-0 selectable-item",onClick:i[0]||(i[0]=(...a)=>Q(r)&&Q(r)(...a))},[T(o,{value:Q(A),"group-hover:text-white":""},null,8,["value"]),y("span",tCA,yA(n.name),1)]),Q(A)?(M(),tA(g,{key:0,data:n.data,"root-id":n.id},null,8,["data","root-id"])):pA("",!0)],64)}}});function c0(e){return e.toString(16).padStart(6,"0")}function rCA(e,t){const A=new Date(e);return`${A.toString().match(/\d\d:\d\d:\d\d/)[0]}${t==="ms"?`.${String(A.getMilliseconds()).padStart(3,"0")}`:""}`}const z_=DA({__name:"InspectorNodeTag",props:{tag:{}},setup(e){return(t,A)=>{const r=EQ("tooltip");return vt((M(),x("span",{style:Qt({color:`#${Q(c0)(t.tag.textColor)}`,backgroundColor:`#${Q(c0)(t.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[NA(yA(t.tag.label),1)],4)),[[r,{content:t.tag.tooltip,html:!0}]])}}});function nCA(e){const t=_("");return Io(`SelectedSymbol${e}`,t),{selected:t,id:e}}function iCA(e){return{selected:pt(`SelectedSymbol${e}`),id:e}}function oCA(e,t,A){const{selected:r}=iCA(e);return{isSelected:W(()=>r.value===t),toggleSelected:o=>{r.value=o,A?.(o)}}}const gCA={key:1,"inline-block":"","h-6":"","w-6":""},aCA={"text-primary-400":"","group-hover:text-white":"",class:"[.active_&]:text-white"},sCA=DA({__name:"ComponentTreeNode",props:{data:{},depth:{default:0},linkedList:{default:()=>[]}},emits:["select","mouseenter","mouseleave"],setup(e,{emit:t}){const A=e,r=t,{isExpanded:n,toggleCollapse:i}=SM("component-tree",A.data.id,[...A.linkedList,A.data.id]),{isSelected:o,toggleSelected:g}=oCA("component-tree",A.data.id,a=>{r("select",a)});return(a,s)=>{const C=MM,I=z_,l=En("ComponentTreeNode",!0);return M(),x(wA,null,[y("div",{class:bA(["group selectable-item",{active:Q(o)}]),style:Qt({paddingLeft:`${a.depth*15+4}px`}),onClick:s[0]||(s[0]=fr(u=>Q(g)(a.data.id),["stop"])),onMouseenter:s[1]||(s[1]=u=>r("mouseenter",a.data.id,!0)),onMouseleave:s[2]||(s[2]=u=>r("mouseleave",a.data.id,!1))},[a.data.children?.length?(M(),tA(C,{key:0,value:Q(n),"group-hover:text-white":"",class:"[.active_&]:text-white",onClick:fr(Q(i),["prevent","stop"])},null,8,["value","onClick"])):(M(),x("i",gCA)),y("span",aCA,yA(a.data.name),1),(M(!0),x(wA,null,Be(a.data.tags,(u,c)=>(M(),tA(I,{key:c,tag:u},null,8,["tag"]))),128))],38),a.data.children?.length&&Q(n)?(M(!0),x(wA,{key:0},Be(a.data.children,u=>(M(),tA(l,{key:u.id,data:u,depth:a.depth+1,"linked-list":[...a.linkedList,a.data.id],onSelect:s[3]||(s[3]=c=>r("select",c)),onMouseenter:s[4]||(s[4]=c=>r("mouseenter",c,!0)),onMouseleave:s[5]||(s[5]=c=>r("mouseleave",c,!1))},null,8,["data","depth","linked-list"]))),128)):pA("",!0)],64)}}}),CCA={"w-full":"",flex:"",gap2:"",px2:"",py2:""},ICA=y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),y("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1),lCA=[ICA],uCA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},cCA={flex:"","justify-between":"","overflow-auto":"",px2:"",py3:"",class:"no-scrollbar"},hCA={key:0},dCA={flex:"~ gap2"},BCA=y("p",{class:"x-divider"},null,-1),YF="components",fCA=DA({__name:"components",setup(e){const t=lM(),A=_([]),r=_(""),n=W(()=>Xc.value),i=_(!1),[o,g]=wM(!0),{selected:a}=nCA("component-tree"),{collapseMap:s,linkedList:C}=fI("component-tree");fI("inspector-state");const I=W(()=>{const H=[],X=q=>{q.forEach(Z=>{Z.id===a.value&&H.push(Z),Z.children?.length&&X(Z.children)})};return X(A.value),H[0]}),l=W(()=>{const H=[],X=(q,Z=[])=>{q.forEach(uA=>{H.push([...Z,uA.id]),uA.children?.length&&X(uA.children,[...Z,uA.id])})};return X(A.value),H}),u=W(()=>I.value?.file??"");function c(H,X){return H.length?H.find(q=>q.id===X)?!0:H.some(q=>c(q.children||[],X)):!1}function h(H){H.length&&(a.value&&c(H,a.value)||(a.value=H?.[0].id,m(H?.[0].id)))}function d(H){return new Promise(X=>{nK({inspectorId:"components",instanceId:H}).then(q=>{X(li(q))})})}function B(H){return{[H[0].id]:!0,...H?.[0].children?.reduce((X,q)=>(X[q.id]=!0,X),{})}}function f(H){return new Promise(X=>{qI({inspectorId:"components",filter:H}).then(q=>{const Z=!Object.keys(s.value).length,uA=li(q);A.value=uA,Z&&(s.value=B(uA)),h(uA),X()})})}const E=_(!1);async function v(H,X){E.value&&await vgA(E).toBe(!1),E.value=!0,d(H).then(q=>{oK({id:H,visible:X,bounds:q}),E.value=!1})}function p(H){gK({id:H})}function D(){t.value.emit("toggle-panel",!1),iK().then(H=>{const X=JSON.parse(H);a.value=X.id,F(X.id);const q=C.value[X.id];q?q.forEach(Z=>{s.value[Z]=!0}):l.value.forEach(Z=>{let uA=Z.indexOf(X.id);if(uA>-1)for(;uA>=0;)s.value[Z[uA]]=!0,uA--})}).finally(()=>{t.value.emit("toggle-panel",!0)})}function F(H){R(),m(H),r.value=H}Ae(a,H=>{aK(H)});const N=_({});function S(H){if(!H||!H?.state)return{};const X={};return H.state.forEach(q=>{X[q.type]||(X[q.type]=[]),X[q.type].push(q)}),X}function m(H){Yc({inspectorId:"components",nodeId:H}).then(X=>{N.value=S(li(X))})}function R(){N.value={}}Ei(()=>{f().then(()=>{i.value=!0}),jI(H=>{!H?.data.length||H.inspectorId!==YF||(A.value=H.data,s.value={...B(H.data),...s.value},h(H.data))}),Jc(H=>{H.inspectorId===YF&&(N.value=S({state:H.state}))})});const k=_("");DM(k,H=>{const X=H.trim().toLowerCase();g(),f(X).then(()=>{g()})},{debounce:300});const O=_n();return(H,X)=>{const q=sCA,Z=Ah,uA=Qi;return M(),tA(uA,{"h-screen":""},{default:U(()=>[T(Q(XI),null,{default:U(()=>[T(Q(fn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",CCA,[Q(i)?(M(),tA(Q(bo),{key:0,modelValue:Q(k),"onUpdate:modelValue":X[0]||(X[0]=MA=>YA(k)?k.value=MA:null),"loading-debounce-time":250,loading:!Q(o),placeholder:"Find components...","flex-1":""},null,8,["modelValue","loading"])):pA("",!0),Q(O).vitePluginDetected.value?(M(),x("button",{key:1,"px-1":"",onClick:D},[(M(),x("svg",{xmlns:"http://www.w3.org/2000/svg",style:Qt([{height:"1.1em",width:"1.1em",opacity:"0.5"},"opacity:1;color:#00dc82"]),viewBox:"0 0 24 24"},lCA))])):pA("",!0)]),y("div",uCA,[(M(!0),x(wA,null,Be(Q(A),MA=>(M(),tA(q,{key:MA.id,data:MA,onSelect:F,onMouseenter:v,onMouseleave:v},null,8,["data"]))),128))])]),_:1}),T(Q(fn),{flex:"","flex-col":""},{default:U(()=>[y("div",cCA,[Q(I)?.name?(M(),x("span",hCA,yA(Q(I).name),1)):pA("",!0),y("div",dCA,[vt(T(Q(De),{title:"Scroll to Component",icon:"i-iconoir:mouse-scroll-wheel",action:"","flex-none":"",border:!1,onClick:X[1]||(X[1]=MA=>p(Q(a)))},null,512),[[Q(Bn),"Scroll to Component"]]),Q(u)&&Q(O).vitePluginDetected.value&&Q(n)?vt((M(),tA(Q(De),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:X[2]||(X[2]=MA=>Q(TQ)(Q(u)))},null,512)),[[Q(Bn),"Open in Editor"]]):pA("",!0)])]),BCA,(M(),x("div",{key:Q(a),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(wA,null,Be(Q(N),(MA,XA)=>(M(),tA(Z,{id:XA,key:XA,"node-id":Q(r),data:MA,name:`${XA}`,"inspector-id":"components"},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),ECA="7.0.20",QCA={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},vCA=y("div",{"flex-auto":""},null,-1),pCA={flex:"~ col","mt-20":"","items-center":""},wCA={flex:"~","mt--10":"","items-center":"","justify-center":""},DCA={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},yCA=y("span",{op40:""}," Vue DevTools ",-1),mCA={op40:""},bCA={flex:"~ gap2 wrap"},MCA={p4:"","theme-card-green":"",flex:"~ col auto"},kCA=y("div",{"i-logos-vue":"","text-3xl":""},null,-1),SCA=y("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),NCA=y("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),PCA={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},FCA=y("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[y("div",{"i-carbon-star":""}),NA(" Star on GitHub ")],-1),RCA=y("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[y("div",{"i-carbon-data-enrichment":""}),NA(" Ideas & Suggestions ")],-1),LCA=y("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[y("div",{"i-carbon-plan":""}),NA(" Project Roadmap ")],-1),$CA=y("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[y("div",{"i-carbon-debug":""}),NA(" Bug Reports ")],-1),OCA=y("div",{"i-carbon-settings":""},null,-1),GCA=y("div",{"flex-auto":""},null,-1),xCA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},TCA=y("span",null,"+",-1),HCA=y("span",null,"+",-1),UCA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},KCA=y("span",null,"+",-1),_CA=y("span",null,"+",-1),YCA=y("span",null,"+",-1),JCA=y("span",null,"+",-1),zCA=DA({__name:"overview",setup(e){const{vueVersion:t}=_n(),A=_(1),r=_(0);function n(i){let o=0;for(const g of i)o++,g.children?.length&&(o+=n(g.children));return o}return Ei(()=>{CM().then(i=>{const o=JSON.parse(i);A.value=o?.routes?.length||1}),IM(i=>{A.value=i?.routes?.length||1}),qI({inspectorId:"components",filter:""}).then(i=>{const o=li(i);r.value=n(o)}),jI(i=>{!i?.data?.length||i.inspectorId!=="components"||(r.value=n(i.data))})}),(i,o)=>{const g=bM,a=En("RouterLink"),s=Qi;return M(),tA(s,{"h-screen":"","w-full":"",flex:"","of-auto":""},{default:U(()=>[y("div",QCA,[vCA,y("div",pCA,[y("div",wCA,[T(g,{"h-18":""})]),y("div",DCA,[yCA,y("code",mCA,"v"+yA(Q(ECA)),1)])]),y("div",bCA,[y("div",MCA,[kCA,y("code",null,"v"+yA(Q(t)),1)]),T(a,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:U(()=>[SCA,y("div",null,yA(Q(A))+" pages",1)]),_:1}),Q(r)?(M(),tA(a,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:U(()=>[NCA,y("div",null,yA(Q(r))+" components",1)]),_:1})):pA("",!0)]),y("div",PCA,[FCA,RCA,LCA,$CA,T(a,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:U(()=>[OCA,NA(" Settings ")]),_:1})]),GCA,y("div",xCA,[NA(" Press "),Q(pN)()?(M(),x(wA,{key:0},[T(Q(ie),null,{default:U(()=>[NA(" ⌘ Command ")]),_:1}),TCA,T(Q(ie),null,{default:U(()=>[NA(" K ")]),_:1})],64)):(M(),x(wA,{key:1},[T(Q(ie),null,{default:U(()=>[NA(" Alt ")]),_:1}),HCA,T(Q(ie),null,{default:U(()=>[NA(" K ")]),_:1})],64)),NA(" to toggle Command Palette ")]),y("div",UCA,[NA(" Press "),Q(pN)()?(M(),x(wA,{key:0},[T(Q(ie),null,{default:U(()=>[NA(" ⇧ Shift ")]),_:1}),KCA,T(Q(ie),null,{default:U(()=>[NA(" ⌥ Option ")]),_:1}),_CA,T(Q(ie),null,{default:U(()=>[NA(" D ")]),_:1})],64)):(M(),x(wA,{key:1},[T(Q(ie),null,{default:U(()=>[NA(" Shift ")]),_:1}),YCA,T(Q(ie),null,{default:U(()=>[NA(" Alt ")]),_:1}),JCA,T(Q(ie),null,{default:U(()=>[NA(" D ")]),_:1})],64)),NA(" to toggle DevTools ")])])]),_:1})}}});function WCA(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var A=e.indexOf("Trident/");if(A>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let Cf;function h0(){h0.init||(h0.init=!0,Cf=WCA()!==-1)}var HQ={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){h0(),cr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Cf&&this.$el.appendChild(e),e.data="about:blank",Cf||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Cf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const qCA=gU();BQ("data-v-b329ee4c");const jCA={class:"resize-observer",tabindex:"-1"};fQ();const VCA=qCA((e,t,A,r,n,i)=>(M(),tA("div",jCA)));HQ.render=VCA;HQ.__scopeId="data-v-b329ee4c";HQ.__file="src/components/ResizeObserver.vue";function If(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?If=function(t){return typeof t}:If=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function ZCA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JF(e,t){for(var A=0;A<t.length;A++){var r=t[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XCA(e,t,A){return t&&JF(e.prototype,t),A&&JF(e,A),e}function zF(e){return AIA(e)||eIA(e)||tIA(e)||rIA()}function AIA(e){if(Array.isArray(e))return d0(e)}function eIA(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tIA(e,t){if(e){if(typeof e=="string")return d0(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);if(A==="Object"&&e.constructor&&(A=e.constructor.name),A==="Map"||A==="Set")return Array.from(e);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d0(e,t)}}function d0(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function rIA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
28
28
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nIA(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function iIA(e,t){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,n,i,o=function(a){for(var s=arguments.length,C=new Array(s>1?s-1:0),I=1;I<s;I++)C[I-1]=arguments[I];if(i=C,!(r&&a===n)){var l=A.leading;typeof l=="function"&&(l=l(a,n)),(!r||a!==n)&&l&&e.apply(void 0,[a].concat(zF(i))),n=a,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[a].concat(zF(i))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function W_(e,t){if(e===t)return!0;if(If(e)==="object"){for(var A in e)if(!W_(e[A],t[A]))return!1;return!0}return!1}var oIA=function(){function e(t,A,r){ZCA(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(A,r)}return XCA(e,[{key:"createObserver",value:function(A,r){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=nIA(A),this.callback=function(g,a){n.options.callback(g,a),g&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=this.options.throttleOptions||{},o=i.leading;this.callback=iIA(this.callback,this.options.throttle,{leading:function(a){return o==="both"||o==="visible"&&a||o==="hidden"&&!a}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(g){var a=g[0];if(g.length>1){var s=g.find(function(I){return I.isIntersecting});s&&(a=s)}if(n.callback){var C=a.isIntersecting&&a.intersectionRatio>=n.threshold;if(C===n.oldResult)return;n.oldResult=C,n.callback(C,a)}},this.options.intersection),cr(function(){n.observer&&n.observer.observe(n.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function q_(e,t,A){var r=t.value;if(r)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var n=new oIA(e,r,A);e._vue_visibilityState=n}}function gIA(e,t,A){var r=t.value,n=t.oldValue;if(!W_(r,n)){var i=e._vue_visibilityState;if(!r){j_(e);return}i?i.createObserver(r,A):q_(e,{value:r},A)}}function j_(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var aIA={beforeMount:q_,updated:gIA,unmounted:j_},sIA={itemsLimit:1e3},CIA=/(auto|scroll)/;function V_(e,t){return e.parentNode===null?t:V_(e.parentNode,t.concat([e]))}var Yp=function(t,A){return getComputedStyle(t,null).getPropertyValue(A)},IIA=function(t){return Yp(t,"overflow")+Yp(t,"overflow-y")+Yp(t,"overflow-x")},lIA=function(t){return CIA.test(IIA(t))};function WF(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=V_(e.parentNode,[]),A=0;A<t.length;A+=1)if(lIA(t[A]))return t[A];return document.scrollingElement||document.documentElement}}function B0(e){"@babel/helpers - typeof";return B0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B0(e)}var uIA={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function cIA(){return this.items.length&&B0(this.items[0])!=="object"}var f0=!1;if(typeof window<"u"){f0=!1;try{var hIA=Object.defineProperty({},"passive",{get:function(){f0=!0}});window.addEventListener("test",null,hIA)}catch{}}let dIA=0;var UQ={name:"RecycleScroller",components:{ResizeObserver:HQ},directives:{ObserveVisibility:aIA},props:{...uIA,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,A=this.sizeField,r=this.minItemSize;let n=1e4,i=0,o;for(let g=0,a=t.length;g<a;g++)o=t[g][A]||r,o<n&&(n=o),i+=o,e[g]={accumulator:i,size:o};return this.$_computedMinItemSize=n,e}return[]},simpleArray:cIA,itemIndexByKey(){const{keyField:e,items:t}=this,A={};for(let r=0,n=t.length;r<n;r++)A[t[r][e]]=r;return A}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,A,r,n){const i=z1({id:dIA++,index:t,used:!0,key:r,type:n}),o=Y1({item:A,position:0,nr:i});return e.push(o),o},unuseView(e,t=!1){const A=this.$_unusedViews,r=e.nr.type;let n=A.get(r);n||(n=[],A.set(r,n)),n.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:A}=this.updateVisibleItems(!1,!0);A||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const A=this.itemSize,r=this.gridItems||1,n=this.itemSecondarySize||A,i=this.$_computedMinItemSize,o=this.typeField,g=this.simpleArray?null:this.keyField,a=this.items,s=a.length,C=this.sizes,I=this.$_views,l=this.$_unusedViews,u=this.pool,c=this.itemIndexByKey;let h,d,B,f,E;if(!s)h=d=f=E=B=0;else if(this.$_prerender)h=f=0,d=E=Math.min(this.prerender,a.length),B=null;else{const m=this.getScroll();if(t){let O=m.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),A===null&&O<i||O<A)return{continuous:!0}}this.$_lastUpdateScrollPosition=m.start;const R=this.buffer;m.start-=R,m.end+=R;let k=0;if(this.$refs.before&&(k=this.$refs.before.scrollHeight,m.start-=k),this.$refs.after){const O=this.$refs.after.scrollHeight;m.end+=O}if(A===null){let O,H=0,X=s-1,q=~~(s/2),Z;do Z=q,O=C[q].accumulator,O<m.start?H=q:q<s-1&&C[q+1].accumulator>m.start&&(X=q),q=~~((H+X)/2);while(q!==Z);for(q<0&&(q=0),h=q,B=C[s-1].accumulator,d=q;d<s&&C[d].accumulator<m.end;d++);for(d===-1?d=a.length-1:(d++,d>s&&(d=s)),f=h;f<s&&k+C[f].accumulator<m.start;f++);for(E=f;E<s&&k+C[E].accumulator<m.end;E++);}else{h=~~(m.start/A*r);const O=h%r;h-=O,d=Math.ceil(m.end/A*r),f=Math.max(0,Math.floor((m.start-k)/A*r)),E=Math.floor((m.end-k)/A*r),h<0&&(h=0),d>s&&(d=s),f<0&&(f=0),E>s&&(E=s),B=Math.ceil(s/r)*A}}d-h>sIA.itemsLimit&&this.itemsLimitError(),this.totalSize=B;let v;const p=h<=this.$_endIndex&&d>=this.$_startIndex;if(p)for(let m=0,R=u.length;m<R;m++)v=u[m],v.nr.used&&(e&&(v.nr.index=c[v.item[g]]),(v.nr.index==null||v.nr.index<h||v.nr.index>=d)&&this.unuseView(v));const D=p?null:new Map;let F,N,S;for(let m=h;m<d;m++){F=a[m];const R=g?F[g]:F;if(R==null)throw new Error(`Key is ${R} on item (keyField is '${g}')`);if(v=I.get(R),!A&&!C[m].size){v&&this.unuseView(v);continue}N=F[o];let k=l.get(N),O=!1;if(!v)p?k&&k.length?v=k.pop():v=this.addView(u,m,F,R,N):(S=D.get(N)||0,(!k||S>=k.length)&&(v=this.addView(u,m,F,R,N),this.unuseView(v,!0),k=l.get(N)),v=k[S],D.set(N,S+1)),I.delete(v.nr.key),v.nr.used=!0,v.nr.index=m,v.nr.key=R,v.nr.type=N,I.set(R,v),O=!0;else if(!v.nr.used&&(v.nr.used=!0,O=!0,k)){const H=k.indexOf(v);H!==-1&&k.splice(H,1)}v.item=F,O&&(m===a.length-1&&this.$emit("scroll-end"),m===0&&this.$emit("scroll-start")),A===null?(v.position=C[m-1].accumulator,v.offset=0):(v.position=Math.floor(m/r)*A,v.offset=m%r*n)}return this.$_startIndex=h,this.$_endIndex=d,this.emitUpdate&&this.$emit("update",h,d,f,E),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:p}},getListenerTarget(){let e=WF(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,A=t==="vertical";let r;if(this.pageMode){const n=e.getBoundingClientRect(),i=A?n.height:n.width;let o=-(A?n.top:n.left),g=A?window.innerHeight:window.innerWidth;o<0&&(g+=o,o=0),o+g>i&&(g=i-o),r={start:o,end:o+g}}else A?r={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:r={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,f0?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const A=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/A)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let A,r,n;if(this.pageMode){const i=WF(this.$el),o=i.tagName==="HTML"?0:i[t.scroll],g=i.getBoundingClientRect(),s=this.$el.getBoundingClientRect()[t.start]-g[t.start];A=i,r=t.scroll,n=e+o+s}else A=this.$el,r=t.scroll,n=e;A[r]=n},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const BIA={key:0,ref:"before",class:"vue-recycle-scroller__slot"},fIA={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function EIA(e,t,A,r,n,i){const o=En("ResizeObserver"),g=EQ("observe-visibility");return vt((M(),x("div",{class:bA(["vue-recycle-scroller",{ready:n.ready,"page-mode":A.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...a)=>i.handleScroll&&i.handleScroll(...a))},[e.$slots.before?(M(),x("div",BIA,[VA(e.$slots,"before")],512)):pA("v-if",!0),(M(),tA(Kg(A.listTag),{ref:"wrapper",style:Qt({[e.direction==="vertical"?"minHeight":"minWidth"]:n.totalSize+"px"}),class:bA(["vue-recycle-scroller__item-wrapper",A.listClass])},{default:U(()=>[(M(!0),x(wA,null,Be(n.pool,a=>(M(),tA(Kg(A.itemTag),Ir({key:a.nr.id,style:n.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${a.position}px) translate${e.direction==="vertical"?"X":"Y"}(${a.offset}px)`,width:A.gridItems?`${e.direction==="vertical"&&A.itemSecondarySize||A.itemSize}px`:void 0,height:A.gridItems?`${e.direction==="horizontal"&&A.itemSecondarySize||A.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[A.itemClass,{hover:!A.skipHover&&n.hoverKey===a.nr.key}]]},VX(A.skipHover?{}:{mouseenter:()=>{n.hoverKey=a.nr.key},mouseleave:()=>{n.hoverKey=null}})),{default:U(()=>[VA(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),VA(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(M(),x("div",fIA,[VA(e.$slots,"after")],512)):pA("v-if",!0),T(o,{onNotify:i.handleResize},null,8,["onNotify"])],34)),[[g,i.handleVisibilityChange]])}UQ.render=EIA;UQ.__file="src/components/RecycleScroller.vue";const QIA=["onClick"],vIA={class:"selectable-item-label"},PM=DA({__name:"InspectorTree",props:{modelValue:{},data:{}},emits:["update:modelValue"],setup(e,{emit:t}){const A=t;function r(n){A("update:modelValue",n)}return(n,i)=>{const o=z_;return M(),tA(Q(UQ),{items:n.data,"min-item-size":32,"key-field":"id","page-mode":""},{default:U(({item:g})=>[y("div",{class:bA(["selectable-item",{active:n.modelValue===g.id}]),onClick:a=>r(g.id)},[y("span",vIA,yA(g.label),1),(M(!0),x(wA,null,Be(g.tags,(a,s)=>(M(),tA(o,{key:s,tag:a},null,8,["tag"]))),128))],10,QIA)]),_:1},8,["items"])}}}),pIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},Yl="pinia",wIA=DA({__name:"pinia",setup(e){const t=_(""),A=_([]),r=_({});function n(o){Yc({inspectorId:Yl,nodeId:o}).then(g=>{r.value=li(g)})}function i(){r.value={}}return Ae(t,()=>{i(),n(t.value)}),fI("inspector-state"),Ei(()=>{qI({inspectorId:Yl,filter:""}).then(o=>{const g=li(o);A.value=g,!t.value&&g.length&&(t.value=g[0].id,n(g[0].id))}),jI(o=>{!o?.data.length||o.inspectorId!==Yl||(A.value=o.data,!t.value&&o.data.length&&(t.value=o.data[0].id,n(o.data[0].id)))}),Jc(o=>{!o||!o?.state?.length||o.inspectorId!==Yl||(r.value={state:o.state,getters:o.getters})})}),(o,g)=>{const a=PM,s=Ah,C=Qi;return M(),tA(C,{"h-screen":""},{default:U(()=>[T(Q(XI),null,{default:U(()=>[T(Q(fn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",pIA,[T(a,{modelValue:Q(t),"onUpdate:modelValue":g[0]||(g[0]=I=>YA(t)?t.value=I:null),data:Q(A)},null,8,["modelValue","data"])])]),_:1}),T(Q(fn),{flex:"","flex-col":""},{default:U(()=>[(M(),x("div",{key:Q(t),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(wA,null,Be(Q(r),(I,l)=>(M(),tA(s,{id:l,key:l,"inspector-id":Yl,"node-id":Q(t),data:I,name:`${l}`},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),DIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},yIA=DA({__name:"router",setup(e){const t=_(""),A=_([]),r=_({}),n=_n(),i=W(()=>`router-inspector:${n.appRecords.value.find(s=>s.id===n.activeAppRecordId.value)?.routerId??0}`);fI("inspector-state");function o(a){Yc({inspectorId:i.value,nodeId:a}).then(s=>{r.value=li(s)})}function g(){r.value={}}return Ae(t,()=>{g(),o(t.value)}),Ei(()=>{qI({inspectorId:i.value,filter:""}).then(a=>{const s=li(a);A.value=s,!t.value&&s.length&&(t.value=s[0].id,o(s[0].id))}),jI(a=>{!a?.data?.length||a.inspectorId!==i.value||(A.value=a.data,!t.value&&a.data.length&&(t.value=a.data[0].id,o(a.data[0].id)))}),Jc(a=>{!a||!a.state||a.inspectorId!==i.value||(r.value={state:a.state})})}),(a,s)=>{const C=PM,I=Ah,l=Qi;return M(),tA(l,{"h-screen":""},{default:U(()=>[T(Q(XI),null,{default:U(()=>[T(Q(fn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",DIA,[T(C,{modelValue:Q(t),"onUpdate:modelValue":s[0]||(s[0]=u=>YA(t)?t.value=u:null),data:Q(A)},null,8,["modelValue","data"])])]),_:1}),T(Q(fn),{flex:"","flex-col":""},{default:U(()=>[(M(),x("div",{key:Q(t),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(wA,null,Be(Q(r),(u,c)=>(M(),tA(I,{id:c,key:c,data:u,name:`${c}`,"inspector-id":"router"},null,8,["id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),mIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},xd="vue-i18n-resource-inspector",bIA=DA({__name:"i18n",setup(e){const t=_(""),A=_([]),r=_({});function n(o){Yc({inspectorId:xd,nodeId:o}).then(g=>{r.value=li(g)})}function i(){r.value={}}return Ae(t,()=>{i(),n(t.value)}),fI("inspector-state"),Ei(()=>{qI({inspectorId:xd,filter:""}).then(o=>{const g=li(o);A.value=g,!t.value&&g.length&&(t.value=g[0].id,n(g[0].id))}),jI(o=>{o?.data.length&&(A.value=o.data,!t.value&&o.data.length&&(t.value=o.data[0].id,n(o.data[0].id)))}),Jc(o=>{!o||!o?.state?.length||o.inspectorId!==xd||(r.value={state:o.state})})}),Ss(()=>{sK()}),(o,g)=>{const a=PM,s=Ah,C=Qi;return M(),tA(C,{"h-screen":""},{default:U(()=>[T(Q(XI),null,{default:U(()=>[T(Q(fn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",mIA,[T(a,{modelValue:Q(t),"onUpdate:modelValue":g[0]||(g[0]=I=>YA(t)?t.value=I:null),data:Q(A)},null,8,["modelValue","data"])])]),_:1}),T(Q(fn),{flex:"","flex-col":""},{default:U(()=>[(M(),x("div",{key:Q(t),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(wA,null,Be(Q(r),(I,l)=>(M(),tA(s,{id:l,key:l,"inspector-id":xd,"node-id":Q(t),data:I,name:`${l}`},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),MIA={class:"h-full flex flex-col items-center justify-center p-12 text-center text-gray-400 space-y-6 dark:text-gray-600"},kIA=DA({__name:"EmptyPane",props:{icon:{},inline:{type:Boolean}},setup(e){const t=e;return(A,r)=>(M(),x("div",MIA,[T(Q(De),Oc(zI(t)),null,16),y("div",null,[VA(A.$slots,"default")])]))}}),SIA=["onClick"],NIA={class:"flex-1 truncate font-mono space-x-1"},PIA=["innerHTML"],FIA={key:0,class:"flex-none text-xs font-mono op-50"},RIA=DA({__name:"TimelineEvent",props:{modelValue:{},data:{}},emits:["update:modelValue"],setup(e,{emit:t}){const A=t;function r(n){A("update:modelValue",n)}return(n,i)=>(M(),tA(Q(UQ),{items:n.data,"min-item-size":42,"key-field":"id","page-mode":""},{default:U(({item:o})=>[y("li",{class:bA(["flex cursor-pointer items-center border-b px-2 py-2 text-gray-200 dark:border-bluegray-800",{"hover:bg-blue-100 dark:hover:bg-blue-900 text-bluegray-800 dark:text-bluegray-200":n.modelValue!==o.id,"bg-primary-500 text-white":n.modelValue===o.id}]),onClick:g=>r(o.id)},[y("span",NIA,[y("span",{class:bA(["font-medium",{"text-purple-600 dark:text-purple-400":n.modelValue!==o.id}])},[y("span",null,yA(o.title||"Event"),1)],2),o.subtitle?(M(),x("span",{key:0,class:"op-75",innerHTML:o.subtitle},null,8,PIA)):pA("",!0)]),o.time?(M(),x("span",FIA,yA(Q(rCA)(o.time)),1)):pA("",!0)],10,SIA)]),_:1},8,["items"]))}}),LIA={"overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},$IA=DA({__name:"TimelineLayer",props:{modelValue:{},data:{}},emits:["update:modelValue"],setup(e,{emit:t}){const A=e,r=t;function n(){r("update:modelValue",A.data.id)}const i=W(()=>`#${c0(A.data.color)}`);return(o,g)=>(M(),x("div",{class:"selectable-item",style:Qt(o.modelValue===o.data.id?{color:i.value}:{}),onClick:n},[y("span",LIA,yA(o.data.label),1)],4))}}),OIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},GIA={"h-screen":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},xIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},TIA=DA({__name:"timeline",setup(e){const t=_([]),A=_({}),r=_(""),n=_("");fI("inspector-state");const i=W(()=>A.value[r.value]?.map((I,l)=>({...I,id:`${l}`}))??[]),o=W(()=>i.value?.[+(n.value??0)]?.data??{}),g=W(()=>{const I=[];for(const l in o.value)I.push({key:l,type:l,editable:!1,value:o.value[l]});return I}),a=W(()=>{const I=t.value.find(c=>c.id===r.value)?.groups,l=i.value?.[+(n.value??0)]?.groupId,u=I?.[l];if(u)return[{key:"events",type:"events",editable:!1,value:u.events.length},u.duration&&{key:"duration",type:"duration",editable:!1,value:`${u.duration}ms`}].filter(Boolean)}),s=W(()=>({"event info":g.value,...a.value&&{"group info":a.value}}));function C(I,l){const u=t.value.find(c=>c.id===I);u&&(`${l.groupId}`!==_c||l.groupId!=null)&&(u.groups[l.groupId]??={events:[],duration:0},u.groups[l.groupId].events.push(l),u.groups[l.groupId].duration=l.time-u.groups[l.groupId].events?.[0]?.time)}return Ei(()=>{lK().then(I=>{t.value=I,t.value.forEach(l=>{A.value[l.id]=[],l.groups={}}),r.value||(r.value=I?.length?I[0].id:"")}),wK(I=>{if(!I)return;const{layerId:l,event:u}=I;A.value[l].push(u),C(l,u)})}),Ae(()=>i.value.length,I=>{I&&(n.value="0")}),(I,l)=>{const u=$IA,c=RIA,h=kIA,d=Ah,B=Qi;return Q(t).length?(M(),tA(B,{key:0},{default:U(()=>[T(Q(XI),null,{default:U(()=>[T(Q(fn),{border:"r base",size:"20"},{default:U(()=>[y("div",OIA,[(M(!0),x(wA,null,Be(Q(t),f=>(M(),tA(u,{key:f.id,modelValue:Q(r),"onUpdate:modelValue":l[0]||(l[0]=E=>YA(r)?r.value=E:null),data:f},null,8,["modelValue","data"]))),128))])]),_:1}),T(Q(fn),{border:"r base",size:"45"},{default:U(()=>[y("div",GIA,[Q(i).length?(M(),tA(c,{key:0,modelValue:Q(n),"onUpdate:modelValue":l[1]||(l[1]=f=>YA(n)?n.value=f:null),data:Q(i)},null,8,["modelValue","data"])):(M(),tA(h,{key:1,icon:"i-ic-baseline-inbox"},{default:U(()=>[NA(" No events ")]),_:1}))])]),_:1}),T(Q(fn),{size:"35"},{default:U(()=>[y("div",xIA,[Q(n)?(M(!0),x(wA,{key:0},Be(Q(s),(f,E)=>(M(),tA(d,{id:`${E}`,key:E+Date.now(),data:f,name:`${E}`,"disable-edit":!0,"node-id":"","inspector-id":""},null,8,["id","data","name"]))),128)):(M(),tA(h,{key:1,icon:"i-carbon:menu"},{default:U(()=>[NA(" Select an event to display details ")]),_:1}))])]),_:1})]),_:1})]),_:1})):(M(),tA(h,{key:1,icon:"i-ic-baseline-inbox"},{default:U(()=>[NA(" No layers ")]),_:1}))}}}),HIA={flex:"~ gap-3","items-center":""},FM=DA({__name:"IconTitle",props:{icon:{},text:{}},setup(e){return(t,A)=>(M(),x("div",HIA,[t.icon?(M(),x("div",{key:0,class:bA(t.icon)},null,2)):pA("",!0),VA(t.$slots,"default",{},()=>[y("div",null,yA(t.text),1)])]))}}),Z_=e=>(BQ("data-v-d09fbc98"),e=e(),fQ(),e),UIA=["open"],KIA={"text-base":""},_IA={key:0,"text-sm":"",op50:""},YIA=Z_(()=>y("div",{class:"flex-auto"},null,-1)),JIA=Z_(()=>y("div",{class:"x-divider"},null,-1)),zIA=DA({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(e){const A=xQ(e,"open",void 0,{passive:!0});function r(n){A.value=n.target.open}return(n,i)=>{const o=FM,g=EQ("lazy-show");return M(),x(wA,null,[y("details",{open:Q(A),onToggle:r},[y("summary",{class:bA(["cursor-pointer select-none hover:bg-active p4",n.collapse?"":"pointer-events-none"])},[T(o,{icon:n.icon,text:n.text,"text-xl":"",transition:"",class:bA(Q(A)?"op100":"op60")},{default:U(()=>[y("div",null,[y("div",KIA,[VA(n.$slots,"text",{},()=>[NA(yA(n.text),1)],!0)]),n.description||n.$slots.description?(M(),x("div",_IA,[VA(n.$slots,"description",{},()=>[NA(yA(n.description),1)],!0)])):pA("",!0)]),YIA,VA(n.$slots,"actions",{},void 0,!0),n.collapse?(M(),tA(Q(De),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"",op75:"",transition:"","duration-500":"","text-base":""})):pA("",!0)]),_:3},8,["icon","text","class"])],2),vt((M(),x("div",{class:bA(["flex flex-col flex-gap2 pb6 pt2",typeof n.padding=="string"?n.padding:n.padding?"px4":""])},[VA(n.$slots,"details",{},void 0,!0),y("div",{class:bA([n.containerClass,"mt1"])},[VA(n.$slots,"default",{},void 0,!0)],2),VA(n.$slots,"footer",{},void 0,!0)],2)),[[g,Q(A)]])],40,UIA),JIA],64)}}}),X_=Vc(zIA,[["__scopeId","data-v-d09fbc98"]]),WIA={block:"","cursor-pointer":""},qIA={p2:""},jIA=["onSubmit"],VIA=y("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),ZIA={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},XIA={key:1},AlA=DA({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(e,{emit:t}){const A=e,r=t;function n(C){return C.split(/(:\w+[\?\*]?)/).filter(Boolean)}const i=_([]),o=W(()=>n(A.route.path));Er(()=>{i.value=Array.from({length:o.value.length},()=>"")});const g=W(()=>o.value.map((C,I)=>C[0]===":"?i.value[I]:C).join("").replace(/\/+/g,"/")),a=W(()=>A.route.path.includes(":"));function s(){r("navigate",g.value)}return(C,I)=>Q(a)?(M(),tA(Q(BI),{key:1},{popper:U(({hide:l})=>[y("div",qIA,[y("form",{flex:"~ col",onSubmit:fr(()=>{s(),l()},["prevent"])},[Q(a)?(M(),x(wA,{key:0},[VIA,y("div",ZIA,[(M(!0),x(wA,null,Be(Q(o),(u,c)=>(M(),x(wA,{key:c},[u[0]===":"?(M(),tA(Q(bo),{key:0,modelValue:Q(i)[c],"onUpdate:modelValue":h=>Q(i)[c]=h,"n-sm":"","w-20":"",placeholder:u.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(M(),x("span",XIA,yA(u),1))],64))),128))])],64)):pA("",!0),T(Q(ie),{block:"",type:"primary"},{default:U(()=>[NA(" Navigate ")]),_:1})],40,jIA)])]),default:U(()=>[y("code",WIA,[(M(!0),x(wA,null,Be(Q(o),(l,u)=>(M(),x("span",{key:u,class:bA(l[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},yA(l[0]===":"?l.slice(1):l),3))),128))])]),_:1})):(M(),x("button",{key:0,onClick:s},[y("code",null,yA(C.route.path),1)]))}}),elA={"w-full":""},tlA=y("thead",{border:"b base","px-3":""},[y("tr",null,[y("th",{"text-left":""}),y("th",{"text-left":""}," Route Path "),y("th",{"text-left":""}," Name "),y("th",{"text-left":""})])],-1),rlA={"w-20":"","pr-1":""},nlA={flex:"","items-center":"","justify-end":""},ilA={"text-sm":""},olA={flex:"inline gap3","items-center":""},glA={op0:"","group-hover:op100":"",flex:"~ gap1"},alA=["onClick"],slA=y("div",{"i-carbon-script-reference":""},null,-1),ClA=[slA],IlA={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},llA=DA({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate"],setup(e){const t=e,A=W(()=>[...t.pages].sort((i,o)=>i.path.localeCompare(o.path))),r=W(()=>Xc.value),n=_n();return(i,o)=>{const g=AlA;return M(),x("div",null,[y("table",elA,[tlA,y("tbody",null,[(M(!0),x(wA,null,Be(Q(A),a=>(M(),x("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[y("td",rlA,[y("div",nlA,[i.matched.find(s=>s.name===a.name)?(M(),tA(Q(pF),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):i.matchedPending.find(s=>s.name===a.name)?(M(),tA(Q(pF),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):pA("",!0)])]),y("td",ilA,[y("div",olA,[T(g,{route:a,class:bA(i.matched.find(s=>s.name===a.name)?"text-primary-400":i.matchedPending.find(s=>s.name===a.name)?"text-teal":""),onNavigate:o[0]||(o[0]=s=>i.$emit("navigate",s))},null,8,["route","class"]),y("div",glA,[(a.file||a.meta?.file)&&Q(n).vitePluginDetected.value&&Q(r)?(M(),x("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:s=>Q(TQ)(a.file||a.meta?.file)},ClA,8,alA)):pA("",!0)])])]),y("td",IlA,yA(a.name),1)]))),128))])])])}}}),ulA={"h-full":"","of-auto":""},clA={border:"b base",flex:"~ col gap1",px4:"",py3:""};const hlA={key:1,op50:""},dlA=y("span",null,[NA("Press "),y("b",{"font-bold":""},"Enter"),NA(" to navigate")],-1),BlA={key:0,"text-orange":"",op75:""},flA={key:1,op50:""},ElA=DA({__name:"pages",setup(e){const t=_(""),A=_(null),r=_([]),n=W(()=>t.value===A.value?.path?[]:r.value),i=_([]);function o(s){i.value=s.routes,A.value=s.currentRoute,t.value=A.value?.path??"/"}function g(){n.value.length&&a(t.value)}function a(s){CK({path:s})}return Ei(()=>{CM().then(s=>{o(JSON.parse(s))}),IM(s=>{o(s)})}),DM(t,()=>{t.value!==A.value?.path&&IK(t.value).then(s=>{r.value=JSON.parse(s)})}),(s,C)=>{const I=llA,l=X_,u=Qi;return M(),tA(u,{block:"","h-screen":"","of-auto":""},{default:U(()=>[y("div",ulA,[y("div",clA,[y("div",null,[(M(),x("span",hlA,"Current route"))]),T(Q(bo),{modelValue:Q(t),"onUpdate:modelValue":C[0]||(C[0]=c=>YA(t)?t.value=c:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:bA(Q(A)?.path===Q(t)?"":Q(n).length?"text-green!":"text-orange!"),onKeydown:$U(g,["enter"])},null,8,["modelValue","class"]),y("div",null,[Q(A)?.path!==Q(t)?(M(),x(wA,{key:0},[dlA,Q(n).length?pA("",!0):(M(),x("span",BlA," (no match)"))],64)):(M(),x("span",flA,"Edit path above to navigate"))])]),T(l,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${Q(i).length} routes registered in your application`,padding:!1},{default:U(()=>[Q(i).length?(M(),tA(I,{key:0,pages:Q(i),matched:Q(A)?.matched??[],"matched-pending":Q(n),onNavigate:a},null,8,["pages","matched","matched-pending"])):pA("",!0)]),_:1},8,["description"])])]),_:1})}}});var ai;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"})(ai||(ai={}));var EI;(function(e){function t(C){return C.toString(2).padStart(32,"0")}e.toBinaryStr=t;function A(C){const I=e.getLanguageId(C),l=e.getTokenType(C),u=e.getFontStyle(C),c=e.getForeground(C),h=e.getBackground(C);console.log({languageId:I,tokenType:l,fontStyle:u,foreground:c,background:h})}e.print=A;function r(C){return(C&255)>>>0}e.getLanguageId=r;function n(C){return(C&768)>>>8}e.getTokenType=n;function i(C){return(C&1024)!==0}e.containsBalancedBrackets=i;function o(C){return(C&30720)>>>11}e.getFontStyle=o;function g(C){return(C&16744448)>>>15}e.getForeground=g;function a(C){return(C&4278190080)>>>24}e.getBackground=a;function s(C,I,l,u,c,h,d){let B=e.getLanguageId(C),f=e.getTokenType(C),E=e.containsBalancedBrackets(C)?1:0,v=e.getFontStyle(C),p=e.getForeground(C),D=e.getBackground(C);return I!==0&&(B=I),l!==8&&(f=l),u!==null&&(E=u?1:0),c!==-1&&(v=c),h!==0&&(p=h),d!==0&&(D=d),(B<<0|f<<8|E<<10|v<<11|p<<15|D<<24)>>>0}e.set=s})(EI||(EI={}));function lE(e,t){const A=[],r=QlA(e);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let s=o();if(A.push({matcher:s,priority:a}),n!==",")break;n=r.next()}return A;function i(){if(n==="-"){n=r.next();const a=i();return s=>!!a&&!a(s)}if(n==="("){n=r.next();const a=g();return n===")"&&(n=r.next()),a}if(qF(n)){const a=[];do a.push(n),n=r.next();while(qF(n));return s=>t(a,s)}return null}function o(){const a=[];let s=i();for(;s;)a.push(s),s=i();return C=>a.every(I=>I(C))}function g(){const a=[];let s=o();for(;s&&(a.push(s),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");s=o()}return C=>a.some(I=>I(C))}}function qF(e){return!!e&&!!e.match(/[\w\.:]+/)}function QlA(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,A=t.exec(e);return{next:()=>{if(!A)return null;const r=A[0];return A=t.exec(e),r}}}function AY(e){typeof e.dispose=="function"&&e.dispose()}function vlA(e){return RM(e)}function RM(e){return Array.isArray(e)?plA(e):typeof e=="object"?wlA(e):e}function plA(e){let t=[];for(let A=0,r=e.length;A<r;A++)t[A]=RM(e[A]);return t}function wlA(e){let t={};for(let A in e)t[A]=RM(e[A]);return t}function eY(e,...t){return t.forEach(A=>{for(let r in A)e[r]=A[r]}),e}function tY(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?tY(e.substring(0,e.length-1)):e.substr(~t+1)}let Jp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class Td{static hasCaptures(t){return t===null?!1:(Jp.lastIndex=0,Jp.test(t))}static replaceCaptures(t,A,r){return t.replace(Jp,(n,i,o,g)=>{let a=r[parseInt(i||o,10)];if(a){let s=A.substring(a.start,a.end);for(;s[0]===".";)s=s.substring(1);switch(g){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return n})}}function rY(e,t){return e<t?-1:e>t?1:0}function nY(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let A=e.length,r=t.length;if(A===r){for(let n=0;n<A;n++){let i=rY(e[n],t[n]);if(i!==0)return i}return 0}return A-r}function jF(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function iY(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class oY{fn;cache=new Map;constructor(t){this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const A=this.fn(t);return this.cache.set(t,A),A}}class oc{scopeName;constructor(t){this.scopeName=t}toKey(){return this.scopeName}}class DlA{scopeName;ruleName;constructor(t,A){this.scopeName=t,this.ruleName=A}toKey(){return`${this.scopeName}#${this.ruleName}`}}class ylA{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const A=t.toKey();this._seenReferenceKeys.has(A)||(this._seenReferenceKeys.add(A),this._references.push(t))}}class mlA{repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(t,A){this.repo=t,this.initialScopeName=A,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new oc(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const A=new ylA;for(const r of t)blA(r,this.initialScopeName,this.repo,A);for(const r of A.references)if(r instanceof oc){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}}function blA(e,t,A,r){const n=A.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=A.lookup(t);e instanceof oc?lf({baseGrammar:i,selfGrammar:n},r):E0(e.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},r);const o=A.injections(e.scopeName);if(o)for(const g of o)r.add(new oc(g))}function E0(e,t,A){if(t.repository&&t.repository[e]){const r=t.repository[e];uE([r],t,A)}}function lf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&uE(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&uE(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function uE(e,t,A){for(const r of e){if(A.visitedRule.has(r))continue;A.visitedRule.add(r);const n=r.repository?eY({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&uE(r.patterns,{...t,repository:n},A);const i=r.include;if(!i)continue;const o=gY(i);switch(o.kind){case 0:lf({...t,selfGrammar:t.baseGrammar},A);break;case 1:lf(t,A);break;case 2:E0(o.ruleName,{...t,repository:n},A);break;case 3:case 4:const g=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(g){const a={baseGrammar:t.baseGrammar,selfGrammar:g,repository:n};o.kind===4?E0(o.ruleName,a,A):lf(a,A)}else o.kind===4?A.add(new DlA(o.scopeName,o.ruleName)):A.add(new oc(o.scopeName));break}}}class MlA{kind=0}class klA{kind=1}class SlA{ruleName;kind=2;constructor(t){this.ruleName=t}}class NlA{scopeName;kind=3;constructor(t){this.scopeName=t}}class PlA{scopeName;ruleName;kind=4;constructor(t,A){this.scopeName=t,this.ruleName=A}}function gY(e){if(e==="$base")return new MlA;if(e==="$self")return new klA;const t=e.indexOf("#");if(t===-1)return new NlA(e);if(t===0)return new SlA(e.substring(1));{const A=e.substring(0,t),r=e.substring(t+1);return new PlA(A,r)}}const FlA=/\\(\d+)/,VF=/\\(\d+)/g,RlA=-1,aY=-2;class eh{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,A,r,n){this.$location=t,this.id=A,this._name=r||null,this._nameIsCapturing=Td.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Td.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${tY(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,A){return!this._nameIsCapturing||this._name===null||t===null||A===null?this._name:Td.replaceCaptures(this._name,t,A)}getContentName(t,A){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Td.replaceCaptures(this._contentName,t,A)}}class LlA extends eh{retokenizeCapturedWithRuleId;constructor(t,A,r,n,i){super(t,A,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,A){throw new Error("Not supported!")}compile(t,A){throw new Error("Not supported!")}compileAG(t,A,r,n){throw new Error("Not supported!")}}class $lA extends eh{_match;captures;_cachedCompiledPatterns;constructor(t,A,r,n,i){super(t,A,r,null),this._match=new ls(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,A){A.push(this._match)}compile(t,A){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,A,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class ZF extends eh{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,A,r,n,i){super(t,A,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,A){for(const r of this.patterns)t.getRule(r).collectPatterns(t,A)}compile(t,A){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,A,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Q0 extends eh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,A,r,n,i,o,g,a,s,C){super(t,A,r,n),this._begin=new ls(i,this.id),this.beginCaptures=o,this._end=new ls(g||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=s||!1,this.patterns=C.patterns,this.hasMissingPatterns=C.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,A){return this._end.resolveBackReferences(t,A)}collectPatterns(t,A){A.push(this._begin)}compile(t,A){return this._getCachedCompiledPatterns(t,A).compile(t)}compileAG(t,A,r,n){return this._getCachedCompiledPatterns(t,A).compileAG(t,r,n)}_getCachedCompiledPatterns(t,A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gc;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,A):this._cachedCompiledPatterns.setSource(0,A)),this._cachedCompiledPatterns}}class cE extends eh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,A,r,n,i,o,g,a,s){super(t,A,r,n),this._begin=new ls(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ls(g,aY),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,A){return this._while.resolveBackReferences(t,A)}collectPatterns(t,A){A.push(this._begin)}compile(t,A){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,A,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gc;for(const A of this.patterns)t.getRule(A).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,A){return this._getCachedCompiledWhilePatterns(t,A).compile(t)}compileWhileAG(t,A,r,n){return this._getCachedCompiledWhilePatterns(t,A).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,A){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new gc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,A||""),this._cachedCompiledWhilePatterns}}class Jt{static createCaptureRule(t,A,r,n,i){return t.registerRule(o=>new LlA(A,o,r,n,i))}static getCompiledRuleId(t,A,r){return t.id||A.registerRule(n=>{if(t.id=n,t.match)return new $lA(t.$vscodeTextmateLocation,t.id,t.name,t.match,Jt._compileCaptures(t.captures,A,r));if(typeof t.begin>"u"){t.repository&&(r=eY({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new ZF(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Jt._compilePatterns(i,A,r))}return t.while?new cE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Jt._compileCaptures(t.beginCaptures||t.captures,A,r),t.while,Jt._compileCaptures(t.whileCaptures||t.captures,A,r),Jt._compilePatterns(t.patterns,A,r)):new Q0(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Jt._compileCaptures(t.beginCaptures||t.captures,A,r),t.end,Jt._compileCaptures(t.endCaptures||t.captures,A,r),t.applyEndPatternLast,Jt._compilePatterns(t.patterns,A,r))}),t.id}static _compileCaptures(t,A,r){let n=[];if(t){let i=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const g=parseInt(o,10);g>i&&(i=g)}for(let o=0;o<=i;o++)n[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const g=parseInt(o,10);let a=0;t[o].patterns&&(a=Jt.getCompiledRuleId(t[o],A,r)),n[g]=Jt.createCaptureRule(A,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,a)}}return n}static _compilePatterns(t,A,r){let n=[];if(t)for(let i=0,o=t.length;i<o;i++){const g=t[i];let a=-1;if(g.include){const s=gY(g.include);switch(s.kind){case 0:case 1:a=Jt.getCompiledRuleId(r[g.include],A,r);break;case 2:let C=r[s.ruleName];C&&(a=Jt.getCompiledRuleId(C,A,r));break;case 3:case 4:const I=s.scopeName,l=s.kind===4?s.ruleName:null,u=A.getExternalGrammar(I,r);if(u)if(l){let c=u.repository[l];c&&(a=Jt.getCompiledRuleId(c,A,u.repository))}else a=Jt.getCompiledRuleId(u.repository.$self,A,u.repository);break}}else a=Jt.getCompiledRuleId(g,A,r);if(a!==-1){const s=A.getRule(a);let C=!1;if((s instanceof ZF||s instanceof Q0||s instanceof cE)&&s.hasMissingPatterns&&s.patterns.length===0&&(C=!0),C)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}}class ls{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,A){if(t){const r=t.length;let n=0,i=[],o=!1;for(let g=0;g<r;g++)if(t.charAt(g)==="\\"&&g+1<r){const s=t.charAt(g+1);s==="z"?(i.push(t.substring(n,g)),i.push("$(?!\\n)(?<!\\n)"),n=g+2):(s==="A"||s==="G")&&(o=!0),g++}this.hasAnchor=o,n===0?this.source=t:(i.push(t.substring(n,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=A,this.hasBackReferences=FlA.test(this.source)}clone(){return new ls(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,A){let r=A.map(n=>t.substring(n.start,n.end));return VF.lastIndex=0,this.source.replace(VF,(n,i)=>iY(r[parseInt(i,10)]||""))}_buildAnchorCache(){let t=[],A=[],r=[],n=[],i,o,g,a;for(i=0,o=this.source.length;i<o;i++)g=this.source.charAt(i),t[i]=g,A[i]=g,r[i]=g,n[i]=g,g==="\\"&&i+1<o&&(a=this.source.charAt(i+1),a==="A"?(t[i+1]="",A[i+1]="",r[i+1]="A",n[i+1]="A"):a==="G"?(t[i+1]="",A[i+1]="G",r[i+1]="",n[i+1]="G"):(t[i+1]=a,A[i+1]=a,r[i+1]=a,n[i+1]=a),i++);return{A0_G0:t.join(""),A0_G1:A.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(t,A){return!this.hasAnchor||!this._anchorCache?this.source:t?A?this._anchorCache.A1_G1:this._anchorCache.A1_G0:A?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class gc{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,A){this._items[t].source!==A&&(this._disposeCaches(),this._items[t].setSource(A))}compile(t){if(!this._cached){let A=this._items.map(r=>r.source);this._cached=new XF(t,A,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,A,r){return this._hasAnchors?A?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,A,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,A,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,A,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,A,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,A,r){let n=this._items.map(i=>i.resolveAnchors(A,r));return new XF(t,n,this._items.map(i=>i.ruleId))}}class XF{regExps;rules;scanner;constructor(t,A,r){this.regExps=A,this.rules=r,this.scanner=t.createOnigScanner(A)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let A=0,r=this.rules.length;A<r;A++)t.push(" - "+this.rules[A]+": "+this.regExps[A]);return t.join(`
|
|
29
29
|
`)}findNextMatchSync(t,A,r){const n=this.scanner.findNextMatchSync(t,A,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}}class v0{_colorMap;_defaults;_root;static createFromRawTheme(t,A){return this.createFromParsedTheme(xlA(t),A)}static createFromParsedTheme(t,A){return HlA(t,A)}_cachedMatchRoot=new oY(t=>this._root.match(t));constructor(t,A,r){this._colorMap=t,this._defaults=A,this._root=r}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const A=t.scopeName,n=this._cachedMatchRoot.get(A).find(i=>OlA(t.parent,i.parentScopes));return n?new sY(n.fontStyle,n.foreground,n.background):null}}class Wa{parent;scopeName;static push(t,A){for(const r of A)t=new Wa(t,r);return t}static from(...t){let A=null;for(let r=0;r<t.length;r++)A=new Wa(A,t[r]);return A}constructor(t,A){this.parent=t,this.scopeName=A}push(t){return new Wa(this,t)}getSegments(){let t=this;const A=[];for(;t;)A.push(t.scopeName),t=t.parent;return A.reverse(),A}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const A=[];let r=this;for(;r&&r!==t;)A.push(r.scopeName),r=r.parent;return r===t?A.reverse():void 0}}function OlA(e,t){if(t===null)return!0;let A=0,r=t[A];for(;e;){if(GlA(e.scopeName,r)){if(A++,A===t.length)return!0;r=t[A]}e=e.parent}return!1}function GlA(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}class sY{fontStyle;foregroundId;backgroundId;constructor(t,A,r){this.fontStyle=t,this.foregroundId=A,this.backgroundId=r}}function xlA(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,A=[],r=0;for(let n=0,i=t.length;n<i;n++){let o=t[n];if(!o.settings)continue;let g;if(typeof o.scope=="string"){let I=o.scope;I=I.replace(/^[,]+/,""),I=I.replace(/[,]+$/,""),g=I.split(",")}else Array.isArray(o.scope)?g=o.scope:g=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let I=o.settings.fontStyle.split(" ");for(let l=0,u=I.length;l<u;l++)switch(I[l]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let s=null;typeof o.settings.foreground=="string"&&jF(o.settings.foreground)&&(s=o.settings.foreground);let C=null;typeof o.settings.background=="string"&&jF(o.settings.background)&&(C=o.settings.background);for(let I=0,l=g.length;I<l;I++){let c=g[I].trim().split(" "),h=c[c.length-1],d=null;c.length>1&&(d=c.slice(0,c.length-1),d.reverse()),A[r++]=new TlA(h,d,n,a,s,C)}}return A}class TlA{scope;parentScopes;index;fontStyle;foreground;background;constructor(t,A,r,n,i,o){this.scope=t,this.parentScopes=A,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}}function HlA(e,t){e.sort((a,s)=>{let C=rY(a.scope,s.scope);return C!==0||(C=nY(a.parentScopes,s.parentScopes),C!==0)?C:a.index-s.index});let A=0,r="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let a=e.shift();a.fontStyle!==-1&&(A=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let i=new UlA(t),o=new sY(A,i.getId(r),i.getId(n)),g=new bu(new ac(0,null,-1,0,0),[]);for(let a=0,s=e.length;a<s;a++){let C=e[a];g.insert(0,C.scope,C.parentScopes,C.fontStyle,i.getId(C.foreground),i.getId(C.background))}return new v0(i,o,g)}class UlA{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let A=0,r=t.length;A<r;A++)this._color2id[t[A]]=A,this._id2color[A]=t[A]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let A=this._color2id[t];if(A)return A;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return A=++this._lastColorId,this._color2id[t]=A,this._id2color[A]=t,A}getColorMap(){return this._id2color.slice(0)}}class ac{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,A,r,n,i){this.scopeDepth=t,this.parentScopes=A,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new ac(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let A=[];for(let r=0,n=t.length;r<n;r++)A[r]=t[r].clone();return A}acceptOverwrite(t,A,r,n){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,A!==-1&&(this.fontStyle=A),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}}class bu{_mainRule;_children;_rulesWithParentScopes;constructor(t,A=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=A}static _sortBySpecificity(t){return t.length===1||t.sort(this._cmpBySpecificity),t}static _cmpBySpecificity(t,A){if(t.scopeDepth===A.scopeDepth){const r=t.parentScopes,n=A.parentScopes;let i=r===null?0:r.length,o=n===null?0:n.length;if(i===o)for(let g=0;g<i;g++){const a=r[g].length,s=n[g].length;if(a!==s)return s-a}return o-i}return A.scopeDepth-t.scopeDepth}match(t){if(t==="")return bu._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let A=t.indexOf("."),r,n;return A===-1?(r=t,n=""):(r=t.substring(0,A),n=t.substring(A+1)),this._children.hasOwnProperty(r)?this._children[r].match(n):bu._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(t,A,r,n,i,o){if(A===""){this._doInsertHere(t,r,n,i,o);return}let g=A.indexOf("."),a,s;g===-1?(a=A,s=""):(a=A.substring(0,g),s=A.substring(g+1));let C;this._children.hasOwnProperty(a)?C=this._children[a]:(C=new bu(this._mainRule.clone(),ac.cloneArr(this._rulesWithParentScopes)),this._children[a]=C),C.insert(t+1,s,r,n,i,o)}_doInsertHere(t,A,r,n,i){if(A===null){this._mainRule.acceptOverwrite(t,r,n,i);return}for(let o=0,g=this._rulesWithParentScopes.length;o<g;o++){let a=this._rulesWithParentScopes[o];if(nY(a.parentScopes,A)===0){a.acceptOverwrite(t,r,n,i);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new ac(t,A,r,n,i))}}class zp{languageId;tokenType;constructor(t,A){this.languageId=t,this.tokenType=A}}class hE{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,A){this._defaultAttributes=new zp(t,8),this._embeddedLanguagesMatcher=new KlA(Object.entries(A||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?hE._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new zp(0,0);_getBasicScopeAttributes=new oY(t=>{const A=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new zp(A,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const A=t.match(hE.STANDARD_TOKEN_TYPE_REGEXP);if(!A)return 8;switch(A[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class KlA{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const A=t.map(([r,n])=>iY(r));A.sort(),A.reverse(),this.scopesRegExp=new RegExp(`^((${A.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const A=t.match(this.scopesRegExp);if(A)return this.values.get(A[1])}}class AR{stack;stoppedEarly;constructor(t,A){this.stack=t,this.stoppedEarly=A}}function CY(e,t,A,r,n,i,o,g){const a=t.content.length;let s=!1,C=-1;if(o){const u=_lA(e,t,A,r,n,i);n=u.stack,r=u.linePos,A=u.isFirstLine,C=u.anchorPosition}const I=Date.now();for(;!s;){if(g!==0&&Date.now()-I>g)return new AR(n,!0);l()}return new AR(n,!1);function l(){const u=YlA(e,t,A,r,n,C);if(!u){i.produce(n,a),s=!0;return}const c=u.captureIndices,h=u.matchedRuleId,d=c&&c.length>0?c[0].end>r:!1;if(h===RlA){const B=n.getRule(e);i.produce(n,c[0].start),n=n.withContentNameScopesList(n.nameScopesList),gu(e,t,A,n,i,B.endCaptures,c),i.produce(n,c[0].end);const f=n;if(n=n.parent,C=f.getAnchorPos(),!d&&f.getEnterPos()===r){n=f,i.produce(n,a),s=!0;return}}else{const B=e.getRule(h);i.produce(n,c[0].start);const f=n,E=B.getName(t.content,c),v=n.contentNameScopesList.pushAttributed(E,e);if(n=n.push(h,r,C,c[0].end===a,null,v,v),B instanceof Q0){const p=B;gu(e,t,A,n,i,p.beginCaptures,c),i.produce(n,c[0].end),C=c[0].end;const D=p.getContentName(t.content,c),F=v.pushAttributed(D,e);if(n=n.withContentNameScopesList(F),p.endHasBackReferences&&(n=n.withEndRule(p.getEndWithResolvedBackReferences(t.content,c))),!d&&f.hasSameRuleAs(n)){n=n.pop(),i.produce(n,a),s=!0;return}}else if(B instanceof cE){const p=B;gu(e,t,A,n,i,p.beginCaptures,c),i.produce(n,c[0].end),C=c[0].end;const D=p.getContentName(t.content,c),F=v.pushAttributed(D,e);if(n=n.withContentNameScopesList(F),p.whileHasBackReferences&&(n=n.withEndRule(p.getWhileWithResolvedBackReferences(t.content,c))),!d&&f.hasSameRuleAs(n)){n=n.pop(),i.produce(n,a),s=!0;return}}else if(gu(e,t,A,n,i,B.captures,c),i.produce(n,c[0].end),n=n.pop(),!d){n=n.safePop(),i.produce(n,a),s=!0;return}}c[0].end>r&&(r=c[0].end,A=!1)}}function _lA(e,t,A,r,n,i){let o=n.beginRuleCapturedEOL?0:-1;const g=[];for(let a=n;a;a=a.pop()){const s=a.getRule(e);s instanceof cE&&g.push({rule:s,stack:a})}for(let a=g.pop();a;a=g.pop()){const{ruleScanner:s,findOptions:C}=WlA(a.rule,e,a.stack.endRule,A,r===o),I=s.findNextMatchSync(t,r,C);if(I){if(I.ruleId!==aY){n=a.stack.pop();break}I.captureIndices&&I.captureIndices.length&&(i.produce(a.stack,I.captureIndices[0].start),gu(e,t,A,a.stack,i,a.rule.whileCaptures,I.captureIndices),i.produce(a.stack,I.captureIndices[0].end),o=I.captureIndices[0].end,I.captureIndices[0].end>r&&(r=I.captureIndices[0].end,A=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:o,isFirstLine:A}}function YlA(e,t,A,r,n,i){const o=JlA(e,t,A,r,n,i),g=e.getInjections();if(g.length===0)return o;const a=zlA(g,e,t,A,r,n,i);if(!a)return o;if(!o)return a;const s=o.captureIndices[0].start,C=a.captureIndices[0].start;return C<s||a.priorityMatch&&C===s?a:o}function JlA(e,t,A,r,n,i){const o=n.getRule(e),{ruleScanner:g,findOptions:a}=IY(o,e,n.endRule,A,r===i),s=g.findNextMatchSync(t,r,a);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}function zlA(e,t,A,r,n,i,o){let g=Number.MAX_VALUE,a=null,s,C=0;const I=i.contentNameScopesList.getScopeNames();for(let l=0,u=e.length;l<u;l++){const c=e[l];if(!c.matcher(I))continue;const h=t.getRule(c.ruleId),{ruleScanner:d,findOptions:B}=IY(h,t,null,r,n===o),f=d.findNextMatchSync(A,n,B);if(!f)continue;const E=f.captureIndices[0].start;if(!(E>=g)&&(g=E,a=f.captureIndices,s=f.ruleId,C=c.priority,g===n))break}return a?{priorityMatch:C===-1,captureIndices:a,matchedRuleId:s}:null}function IY(e,t,A,r,n){return{ruleScanner:e.compileAG(t,A,r,n),findOptions:0}}function WlA(e,t,A,r,n){return{ruleScanner:e.compileWhileAG(t,A,r,n),findOptions:0}}function gu(e,t,A,r,n,i,o){if(i.length===0)return;const g=t.content,a=Math.min(i.length,o.length),s=[],C=o[0].end;for(let I=0;I<a;I++){const l=i[I];if(l===null)continue;const u=o[I];if(u.length===0)continue;if(u.start>C)break;for(;s.length>0&&s[s.length-1].endPos<=u.start;)n.produceFromScopes(s[s.length-1].scopes,s[s.length-1].endPos),s.pop();if(s.length>0?n.produceFromScopes(s[s.length-1].scopes,u.start):n.produce(r,u.start),l.retokenizeCapturedWithRuleId){const h=l.getName(g,o),d=r.contentNameScopesList.pushAttributed(h,e),B=l.getContentName(g,o),f=d.pushAttributed(B,e),E=r.push(l.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,f),v=e.createOnigString(g.substring(0,u.end));CY(e,v,A&&u.start===0,u.start,E,n,!1,0),AY(v);continue}const c=l.getName(g,o);if(c!==null){const d=(s.length>0?s[s.length-1].scopes:r.contentNameScopesList).pushAttributed(c,e);s.push(new qlA(d,u.end))}}for(;s.length>0;)n.produceFromScopes(s[s.length-1].scopes,s[s.length-1].endPos),s.pop()}class qlA{scopes;endPos;constructor(t,A){this.scopes=t,this.endPos=A}}function jlA(e,t,A,r,n,i,o,g){return new ZlA(e,t,A,r,n,i,o,g)}function eR(e,t,A,r,n){const i=lE(t,dE),o=Jt.getCompiledRuleId(A,r,n.repository);for(const g of i)e.push({debugSelector:t,matcher:g.matcher,ruleId:o,grammar:n,priority:g.priority})}function dE(e,t){if(t.length<e.length)return!1;let A=0;return e.every(r=>{for(let n=A;n<t.length;n++)if(VlA(t[n],r))return A=n+1,!0;return!1})}function VlA(e,t){if(!e)return!1;if(e===t)return!0;const A=t.length;return e.length>A&&e.substr(0,A)===t&&e[A]==="."}class ZlA{_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(t,A,r,n,i,o,g,a){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new hE(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=g,this._grammar=tR(A,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const s of Object.keys(i)){const C=lE(s,dE);for(const I of C)this._tokenTypeMatchers.push({matcher:I.matcher,type:i[s]})}}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},A=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let g in i)eR(A,g,i[g],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(g=>{const a=this.getExternalGrammar(g);if(a){const s=a.injectionSelector;s&&eR(A,s,a,this,a)}})}return A.sort((i,o)=>i.priority-o.priority),A}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const A=++this._lastRuleId,r=t(A);return this._ruleId2desc[A]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,A){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=tR(r,A&&A.$base),this._includedGrammars[t]}}tokenizeLine(t,A,r=0){const n=this._tokenize(t,A,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,A,r=0){const n=this._tokenize(t,A,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,A,r,n){this._rootId===-1&&(this._rootId=Jt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!A||A===ki.NULL){i=!0;const C=this._basicScopeAttributesProvider.getDefaultAttributes(),I=this.themeProvider.getDefaults(),l=EI.set(0,C.languageId,C.tokenType,null,I.fontStyle,I.foregroundId,I.backgroundId),u=this.getRule(this._rootId).getName(null,null);let c;u?c=wr.createRootAndLookUpScopeName(u,l,this):c=wr.createRoot("unknown",l),A=new ki(null,this._rootId,-1,-1,!1,null,c,c)}else i=!1,A.reset();t=t+`
|
|
30
30
|
`;const o=this.createOnigString(t),g=o.content.length,a=new AuA(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),s=CY(this,o,i,0,A,a,!0,n);return AY(o),{lineLength:g,lineTokens:a,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}}function tR(e,t){return e=vlA(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}class wr{parent;scopePath;tokenAttributes;static fromExtension(t,A){let r=t,n=t?.scopePath??null;for(const i of A)n=Wa.push(n,i.scopeNames),r=new wr(r,n,i.encodedTokenAttributes);return r}static createRoot(t,A){return new wr(null,new Wa(null,t),A)}static createRootAndLookUpScopeName(t,A,r){const n=r.getMetadataForScope(t),i=new Wa(null,t),o=r.themeProvider.themeMatch(i),g=wr.mergeAttributes(A,n,o);return new wr(null,i,g)}get scopeName(){return this.scopePath.scopeName}constructor(t,A,r){this.parent=t,this.scopePath=A,this.tokenAttributes=r}toString(){return this.getScopeNames().join(" ")}equals(t){return wr.equals(this,t)}static equals(t,A){do{if(t===A||!t&&!A)return!0;if(!t||!A||t.scopeName!==A.scopeName||t.tokenAttributes!==A.tokenAttributes)return!1;t=t.parent,A=A.parent}while(!0)}static mergeAttributes(t,A,r){let n=-1,i=0,o=0;return r!==null&&(n=r.fontStyle,i=r.foregroundId,o=r.backgroundId),EI.set(t,A.languageId,A.tokenType,null,n,i,o)}pushAttributed(t,A){if(t===null)return this;if(t.indexOf(" ")===-1)return wr._pushAttributed(this,t,A);const r=t.split(/ /g);let n=this;for(const i of r)n=wr._pushAttributed(n,i,A);return n}static _pushAttributed(t,A,r){const n=r.getMetadataForScope(A),i=t.scopePath.push(A),o=r.themeProvider.themeMatch(i),g=wr.mergeAttributes(t.tokenAttributes,n,o);return new wr(t,i,g)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const A=[];let r=this;for(;r&&r!==t;)A.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?A.reverse():void 0}}class ki{parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new ki(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(t,A,r,n,i,o,g,a){this.parent=t,this.ruleId=A,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=g,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(t){return t===null?!1:ki._equals(this,t)}static _equals(t,A){return t===A?!0:this._structuralEquals(t,A)?wr.equals(t.contentNameScopesList,A.contentNameScopesList):!1}static _structuralEquals(t,A){do{if(t===A||!t&&!A)return!0;if(!t||!A||t.depth!==A.depth||t.ruleId!==A.ruleId||t.endRule!==A.endRule)return!1;t=t.parent,A=A.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ki._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,A,r,n,i,o,g){return new ki(this,t,A,r,n,i,o,g)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,A){return this.parent&&(A=this.parent._writeString(t,A)),t[A++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,A}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ki(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let A=this;for(;A&&A._enterPos===t._enterPos;){if(A.ruleId===t.ruleId)return!0;A=A.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,A){const r=wr.fromExtension(t?.nameScopesList??null,A.nameScopesList);return new ki(t,A.ruleId,A.enterPos??-1,A.anchorPos??-1,A.beginRuleCapturedEOL,A.endRule,r,wr.fromExtension(r,A.contentNameScopesList))}}class XlA{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,A){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):lE(r,dE).map(n=>n.matcher)),this.unbalancedBracketScopes=A.flatMap(r=>lE(r,dE).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const A of this.unbalancedBracketScopes)if(A(t))return!1;for(const A of this.balancedBracketScopes)if(A(t))return!0;return this.allowAny}}class AuA{balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(t,A,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,A){this.produceFromScopes(t.contentNameScopesList,A)}produceFromScopes(t,A){if(this._lastTokenEndIndex>=A)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const g of this._tokenTypeOverrides)g.matcher(o)&&(n=EI.set(n,0,g.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=EI.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=A;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=A;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:A,scopes:r}),this._lastTokenEndIndex=A}getResult(t,A){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===A-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,A),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,A){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===A-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,A),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}}class euA{_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(t,A){this._onigLibPromise=A,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,A){this._rawGrammars.set(t.scopeName,t),A&&this._injectionGrammars.set(t.scopeName,A)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}async grammarForScopeName(t,A,r,n,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,jlA(t,o,A,r,n,i,this,await this._onigLibPromise))}return this._grammars.get(t)}}let tuA=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new euA(v0.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,A){this._syncRegistry.setTheme(v0.createFromRawTheme(t,A))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,A,r){return this.loadGrammarWithConfiguration(t,A,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,A,r){return this._loadGrammar(t,A,r.embeddedLanguages,r.tokenTypes,new XlA(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}async _loadGrammar(t,A,r,n,i){const o=new mlA(this._syncRegistry,t);for(;o.Q.length>0;)await Promise.all(o.Q.map(g=>this._loadSingleGrammar(g.scopeName))),o.processQueue();return this._grammarForScopeName(t,A,r,n,i)}async _loadSingleGrammar(t){return this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)}async _doLoadSingleGrammar(t){const A=await this._options.loadGrammar(t);if(A){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(A,r)}}async addGrammar(t,A=[],r=0,n=null){return this._syncRegistry.addGrammar(t,A),await this._grammarForScopeName(t.scopeName,r,n)}_grammarForScopeName(t,A=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(t,A,r,n,i)}};const ruA=ki.NULL,gr={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class go{static toBinaryStr(t){let A=t.toString(2);for(;A.length<32;)A=`0${A}`;return A}static getLanguageId(t){return(t&gr.LANGUAGEID_MASK)>>>gr.LANGUAGEID_OFFSET}static getTokenType(t){return(t&gr.TOKEN_TYPE_MASK)>>>gr.TOKEN_TYPE_OFFSET}static getFontStyle(t){return(t&gr.FONT_STYLE_MASK)>>>gr.FONT_STYLE_OFFSET}static getForeground(t){return(t&gr.FOREGROUND_MASK)>>>gr.FOREGROUND_OFFSET}static getBackground(t){return(t&gr.BACKGROUND_MASK)>>>gr.BACKGROUND_OFFSET}static containsBalancedBrackets(t){return(t&gr.BALANCED_BRACKETS_MASK)!==0}static set(t,A,r,n,i,o){let g=go.getLanguageId(t),a=go.getTokenType(t),s=go.getFontStyle(t),C=go.getForeground(t),I=go.getBackground(t);const l=go.containsBalancedBrackets(t)?1:0;return A!==0&&(g=A),r!==0&&(a=r===8?0:r),n!==ai.NotSet&&(s=n),i!==0&&(C=i),o!==0&&(I=o),(g<<gr.LANGUAGEID_OFFSET|a<<gr.TOKEN_TYPE_OFFSET|s<<gr.FONT_STYLE_OFFSET|l<<gr.BALANCED_BRACKETS_OFFSET|C<<gr.FOREGROUND_OFFSET|I<<gr.BACKGROUND_OFFSET)>>>0}}function KQ(e,t=!1){const A=e.split(/(\r?\n)/g);let r=0;const n=[];for(let i=0;i<A.length;i+=2){const o=t?A[i]+(A[i+1]||""):A[i];n.push([o,r]),r+=A[i].length,r+=A[i+1]?.length||0}return n}function lY(e){return!e||["plaintext","txt","text","plain"].includes(e)}function nuA(e){return e==="ansi"||lY(e)}function uY(e){return e==="none"}function iuA(e){return uY(e)}function cY(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const A=Array.isArray(t)?t:t.split(/\s+/g);for(const r of A)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function ouA(e,t){let A=0;const r=[];for(const n of t)n>A&&r.push({...e,content:e.content.slice(A,n),offset:e.offset+A}),A=n;return A<e.content.length&&r.push({...e,content:e.content.slice(A),offset:e.offset+A}),r}function guA(e,t){const A=Array.from(t instanceof Set?t:new Set(t)).sort((r,n)=>r-n);return A.length?e.map(r=>r.flatMap(n=>{const i=A.filter(o=>n.offset<o&&o<n.offset+n.content.length).map(o=>o-n.offset).sort((o,g)=>o-g);return i.length?ouA(n,i):n})):e}function hY(e,t){return t?.[e?.toLowerCase()]||e}function dY(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&ai.Italic&&(t["font-style"]="italic"),e.fontStyle&ai.Bold&&(t["font-weight"]="bold"),e.fontStyle&ai.Underline&&(t["text-decoration"]="underline")),t}function BY(e){return Object.entries(e).map(([t,A])=>`${t}:${A}`).join(";")}function auA(e){const t=KQ(e,!0).map(([n])=>n);function A(n){let i=n,o=0;for(const g of t){if(i<g.length)break;i-=g.length,o++}return{line:o,character:i}}function r(n,i){let o=0;for(let g=0;g<n;g++)o+=t[g].length;return o+=i,o}return{lines:t,indexToPos:A,posToIndex:r}}var xa=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Wp={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function suA(e,t){const A=e.indexOf("\x1B[",t);if(A!==-1){const r=e.indexOf("m",A);return{sequence:e.substring(A+2,r).split(";"),startPosition:A,position:r+1}}return{position:e.length}}function rR(e,t){let A=1;const r=e[t+A++];let n;if(r==="2"){const i=[e[t+A++],e[t+A++],e[t+A]].map(o=>Number.parseInt(o));i.length===3&&!i.some(o=>Number.isNaN(o))&&(n={type:"rgb",rgb:i})}else if(r==="5"){const i=Number.parseInt(e[t+A]);Number.isNaN(i)||(n={type:"table",index:Number(i)})}return[A,n]}function CuA(e){const t=[];for(let A=0;A<e.length;A++){const r=e[A],n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Wp[n]&&t.push({type:"setDecoration",value:Wp[n]});else if(n<=29){const i=Wp[n-20];i&&t.push({type:"resetDecoration",value:i})}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:xa[n-30]}});else if(n===38){const[i,o]=rR(e,A);o&&t.push({type:"setForegroundColor",value:o}),A+=i}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:xa[n-40]}});else if(n===48){const[i,o]=rR(e,A);o&&t.push({type:"setBackgroundColor",value:o}),A+=i}else n===49?t.push({type:"resetBackgroundColor"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:xa[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:xa[n-100+8]}})}return t}function IuA(){let e=null,t=null,A=new Set;return{parse(r){const n=[];let i=0;do{const o=suA(r,i),g=o.sequence?r.substring(i,o.startPosition):r.substring(i);if(g.length>0&&n.push({value:g,foreground:e,background:t,decorations:new Set(A)}),o.sequence){const a=CuA(o.sequence);for(const s of a)s.type==="resetAll"?(e=null,t=null,A.clear()):s.type==="resetForegroundColor"?e=null:s.type==="resetBackgroundColor"?t=null:s.type==="resetDecoration"&&A.delete(s.value);for(const s of a)s.type==="setForegroundColor"?e=s.value:s.type==="setBackgroundColor"?t=s.value:s.type==="setDecoration"&&A.add(s.value)}i=o.position}while(i<r.length);return n}}}var luA={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function uuA(e=luA){function t(g){return e[g]}function A(g){return`#${g.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function n(){if(r)return r;r=[];for(let s=0;s<xa.length;s++)r.push(t(xa[s]));let g=[0,95,135,175,215,255];for(let s=0;s<6;s++)for(let C=0;C<6;C++)for(let I=0;I<6;I++)r.push(A([g[s],g[C],g[I]]));let a=8;for(let s=0;s<24;s++,a+=10)r.push(A([a,a,a]));return r}function i(g){return n()[g]}function o(g){switch(g.type){case"named":return t(g.name);case"rgb":return A(g.rgb);case"table":return i(g.index)}}return{value:o}}function cuA(e,t,A){const r={...e.colorReplacements,...A?.colorReplacements},n=KQ(t),i=uuA(Object.fromEntries(xa.map(g=>[g,e.colors?.[`terminal.ansi${g[0].toUpperCase()}${g.substring(1)}`]]))),o=IuA();return n.map(g=>o.parse(g[0]).map(a=>{let s,C;a.decorations.has("reverse")?(s=a.background?i.value(a.background):e.bg,C=a.foreground?i.value(a.foreground):e.fg):(s=a.foreground?i.value(a.foreground):e.fg,C=a.background?i.value(a.background):void 0),s=hY(s,r),a.decorations.has("dim")&&(s=huA(s));let I=ai.None;return a.decorations.has("bold")&&(I|=ai.Bold),a.decorations.has("italic")&&(I|=ai.Italic),a.decorations.has("underline")&&(I|=ai.Underline),{content:a.value,offset:g[1],color:s,bgColor:C,fontStyle:I}}))}function huA(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const A=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return A?`var(${A[1]}-dim)`:e}function LM(e,t,A={}){const{lang:r="text",theme:n=e.getLoadedThemes()[0]}=A;if(lY(r)||uY(n))return KQ(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:i,colorMap:o}=e.setTheme(n);if(r==="ansi")return cuA(i,t,A);const g=e.getLanguage(r);return duA(t,g,i,o,A)}function duA(e,t,A,r,n){const i={...A.colorReplacements,...n?.colorReplacements},{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:g=500}=n,a=KQ(e);let s=ruA,C=[];const I=[];for(let l=0,u=a.length;l<u;l++){const[c,h]=a[l];if(c===""){C=[],I.push([]);continue}if(o>0&&c.length>=o){C=[],I.push([{content:c,offset:h,color:"",fontStyle:0}]);continue}let d,B,f;n.includeExplanation&&(d=t.tokenizeLine(c,s),B=d.tokens,f=0);const E=t.tokenizeLine2(c,s,g),v=E.tokens.length/2;for(let p=0;p<v;p++){const D=E.tokens[2*p],F=p+1<v?E.tokens[2*p+2]:c.length;if(D===F)continue;const N=E.tokens[2*p+1],S=go.getForeground(N),m=hY(r[S],i),R=go.getFontStyle(N),k={content:c.substring(D,F),offset:h+D,color:m,fontStyle:R};if(n.includeExplanation){k.explanation=[];let O=0;for(;D+O<F;){const H=B[f],X=c.substring(H.startIndex,H.endIndex);O+=X.length,k.explanation.push({content:X,scopes:BuA(A,H.scopes)}),f+=1}}C.push(k)}I.push(C),C=[],s=E.ruleStack}return I}function BuA(e,t){const A=[];for(let r=0,n=t.length;r<n;r++){const i=t.slice(0,r),o=t[r];A[r]={scopeName:o,themeMatches:EuA(e,o,i)}}return A}function nR(e,t){const A=`${e}.`;return e===t||t.substring(0,A.length)===A}function fuA(e,t,A,r){if(!nR(e,A))return!1;let n=t.length-1,i=r.length-1;for(;n>=0&&i>=0;)nR(t[n],r[i])&&(n-=1),i-=1;return n===-1}function EuA(e,t,A){const r=[];let n=0;for(let i=0,o=e.settings.length;i<o;i++){const g=e.settings[i];let a;if(typeof g.scope=="string")a=g.scope.split(/,/).map(s=>s.trim());else if(Array.isArray(g.scope))a=g.scope;else continue;for(let s=0,C=a.length;s<C;s++){const l=a[s].split(/ /),u=l[l.length-1],c=l.slice(0,l.length-1);fuA(u,c,t,A)&&(r[n++]=g,s=C)}}return r}function fY(e,t,A){const r=Object.entries(A.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),n=QuA(...r.map(o=>LM(e,t,{...A,theme:o.theme})));return n[0].map((o,g)=>o.map((a,s)=>{const C={content:a.content,variants:{},offset:a.offset};return n.forEach((I,l)=>{const{content:u,explanation:c,offset:h,...d}=I[g][s];C.variants[r[l].color]=d}),C}))}function QuA(...e){const t=e.map(()=>[]),A=e.length;for(let r=0;r<e[0].length;r++){const n=e.map(a=>a[r]),i=t.map(()=>[]);t.forEach((a,s)=>a.push(i[s]));const o=n.map(()=>0),g=n.map(a=>a[0]);for(;g.every(a=>a);){const a=Math.min(...g.map(s=>s.content.length));for(let s=0;s<A;s++){const C=g[s];C.content.length===a?(i[s].push(C),o[s]+=1,g[s]=n[s][o[s]]):(i[s].push({...C,content:C.content.slice(0,a)}),g[s]={...C,content:C.content.slice(a),offset:C.offset+a})}}}return t}class Sr extends Error{constructor(t){super(t),this.name="ShikiError"}}function BE(e,t,A){let r,n,i,o,g;if("themes"in A){const{defaultColor:a="light",cssVariablePrefix:s="--shiki-"}=A,C=Object.entries(A.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})).sort((c,h)=>c.color===a?-1:h.color===a?1:0);if(C.length===0)throw new Sr("`themes` option must not be empty");const I=fY(e,t,A);if(a&&!C.find(c=>c.color===a))throw new Sr(`\`themes\` option must contain the defaultColor key \`${a}\``);const l=C.map(c=>e.getTheme(c.theme)),u=C.map(c=>c.color);i=I.map(c=>c.map(h=>vuA(h,u,s,a))),n=C.map((c,h)=>(h===0&&a?"":`${s+c.color}:`)+(l[h].fg||"inherit")).join(";"),r=C.map((c,h)=>(h===0&&a?"":`${s+c.color}-bg:`)+(l[h].bg||"inherit")).join(";"),o=`shiki-themes ${l.map(c=>c.name).join(" ")}`,g=a?void 0:[n,r].join(";")}else if("theme"in A){i=LM(e,t,A);const a=e.getTheme(A.theme);r=a.bg,n=a.fg,o=a.name}else throw new Sr("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:r,themeName:o,rootStyle:g}}function vuA(e,t,A,r){const n={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(a=>dY(e.variants[a])),o=new Set(i.flatMap(a=>Object.keys(a))),g=i.reduce((a,s,C)=>{for(const I of o){const l=s[I]||"inherit";if(C===0&&r)a[I]=l;else{const u=I==="color"?"":I==="background-color"?"-bg":`-${I}`,c=A+t[C]+(I==="color"?"":u);a[I]?a[I]+=`;${c}:${l}`:a[I]=`${c}:${l}`}}return a},{});return n.htmlStyle=r?BY(g):Object.values(g).join(";"),n}function puA(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(g){return typeof g=="number"?{...n.indexToPos(g),offset:g}:{...g,offset:n.posToIndex(g.line,g.character)}};const n=auA(r.source),o=(r.options.decorations||[]).map(g=>({...g,start:i(g.start),end:i(g.end)}));A(o),e.set(r.meta,{decorations:o,converter:n,source:r.source})}return e.get(r.meta)}function A(r){for(let n=0;n<r.length;n++){const i=r[n];if(i.start.offset>i.end.offset)throw new Sr(`Invalid decoration range: ${JSON.stringify(i.start)} - ${JSON.stringify(i.end)}`);for(let o=n+1;o<r.length;o++){const g=r[o],a=i.start.offset<g.start.offset&&g.start.offset<i.end.offset,s=i.start.offset<g.end.offset&&g.end.offset<i.end.offset,C=g.start.offset<i.start.offset&&i.start.offset<g.end.offset,I=g.start.offset<i.end.offset&&i.end.offset<g.end.offset;if(a||s||C||I){if(s&&s||C&&I)continue;throw new Sr(`Decorations ${JSON.stringify(i.start)} and ${JSON.stringify(g.start)} intersect.`)}}}}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const i=t(this).decorations.flatMap(g=>[g.start.offset,g.end.offset]);return guA(r,i)},code(r){if(!this.options.decorations?.length)return;const n=t(this),i=Array.from(r.children).filter(I=>I.type==="element"&&I.tagName==="span");if(i.length!==n.converter.lines.length)throw new Sr(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(I,l,u,c){const h=i[I];let d="",B=-1,f=-1;function E(p){return p.type==="text"?p.value:p.type==="element"?p.children.map(E).join(""):""}if(l===0&&(B=0),u===0&&(f=0),u===Number.POSITIVE_INFINITY&&(f=h.children.length),B===-1||f===-1)for(let p=0;p<h.children.length;p++)d+=E(h.children[p]),B===-1&&d.length===l&&(B=p+1),f===-1&&d.length===u&&(f=p+1);if(B===-1)throw new Sr(`Failed to find start index for decoration ${JSON.stringify(c.start)}`);if(f===-1)throw new Sr(`Failed to find end index for decoration ${JSON.stringify(c.end)}`);const v=h.children.slice(B,f);if(!c.alwaysWrap&&v.length===h.children.length)a(h,c,"line");else if(!c.alwaysWrap&&v.length===1&&v[0].type==="element")a(v[0],c,"token");else{const p={type:"element",tagName:"span",properties:{},children:v};a(p,c,"wrapper"),h.children.splice(B,v.length,p)}}function g(I,l){i[I]=a(i[I],l,"line")}function a(I,l,u){const c=l.properties||{},h=l.transform||(d=>d);return I.tagName=l.tagName||"span",I.properties={...I.properties,...c,class:I.properties.class},l.properties?.class&&cY(I,l.properties.class),I=h(I,u)||I,I}const s=[],C=n.decorations.sort((I,l)=>l.start.offset-I.start.offset);for(const I of C){const{start:l,end:u}=I;if(l.line===u.line)o(l.line,l.character,u.character,I);else if(l.line<u.line){o(l.line,l.character,Number.POSITIVE_INFINITY,I);for(let c=l.line+1;c<u.line;c++)s.unshift(()=>g(c,I));o(u.line,0,u.character,I)}}s.forEach(I=>I())}}}const wuA=[puA()];function fE(e){return[...e.transformers||[],...wuA]}function EE(e,t,A,r={meta:{},options:A,codeToHast:(n,i)=>EE(e,n,i),codeToTokens:(n,i)=>BE(e,n,i)}){let n=t;for(const l of fE(A))n=l.preprocess?.call(r,n,A)||n;let{tokens:i,fg:o,bg:g,themeName:a,rootStyle:s}=BE(e,n,A);const{mergeWhitespaces:C=!0}=A;C===!0?i=yuA(i):C==="never"&&(i=muA(i));const I={...r,get source(){return n}};for(const l of fE(A))i=l.tokens?.call(I,i)||i;return DuA(i,{...A,fg:o,bg:g,themeName:a,rootStyle:s},I)}function DuA(e,t,A){const r=fE(t),n=[],i={type:"root",children:[]};let o={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([I])=>!I.startsWith("_")))},children:[]},g={type:"element",tagName:"code",properties:{},children:n};const a=[],s={...A,addClassToHast:cY,get source(){return A.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return o},get code(){return g},get lines(){return a}};e.forEach((I,l)=>{l&&n.push({type:"text",value:`
|
|
@@ -731,8 +731,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
731
731
|
`;)_t();e=!0}}if(se==="/"&&CC()==="/"){for(;se!=""&&se!=`
|
|
732
732
|
`;)_t();e=!0}if(se==="/"&&CC()==="*"){for(;se!="";)if(se==="*"&&CC()==="/"){_t(),_t();break}else _t();e=!0}for(;se===" "||se===" "||se===`
|
|
733
733
|
`||se==="\r";)_t()}while(e);if(se===""){Ur=Dr.DELIMITER;return}var A=se+CC();if(D8[A]){Ur=Dr.DELIMITER,WA=A,_t(),_t();return}if(D8[se]){Ur=Dr.DELIMITER,WA=se,_t();return}if(y8(se)||se==="-"){for(WA+=se,_t();y8(se);)WA+=se,_t();WA==="false"?WA=!1:WA==="true"?WA=!0:isNaN(Number(WA))||(WA=Number(WA)),Ur=Dr.IDENTIFIER;return}if(se==='"'){for(_t();se!=""&&(se!='"'||se==='"'&&CC()==='"');)se==='"'?(WA+=se,_t()):se==="\\"&&CC()==="n"?(WA+=`
|
|
734
|
-
`,_t()):WA+=se,_t();if(se!='"')throw yr('End of string " expected');_t(),Ur=Dr.IDENTIFIER;return}for(Ur=Dr.UNKNOWN;se!="";)WA+=se,_t();throw new SyntaxError('Syntax error in part "'+Nz(WA,30)+'"')}function QNA(){var e={};if(BNA(),ze(),WA==="strict"&&(e.strict=!0,ze()),(WA==="graph"||WA==="digraph")&&(e.type=WA,ze()),Ur===Dr.IDENTIFIER&&(e.id=WA,ze()),WA!="{")throw yr("Angle bracket { expected");if(ze(),Mz(e),WA!="}")throw yr("Angle bracket } expected");if(ze(),WA!=="")throw yr("End of file expected");return ze(),delete e.node,delete e.edge,delete e.graph,e}function Mz(e){for(;WA!==""&&WA!="}";)vNA(e),WA===";"&&ze()}function vNA(e){var t=kz(e);if(t){Sz(e,t);return}var A=pNA(e);if(!A){if(Ur!=Dr.IDENTIFIER)throw yr("Identifier expected");var r=WA;if(ze(),WA==="="){if(ze(),Ur!=Dr.IDENTIFIER)throw yr("Identifier expected");e[r]=WA,ze()}else wNA(e,r)}}function kz(e){var t=null;if(WA==="subgraph"&&(t={},t.type="subgraph",ze(),Ur===Dr.IDENTIFIER&&(t.id=WA,ze())),WA==="{"){if(ze(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,Mz(t),WA!="}")throw yr("Angle bracket } expected");ze(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function pNA(e){return WA==="node"?(ze(),e.node=Nu(),"node"):WA==="edge"?(ze(),e.edge=Nu(),"edge"):WA==="graph"?(ze(),e.graph=Nu(),"graph"):null}function wNA(e,t){var A={id:t},r=Nu();r&&(A.attr=r),mz(e,A),Sz(e,t)}function Sz(e,t){for(;WA==="->"||WA==="--";){var A,r=WA;ze();var n=kz(e);if(n)A=n;else{if(Ur!=Dr.IDENTIFIER)throw yr("Identifier or subgraph expected");A=WA,mz(e,{id:A}),ze()}var i=Nu(),o=bz(e,t,A,r,i);ENA(e,o),t=A}}function Nu(){for(var e,t=null,A={dashed:!0,solid:!1,dotted:[1,5]},r={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},n=new Array,i=new Array;WA==="[";){for(ze(),t={};WA!==""&&WA!="]";){if(Ur!=Dr.IDENTIFIER)throw yr("Attribute name expected");var o=WA;if(ze(),WA!="=")throw yr("Equal sign = expected");if(ze(),Ur!=Dr.IDENTIFIER)throw yr("Attribute value expected");var g=WA;o==="style"&&(g=A[g]);var a;o==="arrowhead"&&(a=r[g],o="arrows",g={to:{enabled:!0,type:a}}),o==="arrowtail"&&(a=r[g],o="arrows",g={from:{enabled:!0,type:a}}),n.push({attr:t,name:o,value:g}),i.push(o),ze(),WA==","&&ze()}if(WA!="]")throw yr("Bracket ] expected");ze()}if(Mg(i).call(i,"dir")){var s={};for(s.arrows={},e=0;e<n.length;e++)if(n[e].name==="arrows")if(n[e].value.to!=null)s.arrows.to=e;else if(n[e].value.from!=null)s.arrows.from=e;else throw yr("Invalid value of arrows");else n[e].name==="dir"&&(s.dir=e);var C=n[s.dir].value;if(!Mg(i).call(i,"arrows"))if(C==="both")n.push({attr:n[s.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),s.arrows.to=n.length-1,n.push({attr:n[s.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),s.arrows.from=n.length-1;else if(C==="forward")n.push({attr:n[s.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),s.arrows.to=n.length-1;else if(C==="back")n.push({attr:n[s.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),s.arrows.from=n.length-1;else if(C==="none")n.push({attr:n[s.dir].attr,name:"arrows",value:""}),s.arrows.to=n.length-1;else throw yr('Invalid dir type "'+C+'"');var I,l;if(C==="both")s.arrows.to&&s.arrows.from?(l=n[s.arrows.to].value.to.type,I=n[s.arrows.from].value.from.type,n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}},Hi(n).call(n,s.arrows.from,1)):s.arrows.to?(l=n[s.arrows.to].value.to.type,I="arrow",n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.from&&(l="arrow",I=n[s.arrows.from].value.from.type,n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}});else if(C==="back")s.arrows.to&&s.arrows.from?(l="",I=n[s.arrows.from].value.from.type,n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.to?(l="",I="arrow",s.arrows.from=s.arrows.to,n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.from&&(l="",I=n[s.arrows.from].value.from.type,n[s.arrows.to]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}),n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{from:{enabled:!0,type:n[s.arrows.from].value.from.type}}};else if(C==="none"){var u;s.arrows.to?u=s.arrows.to:u=s.arrows.from,n[u]={attr:n[u].attr,name:n[u].name,value:""}}else if(C==="forward")s.arrows.to&&s.arrows.from?(l=n[s.arrows.to].value.to.type,I="",n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.to?(l=n[s.arrows.to].value.to.type,I="",n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.from&&(l="arrow",I="",s.arrows.to=s.arrows.from,n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}),n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:n[s.arrows.to].value.to.type}}};else throw yr('Invalid dir type "'+C+'"');Hi(n).call(n,s.dir,1)}var c;if(Mg(i).call(i,"penwidth")){var h=[];for(c=n.length,e=0;e<c;e++)n[e].name!=="width"&&(n[e].name==="penwidth"&&(n[e].name="width"),h.push(n[e]));n=h}for(c=n.length,e=0;e<c;e++)fNA(n[e].attr,n[e].name,n[e].value);return t}function yr(e){return new SyntaxError(e+', got "'+Nz(WA,30)+'" (char '+yI+")")}function Nz(e,t){return e.length<=t?e:e.substr(0,27)+"..."}function DNA(e,t,A){ge(e)?we(e).call(e,function(r){ge(t)?we(t).call(t,function(n){A(r,n)}):A(r,t)}):ge(t)?we(t).call(t,function(r){A(e,r)}):A(e,t)}function Uw(e,t,A){for(var r=t.split("."),n=r.pop(),i=e,o=0;o<r.length;o++){var g=r[o];g in i||(i[g]={}),i=i[g]}return i[n]=A,e}function m8(e,t){var A={};for(var r in e)if(e.hasOwnProperty(r)){var n=t[r];ge(n)?we(n).call(n,function(i){Uw(A,i,e[r])}):typeof n=="string"?Uw(A,n,e[r]):Uw(A,r,e[r])}return A}function yNA(e){var t=dNA(e),A={nodes:[],edges:[],options:{}};if(t.nodes){var r;we(r=t.nodes).call(r,function(o){var g={id:o.id,label:String(o.label||o.id)};Wg(g,m8(o.attr,yz)),g.image&&(g.shape="image"),A.nodes.push(g)})}if(t.edges){var n,i=function(g){var a={from:g.from,to:g.to};return Wg(a,m8(g.attr,fk)),a.arrows==null&&g.type==="->"&&(a.arrows="to"),a};we(n=t.edges).call(n,function(o){var g,a;if(o.from instanceof Object?g=o.from.nodes:g={id:o.from},o.to instanceof Object?a=o.to.nodes:a={id:o.to},o.from instanceof Object&&o.from.edges){var s;we(s=o.from.edges).call(s,function(I){var l=i(I);A.edges.push(l)})}if(DNA(g,a,function(I,l){var u=bz(A,I.id,l.id,o.type,o.attr),c=i(u);A.edges.push(c)}),o.to instanceof Object&&o.to.edges){var C;we(C=o.to.edges).call(C,function(I){var l=i(I);A.edges.push(l)})}})}return t.attr&&(A.options=t.attr),A}function mNA(e,t){var A,r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};t!=null&&(t.fixed!=null&&(r.nodes.fixed=t.fixed),t.parseColor!=null&&(r.nodes.parseColor=t.parseColor),t.inheritColor!=null&&(r.edges.inheritColor=t.inheritColor));var n=e.edges,i=lr(n).call(n,function(g){var a={from:g.source,id:g.id,to:g.target};return g.attributes!=null&&(a.attributes=g.attributes),g.label!=null&&(a.label=g.label),g.attributes!=null&&g.attributes.title!=null&&(a.title=g.attributes.title),g.type==="Directed"&&(a.arrows="to"),g.color&&r.edges.inheritColor===!1&&(a.color=g.color),a}),o=lr(A=e.nodes).call(A,function(g){var a={id:g.id,fixed:r.nodes.fixed&&g.x!=null&&g.y!=null};return g.attributes!=null&&(a.attributes=g.attributes),g.label!=null&&(a.label=g.label),g.size!=null&&(a.size=g.size),g.attributes!=null&&g.attributes.title!=null&&(a.title=g.attributes.title),g.title!=null&&(a.title=g.title),g.x!=null&&(a.x=g.x),g.y!=null&&(a.y=g.y),g.color!=null&&(r.nodes.parseColor===!0?a.color=g.color:a.color={background:g.color,border:g.color,highlight:{background:g.color,border:g.color},hover:{background:g.color,border:g.color}}),a});return{nodes:o,edges:i}}var bNA={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},MNA={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},kNA={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},SNA={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},NNA={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},PNA={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},FNA={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},RNA={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},LNA={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},$NA={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},ONA={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},GNA=Object.freeze({__proto__:null,cn:RNA,cs:ONA,de:MNA,en:bNA,es:kNA,fr:$NA,it:SNA,nl:NNA,pt:PNA,ru:FNA,uk:LNA});function xNA(e,t){try{var A=t.split(/[-_ /]/,2),r=de(A,2),n=r[0],i=r[1],o=n!=null?n.toLowerCase():null,g=i!=null?i.toUpperCase():null;if(o&&g){var a=o+"-"+g;if(Object.prototype.hasOwnProperty.call(e,a))return a;var s;console.warn(Hs(s="Unknown variant ".concat(g," of language ")).call(s,o,"."))}if(o){var C=o;if(Object.prototype.hasOwnProperty.call(e,C))return C;console.warn("Unknown language ".concat(o))}return console.warn("Unknown locale ".concat(t,", falling back to English.")),"en"}catch(I){return console.error(I),console.warn("Unexpected error while normalizing locale ".concat(t,", falling back to English.")),"en"}}var TNA=function(){function e(){cA(this,e),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return hA(e,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var A=this.image.width,r=this.image.height;this.width=A,this.height=r;var n=Math.floor(r/2),i=Math.floor(r/4),o=Math.floor(r/8),g=Math.floor(r/16),a=Math.floor(A/2),s=Math.floor(A/4),C=Math.floor(A/8),I=Math.floor(A/16);this.canvas.width=3*s,this.canvas.height=n,this.coordinates=[[0,0,a,n],[a,0,s,i],[a,i,C,o],[5*C,i,I,g]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var A=this.canvas.getContext("2d"),r=this.coordinates[0];A.drawImage(this.image,r[0],r[1],r[2],r[3]);for(var n=1;n<this.NUM_ITERATIONS;n++){var i=this.coordinates[n-1],o=this.coordinates[n];A.drawImage(this.canvas,i[0],i[1],i[2],i[3],o[0],o[1],o[2],o[3])}}},{key:"drawImageAtPosition",value:function(A,r,n,i,o,g){if(this.initialized())if(r>2){r*=.5;for(var a=0;r>2&&a<this.NUM_ITERATIONS;)r*=.5,a+=1;a>=this.NUM_ITERATIONS&&(a=this.NUM_ITERATIONS-1);var s=this.coordinates[a];A.drawImage(this.canvas,s[0],s[1],s[2],s[3],n,i,o,g)}else A.drawImage(this.image,n,i,o,g)}}]),e}(),HNA=function(){function e(t){cA(this,e),this.images={},this.imageBroken={},this.callback=t}return hA(e,[{key:"_tryloadBrokenUrl",value:function(A,r,n){if(!(A===void 0||n===void 0)){if(r===void 0){console.warn("No broken url image defined");return}n.image.onerror=function(){console.error("Could not load brokenImage:",r)},n.image.src=r}}},{key:"_redrawWithImage",value:function(A){this.callback&&this.callback(A)}},{key:"load",value:function(A,r){var n=this,i=this.images[A];if(i)return i;var o=new TNA;return this.images[A]=o,o.image.onload=function(){n._fixImageCoordinates(o.image),o.init(),n._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",A),n._tryloadBrokenUrl(A,r,o)},o.image.src=A,o}},{key:"_fixImageCoordinates",value:function(A){A.width===0&&(document.body.appendChild(A),A.width=A.offsetWidth,A.height=A.offsetHeight,document.body.removeChild(A))}}]),e}(),Pz={exports:{}},UNA=fe,KNA=UNA(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),_NA=fe,YNA=mt,JNA=Oo,b8=KNA,Bf=Object.isExtensible,zNA=_NA(function(){Bf(1)}),WNA=zNA||b8?function(t){return!YNA(t)||b8&&JNA(t)==="ArrayBuffer"?!1:Bf?Bf(t):!0}:Bf,qNA=fe,Fz=!qNA(function(){return Object.isExtensible(Object.preventExtensions({}))}),jNA=SA,VNA=be,ZNA=ah,XNA=mt,Ek=ut,APA=An.f,M8=uh,ePA=nv,Qk=WNA,tPA=zQ,rPA=Fz,Rz=!1,So=tPA("meta"),nPA=0,vk=function(e){APA(e,So,{value:{objectID:"O"+nPA++,weakData:{}}})},iPA=function(e,t){if(!XNA(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Ek(e,So)){if(!Qk(e))return"F";if(!t)return"E";vk(e)}return e[So].objectID},oPA=function(e,t){if(!Ek(e,So)){if(!Qk(e))return!0;if(!t)return!1;vk(e)}return e[So].weakData},gPA=function(e){return rPA&&Rz&&Qk(e)&&!Ek(e,So)&&vk(e),e},aPA=function(){sPA.enable=function(){},Rz=!0;var e=M8.f,t=VNA([].splice),A={};A[So]=1,e(A).length&&(M8.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===So){t(n,i,1);break}return n},jNA({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ePA.f}))},sPA=Pz.exports={enable:aPA,fastKey:iPA,getWeakData:oPA,onFreeze:gPA};ZNA[So]=!0;var cv=Pz.exports,CPA=ia,IPA=Ut,lPA=$r,uPA=nl,cPA=pJ,hPA=en,k8=nt,dPA=ZM,BPA=Av,S8=vJ,fPA=TypeError,ff=function(e,t){this.stopped=e,this.result=t},N8=ff.prototype,Ia=function(e,t,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),i=!!(A&&A.IS_RECORD),o=!!(A&&A.IS_ITERATOR),g=!!(A&&A.INTERRUPTED),a=CPA(t,r),s,C,I,l,u,c,h,d=function(f){return s&&S8(s,"normal",f),new ff(!0,f)},B=function(f){return n?(lPA(f),g?a(f[0],f[1],d):a(f[0],f[1])):g?a(f,d):a(f)};if(i)s=e.iterator;else if(o)s=e;else{if(C=BPA(e),!C)throw new fPA(uPA(e)+" is not iterable");if(cPA(C)){for(I=0,l=hPA(e);l>I;I++)if(u=B(e[I]),u&&k8(N8,u))return u;return new ff(!1)}s=dPA(e,C)}for(c=i?e.next:s.next;!(h=IPA(c,s)).done;){try{u=B(h.value)}catch(f){S8(s,"throw",f)}if(typeof u=="object"&&u&&k8(N8,u))return u}return new ff(!1)},EPA=nt,QPA=TypeError,hv=function(e,t){if(EPA(t,e))return e;throw new QPA("Incorrect invocation")},vPA=SA,pPA=He,wPA=cv,DPA=fe,yPA=Go,mPA=Ia,bPA=hv,MPA=lt,kPA=mt,SPA=Os,NPA=Ts,PPA=An.f,FPA=Ca.forEach,RPA=Xt,Lz=oa,LPA=Lz.set,$PA=Lz.getterFor,pk=function(e,t,A){var r=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,i=r?"set":"add",o=pPA[e],g=o&&o.prototype,a={},s;if(!RPA||!MPA(o)||!(n||g.forEach&&!DPA(function(){new o().entries().next()})))s=A.getConstructor(t,e,r,i),wPA.enable();else{s=t(function(l,u){LPA(bPA(l,C),{type:e,collection:new o}),SPA(u)||mPA(u,l[i],{that:l,AS_ENTRIES:r})});var C=s.prototype,I=$PA(e);FPA(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(l){var u=l==="add"||l==="set";l in g&&!(n&&l==="clear")&&yPA(C,l,function(c,h){var d=I(this).collection;if(!u&&n&&!kPA(c))return l==="get"?void 0:!1;var B=d[l](c===0?0:c,h);return u?this:B})}),n||PPA(C,"size",{configurable:!0,get:function(){return I(this).collection.size}})}return NPA(s,e,!1,!0),a[e]=s,vPA({global:!0,forced:!0},a),n||A.setStrong(s,e,r),s},OPA=ol,wk=function(e,t,A){for(var r in t)A&&A.unsafe&&e[r]?e[r]=t[r]:OPA(e,r,t[r],A);return e},GPA=Rr,xPA=XM,TPA=Ze,HPA=Xt,P8=TPA("species"),$z=function(e){var t=GPA(e);HPA&&t&&!t[P8]&&xPA(t,P8,{configurable:!0,get:function(){return this}})},UPA=xs,KPA=XM,F8=wk,_PA=ia,YPA=hv,JPA=Os,zPA=Ia,WPA=qM,rB=jM,qPA=$z,Wl=Xt,R8=cv.fastKey,Oz=oa,L8=Oz.set,Kw=Oz.getterFor,Gz={getConstructor:function(e,t,A,r){var n=e(function(s,C){YPA(s,i),L8(s,{type:t,index:UPA(null),first:void 0,last:void 0,size:0}),Wl||(s.size=0),JPA(C)||zPA(C,s[r],{that:s,AS_ENTRIES:A})}),i=n.prototype,o=Kw(t),g=function(s,C,I){var l=o(s),u=a(s,C),c,h;return u?u.value=I:(l.last=u={index:h=R8(C,!0),key:C,value:I,previous:c=l.last,next:void 0,removed:!1},l.first||(l.first=u),c&&(c.next=u),Wl?l.size++:s.size++,h!=="F"&&(l.index[h]=u)),s},a=function(s,C){var I=o(s),l=R8(C),u;if(l!=="F")return I.index[l];for(u=I.first;u;u=u.next)if(u.key===C)return u};return F8(i,{clear:function(){for(var C=this,I=o(C),l=I.index,u=I.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete l[u.index],u=u.next;I.first=I.last=void 0,Wl?I.size=0:C.size=0},delete:function(s){var C=this,I=o(C),l=a(C,s);if(l){var u=l.next,c=l.previous;delete I.index[l.index],l.removed=!0,c&&(c.next=u),u&&(u.previous=c),I.first===l&&(I.first=u),I.last===l&&(I.last=c),Wl?I.size--:C.size--}return!!l},forEach:function(C){for(var I=o(this),l=_PA(C,arguments.length>1?arguments[1]:void 0),u;u=u?u.next:I.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(C){return!!a(this,C)}}),F8(i,A?{get:function(C){var I=a(this,C);return I&&I.value},set:function(C,I){return g(this,C===0?0:C,I)}}:{add:function(C){return g(this,C=C===0?0:C,C)}}),Wl&&KPA(i,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,A){var r=t+" Iterator",n=Kw(t),i=Kw(r);WPA(e,t,function(o,g){L8(this,{type:r,target:o,state:n(o),kind:g,last:void 0})},function(){for(var o=i(this),g=o.kind,a=o.last;a&&a.removed;)a=a.previous;return!o.target||!(o.last=a=a?a.next:o.state.first)?(o.target=void 0,rB(void 0,!0)):rB(g==="keys"?a.key:g==="values"?a.value:[a.key,a.value],!1)},A?"entries":"values",!A,!0),qPA(t)}},jPA=pk,VPA=Gz;jPA("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VPA);var ZPA=ve,XPA=ZPA.Map,AFA=XPA,eFA=AFA,tFA=eFA,dv=kA(tFA),rFA=function(){function e(){cA(this,e),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},wt(this.options,this.defaultOptions)}return hA(e,[{key:"setOptions",value:function(A){var r=["useDefaultGroups"];if(A!==void 0){for(var n in A)if(Object.prototype.hasOwnProperty.call(A,n)&&ye(r).call(r,n)===-1){var i=A[n];this.add(n,i)}}}},{key:"clear",value:function(){this._groups=new dv,this._groupNames=[]}},{key:"get",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this._groups.get(A);if(n===void 0&&r)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var i=this._groupIndex%this._groupNames.length;++this._groupIndex,n={},n.color=this._groups.get(this._groupNames[i]),this._groups.set(A,n)}else{var o=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,n={},n.color=this._defaultGroups[o],this._groups.set(A,n)}return n}},{key:"add",value:function(A,r){return this._groups.has(A)||this._groupNames.push(A),this._groups.set(A,r),r}}]),e}(),nFA=SA;nFA({target:"Number",stat:!0},{isNaN:function(t){return t!==t}});var iFA=ve,oFA=iFA.Number.isNaN,gFA=oFA,aFA=gFA,sFA=aFA,Z0=kA(sFA),CFA=He,IFA=CFA.isFinite,lFA=Number.isFinite||function(t){return typeof t=="number"&&IFA(t)},uFA=SA,cFA=lFA;uFA({target:"Number",stat:!0},{isFinite:cFA});var hFA=ve,dFA=hFA.Number.isFinite,BFA=dFA,fFA=BFA,EFA=fFA,Ha=kA(EFA),QFA=SA,vFA=Ca.some,pFA=sl,wFA=pFA("some");QFA({target:"Array",proto:!0,forced:!wFA},{some:function(t){return vFA(this,t,arguments.length>1?arguments[1]:void 0)}});var DFA=bt,yFA=DFA("Array").some,mFA=nt,bFA=yFA,_w=Array.prototype,MFA=function(e){var t=e.some;return e===_w||mFA(_w,e)&&t===_w.some?bFA:t},kFA=MFA,SFA=kFA,NFA=SFA,xz=kA(NFA);function Na(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var PFA=T3,FFA=PFA,RFA=FFA,LFA=RFA,Tz=LFA,$FA=kA(Tz),OFA=SA,GFA=fJ;OFA({target:"Object",stat:!0},{setPrototypeOf:GFA});var xFA=ve,TFA=xFA.Object.setPrototypeOf,HFA=TFA,UFA=HFA,KFA=UFA,_FA=KFA,YFA=_FA,JFA=YFA,Hz=JFA,X0=kA(Hz),zFA=tJ,WFA=zFA,qFA=WFA,jFA=qFA,VFA=jFA,Dk=kA(VFA);function Ab(e,t){var A;return Ab=X0?Dk(A=X0).call(A):function(n,i){return n.__proto__=i,n},Ab(e,t)}function Me(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=$FA(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),ev(e,"prototype",{writable:!1}),t&&Ab(e,t)}function Fe(e,t){if(t&&(Ie(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Na(e)}var ZFA=L3,XFA=ZFA,ARA=XFA,eRA=ARA,Uz=eRA,$8=kA(Uz);function PA(e){var t;return PA=X0?Dk(t=$8).call(t):function(r){return r.__proto__||$8(r)},PA(e)}function Ve(e,t,A){return t=Q3(t),t in e?ev(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}var Kz={exports:{}},_z={exports:{}};(function(e){var t=ik,A=E3;function r(n){"@babel/helpers - typeof";return e.exports=r=typeof t=="function"&&typeof A=="symbol"?function(i){return typeof i}:function(i){return i&&typeof t=="function"&&i.constructor===t&&i!==t.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(_z);var tRA=_z.exports,rRA=N3,nRA=rRA,iRA=nRA,oRA=iRA,gRA=oRA,O8=ut,aRA=ok,sRA=ra,CRA=An,IRA=function(e,t,A){for(var r=aRA(t),n=CRA.f,i=sRA.f,o=0;o<r.length;o++){var g=r[o];!O8(e,g)&&!(A&&O8(A,g))&&n(e,g,i(t,g))}},lRA=mt,uRA=Go,cRA=function(e,t){lRA(t)&&"cause"in t&&uRA(e,"cause",t.cause)},hRA=be,Yz=Error,dRA=hRA("".replace),BRA=function(e){return String(new Yz(e).stack)}("zxcasd"),Jz=/\n\s*at [^:]*:[^\n]*/,fRA=Jz.test(BRA),ERA=function(e,t){if(fRA&&typeof e=="string"&&!Yz.prepareStackTrace)for(;t--;)e=dRA(e,Jz,"");return e},QRA=fe,vRA=$s,pRA=!QRA(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",vRA(1,7)),e.stack!==7):!0}),wRA=Go,DRA=ERA,yRA=pRA,G8=Error.captureStackTrace,mRA=function(e,t,A,r){yRA&&(G8?G8(e,t):wRA(e,"stack",DRA(A,r)))},bRA=vi,MRA=function(e,t){return e===void 0?arguments.length<2?"":t:bRA(e)},kRA=SA,SRA=nt,NRA=Ih,NE=fJ,PRA=IRA,zz=xs,Yw=Go,Jw=$s,FRA=cRA,RRA=mRA,LRA=Ia,$RA=MRA,ORA=Ze,GRA=ORA("toStringTag"),PE=Error,xRA=[].push,mI=function(t,A){var r=SRA(zw,this),n;NE?n=NE(new PE,r?NRA(this):zw):(n=r?this:zz(zw),Yw(n,GRA,"Error")),A!==void 0&&Yw(n,"message",$RA(A)),RRA(n,mI,n.stack,1),arguments.length>2&&FRA(n,arguments[2]);var i=[];return LRA(t,xRA,{that:i}),Yw(n,"errors",i),n};NE?NE(mI,PE):PRA(mI,PE,{name:!0});var zw=mI.prototype=zz(PE.prototype,{constructor:Jw(1,mI),message:Jw(1,""),name:Jw(1,"AggregateError")});kRA({global:!0,constructor:!0,arity:2},{AggregateError:mI});var TRA=He,HRA=Oo,wh=HRA(TRA.process)==="process",URA=XQ,KRA=nl,_RA=TypeError,Wz=function(e){if(URA(e))return e;throw new _RA(KRA(e)+" is not a constructor")},x8=$r,YRA=Wz,JRA=Os,zRA=Ze,WRA=zRA("species"),qz=function(e,t){var A=x8(e).constructor,r;return A===void 0||JRA(r=x8(A)[WRA])?t:YRA(r)},qRA=na,jz=/(?:ipad|iphone|ipod).*applewebkit/i.test(qRA),hn=He,jRA=el,VRA=ia,T8=lt,ZRA=ut,Vz=fe,H8=lJ,XRA=Ch,U8=UM,ALA=H3,eLA=jz,tLA=wh,eb=hn.setImmediate,tb=hn.clearImmediate,rLA=hn.process,Ww=hn.Dispatch,nLA=hn.Function,K8=hn.MessageChannel,iLA=hn.String,qw=0,Pu={},_8="onreadystatechange",Bc,ba,jw,Vw;Vz(function(){Bc=hn.location});var yk=function(e){if(ZRA(Pu,e)){var t=Pu[e];delete Pu[e],t()}},Zw=function(e){return function(){yk(e)}},Y8=function(e){yk(e.data)},J8=function(e){hn.postMessage(iLA(e),Bc.protocol+"//"+Bc.host)};(!eb||!tb)&&(eb=function(t){ALA(arguments.length,1);var A=T8(t)?t:nLA(t),r=XRA(arguments,1);return Pu[++qw]=function(){jRA(A,void 0,r)},ba(qw),qw},tb=function(t){delete Pu[t]},tLA?ba=function(e){rLA.nextTick(Zw(e))}:Ww&&Ww.now?ba=function(e){Ww.now(Zw(e))}:K8&&!eLA?(jw=new K8,Vw=jw.port2,jw.port1.onmessage=Y8,ba=VRA(Vw.postMessage,Vw)):hn.addEventListener&&T8(hn.postMessage)&&!hn.importScripts&&Bc&&Bc.protocol!=="file:"&&!Vz(J8)?(ba=J8,hn.addEventListener("message",Y8,!1)):_8 in U8("script")?ba=function(e){H8.appendChild(U8("script"))[_8]=function(){H8.removeChild(this),yk(e)}}:ba=function(e){setTimeout(Zw(e),0)});var Zz={set:eb,clear:tb},Xz=function(){this.head=null,this.tail=null};Xz.prototype={add:function(e){var t={item:e,next:null},A=this.tail;A?A.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var A5=Xz,oLA=na,gLA=/ipad|iphone|ipod/i.test(oLA)&&typeof Pebble<"u",aLA=na,sLA=/web0s(?!.*chrome)/i.test(aLA),Bs=He,z8=ia,CLA=ra.f,Xw=Zz.set,ILA=A5,lLA=jz,uLA=gLA,cLA=sLA,AD=wh,W8=Bs.MutationObserver||Bs.WebKitMutationObserver,q8=Bs.document,j8=Bs.process,nB=Bs.Promise,V8=CLA(Bs,"queueMicrotask"),rb=V8&&V8.value,IC,eD,tD,iB,Z8;if(!rb){var oB=new ILA,gB=function(){var e,t;for(AD&&(e=j8.domain)&&e.exit();t=oB.get();)try{t()}catch(A){throw oB.head&&IC(),A}e&&e.enter()};!lLA&&!AD&&!cLA&&W8&&q8?(eD=!0,tD=q8.createTextNode(""),new W8(gB).observe(tD,{characterData:!0}),IC=function(){tD.data=eD=!eD}):!uLA&&nB&&nB.resolve?(iB=nB.resolve(void 0),iB.constructor=nB,Z8=z8(iB.then,iB),IC=function(){Z8(gB)}):AD?IC=function(){j8.nextTick(gB)}:(Xw=z8(Xw,Bs),IC=function(){Xw(gB)}),rb=function(e){oB.head||IC(),oB.add(e)}}var hLA=rb,dLA=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},ul=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},BLA=He,cl=BLA.Promise,e5=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",fLA=e5,ELA=wh,QLA=!fLA&&!ELA&&typeof window=="object"&&typeof document=="object",vLA=He,Fu=cl,pLA=lt,wLA=jY,DLA=wJ,yLA=Ze,mLA=QLA,bLA=e5,rD=tl,X8=Fu&&Fu.prototype,MLA=yLA("species"),nb=!1,t5=pLA(vLA.PromiseRejectionEvent),kLA=wLA("Promise",function(){var e=DLA(Fu),t=e!==String(Fu);if(!t&&rD===66||!(X8.catch&&X8.finally))return!0;if(!rD||rD<51||!/native code/.test(e)){var A=new Fu(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=A.constructor={};if(n[MLA]=r,nb=A.then(function(){})instanceof r,!nb)return!0}return!t&&(mLA||bLA)&&!t5}),Dh={CONSTRUCTOR:kLA,REJECTION_EVENT:t5,SUBCLASSING:nb},Ao={},A$=Xr,SLA=TypeError,NLA=function(e){var t,A;this.promise=new e(function(r,n){if(t!==void 0||A!==void 0)throw new SLA("Bad Promise constructor");t=r,A=n}),this.resolve=A$(t),this.reject=A$(A)};Ao.f=function(e){return new NLA(e)};var PLA=SA,FE=wh,qg=He,yh=Ut,FLA=ol,RLA=Ts,LLA=$z,$LA=Xr,ib=lt,OLA=mt,GLA=hv,xLA=qz,r5=Zz.set,mk=hLA,TLA=dLA,HLA=ul,ULA=A5,n5=oa,ob=cl,i5=Dh,o5=Ao,Bv="Promise",g5=i5.CONSTRUCTOR,KLA=i5.REJECTION_EVENT,nD=n5.getterFor(Bv),_LA=n5.set,YLA=ob&&ob.prototype,PC=ob,iD=YLA,a5=qg.TypeError,gb=qg.document,bk=qg.process,ab=o5.f,JLA=ab,zLA=!!(gb&&gb.createEvent&&qg.dispatchEvent),s5="unhandledrejection",WLA="rejectionhandled",e$=0,C5=1,qLA=2,Mk=1,I5=2,aB,t$,jLA,l5=function(e){var t;return OLA(e)&&ib(t=e.then)?t:!1},u5=function(e,t){var A=t.value,r=t.state===C5,n=r?e.ok:e.fail,i=e.resolve,o=e.reject,g=e.domain,a,s,C;try{n?(r||(t.rejection===I5&&ZLA(t),t.rejection=Mk),n===!0?a=A:(g&&g.enter(),a=n(A),g&&(g.exit(),C=!0)),a===e.promise?o(new a5("Promise-chain cycle")):(s=l5(a))?yh(s,a,i,o):i(a)):o(A)}catch(I){g&&!C&&g.exit(),o(I)}},c5=function(e,t){e.notified||(e.notified=!0,mk(function(){for(var A=e.reactions,r;r=A.get();)u5(r,e);e.notified=!1,t&&!e.rejection&&VLA(e)}))},h5=function(e,t,A){var r,n;zLA?(r=gb.createEvent("Event"),r.promise=t,r.reason=A,r.initEvent(e,!1,!0),qg.dispatchEvent(r)):r={promise:t,reason:A},!KLA&&(n=qg["on"+e])?n(r):e===s5&&TLA("Unhandled promise rejection",A)},VLA=function(e){yh(r5,qg,function(){var t=e.facade,A=e.value,r=r$(e),n;if(r&&(n=HLA(function(){FE?bk.emit("unhandledRejection",A,t):h5(s5,t,A)}),e.rejection=FE||r$(e)?I5:Mk,n.error))throw n.value})},r$=function(e){return e.rejection!==Mk&&!e.parent},ZLA=function(e){yh(r5,qg,function(){var t=e.facade;FE?bk.emit("rejectionHandled",t):h5(WLA,t,e.value)})},FC=function(e,t,A){return function(r){e(t,r,A)}},eI=function(e,t,A){e.done||(e.done=!0,A&&(e=A),e.value=t,e.state=qLA,c5(e,!0))},sb=function(e,t,A){if(!e.done){e.done=!0,A&&(e=A);try{if(e.facade===t)throw new a5("Promise can't be resolved itself");var r=l5(t);r?mk(function(){var n={done:!1};try{yh(r,t,FC(sb,n,e),FC(eI,n,e))}catch(i){eI(n,i,e)}}):(e.value=t,e.state=C5,c5(e,!1))}catch(n){eI({done:!1},n,e)}}};g5&&(PC=function(t){GLA(this,iD),$LA(t),yh(aB,this);var A=nD(this);try{t(FC(sb,A),FC(eI,A))}catch(r){eI(A,r)}},iD=PC.prototype,aB=function(t){_LA(this,{type:Bv,done:!1,notified:!1,parent:!1,reactions:new ULA,rejection:!1,state:e$,value:void 0})},aB.prototype=FLA(iD,"then",function(t,A){var r=nD(this),n=ab(xLA(this,PC));return r.parent=!0,n.ok=ib(t)?t:!0,n.fail=ib(A)&&A,n.domain=FE?bk.domain:void 0,r.state===e$?r.reactions.add(n):mk(function(){u5(n,r)}),n.promise}),t$=function(){var e=new aB,t=nD(e);this.promise=e,this.resolve=FC(sb,t),this.reject=FC(eI,t)},o5.f=ab=function(e){return e===PC||e===jLA?new t$(e):JLA(e)});PLA({global:!0,constructor:!0,wrap:!0,forced:g5},{Promise:PC});RLA(PC,Bv,!1,!0);LLA(Bv);var XLA=cl,A8A=SJ,e8A=Dh.CONSTRUCTOR,fv=e8A||!A8A(function(e){XLA.all(e).then(void 0,function(){})}),t8A=SA,r8A=Ut,n8A=Xr,i8A=Ao,o8A=ul,g8A=Ia,a8A=fv;t8A({target:"Promise",stat:!0,forced:a8A},{all:function(t){var A=this,r=i8A.f(A),n=r.resolve,i=r.reject,o=o8A(function(){var g=n8A(A.resolve),a=[],s=0,C=1;g8A(t,function(I){var l=s++,u=!1;C++,r8A(g,A,I).then(function(c){u||(u=!0,a[l]=c,--C||n(a))},i)}),--C||n(a)});return o.error&&i(o.value),r.promise}});var s8A=SA,C8A=Dh.CONSTRUCTOR,n$=cl;n$&&n$.prototype;s8A({target:"Promise",proto:!0,forced:C8A,real:!0},{catch:function(e){return this.then(void 0,e)}});var I8A=SA,l8A=Ut,u8A=Xr,c8A=Ao,h8A=ul,d8A=Ia,B8A=fv;I8A({target:"Promise",stat:!0,forced:B8A},{race:function(t){var A=this,r=c8A.f(A),n=r.reject,i=h8A(function(){var o=u8A(A.resolve);d8A(t,function(g){l8A(o,A,g).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}});var f8A=SA,E8A=Ut,Q8A=Ao,v8A=Dh.CONSTRUCTOR;f8A({target:"Promise",stat:!0,forced:v8A},{reject:function(t){var A=Q8A.f(this);return E8A(A.reject,void 0,t),A.promise}});var p8A=$r,w8A=mt,D8A=Ao,d5=function(e,t){if(p8A(e),w8A(t)&&t.constructor===e)return t;var A=D8A.f(e),r=A.resolve;return r(t),A.promise},y8A=SA,m8A=Rr,b8A=uBA,M8A=cl,k8A=Dh.CONSTRUCTOR,S8A=d5,N8A=m8A("Promise"),P8A=!k8A;y8A({target:"Promise",stat:!0,forced:b8A},{resolve:function(t){return S8A(P8A&&this===N8A?M8A:this,t)}});var F8A=SA,R8A=Ut,L8A=Xr,$8A=Ao,O8A=ul,G8A=Ia,x8A=fv;F8A({target:"Promise",stat:!0,forced:x8A},{allSettled:function(t){var A=this,r=$8A.f(A),n=r.resolve,i=r.reject,o=O8A(function(){var g=L8A(A.resolve),a=[],s=0,C=1;G8A(t,function(I){var l=s++,u=!1;C++,R8A(g,A,I).then(function(c){u||(u=!0,a[l]={status:"fulfilled",value:c},--C||n(a))},function(c){u||(u=!0,a[l]={status:"rejected",reason:c},--C||n(a))})}),--C||n(a)});return o.error&&i(o.value),r.promise}});var T8A=SA,H8A=Ut,U8A=Xr,K8A=Rr,_8A=Ao,Y8A=ul,J8A=Ia,z8A=fv,i$="No one promise resolved";T8A({target:"Promise",stat:!0,forced:z8A},{any:function(t){var A=this,r=K8A("AggregateError"),n=_8A.f(A),i=n.resolve,o=n.reject,g=Y8A(function(){var a=U8A(A.resolve),s=[],C=0,I=1,l=!1;J8A(t,function(u){var c=C++,h=!1;I++,H8A(a,A,u).then(function(d){h||l||(l=!0,i(d))},function(d){h||l||(h=!0,s[c]=d,--I||o(new r(s,i$)))})}),--I||o(new r(s,i$))});return g.error&&o(g.value),n.promise}});var W8A=SA,Cb=cl,q8A=fe,j8A=Rr,V8A=lt,Z8A=qz,o$=d5,X8A=Cb&&Cb.prototype,A$A=!!Cb&&q8A(function(){X8A.finally.call({then:function(){}},function(){})});W8A({target:"Promise",proto:!0,real:!0,forced:A$A},{finally:function(e){var t=Z8A(this,j8A("Promise")),A=V8A(e);return this.then(A?function(r){return o$(t,e()).then(function(){return r})}:e,A?function(r){return o$(t,e()).then(function(){throw r})}:e)}});var e$A=ve,t$A=e$A.Promise,r$A=t$A,n$A=r$A,i$A=SA,o$A=Ao;i$A({target:"Promise",stat:!0},{withResolvers:function(){var t=o$A.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var g$A=n$A,a$A=g$A,s$A=SA,C$A=Ao,I$A=ul;s$A({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=C$A.f(this),A=I$A(e);return(A.error?t.reject:t.resolve)(A.value),t.promise}});var l$A=a$A,u$A=l$A,c$A=u$A,h$A=P3,d$A=h$A,B$A=d$A,f$A=B$A,E$A=f$A;(function(e){var t=tRA.default,A=xJ,r=ik,n=Tz,i=Uz,o=gRA,g=D3,a=Hz,s=c$A,C=E$A,I=m3;function l(){e.exports=l=function(){return c},e.exports.__esModule=!0,e.exports.default=e.exports;var u,c={},h=Object.prototype,d=h.hasOwnProperty,B=A||function(L,P,$){L[P]=$.value},f=typeof r=="function"?r:{},E=f.iterator||"@@iterator",v=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function D(L,P,$){return A(L,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),L[P]}try{D({},"")}catch{D=function($,z,w){return $[z]=w}}function F(L,P,$,z){var w=P&&P.prototype instanceof H?P:H,b=n(w.prototype),G=new Y(z||[]);return B(b,"_invoke",{value:HA(L,$,G)}),b}function N(L,P,$){try{return{type:"normal",arg:L.call(P,$)}}catch(z){return{type:"throw",arg:z}}}c.wrap=F;var S="suspendedStart",m="suspendedYield",R="executing",k="completed",O={};function H(){}function X(){}function q(){}var Z={};D(Z,E,function(){return this});var uA=i,MA=uA&&uA(uA(nA([])));MA&&MA!==h&&d.call(MA,E)&&(Z=MA);var XA=q.prototype=H.prototype=n(Z);function KA(L){var P;o(P=["next","throw","return"]).call(P,function($){D(L,$,function(z){return this._invoke($,z)})})}function QA(L,P){function $(w,b,G,J){var K=N(L[w],L,b);if(K.type!=="throw"){var iA=K.arg,lA=iA.value;return lA&&t(lA)=="object"&&d.call(lA,"__await")?P.resolve(lA.__await).then(function(rA){$("next",rA,G,J)},function(rA){$("throw",rA,G,J)}):P.resolve(lA).then(function(rA){iA.value=rA,G(iA)},function(rA){return $("throw",rA,G,J)})}J(K.arg)}var z;B(this,"_invoke",{value:function(b,G){function J(){return new P(function(K,iA){$(b,G,K,iA)})}return z=z?z.then(J,J):J()}})}function HA(L,P,$){var z=S;return function(w,b){if(z===R)throw new Error("Generator is already running");if(z===k){if(w==="throw")throw b;return{value:u,done:!0}}for($.method=w,$.arg=b;;){var G=$.delegate;if(G){var J=_A(G,$);if(J){if(J===O)continue;return J}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(z===S)throw z=k,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);z=R;var K=N(L,P,$);if(K.type==="normal"){if(z=$.done?k:m,K.arg===O)continue;return{value:K.arg,done:$.done}}K.type==="throw"&&(z=k,$.method="throw",$.arg=K.arg)}}}function _A(L,P){var $=P.method,z=L.iterator[$];if(z===u)return P.delegate=null,$==="throw"&&L.iterator.return&&(P.method="return",P.arg=u,_A(L,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),O;var w=N(z,L.iterator,P.arg);if(w.type==="throw")return P.method="throw",P.arg=w.arg,P.delegate=null,O;var b=w.arg;return b?b.done?(P[L.resultName]=b.value,P.next=L.nextLoc,P.method!=="return"&&(P.method="next",P.arg=u),P.delegate=null,O):b:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,O)}function ne(L){var P,$={tryLoc:L[0]};1 in L&&($.catchLoc=L[1]),2 in L&&($.finallyLoc=L[2],$.afterLoc=L[3]),g(P=this.tryEntries).call(P,$)}function ce(L){var P=L.completion||{};P.type="normal",delete P.arg,L.completion=P}function Y(L){this.tryEntries=[{tryLoc:"root"}],o(L).call(L,ne,this),this.reset(!0)}function nA(L){if(L||L===""){var P=L[E];if(P)return P.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var $=-1,z=function w(){for(;++$<L.length;)if(d.call(L,$))return w.value=L[$],w.done=!1,w;return w.value=u,w.done=!0,w};return z.next=z}}throw new TypeError(t(L)+" is not iterable")}return X.prototype=q,B(XA,"constructor",{value:q,configurable:!0}),B(q,"constructor",{value:X,configurable:!0}),X.displayName=D(q,p,"GeneratorFunction"),c.isGeneratorFunction=function(L){var P=typeof L=="function"&&L.constructor;return!!P&&(P===X||(P.displayName||P.name)==="GeneratorFunction")},c.mark=function(L){return a?a(L,q):(L.__proto__=q,D(L,p,"GeneratorFunction")),L.prototype=n(XA),L},c.awrap=function(L){return{__await:L}},KA(QA.prototype),D(QA.prototype,v,function(){return this}),c.AsyncIterator=QA,c.async=function(L,P,$,z,w){w===void 0&&(w=s);var b=new QA(F(L,P,$,z),w);return c.isGeneratorFunction(P)?b:b.next().then(function(G){return G.done?G.value:b.next()})},KA(XA),D(XA,p,"Generator"),D(XA,E,function(){return this}),D(XA,"toString",function(){return"[object Generator]"}),c.keys=function(L){var P=Object(L),$=[];for(var z in P)g($).call($,z);return C($).call($),function w(){for(;$.length;){var b=$.pop();if(b in P)return w.value=b,w.done=!1,w}return w.done=!0,w}},c.values=nA,Y.prototype={constructor:Y,reset:function(P){var $;if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,o($=this.tryEntries).call($,ce),!P)for(var z in this)z.charAt(0)==="t"&&d.call(this,z)&&!isNaN(+I(z).call(z,1))&&(this[z]=u)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var $=this;function z(iA,lA){return G.type="throw",G.arg=P,$.next=iA,lA&&($.method="next",$.arg=u),!!lA}for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w],G=b.completion;if(b.tryLoc==="root")return z("end");if(b.tryLoc<=this.prev){var J=d.call(b,"catchLoc"),K=d.call(b,"finallyLoc");if(J&&K){if(this.prev<b.catchLoc)return z(b.catchLoc,!0);if(this.prev<b.finallyLoc)return z(b.finallyLoc)}else if(J){if(this.prev<b.catchLoc)return z(b.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<b.finallyLoc)return z(b.finallyLoc)}}}},abrupt:function(P,$){for(var z=this.tryEntries.length-1;z>=0;--z){var w=this.tryEntries[z];if(w.tryLoc<=this.prev&&d.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var b=w;break}}b&&(P==="break"||P==="continue")&&b.tryLoc<=$&&$<=b.finallyLoc&&(b=null);var G=b?b.completion:{};return G.type=P,G.arg=$,b?(this.method="next",this.next=b.finallyLoc,O):this.complete(G)},complete:function(P,$){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&$&&(this.next=$),O},finish:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),ce(z),O}},catch:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.tryLoc===P){var w=z.completion;if(w.type==="throw"){var b=w.arg;ce(z)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(P,$,z){return this.delegate={iterator:nA(P),resultName:$,nextLoc:z},this.method==="next"&&(this.arg=u),O}},c}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports})(Kz);var Q$A=Kz.exports,Ef=Q$A(),v$A=Ef;try{regeneratorRuntime=Ef}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ef:Function("r","regeneratorRuntime = r")(Ef)}var xr=kA(v$A),p$A=Xr,w$A=Lr,D$A=JQ,y$A=en,m$A=TypeError,g$=function(e){return function(t,A,r,n){p$A(A);var i=w$A(t),o=D$A(i),g=y$A(i),a=e?g-1:0,s=e?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=s;break}if(a+=s,e?a<0:g<=a)throw new m$A("Reduce of empty array with no initial value")}for(;e?a>=0:g>a;a+=s)a in o&&(n=A(n,o[a],a,i));return n}},b$A={left:g$(!1),right:g$(!0)},M$A=SA,k$A=b$A.left,S$A=sl,a$=tl,N$A=wh,P$A=!N$A&&a$>79&&a$<83,F$A=P$A||!S$A("reduce");M$A({target:"Array",proto:!0,forced:F$A},{reduce:function(t){var A=arguments.length;return k$A(this,t,A,A>1?arguments[1]:void 0)}});var R$A=bt,L$A=R$A("Array").reduce,$$A=nt,O$A=L$A,oD=Array.prototype,G$A=function(e){var t=e.reduce;return e===oD||$$A(oD,e)&&t===oD.reduce?O$A:t},x$A=G$A,T$A=x$A,H$A=T$A,kk=kA(H$A),U$A=sa,K$A=en,_$A=tv,Y$A=ia,B5=function(e,t,A,r,n,i,o,g){for(var a=n,s=0,C=o?Y$A(o,g):!1,I,l;s<r;)s in A&&(I=C?C(A[s],s,t):A[s],i>0&&U$A(I)?(l=K$A(I),a=B5(e,t,I,l,a,i-1)-1):(_$A(a+1),e[a]=I),a++),s++;return a},J$A=B5,z$A=SA,W$A=J$A,q$A=Xr,j$A=Lr,V$A=en,Z$A=rv;z$A({target:"Array",proto:!0},{flatMap:function(t){var A=j$A(this),r=V$A(A),n;return q$A(t),n=Z$A(A,0),n.length=W$A(n,A,A,r,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var X$A=bt;X$A("Array").flatMap;var AOA=pk,eOA=Gz;AOA("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},eOA);var tOA=ve,rOA=tOA.Set,nOA=rOA,iOA=nOA,oOA=iOA,Ni=kA(oOA),gOA=f3,tI=kA(gOA),aOA=ZM,sOA=aOA,COA=sOA,IOA=COA,lOA=IOA,uOA=lOA,cOA=uOA,hOA=cOA,dOA=hOA,BOA=dOA,gD=kA(BOA),s$=HJ,fOA=Math.floor,Ib=function(e,t){var A=e.length,r=fOA(A/2);return A<8?EOA(e,t):QOA(e,Ib(s$(e,0,r),t),Ib(s$(e,r),t),t)},EOA=function(e,t){for(var A=e.length,r=1,n,i;r<A;){for(i=r,n=e[r];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==r++&&(e[i]=n)}return e},QOA=function(e,t,A,r){for(var n=t.length,i=A.length,o=0,g=0;o<n||g<i;)e[o+g]=o<n&&g<i?r(t[o],A[g])<=0?t[o++]:A[g++]:o<n?t[o++]:A[g++];return e},vOA=Ib,pOA=na,C$=pOA.match(/firefox\/(\d+)/i),wOA=!!C$&&+C$[1],DOA=na,yOA=/MSIE|Trident/.test(DOA),mOA=na,I$=mOA.match(/AppleWebKit\/(\d+)\./),bOA=!!I$&&+I$[1],MOA=SA,f5=be,kOA=Xr,SOA=Lr,l$=en,NOA=F3,u$=vi,Sk=fe,POA=vOA,FOA=sl,c$=wOA,ROA=yOA,h$=tl,d$=bOA,fg=[],B$=f5(fg.sort),LOA=f5(fg.push),$OA=Sk(function(){fg.sort(void 0)}),OOA=Sk(function(){fg.sort(null)}),GOA=FOA("sort"),E5=!Sk(function(){if(h$)return h$<70;if(!(c$&&c$>3)){if(ROA)return!0;if(d$)return d$<603;var e="",t,A,r,n;for(t=65;t<76;t++){switch(A=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)fg.push({k:A+n,v:r})}for(fg.sort(function(i,o){return o.v-i.v}),n=0;n<fg.length;n++)A=fg[n].k.charAt(0),e.charAt(e.length-1)!==A&&(e+=A);return e!=="DGBEFHACIJK"}}),xOA=$OA||!OOA||!GOA||!E5,TOA=function(e){return function(t,A){return A===void 0?-1:t===void 0?1:e!==void 0?+e(t,A)||0:u$(t)>u$(A)?1:-1}};MOA({target:"Array",proto:!0,forced:xOA},{sort:function(t){t!==void 0&&kOA(t);var A=SOA(this);if(E5)return t===void 0?B$(A):B$(A,t);var r=[],n=l$(A),i,o;for(o=0;o<n;o++)o in A&&LOA(r,A[o]);for(POA(r,TOA(t)),i=l$(r),o=0;o<i;)A[o]=r[o++];for(;o<n;)NOA(A,o++);return A}});var HOA=bt,UOA=HOA("Array").sort,KOA=nt,_OA=UOA,aD=Array.prototype,YOA=function(e){var t=e.sort;return e===aD||KOA(aD,e)&&t===aD.sort?_OA:t},JOA=YOA,zOA=JOA,WOA=zOA,Pg=kA(WOA),qOA=bt,jOA=qOA("Array").keys,VOA=jOA,ZOA=VOA,XOA=xo,AGA=ut,eGA=nt,tGA=ZOA,sD=Array.prototype,rGA={DOMTokenList:!0,NodeList:!0},nGA=function(e){var t=e.keys;return e===sD||eGA(sD,e)&&t===sD.keys||AGA(rGA,XOA(e))?tGA:t},iGA=nGA,lC=kA(iGA),oGA=bt,gGA=oGA("Array").values,aGA=gGA,sGA=aGA,CGA=xo,IGA=ut,lGA=nt,uGA=sGA,CD=Array.prototype,cGA={DOMTokenList:!0,NodeList:!0},hGA=function(e){var t=e.values;return e===CD||lGA(CD,e)&&t===CD.values||IGA(cGA,CGA(e))?uGA:t},dGA=hGA,RE=kA(dGA),BGA=bt,fGA=BGA("Array").entries,EGA=fGA,QGA=EGA,vGA=xo,pGA=ut,wGA=nt,DGA=QGA,ID=Array.prototype,yGA={DOMTokenList:!0,NodeList:!0},mGA=function(e){var t=e.entries;return e===ID||wGA(ID,e)&&t===ID.entries||pGA(yGA,vGA(e))?DGA:t},bGA=mGA,MGA=kA(bGA),kGA=GJ,mh=kA(kGA),SGA=SA,NGA=Rr,lD=el,PGA=eJ,f$=Wz,FGA=$r,E$=mt,RGA=xs,Q5=fe,Nk=NGA("Reflect","construct"),LGA=Object.prototype,$GA=[].push,v5=Q5(function(){function e(){}return!(Nk(function(){},[],e)instanceof e)}),p5=!Q5(function(){Nk(function(){})}),Q$=v5||p5;SGA({target:"Reflect",stat:!0,forced:Q$,sham:Q$},{construct:function(t,A){f$(t),FGA(A);var r=arguments.length<3?t:f$(arguments[2]);if(p5&&!v5)return Nk(t,A,r);if(t===r){switch(A.length){case 0:return new t;case 1:return new t(A[0]);case 2:return new t(A[0],A[1]);case 3:return new t(A[0],A[1],A[2]);case 4:return new t(A[0],A[1],A[2],A[3])}var n=[null];return lD($GA,n,A),new(lD(PGA,t,n))}var i=r.prototype,o=RGA(E$(i)?i:LGA),g=lD(t,o,A);return E$(g)?g:o}});var OGA=ve,GGA=OGA.Reflect.construct,xGA=GGA,TGA=xGA,HGA=TGA,AA=kA(HGA),UGA=ve,KGA=UGA.Object.getOwnPropertySymbols,_GA=KGA,YGA=_GA,JGA=YGA,ji=kA(JGA),w5={exports:{}},zGA=SA,WGA=fe,qGA=Xi,D5=ra.f,y5=Xt,jGA=!y5||WGA(function(){D5(1)});zGA({target:"Object",stat:!0,forced:jGA,sham:!y5},{getOwnPropertyDescriptor:function(t,A){return D5(qGA(t),A)}});var VGA=ve,m5=VGA.Object,ZGA=w5.exports=function(t,A){return m5.getOwnPropertyDescriptor(t,A)};m5.getOwnPropertyDescriptor.sham&&(ZGA.sham=!0);var XGA=w5.exports,A2A=XGA,b5=A2A,e2A=b5,eo=kA(e2A),t2A=SA,r2A=Xt,n2A=ok,i2A=Xi,o2A=ra,g2A=al;t2A({target:"Object",stat:!0,sham:!r2A},{getOwnPropertyDescriptors:function(t){for(var A=i2A(t),r=o2A.f,n=n2A(A),i={},o=0,g,a;n.length>o;)a=r(A,g=n[o++]),a!==void 0&&g2A(i,g,a);return i}});var a2A=ve,s2A=a2A.Object.getOwnPropertyDescriptors,C2A=s2A,I2A=C2A,l2A=I2A,Vi=kA(l2A),M5={exports:{}},u2A=SA,c2A=Xt,v$=ZQ.f;u2A({target:"Object",stat:!0,forced:Object.defineProperties!==v$,sham:!c2A},{defineProperties:v$});var h2A=ve,k5=h2A.Object,d2A=M5.exports=function(t,A){return k5.defineProperties(t,A)};k5.defineProperties.sham&&(d2A.sham=!0);var B2A=M5.exports,f2A=B2A,E2A=f2A,Q2A=E2A,bh=kA(Q2A);let sB;const v2A=new Uint8Array(16);function p2A(){if(!sB&&(sB=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sB(v2A)}const ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function w2A(e,t=0){return ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]}const D2A=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var p$={randomUUID:D2A};function rI(e,t,A){if(p$.randomUUID&&!t&&!e)return p$.randomUUID();e=e||{};const r=e.random||(e.rng||p2A)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){A=A||0;for(let n=0;n<16;++n)t[A+n]=r[n];return t}return w2A(r)}var S5;function w$(e,t){var A=qe(e);if(ji){var r=ji(e);t&&(r=St(r).call(r,function(n){return eo(e,n).enumerable})),A.push.apply(A,r)}return A}function D$(e){for(var t=1;t<arguments.length;t++){var A,r,n=arguments[t]!=null?arguments[t]:{};t%2?we(A=w$(Object(n),!0)).call(A,function(i){Ve(e,i,n[i])}):Vi?bh(e,Vi(n)):we(r=w$(Object(n))).call(r,function(i){mh(e,i,eo(n,i))})}return e}function y2A(e){var t=m2A();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function m2A(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}function sn(e,t){var A=typeof To<"u"&&aa(e)||e["@@iterator"];if(!A){if(ge(e)||(A=b2A(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
735
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function b2A(e,t){var A;if(e){if(typeof e=="string")return y$(e,t);var r=Ot(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return ga(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y$(e,t)}}function y$(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function m$(e){return typeof e=="string"||typeof e=="number"}var M2A=function(){function e(t){cA(this,e),Ve(this,"delay",void 0),Ve(this,"max",void 0),Ve(this,"_queue",[]),Ve(this,"_timeout",null),Ve(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return hA(e,[{key:"setOptions",value:function(A){A&&typeof A.delay<"u"&&(this.delay=A.delay),A&&typeof A.max<"u"&&(this.max=A.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var A=this._extended.object,r=this._extended.methods,n=0;n<r.length;n++){var i=r[n];i.original?A[i.name]=i.original:delete A[i.name]}this._extended=null}}},{key:"replace",value:function(A,r){var n=this,i=A[r];if(!i)throw new Error("Method "+r+" undefined");A[r]=function(){for(var o=arguments.length,g=new Array(o),a=0;a<o;a++)g[a]=arguments[a];n.queue({args:g,fn:i,context:this})}}},{key:"queue",value:function(A){typeof A=="function"?this._queue.push({fn:A}):this._queue.push(A),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var A=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=ci(function(){A.flush()},this.delay))}},{key:"flush",value:function(){var A,r;we(A=Hi(r=this._queue).call(r,0)).call(A,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(A,r){var n=new e(r);if(A.flush!==void 0)throw new Error("Target object already has a property flush");A.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(r&&r.replace)for(var o=0;o<r.replace.length;o++){var g=r.replace[o];i.push({name:g,original:A[g]}),n.replace(A,g)}return n._extended={object:A,methods:i},n}}]),e}(),k2A=function(){function e(){cA(this,e),Ve(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Ve(this,"subscribe",e.prototype.on),Ve(this,"unsubscribe",e.prototype.off)}return hA(e,[{key:"_trigger",value:function(A,r,n){var i,o;if(A==="*")throw new Error("Cannot trigger event *");we(i=Hs(o=[]).call(o,tt(this._subscribers[A]),tt(this._subscribers["*"]))).call(i,function(g){g(A,r,n??null)})}},{key:"on",value:function(A,r){typeof r=="function"&&this._subscribers[A].push(r)}},{key:"off",value:function(A,r){var n;this._subscribers[A]=St(n=this._subscribers[A]).call(n,function(i){return i!==r})}}]),e}();S5=tI;var b$=function(){function e(t){cA(this,e),Ve(this,"_pairs",void 0),this._pairs=t}return hA(e,[{key:S5,value:xr.mark(function t(){var A,r,n,i,o;return xr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:A=sn(this._pairs),a.prev=1,A.s();case 3:if((r=A.n()).done){a.next=9;break}return n=de(r.value,2),i=n[0],o=n[1],a.next=7,[i,o];case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),A.e(a.t0);case 14:return a.prev=14,A.f(),a.finish(14);case 17:case"end":return a.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:xr.mark(function t(){var A,r,n,i,o;return xr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:A=sn(this._pairs),a.prev=1,A.s();case 3:if((r=A.n()).done){a.next=9;break}return n=de(r.value,2),i=n[0],o=n[1],a.next=7,[i,o];case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),A.e(a.t0);case 14:return a.prev=14,A.f(),a.finish(14);case 17:case"end":return a.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:xr.mark(function t(){var A,r,n,i;return xr.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:A=sn(this._pairs),g.prev=1,A.s();case 3:if((r=A.n()).done){g.next=9;break}return n=de(r.value,1),i=n[0],g.next=7,i;case 7:g.next=3;break;case 9:g.next=14;break;case 11:g.prev=11,g.t0=g.catch(1),A.e(g.t0);case 14:return g.prev=14,A.f(),g.finish(14);case 17:case"end":return g.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:xr.mark(function t(){var A,r,n,i;return xr.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:A=sn(this._pairs),g.prev=1,A.s();case 3:if((r=A.n()).done){g.next=9;break}return n=de(r.value,2),i=n[1],g.next=7,i;case 7:g.next=3;break;case 9:g.next=14;break;case 11:g.prev=11,g.t0=g.catch(1),A.e(g.t0);case 14:return g.prev=14,A.f(),g.finish(14);case 17:case"end":return g.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var A;return lr(A=tt(this._pairs)).call(A,function(r){return r[0]})}},{key:"toItemArray",value:function(){var A;return lr(A=tt(this._pairs)).call(A,function(r){return r[1]})}},{key:"toEntryArray",value:function(){return tt(this._pairs)}},{key:"toObjectMap",value:function(){var A=kg(null),r=sn(this._pairs),n;try{for(r.s();!(n=r.n()).done;){var i=de(n.value,2),o=i[0],g=i[1];A[o]=g}}catch(a){r.e(a)}finally{r.f()}return A}},{key:"toMap",value:function(){return new dv(this._pairs)}},{key:"toIdSet",value:function(){return new Ni(this.toIdArray())}},{key:"toItemSet",value:function(){return new Ni(this.toItemArray())}},{key:"cache",value:function(){return new e(tt(this._pairs))}},{key:"distinct",value:function(A){var r=new Ni,n=sn(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=de(i.value,2),g=o[0],a=o[1];r.add(A(a,g))}}catch(s){n.e(s)}finally{n.f()}return r}},{key:"filter",value:function(A){var r=this._pairs;return new e(Ve({},tI,xr.mark(function n(){var i,o,g,a,s;return xr.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:i=sn(r),I.prev=1,i.s();case 3:if((o=i.n()).done){I.next=10;break}if(g=de(o.value,2),a=g[0],s=g[1],!A(s,a)){I.next=8;break}return I.next=8,[a,s];case 8:I.next=3;break;case 10:I.next=15;break;case 12:I.prev=12,I.t0=I.catch(1),i.e(I.t0);case 15:return I.prev=15,i.f(),I.finish(15);case 18:case"end":return I.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(A){var r=sn(this._pairs),n;try{for(r.s();!(n=r.n()).done;){var i=de(n.value,2),o=i[0],g=i[1];A(g,o)}}catch(a){r.e(a)}finally{r.f()}}},{key:"map",value:function(A){var r=this._pairs;return new e(Ve({},tI,xr.mark(function n(){var i,o,g,a,s;return xr.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:i=sn(r),I.prev=1,i.s();case 3:if((o=i.n()).done){I.next=9;break}return g=de(o.value,2),a=g[0],s=g[1],I.next=7,[a,A(s,a)];case 7:I.next=3;break;case 9:I.next=14;break;case 11:I.prev=11,I.t0=I.catch(1),i.e(I.t0);case 14:return I.prev=14,i.f(),I.finish(14);case 17:case"end":return I.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(A){var r=gD(this._pairs),n=r.next();if(n.done)return null;for(var i=n.value[1],o=A(n.value[1],n.value[0]);!(n=r.next()).done;){var g=de(n.value,2),a=g[0],s=g[1],C=A(s,a);C>o&&(o=C,i=s)}return i}},{key:"min",value:function(A){var r=gD(this._pairs),n=r.next();if(n.done)return null;for(var i=n.value[1],o=A(n.value[1],n.value[0]);!(n=r.next()).done;){var g=de(n.value,2),a=g[0],s=g[1],C=A(s,a);C<o&&(o=C,i=s)}return i}},{key:"reduce",value:function(A,r){var n=sn(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=de(i.value,2),g=o[0],a=o[1];r=A(r,a,g)}}catch(s){n.e(s)}finally{n.f()}return r}},{key:"sort",value:function(A){var r=this;return new e(Ve({},tI,function(){var n;return gD(Pg(n=tt(r._pairs)).call(n,function(i,o){var g=de(i,2),a=g[0],s=g[1],C=de(o,2),I=C[0],l=C[1];return A(s,l,a,I)}))}))}}]),e}();function S2A(e,t){return e[t]==null&&(e[t]=rI()),e}var bI=function(e){Me(A,e);var t=y2A(A);function A(r,n){var i;return cA(this,A),i=t.call(this),Ve(Na(i),"flush",void 0),Ve(Na(i),"length",void 0),Ve(Na(i),"_options",void 0),Ve(Na(i),"_data",void 0),Ve(Na(i),"_idProp",void 0),Ve(Na(i),"_queue",null),r&&!ge(r)&&(n=r,r=[]),i._options=n||{},i._data=new dv,i.length=0,i._idProp=i._options.fieldId||"id",r&&r.length&&i.add(r),i.setOptions(n),i}return hA(A,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=M2A.extend(this,{replace:["add","update","remove"]})),n.queue&&Ie(n.queue)==="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,i){var o=this,g=[],a;if(ge(n)){var s=lr(n).call(n,function(l){return l[o._idProp]});if(xz(s).call(s,function(l){return o._data.has(l)}))throw new Error("A duplicate id was found in the parameter array.");for(var C=0,I=n.length;C<I;C++)a=this._addItem(n[C]),g.push(a)}else if(n&&Ie(n)==="object")a=this._addItem(n),g.push(a);else throw new Error("Unknown dataType");return g.length&&this._trigger("add",{items:g},i),g}},{key:"update",value:function(n,i){var o=this,g=[],a=[],s=[],C=[],I=this._idProp,l=function(B){var f=B[I];if(f!=null&&o._data.has(f)){var E=B,v=wt({},o._data.get(f)),p=o._updateItem(E);a.push(p),C.push(E),s.push(v)}else{var D=o._addItem(B);g.push(D)}};if(ge(n))for(var u=0,c=n.length;u<c;u++)n[u]&&Ie(n[u])==="object"?l(n[u]):console.warn("Ignoring input item, which is not an object at index "+u);else if(n&&Ie(n)==="object")l(n);else throw new Error("Unknown dataType");if(g.length&&this._trigger("add",{items:g},i),a.length){var h={items:a,oldData:s,data:C};this._trigger("update",h,i)}return Hs(g).call(g,a)}},{key:"updateOnly",value:function(n,i){var o,g=this;ge(n)||(n=[n]);var a=lr(o=lr(n).call(n,function(C){var I=g._data.get(C[g._idProp]);if(I==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:I,update:C}})).call(o,function(C){var I=C.oldData,l=C.update,u=I[g._idProp],c=YSA(I,l);return g._data.set(u,c),{id:u,oldData:I,updatedData:c}});if(a.length){var s={items:lr(a).call(a,function(C){return C.id}),oldData:lr(a).call(a,function(C){return C.oldData}),data:lr(a).call(a,function(C){return C.updatedData})};return this._trigger("update",s,i),s.items}else return[]}},{key:"get",value:function(n,i){var o=void 0,g=void 0,a=void 0;m$(n)?(o=n,a=i):ge(n)?(g=n,a=i):a=n;var s=a&&a.returnType==="Object"?"Object":"Array",C=a&&St(a),I=[],l=void 0,u=void 0,c=void 0;if(o!=null)l=this._data.get(o),l&&C&&!C(l)&&(l=void 0);else if(g!=null)for(var h=0,d=g.length;h<d;h++)l=this._data.get(g[h]),l!=null&&(!C||C(l))&&I.push(l);else{var B;u=tt(lC(B=this._data).call(B));for(var f=0,E=u.length;f<E;f++)c=u[f],l=this._data.get(c),l!=null&&(!C||C(l))&&I.push(l)}if(a&&a.order&&o==null&&this._sort(I,a.order),a&&a.fields){var v=a.fields;if(o!=null&&l!=null)l=this._filterFields(l,v);else for(var p=0,D=I.length;p<D;p++)I[p]=this._filterFields(I[p],v)}if(s=="Object"){for(var F={},N=0,S=I.length;N<S;N++){var m=I[N],R=m[this._idProp];F[R]=m}return F}else if(o!=null){var k;return(k=l)!==null&&k!==void 0?k:null}else return I}},{key:"getIds",value:function(n){var i=this._data,o=n&&St(n),g=n&&n.order,a=tt(lC(i).call(i)),s=[];if(o)if(g){for(var C=[],I=0,l=a.length;I<l;I++){var u=a[I],c=this._data.get(u);c!=null&&o(c)&&C.push(c)}this._sort(C,g);for(var h=0,d=C.length;h<d;h++)s.push(C[h][this._idProp])}else for(var B=0,f=a.length;B<f;B++){var E=a[B],v=this._data.get(E);v!=null&&o(v)&&s.push(v[this._idProp])}else if(g){for(var p=[],D=0,F=a.length;D<F;D++){var N=a[D];p.push(i.get(N))}this._sort(p,g);for(var S=0,m=p.length;S<m;S++)s.push(p[S][this._idProp])}else for(var R=0,k=a.length;R<k;R++){var O=a[R],H=i.get(O);H!=null&&s.push(H[this._idProp])}return s}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,i){var o=i&&St(i),g=this._data,a=tt(lC(g).call(g));if(i&&i.order)for(var s=this.get(i),C=0,I=s.length;C<I;C++){var l=s[C],u=l[this._idProp];n(l,u)}else for(var c=0,h=a.length;c<h;c++){var d=a[c],B=this._data.get(d);B!=null&&(!o||o(B))&&n(B,d)}}},{key:"map",value:function(n,i){for(var o=i&&St(i),g=[],a=this._data,s=tt(lC(a).call(a)),C=0,I=s.length;C<I;C++){var l=s[C],u=this._data.get(l);u!=null&&(!o||o(u))&&g.push(n(u,l))}return i&&i.order&&this._sort(g,i.order),g}},{key:"_filterFields",value:function(n,i){var o;return n&&kk(o=ge(i)?i:qe(i)).call(o,function(g,a){return g[a]=n[a],g},{})}},{key:"_sort",value:function(n,i){if(typeof i=="string"){var o=i;Pg(n).call(n,function(g,a){var s=g[o],C=a[o];return s>C?1:s<C?-1:0})}else if(typeof i=="function")Pg(n).call(n,i);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,i){for(var o=[],g=[],a=ge(n)?n:[n],s=0,C=a.length;s<C;s++){var I=this._remove(a[s]);if(I){var l=I[this._idProp];l!=null&&(o.push(l),g.push(I))}}return o.length&&this._trigger("remove",{items:o,oldData:g},i),o}},{key:"_remove",value:function(n){var i;if(m$(n)?i=n:n&&Ie(n)==="object"&&(i=n[this._idProp]),i!=null&&this._data.has(i)){var o=this._data.get(i)||null;return this._data.delete(i),--this.length,o}return null}},{key:"clear",value:function(n){for(var i,o=tt(lC(i=this._data).call(i)),g=[],a=0,s=o.length;a<s;a++)g.push(this._data.get(o[a]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:g},n),o}},{key:"max",value:function(n){var i,o=null,g=null,a=sn(RE(i=this._data).call(i)),s;try{for(a.s();!(s=a.n()).done;){var C=s.value,I=C[n];typeof I=="number"&&(g==null||I>g)&&(o=C,g=I)}}catch(l){a.e(l)}finally{a.f()}return o||null}},{key:"min",value:function(n){var i,o=null,g=null,a=sn(RE(i=this._data).call(i)),s;try{for(a.s();!(s=a.n()).done;){var C=s.value,I=C[n];typeof I=="number"&&(g==null||I<g)&&(o=C,g=I)}}catch(l){a.e(l)}finally{a.f()}return o||null}},{key:"distinct",value:function(n){for(var i=this._data,o=tt(lC(i).call(i)),g=[],a=0,s=0,C=o.length;s<C;s++){for(var I=o[s],l=i.get(I),u=l[n],c=!1,h=0;h<a;h++)if(g[h]==u){c=!0;break}!c&&u!==void 0&&(g[a]=u,a++)}return g}},{key:"_addItem",value:function(n){var i=S2A(n,this._idProp),o=i[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,i),++this.length,o}},{key:"_updateItem",value:function(n){var i=n[this._idProp];if(i==null)throw new Error("Cannot update item: item has no id (item: "+Cl(n)+")");var o=this._data.get(i);if(!o)throw new Error("Cannot update item: no item with id "+i+" found");return this._data.set(i,D$(D$({},o),n)),i}},{key:"stream",value:function(n){if(n){var i=this._data;return new b$(Ve({},tI,xr.mark(function g(){var a,s,C,I;return xr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=sn(n),u.prev=1,a.s();case 3:if((s=a.n()).done){u.next=11;break}if(C=s.value,I=i.get(C),I==null){u.next=9;break}return u.next=9,[C,I];case 9:u.next=3;break;case 11:u.next=16;break;case 13:u.prev=13,u.t0=u.catch(1),a.e(u.t0);case 16:return u.prev=16,a.f(),u.finish(16);case 19:case"end":return u.stop()}},g,null,[[1,13,16,19]])})))}else{var o;return new b$(Ve({},tI,sA(o=MGA(this._data)).call(o,this._data)))}}}]),A}(k2A);function N2A(e,t){return Ie(t)==="object"&&t!==null&&e===t.idProp&&typeof t.add=="function"&&typeof t.clear=="function"&&typeof t.distinct=="function"&&typeof we(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof lr(t)=="function"&&typeof t.max=="function"&&typeof t.min=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.remove=="function"&&typeof t.setOptions=="function"&&typeof t.stream=="function"&&typeof t.update=="function"&&typeof t.updateOnly=="function"}function N5(e,t){return Ie(t)==="object"&&t!==null&&e===t.idProp&&typeof we(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof lr(t)=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.stream=="function"&&N2A(e,t.getDataSet())}var P5=He,P2A=fe,F2A=be,R2A=vi,L2A=$3.trim,$2A=gk,O2A=F2A("".charAt),LE=P5.parseFloat,M$=P5.Symbol,k$=M$&&M$.iterator,G2A=1/LE($2A+"-0")!==-1/0||k$&&!P2A(function(){LE(Object(k$))}),x2A=G2A?function(t){var A=L2A(R2A(t)),r=LE(A);return r===0&&O2A(A,0)==="-"?-0:r}:LE,T2A=SA,S$=x2A;T2A({global:!0,forced:parseFloat!==S$},{parseFloat:S$});var H2A=ve,U2A=H2A.parseFloat,K2A=U2A,_2A=K2A,Y2A=_2A,F5=kA(Y2A),J2A=SA,z2A=fe,W2A=nv.f,q2A=z2A(function(){return!Object.getOwnPropertyNames(1)});J2A({target:"Object",stat:!0,forced:q2A},{getOwnPropertyNames:W2A});var j2A=ve,V2A=j2A.Object,Z2A=function(t){return V2A.getOwnPropertyNames(t)},X2A=Z2A,AxA=X2A,exA=AxA,txA=kA(exA);function Pk(e,t){var A=["node","edge","label"],r=!0,n=Ig(t,"chosen");if(typeof n=="boolean")r=n;else if(Ie(n)==="object"){if(ye(A).call(A,e)===-1)throw new Error("choosify: subOption '"+e+"' should be one of '"+A.join("', '")+"'");var i=Ig(t,["chosen",e]);(typeof i=="boolean"||typeof i=="function")&&(r=i)}return r}function lb(e,t,A){if(e.width<=0||e.height<=0)return!1;if(A!==void 0){var r={x:t.x-A.x,y:t.y-A.y};if(A.angle!==0){var n=-A.angle,i={x:Math.cos(n)*r.x-Math.sin(n)*r.y,y:Math.sin(n)*r.x+Math.cos(n)*r.y};t=i}else t=r}var o=e.x+e.width,g=e.y+e.width;return e.left<t.x&&o>t.x&&e.top<t.y&&g>t.y}function $E(e){return typeof e=="string"&&e!==""}function R5(e,t,A,r){var n=r.x,i=r.y;if(typeof r.distanceToBorder=="function"){var o=r.distanceToBorder(e,t),g=Math.sin(t)*o,a=Math.cos(t)*o;a===o?(n+=o,i=r.y):g===o?(n=r.x,i-=o):(n+=a,i-=g)}else r.shape.width>r.shape.height?(n=r.x+r.shape.width*.5,i=r.y-A):(n=r.x+A,i=r.y-r.shape.height*.5);return{x:n,y:i}}var rxA=function(){function e(t){cA(this,e),this.measureText=t,this.current=0,this.width=0,this.height=0,this.lines=[]}return hA(e,[{key:"_add",value:function(A,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[A]===void 0&&(this.lines[A]={width:0,height:0,blocks:[]});var i=r;(r===void 0||r==="")&&(i=" ");var o=this.measureText(i,n),g=wt({},RE(o));g.text=r,g.width=o.width,g.mod=n,(r===void 0||r==="")&&(g.width=0),this.lines[A].blocks.push(g),this.lines[A].width+=g.width}},{key:"curWidth",value:function(){var A=this.lines[this.current];return A===void 0?0:A.width}},{key:"append",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,A,r)}},{key:"newLine",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,A,r),this.current++}},{key:"determineLineHeights",value:function(){for(var A=0;A<this.lines.length;A++){var r=this.lines[A],n=0;if(r.blocks!==void 0)for(var i=0;i<r.blocks.length;i++){var o=r.blocks[i];n<o.height&&(n=o.height)}r.height=n}}},{key:"determineLabelSize",value:function(){for(var A=0,r=0,n=0;n<this.lines.length;n++){var i=this.lines[n];i.width>A&&(A=i.width),r+=i.height}this.width=A,this.height=r}},{key:"removeEmptyBlocks",value:function(){for(var A=[],r=0;r<this.lines.length;r++){var n=this.lines[r];if(n.blocks.length!==0&&!(r===this.lines.length-1&&n.width===0)){var i={};wt(i,n),i.blocks=[];for(var o=void 0,g=[],a=0;a<n.blocks.length;a++){var s=n.blocks[a];s.width!==0?g.push(s):o===void 0&&(o=s)}g.length===0&&o!==void 0&&g.push(o),i.blocks=g,A.push(i)}}return A}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var A=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:A}}}]),e}(),nxA={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},N$=function(){function e(t){cA(this,e),this.text=t,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return hA(e,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(A){A===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),A!=" "&&(this.buffer+=A)}},{key:"parseWS",value:function(A){return/[ \t]/.test(A)?(this.mono?this.add(A):this.spacing=!0,!0):!1}},{key:"setTag",value:function(A){this.emitBlock(),this[A]=!0,this.modStack.unshift(A)}},{key:"unsetTag",value:function(A){this.emitBlock(),this[A]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(A,r){return!this.mono&&!this[A]&&this.match(r)?(this.setTag(A),!0):!1}},{key:"match",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.prepareRegExp(A),i=de(n,2),o=i[0],g=i[1],a=o.test(this.text.substr(this.position,g));return a&&r&&(this.position+=g-1),a}},{key:"parseEndTag",value:function(A,r,n){var i=this.mod()===A;return A==="mono"?i=i&&this.mono:i=i&&!this.mono,i&&this.match(r)?(n!==void 0?(this.position===this.text.length-1||this.match(n,!1))&&this.unsetTag(A):this.unsetTag(A),!0):!1}},{key:"replace",value:function(A,r){return this.match(A)?(this.add(r),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(A){var r,n;if(A instanceof RegExp)n=A,r=1;else{var i=nxA[A];i!==void 0?n=i:n=new RegExp(A),r=A.length}return[n,r]}}]),e}(),ixA=function(){function e(t,A,r,n){var i=this;cA(this,e),this.ctx=t,this.parent=A,this.selected=r,this.hover=n;var o=function(a,s){if(a===void 0)return 0;var C=i.parent.getFormattingValues(t,r,n,s),I=0;if(a!==""){var l=i.ctx.measureText(a);I=l.width}return{width:I,values:C}};this.lines=new rxA(o)}return hA(e,[{key:"process",value:function(A){if(!$E(A))return this.lines.finalize();var r=this.parent.fontOptions;A=A.replace(/\r\n/g,`
|
|
734
|
+
`,_t()):WA+=se,_t();if(se!='"')throw yr('End of string " expected');_t(),Ur=Dr.IDENTIFIER;return}for(Ur=Dr.UNKNOWN;se!="";)WA+=se,_t();throw new SyntaxError('Syntax error in part "'+Nz(WA,30)+'"')}function QNA(){var e={};if(BNA(),ze(),WA==="strict"&&(e.strict=!0,ze()),(WA==="graph"||WA==="digraph")&&(e.type=WA,ze()),Ur===Dr.IDENTIFIER&&(e.id=WA,ze()),WA!="{")throw yr("Angle bracket { expected");if(ze(),Mz(e),WA!="}")throw yr("Angle bracket } expected");if(ze(),WA!=="")throw yr("End of file expected");return ze(),delete e.node,delete e.edge,delete e.graph,e}function Mz(e){for(;WA!==""&&WA!="}";)vNA(e),WA===";"&&ze()}function vNA(e){var t=kz(e);if(t){Sz(e,t);return}var A=pNA(e);if(!A){if(Ur!=Dr.IDENTIFIER)throw yr("Identifier expected");var r=WA;if(ze(),WA==="="){if(ze(),Ur!=Dr.IDENTIFIER)throw yr("Identifier expected");e[r]=WA,ze()}else wNA(e,r)}}function kz(e){var t=null;if(WA==="subgraph"&&(t={},t.type="subgraph",ze(),Ur===Dr.IDENTIFIER&&(t.id=WA,ze())),WA==="{"){if(ze(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,Mz(t),WA!="}")throw yr("Angle bracket } expected");ze(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function pNA(e){return WA==="node"?(ze(),e.node=Nu(),"node"):WA==="edge"?(ze(),e.edge=Nu(),"edge"):WA==="graph"?(ze(),e.graph=Nu(),"graph"):null}function wNA(e,t){var A={id:t},r=Nu();r&&(A.attr=r),mz(e,A),Sz(e,t)}function Sz(e,t){for(;WA==="->"||WA==="--";){var A,r=WA;ze();var n=kz(e);if(n)A=n;else{if(Ur!=Dr.IDENTIFIER)throw yr("Identifier or subgraph expected");A=WA,mz(e,{id:A}),ze()}var i=Nu(),o=bz(e,t,A,r,i);ENA(e,o),t=A}}function Nu(){for(var e,t=null,A={dashed:!0,solid:!1,dotted:[1,5]},r={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},n=new Array,i=new Array;WA==="[";){for(ze(),t={};WA!==""&&WA!="]";){if(Ur!=Dr.IDENTIFIER)throw yr("Attribute name expected");var o=WA;if(ze(),WA!="=")throw yr("Equal sign = expected");if(ze(),Ur!=Dr.IDENTIFIER)throw yr("Attribute value expected");var g=WA;o==="style"&&(g=A[g]);var a;o==="arrowhead"&&(a=r[g],o="arrows",g={to:{enabled:!0,type:a}}),o==="arrowtail"&&(a=r[g],o="arrows",g={from:{enabled:!0,type:a}}),n.push({attr:t,name:o,value:g}),i.push(o),ze(),WA==","&&ze()}if(WA!="]")throw yr("Bracket ] expected");ze()}if(Mg(i).call(i,"dir")){var s={};for(s.arrows={},e=0;e<n.length;e++)if(n[e].name==="arrows")if(n[e].value.to!=null)s.arrows.to=e;else if(n[e].value.from!=null)s.arrows.from=e;else throw yr("Invalid value of arrows");else n[e].name==="dir"&&(s.dir=e);var C=n[s.dir].value;if(!Mg(i).call(i,"arrows"))if(C==="both")n.push({attr:n[s.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),s.arrows.to=n.length-1,n.push({attr:n[s.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),s.arrows.from=n.length-1;else if(C==="forward")n.push({attr:n[s.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),s.arrows.to=n.length-1;else if(C==="back")n.push({attr:n[s.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),s.arrows.from=n.length-1;else if(C==="none")n.push({attr:n[s.dir].attr,name:"arrows",value:""}),s.arrows.to=n.length-1;else throw yr('Invalid dir type "'+C+'"');var I,l;if(C==="both")s.arrows.to&&s.arrows.from?(l=n[s.arrows.to].value.to.type,I=n[s.arrows.from].value.from.type,n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}},Hi(n).call(n,s.arrows.from,1)):s.arrows.to?(l=n[s.arrows.to].value.to.type,I="arrow",n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.from&&(l="arrow",I=n[s.arrows.from].value.from.type,n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}});else if(C==="back")s.arrows.to&&s.arrows.from?(l="",I=n[s.arrows.from].value.from.type,n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.to?(l="",I="arrow",s.arrows.from=s.arrows.to,n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.from&&(l="",I=n[s.arrows.from].value.from.type,n[s.arrows.to]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}),n[s.arrows.from]={attr:n[s.arrows.from].attr,name:n[s.arrows.from].name,value:{from:{enabled:!0,type:n[s.arrows.from].value.from.type}}};else if(C==="none"){var u;s.arrows.to?u=s.arrows.to:u=s.arrows.from,n[u]={attr:n[u].attr,name:n[u].name,value:""}}else if(C==="forward")s.arrows.to&&s.arrows.from?(l=n[s.arrows.to].value.to.type,I="",n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.to?(l=n[s.arrows.to].value.to.type,I="",n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):s.arrows.from&&(l="arrow",I="",s.arrows.to=s.arrows.from,n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}),n[s.arrows.to]={attr:n[s.arrows.to].attr,name:n[s.arrows.to].name,value:{to:{enabled:!0,type:n[s.arrows.to].value.to.type}}};else throw yr('Invalid dir type "'+C+'"');Hi(n).call(n,s.dir,1)}var c;if(Mg(i).call(i,"penwidth")){var h=[];for(c=n.length,e=0;e<c;e++)n[e].name!=="width"&&(n[e].name==="penwidth"&&(n[e].name="width"),h.push(n[e]));n=h}for(c=n.length,e=0;e<c;e++)fNA(n[e].attr,n[e].name,n[e].value);return t}function yr(e){return new SyntaxError(e+', got "'+Nz(WA,30)+'" (char '+yI+")")}function Nz(e,t){return e.length<=t?e:e.substr(0,27)+"..."}function DNA(e,t,A){ge(e)?we(e).call(e,function(r){ge(t)?we(t).call(t,function(n){A(r,n)}):A(r,t)}):ge(t)?we(t).call(t,function(r){A(e,r)}):A(e,t)}function Uw(e,t,A){for(var r=t.split("."),n=r.pop(),i=e,o=0;o<r.length;o++){var g=r[o];g in i||(i[g]={}),i=i[g]}return i[n]=A,e}function m8(e,t){var A={};for(var r in e)if(e.hasOwnProperty(r)){var n=t[r];ge(n)?we(n).call(n,function(i){Uw(A,i,e[r])}):typeof n=="string"?Uw(A,n,e[r]):Uw(A,r,e[r])}return A}function yNA(e){var t=dNA(e),A={nodes:[],edges:[],options:{}};if(t.nodes){var r;we(r=t.nodes).call(r,function(o){var g={id:o.id,label:String(o.label||o.id)};Wg(g,m8(o.attr,yz)),g.image&&(g.shape="image"),A.nodes.push(g)})}if(t.edges){var n,i=function(g){var a={from:g.from,to:g.to};return Wg(a,m8(g.attr,fk)),a.arrows==null&&g.type==="->"&&(a.arrows="to"),a};we(n=t.edges).call(n,function(o){var g,a;if(o.from instanceof Object?g=o.from.nodes:g={id:o.from},o.to instanceof Object?a=o.to.nodes:a={id:o.to},o.from instanceof Object&&o.from.edges){var s;we(s=o.from.edges).call(s,function(I){var l=i(I);A.edges.push(l)})}if(DNA(g,a,function(I,l){var u=bz(A,I.id,l.id,o.type,o.attr),c=i(u);A.edges.push(c)}),o.to instanceof Object&&o.to.edges){var C;we(C=o.to.edges).call(C,function(I){var l=i(I);A.edges.push(l)})}})}return t.attr&&(A.options=t.attr),A}function mNA(e,t){var A,r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};t!=null&&(t.fixed!=null&&(r.nodes.fixed=t.fixed),t.parseColor!=null&&(r.nodes.parseColor=t.parseColor),t.inheritColor!=null&&(r.edges.inheritColor=t.inheritColor));var n=e.edges,i=lr(n).call(n,function(g){var a={from:g.source,id:g.id,to:g.target};return g.attributes!=null&&(a.attributes=g.attributes),g.label!=null&&(a.label=g.label),g.attributes!=null&&g.attributes.title!=null&&(a.title=g.attributes.title),g.type==="Directed"&&(a.arrows="to"),g.color&&r.edges.inheritColor===!1&&(a.color=g.color),a}),o=lr(A=e.nodes).call(A,function(g){var a={id:g.id,fixed:r.nodes.fixed&&g.x!=null&&g.y!=null};return g.attributes!=null&&(a.attributes=g.attributes),g.label!=null&&(a.label=g.label),g.size!=null&&(a.size=g.size),g.attributes!=null&&g.attributes.title!=null&&(a.title=g.attributes.title),g.title!=null&&(a.title=g.title),g.x!=null&&(a.x=g.x),g.y!=null&&(a.y=g.y),g.color!=null&&(r.nodes.parseColor===!0?a.color=g.color:a.color={background:g.color,border:g.color,highlight:{background:g.color,border:g.color},hover:{background:g.color,border:g.color}}),a});return{nodes:o,edges:i}}var bNA={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},MNA={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},kNA={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},SNA={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},NNA={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},PNA={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},FNA={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},RNA={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},LNA={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},$NA={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},ONA={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},GNA=Object.freeze({__proto__:null,cn:RNA,cs:ONA,de:MNA,en:bNA,es:kNA,fr:$NA,it:SNA,nl:NNA,pt:PNA,ru:FNA,uk:LNA});function xNA(e,t){try{var A=t.split(/[-_ /]/,2),r=de(A,2),n=r[0],i=r[1],o=n!=null?n.toLowerCase():null,g=i!=null?i.toUpperCase():null;if(o&&g){var a=o+"-"+g;if(Object.prototype.hasOwnProperty.call(e,a))return a;var s;console.warn(Hs(s="Unknown variant ".concat(g," of language ")).call(s,o,"."))}if(o){var C=o;if(Object.prototype.hasOwnProperty.call(e,C))return C;console.warn("Unknown language ".concat(o))}return console.warn("Unknown locale ".concat(t,", falling back to English.")),"en"}catch(I){return console.error(I),console.warn("Unexpected error while normalizing locale ".concat(t,", falling back to English.")),"en"}}var TNA=function(){function e(){cA(this,e),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return hA(e,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var A=this.image.width,r=this.image.height;this.width=A,this.height=r;var n=Math.floor(r/2),i=Math.floor(r/4),o=Math.floor(r/8),g=Math.floor(r/16),a=Math.floor(A/2),s=Math.floor(A/4),C=Math.floor(A/8),I=Math.floor(A/16);this.canvas.width=3*s,this.canvas.height=n,this.coordinates=[[0,0,a,n],[a,0,s,i],[a,i,C,o],[5*C,i,I,g]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var A=this.canvas.getContext("2d"),r=this.coordinates[0];A.drawImage(this.image,r[0],r[1],r[2],r[3]);for(var n=1;n<this.NUM_ITERATIONS;n++){var i=this.coordinates[n-1],o=this.coordinates[n];A.drawImage(this.canvas,i[0],i[1],i[2],i[3],o[0],o[1],o[2],o[3])}}},{key:"drawImageAtPosition",value:function(A,r,n,i,o,g){if(this.initialized())if(r>2){r*=.5;for(var a=0;r>2&&a<this.NUM_ITERATIONS;)r*=.5,a+=1;a>=this.NUM_ITERATIONS&&(a=this.NUM_ITERATIONS-1);var s=this.coordinates[a];A.drawImage(this.canvas,s[0],s[1],s[2],s[3],n,i,o,g)}else A.drawImage(this.image,n,i,o,g)}}]),e}(),HNA=function(){function e(t){cA(this,e),this.images={},this.imageBroken={},this.callback=t}return hA(e,[{key:"_tryloadBrokenUrl",value:function(A,r,n){if(!(A===void 0||n===void 0)){if(r===void 0){console.warn("No broken url image defined");return}n.image.onerror=function(){console.error("Could not load brokenImage:",r)},n.image.src=r}}},{key:"_redrawWithImage",value:function(A){this.callback&&this.callback(A)}},{key:"load",value:function(A,r){var n=this,i=this.images[A];if(i)return i;var o=new TNA;return this.images[A]=o,o.image.onload=function(){n._fixImageCoordinates(o.image),o.init(),n._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",A),n._tryloadBrokenUrl(A,r,o)},o.image.src=A,o}},{key:"_fixImageCoordinates",value:function(A){A.width===0&&(document.body.appendChild(A),A.width=A.offsetWidth,A.height=A.offsetHeight,document.body.removeChild(A))}}]),e}(),Pz={exports:{}},UNA=fe,KNA=UNA(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),_NA=fe,YNA=mt,JNA=Oo,b8=KNA,Bf=Object.isExtensible,zNA=_NA(function(){Bf(1)}),WNA=zNA||b8?function(t){return!YNA(t)||b8&&JNA(t)==="ArrayBuffer"?!1:Bf?Bf(t):!0}:Bf,qNA=fe,Fz=!qNA(function(){return Object.isExtensible(Object.preventExtensions({}))}),jNA=SA,VNA=be,ZNA=ah,XNA=mt,Ek=ut,APA=An.f,M8=uh,ePA=nv,Qk=WNA,tPA=zQ,rPA=Fz,Rz=!1,So=tPA("meta"),nPA=0,vk=function(e){APA(e,So,{value:{objectID:"O"+nPA++,weakData:{}}})},iPA=function(e,t){if(!XNA(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Ek(e,So)){if(!Qk(e))return"F";if(!t)return"E";vk(e)}return e[So].objectID},oPA=function(e,t){if(!Ek(e,So)){if(!Qk(e))return!0;if(!t)return!1;vk(e)}return e[So].weakData},gPA=function(e){return rPA&&Rz&&Qk(e)&&!Ek(e,So)&&vk(e),e},aPA=function(){sPA.enable=function(){},Rz=!0;var e=M8.f,t=VNA([].splice),A={};A[So]=1,e(A).length&&(M8.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===So){t(n,i,1);break}return n},jNA({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ePA.f}))},sPA=Pz.exports={enable:aPA,fastKey:iPA,getWeakData:oPA,onFreeze:gPA};ZNA[So]=!0;var cv=Pz.exports,CPA=ia,IPA=Ut,lPA=$r,uPA=nl,cPA=pJ,hPA=en,k8=nt,dPA=ZM,BPA=Av,S8=vJ,fPA=TypeError,ff=function(e,t){this.stopped=e,this.result=t},N8=ff.prototype,Ia=function(e,t,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),i=!!(A&&A.IS_RECORD),o=!!(A&&A.IS_ITERATOR),g=!!(A&&A.INTERRUPTED),a=CPA(t,r),s,C,I,l,u,c,h,d=function(f){return s&&S8(s,"normal",f),new ff(!0,f)},B=function(f){return n?(lPA(f),g?a(f[0],f[1],d):a(f[0],f[1])):g?a(f,d):a(f)};if(i)s=e.iterator;else if(o)s=e;else{if(C=BPA(e),!C)throw new fPA(uPA(e)+" is not iterable");if(cPA(C)){for(I=0,l=hPA(e);l>I;I++)if(u=B(e[I]),u&&k8(N8,u))return u;return new ff(!1)}s=dPA(e,C)}for(c=i?e.next:s.next;!(h=IPA(c,s)).done;){try{u=B(h.value)}catch(f){S8(s,"throw",f)}if(typeof u=="object"&&u&&k8(N8,u))return u}return new ff(!1)},EPA=nt,QPA=TypeError,hv=function(e,t){if(EPA(t,e))return e;throw new QPA("Incorrect invocation")},vPA=SA,pPA=He,wPA=cv,DPA=fe,yPA=Go,mPA=Ia,bPA=hv,MPA=lt,kPA=mt,SPA=Os,NPA=Ts,PPA=An.f,FPA=Ca.forEach,RPA=Xt,Lz=oa,LPA=Lz.set,$PA=Lz.getterFor,pk=function(e,t,A){var r=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,i=r?"set":"add",o=pPA[e],g=o&&o.prototype,a={},s;if(!RPA||!MPA(o)||!(n||g.forEach&&!DPA(function(){new o().entries().next()})))s=A.getConstructor(t,e,r,i),wPA.enable();else{s=t(function(l,u){LPA(bPA(l,C),{type:e,collection:new o}),SPA(u)||mPA(u,l[i],{that:l,AS_ENTRIES:r})});var C=s.prototype,I=$PA(e);FPA(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(l){var u=l==="add"||l==="set";l in g&&!(n&&l==="clear")&&yPA(C,l,function(c,h){var d=I(this).collection;if(!u&&n&&!kPA(c))return l==="get"?void 0:!1;var B=d[l](c===0?0:c,h);return u?this:B})}),n||PPA(C,"size",{configurable:!0,get:function(){return I(this).collection.size}})}return NPA(s,e,!1,!0),a[e]=s,vPA({global:!0,forced:!0},a),n||A.setStrong(s,e,r),s},OPA=ol,wk=function(e,t,A){for(var r in t)A&&A.unsafe&&e[r]?e[r]=t[r]:OPA(e,r,t[r],A);return e},GPA=Rr,xPA=XM,TPA=Ze,HPA=Xt,P8=TPA("species"),$z=function(e){var t=GPA(e);HPA&&t&&!t[P8]&&xPA(t,P8,{configurable:!0,get:function(){return this}})},UPA=xs,KPA=XM,F8=wk,_PA=ia,YPA=hv,JPA=Os,zPA=Ia,WPA=qM,rB=jM,qPA=$z,Wl=Xt,R8=cv.fastKey,Oz=oa,L8=Oz.set,Kw=Oz.getterFor,Gz={getConstructor:function(e,t,A,r){var n=e(function(s,C){YPA(s,i),L8(s,{type:t,index:UPA(null),first:void 0,last:void 0,size:0}),Wl||(s.size=0),JPA(C)||zPA(C,s[r],{that:s,AS_ENTRIES:A})}),i=n.prototype,o=Kw(t),g=function(s,C,I){var l=o(s),u=a(s,C),c,h;return u?u.value=I:(l.last=u={index:h=R8(C,!0),key:C,value:I,previous:c=l.last,next:void 0,removed:!1},l.first||(l.first=u),c&&(c.next=u),Wl?l.size++:s.size++,h!=="F"&&(l.index[h]=u)),s},a=function(s,C){var I=o(s),l=R8(C),u;if(l!=="F")return I.index[l];for(u=I.first;u;u=u.next)if(u.key===C)return u};return F8(i,{clear:function(){for(var C=this,I=o(C),l=I.index,u=I.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete l[u.index],u=u.next;I.first=I.last=void 0,Wl?I.size=0:C.size=0},delete:function(s){var C=this,I=o(C),l=a(C,s);if(l){var u=l.next,c=l.previous;delete I.index[l.index],l.removed=!0,c&&(c.next=u),u&&(u.previous=c),I.first===l&&(I.first=u),I.last===l&&(I.last=c),Wl?I.size--:C.size--}return!!l},forEach:function(C){for(var I=o(this),l=_PA(C,arguments.length>1?arguments[1]:void 0),u;u=u?u.next:I.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(C){return!!a(this,C)}}),F8(i,A?{get:function(C){var I=a(this,C);return I&&I.value},set:function(C,I){return g(this,C===0?0:C,I)}}:{add:function(C){return g(this,C=C===0?0:C,C)}}),Wl&&KPA(i,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,A){var r=t+" Iterator",n=Kw(t),i=Kw(r);WPA(e,t,function(o,g){L8(this,{type:r,target:o,state:n(o),kind:g,last:void 0})},function(){for(var o=i(this),g=o.kind,a=o.last;a&&a.removed;)a=a.previous;return!o.target||!(o.last=a=a?a.next:o.state.first)?(o.target=void 0,rB(void 0,!0)):rB(g==="keys"?a.key:g==="values"?a.value:[a.key,a.value],!1)},A?"entries":"values",!A,!0),qPA(t)}},jPA=pk,VPA=Gz;jPA("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VPA);var ZPA=ve,XPA=ZPA.Map,AFA=XPA,eFA=AFA,tFA=eFA,dv=kA(tFA),rFA=function(){function e(){cA(this,e),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},wt(this.options,this.defaultOptions)}return hA(e,[{key:"setOptions",value:function(A){var r=["useDefaultGroups"];if(A!==void 0){for(var n in A)if(Object.prototype.hasOwnProperty.call(A,n)&&ye(r).call(r,n)===-1){var i=A[n];this.add(n,i)}}}},{key:"clear",value:function(){this._groups=new dv,this._groupNames=[]}},{key:"get",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this._groups.get(A);if(n===void 0&&r)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var i=this._groupIndex%this._groupNames.length;++this._groupIndex,n={},n.color=this._groups.get(this._groupNames[i]),this._groups.set(A,n)}else{var o=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,n={},n.color=this._defaultGroups[o],this._groups.set(A,n)}return n}},{key:"add",value:function(A,r){return this._groups.has(A)||this._groupNames.push(A),this._groups.set(A,r),r}}]),e}(),nFA=SA;nFA({target:"Number",stat:!0},{isNaN:function(t){return t!==t}});var iFA=ve,oFA=iFA.Number.isNaN,gFA=oFA,aFA=gFA,sFA=aFA,Z0=kA(sFA),CFA=He,IFA=CFA.isFinite,lFA=Number.isFinite||function(t){return typeof t=="number"&&IFA(t)},uFA=SA,cFA=lFA;uFA({target:"Number",stat:!0},{isFinite:cFA});var hFA=ve,dFA=hFA.Number.isFinite,BFA=dFA,fFA=BFA,EFA=fFA,Ha=kA(EFA),QFA=SA,vFA=Ca.some,pFA=sl,wFA=pFA("some");QFA({target:"Array",proto:!0,forced:!wFA},{some:function(t){return vFA(this,t,arguments.length>1?arguments[1]:void 0)}});var DFA=bt,yFA=DFA("Array").some,mFA=nt,bFA=yFA,_w=Array.prototype,MFA=function(e){var t=e.some;return e===_w||mFA(_w,e)&&t===_w.some?bFA:t},kFA=MFA,SFA=kFA,NFA=SFA,xz=kA(NFA);function Na(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var PFA=T3,FFA=PFA,RFA=FFA,LFA=RFA,Tz=LFA,$FA=kA(Tz),OFA=SA,GFA=fJ;OFA({target:"Object",stat:!0},{setPrototypeOf:GFA});var xFA=ve,TFA=xFA.Object.setPrototypeOf,HFA=TFA,UFA=HFA,KFA=UFA,_FA=KFA,YFA=_FA,JFA=YFA,Hz=JFA,X0=kA(Hz),zFA=tJ,WFA=zFA,qFA=WFA,jFA=qFA,VFA=jFA,Dk=kA(VFA);function Ab(e,t){var A;return Ab=X0?Dk(A=X0).call(A):function(n,i){return n.__proto__=i,n},Ab(e,t)}function Me(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=$FA(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),ev(e,"prototype",{writable:!1}),t&&Ab(e,t)}function Fe(e,t){if(t&&(Ie(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Na(e)}var ZFA=L3,XFA=ZFA,ARA=XFA,eRA=ARA,Uz=eRA,$8=kA(Uz);function PA(e){var t;return PA=X0?Dk(t=$8).call(t):function(r){return r.__proto__||$8(r)},PA(e)}function Ve(e,t,A){return t=Q3(t),t in e?ev(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}var Kz={exports:{}},_z={exports:{}};(function(e){var t=ik,A=E3;function r(n){"@babel/helpers - typeof";return e.exports=r=typeof t=="function"&&typeof A=="symbol"?function(i){return typeof i}:function(i){return i&&typeof t=="function"&&i.constructor===t&&i!==t.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(_z);var tRA=_z.exports,rRA=N3,nRA=rRA,iRA=nRA,oRA=iRA,gRA=oRA,O8=ut,aRA=ok,sRA=ra,CRA=An,IRA=function(e,t,A){for(var r=aRA(t),n=CRA.f,i=sRA.f,o=0;o<r.length;o++){var g=r[o];!O8(e,g)&&!(A&&O8(A,g))&&n(e,g,i(t,g))}},lRA=mt,uRA=Go,cRA=function(e,t){lRA(t)&&"cause"in t&&uRA(e,"cause",t.cause)},hRA=be,Yz=Error,dRA=hRA("".replace),BRA=function(e){return String(new Yz(e).stack)}("zxcasd"),Jz=/\n\s*at [^:]*:[^\n]*/,fRA=Jz.test(BRA),ERA=function(e,t){if(fRA&&typeof e=="string"&&!Yz.prepareStackTrace)for(;t--;)e=dRA(e,Jz,"");return e},QRA=fe,vRA=$s,pRA=!QRA(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",vRA(1,7)),e.stack!==7):!0}),wRA=Go,DRA=ERA,yRA=pRA,G8=Error.captureStackTrace,mRA=function(e,t,A,r){yRA&&(G8?G8(e,t):wRA(e,"stack",DRA(A,r)))},bRA=vi,MRA=function(e,t){return e===void 0?arguments.length<2?"":t:bRA(e)},kRA=SA,SRA=nt,NRA=Ih,NE=fJ,PRA=IRA,zz=xs,Yw=Go,Jw=$s,FRA=cRA,RRA=mRA,LRA=Ia,$RA=MRA,ORA=Ze,GRA=ORA("toStringTag"),PE=Error,xRA=[].push,mI=function(t,A){var r=SRA(zw,this),n;NE?n=NE(new PE,r?NRA(this):zw):(n=r?this:zz(zw),Yw(n,GRA,"Error")),A!==void 0&&Yw(n,"message",$RA(A)),RRA(n,mI,n.stack,1),arguments.length>2&&FRA(n,arguments[2]);var i=[];return LRA(t,xRA,{that:i}),Yw(n,"errors",i),n};NE?NE(mI,PE):PRA(mI,PE,{name:!0});var zw=mI.prototype=zz(PE.prototype,{constructor:Jw(1,mI),message:Jw(1,""),name:Jw(1,"AggregateError")});kRA({global:!0,constructor:!0,arity:2},{AggregateError:mI});var TRA=He,HRA=Oo,wh=HRA(TRA.process)==="process",URA=XQ,KRA=nl,_RA=TypeError,Wz=function(e){if(URA(e))return e;throw new _RA(KRA(e)+" is not a constructor")},x8=$r,YRA=Wz,JRA=Os,zRA=Ze,WRA=zRA("species"),qz=function(e,t){var A=x8(e).constructor,r;return A===void 0||JRA(r=x8(A)[WRA])?t:YRA(r)},qRA=na,jz=/(?:ipad|iphone|ipod).*applewebkit/i.test(qRA),hn=He,jRA=el,VRA=ia,T8=lt,ZRA=ut,Vz=fe,H8=lJ,XRA=Ch,U8=UM,ALA=H3,eLA=jz,tLA=wh,eb=hn.setImmediate,tb=hn.clearImmediate,rLA=hn.process,Ww=hn.Dispatch,nLA=hn.Function,K8=hn.MessageChannel,iLA=hn.String,qw=0,Pu={},_8="onreadystatechange",Bc,ba,jw,Vw;Vz(function(){Bc=hn.location});var yk=function(e){if(ZRA(Pu,e)){var t=Pu[e];delete Pu[e],t()}},Zw=function(e){return function(){yk(e)}},Y8=function(e){yk(e.data)},J8=function(e){hn.postMessage(iLA(e),Bc.protocol+"//"+Bc.host)};(!eb||!tb)&&(eb=function(t){ALA(arguments.length,1);var A=T8(t)?t:nLA(t),r=XRA(arguments,1);return Pu[++qw]=function(){jRA(A,void 0,r)},ba(qw),qw},tb=function(t){delete Pu[t]},tLA?ba=function(e){rLA.nextTick(Zw(e))}:Ww&&Ww.now?ba=function(e){Ww.now(Zw(e))}:K8&&!eLA?(jw=new K8,Vw=jw.port2,jw.port1.onmessage=Y8,ba=VRA(Vw.postMessage,Vw)):hn.addEventListener&&T8(hn.postMessage)&&!hn.importScripts&&Bc&&Bc.protocol!=="file:"&&!Vz(J8)?(ba=J8,hn.addEventListener("message",Y8,!1)):_8 in U8("script")?ba=function(e){H8.appendChild(U8("script"))[_8]=function(){H8.removeChild(this),yk(e)}}:ba=function(e){setTimeout(Zw(e),0)});var Zz={set:eb,clear:tb},Xz=function(){this.head=null,this.tail=null};Xz.prototype={add:function(e){var t={item:e,next:null},A=this.tail;A?A.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var A5=Xz,oLA=na,gLA=/ipad|iphone|ipod/i.test(oLA)&&typeof Pebble<"u",aLA=na,sLA=/web0s(?!.*chrome)/i.test(aLA),Bs=He,z8=ia,CLA=ra.f,Xw=Zz.set,ILA=A5,lLA=jz,uLA=gLA,cLA=sLA,AD=wh,W8=Bs.MutationObserver||Bs.WebKitMutationObserver,q8=Bs.document,j8=Bs.process,nB=Bs.Promise,V8=CLA(Bs,"queueMicrotask"),rb=V8&&V8.value,IC,eD,tD,iB,Z8;if(!rb){var oB=new ILA,gB=function(){var e,t;for(AD&&(e=j8.domain)&&e.exit();t=oB.get();)try{t()}catch(A){throw oB.head&&IC(),A}e&&e.enter()};!lLA&&!AD&&!cLA&&W8&&q8?(eD=!0,tD=q8.createTextNode(""),new W8(gB).observe(tD,{characterData:!0}),IC=function(){tD.data=eD=!eD}):!uLA&&nB&&nB.resolve?(iB=nB.resolve(void 0),iB.constructor=nB,Z8=z8(iB.then,iB),IC=function(){Z8(gB)}):AD?IC=function(){j8.nextTick(gB)}:(Xw=z8(Xw,Bs),IC=function(){Xw(gB)}),rb=function(e){oB.head||IC(),oB.add(e)}}var hLA=rb,dLA=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},ul=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},BLA=He,cl=BLA.Promise,e5=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",fLA=e5,ELA=wh,QLA=!fLA&&!ELA&&typeof window=="object"&&typeof document=="object",vLA=He,Fu=cl,pLA=lt,wLA=jY,DLA=wJ,yLA=Ze,mLA=QLA,bLA=e5,rD=tl,X8=Fu&&Fu.prototype,MLA=yLA("species"),nb=!1,t5=pLA(vLA.PromiseRejectionEvent),kLA=wLA("Promise",function(){var e=DLA(Fu),t=e!==String(Fu);if(!t&&rD===66||!(X8.catch&&X8.finally))return!0;if(!rD||rD<51||!/native code/.test(e)){var A=new Fu(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=A.constructor={};if(n[MLA]=r,nb=A.then(function(){})instanceof r,!nb)return!0}return!t&&(mLA||bLA)&&!t5}),Dh={CONSTRUCTOR:kLA,REJECTION_EVENT:t5,SUBCLASSING:nb},Ao={},A$=Xr,SLA=TypeError,NLA=function(e){var t,A;this.promise=new e(function(r,n){if(t!==void 0||A!==void 0)throw new SLA("Bad Promise constructor");t=r,A=n}),this.resolve=A$(t),this.reject=A$(A)};Ao.f=function(e){return new NLA(e)};var PLA=SA,FE=wh,qg=He,yh=Ut,FLA=ol,RLA=Ts,LLA=$z,$LA=Xr,ib=lt,OLA=mt,GLA=hv,xLA=qz,r5=Zz.set,mk=hLA,TLA=dLA,HLA=ul,ULA=A5,n5=oa,ob=cl,i5=Dh,o5=Ao,Bv="Promise",g5=i5.CONSTRUCTOR,KLA=i5.REJECTION_EVENT,nD=n5.getterFor(Bv),_LA=n5.set,YLA=ob&&ob.prototype,PC=ob,iD=YLA,a5=qg.TypeError,gb=qg.document,bk=qg.process,ab=o5.f,JLA=ab,zLA=!!(gb&&gb.createEvent&&qg.dispatchEvent),s5="unhandledrejection",WLA="rejectionhandled",e$=0,C5=1,qLA=2,Mk=1,I5=2,aB,t$,jLA,l5=function(e){var t;return OLA(e)&&ib(t=e.then)?t:!1},u5=function(e,t){var A=t.value,r=t.state===C5,n=r?e.ok:e.fail,i=e.resolve,o=e.reject,g=e.domain,a,s,C;try{n?(r||(t.rejection===I5&&ZLA(t),t.rejection=Mk),n===!0?a=A:(g&&g.enter(),a=n(A),g&&(g.exit(),C=!0)),a===e.promise?o(new a5("Promise-chain cycle")):(s=l5(a))?yh(s,a,i,o):i(a)):o(A)}catch(I){g&&!C&&g.exit(),o(I)}},c5=function(e,t){e.notified||(e.notified=!0,mk(function(){for(var A=e.reactions,r;r=A.get();)u5(r,e);e.notified=!1,t&&!e.rejection&&VLA(e)}))},h5=function(e,t,A){var r,n;zLA?(r=gb.createEvent("Event"),r.promise=t,r.reason=A,r.initEvent(e,!1,!0),qg.dispatchEvent(r)):r={promise:t,reason:A},!KLA&&(n=qg["on"+e])?n(r):e===s5&&TLA("Unhandled promise rejection",A)},VLA=function(e){yh(r5,qg,function(){var t=e.facade,A=e.value,r=r$(e),n;if(r&&(n=HLA(function(){FE?bk.emit("unhandledRejection",A,t):h5(s5,t,A)}),e.rejection=FE||r$(e)?I5:Mk,n.error))throw n.value})},r$=function(e){return e.rejection!==Mk&&!e.parent},ZLA=function(e){yh(r5,qg,function(){var t=e.facade;FE?bk.emit("rejectionHandled",t):h5(WLA,t,e.value)})},FC=function(e,t,A){return function(r){e(t,r,A)}},eI=function(e,t,A){e.done||(e.done=!0,A&&(e=A),e.value=t,e.state=qLA,c5(e,!0))},sb=function(e,t,A){if(!e.done){e.done=!0,A&&(e=A);try{if(e.facade===t)throw new a5("Promise can't be resolved itself");var r=l5(t);r?mk(function(){var n={done:!1};try{yh(r,t,FC(sb,n,e),FC(eI,n,e))}catch(i){eI(n,i,e)}}):(e.value=t,e.state=C5,c5(e,!1))}catch(n){eI({done:!1},n,e)}}};g5&&(PC=function(t){GLA(this,iD),$LA(t),yh(aB,this);var A=nD(this);try{t(FC(sb,A),FC(eI,A))}catch(r){eI(A,r)}},iD=PC.prototype,aB=function(t){_LA(this,{type:Bv,done:!1,notified:!1,parent:!1,reactions:new ULA,rejection:!1,state:e$,value:void 0})},aB.prototype=FLA(iD,"then",function(t,A){var r=nD(this),n=ab(xLA(this,PC));return r.parent=!0,n.ok=ib(t)?t:!0,n.fail=ib(A)&&A,n.domain=FE?bk.domain:void 0,r.state===e$?r.reactions.add(n):mk(function(){u5(n,r)}),n.promise}),t$=function(){var e=new aB,t=nD(e);this.promise=e,this.resolve=FC(sb,t),this.reject=FC(eI,t)},o5.f=ab=function(e){return e===PC||e===jLA?new t$(e):JLA(e)});PLA({global:!0,constructor:!0,wrap:!0,forced:g5},{Promise:PC});RLA(PC,Bv,!1,!0);LLA(Bv);var XLA=cl,A8A=SJ,e8A=Dh.CONSTRUCTOR,fv=e8A||!A8A(function(e){XLA.all(e).then(void 0,function(){})}),t8A=SA,r8A=Ut,n8A=Xr,i8A=Ao,o8A=ul,g8A=Ia,a8A=fv;t8A({target:"Promise",stat:!0,forced:a8A},{all:function(t){var A=this,r=i8A.f(A),n=r.resolve,i=r.reject,o=o8A(function(){var g=n8A(A.resolve),a=[],s=0,C=1;g8A(t,function(I){var l=s++,u=!1;C++,r8A(g,A,I).then(function(c){u||(u=!0,a[l]=c,--C||n(a))},i)}),--C||n(a)});return o.error&&i(o.value),r.promise}});var s8A=SA,C8A=Dh.CONSTRUCTOR,n$=cl;n$&&n$.prototype;s8A({target:"Promise",proto:!0,forced:C8A,real:!0},{catch:function(e){return this.then(void 0,e)}});var I8A=SA,l8A=Ut,u8A=Xr,c8A=Ao,h8A=ul,d8A=Ia,B8A=fv;I8A({target:"Promise",stat:!0,forced:B8A},{race:function(t){var A=this,r=c8A.f(A),n=r.reject,i=h8A(function(){var o=u8A(A.resolve);d8A(t,function(g){l8A(o,A,g).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}});var f8A=SA,E8A=Ut,Q8A=Ao,v8A=Dh.CONSTRUCTOR;f8A({target:"Promise",stat:!0,forced:v8A},{reject:function(t){var A=Q8A.f(this);return E8A(A.reject,void 0,t),A.promise}});var p8A=$r,w8A=mt,D8A=Ao,d5=function(e,t){if(p8A(e),w8A(t)&&t.constructor===e)return t;var A=D8A.f(e),r=A.resolve;return r(t),A.promise},y8A=SA,m8A=Rr,b8A=uBA,M8A=cl,k8A=Dh.CONSTRUCTOR,S8A=d5,N8A=m8A("Promise"),P8A=!k8A;y8A({target:"Promise",stat:!0,forced:b8A},{resolve:function(t){return S8A(P8A&&this===N8A?M8A:this,t)}});var F8A=SA,R8A=Ut,L8A=Xr,$8A=Ao,O8A=ul,G8A=Ia,x8A=fv;F8A({target:"Promise",stat:!0,forced:x8A},{allSettled:function(t){var A=this,r=$8A.f(A),n=r.resolve,i=r.reject,o=O8A(function(){var g=L8A(A.resolve),a=[],s=0,C=1;G8A(t,function(I){var l=s++,u=!1;C++,R8A(g,A,I).then(function(c){u||(u=!0,a[l]={status:"fulfilled",value:c},--C||n(a))},function(c){u||(u=!0,a[l]={status:"rejected",reason:c},--C||n(a))})}),--C||n(a)});return o.error&&i(o.value),r.promise}});var T8A=SA,H8A=Ut,U8A=Xr,K8A=Rr,_8A=Ao,Y8A=ul,J8A=Ia,z8A=fv,i$="No one promise resolved";T8A({target:"Promise",stat:!0,forced:z8A},{any:function(t){var A=this,r=K8A("AggregateError"),n=_8A.f(A),i=n.resolve,o=n.reject,g=Y8A(function(){var a=U8A(A.resolve),s=[],C=0,I=1,l=!1;J8A(t,function(u){var c=C++,h=!1;I++,H8A(a,A,u).then(function(d){h||l||(l=!0,i(d))},function(d){h||l||(h=!0,s[c]=d,--I||o(new r(s,i$)))})}),--I||o(new r(s,i$))});return g.error&&o(g.value),n.promise}});var W8A=SA,Cb=cl,q8A=fe,j8A=Rr,V8A=lt,Z8A=qz,o$=d5,X8A=Cb&&Cb.prototype,A$A=!!Cb&&q8A(function(){X8A.finally.call({then:function(){}},function(){})});W8A({target:"Promise",proto:!0,real:!0,forced:A$A},{finally:function(e){var t=Z8A(this,j8A("Promise")),A=V8A(e);return this.then(A?function(r){return o$(t,e()).then(function(){return r})}:e,A?function(r){return o$(t,e()).then(function(){throw r})}:e)}});var e$A=ve,t$A=e$A.Promise,r$A=t$A,n$A=r$A,i$A=SA,o$A=Ao;i$A({target:"Promise",stat:!0},{withResolvers:function(){var t=o$A.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var g$A=n$A,a$A=g$A,s$A=SA,C$A=Ao,I$A=ul;s$A({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=C$A.f(this),A=I$A(e);return(A.error?t.reject:t.resolve)(A.value),t.promise}});var l$A=a$A,u$A=l$A,c$A=u$A,h$A=P3,d$A=h$A,B$A=d$A,f$A=B$A,E$A=f$A;(function(e){var t=tRA.default,A=xJ,r=ik,n=Tz,i=Uz,o=gRA,g=D3,a=Hz,s=c$A,C=E$A,I=m3;function l(){e.exports=l=function(){return c},e.exports.__esModule=!0,e.exports.default=e.exports;var u,c={},h=Object.prototype,d=h.hasOwnProperty,B=A||function(L,P,$){L[P]=$.value},f=typeof r=="function"?r:{},E=f.iterator||"@@iterator",v=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function D(L,P,$){return A(L,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),L[P]}try{D({},"")}catch{D=function($,z,w){return $[z]=w}}function F(L,P,$,z){var w=P&&P.prototype instanceof H?P:H,b=n(w.prototype),G=new Y(z||[]);return B(b,"_invoke",{value:HA(L,$,G)}),b}function N(L,P,$){try{return{type:"normal",arg:L.call(P,$)}}catch(z){return{type:"throw",arg:z}}}c.wrap=F;var S="suspendedStart",m="suspendedYield",R="executing",k="completed",O={};function H(){}function X(){}function q(){}var Z={};D(Z,E,function(){return this});var uA=i,MA=uA&&uA(uA(nA([])));MA&&MA!==h&&d.call(MA,E)&&(Z=MA);var XA=q.prototype=H.prototype=n(Z);function KA(L){var P;o(P=["next","throw","return"]).call(P,function($){D(L,$,function(z){return this._invoke($,z)})})}function QA(L,P){function $(w,b,G,J){var K=N(L[w],L,b);if(K.type!=="throw"){var iA=K.arg,lA=iA.value;return lA&&t(lA)=="object"&&d.call(lA,"__await")?P.resolve(lA.__await).then(function(rA){$("next",rA,G,J)},function(rA){$("throw",rA,G,J)}):P.resolve(lA).then(function(rA){iA.value=rA,G(iA)},function(rA){return $("throw",rA,G,J)})}J(K.arg)}var z;B(this,"_invoke",{value:function(b,G){function J(){return new P(function(K,iA){$(b,G,K,iA)})}return z=z?z.then(J,J):J()}})}function HA(L,P,$){var z=S;return function(w,b){if(z===R)throw new Error("Generator is already running");if(z===k){if(w==="throw")throw b;return{value:u,done:!0}}for($.method=w,$.arg=b;;){var G=$.delegate;if(G){var J=_A(G,$);if(J){if(J===O)continue;return J}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(z===S)throw z=k,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);z=R;var K=N(L,P,$);if(K.type==="normal"){if(z=$.done?k:m,K.arg===O)continue;return{value:K.arg,done:$.done}}K.type==="throw"&&(z=k,$.method="throw",$.arg=K.arg)}}}function _A(L,P){var $=P.method,z=L.iterator[$];if(z===u)return P.delegate=null,$==="throw"&&L.iterator.return&&(P.method="return",P.arg=u,_A(L,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),O;var w=N(z,L.iterator,P.arg);if(w.type==="throw")return P.method="throw",P.arg=w.arg,P.delegate=null,O;var b=w.arg;return b?b.done?(P[L.resultName]=b.value,P.next=L.nextLoc,P.method!=="return"&&(P.method="next",P.arg=u),P.delegate=null,O):b:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,O)}function ne(L){var P,$={tryLoc:L[0]};1 in L&&($.catchLoc=L[1]),2 in L&&($.finallyLoc=L[2],$.afterLoc=L[3]),g(P=this.tryEntries).call(P,$)}function ce(L){var P=L.completion||{};P.type="normal",delete P.arg,L.completion=P}function Y(L){this.tryEntries=[{tryLoc:"root"}],o(L).call(L,ne,this),this.reset(!0)}function nA(L){if(L||L===""){var P=L[E];if(P)return P.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var $=-1,z=function w(){for(;++$<L.length;)if(d.call(L,$))return w.value=L[$],w.done=!1,w;return w.value=u,w.done=!0,w};return z.next=z}}throw new TypeError(t(L)+" is not iterable")}return X.prototype=q,B(XA,"constructor",{value:q,configurable:!0}),B(q,"constructor",{value:X,configurable:!0}),X.displayName=D(q,p,"GeneratorFunction"),c.isGeneratorFunction=function(L){var P=typeof L=="function"&&L.constructor;return!!P&&(P===X||(P.displayName||P.name)==="GeneratorFunction")},c.mark=function(L){return a?a(L,q):(L.__proto__=q,D(L,p,"GeneratorFunction")),L.prototype=n(XA),L},c.awrap=function(L){return{__await:L}},KA(QA.prototype),D(QA.prototype,v,function(){return this}),c.AsyncIterator=QA,c.async=function(L,P,$,z,w){w===void 0&&(w=s);var b=new QA(F(L,P,$,z),w);return c.isGeneratorFunction(P)?b:b.next().then(function(G){return G.done?G.value:b.next()})},KA(XA),D(XA,p,"Generator"),D(XA,E,function(){return this}),D(XA,"toString",function(){return"[object Generator]"}),c.keys=function(L){var P=Object(L),$=[];for(var z in P)g($).call($,z);return C($).call($),function w(){for(;$.length;){var b=$.pop();if(b in P)return w.value=b,w.done=!1,w}return w.done=!0,w}},c.values=nA,Y.prototype={constructor:Y,reset:function(P){var $;if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,o($=this.tryEntries).call($,ce),!P)for(var z in this)z.charAt(0)==="t"&&d.call(this,z)&&!isNaN(+I(z).call(z,1))&&(this[z]=u)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var $=this;function z(iA,lA){return G.type="throw",G.arg=P,$.next=iA,lA&&($.method="next",$.arg=u),!!lA}for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w],G=b.completion;if(b.tryLoc==="root")return z("end");if(b.tryLoc<=this.prev){var J=d.call(b,"catchLoc"),K=d.call(b,"finallyLoc");if(J&&K){if(this.prev<b.catchLoc)return z(b.catchLoc,!0);if(this.prev<b.finallyLoc)return z(b.finallyLoc)}else if(J){if(this.prev<b.catchLoc)return z(b.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<b.finallyLoc)return z(b.finallyLoc)}}}},abrupt:function(P,$){for(var z=this.tryEntries.length-1;z>=0;--z){var w=this.tryEntries[z];if(w.tryLoc<=this.prev&&d.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var b=w;break}}b&&(P==="break"||P==="continue")&&b.tryLoc<=$&&$<=b.finallyLoc&&(b=null);var G=b?b.completion:{};return G.type=P,G.arg=$,b?(this.method="next",this.next=b.finallyLoc,O):this.complete(G)},complete:function(P,$){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&$&&(this.next=$),O},finish:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),ce(z),O}},catch:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.tryLoc===P){var w=z.completion;if(w.type==="throw"){var b=w.arg;ce(z)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(P,$,z){return this.delegate={iterator:nA(P),resultName:$,nextLoc:z},this.method==="next"&&(this.arg=u),O}},c}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports})(Kz);var Q$A=Kz.exports,Ef=Q$A(),v$A=Ef;try{regeneratorRuntime=Ef}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ef:Function("r","regeneratorRuntime = r")(Ef)}var xr=kA(v$A),p$A=Xr,w$A=Lr,D$A=JQ,y$A=en,m$A=TypeError,g$=function(e){return function(t,A,r,n){p$A(A);var i=w$A(t),o=D$A(i),g=y$A(i),a=e?g-1:0,s=e?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=s;break}if(a+=s,e?a<0:g<=a)throw new m$A("Reduce of empty array with no initial value")}for(;e?a>=0:g>a;a+=s)a in o&&(n=A(n,o[a],a,i));return n}},b$A={left:g$(!1),right:g$(!0)},M$A=SA,k$A=b$A.left,S$A=sl,a$=tl,N$A=wh,P$A=!N$A&&a$>79&&a$<83,F$A=P$A||!S$A("reduce");M$A({target:"Array",proto:!0,forced:F$A},{reduce:function(t){var A=arguments.length;return k$A(this,t,A,A>1?arguments[1]:void 0)}});var R$A=bt,L$A=R$A("Array").reduce,$$A=nt,O$A=L$A,oD=Array.prototype,G$A=function(e){var t=e.reduce;return e===oD||$$A(oD,e)&&t===oD.reduce?O$A:t},x$A=G$A,T$A=x$A,H$A=T$A,kk=kA(H$A),U$A=sa,K$A=en,_$A=tv,Y$A=ia,B5=function(e,t,A,r,n,i,o,g){for(var a=n,s=0,C=o?Y$A(o,g):!1,I,l;s<r;)s in A&&(I=C?C(A[s],s,t):A[s],i>0&&U$A(I)?(l=K$A(I),a=B5(e,t,I,l,a,i-1)-1):(_$A(a+1),e[a]=I),a++),s++;return a},J$A=B5,z$A=SA,W$A=J$A,q$A=Xr,j$A=Lr,V$A=en,Z$A=rv;z$A({target:"Array",proto:!0},{flatMap:function(t){var A=j$A(this),r=V$A(A),n;return q$A(t),n=Z$A(A,0),n.length=W$A(n,A,A,r,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var X$A=bt;X$A("Array").flatMap;var AOA=pk,eOA=Gz;AOA("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},eOA);var tOA=ve,rOA=tOA.Set,nOA=rOA,iOA=nOA,oOA=iOA,Ni=kA(oOA),gOA=f3,tI=kA(gOA),aOA=ZM,sOA=aOA,COA=sOA,IOA=COA,lOA=IOA,uOA=lOA,cOA=uOA,hOA=cOA,dOA=hOA,BOA=dOA,gD=kA(BOA),s$=HJ,fOA=Math.floor,Ib=function(e,t){var A=e.length,r=fOA(A/2);return A<8?EOA(e,t):QOA(e,Ib(s$(e,0,r),t),Ib(s$(e,r),t),t)},EOA=function(e,t){for(var A=e.length,r=1,n,i;r<A;){for(i=r,n=e[r];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==r++&&(e[i]=n)}return e},QOA=function(e,t,A,r){for(var n=t.length,i=A.length,o=0,g=0;o<n||g<i;)e[o+g]=o<n&&g<i?r(t[o],A[g])<=0?t[o++]:A[g++]:o<n?t[o++]:A[g++];return e},vOA=Ib,pOA=na,C$=pOA.match(/firefox\/(\d+)/i),wOA=!!C$&&+C$[1],DOA=na,yOA=/MSIE|Trident/.test(DOA),mOA=na,I$=mOA.match(/AppleWebKit\/(\d+)\./),bOA=!!I$&&+I$[1],MOA=SA,f5=be,kOA=Xr,SOA=Lr,l$=en,NOA=F3,u$=vi,Sk=fe,POA=vOA,FOA=sl,c$=wOA,ROA=yOA,h$=tl,d$=bOA,fg=[],B$=f5(fg.sort),LOA=f5(fg.push),$OA=Sk(function(){fg.sort(void 0)}),OOA=Sk(function(){fg.sort(null)}),GOA=FOA("sort"),E5=!Sk(function(){if(h$)return h$<70;if(!(c$&&c$>3)){if(ROA)return!0;if(d$)return d$<603;var e="",t,A,r,n;for(t=65;t<76;t++){switch(A=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)fg.push({k:A+n,v:r})}for(fg.sort(function(i,o){return o.v-i.v}),n=0;n<fg.length;n++)A=fg[n].k.charAt(0),e.charAt(e.length-1)!==A&&(e+=A);return e!=="DGBEFHACIJK"}}),xOA=$OA||!OOA||!GOA||!E5,TOA=function(e){return function(t,A){return A===void 0?-1:t===void 0?1:e!==void 0?+e(t,A)||0:u$(t)>u$(A)?1:-1}};MOA({target:"Array",proto:!0,forced:xOA},{sort:function(t){t!==void 0&&kOA(t);var A=SOA(this);if(E5)return t===void 0?B$(A):B$(A,t);var r=[],n=l$(A),i,o;for(o=0;o<n;o++)o in A&&LOA(r,A[o]);for(POA(r,TOA(t)),i=l$(r),o=0;o<i;)A[o]=r[o++];for(;o<n;)NOA(A,o++);return A}});var HOA=bt,UOA=HOA("Array").sort,KOA=nt,_OA=UOA,aD=Array.prototype,YOA=function(e){var t=e.sort;return e===aD||KOA(aD,e)&&t===aD.sort?_OA:t},JOA=YOA,zOA=JOA,WOA=zOA,Pg=kA(WOA),qOA=bt,jOA=qOA("Array").keys,VOA=jOA,ZOA=VOA,XOA=xo,A2A=ut,e2A=nt,t2A=ZOA,sD=Array.prototype,r2A={DOMTokenList:!0,NodeList:!0},n2A=function(e){var t=e.keys;return e===sD||e2A(sD,e)&&t===sD.keys||A2A(r2A,XOA(e))?t2A:t},i2A=n2A,lC=kA(i2A),o2A=bt,g2A=o2A("Array").values,a2A=g2A,s2A=a2A,C2A=xo,I2A=ut,l2A=nt,u2A=s2A,CD=Array.prototype,c2A={DOMTokenList:!0,NodeList:!0},h2A=function(e){var t=e.values;return e===CD||l2A(CD,e)&&t===CD.values||I2A(c2A,C2A(e))?u2A:t},d2A=h2A,RE=kA(d2A),B2A=bt,f2A=B2A("Array").entries,E2A=f2A,Q2A=E2A,v2A=xo,p2A=ut,w2A=nt,D2A=Q2A,ID=Array.prototype,y2A={DOMTokenList:!0,NodeList:!0},m2A=function(e){var t=e.entries;return e===ID||w2A(ID,e)&&t===ID.entries||p2A(y2A,v2A(e))?D2A:t},b2A=m2A,M2A=kA(b2A),k2A=GJ,mh=kA(k2A),S2A=SA,N2A=Rr,lD=el,P2A=eJ,f$=Wz,F2A=$r,E$=mt,R2A=xs,Q5=fe,Nk=N2A("Reflect","construct"),L2A=Object.prototype,$2A=[].push,v5=Q5(function(){function e(){}return!(Nk(function(){},[],e)instanceof e)}),p5=!Q5(function(){Nk(function(){})}),Q$=v5||p5;S2A({target:"Reflect",stat:!0,forced:Q$,sham:Q$},{construct:function(t,A){f$(t),F2A(A);var r=arguments.length<3?t:f$(arguments[2]);if(p5&&!v5)return Nk(t,A,r);if(t===r){switch(A.length){case 0:return new t;case 1:return new t(A[0]);case 2:return new t(A[0],A[1]);case 3:return new t(A[0],A[1],A[2]);case 4:return new t(A[0],A[1],A[2],A[3])}var n=[null];return lD($2A,n,A),new(lD(P2A,t,n))}var i=r.prototype,o=R2A(E$(i)?i:L2A),g=lD(t,o,A);return E$(g)?g:o}});var O2A=ve,G2A=O2A.Reflect.construct,x2A=G2A,T2A=x2A,H2A=T2A,AA=kA(H2A),U2A=ve,K2A=U2A.Object.getOwnPropertySymbols,_2A=K2A,Y2A=_2A,J2A=Y2A,ji=kA(J2A),w5={exports:{}},z2A=SA,W2A=fe,q2A=Xi,D5=ra.f,y5=Xt,j2A=!y5||W2A(function(){D5(1)});z2A({target:"Object",stat:!0,forced:j2A,sham:!y5},{getOwnPropertyDescriptor:function(t,A){return D5(q2A(t),A)}});var V2A=ve,m5=V2A.Object,Z2A=w5.exports=function(t,A){return m5.getOwnPropertyDescriptor(t,A)};m5.getOwnPropertyDescriptor.sham&&(Z2A.sham=!0);var X2A=w5.exports,AGA=X2A,b5=AGA,eGA=b5,eo=kA(eGA),tGA=SA,rGA=Xt,nGA=ok,iGA=Xi,oGA=ra,gGA=al;tGA({target:"Object",stat:!0,sham:!rGA},{getOwnPropertyDescriptors:function(t){for(var A=iGA(t),r=oGA.f,n=nGA(A),i={},o=0,g,a;n.length>o;)a=r(A,g=n[o++]),a!==void 0&&gGA(i,g,a);return i}});var aGA=ve,sGA=aGA.Object.getOwnPropertyDescriptors,CGA=sGA,IGA=CGA,lGA=IGA,Vi=kA(lGA),M5={exports:{}},uGA=SA,cGA=Xt,v$=ZQ.f;uGA({target:"Object",stat:!0,forced:Object.defineProperties!==v$,sham:!cGA},{defineProperties:v$});var hGA=ve,k5=hGA.Object,dGA=M5.exports=function(t,A){return k5.defineProperties(t,A)};k5.defineProperties.sham&&(dGA.sham=!0);var BGA=M5.exports,fGA=BGA,EGA=fGA,QGA=EGA,bh=kA(QGA);let sB;const vGA=new Uint8Array(16);function pGA(){if(!sB&&(sB=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sB(vGA)}const ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function wGA(e,t=0){return ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]}const DGA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var p$={randomUUID:DGA};function rI(e,t,A){if(p$.randomUUID&&!t&&!e)return p$.randomUUID();e=e||{};const r=e.random||(e.rng||pGA)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){A=A||0;for(let n=0;n<16;++n)t[A+n]=r[n];return t}return wGA(r)}var S5;function w$(e,t){var A=qe(e);if(ji){var r=ji(e);t&&(r=St(r).call(r,function(n){return eo(e,n).enumerable})),A.push.apply(A,r)}return A}function D$(e){for(var t=1;t<arguments.length;t++){var A,r,n=arguments[t]!=null?arguments[t]:{};t%2?we(A=w$(Object(n),!0)).call(A,function(i){Ve(e,i,n[i])}):Vi?bh(e,Vi(n)):we(r=w$(Object(n))).call(r,function(i){mh(e,i,eo(n,i))})}return e}function yGA(e){var t=mGA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function mGA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}function sn(e,t){var A=typeof To<"u"&&aa(e)||e["@@iterator"];if(!A){if(ge(e)||(A=bGA(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
735
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function bGA(e,t){var A;if(e){if(typeof e=="string")return y$(e,t);var r=Ot(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return ga(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y$(e,t)}}function y$(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function m$(e){return typeof e=="string"||typeof e=="number"}var MGA=function(){function e(t){cA(this,e),Ve(this,"delay",void 0),Ve(this,"max",void 0),Ve(this,"_queue",[]),Ve(this,"_timeout",null),Ve(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return hA(e,[{key:"setOptions",value:function(A){A&&typeof A.delay<"u"&&(this.delay=A.delay),A&&typeof A.max<"u"&&(this.max=A.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var A=this._extended.object,r=this._extended.methods,n=0;n<r.length;n++){var i=r[n];i.original?A[i.name]=i.original:delete A[i.name]}this._extended=null}}},{key:"replace",value:function(A,r){var n=this,i=A[r];if(!i)throw new Error("Method "+r+" undefined");A[r]=function(){for(var o=arguments.length,g=new Array(o),a=0;a<o;a++)g[a]=arguments[a];n.queue({args:g,fn:i,context:this})}}},{key:"queue",value:function(A){typeof A=="function"?this._queue.push({fn:A}):this._queue.push(A),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var A=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=ci(function(){A.flush()},this.delay))}},{key:"flush",value:function(){var A,r;we(A=Hi(r=this._queue).call(r,0)).call(A,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(A,r){var n=new e(r);if(A.flush!==void 0)throw new Error("Target object already has a property flush");A.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(r&&r.replace)for(var o=0;o<r.replace.length;o++){var g=r.replace[o];i.push({name:g,original:A[g]}),n.replace(A,g)}return n._extended={object:A,methods:i},n}}]),e}(),kGA=function(){function e(){cA(this,e),Ve(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Ve(this,"subscribe",e.prototype.on),Ve(this,"unsubscribe",e.prototype.off)}return hA(e,[{key:"_trigger",value:function(A,r,n){var i,o;if(A==="*")throw new Error("Cannot trigger event *");we(i=Hs(o=[]).call(o,tt(this._subscribers[A]),tt(this._subscribers["*"]))).call(i,function(g){g(A,r,n??null)})}},{key:"on",value:function(A,r){typeof r=="function"&&this._subscribers[A].push(r)}},{key:"off",value:function(A,r){var n;this._subscribers[A]=St(n=this._subscribers[A]).call(n,function(i){return i!==r})}}]),e}();S5=tI;var b$=function(){function e(t){cA(this,e),Ve(this,"_pairs",void 0),this._pairs=t}return hA(e,[{key:S5,value:xr.mark(function t(){var A,r,n,i,o;return xr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:A=sn(this._pairs),a.prev=1,A.s();case 3:if((r=A.n()).done){a.next=9;break}return n=de(r.value,2),i=n[0],o=n[1],a.next=7,[i,o];case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),A.e(a.t0);case 14:return a.prev=14,A.f(),a.finish(14);case 17:case"end":return a.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:xr.mark(function t(){var A,r,n,i,o;return xr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:A=sn(this._pairs),a.prev=1,A.s();case 3:if((r=A.n()).done){a.next=9;break}return n=de(r.value,2),i=n[0],o=n[1],a.next=7,[i,o];case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),A.e(a.t0);case 14:return a.prev=14,A.f(),a.finish(14);case 17:case"end":return a.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:xr.mark(function t(){var A,r,n,i;return xr.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:A=sn(this._pairs),g.prev=1,A.s();case 3:if((r=A.n()).done){g.next=9;break}return n=de(r.value,1),i=n[0],g.next=7,i;case 7:g.next=3;break;case 9:g.next=14;break;case 11:g.prev=11,g.t0=g.catch(1),A.e(g.t0);case 14:return g.prev=14,A.f(),g.finish(14);case 17:case"end":return g.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:xr.mark(function t(){var A,r,n,i;return xr.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:A=sn(this._pairs),g.prev=1,A.s();case 3:if((r=A.n()).done){g.next=9;break}return n=de(r.value,2),i=n[1],g.next=7,i;case 7:g.next=3;break;case 9:g.next=14;break;case 11:g.prev=11,g.t0=g.catch(1),A.e(g.t0);case 14:return g.prev=14,A.f(),g.finish(14);case 17:case"end":return g.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var A;return lr(A=tt(this._pairs)).call(A,function(r){return r[0]})}},{key:"toItemArray",value:function(){var A;return lr(A=tt(this._pairs)).call(A,function(r){return r[1]})}},{key:"toEntryArray",value:function(){return tt(this._pairs)}},{key:"toObjectMap",value:function(){var A=kg(null),r=sn(this._pairs),n;try{for(r.s();!(n=r.n()).done;){var i=de(n.value,2),o=i[0],g=i[1];A[o]=g}}catch(a){r.e(a)}finally{r.f()}return A}},{key:"toMap",value:function(){return new dv(this._pairs)}},{key:"toIdSet",value:function(){return new Ni(this.toIdArray())}},{key:"toItemSet",value:function(){return new Ni(this.toItemArray())}},{key:"cache",value:function(){return new e(tt(this._pairs))}},{key:"distinct",value:function(A){var r=new Ni,n=sn(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=de(i.value,2),g=o[0],a=o[1];r.add(A(a,g))}}catch(s){n.e(s)}finally{n.f()}return r}},{key:"filter",value:function(A){var r=this._pairs;return new e(Ve({},tI,xr.mark(function n(){var i,o,g,a,s;return xr.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:i=sn(r),I.prev=1,i.s();case 3:if((o=i.n()).done){I.next=10;break}if(g=de(o.value,2),a=g[0],s=g[1],!A(s,a)){I.next=8;break}return I.next=8,[a,s];case 8:I.next=3;break;case 10:I.next=15;break;case 12:I.prev=12,I.t0=I.catch(1),i.e(I.t0);case 15:return I.prev=15,i.f(),I.finish(15);case 18:case"end":return I.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(A){var r=sn(this._pairs),n;try{for(r.s();!(n=r.n()).done;){var i=de(n.value,2),o=i[0],g=i[1];A(g,o)}}catch(a){r.e(a)}finally{r.f()}}},{key:"map",value:function(A){var r=this._pairs;return new e(Ve({},tI,xr.mark(function n(){var i,o,g,a,s;return xr.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:i=sn(r),I.prev=1,i.s();case 3:if((o=i.n()).done){I.next=9;break}return g=de(o.value,2),a=g[0],s=g[1],I.next=7,[a,A(s,a)];case 7:I.next=3;break;case 9:I.next=14;break;case 11:I.prev=11,I.t0=I.catch(1),i.e(I.t0);case 14:return I.prev=14,i.f(),I.finish(14);case 17:case"end":return I.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(A){var r=gD(this._pairs),n=r.next();if(n.done)return null;for(var i=n.value[1],o=A(n.value[1],n.value[0]);!(n=r.next()).done;){var g=de(n.value,2),a=g[0],s=g[1],C=A(s,a);C>o&&(o=C,i=s)}return i}},{key:"min",value:function(A){var r=gD(this._pairs),n=r.next();if(n.done)return null;for(var i=n.value[1],o=A(n.value[1],n.value[0]);!(n=r.next()).done;){var g=de(n.value,2),a=g[0],s=g[1],C=A(s,a);C<o&&(o=C,i=s)}return i}},{key:"reduce",value:function(A,r){var n=sn(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=de(i.value,2),g=o[0],a=o[1];r=A(r,a,g)}}catch(s){n.e(s)}finally{n.f()}return r}},{key:"sort",value:function(A){var r=this;return new e(Ve({},tI,function(){var n;return gD(Pg(n=tt(r._pairs)).call(n,function(i,o){var g=de(i,2),a=g[0],s=g[1],C=de(o,2),I=C[0],l=C[1];return A(s,l,a,I)}))}))}}]),e}();function SGA(e,t){return e[t]==null&&(e[t]=rI()),e}var bI=function(e){Me(A,e);var t=yGA(A);function A(r,n){var i;return cA(this,A),i=t.call(this),Ve(Na(i),"flush",void 0),Ve(Na(i),"length",void 0),Ve(Na(i),"_options",void 0),Ve(Na(i),"_data",void 0),Ve(Na(i),"_idProp",void 0),Ve(Na(i),"_queue",null),r&&!ge(r)&&(n=r,r=[]),i._options=n||{},i._data=new dv,i.length=0,i._idProp=i._options.fieldId||"id",r&&r.length&&i.add(r),i.setOptions(n),i}return hA(A,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=MGA.extend(this,{replace:["add","update","remove"]})),n.queue&&Ie(n.queue)==="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,i){var o=this,g=[],a;if(ge(n)){var s=lr(n).call(n,function(l){return l[o._idProp]});if(xz(s).call(s,function(l){return o._data.has(l)}))throw new Error("A duplicate id was found in the parameter array.");for(var C=0,I=n.length;C<I;C++)a=this._addItem(n[C]),g.push(a)}else if(n&&Ie(n)==="object")a=this._addItem(n),g.push(a);else throw new Error("Unknown dataType");return g.length&&this._trigger("add",{items:g},i),g}},{key:"update",value:function(n,i){var o=this,g=[],a=[],s=[],C=[],I=this._idProp,l=function(B){var f=B[I];if(f!=null&&o._data.has(f)){var E=B,v=wt({},o._data.get(f)),p=o._updateItem(E);a.push(p),C.push(E),s.push(v)}else{var D=o._addItem(B);g.push(D)}};if(ge(n))for(var u=0,c=n.length;u<c;u++)n[u]&&Ie(n[u])==="object"?l(n[u]):console.warn("Ignoring input item, which is not an object at index "+u);else if(n&&Ie(n)==="object")l(n);else throw new Error("Unknown dataType");if(g.length&&this._trigger("add",{items:g},i),a.length){var h={items:a,oldData:s,data:C};this._trigger("update",h,i)}return Hs(g).call(g,a)}},{key:"updateOnly",value:function(n,i){var o,g=this;ge(n)||(n=[n]);var a=lr(o=lr(n).call(n,function(C){var I=g._data.get(C[g._idProp]);if(I==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:I,update:C}})).call(o,function(C){var I=C.oldData,l=C.update,u=I[g._idProp],c=YSA(I,l);return g._data.set(u,c),{id:u,oldData:I,updatedData:c}});if(a.length){var s={items:lr(a).call(a,function(C){return C.id}),oldData:lr(a).call(a,function(C){return C.oldData}),data:lr(a).call(a,function(C){return C.updatedData})};return this._trigger("update",s,i),s.items}else return[]}},{key:"get",value:function(n,i){var o=void 0,g=void 0,a=void 0;m$(n)?(o=n,a=i):ge(n)?(g=n,a=i):a=n;var s=a&&a.returnType==="Object"?"Object":"Array",C=a&&St(a),I=[],l=void 0,u=void 0,c=void 0;if(o!=null)l=this._data.get(o),l&&C&&!C(l)&&(l=void 0);else if(g!=null)for(var h=0,d=g.length;h<d;h++)l=this._data.get(g[h]),l!=null&&(!C||C(l))&&I.push(l);else{var B;u=tt(lC(B=this._data).call(B));for(var f=0,E=u.length;f<E;f++)c=u[f],l=this._data.get(c),l!=null&&(!C||C(l))&&I.push(l)}if(a&&a.order&&o==null&&this._sort(I,a.order),a&&a.fields){var v=a.fields;if(o!=null&&l!=null)l=this._filterFields(l,v);else for(var p=0,D=I.length;p<D;p++)I[p]=this._filterFields(I[p],v)}if(s=="Object"){for(var F={},N=0,S=I.length;N<S;N++){var m=I[N],R=m[this._idProp];F[R]=m}return F}else if(o!=null){var k;return(k=l)!==null&&k!==void 0?k:null}else return I}},{key:"getIds",value:function(n){var i=this._data,o=n&&St(n),g=n&&n.order,a=tt(lC(i).call(i)),s=[];if(o)if(g){for(var C=[],I=0,l=a.length;I<l;I++){var u=a[I],c=this._data.get(u);c!=null&&o(c)&&C.push(c)}this._sort(C,g);for(var h=0,d=C.length;h<d;h++)s.push(C[h][this._idProp])}else for(var B=0,f=a.length;B<f;B++){var E=a[B],v=this._data.get(E);v!=null&&o(v)&&s.push(v[this._idProp])}else if(g){for(var p=[],D=0,F=a.length;D<F;D++){var N=a[D];p.push(i.get(N))}this._sort(p,g);for(var S=0,m=p.length;S<m;S++)s.push(p[S][this._idProp])}else for(var R=0,k=a.length;R<k;R++){var O=a[R],H=i.get(O);H!=null&&s.push(H[this._idProp])}return s}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,i){var o=i&&St(i),g=this._data,a=tt(lC(g).call(g));if(i&&i.order)for(var s=this.get(i),C=0,I=s.length;C<I;C++){var l=s[C],u=l[this._idProp];n(l,u)}else for(var c=0,h=a.length;c<h;c++){var d=a[c],B=this._data.get(d);B!=null&&(!o||o(B))&&n(B,d)}}},{key:"map",value:function(n,i){for(var o=i&&St(i),g=[],a=this._data,s=tt(lC(a).call(a)),C=0,I=s.length;C<I;C++){var l=s[C],u=this._data.get(l);u!=null&&(!o||o(u))&&g.push(n(u,l))}return i&&i.order&&this._sort(g,i.order),g}},{key:"_filterFields",value:function(n,i){var o;return n&&kk(o=ge(i)?i:qe(i)).call(o,function(g,a){return g[a]=n[a],g},{})}},{key:"_sort",value:function(n,i){if(typeof i=="string"){var o=i;Pg(n).call(n,function(g,a){var s=g[o],C=a[o];return s>C?1:s<C?-1:0})}else if(typeof i=="function")Pg(n).call(n,i);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,i){for(var o=[],g=[],a=ge(n)?n:[n],s=0,C=a.length;s<C;s++){var I=this._remove(a[s]);if(I){var l=I[this._idProp];l!=null&&(o.push(l),g.push(I))}}return o.length&&this._trigger("remove",{items:o,oldData:g},i),o}},{key:"_remove",value:function(n){var i;if(m$(n)?i=n:n&&Ie(n)==="object"&&(i=n[this._idProp]),i!=null&&this._data.has(i)){var o=this._data.get(i)||null;return this._data.delete(i),--this.length,o}return null}},{key:"clear",value:function(n){for(var i,o=tt(lC(i=this._data).call(i)),g=[],a=0,s=o.length;a<s;a++)g.push(this._data.get(o[a]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:g},n),o}},{key:"max",value:function(n){var i,o=null,g=null,a=sn(RE(i=this._data).call(i)),s;try{for(a.s();!(s=a.n()).done;){var C=s.value,I=C[n];typeof I=="number"&&(g==null||I>g)&&(o=C,g=I)}}catch(l){a.e(l)}finally{a.f()}return o||null}},{key:"min",value:function(n){var i,o=null,g=null,a=sn(RE(i=this._data).call(i)),s;try{for(a.s();!(s=a.n()).done;){var C=s.value,I=C[n];typeof I=="number"&&(g==null||I<g)&&(o=C,g=I)}}catch(l){a.e(l)}finally{a.f()}return o||null}},{key:"distinct",value:function(n){for(var i=this._data,o=tt(lC(i).call(i)),g=[],a=0,s=0,C=o.length;s<C;s++){for(var I=o[s],l=i.get(I),u=l[n],c=!1,h=0;h<a;h++)if(g[h]==u){c=!0;break}!c&&u!==void 0&&(g[a]=u,a++)}return g}},{key:"_addItem",value:function(n){var i=SGA(n,this._idProp),o=i[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,i),++this.length,o}},{key:"_updateItem",value:function(n){var i=n[this._idProp];if(i==null)throw new Error("Cannot update item: item has no id (item: "+Cl(n)+")");var o=this._data.get(i);if(!o)throw new Error("Cannot update item: no item with id "+i+" found");return this._data.set(i,D$(D$({},o),n)),i}},{key:"stream",value:function(n){if(n){var i=this._data;return new b$(Ve({},tI,xr.mark(function g(){var a,s,C,I;return xr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=sn(n),u.prev=1,a.s();case 3:if((s=a.n()).done){u.next=11;break}if(C=s.value,I=i.get(C),I==null){u.next=9;break}return u.next=9,[C,I];case 9:u.next=3;break;case 11:u.next=16;break;case 13:u.prev=13,u.t0=u.catch(1),a.e(u.t0);case 16:return u.prev=16,a.f(),u.finish(16);case 19:case"end":return u.stop()}},g,null,[[1,13,16,19]])})))}else{var o;return new b$(Ve({},tI,sA(o=M2A(this._data)).call(o,this._data)))}}}]),A}(kGA);function NGA(e,t){return Ie(t)==="object"&&t!==null&&e===t.idProp&&typeof t.add=="function"&&typeof t.clear=="function"&&typeof t.distinct=="function"&&typeof we(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof lr(t)=="function"&&typeof t.max=="function"&&typeof t.min=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.remove=="function"&&typeof t.setOptions=="function"&&typeof t.stream=="function"&&typeof t.update=="function"&&typeof t.updateOnly=="function"}function N5(e,t){return Ie(t)==="object"&&t!==null&&e===t.idProp&&typeof we(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof lr(t)=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.stream=="function"&&NGA(e,t.getDataSet())}var P5=He,PGA=fe,FGA=be,RGA=vi,LGA=$3.trim,$GA=gk,OGA=FGA("".charAt),LE=P5.parseFloat,M$=P5.Symbol,k$=M$&&M$.iterator,GGA=1/LE($GA+"-0")!==-1/0||k$&&!PGA(function(){LE(Object(k$))}),xGA=GGA?function(t){var A=LGA(RGA(t)),r=LE(A);return r===0&&OGA(A,0)==="-"?-0:r}:LE,TGA=SA,S$=xGA;TGA({global:!0,forced:parseFloat!==S$},{parseFloat:S$});var HGA=ve,UGA=HGA.parseFloat,KGA=UGA,_GA=KGA,YGA=_GA,F5=kA(YGA),JGA=SA,zGA=fe,WGA=nv.f,qGA=zGA(function(){return!Object.getOwnPropertyNames(1)});JGA({target:"Object",stat:!0,forced:qGA},{getOwnPropertyNames:WGA});var jGA=ve,VGA=jGA.Object,ZGA=function(t){return VGA.getOwnPropertyNames(t)},XGA=ZGA,AxA=XGA,exA=AxA,txA=kA(exA);function Pk(e,t){var A=["node","edge","label"],r=!0,n=Ig(t,"chosen");if(typeof n=="boolean")r=n;else if(Ie(n)==="object"){if(ye(A).call(A,e)===-1)throw new Error("choosify: subOption '"+e+"' should be one of '"+A.join("', '")+"'");var i=Ig(t,["chosen",e]);(typeof i=="boolean"||typeof i=="function")&&(r=i)}return r}function lb(e,t,A){if(e.width<=0||e.height<=0)return!1;if(A!==void 0){var r={x:t.x-A.x,y:t.y-A.y};if(A.angle!==0){var n=-A.angle,i={x:Math.cos(n)*r.x-Math.sin(n)*r.y,y:Math.sin(n)*r.x+Math.cos(n)*r.y};t=i}else t=r}var o=e.x+e.width,g=e.y+e.width;return e.left<t.x&&o>t.x&&e.top<t.y&&g>t.y}function $E(e){return typeof e=="string"&&e!==""}function R5(e,t,A,r){var n=r.x,i=r.y;if(typeof r.distanceToBorder=="function"){var o=r.distanceToBorder(e,t),g=Math.sin(t)*o,a=Math.cos(t)*o;a===o?(n+=o,i=r.y):g===o?(n=r.x,i-=o):(n+=a,i-=g)}else r.shape.width>r.shape.height?(n=r.x+r.shape.width*.5,i=r.y-A):(n=r.x+A,i=r.y-r.shape.height*.5);return{x:n,y:i}}var rxA=function(){function e(t){cA(this,e),this.measureText=t,this.current=0,this.width=0,this.height=0,this.lines=[]}return hA(e,[{key:"_add",value:function(A,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[A]===void 0&&(this.lines[A]={width:0,height:0,blocks:[]});var i=r;(r===void 0||r==="")&&(i=" ");var o=this.measureText(i,n),g=wt({},RE(o));g.text=r,g.width=o.width,g.mod=n,(r===void 0||r==="")&&(g.width=0),this.lines[A].blocks.push(g),this.lines[A].width+=g.width}},{key:"curWidth",value:function(){var A=this.lines[this.current];return A===void 0?0:A.width}},{key:"append",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,A,r)}},{key:"newLine",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,A,r),this.current++}},{key:"determineLineHeights",value:function(){for(var A=0;A<this.lines.length;A++){var r=this.lines[A],n=0;if(r.blocks!==void 0)for(var i=0;i<r.blocks.length;i++){var o=r.blocks[i];n<o.height&&(n=o.height)}r.height=n}}},{key:"determineLabelSize",value:function(){for(var A=0,r=0,n=0;n<this.lines.length;n++){var i=this.lines[n];i.width>A&&(A=i.width),r+=i.height}this.width=A,this.height=r}},{key:"removeEmptyBlocks",value:function(){for(var A=[],r=0;r<this.lines.length;r++){var n=this.lines[r];if(n.blocks.length!==0&&!(r===this.lines.length-1&&n.width===0)){var i={};wt(i,n),i.blocks=[];for(var o=void 0,g=[],a=0;a<n.blocks.length;a++){var s=n.blocks[a];s.width!==0?g.push(s):o===void 0&&(o=s)}g.length===0&&o!==void 0&&g.push(o),i.blocks=g,A.push(i)}}return A}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var A=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:A}}}]),e}(),nxA={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},N$=function(){function e(t){cA(this,e),this.text=t,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return hA(e,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(A){A===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),A!=" "&&(this.buffer+=A)}},{key:"parseWS",value:function(A){return/[ \t]/.test(A)?(this.mono?this.add(A):this.spacing=!0,!0):!1}},{key:"setTag",value:function(A){this.emitBlock(),this[A]=!0,this.modStack.unshift(A)}},{key:"unsetTag",value:function(A){this.emitBlock(),this[A]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(A,r){return!this.mono&&!this[A]&&this.match(r)?(this.setTag(A),!0):!1}},{key:"match",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.prepareRegExp(A),i=de(n,2),o=i[0],g=i[1],a=o.test(this.text.substr(this.position,g));return a&&r&&(this.position+=g-1),a}},{key:"parseEndTag",value:function(A,r,n){var i=this.mod()===A;return A==="mono"?i=i&&this.mono:i=i&&!this.mono,i&&this.match(r)?(n!==void 0?(this.position===this.text.length-1||this.match(n,!1))&&this.unsetTag(A):this.unsetTag(A),!0):!1}},{key:"replace",value:function(A,r){return this.match(A)?(this.add(r),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(A){var r,n;if(A instanceof RegExp)n=A,r=1;else{var i=nxA[A];i!==void 0?n=i:n=new RegExp(A),r=A.length}return[n,r]}}]),e}(),ixA=function(){function e(t,A,r,n){var i=this;cA(this,e),this.ctx=t,this.parent=A,this.selected=r,this.hover=n;var o=function(a,s){if(a===void 0)return 0;var C=i.parent.getFormattingValues(t,r,n,s),I=0;if(a!==""){var l=i.ctx.measureText(a);I=l.width}return{width:I,values:C}};this.lines=new rxA(o)}return hA(e,[{key:"process",value:function(A){if(!$E(A))return this.lines.finalize();var r=this.parent.fontOptions;A=A.replace(/\r\n/g,`
|
|
736
736
|
`),A=A.replace(/\r/g,`
|
|
737
737
|
`);var n=String(A).split(`
|
|
738
738
|
`),i=n.length;if(r.multi)for(var o=0;o<i;o++){var g=this.splitBlocks(n[o],r.multi);if(g!==void 0){if(g.length===0){this.lines.newLine("");continue}if(r.maxWdt>0)for(var a=0;a<g.length;a++){var s=g[a].mod,C=g[a].text;this.splitStringIntoLines(C,s,!0)}else for(var I=0;I<g.length;I++){var l=g[I].mod,u=g[I].text;this.lines.append(u,l)}this.lines.newLine()}}else if(r.maxWdt>0)for(var c=0;c<i;c++)this.splitStringIntoLines(n[c]);else for(var h=0;h<i;h++)this.lines.newLine(n[h]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(A){var r="none";return A==="markdown"||A==="md"?r="markdown":(A===!0||A==="html")&&(r="html"),r}},{key:"splitHtmlBlocks",value:function(A){for(var r=new N$(A),n=function(a){if(/&/.test(a)){var s=r.replace(r.text,"<","<")||r.replace(r.text,"&","&");return s||r.add("&"),!0}return!1};r.position<r.text.length;){var i=r.text.charAt(r.position),o=r.parseWS(i)||/</.test(i)&&(r.parseStartTag("bold","<b>")||r.parseStartTag("ital","<i>")||r.parseStartTag("mono","<code>")||r.parseEndTag("bold","</b>")||r.parseEndTag("ital","</i>")||r.parseEndTag("mono","</code>"))||n(i);o||r.add(i),r.position++}return r.emitBlock(),r.blocks}},{key:"splitMarkdownBlocks",value:function(A){for(var r=this,n=new N$(A),i=!0,o=function(C){return/\\/.test(C)?(n.position<r.text.length+1&&(n.position++,C=r.text.charAt(n.position),/ \t/.test(C)?n.spacing=!0:(n.add(C),i=!1)),!0):!1};n.position<n.text.length;){var g=n.text.charAt(n.position),a=n.parseWS(g)||o(g)||(i||n.spacing)&&(n.parseStartTag("bold","*")||n.parseStartTag("ital","_")||n.parseStartTag("mono","`"))||n.parseEndTag("bold","*","afterBold")||n.parseEndTag("ital","_","afterItal")||n.parseEndTag("mono","`","afterMono");a||(n.add(g),i=!1),n.position++}return n.emitBlock(),n.blocks}},{key:"splitBlocks",value:function(A,r){var n=this.decodeMarkupSystem(r);if(n==="none")return[{text:A,mod:"normal"}];if(n==="markdown")return this.splitMarkdownBlocks(A);if(n==="html")return this.splitHtmlBlocks(A)}},{key:"overMaxWidth",value:function(A){var r=this.ctx.measureText(A).width;return this.lines.curWidth()+r>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(A){for(var r="",n=0;n<A.length;){var i=r===""?"":" ",o=r+i+A[n];if(this.overMaxWidth(o))break;r=o,n++}return n}},{key:"getLongestFitWord",value:function(A){for(var r=0;r<A.length&&!this.overMaxWidth(Ot(A).call(A,0,r));)r++;return r}},{key:"splitStringIntoLines",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,r),A=A.replace(/^( +)/g,"$1\r"),A=A.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var i=A.split("\r");i.length>0;){var o=this.getLongestFit(i);if(o===0){var g=i[0],a=this.getLongestFitWord(g);this.lines.newLine(Ot(g).call(g,0,a),r),i[0]=Ot(g).call(g,a)}else{var s=o;i[o-1]===" "?o--:i[s]===" "&&s++;var C=Ot(i).call(i,0,o).join("");o==i.length&&n?this.lines.append(C,r):this.lines.newLine(C,r),i=Ot(i).call(i,s)}}}}]),e}(),ql=["bold","ital","boldital","mono"],L5=function(){function e(t,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;cA(this,e),this.body=t,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(A),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=r}return hA(e,[{key:"setOptions",value:function(A){if(this.elementOptions=A,this.initFontOptions(A.font),$E(A.label)?this.labelDirty=!0:A.label=void 0,A.font!==void 0&&A.font!==null){if(typeof A.font=="string")this.baseSize=this.fontOptions.size;else if(Ie(A.font)==="object"){var r=A.font.size;r!==void 0&&(this.baseSize=r)}}}},{key:"initFontOptions",value:function(A){var r=this;if(le(ql,function(n){r.fontOptions[n]={}}),e.parseFontString(this.fontOptions,A)){this.fontOptions.vadjust=0;return}le(A,function(n,i){n!=null&&Ie(n)!=="object"&&(r.fontOptions[i]=n)})}},{key:"constrain",value:function(A){var r={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},n=Ig(A,"widthConstraint");if(typeof n=="number")r.maxWdt=Number(n),r.minWdt=Number(n);else if(Ie(n)==="object"){var i=Ig(A,["widthConstraint","maximum"]);typeof i=="number"&&(r.maxWdt=Number(i));var o=Ig(A,["widthConstraint","minimum"]);typeof o=="number"&&(r.minWdt=Number(o))}var g=Ig(A,"heightConstraint");if(typeof g=="number")r.minHgt=Number(g);else if(Ie(g)==="object"){var a=Ig(A,["heightConstraint","minimum"]);typeof a=="number"&&(r.minHgt=Number(a));var s=Ig(A,["heightConstraint","valign"]);typeof s=="string"&&(s==="top"||s==="bottom")&&(r.valign=s)}return r}},{key:"update",value:function(A,r){this.setOptions(A,!0),this.propagateFonts(r),Ye(this.fontOptions,this.constrain(r)),this.fontOptions.chooser=Pk("label",r)}},{key:"adjustSizes",value:function(A){var r=A?A.right+A.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=r,this.fontOptions.minWdt-=r);var n=A?A.top+A.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n)}},{key:"addFontOptionsToPile",value:function(A,r){for(var n=0;n<r.length;++n)this.addFontToPile(A,r[n])}},{key:"addFontToPile",value:function(A,r){if(r!==void 0&&!(r.font===void 0||r.font===null)){var n=r.font;A.push(n)}}},{key:"getBasicOptions",value:function(A){for(var r={},n=0;n<A.length;++n){var i=A[n],o={};e.parseFontString(o,i)&&(i=o),le(i,function(g,a){g!==void 0&&(Object.prototype.hasOwnProperty.call(r,a)||(ye(ql).call(ql,a)!==-1?r[a]={}:r[a]=g))})}return r}},{key:"getFontOption",value:function(A,r,n){for(var i,o=0;o<A.length;++o){var g=A[o];if(Object.prototype.hasOwnProperty.call(g,r)){if(i=g[r],i==null)continue;var a={};if(e.parseFontString(a,i)&&(i=a),Object.prototype.hasOwnProperty.call(i,n))return i[n]}}if(Object.prototype.hasOwnProperty.call(this.fontOptions,n))return this.fontOptions[n];throw new Error("Did not find value for multi-font for property: '"+n+"'")}},{key:"getFontOptions",value:function(A,r){for(var n={},i=["color","size","face","mod","vadjust"],o=0;o<i.length;++o){var g=i[o];n[g]=this.getFontOption(A,r,g)}return n}},{key:"propagateFonts",value:function(A){var r=this,n=[];this.addFontOptionsToPile(n,A),this.fontOptions=this.getBasicOptions(n);for(var i=function(){var a=ql[o],s=r.fontOptions[a],C=r.getFontOptions(n,a);le(C,function(I,l){s[l]=I}),s.size=Number(s.size),s.vadjust=Number(s.vadjust)},o=0;o<ql.length;++o)i()}},{key:"draw",value:function(A,r,n,i,o){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var a=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&a<this.elementOptions.scaling.label.drawThreshold-1||(a>=this.elementOptions.scaling.label.maxVisible&&(a=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(A,i,o,r,n,g),this._drawBackground(A),this._drawText(A,r,this.size.yLine,g,a))}}},{key:"_drawBackground",value:function(A){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){A.fillStyle=this.fontOptions.background;var r=this.getSize();A.fillRect(r.left,r.top,r.width,r.height)}}},{key:"_drawText",value:function(A,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",o=arguments.length>4?arguments[4]:void 0,g=this._setAlignment(A,r,n,i),a=de(g,2);r=a[0],n=a[1],A.textAlign="left",r=r-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(n-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(n+=(this.size.height-this.size.labelHeight)/2));for(var s=0;s<this.lineCount;s++){var C=this.lines[s];if(C&&C.blocks){var I=0;this.isEdgeLabel||this.fontOptions.align==="center"?I+=(this.size.width-C.width)/2:this.fontOptions.align==="right"&&(I+=this.size.width-C.width);for(var l=0;l<C.blocks.length;l++){var u=C.blocks[l];A.font=u.font;var c=this._getColor(u.color,o,u.strokeColor),h=de(c,2),d=h[0],B=h[1];u.strokeWidth>0&&(A.lineWidth=u.strokeWidth,A.strokeStyle=B,A.lineJoin="round"),A.fillStyle=d,u.strokeWidth>0&&A.strokeText(u.text,r+I,n+u.vadjust),A.fillText(u.text,r+I,n+u.vadjust),I+=u.width}n+=C.height}}}},{key:"_setAlignment",value:function(A,r,n,i){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){r=0,n=0;var o=2;this.fontOptions.align==="top"?(A.textBaseline="alphabetic",n-=2*o):this.fontOptions.align==="bottom"?(A.textBaseline="hanging",n+=2*o):A.textBaseline="middle"}else A.textBaseline=i;return[r,n]}},{key:"_getColor",value:function(A,r,n){var i=A||"#000000",o=n||"#ffffff";if(r<=this.elementOptions.scaling.label.drawThreshold){var g=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-r)));i=Fn(i,g),o=Fn(o,g)}return[i,o]}},{key:"getTextSize",value:function(A){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(A,r,n),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var A=2,r=this.size.left,n=this.size.top-.5*A;if(this.isEdgeLabel){var i=-this.size.width*.5;switch(this.fontOptions.align){case"middle":r=i,n=-this.size.height*.5;break;case"top":r=i,n=-(this.size.height+A);break;case"bottom":r=i,n=A;break}}var o={left:r,top:n,width:this.size.width,height:this.size.height};return o}},{key:"calculateLabelSize",value:function(A,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(A,r,n),this.size.left=i-this.size.width*.5,this.size.top=o-this.size.height*.5,this.size.yLine=o+(1-this.lineCount)*.5*this.fontOptions.size,g==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(A,r,n,i){var o=function(C,I,l){return I==="normal"?l==="mod"?"":C[l]:C[I][l]!==void 0?C[I][l]:C[l]},g={color:o(this.fontOptions,i,"color"),size:o(this.fontOptions,i,"size"),face:o(this.fontOptions,i,"face"),mod:o(this.fontOptions,i,"mod"),vadjust:o(this.fontOptions,i,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(r||n)&&(i==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?g.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(g,this.elementOptions.id,r,n));var a="";return g.mod!==void 0&&g.mod!==""&&(a+=g.mod+" "),a+=g.size+"px "+g.face,A.font=a.replace(/"/g,""),g.font=A.font,g.height=g.size,g}},{key:"differentState",value:function(A,r){return A!==this.selectedState||r!==this.hoverState}},{key:"_processLabelText",value:function(A,r,n,i){var o=new ixA(A,this,r,n);return o.process(i)}},{key:"_processLabel",value:function(A,r,n){if(!(this.labelDirty===!1&&!this.differentState(r,n))){var i=this._processLabelText(A,r,n,this.elementOptions.label);this.fontOptions.minWdt>0&&i.width<this.fontOptions.minWdt&&(i.width=this.fontOptions.minWdt),this.size.labelHeight=i.height,this.fontOptions.minHgt>0&&i.height<this.fontOptions.minHgt&&(i.height=this.fontOptions.minHgt),this.lines=i.lines,this.lineCount=i.lines.length,this.size.width=i.width,this.size.height=i.height,this.selectedState=r,this.hoverState=n,this.labelDirty=!1}}},{key:"visible",value:function(){if(this.size.width===0||this.size.height===0||this.elementOptions.label===void 0)return!1;var A=this.fontOptions.size*this.body.view.scale;return!(A<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(A,r){if(!r||typeof r!="string")return!1;var n=r.split(" ");return A.size=+n[0].replace("px",""),A.face=n[1],A.color=n[2],!0}}]),e}(),Ks=function(){function e(t,A,r){cA(this,e),this.body=A,this.labelModule=r,this.setOptions(t),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return hA(e,[{key:"setOptions",value:function(A){this.options=A}},{key:"_setMargins",value:function(A){this.margin={},this.options.margin&&(Ie(this.options.margin)=="object"?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),A.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(A,r){var n=this.options.borderWidth;return A&&this.resize(A),Math.min(Math.abs(this.width/2/Math.cos(r)),Math.abs(this.height/2/Math.sin(r)))+n}},{key:"enableShadow",value:function(A,r){r.shadow&&(A.shadowColor=r.shadowColor,A.shadowBlur=r.shadowSize,A.shadowOffsetX=r.shadowX,A.shadowOffsetY=r.shadowY)}},{key:"disableShadow",value:function(A,r){r.shadow&&(A.shadowColor="rgba(0,0,0,0)",A.shadowBlur=0,A.shadowOffsetX=0,A.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(A,r){if(r.borderDashes!==!1)if(A.setLineDash!==void 0){var n=r.borderDashes;n===!0&&(n=[5,15]),A.setLineDash(n)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,r.borderDashes=!1}},{key:"disableBorderDashes",value:function(A,r){r.borderDashes!==!1&&(A.setLineDash!==void 0?A.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,r.borderDashes=!1))}},{key:"needsRefresh",value:function(A,r){return this.refreshNeeded===!0?(this.refreshNeeded=!1,!0):this.width===void 0||this.labelModule.differentState(A,r)}},{key:"initContextForDraw",value:function(A,r){var n=r.borderWidth/this.body.view.scale;A.lineWidth=Math.min(this.width,n),A.strokeStyle=r.borderColor,A.fillStyle=r.color}},{key:"performStroke",value:function(A,r){var n=r.borderWidth/this.body.view.scale;A.save(),n>0&&(this.enableBorderDashes(A,r),A.stroke(),this.disableBorderDashes(A,r)),A.restore()}},{key:"performFill",value:function(A,r){A.save(),A.fillStyle=r.color,this.enableShadow(A,r),Bh(A).call(A),this.disableShadow(A,r),A.restore(),this.performStroke(A,r)}},{key:"_addBoundingBoxMargin",value:function(A){this.boundingBox.left-=A,this.boundingBox.top-=A,this.boundingBox.bottom+=A,this.boundingBox.right+=A}},{key:"_updateBoundingBox",value:function(A,r,n,i,o){n!==void 0&&this.resize(n,i,o),this.left=A-this.width/2,this.top=r-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(A,r,n,i,o){this._updateBoundingBox(A,r,n,i,o)}},{key:"getDimensionsFromLabel",value:function(A,r,n){this.textSize=this.labelModule.getTextSize(A,r,n);var i=this.textSize.width,o=this.textSize.height,g=14;return i===0&&(i=g,o=g),{width:i,height:o}}}]),e}();function oxA(e){var t=gxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function gxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var axA=function(e){Me(A,e);var t=oxA(A);function A(r,n,i){var o;return cA(this,A),o=t.call(this,r,n,i),o._setMargins(i),o}return hA(A,[{key:"resize",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(i,o)){var g=this.getDimensionsFromLabel(n,i,o);this.width=g.width+this.margin.right+this.margin.left,this.height=g.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(n,i,o,g,a,s){this.resize(n,g,a),this.left=i-this.width/2,this.top=o-this.height/2,this.initContextForDraw(n,s),rJ(n,this.left,this.top,this.width,this.height,s.borderRadius),this.performFill(n,s),this.updateBoundingBox(i,o,n,g,a),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,g,a)}},{key:"updateBoundingBox",value:function(n,i,o,g,a){this._updateBoundingBox(n,i,o,g,a);var s=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(s)}},{key:"distanceToBorder",value:function(n,i){n&&this.resize(n);var o=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(i)),Math.abs(this.height/2/Math.sin(i)))+o}}]),A}(Ks);function sxA(e){var t=CxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function CxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var Fk=function(e){Me(A,e);var t=sxA(A);function A(r,n,i){var o;return cA(this,A),o=t.call(this,r,n,i),o.labelOffset=0,o.selected=!1,o}return hA(A,[{key:"setOptions",value:function(n,i,o){this.options=n,i===void 0&&o===void 0||this.setImages(i,o)}},{key:"setImages",value:function(n,i){i&&this.selected?(this.imageObj=i,this.imageObjAlt=n):(this.imageObj=n,this.imageObjAlt=i)}},{key:"switchImages",value:function(n){var i=n&&!this.selected||!n&&this.selected;if(this.selected=n,this.imageObjAlt!==void 0&&i){var o=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=o}}},{key:"_getImagePadding",value:function(){var n={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var i=this.options.imagePadding;Ie(i)=="object"?(n.top=i.top,n.right=i.right,n.bottom=i.bottom,n.left=i.left):(n.top=i,n.right=i,n.bottom=i,n.left=i)}return n}},{key:"_resizeImage",value:function(){var n,i;if(this.options.shapeProperties.useImageSize===!1){var o=1,g=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?o=this.imageObj.width/this.imageObj.height:g=this.imageObj.height/this.imageObj.width),n=this.options.size*2*o,i=this.options.size*2*g}else{var a=this._getImagePadding();n=this.imageObj.width+a.left+a.right,i=this.imageObj.height+a.top+a.bottom}this.width=n,this.height=i,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(n,i,o,g){this.initContextForDraw(n,g),YM(n,i,o,g.size),this.performFill(n,g)}},{key:"_drawImageAtPosition",value:function(n,i){if(this.imageObj.width!=0){n.globalAlpha=i.opacity!==void 0?i.opacity:1,this.enableShadow(n,i);var o=1;this.options.shapeProperties.interpolation===!0&&(o=this.imageObj.width/this.width/this.body.view.scale);var g=this._getImagePadding(),a=this.left+g.left,s=this.top+g.top,C=this.width-g.left-g.right,I=this.height-g.top-g.bottom;this.imageObj.drawImageAtPosition(n,o,a,s,C,I),this.disableShadow(n,i)}}},{key:"_drawImageLabel",value:function(n,i,o,g,a){var s=0;if(this.height!==void 0){s=this.height*.5;var C=this.labelModule.getTextSize(n,g,a);C.lineCount>=1&&(s+=C.height/2)}var I=o+s;this.options.label&&(this.labelOffset=s),this.labelModule.draw(n,i,I,g,a,"hanging")}}]),A}(Ks);function IxA(e){var t=lxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function lxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var uxA=function(e){Me(A,e);var t=IxA(A);function A(r,n,i){var o;return cA(this,A),o=t.call(this,r,n,i),o._setMargins(i),o}return hA(A,[{key:"resize",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(i,o)){var g=this.getDimensionsFromLabel(n,i,o),a=Math.max(g.width+this.margin.right+this.margin.left,g.height+this.margin.top+this.margin.bottom);this.options.size=a/2,this.width=a,this.height=a,this.radius=this.width/2}}},{key:"draw",value:function(n,i,o,g,a,s){this.resize(n,g,a),this.left=i-this.width/2,this.top=o-this.height/2,this._drawRawCircle(n,i,o,s),this.updateBoundingBox(i,o),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,o,g,a)}},{key:"updateBoundingBox",value:function(n,i){this.boundingBox.top=i-this.options.size,this.boundingBox.left=n-this.options.size,this.boundingBox.right=n+this.options.size,this.boundingBox.bottom=i+this.options.size}},{key:"distanceToBorder",value:function(n){return n&&this.resize(n),this.width*.5}}]),A}(Fk);function cxA(e){var t=hxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function hxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var dxA=function(e){Me(A,e);var t=cxA(A);function A(r,n,i,o,g){var a;return cA(this,A),a=t.call(this,r,n,i),a.setImages(o,g),a}return hA(A,[{key:"resize",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,g=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(g){var a=this.options.size*2;this.width=a,this.height=a,this.radius=.5*this.width;return}this.needsRefresh(i,o)&&this._resizeImage()}},{key:"draw",value:function(n,i,o,g,a,s){this.switchImages(g),this.resize();var C=i,I=o;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o,C+=this.width/2,I+=this.height/2):(this.left=i-this.width/2,this.top=o-this.height/2),this._drawRawCircle(n,C,I,s),n.save(),n.clip(),this._drawImageAtPosition(n,s),n.restore(),this._drawImageLabel(n,C,I,g,a),this.updateBoundingBox(i,o)}},{key:"updateBoundingBox",value:function(n,i){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=i,this.boundingBox.left=n,this.boundingBox.right=n+this.options.size*2,this.boundingBox.bottom=i+this.options.size*2):(this.boundingBox.top=i-this.options.size,this.boundingBox.left=n-this.options.size,this.boundingBox.right=n+this.options.size,this.boundingBox.bottom=i+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(n){return n&&this.resize(n),this.width*.5}}]),A}(Fk);function BxA(e){var t=fxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function fxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var la=function(e){Me(A,e);var t=BxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"resize",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(i,o)){var a,s;this.labelModule.getTextSize(n,i,o);var C=2*g.size;this.width=(a=this.customSizeWidth)!==null&&a!==void 0?a:C,this.height=(s=this.customSizeHeight)!==null&&s!==void 0?s:C,this.radius=.5*this.width}}},{key:"_drawShape",value:function(n,i,o,g,a,s,C,I){var l=this;return this.resize(n,s,C,I),this.left=g-this.width/2,this.top=a-this.height/2,this.initContextForDraw(n,I),$EA(i)(n,g,a,I.size),this.performFill(n,I),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(n.font=(s?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),n.fillStyle=this.options.icon.color||"black",n.textAlign="center",n.textBaseline="middle",n.fillText(this.options.icon.code,g,a)),{drawExternalLabel:function(){if(l.options.label!==void 0){l.labelModule.calculateLabelSize(n,s,C,g,a,"hanging");var c=a+.5*l.height+.5*l.labelModule.size.height;l.labelModule.draw(n,g,c,s,C,"hanging")}l.updateBoundingBox(g,a)}}}},{key:"updateBoundingBox",value:function(n,i){this.boundingBox.top=i-this.options.size,this.boundingBox.left=n-this.options.size,this.boundingBox.right=n+this.options.size,this.boundingBox.bottom=i+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),A}(Ks);function P$(e,t){var A=qe(e);if(ji){var r=ji(e);t&&(r=St(r).call(r,function(n){return eo(e,n).enumerable})),A.push.apply(A,r)}return A}function ExA(e){for(var t=1;t<arguments.length;t++){var A,r,n=arguments[t]!=null?arguments[t]:{};t%2?we(A=P$(Object(n),!0)).call(A,function(i){Ve(e,i,n[i])}):Vi?bh(e,Vi(n)):we(r=P$(Object(n))).call(r,function(i){mh(e,i,eo(n,i))})}return e}function QxA(e){var t=vxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function vxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var pxA=function(e){Me(A,e);var t=QxA(A);function A(r,n,i,o){var g;return cA(this,A),g=t.call(this,r,n,i,o),g.ctxRenderer=o,g}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){this.resize(n,g,a,s),this.left=i-this.width/2,this.top=o-this.height/2,n.save();var C=this.ctxRenderer({ctx:n,id:this.options.id,x:i,y:o,state:{selected:g,hover:a},style:ExA({},s),label:this.options.label});if(C.drawNode!=null&&C.drawNode(),n.restore(),C.drawExternalLabel){var I=C.drawExternalLabel;C.drawExternalLabel=function(){n.save(),I(),n.restore()}}return C.nodeDimensions&&(this.customSizeWidth=C.nodeDimensions.width,this.customSizeHeight=C.nodeDimensions.height),C}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function wxA(e){var t=DxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function DxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var yxA=function(e){Me(A,e);var t=wxA(A);function A(r,n,i){var o;return cA(this,A),o=t.call(this,r,n,i),o._setMargins(i),o}return hA(A,[{key:"resize",value:function(n,i,o){if(this.needsRefresh(i,o)){var g=this.getDimensionsFromLabel(n,i,o),a=g.width+this.margin.right+this.margin.left;this.width=a,this.height=a,this.radius=this.width/2}}},{key:"draw",value:function(n,i,o,g,a,s){this.resize(n,g,a),this.left=i-this.width/2,this.top=o-this.height/2,this.initContextForDraw(n,s),nJ(n,i-this.width/2,o-this.height/2,this.width,this.height),this.performFill(n,s),this.updateBoundingBox(i,o,n,g,a),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,g,a)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(Ks);function mxA(e){var t=bxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function bxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var MxA=function(e){Me(A,e);var t=mxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"diamond",4,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function kxA(e){var t=SxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function SxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var NxA=function(e){Me(A,e);var t=kxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"circle",2,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n){return n&&this.resize(n),this.options.size}}]),A}(la);function PxA(e){var t=FxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function FxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var F$=function(e){Me(A,e);var t=PxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"resize",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(i,o)){var g=this.getDimensionsFromLabel(n,i,o);this.height=g.height*2,this.width=g.width+g.height,this.radius=.5*this.width}}},{key:"draw",value:function(n,i,o,g,a,s){this.resize(n,g,a),this.left=i-this.width*.5,this.top=o-this.height*.5,this.initContextForDraw(n,s),M0(n,this.left,this.top,this.width,this.height),this.performFill(n,s),this.updateBoundingBox(i,o,n,g,a),this.labelModule.draw(n,i,o,g,a)}},{key:"distanceToBorder",value:function(n,i){n&&this.resize(n);var o=this.width*.5,g=this.height*.5,a=Math.sin(i)*o,s=Math.cos(i)*g;return o*g/Math.sqrt(a*a+s*s)}}]),A}(Ks);function RxA(e){var t=LxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function LxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var $xA=function(e){Me(A,e);var t=RxA(A);function A(r,n,i){var o;return cA(this,A),o=t.call(this,r,n,i),o._setMargins(i),o}return hA(A,[{key:"resize",value:function(n,i,o){this.needsRefresh(i,o)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(n,i,o,g,a,s){var C=this;return this.resize(n,g,a),this.options.icon.size=this.options.icon.size||50,this.left=i-this.width/2,this.top=o-this.height/2,this._icon(n,i,o,g,a,s),{drawExternalLabel:function(){if(C.options.label!==void 0){var l=5;C.labelModule.draw(n,C.left+C.iconSize.width/2+C.margin.left,o+C.height/2+l,g)}C.updateBoundingBox(i,o)}}}},{key:"updateBoundingBox",value:function(n,i){if(this.boundingBox.top=i-this.options.icon.size*.5,this.boundingBox.left=n-this.options.icon.size*.5,this.boundingBox.right=n+this.options.icon.size*.5,this.boundingBox.bottom=i+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var o=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+o)}}},{key:"_icon",value:function(n,i,o,g,a,s){var C=Number(this.options.icon.size);this.options.icon.code!==void 0?(n.font=[this.options.icon.weight!=null?this.options.icon.weight:g?"bold":"",(this.options.icon.weight!=null&&g?5:0)+C+"px",this.options.icon.face].join(" "),n.fillStyle=this.options.icon.color||"black",n.textAlign="center",n.textBaseline="middle",this.enableShadow(n,s),n.fillText(this.options.icon.code,i,o),this.disableShadow(n,s)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(Ks);function OxA(e){var t=GxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function GxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var xxA=function(e){Me(A,e);var t=OxA(A);function A(r,n,i,o,g){var a;return cA(this,A),a=t.call(this,r,n,i),a.setImages(o,g),a}return hA(A,[{key:"resize",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,g=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(g){var a=this.options.size*2;this.width=a,this.height=a;return}this.needsRefresh(i,o)&&this._resizeImage()}},{key:"draw",value:function(n,i,o,g,a,s){n.save(),this.switchImages(g),this.resize();var C=i,I=o;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o,C+=this.width/2,I+=this.height/2):(this.left=i-this.width/2,this.top=o-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var l=this.options.borderWidth,u=this.options.borderWidthSelected||2*this.options.borderWidth,c=(g?u:l)/this.body.view.scale;n.lineWidth=Math.min(this.width,c),n.beginPath();var h=g?this.options.color.highlight.border:a?this.options.color.hover.border:this.options.color.border,d=g?this.options.color.highlight.background:a?this.options.color.hover.background:this.options.color.background;s.opacity!==void 0&&(h=Fn(h,s.opacity),d=Fn(d,s.opacity)),n.strokeStyle=h,n.fillStyle=d,n.rect(this.left-.5*n.lineWidth,this.top-.5*n.lineWidth,this.width+n.lineWidth,this.height+n.lineWidth),Bh(n).call(n),this.performStroke(n,s),n.closePath()}this._drawImageAtPosition(n,s),this._drawImageLabel(n,C,I,g,a),this.updateBoundingBox(i,o),n.restore()}},{key:"updateBoundingBox",value:function(n,i){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=n,this.top=i):(this.left=n-this.width/2,this.top=i-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(Fk);function TxA(e){var t=HxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function HxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var UxA=function(e){Me(A,e);var t=TxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"square",2,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function KxA(e){var t=_xA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function _xA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var YxA=function(e){Me(A,e);var t=KxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"hexagon",4,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function JxA(e){var t=zxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function zxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var WxA=function(e){Me(A,e);var t=JxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"star",4,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function qxA(e){var t=jxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function jxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var VxA=function(e){Me(A,e);var t=qxA(A);function A(r,n,i){var o;return cA(this,A),o=t.call(this,r,n,i),o._setMargins(i),o}return hA(A,[{key:"resize",value:function(n,i,o){this.needsRefresh(i,o)&&(this.textSize=this.labelModule.getTextSize(n,i,o),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(n,i,o,g,a,s){this.resize(n,g,a),this.left=i-this.width/2,this.top=o-this.height/2,this.enableShadow(n,s),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,g,a),this.disableShadow(n,s),this.updateBoundingBox(i,o,n,g,a)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(Ks);function ZxA(e){var t=XxA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function XxA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var ATA=function(e){Me(A,e);var t=ZxA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"triangle",3,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function eTA(e){var t=tTA();return function(){var r=PA(e),n;if(t){var i=PA(this).constructor;n=AA(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function tTA(){if(typeof Reflect>"u"||!AA||AA.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(AA(Boolean,[],function(){})),!0}catch{return!1}}var rTA=function(e){Me(A,e);var t=eTA(A);function A(r,n,i){return cA(this,A),t.call(this,r,n,i)}return hA(A,[{key:"draw",value:function(n,i,o,g,a,s){return this._drawShape(n,"triangleDown",3,i,o,g,a,s)}},{key:"distanceToBorder",value:function(n,i){return this._distanceToBorder(n,i)}}]),A}(la);function R$(e,t){var A=qe(e);if(ji){var r=ji(e);t&&(r=St(r).call(r,function(n){return eo(e,n).enumerable})),A.push.apply(A,r)}return A}function L$(e){for(var t=1;t<arguments.length;t++){var A,r,n=arguments[t]!=null?arguments[t]:{};t%2?we(A=R$(Object(n),!0)).call(A,function(i){Ve(e,i,n[i])}):Vi?bh(e,Vi(n)):we(r=R$(Object(n))).call(r,function(i){mh(e,i,eo(n,i))})}return e}var In=function(){function e(t,A,r,n,i,o){cA(this,e),this.options=Ng(i),this.globalOptions=i,this.defaultOptions=o,this.body=A,this.edges=[],this.id=void 0,this.imagelist=r,this.grouplist=n,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new L5(this.body,this.options,!1),this.setOptions(t)}return hA(e,[{key:"attachEdge",value:function(A){var r;ye(r=this.edges).call(r,A)===-1&&this.edges.push(A)}},{key:"detachEdge",value:function(A){var r,n=ye(r=this.edges).call(r,A);if(n!=-1){var i;Hi(i=this.edges).call(i,n,1)}}},{key:"setOptions",value:function(A){var r=this.options.shape;if(A){if(typeof A.color<"u"&&(this._localColor=A.color),A.id!==void 0&&(this.id=A.id),this.id===void 0)throw new Error("Node must have an id");e.checkMass(A,this.id),A.x!==void 0&&(A.x===null?(this.x=void 0,this.predefinedPosition=!1):(this.x=Xn(A.x),this.predefinedPosition=!0)),A.y!==void 0&&(A.y===null?(this.y=void 0,this.predefinedPosition=!1):(this.y=Xn(A.y),this.predefinedPosition=!0)),A.size!==void 0&&(this.baseSize=A.size),A.value!==void 0&&(A.value=F5(A.value)),e.parseOptions(this.options,A,!0,this.globalOptions,this.grouplist);var n=[A,this.options,this.defaultOptions];return this.chooser=Pk("node",n),this._load_images(),this.updateLabelModule(A),A.opacity!==void 0&&e.checkOpacity(A.opacity)&&(this.options.opacity=A.opacity),this.updateShape(r),A.hidden!==void 0||A.physics!==void 0}}},{key:"_load_images",value:function(){if((this.options.shape==="circularImage"||this.options.shape==="image")&&this.options.image===void 0)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(this.options.image!==void 0){if(this.imagelist===void 0)throw new Error("Internal Error: No images provided");if(typeof this.options.image=="string")this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(this.options.image.unselected===void 0)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),this.options.image.selected!==void 0?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var A={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?this.chooser===!0?this.selected?(this.options.borderWidthSelected!=null?A.borderWidth=this.options.borderWidthSelected:A.borderWidth*=2,A.color=this.options.color.highlight.background,A.borderColor=this.options.color.highlight.border,A.shadow=this.options.shadow.enabled):this.hover&&(A.color=this.options.color.hover.background,A.borderColor=this.options.color.hover.border,A.shadow=this.options.shadow.enabled):typeof this.chooser=="function"&&(this.chooser(A,this.options.id,this.selected,this.hover),A.shadow===!1&&(A.shadowColor!==this.options.shadow.color||A.shadowSize!==this.options.shadow.size||A.shadowX!==this.options.shadow.x||A.shadowY!==this.options.shadow.y)&&(A.shadow=!0)):A.shadow=this.options.shadow.enabled,this.options.opacity!==void 0){var r=this.options.opacity;A.borderColor=Fn(A.borderColor,r),A.color=Fn(A.color,r),A.shadowColor=Fn(A.shadowColor,r)}return A}},{key:"updateLabelModule",value:function(A){(this.options.label===void 0||this.options.label===null)&&(this.options.label=""),e.updateGroupOptions(this.options,L$(L$({},A),{},{color:A&&A.color||this._localColor||void 0}),this.grouplist);var r=this.grouplist.get(this.options.group,!1),n=[A,this.options,r,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(A){if(A===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new axA(this.options,this.body,this.labelModule);break;case"circle":this.shape=new uxA(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new dxA(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new pxA(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new yxA(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new MxA(this.options,this.body,this.labelModule);break;case"dot":this.shape=new NxA(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new F$(this.options,this.body,this.labelModule);break;case"icon":this.shape=new $xA(this.options,this.body,this.labelModule);break;case"image":this.shape=new xxA(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new UxA(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new YxA(this.options,this.body,this.labelModule);break;case"star":this.shape=new WxA(this.options,this.body,this.labelModule);break;case"text":this.shape=new VxA(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new ATA(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new rTA(this.options,this.body,this.labelModule);break;default:this.shape=new F$(this.options,this.body,this.labelModule);break}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(A,r){return this.shape.distanceToBorder(A,r)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(A,r,n){if(this.options.value!==void 0){var i=this.options.scaling.customScalingFunction(A,r,n,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var g=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+i*g}this.options.size=this.options.scaling.min+i*o}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(A){var r=this.getFormattingValues();return this.shape.draw(A,this.x,this.y,this.selected,this.hover,r)||{}}},{key:"updateBoundingBox",value:function(A){this.shape.updateBoundingBox(this.x,this.y,A)}},{key:"resize",value:function(A){var r=this.getFormattingValues();this.shape.resize(A,this.selected,this.hover,r)}},{key:"getItemsOnPoint",value:function(A){var r=[];return this.labelModule.visible()&&lb(this.labelModule.getSize(),A)&&r.push({nodeId:this.id,labelId:0}),lb(this.shape.boundingBox,A)&&r.push({nodeId:this.id}),r}},{key:"isOverlappingWith",value:function(A){return this.shape.left<A.right&&this.shape.left+this.shape.width>A.left&&this.shape.top<A.bottom&&this.shape.top+this.shape.height>A.top}},{key:"isBoundingBoxOverlappingWith",value:function(A){return this.shape.boundingBox.left<A.right&&this.shape.boundingBox.right>A.left&&this.shape.boundingBox.top<A.bottom&&this.shape.boundingBox.bottom>A.top}}],[{key:"checkOpacity",value:function(A){return 0<=A&&A<=1}},{key:"checkCoordinateOrigin",value:function(A){return A===void 0||A==="center"||A==="top-left"}},{key:"updateGroupOptions",value:function(A,r,n){var i;if(n!==void 0){var o=A.group;if(r!==void 0&&r.group!==void 0&&o!==r.group)throw new Error("updateGroupOptions: group values in options don't match.");var g=typeof o=="number"||typeof o=="string"&&o!="";if(g){var a=n.get(o);a.opacity!==void 0&&r.opacity===void 0&&(e.checkOpacity(a.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+a.opacity),a.opacity=void 0));var s=St(i=txA(r)).call(i,function(C){return r[C]!=null});s.push("font"),kE(s,A,a),A.color=W0(A.color)}}}},{key:"parseOptions",value:function(A,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,g=["color","fixed","shadow"];if(kE(g,A,r,n),e.checkMass(r),A.opacity!==void 0&&(e.checkOpacity(A.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+A.opacity),A.opacity=void 0)),r.opacity!==void 0&&(e.checkOpacity(r.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+r.opacity),r.opacity=void 0)),r.shapeProperties&&!e.checkCoordinateOrigin(r.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+r.shapeProperties.coordinateOrigin),Nn(A,r,"shadow",i),r.color!==void 0&&r.color!==null){var a=W0(r.color);Qz(A.color,a)}else n===!0&&r.color===null&&(A.color=Ng(i.color));r.fixed!==void 0&&r.fixed!==null&&(typeof r.fixed=="boolean"?(A.fixed.x=r.fixed,A.fixed.y=r.fixed):(r.fixed.x!==void 0&&typeof r.fixed.x=="boolean"&&(A.fixed.x=r.fixed.x),r.fixed.y!==void 0&&typeof r.fixed.y=="boolean"&&(A.fixed.y=r.fixed.y))),n===!0&&r.font===null&&(A.font=Ng(i.font)),e.updateGroupOptions(A,r,o),r.scaling!==void 0&&Nn(A.scaling,r.scaling,"label",i.scaling)}},{key:"checkMass",value:function(A,r){if(A.mass!==void 0&&A.mass<=0){var n="";r!==void 0&&(n=" in node id: "+r),console.error("%cNegative or zero mass disallowed"+n+", setting mass to 1.",Dz),A.mass=1}}}]),e}();function nTA(e,t){var A=typeof To<"u"&&aa(e)||e["@@iterator"];if(!A){if(ge(e)||(A=iTA(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -1020,18 +1020,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1020
1020
|
* http://opensource.org/licenses/MIT
|
|
1021
1021
|
*
|
|
1022
1022
|
* vis.js may be distributed under either license.
|
|
1023
|
-
*/function Ev(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ED=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ZA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sW={exports:{}},dB=function(e){return e&&e.Math===Math&&e},it=dB(typeof globalThis=="object"&&globalThis)||dB(typeof window=="object"&&window)||dB(typeof self=="object"&&self)||dB(typeof ED=="object"&&ED)||function(){return this}()||ED||Function("return this")(),Re=function(e){try{return!!e()}catch{return!0}},wUA=Re,kh=!wUA(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),DUA=kh,CW=Function.prototype,hO=CW.apply,dO=CW.call,hl=typeof Reflect=="object"&&Reflect.apply||(DUA?dO.bind(hO):function(){return dO.apply(hO,arguments)}),IW=kh,lW=Function.prototype,fb=lW.call,yUA=IW&&lW.bind.bind(fb,fb),Xe=IW?yUA:function(e){return function(){return fb.apply(e,arguments)}},uW=Xe,mUA=uW({}.toString),bUA=uW("".slice),ua=function(e){return bUA(mUA(e),8,-1)},MUA=ua,kUA=Xe,cW=function(e){if(MUA(e)==="Function")return kUA(e)},Eb=typeof document=="object"&&document.all,SUA=typeof Eb>"u"&&Eb!==void 0,hW={all:Eb,IS_HTMLDDA:SUA},dW=hW,NUA=dW.all,ht=dW.IS_HTMLDDA?function(e){return typeof e=="function"||e===NUA}:function(e){return typeof e=="function"},_s={},PUA=Re,Ar=!PUA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),FUA=kh,BB=Function.prototype.call,er=FUA?BB.bind(BB):function(){return BB.apply(BB,arguments)},Qv={},BW={}.propertyIsEnumerable,fW=Object.getOwnPropertyDescriptor,RUA=fW&&!BW.call({1:2},1);Qv.f=RUA?function(t){var A=fW(this,t);return!!A&&A.enumerable}:BW;var Ys=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},LUA=Xe,$UA=Re,OUA=ua,QD=Object,GUA=LUA("".split),vv=$UA(function(){return!QD("z").propertyIsEnumerable(0)})?function(e){return OUA(e)==="String"?GUA(e,""):QD(e)}:QD,dl=function(e){return e==null},xUA=dl,TUA=TypeError,Tk=function(e){if(xUA(e))throw new TUA("Can't call method on "+e);return e},HUA=vv,UUA=Tk,to=function(e){return HUA(UUA(e))},BO=ht,EW=hW,KUA=EW.all,hr=EW.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:BO(e)||e===KUA}:function(e){return typeof e=="object"?e!==null:BO(e)},ot={},vD=ot,pD=it,_UA=ht,fO=function(e){return _UA(e)?e:void 0},Or=function(e,t){return arguments.length<2?fO(vD[e])||fO(pD[e]):vD[e]&&vD[e][t]||pD[e]&&pD[e][t]},YUA=Xe,Lt=YUA({}.isPrototypeOf),ca=typeof navigator<"u"&&String(navigator.userAgent)||"",QW=it,wD=ca,EO=QW.process,QO=QW.Deno,vO=EO&&EO.versions||QO&&QO.version,pO=vO&&vO.v8,Ai,GE;pO&&(Ai=pO.split("."),GE=Ai[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1]));!GE&&wD&&(Ai=wD.match(/Edge\/(\d+)/),(!Ai||Ai[1]>=74)&&(Ai=wD.match(/Chrome\/(\d+)/),Ai&&(GE=+Ai[1])));var Bl=GE,wO=Bl,JUA=Re,zUA=it,WUA=zUA.String,fl=!!Object.getOwnPropertySymbols&&!JUA(function(){var e=Symbol("symbol detection");return!WUA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wO&&wO<41}),qUA=fl,vW=qUA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jUA=Or,VUA=ht,ZUA=Lt,XUA=vW,AKA=Object,Sh=XUA?function(e){return typeof e=="symbol"}:function(e){var t=jUA("Symbol");return VUA(t)&&ZUA(t.prototype,AKA(e))},eKA=String,El=function(e){try{return eKA(e)}catch{return"Object"}},tKA=ht,rKA=El,nKA=TypeError,tn=function(e){if(tKA(e))return e;throw new nKA(rKA(e)+" is not a function")},iKA=tn,oKA=dl,Hk=function(e,t){var A=e[t];return oKA(A)?void 0:iKA(A)},DD=er,yD=ht,mD=hr,gKA=TypeError,aKA=function(e,t){var A,r;if(t==="string"&&yD(A=e.toString)&&!mD(r=DD(A,e))||yD(A=e.valueOf)&&!mD(r=DD(A,e))||t!=="string"&&yD(A=e.toString)&&!mD(r=DD(A,e)))return r;throw new gKA("Can't convert object to primitive value")},pW={exports:{}},sKA=!0,DO=it,CKA=Object.defineProperty,IKA=function(e,t){try{CKA(DO,e,{value:t,configurable:!0,writable:!0})}catch{DO[e]=t}return t},lKA=it,uKA=IKA,yO="__core-js_shared__",cKA=lKA[yO]||uKA(yO,{}),Uk=cKA,mO=Uk;(pW.exports=function(e,t){return mO[e]||(mO[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ql=pW.exports,hKA=Tk,dKA=Object,rn=function(e){return dKA(hKA(e))},BKA=Xe,fKA=rn,EKA=BKA({}.hasOwnProperty),$t=Object.hasOwn||function(t,A){return EKA(fKA(t),A)},QKA=Xe,vKA=0,pKA=Math.random(),wKA=QKA(1 .toString),pv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wKA(++vKA+pKA,36)},DKA=it,yKA=Ql,bO=$t,mKA=pv,bKA=fl,MKA=vW,RC=DKA.Symbol,bD=yKA("wks"),kKA=MKA?RC.for||RC:RC&&RC.withoutSetter||mKA,at=function(e){return bO(bD,e)||(bD[e]=bKA&&bO(RC,e)?RC[e]:kKA("Symbol."+e)),bD[e]},SKA=er,MO=hr,kO=Sh,NKA=Hk,PKA=aKA,FKA=at,RKA=TypeError,LKA=FKA("toPrimitive"),$KA=function(e,t){if(!MO(e)||kO(e))return e;var A=NKA(e,LKA),r;if(A){if(t===void 0&&(t="default"),r=SKA(A,e,t),!MO(r)||kO(r))return r;throw new RKA("Can't convert object to primitive value")}return t===void 0&&(t="number"),PKA(e,t)},OKA=$KA,GKA=Sh,wv=function(e){var t=OKA(e,"string");return GKA(t)?t:t+""},xKA=it,SO=hr,Qb=xKA.document,TKA=SO(Qb)&&SO(Qb.createElement),Kk=function(e){return TKA?Qb.createElement(e):{}},HKA=Ar,UKA=Re,KKA=Kk,wW=!HKA&&!UKA(function(){return Object.defineProperty(KKA("div"),"a",{get:function(){return 7}}).a!==7}),_KA=Ar,YKA=er,JKA=Qv,zKA=Ys,WKA=to,qKA=wv,jKA=$t,VKA=wW,NO=Object.getOwnPropertyDescriptor;_s.f=_KA?NO:function(t,A){if(t=WKA(t),A=qKA(A),VKA)try{return NO(t,A)}catch{}if(jKA(t,A))return zKA(!YKA(JKA.f,t,A),t[A])};var ZKA=Re,XKA=ht,A_A=/#|\.prototype\./,Nh=function(e,t){var A=t_A[e_A(e)];return A===n_A?!0:A===r_A?!1:XKA(t)?ZKA(t):!!t},e_A=Nh.normalize=function(e){return String(e).replace(A_A,".").toLowerCase()},t_A=Nh.data={},r_A=Nh.NATIVE="N",n_A=Nh.POLYFILL="P",DW=Nh,PO=cW,i_A=tn,o_A=kh,g_A=PO(PO.bind),ha=function(e,t){return i_A(e),t===void 0?e:o_A?g_A(e,t):function(){return e.apply(t,arguments)}},nn={},a_A=Ar,s_A=Re,yW=a_A&&s_A(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),C_A=hr,I_A=String,l_A=TypeError,pn=function(e){if(C_A(e))return e;throw new l_A(I_A(e)+" is not an object")},u_A=Ar,c_A=wW,h_A=yW,fB=pn,FO=wv,d_A=TypeError,MD=Object.defineProperty,B_A=Object.getOwnPropertyDescriptor,kD="enumerable",SD="configurable",ND="writable";nn.f=u_A?h_A?function(t,A,r){if(fB(t),A=FO(A),fB(r),typeof t=="function"&&A==="prototype"&&"value"in r&&ND in r&&!r[ND]){var n=B_A(t,A);n&&n[ND]&&(t[A]=r.value,r={configurable:SD in r?r[SD]:n[SD],enumerable:kD in r?r[kD]:n[kD],writable:!1})}return MD(t,A,r)}:MD:function(t,A,r){if(fB(t),A=FO(A),fB(r),c_A)try{return MD(t,A,r)}catch{}if("get"in r||"set"in r)throw new d_A("Accessors not supported");return"value"in r&&(t[A]=r.value),t};var f_A=Ar,E_A=nn,Q_A=Ys,Ho=f_A?function(e,t,A){return E_A.f(e,t,Q_A(1,A))}:function(e,t,A){return e[t]=A,e},EB=it,v_A=hl,p_A=cW,w_A=ht,D_A=_s.f,y_A=DW,uC=ot,m_A=ha,cC=Ho,RO=$t,b_A=function(e){var t=function(A,r,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(A);case 2:return new e(A,r)}return new e(A,r,n)}return v_A(e,this,arguments)};return t.prototype=e.prototype,t},JA=function(e,t){var A=e.target,r=e.global,n=e.stat,i=e.proto,o=r?EB:n?EB[A]:(EB[A]||{}).prototype,g=r?uC:uC[A]||cC(uC,A,{})[A],a=g.prototype,s,C,I,l,u,c,h,d,B;for(l in t)s=y_A(r?l:A+(n?".":"#")+l,e.forced),C=!s&&o&&RO(o,l),c=g[l],C&&(e.dontCallGetSet?(B=D_A(o,l),h=B&&B.value):h=o[l]),u=C&&h?h:t[l],!(C&&typeof c==typeof u)&&(e.bind&&C?d=m_A(u,EB):e.wrap&&C?d=b_A(u):i&&w_A(u)?d=p_A(u):d=u,(e.sham||u&&u.sham||c&&c.sham)&&cC(d,"sham",!0),cC(g,l,d),i&&(I=A+"Prototype",RO(uC,I)||cC(uC,I,{}),cC(uC[I],l,u),e.real&&a&&(s||!a[l])&&cC(a,l,u)))},M_A=JA,k_A=Ar,LO=nn.f;M_A({target:"Object",stat:!0,forced:Object.defineProperty!==LO,sham:!k_A},{defineProperty:LO});var S_A=ot,mW=S_A.Object,N_A=sW.exports=function(t,A,r){return mW.defineProperty(t,A,r)};mW.defineProperty.sham&&(N_A.sham=!0);var P_A=sW.exports,F_A=P_A,bW=F_A,R_A=bW,L_A=R_A,$_A=L_A,O_A=$_A,MW=O_A,Dv=ZA(MW),G_A=ua,da=Array.isArray||function(t){return G_A(t)==="Array"},x_A=Math.ceil,T_A=Math.floor,H_A=Math.trunc||function(t){var A=+t;return(A>0?T_A:x_A)(A)},U_A=H_A,yv=function(e){var t=+e;return t!==t||t===0?0:U_A(t)},K_A=yv,__A=Math.min,Y_A=function(e){return e>0?__A(K_A(e),9007199254740991):0},J_A=Y_A,wn=function(e){return J_A(e.length)},z_A=TypeError,W_A=9007199254740991,mv=function(e){if(e>W_A)throw z_A("Maximum allowed index exceeded");return e},q_A=wv,j_A=nn,V_A=Ys,vl=function(e,t,A){var r=q_A(t);r in e?j_A.f(e,r,V_A(0,A)):e[r]=A},Z_A=at,X_A=Z_A("toStringTag"),kW={};kW[X_A]="z";var _k=String(kW)==="[object z]",AYA=_k,eYA=ht,yf=ua,tYA=at,rYA=tYA("toStringTag"),nYA=Object,iYA=yf(function(){return arguments}())==="Arguments",oYA=function(e,t){try{return e[t]}catch{}},Uo=AYA?yf:function(e){var t,A,r;return e===void 0?"Undefined":e===null?"Null":typeof(A=oYA(t=nYA(e),rYA))=="string"?A:iYA?yf(t):(r=yf(t))==="Object"&&eYA(t.callee)?"Arguments":r},gYA=Xe,aYA=ht,vb=Uk,sYA=gYA(Function.toString);aYA(vb.inspectSource)||(vb.inspectSource=function(e){return sYA(e)});var SW=vb.inspectSource,CYA=Xe,IYA=Re,NW=ht,lYA=Uo,uYA=Or,cYA=SW,PW=function(){},hYA=[],FW=uYA("Reflect","construct"),Yk=/^\s*(?:class|function)\b/,dYA=CYA(Yk.exec),BYA=!Yk.test(PW),Vl=function(t){if(!NW(t))return!1;try{return FW(PW,hYA,t),!0}catch{return!1}},RW=function(t){if(!NW(t))return!1;switch(lYA(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return BYA||!!dYA(Yk,cYA(t))}catch{return!0}};RW.sham=!0;var bv=!FW||IYA(function(){var e;return Vl(Vl.call)||!Vl(Object)||!Vl(function(){e=!0})||e})?RW:Vl,$O=da,fYA=bv,EYA=hr,QYA=at,vYA=QYA("species"),OO=Array,pYA=function(e){var t;return $O(e)&&(t=e.constructor,fYA(t)&&(t===OO||$O(t.prototype))?t=void 0:EYA(t)&&(t=t[vYA],t===null&&(t=void 0))),t===void 0?OO:t},wYA=pYA,Mv=function(e,t){return new(wYA(e))(t===0?0:t)},DYA=Re,yYA=at,mYA=Bl,bYA=yYA("species"),Ph=function(e){return mYA>=51||!DYA(function(){var t=[],A=t.constructor={};return A[bYA]=function(){return{foo:1}},t[e](Boolean).foo!==1})},MYA=JA,kYA=Re,SYA=da,NYA=hr,PYA=rn,FYA=wn,GO=mv,xO=vl,RYA=Mv,LYA=Ph,$YA=at,OYA=Bl,LW=$YA("isConcatSpreadable"),GYA=OYA>=51||!kYA(function(){var e=[];return e[LW]=!1,e.concat()[0]!==e}),xYA=function(e){if(!NYA(e))return!1;var t=e[LW];return t!==void 0?!!t:SYA(e)},TYA=!GYA||!LYA("concat");MYA({target:"Array",proto:!0,arity:1,forced:TYA},{concat:function(t){var A=PYA(this),r=RYA(A,0),n=0,i,o,g,a,s;for(i=-1,g=arguments.length;i<g;i++)if(s=i===-1?A:arguments[i],xYA(s))for(a=FYA(s),GO(n+a),o=0;o<a;o++,n++)o in s&&xO(r,n,s[o]);else GO(n+1),xO(r,n++,s);return r.length=n,r}});var HYA=Uo,UYA=String,Js=function(e){if(HYA(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return UYA(e)},kv={},KYA=yv,_YA=Math.max,YYA=Math.min,Sv=function(e,t){var A=KYA(e);return A<0?_YA(A+t,0):YYA(A,t)},JYA=to,zYA=Sv,WYA=wn,TO=function(e){return function(t,A,r){var n=JYA(t),i=WYA(n),o=zYA(r,i),g;if(e&&A!==A){for(;i>o;)if(g=n[o++],g!==g)return!0}else for(;i>o;o++)if((e||o in n)&&n[o]===A)return e||o||0;return!e&&-1}},qYA={includes:TO(!0),indexOf:TO(!1)},Fh={},jYA=Xe,PD=$t,VYA=to,ZYA=qYA.indexOf,XYA=Fh,HO=jYA([].push),$W=function(e,t){var A=VYA(e),r=0,n=[],i;for(i in A)!PD(XYA,i)&&PD(A,i)&&HO(n,i);for(;t.length>r;)PD(A,i=t[r++])&&(~ZYA(n,i)||HO(n,i));return n},Jk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],AJA=$W,eJA=Jk,Nv=Object.keys||function(t){return AJA(t,eJA)},tJA=Ar,rJA=yW,nJA=nn,iJA=pn,oJA=to,gJA=Nv;kv.f=tJA&&!rJA?Object.defineProperties:function(t,A){iJA(t);for(var r=oJA(A),n=gJA(A),i=n.length,o=0,g;i>o;)nJA.f(t,g=n[o++],r[g]);return t};var aJA=Or,OW=aJA("document","documentElement"),sJA=Ql,CJA=pv,UO=sJA("keys"),Pv=function(e){return UO[e]||(UO[e]=CJA(e))},IJA=pn,lJA=kv,KO=Jk,uJA=Fh,cJA=OW,hJA=Kk,dJA=Pv,_O=">",YO="<",pb="prototype",wb="script",GW=dJA("IE_PROTO"),FD=function(){},xW=function(e){return YO+wb+_O+e+YO+"/"+wb+_O},JO=function(e){e.write(xW("")),e.close();var t=e.parentWindow.Object;return e=null,t},BJA=function(){var e=hJA("iframe"),t="java"+wb+":",A;return e.style.display="none",cJA.appendChild(e),e.src=String(t),A=e.contentWindow.document,A.open(),A.write(xW("document.F=Object")),A.close(),A.F},QB,mf=function(){try{QB=new ActiveXObject("htmlfile")}catch{}mf=typeof document<"u"?document.domain&&QB?JO(QB):BJA():JO(QB);for(var e=KO.length;e--;)delete mf[pb][KO[e]];return mf()};uJA[GW]=!0;var zs=Object.create||function(t,A){var r;return t!==null?(FD[pb]=IJA(t),r=new FD,FD[pb]=null,r[GW]=t):r=mf(),A===void 0?r:lJA.f(r,A)},Rh={},fJA=$W,EJA=Jk,QJA=EJA.concat("length","prototype");Rh.f=Object.getOwnPropertyNames||function(t){return fJA(t,QJA)};var zk={},zO=Sv,vJA=wn,pJA=vl,wJA=Array,DJA=Math.max,TW=function(e,t,A){for(var r=vJA(e),n=zO(t,r),i=zO(A===void 0?r:A,r),o=wJA(DJA(i-n,0)),g=0;n<i;n++,g++)pJA(o,g,e[n]);return o.length=g,o},yJA=ua,mJA=to,HW=Rh.f,bJA=TW,UW=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],MJA=function(e){try{return HW(e)}catch{return bJA(UW)}};zk.f=function(t){return UW&&yJA(t)==="Window"?MJA(t):HW(mJA(t))};var Lh={};Lh.f=Object.getOwnPropertySymbols;var kJA=Ho,pl=function(e,t,A,r){return r&&r.enumerable?e[t]=A:kJA(e,t,A),e},SJA=nn,Wk=function(e,t,A){return SJA.f(e,t,A)},$h={},NJA=at;$h.f=NJA;var WO=ot,PJA=$t,FJA=$h,RJA=nn.f,dt=function(e){var t=WO.Symbol||(WO.Symbol={});PJA(t,e)||RJA(t,e,{value:FJA.f(e)})},LJA=er,$JA=Or,OJA=at,GJA=pl,KW=function(){var e=$JA("Symbol"),t=e&&e.prototype,A=t&&t.valueOf,r=OJA("toPrimitive");t&&!t[r]&&GJA(t,r,function(n){return LJA(A,this)},{arity:1})},xJA=_k,TJA=Uo,HJA=xJA?{}.toString:function(){return"[object "+TJA(this)+"]"},UJA=_k,KJA=nn.f,_JA=Ho,YJA=$t,JJA=HJA,zJA=at,qO=zJA("toStringTag"),Ws=function(e,t,A,r){if(e){var n=A?e:e.prototype;YJA(n,qO)||KJA(n,qO,{configurable:!0,value:t}),r&&!UJA&&_JA(n,"toString",JJA)}},WJA=it,qJA=ht,jO=WJA.WeakMap,jJA=qJA(jO)&&/native code/.test(String(jO)),VJA=jJA,_W=it,ZJA=hr,XJA=Ho,RD=$t,LD=Uk,A3A=Pv,e3A=Fh,VO="Object already initialized",Db=_W.TypeError,t3A=_W.WeakMap,xE,fc,TE,r3A=function(e){return TE(e)?fc(e):xE(e,{})},n3A=function(e){return function(t){var A;if(!ZJA(t)||(A=fc(t)).type!==e)throw new Db("Incompatible receiver, "+e+" required");return A}};if(VJA||LD.state){var yi=LD.state||(LD.state=new t3A);yi.get=yi.get,yi.has=yi.has,yi.set=yi.set,xE=function(e,t){if(yi.has(e))throw new Db(VO);return t.facade=e,yi.set(e,t),t},fc=function(e){return yi.get(e)||{}},TE=function(e){return yi.has(e)}}else{var hC=A3A("state");e3A[hC]=!0,xE=function(e,t){if(RD(e,hC))throw new Db(VO);return t.facade=e,XJA(e,hC,t),t},fc=function(e){return RD(e,hC)?e[hC]:{}},TE=function(e){return RD(e,hC)}}var wl={set:xE,get:fc,has:TE,enforce:r3A,getterFor:n3A},i3A=ha,o3A=Xe,g3A=vv,a3A=rn,s3A=wn,C3A=Mv,ZO=o3A([].push),qo=function(e){var t=e===1,A=e===2,r=e===3,n=e===4,i=e===6,o=e===7,g=e===5||i;return function(a,s,C,I){for(var l=a3A(a),u=g3A(l),c=i3A(s,C),h=s3A(u),d=0,B=I||C3A,f=t?B(a,h):A||o?B(a,0):void 0,E,v;h>d;d++)if((g||d in u)&&(E=u[d],v=c(E,d,l),e))if(t)f[d]=v;else if(v)switch(e){case 3:return!0;case 5:return E;case 6:return d;case 2:ZO(f,E)}else switch(e){case 4:return!1;case 7:ZO(f,E)}return i?-1:r||n?n:f}},Dl={forEach:qo(0),map:qo(1),filter:qo(2),some:qo(3),every:qo(4),find:qo(5),findIndex:qo(6),filterReject:qo(7)},Fv=JA,Oh=it,qk=er,I3A=Xe,PI=Ar,FI=fl,l3A=Re,jt=$t,u3A=Lt,yb=pn,Rv=to,jk=wv,c3A=Js,mb=Ys,Ec=zs,YW=Nv,h3A=Rh,JW=zk,d3A=Lh,zW=_s,WW=nn,B3A=kv,qW=Qv,XO=pl,f3A=Wk,Vk=Ql,E3A=Pv,jW=Fh,AG=pv,Q3A=at,v3A=$h,p3A=dt,w3A=KW,D3A=Ws,VW=wl,Lv=Dl.forEach,Yr=E3A("hidden"),$v="Symbol",Qc="prototype",y3A=VW.set,eG=VW.getterFor($v),Ci=Object[Qc],As=Oh.Symbol,Iu=As&&As[Qc],m3A=Oh.RangeError,b3A=Oh.TypeError,$D=Oh.QObject,ZW=zW.f,es=WW.f,XW=JW.f,M3A=qW.f,Aq=I3A([].push),No=Vk("symbols"),Gh=Vk("op-symbols"),k3A=Vk("wks"),bb=!$D||!$D[Qc]||!$D[Qc].findChild,eq=function(e,t,A){var r=ZW(Ci,t);r&&delete Ci[t],es(e,t,A),r&&e!==Ci&&es(Ci,t,r)},Mb=PI&&l3A(function(){return Ec(es({},"a",{get:function(){return es(this,"a",{value:7}).a}})).a!==7})?eq:es,OD=function(e,t){var A=No[e]=Ec(Iu);return y3A(A,{type:$v,tag:e,description:t}),PI||(A.description=t),A},Ov=function(t,A,r){t===Ci&&Ov(Gh,A,r),yb(t);var n=jk(A);return yb(r),jt(No,n)?(r.enumerable?(jt(t,Yr)&&t[Yr][n]&&(t[Yr][n]=!1),r=Ec(r,{enumerable:mb(0,!1)})):(jt(t,Yr)||es(t,Yr,mb(1,{})),t[Yr][n]=!0),Mb(t,n,r)):es(t,n,r)},Zk=function(t,A){yb(t);var r=Rv(A),n=YW(r).concat(iq(r));return Lv(n,function(i){(!PI||qk(tq,r,i))&&Ov(t,i,r[i])}),t},S3A=function(t,A){return A===void 0?Ec(t):Zk(Ec(t),A)},tq=function(t){var A=jk(t),r=qk(M3A,this,A);return this===Ci&&jt(No,A)&&!jt(Gh,A)?!1:r||!jt(this,A)||!jt(No,A)||jt(this,Yr)&&this[Yr][A]?r:!0},rq=function(t,A){var r=Rv(t),n=jk(A);if(!(r===Ci&&jt(No,n)&&!jt(Gh,n))){var i=ZW(r,n);return i&&jt(No,n)&&!(jt(r,Yr)&&r[Yr][n])&&(i.enumerable=!0),i}},nq=function(t){var A=XW(Rv(t)),r=[];return Lv(A,function(n){!jt(No,n)&&!jt(jW,n)&&Aq(r,n)}),r},iq=function(e){var t=e===Ci,A=XW(t?Gh:Rv(e)),r=[];return Lv(A,function(n){jt(No,n)&&(!t||jt(Ci,n))&&Aq(r,No[n])}),r};FI||(As=function(){if(u3A(Iu,this))throw new b3A("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:c3A(arguments[0]),A=AG(t),r=function(n){var i=this===void 0?Oh:this;i===Ci&&qk(r,Gh,n),jt(i,Yr)&&jt(i[Yr],A)&&(i[Yr][A]=!1);var o=mb(1,n);try{Mb(i,A,o)}catch(g){if(!(g instanceof m3A))throw g;eq(i,A,o)}};return PI&&bb&&Mb(Ci,A,{configurable:!0,set:r}),OD(A,t)},Iu=As[Qc],XO(Iu,"toString",function(){return eG(this).tag}),XO(As,"withoutSetter",function(e){return OD(AG(e),e)}),qW.f=tq,WW.f=Ov,B3A.f=Zk,zW.f=rq,h3A.f=JW.f=nq,d3A.f=iq,v3A.f=function(e){return OD(Q3A(e),e)},PI&&f3A(Iu,"description",{configurable:!0,get:function(){return eG(this).description}}));Fv({global:!0,constructor:!0,wrap:!0,forced:!FI,sham:!FI},{Symbol:As});Lv(YW(k3A),function(e){p3A(e)});Fv({target:$v,stat:!0,forced:!FI},{useSetter:function(){bb=!0},useSimple:function(){bb=!1}});Fv({target:"Object",stat:!0,forced:!FI,sham:!PI},{create:S3A,defineProperty:Ov,defineProperties:Zk,getOwnPropertyDescriptor:rq});Fv({target:"Object",stat:!0,forced:!FI},{getOwnPropertyNames:nq});w3A();D3A(As,$v);jW[Yr]=!0;var N3A=fl,oq=N3A&&!!Symbol.for&&!!Symbol.keyFor,P3A=JA,F3A=Or,R3A=$t,L3A=Js,gq=Ql,$3A=oq,GD=gq("string-to-symbol-registry"),O3A=gq("symbol-to-string-registry");P3A({target:"Symbol",stat:!0,forced:!$3A},{for:function(e){var t=L3A(e);if(R3A(GD,t))return GD[t];var A=F3A("Symbol")(t);return GD[t]=A,O3A[A]=t,A}});var G3A=JA,x3A=$t,T3A=Sh,H3A=El,U3A=Ql,K3A=oq,tG=U3A("symbol-to-string-registry");G3A({target:"Symbol",stat:!0,forced:!K3A},{keyFor:function(t){if(!T3A(t))throw new TypeError(H3A(t)+" is not a symbol");if(x3A(tG,t))return tG[t]}});var _3A=Xe,xh=_3A([].slice),Y3A=Xe,rG=da,J3A=ht,nG=ua,z3A=Js,iG=Y3A([].push),W3A=function(e){if(J3A(e))return e;if(rG(e)){for(var t=e.length,A=[],r=0;r<t;r++){var n=e[r];typeof n=="string"?iG(A,n):(typeof n=="number"||nG(n)==="Number"||nG(n)==="String")&&iG(A,z3A(n))}var i=A.length,o=!0;return function(g,a){if(o)return o=!1,a;if(rG(this))return a;for(var s=0;s<i;s++)if(A[s]===g)return a}}},q3A=JA,aq=Or,sq=hl,j3A=er,Th=Xe,Cq=Re,oG=ht,gG=Sh,Iq=xh,V3A=W3A,Z3A=fl,X3A=String,Fg=aq("JSON","stringify"),vB=Th(/./.exec),aG=Th("".charAt),AzA=Th("".charCodeAt),ezA=Th("".replace),tzA=Th(1 .toString),rzA=/[\uD800-\uDFFF]/g,sG=/^[\uD800-\uDBFF]$/,CG=/^[\uDC00-\uDFFF]$/,IG=!Z3A||Cq(function(){var e=aq("Symbol")("stringify detection");return Fg([e])!=="[null]"||Fg({a:e})!=="{}"||Fg(Object(e))!=="{}"}),lG=Cq(function(){return Fg("\uDF06\uD834")!=='"\\udf06\\ud834"'||Fg("\uDEAD")!=='"\\udead"'}),nzA=function(e,t){var A=Iq(arguments),r=V3A(t);if(!(!oG(r)&&(e===void 0||gG(e))))return A[1]=function(n,i){if(oG(r)&&(i=j3A(r,this,X3A(n),i)),!gG(i))return i},sq(Fg,null,A)},izA=function(e,t,A){var r=aG(A,t-1),n=aG(A,t+1);return vB(sG,e)&&!vB(CG,n)||vB(CG,e)&&!vB(sG,r)?"\\u"+tzA(AzA(e,0),16):e};Fg&&q3A({target:"JSON",stat:!0,arity:3,forced:IG||lG},{stringify:function(t,A,r){var n=Iq(arguments),i=sq(IG?nzA:Fg,null,n);return lG&&typeof i=="string"?ezA(i,rzA,izA):i}});var ozA=JA,gzA=fl,azA=Re,lq=Lh,szA=rn,CzA=!gzA||azA(function(){lq.f(1)});ozA({target:"Object",stat:!0,forced:CzA},{getOwnPropertySymbols:function(t){var A=lq.f;return A?A(szA(t)):[]}});var IzA=dt;IzA("asyncIterator");var lzA=dt;lzA("hasInstance");var uzA=dt;uzA("isConcatSpreadable");var czA=dt;czA("iterator");var hzA=dt;hzA("match");var dzA=dt;dzA("matchAll");var BzA=dt;BzA("replace");var fzA=dt;fzA("search");var EzA=dt;EzA("species");var QzA=dt;QzA("split");var vzA=dt,pzA=KW;vzA("toPrimitive");pzA();var wzA=Or,DzA=dt,yzA=Ws;DzA("toStringTag");yzA(wzA("Symbol"),"Symbol");var mzA=dt;mzA("unscopables");var bzA=it,MzA=Ws;MzA(bzA.JSON,"JSON",!0);var kzA=ot,SzA=kzA.Symbol,yl={},kb=Ar,NzA=$t,uq=Function.prototype,PzA=kb&&Object.getOwnPropertyDescriptor,Xk=NzA(uq,"name"),FzA=Xk&&function(){}.name==="something",RzA=Xk&&(!kb||kb&&PzA(uq,"name").configurable),LzA={EXISTS:Xk,PROPER:FzA,CONFIGURABLE:RzA},$zA=Re,cq=!$zA(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),OzA=$t,GzA=ht,xzA=rn,TzA=Pv,HzA=cq,uG=TzA("IE_PROTO"),Sb=Object,UzA=Sb.prototype,Gv=HzA?Sb.getPrototypeOf:function(e){var t=xzA(e);if(OzA(t,uG))return t[uG];var A=t.constructor;return GzA(A)&&t instanceof A?A.prototype:t instanceof Sb?UzA:null},KzA=Re,_zA=ht,YzA=hr,JzA=zs,cG=Gv,zzA=pl,WzA=at,Nb=WzA("iterator"),hq=!1,fo,xD,TD;[].keys&&(TD=[].keys(),"next"in TD?(xD=cG(cG(TD)),xD!==Object.prototype&&(fo=xD)):hq=!0);var qzA=!YzA(fo)||KzA(function(){var e={};return fo[Nb].call(e)!==e});qzA?fo={}:fo=JzA(fo);_zA(fo[Nb])||zzA(fo,Nb,function(){return this});var dq={IteratorPrototype:fo,BUGGY_SAFARI_ITERATORS:hq},jzA=dq.IteratorPrototype,VzA=zs,ZzA=Ys,XzA=Ws,A5A=yl,e5A=function(){return this},t5A=function(e,t,A,r){var n=t+" Iterator";return e.prototype=VzA(jzA,{next:ZzA(+!r,A)}),XzA(e,n,!1,!0),A5A[n]=e5A,e},r5A=Xe,n5A=tn,i5A=function(e,t,A){try{return r5A(n5A(Object.getOwnPropertyDescriptor(e,t)[A]))}catch{}},o5A=ht,g5A=String,a5A=TypeError,s5A=function(e){if(typeof e=="object"||o5A(e))return e;throw new a5A("Can't set "+g5A(e)+" as a prototype")},C5A=i5A,I5A=pn,l5A=s5A,Bq=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},A;try{A=C5A(Object.prototype,"__proto__","set"),A(t,[]),e=t instanceof Array}catch{}return function(n,i){return I5A(n),l5A(i),e?A(n,i):n.__proto__=i,n}}():void 0),u5A=JA,c5A=er,h5A=LzA,d5A=t5A,B5A=Gv,f5A=Ws,hG=pl,E5A=at,dG=yl,Q5A=dq,v5A=h5A.PROPER,pB=Q5A.BUGGY_SAFARI_ITERATORS,HD=E5A("iterator"),BG="keys",wB="values",fG="entries",p5A=function(){return this},AS=function(e,t,A,r,n,i,o){d5A(A,t,r);var g=function(B){if(B===n&&l)return l;if(!pB&&B&&B in C)return C[B];switch(B){case BG:return function(){return new A(this,B)};case wB:return function(){return new A(this,B)};case fG:return function(){return new A(this,B)}}return function(){return new A(this)}},a=t+" Iterator",s=!1,C=e.prototype,I=C[HD]||C["@@iterator"]||n&&C[n],l=!pB&&I||g(n),u=t==="Array"&&C.entries||I,c,h,d;if(u&&(c=B5A(u.call(new e)),c!==Object.prototype&&c.next&&(f5A(c,a,!0,!0),dG[a]=p5A)),v5A&&n===wB&&I&&I.name!==wB&&(s=!0,l=function(){return c5A(I,this)}),n)if(h={values:g(wB),keys:i?l:g(BG),entries:g(fG)},o)for(d in h)(pB||s||!(d in C))&&hG(C,d,h[d]);else u5A({target:t,proto:!0,forced:pB||s},h);return o&&C[HD]!==l&&hG(C,HD,l,{name:n}),dG[t]=l,h},eS=function(e,t){return{value:e,done:t}},w5A=to,EG=yl,fq=wl;nn.f;var D5A=AS,DB=eS,Eq="Array Iterator",y5A=fq.set,m5A=fq.getterFor(Eq);D5A(Array,"Array",function(e,t){y5A(this,{type:Eq,target:w5A(e),index:0,kind:t})},function(){var e=m5A(this),t=e.target,A=e.index++;if(!t||A>=t.length)return e.target=void 0,DB(void 0,!0);switch(e.kind){case"keys":return DB(A,!1);case"values":return DB(t[A],!1)}return DB([A,t[A]],!1)},"values");EG.Arguments=EG.Array;var b5A={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},M5A=b5A,k5A=it,S5A=Uo,N5A=Ho,QG=yl,P5A=at,vG=P5A("toStringTag");for(var UD in M5A){var pG=k5A[UD],KD=pG&&pG.prototype;KD&&S5A(KD)!==vG&&N5A(KD,vG,UD),QG[UD]=QG.Array}var F5A=SzA,Qq=F5A,R5A=at,L5A=nn.f,wG=R5A("metadata"),DG=Function.prototype;DG[wG]===void 0&&L5A(DG,wG,{value:null});var $5A=dt;$5A("asyncDispose");var O5A=dt;O5A("dispose");var G5A=dt;G5A("metadata");var x5A=Qq,T5A=x5A,H5A=Or,U5A=Xe,tS=H5A("Symbol"),K5A=tS.keyFor,_5A=U5A(tS.prototype.valueOf),vq=tS.isRegisteredSymbol||function(t){try{return K5A(_5A(t))!==void 0}catch{return!1}},Y5A=JA,J5A=vq;Y5A({target:"Symbol",stat:!0},{isRegisteredSymbol:J5A});var z5A=Ql,pq=Or,W5A=Xe,q5A=Sh,j5A=at,HE=pq("Symbol"),yG=HE.isWellKnownSymbol,wq=pq("Object","getOwnPropertyNames"),V5A=W5A(HE.prototype.valueOf),mG=z5A("wks");for(var _D=0,bG=wq(HE),Z5A=bG.length;_D<Z5A;_D++)try{var MG=bG[_D];q5A(HE[MG])&&j5A(MG)}catch{}var Dq=function(t){if(yG&&yG(t))return!0;try{for(var A=V5A(t),r=0,n=wq(mG),i=n.length;r<i;r++)if(mG[n[r]]==A)return!0}catch{}return!1},X5A=JA,AWA=Dq;X5A({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:AWA});var eWA=dt;eWA("matcher");var tWA=dt;tWA("observable");var rWA=JA,nWA=vq;rWA({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:nWA});var iWA=JA,oWA=Dq;iWA({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:oWA});var gWA=dt;gWA("metadataKey");var aWA=dt;aWA("patternMatch");var sWA=dt;sWA("replaceAll");var CWA=T5A,IWA=CWA,rS=IWA,LC=ZA(rS),nS=Xe,lWA=yv,uWA=Js,cWA=Tk,hWA=nS("".charAt),kG=nS("".charCodeAt),dWA=nS("".slice),SG=function(e){return function(t,A){var r=uWA(cWA(t)),n=lWA(A),i=r.length,o,g;return n<0||n>=i?e?"":void 0:(o=kG(r,n),o<55296||o>56319||n+1===i||(g=kG(r,n+1))<56320||g>57343?e?hWA(r,n):o:e?dWA(r,n,n+2):(o-55296<<10)+(g-56320)+65536)}},BWA={codeAt:SG(!1),charAt:SG(!0)},fWA=BWA.charAt,EWA=Js,yq=wl,QWA=AS,NG=eS,mq="String Iterator",vWA=yq.set,pWA=yq.getterFor(mq);QWA(String,"String",function(e){vWA(this,{type:mq,string:EWA(e),index:0})},function(){var t=pWA(this),A=t.string,r=t.index,n;return r>=A.length?NG(void 0,!0):(n=fWA(A,r),t.index+=n.length,NG(n,!1))});var wWA=$h,DWA=wWA.f("iterator"),yWA=DWA,bq=yWA,mWA=bq,bWA=mWA,MWA=bWA,kWA=MWA,Mq=kWA,SWA=ZA(Mq);function RI(e){"@babel/helpers - typeof";return RI=typeof LC=="function"&&typeof SWA=="symbol"?function(t){return typeof t}:function(t){return t&&typeof LC=="function"&&t.constructor===LC&&t!==LC.prototype?"symbol":typeof t},RI(e)}var NWA=$h,PWA=NWA.f("toPrimitive"),FWA=PWA,RWA=FWA,LWA=RWA,$WA=LWA,OWA=$WA,GWA=OWA,xWA=GWA,TWA=ZA(xWA);function HWA(e,t){if(RI(e)!=="object"||e===null)return e;var A=e[TWA];if(A!==void 0){var r=A.call(e,t||"default");if(RI(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kq(e){var t=HWA(e,"string");return RI(t)==="symbol"?t:String(t)}function PG(e,t){for(var A=0;A<t.length;A++){var r=t[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Dv(e,kq(r.key),r)}}function xv(e,t,A){return t&&PG(e.prototype,t),A&&PG(e,A),Dv(e,"prototype",{writable:!1}),e}function Rg(e,t,A){return t=kq(t),t in e?Dv(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}var Sq=Xe,UWA=tn,KWA=hr,_WA=$t,FG=xh,YWA=kh,Nq=Function,JWA=Sq([].concat),zWA=Sq([].join),YD={},WWA=function(e,t,A){if(!_WA(YD,t)){for(var r=[],n=0;n<t;n++)r[n]="a["+n+"]";YD[t]=Nq("C,a","return new C("+zWA(r,",")+")")}return YD[t](e,A)},Pq=YWA?Nq.bind:function(t){var A=UWA(this),r=A.prototype,n=FG(arguments,1),i=function(){var g=JWA(n,FG(arguments));return this instanceof i?WWA(A,g.length,g):A.apply(t,g)};return KWA(r)&&(i.prototype=r),i},qWA=JA,RG=Pq;qWA({target:"Function",proto:!0,forced:Function.bind!==RG},{bind:RG});var jWA=it,VWA=ot,Qr=function(e,t){var A=VWA[e+"Prototype"],r=A&&A[t];if(r)return r;var n=jWA[e],i=n&&n.prototype;return i&&i[t]},ZWA=Qr,XWA=ZWA("Function","bind"),AqA=Lt,eqA=XWA,JD=Function.prototype,tqA=function(e){var t=e.bind;return e===JD||AqA(JD,e)&&t===JD.bind?eqA:t},rqA=tqA,Fq=rqA,nqA=Fq,Rq=ZA(nqA),iqA=tn,oqA=rn,gqA=vv,aqA=wn,sqA=TypeError,LG=function(e){return function(t,A,r,n){iqA(A);var i=oqA(t),o=gqA(i),g=aqA(i),a=e?g-1:0,s=e?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=s;break}if(a+=s,e?a<0:g<=a)throw new sqA("Reduce of empty array with no initial value")}for(;e?a>=0:g>a;a+=s)a in o&&(n=A(n,o[a],a,i));return n}},CqA={left:LG(!1),right:LG(!0)},IqA=Re,Tv=function(e,t){var A=[][e];return!!A&&IqA(function(){A.call(null,t||function(){return 1},1)})},lqA=it,uqA=ua,Hh=uqA(lqA.process)==="process",cqA=JA,hqA=CqA.left,dqA=Tv,$G=Bl,BqA=Hh,fqA=!BqA&&$G>79&&$G<83,EqA=fqA||!dqA("reduce");cqA({target:"Array",proto:!0,forced:EqA},{reduce:function(t){var A=arguments.length;return hqA(this,t,A,A>1?arguments[1]:void 0)}});var QqA=Qr,vqA=QqA("Array","reduce"),pqA=Lt,wqA=vqA,zD=Array.prototype,DqA=function(e){var t=e.reduce;return e===zD||pqA(zD,e)&&t===zD.reduce?wqA:t},yqA=DqA,mqA=yqA,bqA=mqA,MqA=ZA(bqA),kqA=JA,SqA=Dl.filter,NqA=Ph,PqA=NqA("filter");kqA({target:"Array",proto:!0,forced:!PqA},{filter:function(t){return SqA(this,t,arguments.length>1?arguments[1]:void 0)}});var FqA=Qr,RqA=FqA("Array","filter"),LqA=Lt,$qA=RqA,WD=Array.prototype,OqA=function(e){var t=e.filter;return e===WD||LqA(WD,e)&&t===WD.filter?$qA:t},GqA=OqA,xqA=GqA,TqA=xqA,$C=ZA(TqA),HqA=JA,UqA=Dl.map,KqA=Ph,_qA=KqA("map");HqA({target:"Array",proto:!0,forced:!_qA},{map:function(t){return UqA(this,t,arguments.length>1?arguments[1]:void 0)}});var YqA=Qr,JqA=YqA("Array","map"),zqA=Lt,WqA=JqA,qD=Array.prototype,qqA=function(e){var t=e.map;return e===qD||zqA(qD,e)&&t===qD.map?WqA:t},jqA=qqA,VqA=jqA,ZqA=VqA,ei=ZA(ZqA),XqA=da,AjA=wn,ejA=mv,tjA=ha,Lq=function(e,t,A,r,n,i,o,g){for(var a=n,s=0,C=o?tjA(o,g):!1,I,l;s<r;)s in A&&(I=C?C(A[s],s,t):A[s],i>0&&XqA(I)?(l=AjA(I),a=Lq(e,t,I,l,a,i-1)-1):(ejA(a+1),e[a]=I),a++),s++;return a},rjA=Lq,njA=JA,ijA=rjA,ojA=tn,gjA=rn,ajA=wn,sjA=Mv;njA({target:"Array",proto:!0},{flatMap:function(t){var A=gjA(this),r=ajA(A),n;return ojA(t),n=sjA(A,0),n.length=ijA(n,A,A,r,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var CjA=Qr;CjA("Array","flatMap");var IjA=er,OG=pn,ljA=Hk,$q=function(e,t,A){var r,n;OG(e);try{if(r=ljA(e,"return"),!r){if(t==="throw")throw A;return A}r=IjA(r,e)}catch(i){n=!0,r=i}if(t==="throw")throw A;if(n)throw r;return OG(r),A},ujA=pn,cjA=$q,hjA=function(e,t,A,r){try{return r?t(ujA(A)[0],A[1]):t(A)}catch(n){cjA(e,"throw",n)}},djA=at,BjA=yl,fjA=djA("iterator"),EjA=Array.prototype,Oq=function(e){return e!==void 0&&(BjA.Array===e||EjA[fjA]===e)},QjA=Uo,GG=Hk,vjA=dl,pjA=yl,wjA=at,DjA=wjA("iterator"),Hv=function(e){if(!vjA(e))return GG(e,DjA)||GG(e,"@@iterator")||pjA[QjA(e)]},yjA=er,mjA=tn,bjA=pn,MjA=El,kjA=Hv,SjA=TypeError,iS=function(e,t){var A=arguments.length<2?kjA(e):t;if(mjA(A))return bjA(yjA(A,e));throw new SjA(MjA(e)+" is not iterable")},NjA=ha,PjA=er,FjA=rn,RjA=hjA,LjA=Oq,$jA=bv,OjA=wn,xG=vl,GjA=iS,xjA=Hv,TG=Array,TjA=function(t){var A=FjA(t),r=$jA(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=i!==void 0;o&&(i=NjA(i,n>2?arguments[2]:void 0));var g=xjA(A),a=0,s,C,I,l,u,c;if(g&&!(this===TG&&LjA(g)))for(l=GjA(A,g),u=l.next,C=r?new this:[];!(I=PjA(u,l)).done;a++)c=o?RjA(l,i,[I.value,a],!0):I.value,xG(C,a,c);else for(s=OjA(A),C=r?new this(s):TG(s);s>a;a++)c=o?i(A[a],a):A[a],xG(C,a,c);return C.length=a,C},HjA=at,Gq=HjA("iterator"),xq=!1;try{var UjA=0,HG={next:function(){return{done:!!UjA++}},return:function(){xq=!0}};HG[Gq]=function(){return this},Array.from(HG,function(){throw 2})}catch{}var Tq=function(e,t){try{if(!t&&!xq)return!1}catch{return!1}var A=!1;try{var r={};r[Gq]=function(){return{next:function(){return{done:A=!0}}}},e(r)}catch{}return A},KjA=JA,_jA=TjA,YjA=Tq,JjA=!YjA(function(e){Array.from(e)});KjA({target:"Array",stat:!0,forced:JjA},{from:_jA});var zjA=ot,WjA=zjA.Array.from,qjA=WjA,Hq=qjA,jjA=Hq,oS=ZA(jjA),VjA=Hv,ZjA=VjA,XjA=ZjA,AVA=XjA,eVA=AVA,tVA=eVA,rVA=tVA,nVA=rVA,Uq=nVA,Kq=ZA(Uq),iVA=Uq,gS=ZA(iVA),oVA=JA,gVA=da;oVA({target:"Array",stat:!0},{isArray:gVA});var aVA=ot,sVA=aVA.Array.isArray,CVA=sVA,_q=CVA,IVA=_q,lVA=IVA,uVA=lVA,cVA=uVA,hVA=cVA,Yq=ZA(hVA);function dVA(e){if(Yq(e))return e}var BVA=Ar,fVA=da,EVA=TypeError,QVA=Object.getOwnPropertyDescriptor,vVA=BVA&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Jq=vVA?function(e,t){if(fVA(e)&&!QVA(e,"length").writable)throw new EVA("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},pVA=JA,wVA=rn,DVA=wn,yVA=Jq,mVA=mv,bVA=Re,MVA=bVA(function(){return[].push.call({length:4294967296},1)!==4294967297}),kVA=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},SVA=MVA||!kVA();pVA({target:"Array",proto:!0,arity:1,forced:SVA},{push:function(t){var A=wVA(this),r=DVA(A),n=arguments.length;mVA(r+n);for(var i=0;i<n;i++)A[r]=arguments[i],r++;return yVA(A,r),r}});var NVA=Qr,PVA=NVA("Array","push"),FVA=Lt,RVA=PVA,jD=Array.prototype,LVA=function(e){var t=e.push;return e===jD||FVA(jD,e)&&t===jD.push?RVA:t},$VA=LVA,OVA=$VA,GVA=OVA,xVA=GVA,TVA=xVA,HVA=TVA,zq=HVA,UVA=ZA(zq);function KVA(e,t){var A=e==null?null:typeof LC<"u"&&Kq(e)||e["@@iterator"];if(A!=null){var r,n,i,o,g=[],a=!0,s=!1;try{if(i=(A=A.call(e)).next,t===0){if(Object(A)!==A)return;a=!1}else for(;!(a=(r=i.call(A)).done)&&(UVA(g).call(g,r.value),g.length!==t);a=!0);}catch(C){s=!0,n=C}finally{try{if(!a&&A.return!=null&&(o=A.return(),Object(o)!==o))return}finally{if(s)throw n}}return g}}var _VA=JA,UG=da,YVA=bv,JVA=hr,KG=Sv,zVA=wn,WVA=to,qVA=vl,jVA=at,VVA=Ph,ZVA=xh,XVA=VVA("slice"),A6A=jVA("species"),VD=Array,e6A=Math.max;_VA({target:"Array",proto:!0,forced:!XVA},{slice:function(t,A){var r=WVA(this),n=zVA(r),i=KG(t,n),o=KG(A===void 0?n:A,n),g,a,s;if(UG(r)&&(g=r.constructor,YVA(g)&&(g===VD||UG(g.prototype))?g=void 0:JVA(g)&&(g=g[A6A],g===null&&(g=void 0)),g===VD||g===void 0))return ZVA(r,i,o);for(a=new(g===void 0?VD:g)(e6A(o-i,0)),s=0;i<o;i++,s++)i in r&&qVA(a,s,r[i]);return a.length=s,a}});var t6A=Qr,r6A=t6A("Array","slice"),n6A=Lt,i6A=r6A,ZD=Array.prototype,o6A=function(e){var t=e.slice;return e===ZD||n6A(ZD,e)&&t===ZD.slice?i6A:t},g6A=o6A,Wq=g6A,a6A=Wq,s6A=a6A,C6A=s6A,I6A=C6A,qq=I6A,l6A=ZA(qq),u6A=Hq,c6A=u6A,h6A=c6A,d6A=h6A,B6A=d6A,jq=ZA(B6A);function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function Vq(e,t){var A;if(e){if(typeof e=="string")return Pb(e,t);var r=l6A(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return jq(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pb(e,t)}}function f6A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1023
|
+
*/function Ev(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ED=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ZA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sW={exports:{}},dB=function(e){return e&&e.Math===Math&&e},it=dB(typeof globalThis=="object"&&globalThis)||dB(typeof window=="object"&&window)||dB(typeof self=="object"&&self)||dB(typeof ED=="object"&&ED)||function(){return this}()||ED||Function("return this")(),Re=function(e){try{return!!e()}catch{return!0}},wUA=Re,kh=!wUA(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),DUA=kh,CW=Function.prototype,hO=CW.apply,dO=CW.call,hl=typeof Reflect=="object"&&Reflect.apply||(DUA?dO.bind(hO):function(){return dO.apply(hO,arguments)}),IW=kh,lW=Function.prototype,fb=lW.call,yUA=IW&&lW.bind.bind(fb,fb),Xe=IW?yUA:function(e){return function(){return fb.apply(e,arguments)}},uW=Xe,mUA=uW({}.toString),bUA=uW("".slice),ua=function(e){return bUA(mUA(e),8,-1)},MUA=ua,kUA=Xe,cW=function(e){if(MUA(e)==="Function")return kUA(e)},Eb=typeof document=="object"&&document.all,SUA=typeof Eb>"u"&&Eb!==void 0,hW={all:Eb,IS_HTMLDDA:SUA},dW=hW,NUA=dW.all,ht=dW.IS_HTMLDDA?function(e){return typeof e=="function"||e===NUA}:function(e){return typeof e=="function"},_s={},PUA=Re,Ar=!PUA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),FUA=kh,BB=Function.prototype.call,er=FUA?BB.bind(BB):function(){return BB.apply(BB,arguments)},Qv={},BW={}.propertyIsEnumerable,fW=Object.getOwnPropertyDescriptor,RUA=fW&&!BW.call({1:2},1);Qv.f=RUA?function(t){var A=fW(this,t);return!!A&&A.enumerable}:BW;var Ys=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},LUA=Xe,$UA=Re,OUA=ua,QD=Object,GUA=LUA("".split),vv=$UA(function(){return!QD("z").propertyIsEnumerable(0)})?function(e){return OUA(e)==="String"?GUA(e,""):QD(e)}:QD,dl=function(e){return e==null},xUA=dl,TUA=TypeError,Tk=function(e){if(xUA(e))throw new TUA("Can't call method on "+e);return e},HUA=vv,UUA=Tk,to=function(e){return HUA(UUA(e))},BO=ht,EW=hW,KUA=EW.all,hr=EW.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:BO(e)||e===KUA}:function(e){return typeof e=="object"?e!==null:BO(e)},ot={},vD=ot,pD=it,_UA=ht,fO=function(e){return _UA(e)?e:void 0},Or=function(e,t){return arguments.length<2?fO(vD[e])||fO(pD[e]):vD[e]&&vD[e][t]||pD[e]&&pD[e][t]},YUA=Xe,Lt=YUA({}.isPrototypeOf),ca=typeof navigator<"u"&&String(navigator.userAgent)||"",QW=it,wD=ca,EO=QW.process,QO=QW.Deno,vO=EO&&EO.versions||QO&&QO.version,pO=vO&&vO.v8,Ai,GE;pO&&(Ai=pO.split("."),GE=Ai[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1]));!GE&&wD&&(Ai=wD.match(/Edge\/(\d+)/),(!Ai||Ai[1]>=74)&&(Ai=wD.match(/Chrome\/(\d+)/),Ai&&(GE=+Ai[1])));var Bl=GE,wO=Bl,JUA=Re,zUA=it,WUA=zUA.String,fl=!!Object.getOwnPropertySymbols&&!JUA(function(){var e=Symbol("symbol detection");return!WUA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wO&&wO<41}),qUA=fl,vW=qUA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jUA=Or,VUA=ht,ZUA=Lt,XUA=vW,AKA=Object,Sh=XUA?function(e){return typeof e=="symbol"}:function(e){var t=jUA("Symbol");return VUA(t)&&ZUA(t.prototype,AKA(e))},eKA=String,El=function(e){try{return eKA(e)}catch{return"Object"}},tKA=ht,rKA=El,nKA=TypeError,tn=function(e){if(tKA(e))return e;throw new nKA(rKA(e)+" is not a function")},iKA=tn,oKA=dl,Hk=function(e,t){var A=e[t];return oKA(A)?void 0:iKA(A)},DD=er,yD=ht,mD=hr,gKA=TypeError,aKA=function(e,t){var A,r;if(t==="string"&&yD(A=e.toString)&&!mD(r=DD(A,e))||yD(A=e.valueOf)&&!mD(r=DD(A,e))||t!=="string"&&yD(A=e.toString)&&!mD(r=DD(A,e)))return r;throw new gKA("Can't convert object to primitive value")},pW={exports:{}},sKA=!0,DO=it,CKA=Object.defineProperty,IKA=function(e,t){try{CKA(DO,e,{value:t,configurable:!0,writable:!0})}catch{DO[e]=t}return t},lKA=it,uKA=IKA,yO="__core-js_shared__",cKA=lKA[yO]||uKA(yO,{}),Uk=cKA,mO=Uk;(pW.exports=function(e,t){return mO[e]||(mO[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ql=pW.exports,hKA=Tk,dKA=Object,rn=function(e){return dKA(hKA(e))},BKA=Xe,fKA=rn,EKA=BKA({}.hasOwnProperty),$t=Object.hasOwn||function(t,A){return EKA(fKA(t),A)},QKA=Xe,vKA=0,pKA=Math.random(),wKA=QKA(1 .toString),pv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wKA(++vKA+pKA,36)},DKA=it,yKA=Ql,bO=$t,mKA=pv,bKA=fl,MKA=vW,RC=DKA.Symbol,bD=yKA("wks"),kKA=MKA?RC.for||RC:RC&&RC.withoutSetter||mKA,at=function(e){return bO(bD,e)||(bD[e]=bKA&&bO(RC,e)?RC[e]:kKA("Symbol."+e)),bD[e]},SKA=er,MO=hr,kO=Sh,NKA=Hk,PKA=aKA,FKA=at,RKA=TypeError,LKA=FKA("toPrimitive"),$KA=function(e,t){if(!MO(e)||kO(e))return e;var A=NKA(e,LKA),r;if(A){if(t===void 0&&(t="default"),r=SKA(A,e,t),!MO(r)||kO(r))return r;throw new RKA("Can't convert object to primitive value")}return t===void 0&&(t="number"),PKA(e,t)},OKA=$KA,GKA=Sh,wv=function(e){var t=OKA(e,"string");return GKA(t)?t:t+""},xKA=it,SO=hr,Qb=xKA.document,TKA=SO(Qb)&&SO(Qb.createElement),Kk=function(e){return TKA?Qb.createElement(e):{}},HKA=Ar,UKA=Re,KKA=Kk,wW=!HKA&&!UKA(function(){return Object.defineProperty(KKA("div"),"a",{get:function(){return 7}}).a!==7}),_KA=Ar,YKA=er,JKA=Qv,zKA=Ys,WKA=to,qKA=wv,jKA=$t,VKA=wW,NO=Object.getOwnPropertyDescriptor;_s.f=_KA?NO:function(t,A){if(t=WKA(t),A=qKA(A),VKA)try{return NO(t,A)}catch{}if(jKA(t,A))return zKA(!YKA(JKA.f,t,A),t[A])};var ZKA=Re,XKA=ht,A_A=/#|\.prototype\./,Nh=function(e,t){var A=t_A[e_A(e)];return A===n_A?!0:A===r_A?!1:XKA(t)?ZKA(t):!!t},e_A=Nh.normalize=function(e){return String(e).replace(A_A,".").toLowerCase()},t_A=Nh.data={},r_A=Nh.NATIVE="N",n_A=Nh.POLYFILL="P",DW=Nh,PO=cW,i_A=tn,o_A=kh,g_A=PO(PO.bind),ha=function(e,t){return i_A(e),t===void 0?e:o_A?g_A(e,t):function(){return e.apply(t,arguments)}},nn={},a_A=Ar,s_A=Re,yW=a_A&&s_A(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),C_A=hr,I_A=String,l_A=TypeError,pn=function(e){if(C_A(e))return e;throw new l_A(I_A(e)+" is not an object")},u_A=Ar,c_A=wW,h_A=yW,fB=pn,FO=wv,d_A=TypeError,MD=Object.defineProperty,B_A=Object.getOwnPropertyDescriptor,kD="enumerable",SD="configurable",ND="writable";nn.f=u_A?h_A?function(t,A,r){if(fB(t),A=FO(A),fB(r),typeof t=="function"&&A==="prototype"&&"value"in r&&ND in r&&!r[ND]){var n=B_A(t,A);n&&n[ND]&&(t[A]=r.value,r={configurable:SD in r?r[SD]:n[SD],enumerable:kD in r?r[kD]:n[kD],writable:!1})}return MD(t,A,r)}:MD:function(t,A,r){if(fB(t),A=FO(A),fB(r),c_A)try{return MD(t,A,r)}catch{}if("get"in r||"set"in r)throw new d_A("Accessors not supported");return"value"in r&&(t[A]=r.value),t};var f_A=Ar,E_A=nn,Q_A=Ys,Ho=f_A?function(e,t,A){return E_A.f(e,t,Q_A(1,A))}:function(e,t,A){return e[t]=A,e},EB=it,v_A=hl,p_A=cW,w_A=ht,D_A=_s.f,y_A=DW,uC=ot,m_A=ha,cC=Ho,RO=$t,b_A=function(e){var t=function(A,r,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(A);case 2:return new e(A,r)}return new e(A,r,n)}return v_A(e,this,arguments)};return t.prototype=e.prototype,t},JA=function(e,t){var A=e.target,r=e.global,n=e.stat,i=e.proto,o=r?EB:n?EB[A]:(EB[A]||{}).prototype,g=r?uC:uC[A]||cC(uC,A,{})[A],a=g.prototype,s,C,I,l,u,c,h,d,B;for(l in t)s=y_A(r?l:A+(n?".":"#")+l,e.forced),C=!s&&o&&RO(o,l),c=g[l],C&&(e.dontCallGetSet?(B=D_A(o,l),h=B&&B.value):h=o[l]),u=C&&h?h:t[l],!(C&&typeof c==typeof u)&&(e.bind&&C?d=m_A(u,EB):e.wrap&&C?d=b_A(u):i&&w_A(u)?d=p_A(u):d=u,(e.sham||u&&u.sham||c&&c.sham)&&cC(d,"sham",!0),cC(g,l,d),i&&(I=A+"Prototype",RO(uC,I)||cC(uC,I,{}),cC(uC[I],l,u),e.real&&a&&(s||!a[l])&&cC(a,l,u)))},M_A=JA,k_A=Ar,LO=nn.f;M_A({target:"Object",stat:!0,forced:Object.defineProperty!==LO,sham:!k_A},{defineProperty:LO});var S_A=ot,mW=S_A.Object,N_A=sW.exports=function(t,A,r){return mW.defineProperty(t,A,r)};mW.defineProperty.sham&&(N_A.sham=!0);var P_A=sW.exports,F_A=P_A,bW=F_A,R_A=bW,L_A=R_A,$_A=L_A,O_A=$_A,MW=O_A,Dv=ZA(MW),G_A=ua,da=Array.isArray||function(t){return G_A(t)==="Array"},x_A=Math.ceil,T_A=Math.floor,H_A=Math.trunc||function(t){var A=+t;return(A>0?T_A:x_A)(A)},U_A=H_A,yv=function(e){var t=+e;return t!==t||t===0?0:U_A(t)},K_A=yv,__A=Math.min,Y_A=function(e){return e>0?__A(K_A(e),9007199254740991):0},J_A=Y_A,wn=function(e){return J_A(e.length)},z_A=TypeError,W_A=9007199254740991,mv=function(e){if(e>W_A)throw z_A("Maximum allowed index exceeded");return e},q_A=wv,j_A=nn,V_A=Ys,vl=function(e,t,A){var r=q_A(t);r in e?j_A.f(e,r,V_A(0,A)):e[r]=A},Z_A=at,X_A=Z_A("toStringTag"),kW={};kW[X_A]="z";var _k=String(kW)==="[object z]",AYA=_k,eYA=ht,yf=ua,tYA=at,rYA=tYA("toStringTag"),nYA=Object,iYA=yf(function(){return arguments}())==="Arguments",oYA=function(e,t){try{return e[t]}catch{}},Uo=AYA?yf:function(e){var t,A,r;return e===void 0?"Undefined":e===null?"Null":typeof(A=oYA(t=nYA(e),rYA))=="string"?A:iYA?yf(t):(r=yf(t))==="Object"&&eYA(t.callee)?"Arguments":r},gYA=Xe,aYA=ht,vb=Uk,sYA=gYA(Function.toString);aYA(vb.inspectSource)||(vb.inspectSource=function(e){return sYA(e)});var SW=vb.inspectSource,CYA=Xe,IYA=Re,NW=ht,lYA=Uo,uYA=Or,cYA=SW,PW=function(){},hYA=[],FW=uYA("Reflect","construct"),Yk=/^\s*(?:class|function)\b/,dYA=CYA(Yk.exec),BYA=!Yk.test(PW),Vl=function(t){if(!NW(t))return!1;try{return FW(PW,hYA,t),!0}catch{return!1}},RW=function(t){if(!NW(t))return!1;switch(lYA(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return BYA||!!dYA(Yk,cYA(t))}catch{return!0}};RW.sham=!0;var bv=!FW||IYA(function(){var e;return Vl(Vl.call)||!Vl(Object)||!Vl(function(){e=!0})||e})?RW:Vl,$O=da,fYA=bv,EYA=hr,QYA=at,vYA=QYA("species"),OO=Array,pYA=function(e){var t;return $O(e)&&(t=e.constructor,fYA(t)&&(t===OO||$O(t.prototype))?t=void 0:EYA(t)&&(t=t[vYA],t===null&&(t=void 0))),t===void 0?OO:t},wYA=pYA,Mv=function(e,t){return new(wYA(e))(t===0?0:t)},DYA=Re,yYA=at,mYA=Bl,bYA=yYA("species"),Ph=function(e){return mYA>=51||!DYA(function(){var t=[],A=t.constructor={};return A[bYA]=function(){return{foo:1}},t[e](Boolean).foo!==1})},MYA=JA,kYA=Re,SYA=da,NYA=hr,PYA=rn,FYA=wn,GO=mv,xO=vl,RYA=Mv,LYA=Ph,$YA=at,OYA=Bl,LW=$YA("isConcatSpreadable"),GYA=OYA>=51||!kYA(function(){var e=[];return e[LW]=!1,e.concat()[0]!==e}),xYA=function(e){if(!NYA(e))return!1;var t=e[LW];return t!==void 0?!!t:SYA(e)},TYA=!GYA||!LYA("concat");MYA({target:"Array",proto:!0,arity:1,forced:TYA},{concat:function(t){var A=PYA(this),r=RYA(A,0),n=0,i,o,g,a,s;for(i=-1,g=arguments.length;i<g;i++)if(s=i===-1?A:arguments[i],xYA(s))for(a=FYA(s),GO(n+a),o=0;o<a;o++,n++)o in s&&xO(r,n,s[o]);else GO(n+1),xO(r,n++,s);return r.length=n,r}});var HYA=Uo,UYA=String,Js=function(e){if(HYA(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return UYA(e)},kv={},KYA=yv,_YA=Math.max,YYA=Math.min,Sv=function(e,t){var A=KYA(e);return A<0?_YA(A+t,0):YYA(A,t)},JYA=to,zYA=Sv,WYA=wn,TO=function(e){return function(t,A,r){var n=JYA(t),i=WYA(n),o=zYA(r,i),g;if(e&&A!==A){for(;i>o;)if(g=n[o++],g!==g)return!0}else for(;i>o;o++)if((e||o in n)&&n[o]===A)return e||o||0;return!e&&-1}},qYA={includes:TO(!0),indexOf:TO(!1)},Fh={},jYA=Xe,PD=$t,VYA=to,ZYA=qYA.indexOf,XYA=Fh,HO=jYA([].push),$W=function(e,t){var A=VYA(e),r=0,n=[],i;for(i in A)!PD(XYA,i)&&PD(A,i)&&HO(n,i);for(;t.length>r;)PD(A,i=t[r++])&&(~ZYA(n,i)||HO(n,i));return n},Jk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],AJA=$W,eJA=Jk,Nv=Object.keys||function(t){return AJA(t,eJA)},tJA=Ar,rJA=yW,nJA=nn,iJA=pn,oJA=to,gJA=Nv;kv.f=tJA&&!rJA?Object.defineProperties:function(t,A){iJA(t);for(var r=oJA(A),n=gJA(A),i=n.length,o=0,g;i>o;)nJA.f(t,g=n[o++],r[g]);return t};var aJA=Or,OW=aJA("document","documentElement"),sJA=Ql,CJA=pv,UO=sJA("keys"),Pv=function(e){return UO[e]||(UO[e]=CJA(e))},IJA=pn,lJA=kv,KO=Jk,uJA=Fh,cJA=OW,hJA=Kk,dJA=Pv,_O=">",YO="<",pb="prototype",wb="script",GW=dJA("IE_PROTO"),FD=function(){},xW=function(e){return YO+wb+_O+e+YO+"/"+wb+_O},JO=function(e){e.write(xW("")),e.close();var t=e.parentWindow.Object;return e=null,t},BJA=function(){var e=hJA("iframe"),t="java"+wb+":",A;return e.style.display="none",cJA.appendChild(e),e.src=String(t),A=e.contentWindow.document,A.open(),A.write(xW("document.F=Object")),A.close(),A.F},QB,mf=function(){try{QB=new ActiveXObject("htmlfile")}catch{}mf=typeof document<"u"?document.domain&&QB?JO(QB):BJA():JO(QB);for(var e=KO.length;e--;)delete mf[pb][KO[e]];return mf()};uJA[GW]=!0;var zs=Object.create||function(t,A){var r;return t!==null?(FD[pb]=IJA(t),r=new FD,FD[pb]=null,r[GW]=t):r=mf(),A===void 0?r:lJA.f(r,A)},Rh={},fJA=$W,EJA=Jk,QJA=EJA.concat("length","prototype");Rh.f=Object.getOwnPropertyNames||function(t){return fJA(t,QJA)};var zk={},zO=Sv,vJA=wn,pJA=vl,wJA=Array,DJA=Math.max,TW=function(e,t,A){for(var r=vJA(e),n=zO(t,r),i=zO(A===void 0?r:A,r),o=wJA(DJA(i-n,0)),g=0;n<i;n++,g++)pJA(o,g,e[n]);return o.length=g,o},yJA=ua,mJA=to,HW=Rh.f,bJA=TW,UW=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],MJA=function(e){try{return HW(e)}catch{return bJA(UW)}};zk.f=function(t){return UW&&yJA(t)==="Window"?MJA(t):HW(mJA(t))};var Lh={};Lh.f=Object.getOwnPropertySymbols;var kJA=Ho,pl=function(e,t,A,r){return r&&r.enumerable?e[t]=A:kJA(e,t,A),e},SJA=nn,Wk=function(e,t,A){return SJA.f(e,t,A)},$h={},NJA=at;$h.f=NJA;var WO=ot,PJA=$t,FJA=$h,RJA=nn.f,dt=function(e){var t=WO.Symbol||(WO.Symbol={});PJA(t,e)||RJA(t,e,{value:FJA.f(e)})},LJA=er,$JA=Or,OJA=at,GJA=pl,KW=function(){var e=$JA("Symbol"),t=e&&e.prototype,A=t&&t.valueOf,r=OJA("toPrimitive");t&&!t[r]&&GJA(t,r,function(n){return LJA(A,this)},{arity:1})},xJA=_k,TJA=Uo,HJA=xJA?{}.toString:function(){return"[object "+TJA(this)+"]"},UJA=_k,KJA=nn.f,_JA=Ho,YJA=$t,JJA=HJA,zJA=at,qO=zJA("toStringTag"),Ws=function(e,t,A,r){if(e){var n=A?e:e.prototype;YJA(n,qO)||KJA(n,qO,{configurable:!0,value:t}),r&&!UJA&&_JA(n,"toString",JJA)}},WJA=it,qJA=ht,jO=WJA.WeakMap,jJA=qJA(jO)&&/native code/.test(String(jO)),VJA=jJA,_W=it,ZJA=hr,XJA=Ho,RD=$t,LD=Uk,A3A=Pv,e3A=Fh,VO="Object already initialized",Db=_W.TypeError,t3A=_W.WeakMap,xE,fc,TE,r3A=function(e){return TE(e)?fc(e):xE(e,{})},n3A=function(e){return function(t){var A;if(!ZJA(t)||(A=fc(t)).type!==e)throw new Db("Incompatible receiver, "+e+" required");return A}};if(VJA||LD.state){var yi=LD.state||(LD.state=new t3A);yi.get=yi.get,yi.has=yi.has,yi.set=yi.set,xE=function(e,t){if(yi.has(e))throw new Db(VO);return t.facade=e,yi.set(e,t),t},fc=function(e){return yi.get(e)||{}},TE=function(e){return yi.has(e)}}else{var hC=A3A("state");e3A[hC]=!0,xE=function(e,t){if(RD(e,hC))throw new Db(VO);return t.facade=e,XJA(e,hC,t),t},fc=function(e){return RD(e,hC)?e[hC]:{}},TE=function(e){return RD(e,hC)}}var wl={set:xE,get:fc,has:TE,enforce:r3A,getterFor:n3A},i3A=ha,o3A=Xe,g3A=vv,a3A=rn,s3A=wn,C3A=Mv,ZO=o3A([].push),qo=function(e){var t=e===1,A=e===2,r=e===3,n=e===4,i=e===6,o=e===7,g=e===5||i;return function(a,s,C,I){for(var l=a3A(a),u=g3A(l),c=i3A(s,C),h=s3A(u),d=0,B=I||C3A,f=t?B(a,h):A||o?B(a,0):void 0,E,v;h>d;d++)if((g||d in u)&&(E=u[d],v=c(E,d,l),e))if(t)f[d]=v;else if(v)switch(e){case 3:return!0;case 5:return E;case 6:return d;case 2:ZO(f,E)}else switch(e){case 4:return!1;case 7:ZO(f,E)}return i?-1:r||n?n:f}},Dl={forEach:qo(0),map:qo(1),filter:qo(2),some:qo(3),every:qo(4),find:qo(5),findIndex:qo(6),filterReject:qo(7)},Fv=JA,Oh=it,qk=er,I3A=Xe,PI=Ar,FI=fl,l3A=Re,jt=$t,u3A=Lt,yb=pn,Rv=to,jk=wv,c3A=Js,mb=Ys,Ec=zs,YW=Nv,h3A=Rh,JW=zk,d3A=Lh,zW=_s,WW=nn,B3A=kv,qW=Qv,XO=pl,f3A=Wk,Vk=Ql,E3A=Pv,jW=Fh,A2=pv,Q3A=at,v3A=$h,p3A=dt,w3A=KW,D3A=Ws,VW=wl,Lv=Dl.forEach,Yr=E3A("hidden"),$v="Symbol",Qc="prototype",y3A=VW.set,e2=VW.getterFor($v),Ci=Object[Qc],As=Oh.Symbol,Iu=As&&As[Qc],m3A=Oh.RangeError,b3A=Oh.TypeError,$D=Oh.QObject,ZW=zW.f,es=WW.f,XW=JW.f,M3A=qW.f,Aq=I3A([].push),No=Vk("symbols"),Gh=Vk("op-symbols"),k3A=Vk("wks"),bb=!$D||!$D[Qc]||!$D[Qc].findChild,eq=function(e,t,A){var r=ZW(Ci,t);r&&delete Ci[t],es(e,t,A),r&&e!==Ci&&es(Ci,t,r)},Mb=PI&&l3A(function(){return Ec(es({},"a",{get:function(){return es(this,"a",{value:7}).a}})).a!==7})?eq:es,OD=function(e,t){var A=No[e]=Ec(Iu);return y3A(A,{type:$v,tag:e,description:t}),PI||(A.description=t),A},Ov=function(t,A,r){t===Ci&&Ov(Gh,A,r),yb(t);var n=jk(A);return yb(r),jt(No,n)?(r.enumerable?(jt(t,Yr)&&t[Yr][n]&&(t[Yr][n]=!1),r=Ec(r,{enumerable:mb(0,!1)})):(jt(t,Yr)||es(t,Yr,mb(1,{})),t[Yr][n]=!0),Mb(t,n,r)):es(t,n,r)},Zk=function(t,A){yb(t);var r=Rv(A),n=YW(r).concat(iq(r));return Lv(n,function(i){(!PI||qk(tq,r,i))&&Ov(t,i,r[i])}),t},S3A=function(t,A){return A===void 0?Ec(t):Zk(Ec(t),A)},tq=function(t){var A=jk(t),r=qk(M3A,this,A);return this===Ci&&jt(No,A)&&!jt(Gh,A)?!1:r||!jt(this,A)||!jt(No,A)||jt(this,Yr)&&this[Yr][A]?r:!0},rq=function(t,A){var r=Rv(t),n=jk(A);if(!(r===Ci&&jt(No,n)&&!jt(Gh,n))){var i=ZW(r,n);return i&&jt(No,n)&&!(jt(r,Yr)&&r[Yr][n])&&(i.enumerable=!0),i}},nq=function(t){var A=XW(Rv(t)),r=[];return Lv(A,function(n){!jt(No,n)&&!jt(jW,n)&&Aq(r,n)}),r},iq=function(e){var t=e===Ci,A=XW(t?Gh:Rv(e)),r=[];return Lv(A,function(n){jt(No,n)&&(!t||jt(Ci,n))&&Aq(r,No[n])}),r};FI||(As=function(){if(u3A(Iu,this))throw new b3A("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:c3A(arguments[0]),A=A2(t),r=function(n){var i=this===void 0?Oh:this;i===Ci&&qk(r,Gh,n),jt(i,Yr)&&jt(i[Yr],A)&&(i[Yr][A]=!1);var o=mb(1,n);try{Mb(i,A,o)}catch(g){if(!(g instanceof m3A))throw g;eq(i,A,o)}};return PI&&bb&&Mb(Ci,A,{configurable:!0,set:r}),OD(A,t)},Iu=As[Qc],XO(Iu,"toString",function(){return e2(this).tag}),XO(As,"withoutSetter",function(e){return OD(A2(e),e)}),qW.f=tq,WW.f=Ov,B3A.f=Zk,zW.f=rq,h3A.f=JW.f=nq,d3A.f=iq,v3A.f=function(e){return OD(Q3A(e),e)},PI&&f3A(Iu,"description",{configurable:!0,get:function(){return e2(this).description}}));Fv({global:!0,constructor:!0,wrap:!0,forced:!FI,sham:!FI},{Symbol:As});Lv(YW(k3A),function(e){p3A(e)});Fv({target:$v,stat:!0,forced:!FI},{useSetter:function(){bb=!0},useSimple:function(){bb=!1}});Fv({target:"Object",stat:!0,forced:!FI,sham:!PI},{create:S3A,defineProperty:Ov,defineProperties:Zk,getOwnPropertyDescriptor:rq});Fv({target:"Object",stat:!0,forced:!FI},{getOwnPropertyNames:nq});w3A();D3A(As,$v);jW[Yr]=!0;var N3A=fl,oq=N3A&&!!Symbol.for&&!!Symbol.keyFor,P3A=JA,F3A=Or,R3A=$t,L3A=Js,gq=Ql,$3A=oq,GD=gq("string-to-symbol-registry"),O3A=gq("symbol-to-string-registry");P3A({target:"Symbol",stat:!0,forced:!$3A},{for:function(e){var t=L3A(e);if(R3A(GD,t))return GD[t];var A=F3A("Symbol")(t);return GD[t]=A,O3A[A]=t,A}});var G3A=JA,x3A=$t,T3A=Sh,H3A=El,U3A=Ql,K3A=oq,t2=U3A("symbol-to-string-registry");G3A({target:"Symbol",stat:!0,forced:!K3A},{keyFor:function(t){if(!T3A(t))throw new TypeError(H3A(t)+" is not a symbol");if(x3A(t2,t))return t2[t]}});var _3A=Xe,xh=_3A([].slice),Y3A=Xe,r2=da,J3A=ht,n2=ua,z3A=Js,i2=Y3A([].push),W3A=function(e){if(J3A(e))return e;if(r2(e)){for(var t=e.length,A=[],r=0;r<t;r++){var n=e[r];typeof n=="string"?i2(A,n):(typeof n=="number"||n2(n)==="Number"||n2(n)==="String")&&i2(A,z3A(n))}var i=A.length,o=!0;return function(g,a){if(o)return o=!1,a;if(r2(this))return a;for(var s=0;s<i;s++)if(A[s]===g)return a}}},q3A=JA,aq=Or,sq=hl,j3A=er,Th=Xe,Cq=Re,o2=ht,g2=Sh,Iq=xh,V3A=W3A,Z3A=fl,X3A=String,Fg=aq("JSON","stringify"),vB=Th(/./.exec),a2=Th("".charAt),AzA=Th("".charCodeAt),ezA=Th("".replace),tzA=Th(1 .toString),rzA=/[\uD800-\uDFFF]/g,s2=/^[\uD800-\uDBFF]$/,C2=/^[\uDC00-\uDFFF]$/,I2=!Z3A||Cq(function(){var e=aq("Symbol")("stringify detection");return Fg([e])!=="[null]"||Fg({a:e})!=="{}"||Fg(Object(e))!=="{}"}),l2=Cq(function(){return Fg("\uDF06\uD834")!=='"\\udf06\\ud834"'||Fg("\uDEAD")!=='"\\udead"'}),nzA=function(e,t){var A=Iq(arguments),r=V3A(t);if(!(!o2(r)&&(e===void 0||g2(e))))return A[1]=function(n,i){if(o2(r)&&(i=j3A(r,this,X3A(n),i)),!g2(i))return i},sq(Fg,null,A)},izA=function(e,t,A){var r=a2(A,t-1),n=a2(A,t+1);return vB(s2,e)&&!vB(C2,n)||vB(C2,e)&&!vB(s2,r)?"\\u"+tzA(AzA(e,0),16):e};Fg&&q3A({target:"JSON",stat:!0,arity:3,forced:I2||l2},{stringify:function(t,A,r){var n=Iq(arguments),i=sq(I2?nzA:Fg,null,n);return l2&&typeof i=="string"?ezA(i,rzA,izA):i}});var ozA=JA,gzA=fl,azA=Re,lq=Lh,szA=rn,CzA=!gzA||azA(function(){lq.f(1)});ozA({target:"Object",stat:!0,forced:CzA},{getOwnPropertySymbols:function(t){var A=lq.f;return A?A(szA(t)):[]}});var IzA=dt;IzA("asyncIterator");var lzA=dt;lzA("hasInstance");var uzA=dt;uzA("isConcatSpreadable");var czA=dt;czA("iterator");var hzA=dt;hzA("match");var dzA=dt;dzA("matchAll");var BzA=dt;BzA("replace");var fzA=dt;fzA("search");var EzA=dt;EzA("species");var QzA=dt;QzA("split");var vzA=dt,pzA=KW;vzA("toPrimitive");pzA();var wzA=Or,DzA=dt,yzA=Ws;DzA("toStringTag");yzA(wzA("Symbol"),"Symbol");var mzA=dt;mzA("unscopables");var bzA=it,MzA=Ws;MzA(bzA.JSON,"JSON",!0);var kzA=ot,SzA=kzA.Symbol,yl={},kb=Ar,NzA=$t,uq=Function.prototype,PzA=kb&&Object.getOwnPropertyDescriptor,Xk=NzA(uq,"name"),FzA=Xk&&function(){}.name==="something",RzA=Xk&&(!kb||kb&&PzA(uq,"name").configurable),LzA={EXISTS:Xk,PROPER:FzA,CONFIGURABLE:RzA},$zA=Re,cq=!$zA(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),OzA=$t,GzA=ht,xzA=rn,TzA=Pv,HzA=cq,u2=TzA("IE_PROTO"),Sb=Object,UzA=Sb.prototype,Gv=HzA?Sb.getPrototypeOf:function(e){var t=xzA(e);if(OzA(t,u2))return t[u2];var A=t.constructor;return GzA(A)&&t instanceof A?A.prototype:t instanceof Sb?UzA:null},KzA=Re,_zA=ht,YzA=hr,JzA=zs,c2=Gv,zzA=pl,WzA=at,Nb=WzA("iterator"),hq=!1,fo,xD,TD;[].keys&&(TD=[].keys(),"next"in TD?(xD=c2(c2(TD)),xD!==Object.prototype&&(fo=xD)):hq=!0);var qzA=!YzA(fo)||KzA(function(){var e={};return fo[Nb].call(e)!==e});qzA?fo={}:fo=JzA(fo);_zA(fo[Nb])||zzA(fo,Nb,function(){return this});var dq={IteratorPrototype:fo,BUGGY_SAFARI_ITERATORS:hq},jzA=dq.IteratorPrototype,VzA=zs,ZzA=Ys,XzA=Ws,A5A=yl,e5A=function(){return this},t5A=function(e,t,A,r){var n=t+" Iterator";return e.prototype=VzA(jzA,{next:ZzA(+!r,A)}),XzA(e,n,!1,!0),A5A[n]=e5A,e},r5A=Xe,n5A=tn,i5A=function(e,t,A){try{return r5A(n5A(Object.getOwnPropertyDescriptor(e,t)[A]))}catch{}},o5A=ht,g5A=String,a5A=TypeError,s5A=function(e){if(typeof e=="object"||o5A(e))return e;throw new a5A("Can't set "+g5A(e)+" as a prototype")},C5A=i5A,I5A=pn,l5A=s5A,Bq=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},A;try{A=C5A(Object.prototype,"__proto__","set"),A(t,[]),e=t instanceof Array}catch{}return function(n,i){return I5A(n),l5A(i),e?A(n,i):n.__proto__=i,n}}():void 0),u5A=JA,c5A=er,h5A=LzA,d5A=t5A,B5A=Gv,f5A=Ws,h2=pl,E5A=at,d2=yl,Q5A=dq,v5A=h5A.PROPER,pB=Q5A.BUGGY_SAFARI_ITERATORS,HD=E5A("iterator"),B2="keys",wB="values",f2="entries",p5A=function(){return this},AS=function(e,t,A,r,n,i,o){d5A(A,t,r);var g=function(B){if(B===n&&l)return l;if(!pB&&B&&B in C)return C[B];switch(B){case B2:return function(){return new A(this,B)};case wB:return function(){return new A(this,B)};case f2:return function(){return new A(this,B)}}return function(){return new A(this)}},a=t+" Iterator",s=!1,C=e.prototype,I=C[HD]||C["@@iterator"]||n&&C[n],l=!pB&&I||g(n),u=t==="Array"&&C.entries||I,c,h,d;if(u&&(c=B5A(u.call(new e)),c!==Object.prototype&&c.next&&(f5A(c,a,!0,!0),d2[a]=p5A)),v5A&&n===wB&&I&&I.name!==wB&&(s=!0,l=function(){return c5A(I,this)}),n)if(h={values:g(wB),keys:i?l:g(B2),entries:g(f2)},o)for(d in h)(pB||s||!(d in C))&&h2(C,d,h[d]);else u5A({target:t,proto:!0,forced:pB||s},h);return o&&C[HD]!==l&&h2(C,HD,l,{name:n}),d2[t]=l,h},eS=function(e,t){return{value:e,done:t}},w5A=to,E2=yl,fq=wl;nn.f;var D5A=AS,DB=eS,Eq="Array Iterator",y5A=fq.set,m5A=fq.getterFor(Eq);D5A(Array,"Array",function(e,t){y5A(this,{type:Eq,target:w5A(e),index:0,kind:t})},function(){var e=m5A(this),t=e.target,A=e.index++;if(!t||A>=t.length)return e.target=void 0,DB(void 0,!0);switch(e.kind){case"keys":return DB(A,!1);case"values":return DB(t[A],!1)}return DB([A,t[A]],!1)},"values");E2.Arguments=E2.Array;var b5A={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},M5A=b5A,k5A=it,S5A=Uo,N5A=Ho,Q2=yl,P5A=at,v2=P5A("toStringTag");for(var UD in M5A){var p2=k5A[UD],KD=p2&&p2.prototype;KD&&S5A(KD)!==v2&&N5A(KD,v2,UD),Q2[UD]=Q2.Array}var F5A=SzA,Qq=F5A,R5A=at,L5A=nn.f,w2=R5A("metadata"),D2=Function.prototype;D2[w2]===void 0&&L5A(D2,w2,{value:null});var $5A=dt;$5A("asyncDispose");var O5A=dt;O5A("dispose");var G5A=dt;G5A("metadata");var x5A=Qq,T5A=x5A,H5A=Or,U5A=Xe,tS=H5A("Symbol"),K5A=tS.keyFor,_5A=U5A(tS.prototype.valueOf),vq=tS.isRegisteredSymbol||function(t){try{return K5A(_5A(t))!==void 0}catch{return!1}},Y5A=JA,J5A=vq;Y5A({target:"Symbol",stat:!0},{isRegisteredSymbol:J5A});var z5A=Ql,pq=Or,W5A=Xe,q5A=Sh,j5A=at,HE=pq("Symbol"),y2=HE.isWellKnownSymbol,wq=pq("Object","getOwnPropertyNames"),V5A=W5A(HE.prototype.valueOf),m2=z5A("wks");for(var _D=0,b2=wq(HE),Z5A=b2.length;_D<Z5A;_D++)try{var M2=b2[_D];q5A(HE[M2])&&j5A(M2)}catch{}var Dq=function(t){if(y2&&y2(t))return!0;try{for(var A=V5A(t),r=0,n=wq(m2),i=n.length;r<i;r++)if(m2[n[r]]==A)return!0}catch{}return!1},X5A=JA,AWA=Dq;X5A({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:AWA});var eWA=dt;eWA("matcher");var tWA=dt;tWA("observable");var rWA=JA,nWA=vq;rWA({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:nWA});var iWA=JA,oWA=Dq;iWA({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:oWA});var gWA=dt;gWA("metadataKey");var aWA=dt;aWA("patternMatch");var sWA=dt;sWA("replaceAll");var CWA=T5A,IWA=CWA,rS=IWA,LC=ZA(rS),nS=Xe,lWA=yv,uWA=Js,cWA=Tk,hWA=nS("".charAt),k2=nS("".charCodeAt),dWA=nS("".slice),S2=function(e){return function(t,A){var r=uWA(cWA(t)),n=lWA(A),i=r.length,o,g;return n<0||n>=i?e?"":void 0:(o=k2(r,n),o<55296||o>56319||n+1===i||(g=k2(r,n+1))<56320||g>57343?e?hWA(r,n):o:e?dWA(r,n,n+2):(o-55296<<10)+(g-56320)+65536)}},BWA={codeAt:S2(!1),charAt:S2(!0)},fWA=BWA.charAt,EWA=Js,yq=wl,QWA=AS,N2=eS,mq="String Iterator",vWA=yq.set,pWA=yq.getterFor(mq);QWA(String,"String",function(e){vWA(this,{type:mq,string:EWA(e),index:0})},function(){var t=pWA(this),A=t.string,r=t.index,n;return r>=A.length?N2(void 0,!0):(n=fWA(A,r),t.index+=n.length,N2(n,!1))});var wWA=$h,DWA=wWA.f("iterator"),yWA=DWA,bq=yWA,mWA=bq,bWA=mWA,MWA=bWA,kWA=MWA,Mq=kWA,SWA=ZA(Mq);function RI(e){"@babel/helpers - typeof";return RI=typeof LC=="function"&&typeof SWA=="symbol"?function(t){return typeof t}:function(t){return t&&typeof LC=="function"&&t.constructor===LC&&t!==LC.prototype?"symbol":typeof t},RI(e)}var NWA=$h,PWA=NWA.f("toPrimitive"),FWA=PWA,RWA=FWA,LWA=RWA,$WA=LWA,OWA=$WA,GWA=OWA,xWA=GWA,TWA=ZA(xWA);function HWA(e,t){if(RI(e)!=="object"||e===null)return e;var A=e[TWA];if(A!==void 0){var r=A.call(e,t||"default");if(RI(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kq(e){var t=HWA(e,"string");return RI(t)==="symbol"?t:String(t)}function P2(e,t){for(var A=0;A<t.length;A++){var r=t[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Dv(e,kq(r.key),r)}}function xv(e,t,A){return t&&P2(e.prototype,t),A&&P2(e,A),Dv(e,"prototype",{writable:!1}),e}function Rg(e,t,A){return t=kq(t),t in e?Dv(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}var Sq=Xe,UWA=tn,KWA=hr,_WA=$t,F2=xh,YWA=kh,Nq=Function,JWA=Sq([].concat),zWA=Sq([].join),YD={},WWA=function(e,t,A){if(!_WA(YD,t)){for(var r=[],n=0;n<t;n++)r[n]="a["+n+"]";YD[t]=Nq("C,a","return new C("+zWA(r,",")+")")}return YD[t](e,A)},Pq=YWA?Nq.bind:function(t){var A=UWA(this),r=A.prototype,n=F2(arguments,1),i=function(){var g=JWA(n,F2(arguments));return this instanceof i?WWA(A,g.length,g):A.apply(t,g)};return KWA(r)&&(i.prototype=r),i},qWA=JA,R2=Pq;qWA({target:"Function",proto:!0,forced:Function.bind!==R2},{bind:R2});var jWA=it,VWA=ot,Qr=function(e,t){var A=VWA[e+"Prototype"],r=A&&A[t];if(r)return r;var n=jWA[e],i=n&&n.prototype;return i&&i[t]},ZWA=Qr,XWA=ZWA("Function","bind"),AqA=Lt,eqA=XWA,JD=Function.prototype,tqA=function(e){var t=e.bind;return e===JD||AqA(JD,e)&&t===JD.bind?eqA:t},rqA=tqA,Fq=rqA,nqA=Fq,Rq=ZA(nqA),iqA=tn,oqA=rn,gqA=vv,aqA=wn,sqA=TypeError,L2=function(e){return function(t,A,r,n){iqA(A);var i=oqA(t),o=gqA(i),g=aqA(i),a=e?g-1:0,s=e?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=s;break}if(a+=s,e?a<0:g<=a)throw new sqA("Reduce of empty array with no initial value")}for(;e?a>=0:g>a;a+=s)a in o&&(n=A(n,o[a],a,i));return n}},CqA={left:L2(!1),right:L2(!0)},IqA=Re,Tv=function(e,t){var A=[][e];return!!A&&IqA(function(){A.call(null,t||function(){return 1},1)})},lqA=it,uqA=ua,Hh=uqA(lqA.process)==="process",cqA=JA,hqA=CqA.left,dqA=Tv,$2=Bl,BqA=Hh,fqA=!BqA&&$2>79&&$2<83,EqA=fqA||!dqA("reduce");cqA({target:"Array",proto:!0,forced:EqA},{reduce:function(t){var A=arguments.length;return hqA(this,t,A,A>1?arguments[1]:void 0)}});var QqA=Qr,vqA=QqA("Array","reduce"),pqA=Lt,wqA=vqA,zD=Array.prototype,DqA=function(e){var t=e.reduce;return e===zD||pqA(zD,e)&&t===zD.reduce?wqA:t},yqA=DqA,mqA=yqA,bqA=mqA,MqA=ZA(bqA),kqA=JA,SqA=Dl.filter,NqA=Ph,PqA=NqA("filter");kqA({target:"Array",proto:!0,forced:!PqA},{filter:function(t){return SqA(this,t,arguments.length>1?arguments[1]:void 0)}});var FqA=Qr,RqA=FqA("Array","filter"),LqA=Lt,$qA=RqA,WD=Array.prototype,OqA=function(e){var t=e.filter;return e===WD||LqA(WD,e)&&t===WD.filter?$qA:t},GqA=OqA,xqA=GqA,TqA=xqA,$C=ZA(TqA),HqA=JA,UqA=Dl.map,KqA=Ph,_qA=KqA("map");HqA({target:"Array",proto:!0,forced:!_qA},{map:function(t){return UqA(this,t,arguments.length>1?arguments[1]:void 0)}});var YqA=Qr,JqA=YqA("Array","map"),zqA=Lt,WqA=JqA,qD=Array.prototype,qqA=function(e){var t=e.map;return e===qD||zqA(qD,e)&&t===qD.map?WqA:t},jqA=qqA,VqA=jqA,ZqA=VqA,ei=ZA(ZqA),XqA=da,AjA=wn,ejA=mv,tjA=ha,Lq=function(e,t,A,r,n,i,o,g){for(var a=n,s=0,C=o?tjA(o,g):!1,I,l;s<r;)s in A&&(I=C?C(A[s],s,t):A[s],i>0&&XqA(I)?(l=AjA(I),a=Lq(e,t,I,l,a,i-1)-1):(ejA(a+1),e[a]=I),a++),s++;return a},rjA=Lq,njA=JA,ijA=rjA,ojA=tn,gjA=rn,ajA=wn,sjA=Mv;njA({target:"Array",proto:!0},{flatMap:function(t){var A=gjA(this),r=ajA(A),n;return ojA(t),n=sjA(A,0),n.length=ijA(n,A,A,r,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var CjA=Qr;CjA("Array","flatMap");var IjA=er,O2=pn,ljA=Hk,$q=function(e,t,A){var r,n;O2(e);try{if(r=ljA(e,"return"),!r){if(t==="throw")throw A;return A}r=IjA(r,e)}catch(i){n=!0,r=i}if(t==="throw")throw A;if(n)throw r;return O2(r),A},ujA=pn,cjA=$q,hjA=function(e,t,A,r){try{return r?t(ujA(A)[0],A[1]):t(A)}catch(n){cjA(e,"throw",n)}},djA=at,BjA=yl,fjA=djA("iterator"),EjA=Array.prototype,Oq=function(e){return e!==void 0&&(BjA.Array===e||EjA[fjA]===e)},QjA=Uo,G2=Hk,vjA=dl,pjA=yl,wjA=at,DjA=wjA("iterator"),Hv=function(e){if(!vjA(e))return G2(e,DjA)||G2(e,"@@iterator")||pjA[QjA(e)]},yjA=er,mjA=tn,bjA=pn,MjA=El,kjA=Hv,SjA=TypeError,iS=function(e,t){var A=arguments.length<2?kjA(e):t;if(mjA(A))return bjA(yjA(A,e));throw new SjA(MjA(e)+" is not iterable")},NjA=ha,PjA=er,FjA=rn,RjA=hjA,LjA=Oq,$jA=bv,OjA=wn,x2=vl,GjA=iS,xjA=Hv,T2=Array,TjA=function(t){var A=FjA(t),r=$jA(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=i!==void 0;o&&(i=NjA(i,n>2?arguments[2]:void 0));var g=xjA(A),a=0,s,C,I,l,u,c;if(g&&!(this===T2&&LjA(g)))for(l=GjA(A,g),u=l.next,C=r?new this:[];!(I=PjA(u,l)).done;a++)c=o?RjA(l,i,[I.value,a],!0):I.value,x2(C,a,c);else for(s=OjA(A),C=r?new this(s):T2(s);s>a;a++)c=o?i(A[a],a):A[a],x2(C,a,c);return C.length=a,C},HjA=at,Gq=HjA("iterator"),xq=!1;try{var UjA=0,H2={next:function(){return{done:!!UjA++}},return:function(){xq=!0}};H2[Gq]=function(){return this},Array.from(H2,function(){throw 2})}catch{}var Tq=function(e,t){try{if(!t&&!xq)return!1}catch{return!1}var A=!1;try{var r={};r[Gq]=function(){return{next:function(){return{done:A=!0}}}},e(r)}catch{}return A},KjA=JA,_jA=TjA,YjA=Tq,JjA=!YjA(function(e){Array.from(e)});KjA({target:"Array",stat:!0,forced:JjA},{from:_jA});var zjA=ot,WjA=zjA.Array.from,qjA=WjA,Hq=qjA,jjA=Hq,oS=ZA(jjA),VjA=Hv,ZjA=VjA,XjA=ZjA,AVA=XjA,eVA=AVA,tVA=eVA,rVA=tVA,nVA=rVA,Uq=nVA,Kq=ZA(Uq),iVA=Uq,gS=ZA(iVA),oVA=JA,gVA=da;oVA({target:"Array",stat:!0},{isArray:gVA});var aVA=ot,sVA=aVA.Array.isArray,CVA=sVA,_q=CVA,IVA=_q,lVA=IVA,uVA=lVA,cVA=uVA,hVA=cVA,Yq=ZA(hVA);function dVA(e){if(Yq(e))return e}var BVA=Ar,fVA=da,EVA=TypeError,QVA=Object.getOwnPropertyDescriptor,vVA=BVA&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Jq=vVA?function(e,t){if(fVA(e)&&!QVA(e,"length").writable)throw new EVA("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},pVA=JA,wVA=rn,DVA=wn,yVA=Jq,mVA=mv,bVA=Re,MVA=bVA(function(){return[].push.call({length:4294967296},1)!==4294967297}),kVA=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},SVA=MVA||!kVA();pVA({target:"Array",proto:!0,arity:1,forced:SVA},{push:function(t){var A=wVA(this),r=DVA(A),n=arguments.length;mVA(r+n);for(var i=0;i<n;i++)A[r]=arguments[i],r++;return yVA(A,r),r}});var NVA=Qr,PVA=NVA("Array","push"),FVA=Lt,RVA=PVA,jD=Array.prototype,LVA=function(e){var t=e.push;return e===jD||FVA(jD,e)&&t===jD.push?RVA:t},$VA=LVA,OVA=$VA,GVA=OVA,xVA=GVA,TVA=xVA,HVA=TVA,zq=HVA,UVA=ZA(zq);function KVA(e,t){var A=e==null?null:typeof LC<"u"&&Kq(e)||e["@@iterator"];if(A!=null){var r,n,i,o,g=[],a=!0,s=!1;try{if(i=(A=A.call(e)).next,t===0){if(Object(A)!==A)return;a=!1}else for(;!(a=(r=i.call(A)).done)&&(UVA(g).call(g,r.value),g.length!==t);a=!0);}catch(C){s=!0,n=C}finally{try{if(!a&&A.return!=null&&(o=A.return(),Object(o)!==o))return}finally{if(s)throw n}}return g}}var _VA=JA,U2=da,YVA=bv,JVA=hr,K2=Sv,zVA=wn,WVA=to,qVA=vl,jVA=at,VVA=Ph,ZVA=xh,XVA=VVA("slice"),A6A=jVA("species"),VD=Array,e6A=Math.max;_VA({target:"Array",proto:!0,forced:!XVA},{slice:function(t,A){var r=WVA(this),n=zVA(r),i=K2(t,n),o=K2(A===void 0?n:A,n),g,a,s;if(U2(r)&&(g=r.constructor,YVA(g)&&(g===VD||U2(g.prototype))?g=void 0:JVA(g)&&(g=g[A6A],g===null&&(g=void 0)),g===VD||g===void 0))return ZVA(r,i,o);for(a=new(g===void 0?VD:g)(e6A(o-i,0)),s=0;i<o;i++,s++)i in r&&qVA(a,s,r[i]);return a.length=s,a}});var t6A=Qr,r6A=t6A("Array","slice"),n6A=Lt,i6A=r6A,ZD=Array.prototype,o6A=function(e){var t=e.slice;return e===ZD||n6A(ZD,e)&&t===ZD.slice?i6A:t},g6A=o6A,Wq=g6A,a6A=Wq,s6A=a6A,C6A=s6A,I6A=C6A,qq=I6A,l6A=ZA(qq),u6A=Hq,c6A=u6A,h6A=c6A,d6A=h6A,B6A=d6A,jq=ZA(B6A);function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function Vq(e,t){var A;if(e){if(typeof e=="string")return Pb(e,t);var r=l6A(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return jq(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pb(e,t)}}function f6A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1024
1024
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gr(e,t){return dVA(e)||KVA(e,t)||Vq(e,t)||f6A()}function E6A(e){if(Yq(e))return Pb(e)}function Q6A(e){if(typeof LC<"u"&&Kq(e)!=null||e["@@iterator"]!=null)return jq(e)}function v6A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1025
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(e){return E6A(e)||Q6A(e)||Vq(e)||v6A()}var p6A=Qq,Uv=ZA(p6A),w6A=Qr,D6A=w6A("Array","concat"),y6A=Lt,m6A=D6A,XD=Array.prototype,b6A=function(e){var t=e.concat;return e===XD||y6A(XD,e)&&t===XD.concat?m6A:t},M6A=b6A,k6A=M6A,S6A=k6A,Kv=ZA(S6A),N6A=Wq,_v=ZA(N6A),P6A=Or,F6A=Xe,R6A=Rh,L6A=Lh,$6A=pn,O6A=F6A([].concat),aS=P6A("Reflect","ownKeys")||function(t){var A=R6A.f($6A(t)),r=L6A.f;return r?O6A(A,r(t)):A},G6A=JA,x6A=aS;G6A({target:"Reflect",stat:!0},{ownKeys:x6A});var T6A=ot,H6A=T6A.Reflect.ownKeys,U6A=H6A,K6A=U6A,_6A=K6A,Y6A=ZA(_6A),J6A=_q,un=ZA(J6A),z6A=JA,W6A=rn,Zq=Nv,q6A=Re,j6A=q6A(function(){Zq(1)});z6A({target:"Object",stat:!0,forced:j6A},{keys:function(t){return Zq(W6A(t))}});var V6A=ot,Z6A=V6A.Object.keys,X6A=Z6A,AZA=X6A,eZA=AZA,sS=ZA(eZA),tZA=Dl.forEach,rZA=Tv,nZA=rZA("forEach"),iZA=nZA?[].forEach:function(t){return tZA(this,t,arguments.length>1?arguments[1]:void 0)},oZA=JA,
|
|
1025
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(e){return E6A(e)||Q6A(e)||Vq(e)||v6A()}var p6A=Qq,Uv=ZA(p6A),w6A=Qr,D6A=w6A("Array","concat"),y6A=Lt,m6A=D6A,XD=Array.prototype,b6A=function(e){var t=e.concat;return e===XD||y6A(XD,e)&&t===XD.concat?m6A:t},M6A=b6A,k6A=M6A,S6A=k6A,Kv=ZA(S6A),N6A=Wq,_v=ZA(N6A),P6A=Or,F6A=Xe,R6A=Rh,L6A=Lh,$6A=pn,O6A=F6A([].concat),aS=P6A("Reflect","ownKeys")||function(t){var A=R6A.f($6A(t)),r=L6A.f;return r?O6A(A,r(t)):A},G6A=JA,x6A=aS;G6A({target:"Reflect",stat:!0},{ownKeys:x6A});var T6A=ot,H6A=T6A.Reflect.ownKeys,U6A=H6A,K6A=U6A,_6A=K6A,Y6A=ZA(_6A),J6A=_q,un=ZA(J6A),z6A=JA,W6A=rn,Zq=Nv,q6A=Re,j6A=q6A(function(){Zq(1)});z6A({target:"Object",stat:!0,forced:j6A},{keys:function(t){return Zq(W6A(t))}});var V6A=ot,Z6A=V6A.Object.keys,X6A=Z6A,AZA=X6A,eZA=AZA,sS=ZA(eZA),tZA=Dl.forEach,rZA=Tv,nZA=rZA("forEach"),iZA=nZA?[].forEach:function(t){return tZA(this,t,arguments.length>1?arguments[1]:void 0)},oZA=JA,_2=iZA;oZA({target:"Array",proto:!0,forced:[].forEach!==_2},{forEach:_2});var gZA=Qr,aZA=gZA("Array","forEach"),sZA=aZA,CZA=sZA,IZA=Uo,lZA=$t,uZA=Lt,cZA=CZA,Ay=Array.prototype,hZA={DOMTokenList:!0,NodeList:!0},Xq=function(e){var t=e.forEach;return e===Ay||uZA(Ay,e)&&t===Ay.forEach||lZA(hZA,IZA(e))?cZA:t},dZA=Xq,fs=ZA(dZA),BZA=JA,fZA=Xe,EZA=da,QZA=fZA([].reverse),Y2=[1,2];BZA({target:"Array",proto:!0,forced:String(Y2)===String(Y2.reverse())},{reverse:function(){return EZA(this)&&(this.length=this.length),QZA(this)}});var vZA=Qr,pZA=vZA("Array","reverse"),wZA=Lt,DZA=pZA,ey=Array.prototype,yZA=function(e){var t=e.reverse;return e===ey||wZA(ey,e)&&t===ey.reverse?DZA:t},mZA=yZA,Aj=mZA,bZA=Aj,MZA=ZA(bZA),J2=El,kZA=TypeError,ej=function(e,t){if(!delete e[t])throw new kZA("Cannot delete property "+J2(t)+" of "+J2(e))},SZA=JA,NZA=rn,PZA=Sv,FZA=yv,RZA=wn,LZA=Jq,$ZA=mv,OZA=Mv,GZA=vl,ty=ej,xZA=Ph,TZA=xZA("splice"),HZA=Math.max,UZA=Math.min;SZA({target:"Array",proto:!0,forced:!TZA},{splice:function(t,A){var r=NZA(this),n=RZA(r),i=PZA(t,n),o=arguments.length,g,a,s,C,I,l;for(o===0?g=a=0:o===1?(g=0,a=n-i):(g=o-2,a=UZA(HZA(FZA(A),0),n-i)),$ZA(n+g-a),s=OZA(r,a),C=0;C<a;C++)I=i+C,I in r&&GZA(s,C,r[I]);if(s.length=a,g<a){for(C=i;C<n-a;C++)I=C+a,l=C+g,I in r?r[l]=r[I]:ty(r,l);for(C=n;C>n-a+g;C--)ty(r,C-1)}else if(g>a)for(C=n-a;C>i;C--)I=C+a-1,l=C+g-1,I in r?r[l]=r[I]:ty(r,l);for(C=0;C<g;C++)r[C+i]=arguments[C+2];return LZA(r,n-a+g),s}});var KZA=Qr,_ZA=KZA("Array","splice"),YZA=Lt,JZA=_ZA,ry=Array.prototype,zZA=function(e){var t=e.splice;return e===ry||YZA(ry,e)&&t===ry.splice?JZA:t},WZA=zZA,qZA=WZA,jZA=qZA,tj=ZA(jZA),z2=Ar,VZA=Xe,ZZA=er,XZA=Re,ny=Nv,A9A=Lh,e9A=Qv,t9A=rn,r9A=vv,dC=Object.assign,W2=Object.defineProperty,n9A=VZA([].concat),i9A=!dC||XZA(function(){if(z2&&dC({b:1},dC(W2({},"a",{enumerable:!0,get:function(){W2(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},A=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[A]=7,r.split("").forEach(function(n){t[n]=n}),dC({},e)[A]!==7||ny(dC({},t)).join("")!==r})?function(t,A){for(var r=t9A(t),n=arguments.length,i=1,o=A9A.f,g=e9A.f;n>i;)for(var a=r9A(arguments[i++]),s=o?n9A(ny(a),o(a)):ny(a),C=s.length,I=0,l;C>I;)l=s[I++],(!z2||ZZA(g,a,l))&&(r[l]=a[l]);return r}:dC,o9A=JA,q2=i9A;o9A({target:"Object",stat:!0,arity:2,forced:Object.assign!==q2},{assign:q2});var g9A=ot,a9A=g9A.Object.assign,s9A=a9A,C9A=s9A,I9A=C9A,l9A=ZA(I9A),u9A=JA,c9A=Re,h9A=rn,rj=Gv,d9A=cq,B9A=c9A(function(){rj(1)});u9A({target:"Object",stat:!0,forced:B9A,sham:!d9A},{getPrototypeOf:function(t){return rj(h9A(t))}});var f9A=ot,E9A=f9A.Object.getPrototypeOf,Q9A=E9A,v9A=Q9A,p9A=JA,w9A=Ar,D9A=zs;p9A({target:"Object",stat:!0,sham:!w9A},{create:D9A});var y9A=ot,m9A=y9A.Object,b9A=function(t,A){return m9A.create(t,A)},M9A=b9A,nj=M9A,k9A=nj,S9A=ZA(k9A),Fb=ot,N9A=hl;Fb.JSON||(Fb.JSON={stringify:JSON.stringify});var P9A=function(t,A,r){return N9A(Fb.JSON.stringify,null,arguments)},F9A=P9A,R9A=F9A,L9A=R9A,$9A=ZA(L9A),O9A=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",G9A=TypeError,ij=function(e,t){if(e<t)throw new G9A("Not enough arguments");return e},oj=it,x9A=hl,T9A=ht,H9A=O9A,U9A=ca,K9A=xh,_9A=ij,Y9A=oj.Function,J9A=/MSIE .\./.test(U9A)||H9A&&function(){var e=oj.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),gj=function(e,t){var A=t?2:1;return J9A?function(r,n){var i=_9A(arguments.length,1)>A,o=T9A(r)?r:Y9A(r),g=i?K9A(arguments,A):[],a=i?function(){x9A(o,this,g)}:o;return t?e(a,n):e(a)}:e},z9A=JA,aj=it,W9A=gj,j2=W9A(aj.setInterval,!0);z9A({global:!0,bind:!0,forced:aj.setInterval!==j2},{setInterval:j2});var q9A=JA,sj=it,j9A=gj,V2=j9A(sj.setTimeout,!0);q9A({global:!0,bind:!0,forced:sj.setTimeout!==V2},{setTimeout:V2});var V9A=ot,Z9A=V9A.setTimeout,X9A=Z9A,A7A=ZA(X9A),Cj={exports:{}};(function(e){function t(r){if(r)return A(r);this._callbacks=new Map}function A(r){return Object.assign(r,t.prototype),r._callbacks=new Map,r}t.prototype.on=function(r,n){const i=this._callbacks.get(r)??[];return i.push(n),this._callbacks.set(r,i),this},t.prototype.once=function(r,n){const i=(...o)=>{this.off(r,i),n.apply(this,o)};return i.fn=n,this.on(r,i),this},t.prototype.off=function(r,n){if(r===void 0&&n===void 0)return this._callbacks.clear(),this;if(n===void 0)return this._callbacks.delete(r),this;const i=this._callbacks.get(r);if(i){for(const[o,g]of i.entries())if(g===n||g.fn===n){i.splice(o,1);break}i.length===0?this._callbacks.delete(r):this._callbacks.set(r,i)}return this},t.prototype.emit=function(r,...n){const i=this._callbacks.get(r);if(i){const o=[...i];for(const g of o)g.apply(this,n)}return this},t.prototype.listeners=function(r){return this._callbacks.get(r)??[]},t.prototype.listenerCount=function(r){if(r)return this.listeners(r).length;let n=0;for(const i of this._callbacks.values())n+=i.length;return n},t.prototype.hasListeners=function(r){return this.listenerCount(r)>0},t.prototype.addEventListener=t.prototype.on,t.prototype.removeListener=t.prototype.off,t.prototype.removeEventListener=t.prototype.off,t.prototype.removeAllListeners=t.prototype.off,e.exports=t})(Cj);var e7A=Cj.exports,t7A=ZA(e7A);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
1026
1026
|
* http://naver.github.io/egjs
|
|
1027
1027
|
*
|
|
1028
1028
|
* Forked By Naver egjs
|
|
1029
1029
|
* Copyright (c) hammerjs
|
|
1030
|
-
* Licensed under the MIT license */function Bi(){return Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Bi.apply(this,arguments)}function zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function yB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rb;typeof Object.assign!="function"?Rb=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(n!=null)for(var i in n)n.hasOwnProperty(i)&&(A[i]=n[i])}return A}:Rb=Object.assign;var Es=Rb,ZG=["","webkit","Moz","MS","ms","o"],r7A=typeof document>"u"?{style:{}}:document.createElement("div"),n7A="function",OC=Math.round,Qs=Math.abs,CS=Date.now;function Yv(e,t){for(var A,r,n=t[0].toUpperCase()+t.slice(1),i=0;i<ZG.length;){if(A=ZG[i],r=A?A+n:t,r in e)return r;i++}}var Eo;typeof window>"u"?Eo={}:Eo=window;var Ij=Yv(r7A.style,"touchAction"),lj=Ij!==void 0;function i7A(){if(!lj)return!1;var e={},t=Eo.CSS&&Eo.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(A){return e[A]=t?Eo.CSS.supports("touch-action",A):!0}),e}var uj="compute",cj="auto",Lb="manipulation",ts="none",vc="pan-x",pc="pan-y",mB=i7A(),o7A=/mobile|tablet|ip(ad|hone|od)|android/i,hj="ontouchstart"in Eo,g7A=Yv(Eo,"PointerEvent")!==void 0,a7A=hj&&o7A.test(navigator.userAgent),Uh="touch",s7A="pen",IS="mouse",C7A="kinect",I7A=25,Pr=1,qs=2,Pt=4,Vr=8,UE=1,Kh=2,_h=4,Yh=8,LI=16,_i=Kh|_h,rs=Yh|LI,dj=_i|rs,Bj=["x","y"],KE=["clientX","clientY"];function Qo(e,t,A){var r;if(e)if(e.forEach)e.forEach(t,A);else if(e.length!==void 0)for(r=0;r<e.length;)t.call(A,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(A,e[r],r,e)}function Jv(e,t){return typeof e===n7A?e.apply(t&&t[0]||void 0,t):e}function Ua(e,t){return e.indexOf(t)>-1}function l7A(e){if(Ua(e,ts))return ts;var t=Ua(e,vc),A=Ua(e,pc);return t&&A?ts:t||A?t?vc:pc:Ua(e,Lb)?Lb:cj}var fj=function(){function e(A,r){this.manager=A,this.set(r)}var t=e.prototype;return t.set=function(r){r===uj&&(r=this.compute()),lj&&this.manager.element.style&&mB[r]&&(this.manager.element.style[Ij]=r),this.actions=r.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var r=[];return Qo(this.manager.recognizers,function(n){Jv(n.options.enable,[n])&&(r=r.concat(n.getTouchAction()))}),l7A(r.join(" "))},t.preventDefaults=function(r){var n=r.srcEvent,i=r.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,g=Ua(o,ts)&&!mB[ts],a=Ua(o,pc)&&!mB[pc],s=Ua(o,vc)&&!mB[vc];if(g){var C=r.pointers.length===1,I=r.distance<2,l=r.deltaTime<250;if(C&&I&&l)return}if(!(s&&a)&&(g||a&&i&_i||s&&i&rs))return this.preventSrc(n)},t.preventSrc=function(r){this.manager.session.prevented=!0,r.preventDefault()},e}();function lS(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Ej(e){var t=e.length;if(t===1)return{x:OC(e[0].clientX),y:OC(e[0].clientY)};for(var A=0,r=0,n=0;n<t;)A+=e[n].clientX,r+=e[n].clientY,n++;return{x:OC(A/t),y:OC(r/t)}}function XG(e){for(var t=[],A=0;A<e.pointers.length;)t[A]={clientX:OC(e.pointers[A].clientX),clientY:OC(e.pointers[A].clientY)},A++;return{timeStamp:CS(),pointers:t,center:Ej(t),deltaX:e.deltaX,deltaY:e.deltaY}}function _E(e,t,A){A||(A=Bj);var r=t[A[0]]-e[A[0]],n=t[A[1]]-e[A[1]];return Math.sqrt(r*r+n*n)}function $b(e,t,A){A||(A=Bj);var r=t[A[0]]-e[A[0]],n=t[A[1]]-e[A[1]];return Math.atan2(n,r)*180/Math.PI}function Qj(e,t){return e===t?UE:Qs(e)>=Qs(t)?e<0?Kh:_h:t<0?Yh:LI}function u7A(e,t){var A=t.center,r=e.offsetDelta||{},n=e.prevDelta||{},i=e.prevInput||{};(t.eventType===Pr||i.eventType===Pt)&&(n=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:A.x,y:A.y}),t.deltaX=n.x+(A.x-r.x),t.deltaY=n.y+(A.y-r.y)}function vj(e,t,A){return{x:t/e||0,y:A/e||0}}function c7A(e,t){return _E(t[0],t[1],KE)/_E(e[0],e[1],KE)}function h7A(e,t){return $b(t[1],t[0],KE)+$b(e[1],e[0],KE)}function d7A(e,t){var A=e.lastInterval||t,r=t.timeStamp-A.timeStamp,n,i,o,g;if(t.eventType!==Vr&&(r>I7A||A.velocity===void 0)){var a=t.deltaX-A.deltaX,s=t.deltaY-A.deltaY,C=vj(r,a,s);i=C.x,o=C.y,n=Qs(C.x)>Qs(C.y)?C.x:C.y,g=Qj(a,s),e.lastInterval=t}else n=A.velocity,i=A.velocityX,o=A.velocityY,g=A.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=g}function B7A(e,t){var A=e.session,r=t.pointers,n=r.length;A.firstInput||(A.firstInput=XG(t)),n>1&&!A.firstMultiple?A.firstMultiple=XG(t):n===1&&(A.firstMultiple=!1);var i=A.firstInput,o=A.firstMultiple,g=o?o.center:i.center,a=t.center=Ej(r);t.timeStamp=CS(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=$b(g,a),t.distance=_E(g,a),u7A(A,t),t.offsetDirection=Qj(t.deltaX,t.deltaY);var s=vj(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=s.x,t.overallVelocityY=s.y,t.overallVelocity=Qs(s.x)>Qs(s.y)?s.x:s.y,t.scale=o?c7A(o.pointers,r):1,t.rotation=o?h7A(o.pointers,r):0,t.maxPointers=A.prevInput?t.pointers.length>A.prevInput.maxPointers?t.pointers.length:A.prevInput.maxPointers:t.pointers.length,d7A(A,t);var C=e.element,I=t.srcEvent,l;I.composedPath?l=I.composedPath()[0]:I.path?l=I.path[0]:l=I.target,lS(l,C)&&(C=l),t.target=C}function f7A(e,t,A){var r=A.pointers.length,n=A.changedPointers.length,i=t&Pr&&r-n===0,o=t&(Pt|Vr)&&r-n===0;A.isFirst=!!i,A.isFinal=!!o,i&&(e.session={}),A.eventType=t,B7A(e,A),e.emit("hammer.input",A),e.recognize(A),e.session.prevInput=A}function wc(e){return e.trim().split(/\s+/g)}function $u(e,t,A){Qo(wc(t),function(r){e.addEventListener(r,A,!1)})}function Ou(e,t,A){Qo(wc(t),function(r){e.removeEventListener(r,A,!1)})}function A2(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var ml=function(){function e(A,r){var n=this;this.manager=A,this.callback=r,this.element=A.element,this.target=A.options.inputTarget,this.domHandler=function(i){Jv(A.options.enable,[A])&&n.handler(i)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&$u(this.element,this.evEl,this.domHandler),this.evTarget&&$u(this.target,this.evTarget,this.domHandler),this.evWin&&$u(A2(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&Ou(this.element,this.evEl,this.domHandler),this.evTarget&&Ou(this.target,this.evTarget,this.domHandler),this.evWin&&Ou(A2(this.element),this.evWin,this.domHandler)},e}();function vs(e,t,A){if(e.indexOf&&!A)return e.indexOf(t);for(var r=0;r<e.length;){if(A&&e[r][A]==t||!A&&e[r]===t)return r;r++}return-1}var E7A={pointerdown:Pr,pointermove:qs,pointerup:Pt,pointercancel:Vr,pointerout:Vr},Q7A={2:Uh,3:s7A,4:IS,5:C7A},pj="pointerdown",wj="pointermove pointerup pointercancel";Eo.MSPointerEvent&&!Eo.PointerEvent&&(pj="MSPointerDown",wj="MSPointerMove MSPointerUp MSPointerCancel");var Dj=function(e){zn(t,e);function t(){var r,n=t.prototype;return n.evEl=pj,n.evWin=wj,r=e.apply(this,arguments)||this,r.store=r.manager.session.pointerEvents=[],r}var A=t.prototype;return A.handler=function(n){var i=this.store,o=!1,g=n.type.toLowerCase().replace("ms",""),a=E7A[g],s=Q7A[n.pointerType]||n.pointerType,C=s===Uh,I=vs(i,n.pointerId,"pointerId");a&Pr&&(n.button===0||C)?I<0&&(i.push(n),I=i.length-1):a&(Pt|Vr)&&(o=!0),!(I<0)&&(i[I]=n,this.callback(this.manager,a,{pointers:i,changedPointers:[n],pointerType:s,srcEvent:n}),o&&i.splice(I,1))},t}(ml);function Dc(e){return Array.prototype.slice.call(e,0)}function uS(e,t,A){for(var r=[],n=[],i=0;i<e.length;){var o=t?e[i][t]:e[i];vs(n,o)<0&&r.push(e[i]),n[i]=o,i++}return A&&(t?r=r.sort(function(g,a){return g[t]>a[t]}):r=r.sort()),r}var v7A={touchstart:Pr,touchmove:qs,touchend:Pt,touchcancel:Vr},p7A="touchstart touchmove touchend touchcancel",cS=function(e){zn(t,e);function t(){var r;return t.prototype.evTarget=p7A,r=e.apply(this,arguments)||this,r.targetIds={},r}var A=t.prototype;return A.handler=function(n){var i=v7A[n.type],o=w7A.call(this,n,i);o&&this.callback(this.manager,i,{pointers:o[0],changedPointers:o[1],pointerType:Uh,srcEvent:n})},t}(ml);function w7A(e,t){var A=Dc(e.touches),r=this.targetIds;if(t&(Pr|qs)&&A.length===1)return r[A[0].identifier]=!0,[A,A];var n,i,o=Dc(e.changedTouches),g=[],a=this.target;if(i=A.filter(function(s){return lS(s.target,a)}),t===Pr)for(n=0;n<i.length;)r[i[n].identifier]=!0,n++;for(n=0;n<o.length;)r[o[n].identifier]&&g.push(o[n]),t&(Pt|Vr)&&delete r[o[n].identifier],n++;if(g.length)return[uS(i.concat(g),"identifier",!0),g]}var D7A={mousedown:Pr,mousemove:qs,mouseup:Pt},y7A="mousedown",m7A="mousemove mouseup",hS=function(e){zn(t,e);function t(){var r,n=t.prototype;return n.evEl=y7A,n.evWin=m7A,r=e.apply(this,arguments)||this,r.pressed=!1,r}var A=t.prototype;return A.handler=function(n){var i=D7A[n.type];i&Pr&&n.button===0&&(this.pressed=!0),i&qs&&n.which!==1&&(i=Pt),this.pressed&&(i&Pt&&(this.pressed=!1),this.callback(this.manager,i,{pointers:[n],changedPointers:[n],pointerType:IS,srcEvent:n}))},t}(ml),b7A=2500,e2=25;function t2(e){var t=e.changedPointers,A=t[0];if(A.identifier===this.primaryTouch){var r={x:A.clientX,y:A.clientY},n=this.lastTouches;this.lastTouches.push(r);var i=function(){var g=n.indexOf(r);g>-1&&n.splice(g,1)};setTimeout(i,b7A)}}function M7A(e,t){e&Pr?(this.primaryTouch=t.changedPointers[0].identifier,t2.call(this,t)):e&(Pt|Vr)&&t2.call(this,t)}function k7A(e){for(var t=e.srcEvent.clientX,A=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var n=this.lastTouches[r],i=Math.abs(t-n.x),o=Math.abs(A-n.y);if(i<=e2&&o<=e2)return!0}return!1}var yj=function(){var e=function(t){zn(A,t);function A(n,i){var o;return o=t.call(this,n,i)||this,o.handler=function(g,a,s){var C=s.pointerType===Uh,I=s.pointerType===IS;if(!(I&&s.sourceCapabilities&&s.sourceCapabilities.firesTouchEvents)){if(C)M7A.call(yB(yB(o)),a,s);else if(I&&k7A.call(yB(yB(o)),s))return;o.callback(g,a,s)}},o.touch=new cS(o.manager,o.handler),o.mouse=new hS(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var r=A.prototype;return r.destroy=function(){this.touch.destroy(),this.mouse.destroy()},A}(ml);return e}();function S7A(e){var t,A=e.options.inputClass;return A?t=A:g7A?t=Dj:a7A?t=cS:hj?t=yj:t=hS,new t(e,f7A)}function GC(e,t,A){return Array.isArray(e)?(Qo(e,A[t],A),!0):!1}var bf=1,Un=2,$I=4,Lg=8,vo=Lg,yc=16,$i=32,N7A=1;function P7A(){return N7A++}function bB(e,t){var A=t.manager;return A?A.get(e):e}function r2(e){return e&yc?"cancel":e&Lg?"end":e&$I?"move":e&Un?"start":""}var Jh=function(){function e(A){A===void 0&&(A={}),this.options=Bi({enable:!0},A),this.id=P7A(),this.manager=null,this.state=bf,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(r){return Es(this.options,r),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(r){if(GC(r,"recognizeWith",this))return this;var n=this.simultaneous;return r=bB(r,this),n[r.id]||(n[r.id]=r,r.recognizeWith(this)),this},t.dropRecognizeWith=function(r){return GC(r,"dropRecognizeWith",this)?this:(r=bB(r,this),delete this.simultaneous[r.id],this)},t.requireFailure=function(r){if(GC(r,"requireFailure",this))return this;var n=this.requireFail;return r=bB(r,this),vs(n,r)===-1&&(n.push(r),r.requireFailure(this)),this},t.dropRequireFailure=function(r){if(GC(r,"dropRequireFailure",this))return this;r=bB(r,this);var n=vs(this.requireFail,r);return n>-1&&this.requireFail.splice(n,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(r){return!!this.simultaneous[r.id]},t.emit=function(r){var n=this,i=this.state;function o(g){n.manager.emit(g,r)}i<Lg&&o(n.options.event+r2(i)),o(n.options.event),r.additionalEvent&&o(r.additionalEvent),i>=Lg&&o(n.options.event+r2(i))},t.tryEmit=function(r){if(this.canEmit())return this.emit(r);this.state=$i},t.canEmit=function(){for(var r=0;r<this.requireFail.length;){if(!(this.requireFail[r].state&($i|bf)))return!1;r++}return!0},t.recognize=function(r){var n=Es({},r);if(!Jv(this.options.enable,[this,n])){this.reset(),this.state=$i;return}this.state&(vo|yc|$i)&&(this.state=bf),this.state=this.process(n),this.state&(Un|$I|Lg|yc)&&this.tryEmit(n)},t.process=function(r){},t.getTouchAction=function(){},t.reset=function(){},e}(),Ob=function(e){zn(t,e);function t(r){var n;return r===void 0&&(r={}),n=e.call(this,Bi({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},r))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var A=t.prototype;return A.getTouchAction=function(){return[Lb]},A.process=function(n){var i=this,o=this.options,g=n.pointers.length===o.pointers,a=n.distance<o.threshold,s=n.deltaTime<o.time;if(this.reset(),n.eventType&Pr&&this.count===0)return this.failTimeout();if(a&&s&&g){if(n.eventType!==Pt)return this.failTimeout();var C=this.pTime?n.timeStamp-this.pTime<o.interval:!0,I=!this.pCenter||_E(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!I||!C?this.count=1:this.count+=1,this._input=n;var l=this.count%o.taps;if(l===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){i.state=vo,i.tryEmit()},o.interval),Un):vo}return $i},A.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=$i},this.options.interval),$i},A.reset=function(){clearTimeout(this._timer)},A.emit=function(){this.state===vo&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Jh),OI=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({pointers:1},r))||this}var A=t.prototype;return A.attrTest=function(n){var i=this.options.pointers;return i===0||n.pointers.length===i},A.process=function(n){var i=this.state,o=n.eventType,g=i&(Un|$I),a=this.attrTest(n);return g&&(o&Vr||!a)?i|yc:g||a?o&Pt?i|Lg:i&Un?i|$I:Un:$i},t}(Jh);function mj(e){return e===LI?"down":e===Yh?"up":e===Kh?"left":e===_h?"right":""}var dS=function(e){zn(t,e);function t(r){var n;return r===void 0&&(r={}),n=e.call(this,Bi({event:"pan",threshold:10,pointers:1,direction:dj},r))||this,n.pX=null,n.pY=null,n}var A=t.prototype;return A.getTouchAction=function(){var n=this.options.direction,i=[];return n&_i&&i.push(pc),n&rs&&i.push(vc),i},A.directionTest=function(n){var i=this.options,o=!0,g=n.distance,a=n.direction,s=n.deltaX,C=n.deltaY;return a&i.direction||(i.direction&_i?(a=s===0?UE:s<0?Kh:_h,o=s!==this.pX,g=Math.abs(n.deltaX)):(a=C===0?UE:C<0?Yh:LI,o=C!==this.pY,g=Math.abs(n.deltaY))),n.direction=a,o&&g>i.threshold&&a&i.direction},A.attrTest=function(n){return OI.prototype.attrTest.call(this,n)&&(this.state&Un||!(this.state&Un)&&this.directionTest(n))},A.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var i=mj(n.direction);i&&(n.additionalEvent=this.options.event+i),e.prototype.emit.call(this,n)},t}(OI),bj=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({event:"swipe",threshold:10,velocity:.3,direction:_i|rs,pointers:1},r))||this}var A=t.prototype;return A.getTouchAction=function(){return dS.prototype.getTouchAction.call(this)},A.attrTest=function(n){var i=this.options.direction,o;return i&(_i|rs)?o=n.overallVelocity:i&_i?o=n.overallVelocityX:i&rs&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&i&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&Qs(o)>this.options.velocity&&n.eventType&Pt},A.emit=function(n){var i=mj(n.offsetDirection);i&&this.manager.emit(this.options.event+i,n),this.manager.emit(this.options.event,n)},t}(OI),Mj=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({event:"pinch",threshold:0,pointers:2},r))||this}var A=t.prototype;return A.getTouchAction=function(){return[ts]},A.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Un)},A.emit=function(n){if(n.scale!==1){var i=n.scale<1?"in":"out";n.additionalEvent=this.options.event+i}e.prototype.emit.call(this,n)},t}(OI),kj=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({event:"rotate",threshold:0,pointers:2},r))||this}var A=t.prototype;return A.getTouchAction=function(){return[ts]},A.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Un)},t}(OI),Sj=function(e){zn(t,e);function t(r){var n;return r===void 0&&(r={}),n=e.call(this,Bi({event:"press",pointers:1,time:251,threshold:9},r))||this,n._timer=null,n._input=null,n}var A=t.prototype;return A.getTouchAction=function(){return[cj]},A.process=function(n){var i=this,o=this.options,g=n.pointers.length===o.pointers,a=n.distance<o.threshold,s=n.deltaTime>o.time;if(this._input=n,!a||!g||n.eventType&(Pt|Vr)&&!s)this.reset();else if(n.eventType&Pr)this.reset(),this._timer=setTimeout(function(){i.state=vo,i.tryEmit()},o.time);else if(n.eventType&Pt)return vo;return $i},A.reset=function(){clearTimeout(this._timer)},A.emit=function(n){this.state===vo&&(n&&n.eventType&Pt?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=CS(),this.manager.emit(this.options.event,this._input)))},t}(Jh),Nj={domEvents:!1,touchAction:uj,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},n2=[[kj,{enable:!1}],[Mj,{enable:!1},["rotate"]],[bj,{direction:_i}],[dS,{direction:_i},["swipe"]],[Ob],[Ob,{event:"doubletap",taps:2},["tap"]],[Sj]],F7A=1,i2=2;function o2(e,t){var A=e.element;if(A.style){var r;Qo(e.options.cssProps,function(n,i){r=Yv(A.style,i),t?(e.oldCssProps[r]=A.style[r],A.style[r]=n):A.style[r]=e.oldCssProps[r]||""}),t||(e.oldCssProps={})}}function R7A(e,t){var A=document.createEvent("Event");A.initEvent(e,!0,!0),A.gesture=t,t.target.dispatchEvent(A)}var g2=function(){function e(A,r){var n=this;this.options=Es({},Nj,r||{}),this.options.inputTarget=this.options.inputTarget||A,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=A,this.input=S7A(this),this.touchAction=new fj(this,this.options.touchAction),o2(this,!0),Qo(this.options.recognizers,function(i){var o=n.add(new i[0](i[1]));i[2]&&o.recognizeWith(i[2]),i[3]&&o.requireFailure(i[3])},this)}var t=e.prototype;return t.set=function(r){return Es(this.options,r),r.touchAction&&this.touchAction.update(),r.inputTarget&&(this.input.destroy(),this.input.target=r.inputTarget,this.input.init()),this},t.stop=function(r){this.session.stopped=r?i2:F7A},t.recognize=function(r){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(r);var i,o=this.recognizers,g=n.curRecognizer;(!g||g&&g.state&vo)&&(n.curRecognizer=null,g=null);for(var a=0;a<o.length;)i=o[a],n.stopped!==i2&&(!g||i===g||i.canRecognizeWith(g))?i.recognize(r):i.reset(),!g&&i.state&(Un|$I|Lg)&&(n.curRecognizer=i,g=i),a++}},t.get=function(r){if(r instanceof Jh)return r;for(var n=this.recognizers,i=0;i<n.length;i++)if(n[i].options.event===r)return n[i];return null},t.add=function(r){if(GC(r,"add",this))return this;var n=this.get(r.options.event);return n&&this.remove(n),this.recognizers.push(r),r.manager=this,this.touchAction.update(),r},t.remove=function(r){if(GC(r,"remove",this))return this;var n=this.get(r);if(r){var i=this.recognizers,o=vs(i,n);o!==-1&&(i.splice(o,1),this.touchAction.update())}return this},t.on=function(r,n){if(r===void 0||n===void 0)return this;var i=this.handlers;return Qo(wc(r),function(o){i[o]=i[o]||[],i[o].push(n)}),this},t.off=function(r,n){if(r===void 0)return this;var i=this.handlers;return Qo(wc(r),function(o){n?i[o]&&i[o].splice(vs(i[o],n),1):delete i[o]}),this},t.emit=function(r,n){this.options.domEvents&&R7A(r,n);var i=this.handlers[r]&&this.handlers[r].slice();if(!(!i||!i.length)){n.type=r,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<i.length;)i[o](n),o++}},t.destroy=function(){this.element&&o2(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),L7A={touchstart:Pr,touchmove:qs,touchend:Pt,touchcancel:Vr},$7A="touchstart",O7A="touchstart touchmove touchend touchcancel",G7A=function(e){zn(t,e);function t(){var r,n=t.prototype;return n.evTarget=$7A,n.evWin=O7A,r=e.apply(this,arguments)||this,r.started=!1,r}var A=t.prototype;return A.handler=function(n){var i=L7A[n.type];if(i===Pr&&(this.started=!0),!!this.started){var o=x7A.call(this,n,i);i&(Pt|Vr)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,i,{pointers:o[0],changedPointers:o[1],pointerType:Uh,srcEvent:n})}},t}(ml);function x7A(e,t){var A=Dc(e.touches),r=Dc(e.changedTouches);return t&(Pt|Vr)&&(A=uS(A.concat(r),"identifier",!0)),[A,r]}function Pj(e,t,A){var r="DEPRECATED METHOD: "+t+`
|
|
1030
|
+
* Licensed under the MIT license */function Bi(){return Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Bi.apply(this,arguments)}function zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function yB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rb;typeof Object.assign!="function"?Rb=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(n!=null)for(var i in n)n.hasOwnProperty(i)&&(A[i]=n[i])}return A}:Rb=Object.assign;var Es=Rb,Z2=["","webkit","Moz","MS","ms","o"],r7A=typeof document>"u"?{style:{}}:document.createElement("div"),n7A="function",OC=Math.round,Qs=Math.abs,CS=Date.now;function Yv(e,t){for(var A,r,n=t[0].toUpperCase()+t.slice(1),i=0;i<Z2.length;){if(A=Z2[i],r=A?A+n:t,r in e)return r;i++}}var Eo;typeof window>"u"?Eo={}:Eo=window;var Ij=Yv(r7A.style,"touchAction"),lj=Ij!==void 0;function i7A(){if(!lj)return!1;var e={},t=Eo.CSS&&Eo.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(A){return e[A]=t?Eo.CSS.supports("touch-action",A):!0}),e}var uj="compute",cj="auto",Lb="manipulation",ts="none",vc="pan-x",pc="pan-y",mB=i7A(),o7A=/mobile|tablet|ip(ad|hone|od)|android/i,hj="ontouchstart"in Eo,g7A=Yv(Eo,"PointerEvent")!==void 0,a7A=hj&&o7A.test(navigator.userAgent),Uh="touch",s7A="pen",IS="mouse",C7A="kinect",I7A=25,Pr=1,qs=2,Pt=4,Vr=8,UE=1,Kh=2,_h=4,Yh=8,LI=16,_i=Kh|_h,rs=Yh|LI,dj=_i|rs,Bj=["x","y"],KE=["clientX","clientY"];function Qo(e,t,A){var r;if(e)if(e.forEach)e.forEach(t,A);else if(e.length!==void 0)for(r=0;r<e.length;)t.call(A,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(A,e[r],r,e)}function Jv(e,t){return typeof e===n7A?e.apply(t&&t[0]||void 0,t):e}function Ua(e,t){return e.indexOf(t)>-1}function l7A(e){if(Ua(e,ts))return ts;var t=Ua(e,vc),A=Ua(e,pc);return t&&A?ts:t||A?t?vc:pc:Ua(e,Lb)?Lb:cj}var fj=function(){function e(A,r){this.manager=A,this.set(r)}var t=e.prototype;return t.set=function(r){r===uj&&(r=this.compute()),lj&&this.manager.element.style&&mB[r]&&(this.manager.element.style[Ij]=r),this.actions=r.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var r=[];return Qo(this.manager.recognizers,function(n){Jv(n.options.enable,[n])&&(r=r.concat(n.getTouchAction()))}),l7A(r.join(" "))},t.preventDefaults=function(r){var n=r.srcEvent,i=r.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,g=Ua(o,ts)&&!mB[ts],a=Ua(o,pc)&&!mB[pc],s=Ua(o,vc)&&!mB[vc];if(g){var C=r.pointers.length===1,I=r.distance<2,l=r.deltaTime<250;if(C&&I&&l)return}if(!(s&&a)&&(g||a&&i&_i||s&&i&rs))return this.preventSrc(n)},t.preventSrc=function(r){this.manager.session.prevented=!0,r.preventDefault()},e}();function lS(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Ej(e){var t=e.length;if(t===1)return{x:OC(e[0].clientX),y:OC(e[0].clientY)};for(var A=0,r=0,n=0;n<t;)A+=e[n].clientX,r+=e[n].clientY,n++;return{x:OC(A/t),y:OC(r/t)}}function X2(e){for(var t=[],A=0;A<e.pointers.length;)t[A]={clientX:OC(e.pointers[A].clientX),clientY:OC(e.pointers[A].clientY)},A++;return{timeStamp:CS(),pointers:t,center:Ej(t),deltaX:e.deltaX,deltaY:e.deltaY}}function _E(e,t,A){A||(A=Bj);var r=t[A[0]]-e[A[0]],n=t[A[1]]-e[A[1]];return Math.sqrt(r*r+n*n)}function $b(e,t,A){A||(A=Bj);var r=t[A[0]]-e[A[0]],n=t[A[1]]-e[A[1]];return Math.atan2(n,r)*180/Math.PI}function Qj(e,t){return e===t?UE:Qs(e)>=Qs(t)?e<0?Kh:_h:t<0?Yh:LI}function u7A(e,t){var A=t.center,r=e.offsetDelta||{},n=e.prevDelta||{},i=e.prevInput||{};(t.eventType===Pr||i.eventType===Pt)&&(n=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:A.x,y:A.y}),t.deltaX=n.x+(A.x-r.x),t.deltaY=n.y+(A.y-r.y)}function vj(e,t,A){return{x:t/e||0,y:A/e||0}}function c7A(e,t){return _E(t[0],t[1],KE)/_E(e[0],e[1],KE)}function h7A(e,t){return $b(t[1],t[0],KE)+$b(e[1],e[0],KE)}function d7A(e,t){var A=e.lastInterval||t,r=t.timeStamp-A.timeStamp,n,i,o,g;if(t.eventType!==Vr&&(r>I7A||A.velocity===void 0)){var a=t.deltaX-A.deltaX,s=t.deltaY-A.deltaY,C=vj(r,a,s);i=C.x,o=C.y,n=Qs(C.x)>Qs(C.y)?C.x:C.y,g=Qj(a,s),e.lastInterval=t}else n=A.velocity,i=A.velocityX,o=A.velocityY,g=A.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=g}function B7A(e,t){var A=e.session,r=t.pointers,n=r.length;A.firstInput||(A.firstInput=X2(t)),n>1&&!A.firstMultiple?A.firstMultiple=X2(t):n===1&&(A.firstMultiple=!1);var i=A.firstInput,o=A.firstMultiple,g=o?o.center:i.center,a=t.center=Ej(r);t.timeStamp=CS(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=$b(g,a),t.distance=_E(g,a),u7A(A,t),t.offsetDirection=Qj(t.deltaX,t.deltaY);var s=vj(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=s.x,t.overallVelocityY=s.y,t.overallVelocity=Qs(s.x)>Qs(s.y)?s.x:s.y,t.scale=o?c7A(o.pointers,r):1,t.rotation=o?h7A(o.pointers,r):0,t.maxPointers=A.prevInput?t.pointers.length>A.prevInput.maxPointers?t.pointers.length:A.prevInput.maxPointers:t.pointers.length,d7A(A,t);var C=e.element,I=t.srcEvent,l;I.composedPath?l=I.composedPath()[0]:I.path?l=I.path[0]:l=I.target,lS(l,C)&&(C=l),t.target=C}function f7A(e,t,A){var r=A.pointers.length,n=A.changedPointers.length,i=t&Pr&&r-n===0,o=t&(Pt|Vr)&&r-n===0;A.isFirst=!!i,A.isFinal=!!o,i&&(e.session={}),A.eventType=t,B7A(e,A),e.emit("hammer.input",A),e.recognize(A),e.session.prevInput=A}function wc(e){return e.trim().split(/\s+/g)}function $u(e,t,A){Qo(wc(t),function(r){e.addEventListener(r,A,!1)})}function Ou(e,t,A){Qo(wc(t),function(r){e.removeEventListener(r,A,!1)})}function AG(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var ml=function(){function e(A,r){var n=this;this.manager=A,this.callback=r,this.element=A.element,this.target=A.options.inputTarget,this.domHandler=function(i){Jv(A.options.enable,[A])&&n.handler(i)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&$u(this.element,this.evEl,this.domHandler),this.evTarget&&$u(this.target,this.evTarget,this.domHandler),this.evWin&&$u(AG(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&Ou(this.element,this.evEl,this.domHandler),this.evTarget&&Ou(this.target,this.evTarget,this.domHandler),this.evWin&&Ou(AG(this.element),this.evWin,this.domHandler)},e}();function vs(e,t,A){if(e.indexOf&&!A)return e.indexOf(t);for(var r=0;r<e.length;){if(A&&e[r][A]==t||!A&&e[r]===t)return r;r++}return-1}var E7A={pointerdown:Pr,pointermove:qs,pointerup:Pt,pointercancel:Vr,pointerout:Vr},Q7A={2:Uh,3:s7A,4:IS,5:C7A},pj="pointerdown",wj="pointermove pointerup pointercancel";Eo.MSPointerEvent&&!Eo.PointerEvent&&(pj="MSPointerDown",wj="MSPointerMove MSPointerUp MSPointerCancel");var Dj=function(e){zn(t,e);function t(){var r,n=t.prototype;return n.evEl=pj,n.evWin=wj,r=e.apply(this,arguments)||this,r.store=r.manager.session.pointerEvents=[],r}var A=t.prototype;return A.handler=function(n){var i=this.store,o=!1,g=n.type.toLowerCase().replace("ms",""),a=E7A[g],s=Q7A[n.pointerType]||n.pointerType,C=s===Uh,I=vs(i,n.pointerId,"pointerId");a&Pr&&(n.button===0||C)?I<0&&(i.push(n),I=i.length-1):a&(Pt|Vr)&&(o=!0),!(I<0)&&(i[I]=n,this.callback(this.manager,a,{pointers:i,changedPointers:[n],pointerType:s,srcEvent:n}),o&&i.splice(I,1))},t}(ml);function Dc(e){return Array.prototype.slice.call(e,0)}function uS(e,t,A){for(var r=[],n=[],i=0;i<e.length;){var o=t?e[i][t]:e[i];vs(n,o)<0&&r.push(e[i]),n[i]=o,i++}return A&&(t?r=r.sort(function(g,a){return g[t]>a[t]}):r=r.sort()),r}var v7A={touchstart:Pr,touchmove:qs,touchend:Pt,touchcancel:Vr},p7A="touchstart touchmove touchend touchcancel",cS=function(e){zn(t,e);function t(){var r;return t.prototype.evTarget=p7A,r=e.apply(this,arguments)||this,r.targetIds={},r}var A=t.prototype;return A.handler=function(n){var i=v7A[n.type],o=w7A.call(this,n,i);o&&this.callback(this.manager,i,{pointers:o[0],changedPointers:o[1],pointerType:Uh,srcEvent:n})},t}(ml);function w7A(e,t){var A=Dc(e.touches),r=this.targetIds;if(t&(Pr|qs)&&A.length===1)return r[A[0].identifier]=!0,[A,A];var n,i,o=Dc(e.changedTouches),g=[],a=this.target;if(i=A.filter(function(s){return lS(s.target,a)}),t===Pr)for(n=0;n<i.length;)r[i[n].identifier]=!0,n++;for(n=0;n<o.length;)r[o[n].identifier]&&g.push(o[n]),t&(Pt|Vr)&&delete r[o[n].identifier],n++;if(g.length)return[uS(i.concat(g),"identifier",!0),g]}var D7A={mousedown:Pr,mousemove:qs,mouseup:Pt},y7A="mousedown",m7A="mousemove mouseup",hS=function(e){zn(t,e);function t(){var r,n=t.prototype;return n.evEl=y7A,n.evWin=m7A,r=e.apply(this,arguments)||this,r.pressed=!1,r}var A=t.prototype;return A.handler=function(n){var i=D7A[n.type];i&Pr&&n.button===0&&(this.pressed=!0),i&qs&&n.which!==1&&(i=Pt),this.pressed&&(i&Pt&&(this.pressed=!1),this.callback(this.manager,i,{pointers:[n],changedPointers:[n],pointerType:IS,srcEvent:n}))},t}(ml),b7A=2500,eG=25;function tG(e){var t=e.changedPointers,A=t[0];if(A.identifier===this.primaryTouch){var r={x:A.clientX,y:A.clientY},n=this.lastTouches;this.lastTouches.push(r);var i=function(){var g=n.indexOf(r);g>-1&&n.splice(g,1)};setTimeout(i,b7A)}}function M7A(e,t){e&Pr?(this.primaryTouch=t.changedPointers[0].identifier,tG.call(this,t)):e&(Pt|Vr)&&tG.call(this,t)}function k7A(e){for(var t=e.srcEvent.clientX,A=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var n=this.lastTouches[r],i=Math.abs(t-n.x),o=Math.abs(A-n.y);if(i<=eG&&o<=eG)return!0}return!1}var yj=function(){var e=function(t){zn(A,t);function A(n,i){var o;return o=t.call(this,n,i)||this,o.handler=function(g,a,s){var C=s.pointerType===Uh,I=s.pointerType===IS;if(!(I&&s.sourceCapabilities&&s.sourceCapabilities.firesTouchEvents)){if(C)M7A.call(yB(yB(o)),a,s);else if(I&&k7A.call(yB(yB(o)),s))return;o.callback(g,a,s)}},o.touch=new cS(o.manager,o.handler),o.mouse=new hS(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var r=A.prototype;return r.destroy=function(){this.touch.destroy(),this.mouse.destroy()},A}(ml);return e}();function S7A(e){var t,A=e.options.inputClass;return A?t=A:g7A?t=Dj:a7A?t=cS:hj?t=yj:t=hS,new t(e,f7A)}function GC(e,t,A){return Array.isArray(e)?(Qo(e,A[t],A),!0):!1}var bf=1,Un=2,$I=4,Lg=8,vo=Lg,yc=16,$i=32,N7A=1;function P7A(){return N7A++}function bB(e,t){var A=t.manager;return A?A.get(e):e}function rG(e){return e&yc?"cancel":e&Lg?"end":e&$I?"move":e&Un?"start":""}var Jh=function(){function e(A){A===void 0&&(A={}),this.options=Bi({enable:!0},A),this.id=P7A(),this.manager=null,this.state=bf,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(r){return Es(this.options,r),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(r){if(GC(r,"recognizeWith",this))return this;var n=this.simultaneous;return r=bB(r,this),n[r.id]||(n[r.id]=r,r.recognizeWith(this)),this},t.dropRecognizeWith=function(r){return GC(r,"dropRecognizeWith",this)?this:(r=bB(r,this),delete this.simultaneous[r.id],this)},t.requireFailure=function(r){if(GC(r,"requireFailure",this))return this;var n=this.requireFail;return r=bB(r,this),vs(n,r)===-1&&(n.push(r),r.requireFailure(this)),this},t.dropRequireFailure=function(r){if(GC(r,"dropRequireFailure",this))return this;r=bB(r,this);var n=vs(this.requireFail,r);return n>-1&&this.requireFail.splice(n,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(r){return!!this.simultaneous[r.id]},t.emit=function(r){var n=this,i=this.state;function o(g){n.manager.emit(g,r)}i<Lg&&o(n.options.event+rG(i)),o(n.options.event),r.additionalEvent&&o(r.additionalEvent),i>=Lg&&o(n.options.event+rG(i))},t.tryEmit=function(r){if(this.canEmit())return this.emit(r);this.state=$i},t.canEmit=function(){for(var r=0;r<this.requireFail.length;){if(!(this.requireFail[r].state&($i|bf)))return!1;r++}return!0},t.recognize=function(r){var n=Es({},r);if(!Jv(this.options.enable,[this,n])){this.reset(),this.state=$i;return}this.state&(vo|yc|$i)&&(this.state=bf),this.state=this.process(n),this.state&(Un|$I|Lg|yc)&&this.tryEmit(n)},t.process=function(r){},t.getTouchAction=function(){},t.reset=function(){},e}(),Ob=function(e){zn(t,e);function t(r){var n;return r===void 0&&(r={}),n=e.call(this,Bi({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},r))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var A=t.prototype;return A.getTouchAction=function(){return[Lb]},A.process=function(n){var i=this,o=this.options,g=n.pointers.length===o.pointers,a=n.distance<o.threshold,s=n.deltaTime<o.time;if(this.reset(),n.eventType&Pr&&this.count===0)return this.failTimeout();if(a&&s&&g){if(n.eventType!==Pt)return this.failTimeout();var C=this.pTime?n.timeStamp-this.pTime<o.interval:!0,I=!this.pCenter||_E(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!I||!C?this.count=1:this.count+=1,this._input=n;var l=this.count%o.taps;if(l===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){i.state=vo,i.tryEmit()},o.interval),Un):vo}return $i},A.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=$i},this.options.interval),$i},A.reset=function(){clearTimeout(this._timer)},A.emit=function(){this.state===vo&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Jh),OI=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({pointers:1},r))||this}var A=t.prototype;return A.attrTest=function(n){var i=this.options.pointers;return i===0||n.pointers.length===i},A.process=function(n){var i=this.state,o=n.eventType,g=i&(Un|$I),a=this.attrTest(n);return g&&(o&Vr||!a)?i|yc:g||a?o&Pt?i|Lg:i&Un?i|$I:Un:$i},t}(Jh);function mj(e){return e===LI?"down":e===Yh?"up":e===Kh?"left":e===_h?"right":""}var dS=function(e){zn(t,e);function t(r){var n;return r===void 0&&(r={}),n=e.call(this,Bi({event:"pan",threshold:10,pointers:1,direction:dj},r))||this,n.pX=null,n.pY=null,n}var A=t.prototype;return A.getTouchAction=function(){var n=this.options.direction,i=[];return n&_i&&i.push(pc),n&rs&&i.push(vc),i},A.directionTest=function(n){var i=this.options,o=!0,g=n.distance,a=n.direction,s=n.deltaX,C=n.deltaY;return a&i.direction||(i.direction&_i?(a=s===0?UE:s<0?Kh:_h,o=s!==this.pX,g=Math.abs(n.deltaX)):(a=C===0?UE:C<0?Yh:LI,o=C!==this.pY,g=Math.abs(n.deltaY))),n.direction=a,o&&g>i.threshold&&a&i.direction},A.attrTest=function(n){return OI.prototype.attrTest.call(this,n)&&(this.state&Un||!(this.state&Un)&&this.directionTest(n))},A.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var i=mj(n.direction);i&&(n.additionalEvent=this.options.event+i),e.prototype.emit.call(this,n)},t}(OI),bj=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({event:"swipe",threshold:10,velocity:.3,direction:_i|rs,pointers:1},r))||this}var A=t.prototype;return A.getTouchAction=function(){return dS.prototype.getTouchAction.call(this)},A.attrTest=function(n){var i=this.options.direction,o;return i&(_i|rs)?o=n.overallVelocity:i&_i?o=n.overallVelocityX:i&rs&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&i&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&Qs(o)>this.options.velocity&&n.eventType&Pt},A.emit=function(n){var i=mj(n.offsetDirection);i&&this.manager.emit(this.options.event+i,n),this.manager.emit(this.options.event,n)},t}(OI),Mj=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({event:"pinch",threshold:0,pointers:2},r))||this}var A=t.prototype;return A.getTouchAction=function(){return[ts]},A.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Un)},A.emit=function(n){if(n.scale!==1){var i=n.scale<1?"in":"out";n.additionalEvent=this.options.event+i}e.prototype.emit.call(this,n)},t}(OI),kj=function(e){zn(t,e);function t(r){return r===void 0&&(r={}),e.call(this,Bi({event:"rotate",threshold:0,pointers:2},r))||this}var A=t.prototype;return A.getTouchAction=function(){return[ts]},A.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Un)},t}(OI),Sj=function(e){zn(t,e);function t(r){var n;return r===void 0&&(r={}),n=e.call(this,Bi({event:"press",pointers:1,time:251,threshold:9},r))||this,n._timer=null,n._input=null,n}var A=t.prototype;return A.getTouchAction=function(){return[cj]},A.process=function(n){var i=this,o=this.options,g=n.pointers.length===o.pointers,a=n.distance<o.threshold,s=n.deltaTime>o.time;if(this._input=n,!a||!g||n.eventType&(Pt|Vr)&&!s)this.reset();else if(n.eventType&Pr)this.reset(),this._timer=setTimeout(function(){i.state=vo,i.tryEmit()},o.time);else if(n.eventType&Pt)return vo;return $i},A.reset=function(){clearTimeout(this._timer)},A.emit=function(n){this.state===vo&&(n&&n.eventType&Pt?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=CS(),this.manager.emit(this.options.event,this._input)))},t}(Jh),Nj={domEvents:!1,touchAction:uj,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},nG=[[kj,{enable:!1}],[Mj,{enable:!1},["rotate"]],[bj,{direction:_i}],[dS,{direction:_i},["swipe"]],[Ob],[Ob,{event:"doubletap",taps:2},["tap"]],[Sj]],F7A=1,iG=2;function oG(e,t){var A=e.element;if(A.style){var r;Qo(e.options.cssProps,function(n,i){r=Yv(A.style,i),t?(e.oldCssProps[r]=A.style[r],A.style[r]=n):A.style[r]=e.oldCssProps[r]||""}),t||(e.oldCssProps={})}}function R7A(e,t){var A=document.createEvent("Event");A.initEvent(e,!0,!0),A.gesture=t,t.target.dispatchEvent(A)}var gG=function(){function e(A,r){var n=this;this.options=Es({},Nj,r||{}),this.options.inputTarget=this.options.inputTarget||A,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=A,this.input=S7A(this),this.touchAction=new fj(this,this.options.touchAction),oG(this,!0),Qo(this.options.recognizers,function(i){var o=n.add(new i[0](i[1]));i[2]&&o.recognizeWith(i[2]),i[3]&&o.requireFailure(i[3])},this)}var t=e.prototype;return t.set=function(r){return Es(this.options,r),r.touchAction&&this.touchAction.update(),r.inputTarget&&(this.input.destroy(),this.input.target=r.inputTarget,this.input.init()),this},t.stop=function(r){this.session.stopped=r?iG:F7A},t.recognize=function(r){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(r);var i,o=this.recognizers,g=n.curRecognizer;(!g||g&&g.state&vo)&&(n.curRecognizer=null,g=null);for(var a=0;a<o.length;)i=o[a],n.stopped!==iG&&(!g||i===g||i.canRecognizeWith(g))?i.recognize(r):i.reset(),!g&&i.state&(Un|$I|Lg)&&(n.curRecognizer=i,g=i),a++}},t.get=function(r){if(r instanceof Jh)return r;for(var n=this.recognizers,i=0;i<n.length;i++)if(n[i].options.event===r)return n[i];return null},t.add=function(r){if(GC(r,"add",this))return this;var n=this.get(r.options.event);return n&&this.remove(n),this.recognizers.push(r),r.manager=this,this.touchAction.update(),r},t.remove=function(r){if(GC(r,"remove",this))return this;var n=this.get(r);if(r){var i=this.recognizers,o=vs(i,n);o!==-1&&(i.splice(o,1),this.touchAction.update())}return this},t.on=function(r,n){if(r===void 0||n===void 0)return this;var i=this.handlers;return Qo(wc(r),function(o){i[o]=i[o]||[],i[o].push(n)}),this},t.off=function(r,n){if(r===void 0)return this;var i=this.handlers;return Qo(wc(r),function(o){n?i[o]&&i[o].splice(vs(i[o],n),1):delete i[o]}),this},t.emit=function(r,n){this.options.domEvents&&R7A(r,n);var i=this.handlers[r]&&this.handlers[r].slice();if(!(!i||!i.length)){n.type=r,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<i.length;)i[o](n),o++}},t.destroy=function(){this.element&&oG(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),L7A={touchstart:Pr,touchmove:qs,touchend:Pt,touchcancel:Vr},$7A="touchstart",O7A="touchstart touchmove touchend touchcancel",G7A=function(e){zn(t,e);function t(){var r,n=t.prototype;return n.evTarget=$7A,n.evWin=O7A,r=e.apply(this,arguments)||this,r.started=!1,r}var A=t.prototype;return A.handler=function(n){var i=L7A[n.type];if(i===Pr&&(this.started=!0),!!this.started){var o=x7A.call(this,n,i);i&(Pt|Vr)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,i,{pointers:o[0],changedPointers:o[1],pointerType:Uh,srcEvent:n})}},t}(ml);function x7A(e,t){var A=Dc(e.touches),r=Dc(e.changedTouches);return t&(Pt|Vr)&&(A=uS(A.concat(r),"identifier",!0)),[A,r]}function Pj(e,t,A){var r="DEPRECATED METHOD: "+t+`
|
|
1031
1031
|
`+A+` AT
|
|
1032
|
-
`;return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,r,i),e.apply(this,arguments)}}var Fj=Pj(function(e,t,A){for(var r=Object.keys(t),n=0;n<r.length;)(!A||A&&e[r[n]]===void 0)&&(e[r[n]]=t[r[n]]),n++;return e},"extend","Use `assign`."),T7A=Pj(function(e,t){return Fj(e,t,!0)},"merge","Use `assign`.");function H7A(e,t,A){var r=t.prototype,n;n=e.prototype=Object.create(r),n.constructor=e,n._super=r,A&&Es(n,A)}function
|
|
1033
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function _7A(e,t){var A;if(e){if(typeof e=="string")return s2(e,t);var r=_v(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return oS(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s2(e,t)}}function s2(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}var Lj=Uv("DELETE");function Y7A(e){for(var t,A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return $j.apply(void 0,Kv(t=[{},e]).call(t,r))}function $j(){var e=YE.apply(void 0,arguments);return Gj(e),e}function YE(){for(var e=arguments.length,t=new Array(e),A=0;A<e;A++)t[A]=arguments[A];if(t.length<2)return t[0];if(t.length>2){var r;return YE.apply(void 0,Kv(r=[$j(t[0],t[1])]).call(r,Jr(_v(t).call(t,2))))}var n=t[0],i=t[1];if(n instanceof Date&&i instanceof Date)return n.setTime(i.getTime()),n;var o=Rj(Y6A(i)),g;try{for(o.s();!(g=o.n()).done;){var a=g.value;Object.prototype.propertyIsEnumerable.call(i,a)&&(i[a]===Lj?delete n[a]:n[a]!==null&&i[a]!==null&&typeof n[a]=="object"&&typeof i[a]=="object"&&!un(n[a])&&!un(i[a])?n[a]=YE(n[a],i[a]):n[a]=Oj(i[a]))}}catch(s){o.e(s)}finally{o.f()}return n}function Oj(e){return un(e)?ei(e).call(e,function(t){return Oj(t)}):typeof e=="object"&&e!==null?e instanceof Date?new Date(e.getTime()):YE({},e):e}function Gj(e){for(var t=0,A=sS(e);t<A.length;t++){var r=A[t];e[r]===Lj?delete e[r]:typeof e[r]=="object"&&e[r]!==null&&Gj(e[r])}}function J7A(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get(){return{set:e}}}}var z7A=typeof window<"u"?window.Hammer||K7A:function(){return J7A()};function so(e){var t=this,A;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){t._dom.overlay.parentNode.removeChild(t._dom.overlay)});var r=z7A(this._dom.overlay);r.on("tap",Rq(A=this._onTapOverlay).call(A,this)),this._cleanupQueue.push(function(){r.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];fs(n).call(n,function(i){r.on(i,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(i){W7A(i.target,e)||t.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",t._onClick)})),this._escListener=function(i){("key"in i?i.key==="Escape":i.keyCode===27)&&t.deactivate()}}t7A(so.prototype);so.current=null;so.prototype.destroy=function(){var e,t;this.deactivate();var A=Rj(MZA(e=tj(t=this._cleanupQueue).call(t,0)).call(e)),r;try{for(A.s();!(r=A.n()).done;){var n=r.value;n()}}catch(i){A.e(i)}finally{A.f()}};so.prototype.activate=function(){so.current&&so.current.deactivate(),so.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};so.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};so.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function W7A(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var q7A=bv,j7A=El,V7A=TypeError,xj=function(e){if(q7A(e))return e;throw new V7A(j7A(e)+" is not a constructor")},Z7A=JA,X7A=Or,iy=hl,AXA=Pq,C2=xj,eXA=pn,I2=hr,tXA=zs,Tj=Re,BS=X7A("Reflect","construct"),rXA=Object.prototype,nXA=[].push,Hj=Tj(function(){function e(){}return!(BS(function(){},[],e)instanceof e)}),Uj=!Tj(function(){BS(function(){})}),l2=Hj||Uj;Z7A({target:"Reflect",stat:!0,forced:l2,sham:l2},{construct:function(t,A){C2(t),eXA(A);var r=arguments.length<3?t:C2(arguments[2]);if(Uj&&!Hj)return BS(t,A,r);if(t===r){switch(A.length){case 0:return new t;case 1:return new t(A[0]);case 2:return new t(A[0],A[1]);case 3:return new t(A[0],A[1],A[2]);case 4:return new t(A[0],A[1],A[2],A[3])}var n=[null];return iy(nXA,n,A),new(iy(AXA,t,n))}var i=r.prototype,o=tXA(I2(i)?i:rXA),g=iy(t,o,A);return I2(g)?g:o}});var iXA=ot,oXA=iXA.Reflect.construct,gXA=oXA,aXA=gXA,sXA=aXA,Mf=ZA(sXA),CXA=ot,IXA=CXA.Object.getOwnPropertySymbols,lXA=IXA,uXA=lXA,cXA=uXA,u2=ZA(cXA),Kj={exports:{}},hXA=JA,dXA=Re,BXA=to,_j=_s.f,Yj=Ar,fXA=!Yj||dXA(function(){_j(1)});hXA({target:"Object",stat:!0,forced:fXA,sham:!Yj},{getOwnPropertyDescriptor:function(t,A){return _j(BXA(t),A)}});var EXA=ot,Jj=EXA.Object,QXA=Kj.exports=function(t,A){return Jj.getOwnPropertyDescriptor(t,A)};Jj.getOwnPropertyDescriptor.sham&&(QXA.sham=!0);var vXA=Kj.exports,pXA=vXA,wXA=pXA,DXA=wXA,zj=ZA(DXA),yXA=JA,mXA=Ar,bXA=aS,MXA=to,kXA=_s,SXA=vl;yXA({target:"Object",stat:!0,sham:!mXA},{getOwnPropertyDescriptors:function(t){for(var A=MXA(t),r=kXA.f,n=bXA(A),i={},o=0,g,a;n.length>o;)a=r(A,g=n[o++]),a!==void 0&&SXA(i,g,a);return i}});var NXA=ot,PXA=NXA.Object.getOwnPropertyDescriptors,FXA=PXA,RXA=FXA,LXA=RXA,c2=ZA(LXA),Wj={exports:{}},$XA=JA,OXA=Ar,h2=kv.f;$XA({target:"Object",stat:!0,forced:Object.defineProperties!==h2,sham:!OXA},{defineProperties:h2});var GXA=ot,qj=GXA.Object,xXA=Wj.exports=function(t,A){return qj.defineProperties(t,A)};qj.defineProperties.sham&&(xXA.sham=!0);var TXA=Wj.exports,HXA=TXA,UXA=HXA,KXA=UXA,_XA=ZA(KXA),YXA=bW,JXA=ZA(YXA);function jj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zXA=nj,WXA=zXA,qXA=WXA,jXA=qXA,Vj=jXA,VXA=ZA(Vj),ZXA=JA,XXA=Bq;ZXA({target:"Object",stat:!0},{setPrototypeOf:XXA});var AAe=ot,eAe=AAe.Object.setPrototypeOf,tAe=eAe,rAe=tAe,nAe=rAe,iAe=nAe,oAe=iAe,gAe=oAe,Zj=gAe,Gb=ZA(Zj),aAe=Fq,sAe=aAe,CAe=sAe,IAe=CAe,lAe=IAe,Xj=ZA(lAe);function xb(e,t){var A;return xb=Gb?Xj(A=Gb).call(A):function(n,i){return n.__proto__=i,n},xb(e,t)}function uAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=VXA(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Dv(e,"prototype",{writable:!1}),t&&xb(e,t)}function cAe(e,t){if(t&&(RI(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jj(e)}var hAe=v9A,dAe=hAe,BAe=dAe,fAe=BAe,AV=fAe,d2=ZA(AV);function JE(e){var t;return JE=Gb?Xj(t=d2).call(t):function(r){return r.__proto__||d2(r)},JE(e)}var eV={exports:{}},tV={exports:{}};(function(e){var t=rS,A=Mq;function r(n){"@babel/helpers - typeof";return e.exports=r=typeof t=="function"&&typeof A=="symbol"?function(i){return typeof i}:function(i){return i&&typeof t=="function"&&i.constructor===t&&i!==t.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(tV);var EAe=tV.exports,QAe=Xq,vAe=QAe,pAe=vAe,wAe=pAe,DAe=wAe,B2=$t,yAe=aS,mAe=_s,bAe=nn,MAe=function(e,t,A){for(var r=yAe(t),n=bAe.f,i=mAe.f,o=0;o<r.length;o++){var g=r[o];!B2(e,g)&&!(A&&B2(A,g))&&n(e,g,i(t,g))}},kAe=hr,SAe=Ho,NAe=function(e,t){kAe(t)&&"cause"in t&&SAe(e,"cause",t.cause)},PAe=Xe,rV=Error,FAe=PAe("".replace),RAe=function(e){return String(new rV(e).stack)}("zxcasd"),nV=/\n\s*at [^:]*:[^\n]*/,LAe=nV.test(RAe),$Ae=function(e,t){if(LAe&&typeof e=="string"&&!rV.prepareStackTrace)for(;t--;)e=FAe(e,nV,"");return e},OAe=Re,GAe=Ys,xAe=!OAe(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",GAe(1,7)),e.stack!==7):!0}),TAe=Ho,HAe=$Ae,UAe=xAe,f2=Error.captureStackTrace,KAe=function(e,t,A,r){UAe&&(f2?f2(e,t):TAe(e,"stack",HAe(A,r)))},_Ae=ha,YAe=er,JAe=pn,zAe=El,WAe=Oq,qAe=wn,E2=Lt,jAe=iS,VAe=Hv,Q2=$q,ZAe=TypeError,kf=function(e,t){this.stopped=e,this.result=t},v2=kf.prototype,js=function(e,t,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),i=!!(A&&A.IS_RECORD),o=!!(A&&A.IS_ITERATOR),g=!!(A&&A.INTERRUPTED),a=_Ae(t,r),s,C,I,l,u,c,h,d=function(f){return s&&Q2(s,"normal",f),new kf(!0,f)},B=function(f){return n?(JAe(f),g?a(f[0],f[1],d):a(f[0],f[1])):g?a(f,d):a(f)};if(i)s=e.iterator;else if(o)s=e;else{if(C=VAe(e),!C)throw new ZAe(zAe(e)+" is not iterable");if(WAe(C)){for(I=0,l=qAe(e);l>I;I++)if(u=B(e[I]),u&&E2(v2,u))return u;return new kf(!1)}s=jAe(e,C)}for(c=i?e.next:s.next;!(h=YAe(c,s)).done;){try{u=B(h.value)}catch(f){Q2(s,"throw",f)}if(typeof u=="object"&&u&&E2(v2,u))return u}return new kf(!1)},XAe=Js,Aee=function(e,t){return e===void 0?arguments.length<2?"":t:XAe(e)},eee=JA,tee=Lt,ree=Gv,zE=Bq,nee=MAe,iV=zs,oy=Ho,gy=Ys,iee=NAe,oee=KAe,gee=js,aee=Aee,see=at,Cee=see("toStringTag"),WE=Error,Iee=[].push,GI=function(t,A){var r=tee(ay,this),n;zE?n=zE(new WE,r?ree(this):ay):(n=r?this:iV(ay),oy(n,Cee,"Error")),A!==void 0&&oy(n,"message",aee(A)),oee(n,GI,n.stack,1),arguments.length>2&&iee(n,arguments[2]);var i=[];return gee(t,Iee,{that:i}),oy(n,"errors",i),n};zE?zE(GI,WE):nee(GI,WE,{name:!0});var ay=GI.prototype=iV(WE.prototype,{constructor:gy(1,GI),message:gy(1,""),name:gy(1,"AggregateError")});eee({global:!0,constructor:!0,arity:2},{AggregateError:GI});var lee=Or,uee=Wk,cee=at,hee=Ar,p2=cee("species"),oV=function(e){var t=lee(e);hee&&t&&!t[p2]&&uee(t,p2,{configurable:!0,get:function(){return this}})},dee=Lt,Bee=TypeError,fS=function(e,t){if(dee(t,e))return e;throw new Bee("Incorrect invocation")},w2=pn,fee=xj,Eee=dl,Qee=at,vee=Qee("species"),gV=function(e,t){var A=w2(e).constructor,r;return A===void 0||Eee(r=w2(A)[vee])?t:fee(r)},pee=ca,aV=/(?:ipad|iphone|ipod).*applewebkit/i.test(pee),dn=it,wee=hl,Dee=ha,D2=ht,yee=$t,sV=Re,y2=OW,mee=xh,m2=Kk,bee=ij,Mee=aV,kee=Hh,Tb=dn.setImmediate,Hb=dn.clearImmediate,See=dn.process,sy=dn.Dispatch,Nee=dn.Function,b2=dn.MessageChannel,Pee=dn.String,Cy=0,Gu={},M2="onreadystatechange",mc,Ma,Iy,ly;sV(function(){mc=dn.location});var ES=function(e){if(yee(Gu,e)){var t=Gu[e];delete Gu[e],t()}},uy=function(e){return function(){ES(e)}},k2=function(e){ES(e.data)},S2=function(e){dn.postMessage(Pee(e),mc.protocol+"//"+mc.host)};(!Tb||!Hb)&&(Tb=function(t){bee(arguments.length,1);var A=D2(t)?t:Nee(t),r=mee(arguments,1);return Gu[++Cy]=function(){wee(A,void 0,r)},Ma(Cy),Cy},Hb=function(t){delete Gu[t]},kee?Ma=function(e){See.nextTick(uy(e))}:sy&&sy.now?Ma=function(e){sy.now(uy(e))}:b2&&!Mee?(Iy=new b2,ly=Iy.port2,Iy.port1.onmessage=k2,Ma=Dee(ly.postMessage,ly)):dn.addEventListener&&D2(dn.postMessage)&&!dn.importScripts&&mc&&mc.protocol!=="file:"&&!sV(S2)?(Ma=S2,dn.addEventListener("message",k2,!1)):M2 in m2("script")?Ma=function(e){y2.appendChild(m2("script"))[M2]=function(){y2.removeChild(this),ES(e)}}:Ma=function(e){setTimeout(uy(e),0)});var CV={set:Tb,clear:Hb},IV=function(){this.head=null,this.tail=null};IV.prototype={add:function(e){var t={item:e,next:null},A=this.tail;A?A.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var lV=IV,Fee=ca,Ree=/ipad|iphone|ipod/i.test(Fee)&&typeof Pebble<"u",Lee=ca,$ee=/web0s(?!.*chrome)/i.test(Lee),ps=it,N2=ha,Oee=_s.f,cy=CV.set,Gee=lV,xee=aV,Tee=Ree,Hee=$ee,hy=Hh,P2=ps.MutationObserver||ps.WebKitMutationObserver,F2=ps.document,R2=ps.process,MB=ps.Promise,L2=Oee(ps,"queueMicrotask"),Ub=L2&&L2.value,BC,dy,By,kB,$2;if(!Ub){var SB=new Gee,NB=function(){var e,t;for(hy&&(e=R2.domain)&&e.exit();t=SB.get();)try{t()}catch(A){throw SB.head&&BC(),A}e&&e.enter()};!xee&&!hy&&!Hee&&P2&&F2?(dy=!0,By=F2.createTextNode(""),new P2(NB).observe(By,{characterData:!0}),BC=function(){By.data=dy=!dy}):!Tee&&MB&&MB.resolve?(kB=MB.resolve(void 0),kB.constructor=MB,$2=N2(kB.then,kB),BC=function(){$2(NB)}):hy?BC=function(){R2.nextTick(NB)}:(cy=N2(cy,ps),BC=function(){cy(NB)}),Ub=function(e){SB.head||BC(),SB.add(e)}}var Uee=Ub,Kee=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},bl=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},_ee=it,Ml=_ee.Promise,uV=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Yee=uV,Jee=Hh,zee=!Yee&&!Jee&&typeof window=="object"&&typeof document=="object",Wee=it,xu=Ml,qee=ht,jee=DW,Vee=SW,Zee=at,Xee=zee,Ate=uV,fy=Bl,O2=xu&&xu.prototype,ete=Zee("species"),Kb=!1,cV=qee(Wee.PromiseRejectionEvent),tte=jee("Promise",function(){var e=Vee(xu),t=e!==String(xu);if(!t&&fy===66||!(O2.catch&&O2.finally))return!0;if(!fy||fy<51||!/native code/.test(e)){var A=new xu(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=A.constructor={};if(n[ete]=r,Kb=A.then(function(){})instanceof r,!Kb)return!0}return!t&&(Xee||Ate)&&!cV}),zh={CONSTRUCTOR:tte,REJECTION_EVENT:cV,SUBCLASSING:Kb},ro={},G2=tn,rte=TypeError,nte=function(e){var t,A;this.promise=new e(function(r,n){if(t!==void 0||A!==void 0)throw new rte("Bad Promise constructor");t=r,A=n}),this.resolve=G2(t),this.reject=G2(A)};ro.f=function(e){return new nte(e)};var ite=JA,qE=Hh,jg=it,Wh=er,ote=pl,gte=Ws,ate=oV,ste=tn,_b=ht,Cte=hr,Ite=fS,lte=gV,hV=CV.set,QS=Uee,ute=Kee,cte=bl,hte=lV,dV=wl,Yb=Ml,BV=zh,fV=ro,zv="Promise",EV=BV.CONSTRUCTOR,dte=BV.REJECTION_EVENT,Ey=dV.getterFor(zv),Bte=dV.set,fte=Yb&&Yb.prototype,xC=Yb,Qy=fte,QV=jg.TypeError,Jb=jg.document,vS=jg.process,zb=fV.f,Ete=zb,Qte=!!(Jb&&Jb.createEvent&&jg.dispatchEvent),vV="unhandledrejection",vte="rejectionhandled",x2=0,pV=1,pte=2,pS=1,wV=2,PB,T2,wte,DV=function(e){var t;return Cte(e)&&_b(t=e.then)?t:!1},yV=function(e,t){var A=t.value,r=t.state===pV,n=r?e.ok:e.fail,i=e.resolve,o=e.reject,g=e.domain,a,s,C;try{n?(r||(t.rejection===wV&&yte(t),t.rejection=pS),n===!0?a=A:(g&&g.enter(),a=n(A),g&&(g.exit(),C=!0)),a===e.promise?o(new QV("Promise-chain cycle")):(s=DV(a))?Wh(s,a,i,o):i(a)):o(A)}catch(I){g&&!C&&g.exit(),o(I)}},mV=function(e,t){e.notified||(e.notified=!0,QS(function(){for(var A=e.reactions,r;r=A.get();)yV(r,e);e.notified=!1,t&&!e.rejection&&Dte(e)}))},bV=function(e,t,A){var r,n;Qte?(r=Jb.createEvent("Event"),r.promise=t,r.reason=A,r.initEvent(e,!1,!0),jg.dispatchEvent(r)):r={promise:t,reason:A},!dte&&(n=jg["on"+e])?n(r):e===vV&&ute("Unhandled promise rejection",A)},Dte=function(e){Wh(hV,jg,function(){var t=e.facade,A=e.value,r=H2(e),n;if(r&&(n=cte(function(){qE?vS.emit("unhandledRejection",A,t):bV(vV,t,A)}),e.rejection=qE||H2(e)?wV:pS,n.error))throw n.value})},H2=function(e){return e.rejection!==pS&&!e.parent},yte=function(e){Wh(hV,jg,function(){var t=e.facade;qE?vS.emit("rejectionHandled",t):bV(vte,t,e.value)})},TC=function(e,t,A){return function(r){e(t,r,A)}},oI=function(e,t,A){e.done||(e.done=!0,A&&(e=A),e.value=t,e.state=pte,mV(e,!0))},Wb=function(e,t,A){if(!e.done){e.done=!0,A&&(e=A);try{if(e.facade===t)throw new QV("Promise can't be resolved itself");var r=DV(t);r?QS(function(){var n={done:!1};try{Wh(r,t,TC(Wb,n,e),TC(oI,n,e))}catch(i){oI(n,i,e)}}):(e.value=t,e.state=pV,mV(e,!1))}catch(n){oI({done:!1},n,e)}}};EV&&(xC=function(t){Ite(this,Qy),ste(t),Wh(PB,this);var A=Ey(this);try{t(TC(Wb,A),TC(oI,A))}catch(r){oI(A,r)}},Qy=xC.prototype,PB=function(t){Bte(this,{type:zv,done:!1,notified:!1,parent:!1,reactions:new hte,rejection:!1,state:x2,value:void 0})},PB.prototype=ote(Qy,"then",function(t,A){var r=Ey(this),n=zb(lte(this,xC));return r.parent=!0,n.ok=_b(t)?t:!0,n.fail=_b(A)&&A,n.domain=qE?vS.domain:void 0,r.state===x2?r.reactions.add(n):QS(function(){yV(n,r)}),n.promise}),T2=function(){var e=new PB,t=Ey(e);this.promise=e,this.resolve=TC(Wb,t),this.reject=TC(oI,t)},fV.f=zb=function(e){return e===xC||e===wte?new T2(e):Ete(e)});ite({global:!0,constructor:!0,wrap:!0,forced:EV},{Promise:xC});gte(xC,zv,!1,!0);ate(zv);var mte=Ml,bte=Tq,Mte=zh.CONSTRUCTOR,Wv=Mte||!bte(function(e){mte.all(e).then(void 0,function(){})}),kte=JA,Ste=er,Nte=tn,Pte=ro,Fte=bl,Rte=js,Lte=Wv;kte({target:"Promise",stat:!0,forced:Lte},{all:function(t){var A=this,r=Pte.f(A),n=r.resolve,i=r.reject,o=Fte(function(){var g=Nte(A.resolve),a=[],s=0,C=1;Rte(t,function(I){var l=s++,u=!1;C++,Ste(g,A,I).then(function(c){u||(u=!0,a[l]=c,--C||n(a))},i)}),--C||n(a)});return o.error&&i(o.value),r.promise}});var $te=JA,Ote=zh.CONSTRUCTOR,U2=Ml;U2&&U2.prototype;$te({target:"Promise",proto:!0,forced:Ote,real:!0},{catch:function(e){return this.then(void 0,e)}});var Gte=JA,xte=er,Tte=tn,Hte=ro,Ute=bl,Kte=js,_te=Wv;Gte({target:"Promise",stat:!0,forced:_te},{race:function(t){var A=this,r=Hte.f(A),n=r.reject,i=Ute(function(){var o=Tte(A.resolve);Kte(t,function(g){xte(o,A,g).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}});var Yte=JA,Jte=er,zte=ro,Wte=zh.CONSTRUCTOR;Yte({target:"Promise",stat:!0,forced:Wte},{reject:function(t){var A=zte.f(this);return Jte(A.reject,void 0,t),A.promise}});var qte=pn,jte=hr,Vte=ro,MV=function(e,t){if(qte(e),jte(t)&&t.constructor===e)return t;var A=Vte.f(e),r=A.resolve;return r(t),A.promise},Zte=JA,Xte=Or,Are=sKA,ere=Ml,tre=zh.CONSTRUCTOR,rre=MV,nre=Xte("Promise"),ire=!tre;Zte({target:"Promise",stat:!0,forced:Are},{resolve:function(t){return rre(ire&&this===nre?ere:this,t)}});var ore=JA,gre=er,are=tn,sre=ro,Cre=bl,Ire=js,lre=Wv;ore({target:"Promise",stat:!0,forced:lre},{allSettled:function(t){var A=this,r=sre.f(A),n=r.resolve,i=r.reject,o=Cre(function(){var g=are(A.resolve),a=[],s=0,C=1;Ire(t,function(I){var l=s++,u=!1;C++,gre(g,A,I).then(function(c){u||(u=!0,a[l]={status:"fulfilled",value:c},--C||n(a))},function(c){u||(u=!0,a[l]={status:"rejected",reason:c},--C||n(a))})}),--C||n(a)});return o.error&&i(o.value),r.promise}});var ure=JA,cre=er,hre=tn,dre=Or,Bre=ro,fre=bl,Ere=js,Qre=Wv,K2="No one promise resolved";ure({target:"Promise",stat:!0,forced:Qre},{any:function(t){var A=this,r=dre("AggregateError"),n=Bre.f(A),i=n.resolve,o=n.reject,g=fre(function(){var a=hre(A.resolve),s=[],C=0,I=1,l=!1;Ere(t,function(u){var c=C++,h=!1;I++,cre(a,A,u).then(function(d){h||l||(l=!0,i(d))},function(d){h||l||(h=!0,s[c]=d,--I||o(new r(s,K2)))})}),--I||o(new r(s,K2))});return g.error&&o(g.value),n.promise}});var vre=JA,qb=Ml,pre=Re,wre=Or,Dre=ht,yre=gV,_2=MV,mre=qb&&qb.prototype,bre=!!qb&&pre(function(){mre.finally.call({then:function(){}},function(){})});vre({target:"Promise",proto:!0,real:!0,forced:bre},{finally:function(e){var t=yre(this,wre("Promise")),A=Dre(e);return this.then(A?function(r){return _2(t,e()).then(function(){return r})}:e,A?function(r){return _2(t,e()).then(function(){throw r})}:e)}});var Mre=ot,kre=Mre.Promise,Sre=kre,Nre=Sre,Pre=JA,Fre=ro;Pre({target:"Promise",stat:!0},{withResolvers:function(){var t=Fre.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Rre=Nre,Lre=Rre,$re=JA,Ore=ro,Gre=bl;$re({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ore.f(this),A=Gre(e);return(A.error?t.reject:t.resolve)(A.value),t.promise}});var xre=Lre,Tre=xre,Hre=Tre,Ure=Aj,Kre=Ure,_re=Kre,Yre=_re,Jre=Yre;(function(e){var t=EAe.default,A=MW,r=rS,n=Vj,i=AV,o=DAe,g=zq,a=Zj,s=Hre,C=Jre,I=qq;function l(){e.exports=l=function(){return c},e.exports.__esModule=!0,e.exports.default=e.exports;var u,c={},h=Object.prototype,d=h.hasOwnProperty,B=A||function(L,P,$){L[P]=$.value},f=typeof r=="function"?r:{},E=f.iterator||"@@iterator",v=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function D(L,P,$){return A(L,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),L[P]}try{D({},"")}catch{D=function($,z,w){return $[z]=w}}function F(L,P,$,z){var w=P&&P.prototype instanceof H?P:H,b=n(w.prototype),G=new Y(z||[]);return B(b,"_invoke",{value:HA(L,$,G)}),b}function N(L,P,$){try{return{type:"normal",arg:L.call(P,$)}}catch(z){return{type:"throw",arg:z}}}c.wrap=F;var S="suspendedStart",m="suspendedYield",R="executing",k="completed",O={};function H(){}function X(){}function q(){}var Z={};D(Z,E,function(){return this});var uA=i,MA=uA&&uA(uA(nA([])));MA&&MA!==h&&d.call(MA,E)&&(Z=MA);var XA=q.prototype=H.prototype=n(Z);function KA(L){var P;o(P=["next","throw","return"]).call(P,function($){D(L,$,function(z){return this._invoke($,z)})})}function QA(L,P){function $(w,b,G,J){var K=N(L[w],L,b);if(K.type!=="throw"){var iA=K.arg,lA=iA.value;return lA&&t(lA)=="object"&&d.call(lA,"__await")?P.resolve(lA.__await).then(function(rA){$("next",rA,G,J)},function(rA){$("throw",rA,G,J)}):P.resolve(lA).then(function(rA){iA.value=rA,G(iA)},function(rA){return $("throw",rA,G,J)})}J(K.arg)}var z;B(this,"_invoke",{value:function(b,G){function J(){return new P(function(K,iA){$(b,G,K,iA)})}return z=z?z.then(J,J):J()}})}function HA(L,P,$){var z=S;return function(w,b){if(z===R)throw new Error("Generator is already running");if(z===k){if(w==="throw")throw b;return{value:u,done:!0}}for($.method=w,$.arg=b;;){var G=$.delegate;if(G){var J=_A(G,$);if(J){if(J===O)continue;return J}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(z===S)throw z=k,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);z=R;var K=N(L,P,$);if(K.type==="normal"){if(z=$.done?k:m,K.arg===O)continue;return{value:K.arg,done:$.done}}K.type==="throw"&&(z=k,$.method="throw",$.arg=K.arg)}}}function _A(L,P){var $=P.method,z=L.iterator[$];if(z===u)return P.delegate=null,$==="throw"&&L.iterator.return&&(P.method="return",P.arg=u,_A(L,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),O;var w=N(z,L.iterator,P.arg);if(w.type==="throw")return P.method="throw",P.arg=w.arg,P.delegate=null,O;var b=w.arg;return b?b.done?(P[L.resultName]=b.value,P.next=L.nextLoc,P.method!=="return"&&(P.method="next",P.arg=u),P.delegate=null,O):b:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,O)}function ne(L){var P,$={tryLoc:L[0]};1 in L&&($.catchLoc=L[1]),2 in L&&($.finallyLoc=L[2],$.afterLoc=L[3]),g(P=this.tryEntries).call(P,$)}function ce(L){var P=L.completion||{};P.type="normal",delete P.arg,L.completion=P}function Y(L){this.tryEntries=[{tryLoc:"root"}],o(L).call(L,ne,this),this.reset(!0)}function nA(L){if(L||L===""){var P=L[E];if(P)return P.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var $=-1,z=function w(){for(;++$<L.length;)if(d.call(L,$))return w.value=L[$],w.done=!1,w;return w.value=u,w.done=!0,w};return z.next=z}}throw new TypeError(t(L)+" is not iterable")}return X.prototype=q,B(XA,"constructor",{value:q,configurable:!0}),B(q,"constructor",{value:X,configurable:!0}),X.displayName=D(q,p,"GeneratorFunction"),c.isGeneratorFunction=function(L){var P=typeof L=="function"&&L.constructor;return!!P&&(P===X||(P.displayName||P.name)==="GeneratorFunction")},c.mark=function(L){return a?a(L,q):(L.__proto__=q,D(L,p,"GeneratorFunction")),L.prototype=n(XA),L},c.awrap=function(L){return{__await:L}},KA(QA.prototype),D(QA.prototype,v,function(){return this}),c.AsyncIterator=QA,c.async=function(L,P,$,z,w){w===void 0&&(w=s);var b=new QA(F(L,P,$,z),w);return c.isGeneratorFunction(P)?b:b.next().then(function(G){return G.done?G.value:b.next()})},KA(XA),D(XA,p,"Generator"),D(XA,E,function(){return this}),D(XA,"toString",function(){return"[object Generator]"}),c.keys=function(L){var P=Object(L),$=[];for(var z in P)g($).call($,z);return C($).call($),function w(){for(;$.length;){var b=$.pop();if(b in P)return w.value=b,w.done=!1,w}return w.done=!0,w}},c.values=nA,Y.prototype={constructor:Y,reset:function(P){var $;if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,o($=this.tryEntries).call($,ce),!P)for(var z in this)z.charAt(0)==="t"&&d.call(this,z)&&!isNaN(+I(z).call(z,1))&&(this[z]=u)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var $=this;function z(iA,lA){return G.type="throw",G.arg=P,$.next=iA,lA&&($.method="next",$.arg=u),!!lA}for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w],G=b.completion;if(b.tryLoc==="root")return z("end");if(b.tryLoc<=this.prev){var J=d.call(b,"catchLoc"),K=d.call(b,"finallyLoc");if(J&&K){if(this.prev<b.catchLoc)return z(b.catchLoc,!0);if(this.prev<b.finallyLoc)return z(b.finallyLoc)}else if(J){if(this.prev<b.catchLoc)return z(b.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<b.finallyLoc)return z(b.finallyLoc)}}}},abrupt:function(P,$){for(var z=this.tryEntries.length-1;z>=0;--z){var w=this.tryEntries[z];if(w.tryLoc<=this.prev&&d.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var b=w;break}}b&&(P==="break"||P==="continue")&&b.tryLoc<=$&&$<=b.finallyLoc&&(b=null);var G=b?b.completion:{};return G.type=P,G.arg=$,b?(this.method="next",this.next=b.finallyLoc,O):this.complete(G)},complete:function(P,$){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&$&&(this.next=$),O},finish:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),ce(z),O}},catch:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.tryLoc===P){var w=z.completion;if(w.type==="throw"){var b=w.arg;ce(z)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(P,$,z){return this.delegate={iterator:nA(P),resultName:$,nextLoc:z},this.method==="next"&&(this.arg=u),O}},c}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports})(eV);var zre=eV.exports,Sf=zre(),Wre=Sf;try{regeneratorRuntime=Sf}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Sf:Function("r","regeneratorRuntime = r")(Sf)}var Tr=ZA(Wre),kV={exports:{}},qre=Re,jre=qre(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Vre=Re,Zre=hr,Xre=ua,Y2=jre,Nf=Object.isExtensible,Ane=Vre(function(){Nf(1)}),ene=Ane||Y2?function(t){return!Zre(t)||Y2&&Xre(t)==="ArrayBuffer"?!1:Nf?Nf(t):!0}:Nf,tne=Re,rne=!tne(function(){return Object.isExtensible(Object.preventExtensions({}))}),nne=JA,ine=Xe,one=Fh,gne=hr,wS=$t,ane=nn.f,J2=Rh,sne=zk,DS=ene,Cne=pv,Ine=rne,SV=!1,Po=Cne("meta"),lne=0,yS=function(e){ane(e,Po,{value:{objectID:"O"+lne++,weakData:{}}})},une=function(e,t){if(!gne(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!wS(e,Po)){if(!DS(e))return"F";if(!t)return"E";yS(e)}return e[Po].objectID},cne=function(e,t){if(!wS(e,Po)){if(!DS(e))return!0;if(!t)return!1;yS(e)}return e[Po].weakData},hne=function(e){return Ine&&SV&&DS(e)&&!wS(e,Po)&&yS(e),e},dne=function(){Bne.enable=function(){},SV=!0;var e=J2.f,t=ine([].splice),A={};A[Po]=1,e(A).length&&(J2.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===Po){t(n,i,1);break}return n},nne({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sne.f}))},Bne=kV.exports={enable:dne,fastKey:une,getWeakData:cne,onFreeze:hne};one[Po]=!0;var NV=kV.exports,fne=JA,Ene=it,Qne=NV,vne=Re,pne=Ho,wne=js,Dne=fS,yne=ht,mne=hr,bne=dl,Mne=Ws,kne=nn.f,Sne=Dl.forEach,Nne=Ar,PV=wl,Pne=PV.set,Fne=PV.getterFor,FV=function(e,t,A){var r=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,i=r?"set":"add",o=Ene[e],g=o&&o.prototype,a={},s;if(!Nne||!yne(o)||!(n||g.forEach&&!vne(function(){new o().entries().next()})))s=A.getConstructor(t,e,r,i),Qne.enable();else{s=t(function(l,u){Pne(Dne(l,C),{type:e,collection:new o}),bne(u)||wne(u,l[i],{that:l,AS_ENTRIES:r})});var C=s.prototype,I=Fne(e);Sne(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(l){var u=l==="add"||l==="set";l in g&&!(n&&l==="clear")&&pne(C,l,function(c,h){var d=I(this).collection;if(!u&&n&&!mne(c))return l==="get"?void 0:!1;var B=d[l](c===0?0:c,h);return u?this:B})}),n||kne(C,"size",{configurable:!0,get:function(){return I(this).collection.size}})}return Mne(s,e,!1,!0),a[e]=s,fne({global:!0,forced:!0},a),n||A.setStrong(s,e,r),s},Rne=pl,Lne=function(e,t,A){for(var r in t)A&&A.unsafe&&e[r]?e[r]=t[r]:Rne(e,r,t[r],A);return e},$ne=zs,One=Wk,z2=Lne,Gne=ha,xne=fS,Tne=dl,Hne=js,Une=AS,FB=eS,Kne=oV,Zl=Ar,W2=NV.fastKey,RV=wl,q2=RV.set,vy=RV.getterFor,LV={getConstructor:function(e,t,A,r){var n=e(function(s,C){xne(s,i),q2(s,{type:t,index:$ne(null),first:void 0,last:void 0,size:0}),Zl||(s.size=0),Tne(C)||Hne(C,s[r],{that:s,AS_ENTRIES:A})}),i=n.prototype,o=vy(t),g=function(s,C,I){var l=o(s),u=a(s,C),c,h;return u?u.value=I:(l.last=u={index:h=W2(C,!0),key:C,value:I,previous:c=l.last,next:void 0,removed:!1},l.first||(l.first=u),c&&(c.next=u),Zl?l.size++:s.size++,h!=="F"&&(l.index[h]=u)),s},a=function(s,C){var I=o(s),l=W2(C),u;if(l!=="F")return I.index[l];for(u=I.first;u;u=u.next)if(u.key===C)return u};return z2(i,{clear:function(){for(var C=this,I=o(C),l=I.index,u=I.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete l[u.index],u=u.next;I.first=I.last=void 0,Zl?I.size=0:C.size=0},delete:function(s){var C=this,I=o(C),l=a(C,s);if(l){var u=l.next,c=l.previous;delete I.index[l.index],l.removed=!0,c&&(c.next=u),u&&(u.previous=c),I.first===l&&(I.first=u),I.last===l&&(I.last=c),Zl?I.size--:C.size--}return!!l},forEach:function(C){for(var I=o(this),l=Gne(C,arguments.length>1?arguments[1]:void 0),u;u=u?u.next:I.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(C){return!!a(this,C)}}),z2(i,A?{get:function(C){var I=a(this,C);return I&&I.value},set:function(C,I){return g(this,C===0?0:C,I)}}:{add:function(C){return g(this,C=C===0?0:C,C)}}),Zl&&One(i,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,A){var r=t+" Iterator",n=vy(t),i=vy(r);Une(e,t,function(o,g){q2(this,{type:r,target:o,state:n(o),kind:g,last:void 0})},function(){for(var o=i(this),g=o.kind,a=o.last;a&&a.removed;)a=a.previous;return!o.target||!(o.last=a=a?a.next:o.state.first)?(o.target=void 0,FB(void 0,!0)):FB(g==="keys"?a.key:g==="values"?a.value:[a.key,a.value],!1)},A?"entries":"values",!A,!0),Kne(t)}},_ne=FV,Yne=LV;_ne("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Yne);var Jne=ot,zne=Jne.Map,Wne=zne,qne=Wne,jne=qne,$V=ZA(jne),Vne=JA,Zne=Dl.some,Xne=Tv,Aie=Xne("some");Vne({target:"Array",proto:!0,forced:!Aie},{some:function(t){return Zne(this,t,arguments.length>1?arguments[1]:void 0)}});var eie=Qr,tie=eie("Array","some"),rie=Lt,nie=tie,py=Array.prototype,iie=function(e){var t=e.some;return e===py||rie(py,e)&&t===py.some?nie:t},oie=iie,gie=oie,aie=gie,sie=ZA(aie),Cie=Qr,Iie=Cie("Array","keys"),lie=Iie,uie=lie,cie=Uo,hie=$t,die=Lt,Bie=uie,wy=Array.prototype,fie={DOMTokenList:!0,NodeList:!0},Eie=function(e){var t=e.keys;return e===wy||die(wy,e)&&t===wy.keys||hie(fie,cie(e))?Bie:t},Qie=Eie,fC=ZA(Qie),j2=TW,vie=Math.floor,jb=function(e,t){var A=e.length,r=vie(A/2);return A<8?pie(e,t):wie(e,jb(j2(e,0,r),t),jb(j2(e,r),t),t)},pie=function(e,t){for(var A=e.length,r=1,n,i;r<A;){for(i=r,n=e[r];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==r++&&(e[i]=n)}return e},wie=function(e,t,A,r){for(var n=t.length,i=A.length,o=0,g=0;o<n||g<i;)e[o+g]=o<n&&g<i?r(t[o],A[g])<=0?t[o++]:A[g++]:o<n?t[o++]:A[g++];return e},Die=jb,yie=ca,V2=yie.match(/firefox\/(\d+)/i),mie=!!V2&&+V2[1],bie=ca,Mie=/MSIE|Trident/.test(bie),kie=ca,Z2=kie.match(/AppleWebKit\/(\d+)\./),Sie=!!Z2&&+Z2[1],Nie=JA,OV=Xe,Pie=tn,Fie=rn,X2=wn,Rie=ej,Ax=Js,mS=Re,Lie=Die,$ie=Tv,ex=mie,Oie=Mie,tx=Bl,rx=Sie,Eg=[],nx=OV(Eg.sort),Gie=OV(Eg.push),xie=mS(function(){Eg.sort(void 0)}),Tie=mS(function(){Eg.sort(null)}),Hie=$ie("sort"),GV=!mS(function(){if(tx)return tx<70;if(!(ex&&ex>3)){if(Oie)return!0;if(rx)return rx<603;var e="",t,A,r,n;for(t=65;t<76;t++){switch(A=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Eg.push({k:A+n,v:r})}for(Eg.sort(function(i,o){return o.v-i.v}),n=0;n<Eg.length;n++)A=Eg[n].k.charAt(0),e.charAt(e.length-1)!==A&&(e+=A);return e!=="DGBEFHACIJK"}}),Uie=xie||!Tie||!Hie||!GV,Kie=function(e){return function(t,A){return A===void 0?-1:t===void 0?1:e!==void 0?+e(t,A)||0:Ax(t)>Ax(A)?1:-1}};Nie({target:"Array",proto:!0,forced:Uie},{sort:function(t){t!==void 0&&Pie(t);var A=Fie(this);if(GV)return t===void 0?nx(A):nx(A,t);var r=[],n=X2(A),i,o;for(o=0;o<n;o++)o in A&&Gie(r,A[o]);for(Lie(r,Kie(t)),i=X2(r),o=0;o<i;)A[o]=r[o++];for(;o<n;)Rie(A,o++);return A}});var _ie=Qr,Yie=_ie("Array","sort"),Jie=Lt,zie=Yie,Dy=Array.prototype,Wie=function(e){var t=e.sort;return e===Dy||Jie(Dy,e)&&t===Dy.sort?zie:t},qie=Wie,jie=qie,Vie=jie,Vb=ZA(Vie),Zie=Qr,Xie=Zie("Array","values"),Aoe=Xie,eoe=Aoe,toe=Uo,roe=$t,noe=Lt,ioe=eoe,yy=Array.prototype,ooe={DOMTokenList:!0,NodeList:!0},goe=function(e){var t=e.values;return e===yy||noe(yy,e)&&t===yy.values||roe(ooe,toe(e))?ioe:t},aoe=goe,ix=ZA(aoe),soe=bq,HC=ZA(soe),Coe=Qr,Ioe=Coe("Array","entries"),loe=Ioe,uoe=loe,coe=Uo,hoe=$t,doe=Lt,Boe=uoe,my=Array.prototype,foe={DOMTokenList:!0,NodeList:!0},Eoe=function(e){var t=e.entries;return e===my||doe(my,e)&&t===my.entries||hoe(foe,coe(e))?Boe:t},Qoe=Eoe,voe=ZA(Qoe);let RB;const poe=new Uint8Array(16);function woe(){if(!RB&&(RB=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!RB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RB(poe)}const sr=[];for(let e=0;e<256;++e)sr.push((e+256).toString(16).slice(1));function Doe(e,t=0){return sr[e[t+0]]+sr[e[t+1]]+sr[e[t+2]]+sr[e[t+3]]+"-"+sr[e[t+4]]+sr[e[t+5]]+"-"+sr[e[t+6]]+sr[e[t+7]]+"-"+sr[e[t+8]]+sr[e[t+9]]+"-"+sr[e[t+10]]+sr[e[t+11]]+sr[e[t+12]]+sr[e[t+13]]+sr[e[t+14]]+sr[e[t+15]]}const yoe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var ox={randomUUID:yoe};function moe(e,t,A){if(ox.randomUUID&&!t&&!e)return ox.randomUUID();e=e||{};const r=e.random||(e.rng||woe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){A=A||0;for(let n=0;n<16;++n)t[A+n]=r[n];return t}return Doe(r)}function gx(e){return typeof e=="string"||typeof e=="number"}var boe=function(){function e(t){Ev(this,e),Rg(this,"_queue",[]),Rg(this,"_timeout",null),Rg(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return xv(e,[{key:"setOptions",value:function(A){A&&typeof A.delay<"u"&&(this.delay=A.delay),A&&typeof A.max<"u"&&(this.max=A.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var A=this._extended.object,r=this._extended.methods,n=0;n<r.length;n++){var i=r[n];i.original?A[i.name]=i.original:delete A[i.name]}this._extended=null}}},{key:"replace",value:function(A,r){var n=this,i=A[r];if(!i)throw new Error("Method "+r+" undefined");A[r]=function(){for(var o=arguments.length,g=new Array(o),a=0;a<o;a++)g[a]=arguments[a];n.queue({args:g,fn:i,context:this})}}},{key:"queue",value:function(A){typeof A=="function"?this._queue.push({fn:A}):this._queue.push(A),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var A=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=A7A(function(){A.flush()},this.delay))}},{key:"flush",value:function(){var A,r;fs(A=tj(r=this._queue).call(r,0)).call(A,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(A,r){var n=new e(r);if(A.flush!==void 0)throw new Error("Target object already has a property flush");A.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(r&&r.replace)for(var o=0;o<r.replace.length;o++){var g=r.replace[o];i.push({name:g,original:A[g]}),n.replace(A,g)}return n._extended={object:A,methods:i},n}}]),e}(),Moe=function(){function e(){Ev(this,e),Rg(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Rg(this,"subscribe",e.prototype.on),Rg(this,"unsubscribe",e.prototype.off)}return xv(e,[{key:"_trigger",value:function(A,r,n){var i,o;if(A==="*")throw new Error("Cannot trigger event *");fs(i=Kv(o=[]).call(o,Jr(this._subscribers[A]),Jr(this._subscribers["*"]))).call(i,function(g){g(A,r,n??null)})}},{key:"on",value:function(A,r){typeof r=="function"&&this._subscribers[A].push(r)}},{key:"off",value:function(A,r){var n;this._subscribers[A]=$C(n=this._subscribers[A]).call(n,function(i){return i!==r})}}]),e}(),koe=FV,Soe=LV;koe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Soe);var Noe=ot,Poe=Noe.Set,Foe=Poe,Roe=Foe,Loe=Roe,by=ZA(Loe),$oe=iS,Ooe=$oe,Goe=Ooe,xoe=Goe,Toe=xoe,Hoe=Toe,Uoe=Hoe,Koe=Uoe,_oe=Koe,Yoe=_oe,My=ZA(Yoe);function mi(e,t){var A=typeof Uv<"u"&&gS(e)||e["@@iterator"];if(!A){if(un(e)||(A=Joe(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1034
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function Joe(e,t){var A;if(e){if(typeof e=="string")return ax(e,t);var r=_v(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return oS(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ax(e,t)}}function ax(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}var sx=function(e){function t(A){Ev(this,t),this._pairs=A}return xv(t,[{key:e,value:Tr.mark(function A(){var r,n,i,o,g;return Tr.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r=mi(this._pairs),s.prev=1,r.s();case 3:if((n=r.n()).done){s.next=9;break}return i=Gr(n.value,2),o=i[0],g=i[1],s.next=7,[o,g];case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),r.e(s.t0);case 14:return s.prev=14,r.f(),s.finish(14);case 17:case"end":return s.stop()}},A,this,[[1,11,14,17]])})},{key:"entries",value:Tr.mark(function A(){var r,n,i,o,g;return Tr.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r=mi(this._pairs),s.prev=1,r.s();case 3:if((n=r.n()).done){s.next=9;break}return i=Gr(n.value,2),o=i[0],g=i[1],s.next=7,[o,g];case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),r.e(s.t0);case 14:return s.prev=14,r.f(),s.finish(14);case 17:case"end":return s.stop()}},A,this,[[1,11,14,17]])})},{key:"keys",value:Tr.mark(function A(){var r,n,i,o;return Tr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:r=mi(this._pairs),a.prev=1,r.s();case 3:if((n=r.n()).done){a.next=9;break}return i=Gr(n.value,1),o=i[0],a.next=7,o;case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),r.e(a.t0);case 14:return a.prev=14,r.f(),a.finish(14);case 17:case"end":return a.stop()}},A,this,[[1,11,14,17]])})},{key:"values",value:Tr.mark(function A(){var r,n,i,o;return Tr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:r=mi(this._pairs),a.prev=1,r.s();case 3:if((n=r.n()).done){a.next=9;break}return i=Gr(n.value,2),o=i[1],a.next=7,o;case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),r.e(a.t0);case 14:return a.prev=14,r.f(),a.finish(14);case 17:case"end":return a.stop()}},A,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var r;return ei(r=Jr(this._pairs)).call(r,function(n){return n[0]})}},{key:"toItemArray",value:function(){var r;return ei(r=Jr(this._pairs)).call(r,function(n){return n[1]})}},{key:"toEntryArray",value:function(){return Jr(this._pairs)}},{key:"toObjectMap",value:function(){var r=S9A(null),n=mi(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=Gr(i.value,2),g=o[0],a=o[1];r[g]=a}}catch(s){n.e(s)}finally{n.f()}return r}},{key:"toMap",value:function(){return new $V(this._pairs)}},{key:"toIdSet",value:function(){return new by(this.toIdArray())}},{key:"toItemSet",value:function(){return new by(this.toItemArray())}},{key:"cache",value:function(){return new t(Jr(this._pairs))}},{key:"distinct",value:function(r){var n=new by,i=mi(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var g=Gr(o.value,2),a=g[0],s=g[1];n.add(r(s,a))}}catch(C){i.e(C)}finally{i.f()}return n}},{key:"filter",value:function(r){var n=this._pairs;return new t({[HC](){return Tr.mark(function i(){var o,g,a,s,C;return Tr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o=mi(n),l.prev=1,o.s();case 3:if((g=o.n()).done){l.next=10;break}if(a=Gr(g.value,2),s=a[0],C=a[1],!r(C,s)){l.next=8;break}return l.next=8,[s,C];case 8:l.next=3;break;case 10:l.next=15;break;case 12:l.prev=12,l.t0=l.catch(1),o.e(l.t0);case 15:return l.prev=15,o.f(),l.finish(15);case 18:case"end":return l.stop()}},i,null,[[1,12,15,18]])})()}})}},{key:"forEach",value:function(r){var n=mi(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=Gr(i.value,2),g=o[0],a=o[1];r(a,g)}}catch(s){n.e(s)}finally{n.f()}}},{key:"map",value:function(r){var n=this._pairs;return new t({[HC](){return Tr.mark(function i(){var o,g,a,s,C;return Tr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o=mi(n),l.prev=1,o.s();case 3:if((g=o.n()).done){l.next=9;break}return a=Gr(g.value,2),s=a[0],C=a[1],l.next=7,[s,r(C,s)];case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),o.e(l.t0);case 14:return l.prev=14,o.f(),l.finish(14);case 17:case"end":return l.stop()}},i,null,[[1,11,14,17]])})()}})}},{key:"max",value:function(r){var n=My(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],g=r(i.value[1],i.value[0]);!(i=n.next()).done;){var a=Gr(i.value,2),s=a[0],C=a[1],I=r(C,s);I>g&&(g=I,o=C)}return o}},{key:"min",value:function(r){var n=My(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],g=r(i.value[1],i.value[0]);!(i=n.next()).done;){var a=Gr(i.value,2),s=a[0],C=a[1],I=r(C,s);I<g&&(g=I,o=C)}return o}},{key:"reduce",value:function(r,n){var i=mi(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var g=Gr(o.value,2),a=g[0],s=g[1];n=r(n,s,a)}}catch(C){i.e(C)}finally{i.f()}return n}},{key:"sort",value:function(r){var n=this;return new t({[HC]:function(){var i;return My(Vb(i=Jr(n._pairs)).call(i,function(o,g){var a=Gr(o,2),s=a[0],C=a[1],I=Gr(g,2),l=I[0],u=I[1];return r(C,u,s,l)}))}})}}]),t}(HC);function Cx(e,t){var A=sS(e);if(
|
|
1032
|
+
`;return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,r,i),e.apply(this,arguments)}}var Fj=Pj(function(e,t,A){for(var r=Object.keys(t),n=0;n<r.length;)(!A||A&&e[r[n]]===void 0)&&(e[r[n]]=t[r[n]]),n++;return e},"extend","Use `assign`."),T7A=Pj(function(e,t){return Fj(e,t,!0)},"merge","Use `assign`.");function H7A(e,t,A){var r=t.prototype,n;n=e.prototype=Object.create(r),n.constructor=e,n._super=r,A&&Es(n,A)}function aG(e,t){return function(){return e.apply(t,arguments)}}var U7A=function(){var e=function(A,r){return r===void 0&&(r={}),new gG(A,Bi({recognizers:nG.concat()},r))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=dj,e.DIRECTION_DOWN=LI,e.DIRECTION_LEFT=Kh,e.DIRECTION_RIGHT=_h,e.DIRECTION_UP=Yh,e.DIRECTION_HORIZONTAL=_i,e.DIRECTION_VERTICAL=rs,e.DIRECTION_NONE=UE,e.DIRECTION_DOWN=LI,e.INPUT_START=Pr,e.INPUT_MOVE=qs,e.INPUT_END=Pt,e.INPUT_CANCEL=Vr,e.STATE_POSSIBLE=bf,e.STATE_BEGAN=Un,e.STATE_CHANGED=$I,e.STATE_ENDED=Lg,e.STATE_RECOGNIZED=vo,e.STATE_CANCELLED=yc,e.STATE_FAILED=$i,e.Manager=gG,e.Input=ml,e.TouchAction=fj,e.TouchInput=cS,e.MouseInput=hS,e.PointerEventInput=Dj,e.TouchMouseInput=yj,e.SingleTouchInput=G7A,e.Recognizer=Jh,e.AttrRecognizer=OI,e.Tap=Ob,e.Pan=dS,e.Swipe=bj,e.Pinch=Mj,e.Rotate=kj,e.Press=Sj,e.on=$u,e.off=Ou,e.each=Qo,e.merge=T7A,e.extend=Fj,e.bindFn=aG,e.assign=Es,e.inherit=H7A,e.bindFn=aG,e.prefixed=Yv,e.toArray=Dc,e.inArray=vs,e.uniqueArray=uS,e.splitStr=wc,e.boolOrFn=Jv,e.hasParent=lS,e.addEventListeners=$u,e.removeEventListeners=Ou,e.defaults=Es({},Nj,{preset:nG}),e}(),K7A=U7A;function Rj(e,t){var A=typeof Uv<"u"&&gS(e)||e["@@iterator"];if(!A){if(un(e)||(A=_7A(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1033
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function _7A(e,t){var A;if(e){if(typeof e=="string")return sG(e,t);var r=_v(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return oS(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sG(e,t)}}function sG(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}var Lj=Uv("DELETE");function Y7A(e){for(var t,A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return $j.apply(void 0,Kv(t=[{},e]).call(t,r))}function $j(){var e=YE.apply(void 0,arguments);return Gj(e),e}function YE(){for(var e=arguments.length,t=new Array(e),A=0;A<e;A++)t[A]=arguments[A];if(t.length<2)return t[0];if(t.length>2){var r;return YE.apply(void 0,Kv(r=[$j(t[0],t[1])]).call(r,Jr(_v(t).call(t,2))))}var n=t[0],i=t[1];if(n instanceof Date&&i instanceof Date)return n.setTime(i.getTime()),n;var o=Rj(Y6A(i)),g;try{for(o.s();!(g=o.n()).done;){var a=g.value;Object.prototype.propertyIsEnumerable.call(i,a)&&(i[a]===Lj?delete n[a]:n[a]!==null&&i[a]!==null&&typeof n[a]=="object"&&typeof i[a]=="object"&&!un(n[a])&&!un(i[a])?n[a]=YE(n[a],i[a]):n[a]=Oj(i[a]))}}catch(s){o.e(s)}finally{o.f()}return n}function Oj(e){return un(e)?ei(e).call(e,function(t){return Oj(t)}):typeof e=="object"&&e!==null?e instanceof Date?new Date(e.getTime()):YE({},e):e}function Gj(e){for(var t=0,A=sS(e);t<A.length;t++){var r=A[t];e[r]===Lj?delete e[r]:typeof e[r]=="object"&&e[r]!==null&&Gj(e[r])}}function J7A(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get(){return{set:e}}}}var z7A=typeof window<"u"?window.Hammer||K7A:function(){return J7A()};function so(e){var t=this,A;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){t._dom.overlay.parentNode.removeChild(t._dom.overlay)});var r=z7A(this._dom.overlay);r.on("tap",Rq(A=this._onTapOverlay).call(A,this)),this._cleanupQueue.push(function(){r.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];fs(n).call(n,function(i){r.on(i,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(i){W7A(i.target,e)||t.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",t._onClick)})),this._escListener=function(i){("key"in i?i.key==="Escape":i.keyCode===27)&&t.deactivate()}}t7A(so.prototype);so.current=null;so.prototype.destroy=function(){var e,t;this.deactivate();var A=Rj(MZA(e=tj(t=this._cleanupQueue).call(t,0)).call(e)),r;try{for(A.s();!(r=A.n()).done;){var n=r.value;n()}}catch(i){A.e(i)}finally{A.f()}};so.prototype.activate=function(){so.current&&so.current.deactivate(),so.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};so.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};so.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function W7A(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var q7A=bv,j7A=El,V7A=TypeError,xj=function(e){if(q7A(e))return e;throw new V7A(j7A(e)+" is not a constructor")},Z7A=JA,X7A=Or,iy=hl,AXA=Pq,CG=xj,eXA=pn,IG=hr,tXA=zs,Tj=Re,BS=X7A("Reflect","construct"),rXA=Object.prototype,nXA=[].push,Hj=Tj(function(){function e(){}return!(BS(function(){},[],e)instanceof e)}),Uj=!Tj(function(){BS(function(){})}),lG=Hj||Uj;Z7A({target:"Reflect",stat:!0,forced:lG,sham:lG},{construct:function(t,A){CG(t),eXA(A);var r=arguments.length<3?t:CG(arguments[2]);if(Uj&&!Hj)return BS(t,A,r);if(t===r){switch(A.length){case 0:return new t;case 1:return new t(A[0]);case 2:return new t(A[0],A[1]);case 3:return new t(A[0],A[1],A[2]);case 4:return new t(A[0],A[1],A[2],A[3])}var n=[null];return iy(nXA,n,A),new(iy(AXA,t,n))}var i=r.prototype,o=tXA(IG(i)?i:rXA),g=iy(t,o,A);return IG(g)?g:o}});var iXA=ot,oXA=iXA.Reflect.construct,gXA=oXA,aXA=gXA,sXA=aXA,Mf=ZA(sXA),CXA=ot,IXA=CXA.Object.getOwnPropertySymbols,lXA=IXA,uXA=lXA,cXA=uXA,uG=ZA(cXA),Kj={exports:{}},hXA=JA,dXA=Re,BXA=to,_j=_s.f,Yj=Ar,fXA=!Yj||dXA(function(){_j(1)});hXA({target:"Object",stat:!0,forced:fXA,sham:!Yj},{getOwnPropertyDescriptor:function(t,A){return _j(BXA(t),A)}});var EXA=ot,Jj=EXA.Object,QXA=Kj.exports=function(t,A){return Jj.getOwnPropertyDescriptor(t,A)};Jj.getOwnPropertyDescriptor.sham&&(QXA.sham=!0);var vXA=Kj.exports,pXA=vXA,wXA=pXA,DXA=wXA,zj=ZA(DXA),yXA=JA,mXA=Ar,bXA=aS,MXA=to,kXA=_s,SXA=vl;yXA({target:"Object",stat:!0,sham:!mXA},{getOwnPropertyDescriptors:function(t){for(var A=MXA(t),r=kXA.f,n=bXA(A),i={},o=0,g,a;n.length>o;)a=r(A,g=n[o++]),a!==void 0&&SXA(i,g,a);return i}});var NXA=ot,PXA=NXA.Object.getOwnPropertyDescriptors,FXA=PXA,RXA=FXA,LXA=RXA,cG=ZA(LXA),Wj={exports:{}},$XA=JA,OXA=Ar,hG=kv.f;$XA({target:"Object",stat:!0,forced:Object.defineProperties!==hG,sham:!OXA},{defineProperties:hG});var GXA=ot,qj=GXA.Object,xXA=Wj.exports=function(t,A){return qj.defineProperties(t,A)};qj.defineProperties.sham&&(xXA.sham=!0);var TXA=Wj.exports,HXA=TXA,UXA=HXA,KXA=UXA,_XA=ZA(KXA),YXA=bW,JXA=ZA(YXA);function jj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zXA=nj,WXA=zXA,qXA=WXA,jXA=qXA,Vj=jXA,VXA=ZA(Vj),ZXA=JA,XXA=Bq;ZXA({target:"Object",stat:!0},{setPrototypeOf:XXA});var AAe=ot,eAe=AAe.Object.setPrototypeOf,tAe=eAe,rAe=tAe,nAe=rAe,iAe=nAe,oAe=iAe,gAe=oAe,Zj=gAe,Gb=ZA(Zj),aAe=Fq,sAe=aAe,CAe=sAe,IAe=CAe,lAe=IAe,Xj=ZA(lAe);function xb(e,t){var A;return xb=Gb?Xj(A=Gb).call(A):function(n,i){return n.__proto__=i,n},xb(e,t)}function uAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=VXA(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Dv(e,"prototype",{writable:!1}),t&&xb(e,t)}function cAe(e,t){if(t&&(RI(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jj(e)}var hAe=v9A,dAe=hAe,BAe=dAe,fAe=BAe,AV=fAe,dG=ZA(AV);function JE(e){var t;return JE=Gb?Xj(t=dG).call(t):function(r){return r.__proto__||dG(r)},JE(e)}var eV={exports:{}},tV={exports:{}};(function(e){var t=rS,A=Mq;function r(n){"@babel/helpers - typeof";return e.exports=r=typeof t=="function"&&typeof A=="symbol"?function(i){return typeof i}:function(i){return i&&typeof t=="function"&&i.constructor===t&&i!==t.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(tV);var EAe=tV.exports,QAe=Xq,vAe=QAe,pAe=vAe,wAe=pAe,DAe=wAe,BG=$t,yAe=aS,mAe=_s,bAe=nn,MAe=function(e,t,A){for(var r=yAe(t),n=bAe.f,i=mAe.f,o=0;o<r.length;o++){var g=r[o];!BG(e,g)&&!(A&&BG(A,g))&&n(e,g,i(t,g))}},kAe=hr,SAe=Ho,NAe=function(e,t){kAe(t)&&"cause"in t&&SAe(e,"cause",t.cause)},PAe=Xe,rV=Error,FAe=PAe("".replace),RAe=function(e){return String(new rV(e).stack)}("zxcasd"),nV=/\n\s*at [^:]*:[^\n]*/,LAe=nV.test(RAe),$Ae=function(e,t){if(LAe&&typeof e=="string"&&!rV.prepareStackTrace)for(;t--;)e=FAe(e,nV,"");return e},OAe=Re,GAe=Ys,xAe=!OAe(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",GAe(1,7)),e.stack!==7):!0}),TAe=Ho,HAe=$Ae,UAe=xAe,fG=Error.captureStackTrace,KAe=function(e,t,A,r){UAe&&(fG?fG(e,t):TAe(e,"stack",HAe(A,r)))},_Ae=ha,YAe=er,JAe=pn,zAe=El,WAe=Oq,qAe=wn,EG=Lt,jAe=iS,VAe=Hv,QG=$q,ZAe=TypeError,kf=function(e,t){this.stopped=e,this.result=t},vG=kf.prototype,js=function(e,t,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),i=!!(A&&A.IS_RECORD),o=!!(A&&A.IS_ITERATOR),g=!!(A&&A.INTERRUPTED),a=_Ae(t,r),s,C,I,l,u,c,h,d=function(f){return s&&QG(s,"normal",f),new kf(!0,f)},B=function(f){return n?(JAe(f),g?a(f[0],f[1],d):a(f[0],f[1])):g?a(f,d):a(f)};if(i)s=e.iterator;else if(o)s=e;else{if(C=VAe(e),!C)throw new ZAe(zAe(e)+" is not iterable");if(WAe(C)){for(I=0,l=qAe(e);l>I;I++)if(u=B(e[I]),u&&EG(vG,u))return u;return new kf(!1)}s=jAe(e,C)}for(c=i?e.next:s.next;!(h=YAe(c,s)).done;){try{u=B(h.value)}catch(f){QG(s,"throw",f)}if(typeof u=="object"&&u&&EG(vG,u))return u}return new kf(!1)},XAe=Js,Aee=function(e,t){return e===void 0?arguments.length<2?"":t:XAe(e)},eee=JA,tee=Lt,ree=Gv,zE=Bq,nee=MAe,iV=zs,oy=Ho,gy=Ys,iee=NAe,oee=KAe,gee=js,aee=Aee,see=at,Cee=see("toStringTag"),WE=Error,Iee=[].push,GI=function(t,A){var r=tee(ay,this),n;zE?n=zE(new WE,r?ree(this):ay):(n=r?this:iV(ay),oy(n,Cee,"Error")),A!==void 0&&oy(n,"message",aee(A)),oee(n,GI,n.stack,1),arguments.length>2&&iee(n,arguments[2]);var i=[];return gee(t,Iee,{that:i}),oy(n,"errors",i),n};zE?zE(GI,WE):nee(GI,WE,{name:!0});var ay=GI.prototype=iV(WE.prototype,{constructor:gy(1,GI),message:gy(1,""),name:gy(1,"AggregateError")});eee({global:!0,constructor:!0,arity:2},{AggregateError:GI});var lee=Or,uee=Wk,cee=at,hee=Ar,pG=cee("species"),oV=function(e){var t=lee(e);hee&&t&&!t[pG]&&uee(t,pG,{configurable:!0,get:function(){return this}})},dee=Lt,Bee=TypeError,fS=function(e,t){if(dee(t,e))return e;throw new Bee("Incorrect invocation")},wG=pn,fee=xj,Eee=dl,Qee=at,vee=Qee("species"),gV=function(e,t){var A=wG(e).constructor,r;return A===void 0||Eee(r=wG(A)[vee])?t:fee(r)},pee=ca,aV=/(?:ipad|iphone|ipod).*applewebkit/i.test(pee),dn=it,wee=hl,Dee=ha,DG=ht,yee=$t,sV=Re,yG=OW,mee=xh,mG=Kk,bee=ij,Mee=aV,kee=Hh,Tb=dn.setImmediate,Hb=dn.clearImmediate,See=dn.process,sy=dn.Dispatch,Nee=dn.Function,bG=dn.MessageChannel,Pee=dn.String,Cy=0,Gu={},MG="onreadystatechange",mc,Ma,Iy,ly;sV(function(){mc=dn.location});var ES=function(e){if(yee(Gu,e)){var t=Gu[e];delete Gu[e],t()}},uy=function(e){return function(){ES(e)}},kG=function(e){ES(e.data)},SG=function(e){dn.postMessage(Pee(e),mc.protocol+"//"+mc.host)};(!Tb||!Hb)&&(Tb=function(t){bee(arguments.length,1);var A=DG(t)?t:Nee(t),r=mee(arguments,1);return Gu[++Cy]=function(){wee(A,void 0,r)},Ma(Cy),Cy},Hb=function(t){delete Gu[t]},kee?Ma=function(e){See.nextTick(uy(e))}:sy&&sy.now?Ma=function(e){sy.now(uy(e))}:bG&&!Mee?(Iy=new bG,ly=Iy.port2,Iy.port1.onmessage=kG,Ma=Dee(ly.postMessage,ly)):dn.addEventListener&&DG(dn.postMessage)&&!dn.importScripts&&mc&&mc.protocol!=="file:"&&!sV(SG)?(Ma=SG,dn.addEventListener("message",kG,!1)):MG in mG("script")?Ma=function(e){yG.appendChild(mG("script"))[MG]=function(){yG.removeChild(this),ES(e)}}:Ma=function(e){setTimeout(uy(e),0)});var CV={set:Tb,clear:Hb},IV=function(){this.head=null,this.tail=null};IV.prototype={add:function(e){var t={item:e,next:null},A=this.tail;A?A.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var lV=IV,Fee=ca,Ree=/ipad|iphone|ipod/i.test(Fee)&&typeof Pebble<"u",Lee=ca,$ee=/web0s(?!.*chrome)/i.test(Lee),ps=it,NG=ha,Oee=_s.f,cy=CV.set,Gee=lV,xee=aV,Tee=Ree,Hee=$ee,hy=Hh,PG=ps.MutationObserver||ps.WebKitMutationObserver,FG=ps.document,RG=ps.process,MB=ps.Promise,LG=Oee(ps,"queueMicrotask"),Ub=LG&&LG.value,BC,dy,By,kB,$G;if(!Ub){var SB=new Gee,NB=function(){var e,t;for(hy&&(e=RG.domain)&&e.exit();t=SB.get();)try{t()}catch(A){throw SB.head&&BC(),A}e&&e.enter()};!xee&&!hy&&!Hee&&PG&&FG?(dy=!0,By=FG.createTextNode(""),new PG(NB).observe(By,{characterData:!0}),BC=function(){By.data=dy=!dy}):!Tee&&MB&&MB.resolve?(kB=MB.resolve(void 0),kB.constructor=MB,$G=NG(kB.then,kB),BC=function(){$G(NB)}):hy?BC=function(){RG.nextTick(NB)}:(cy=NG(cy,ps),BC=function(){cy(NB)}),Ub=function(e){SB.head||BC(),SB.add(e)}}var Uee=Ub,Kee=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},bl=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},_ee=it,Ml=_ee.Promise,uV=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Yee=uV,Jee=Hh,zee=!Yee&&!Jee&&typeof window=="object"&&typeof document=="object",Wee=it,xu=Ml,qee=ht,jee=DW,Vee=SW,Zee=at,Xee=zee,Ate=uV,fy=Bl,OG=xu&&xu.prototype,ete=Zee("species"),Kb=!1,cV=qee(Wee.PromiseRejectionEvent),tte=jee("Promise",function(){var e=Vee(xu),t=e!==String(xu);if(!t&&fy===66||!(OG.catch&&OG.finally))return!0;if(!fy||fy<51||!/native code/.test(e)){var A=new xu(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=A.constructor={};if(n[ete]=r,Kb=A.then(function(){})instanceof r,!Kb)return!0}return!t&&(Xee||Ate)&&!cV}),zh={CONSTRUCTOR:tte,REJECTION_EVENT:cV,SUBCLASSING:Kb},ro={},GG=tn,rte=TypeError,nte=function(e){var t,A;this.promise=new e(function(r,n){if(t!==void 0||A!==void 0)throw new rte("Bad Promise constructor");t=r,A=n}),this.resolve=GG(t),this.reject=GG(A)};ro.f=function(e){return new nte(e)};var ite=JA,qE=Hh,jg=it,Wh=er,ote=pl,gte=Ws,ate=oV,ste=tn,_b=ht,Cte=hr,Ite=fS,lte=gV,hV=CV.set,QS=Uee,ute=Kee,cte=bl,hte=lV,dV=wl,Yb=Ml,BV=zh,fV=ro,zv="Promise",EV=BV.CONSTRUCTOR,dte=BV.REJECTION_EVENT,Ey=dV.getterFor(zv),Bte=dV.set,fte=Yb&&Yb.prototype,xC=Yb,Qy=fte,QV=jg.TypeError,Jb=jg.document,vS=jg.process,zb=fV.f,Ete=zb,Qte=!!(Jb&&Jb.createEvent&&jg.dispatchEvent),vV="unhandledrejection",vte="rejectionhandled",xG=0,pV=1,pte=2,pS=1,wV=2,PB,TG,wte,DV=function(e){var t;return Cte(e)&&_b(t=e.then)?t:!1},yV=function(e,t){var A=t.value,r=t.state===pV,n=r?e.ok:e.fail,i=e.resolve,o=e.reject,g=e.domain,a,s,C;try{n?(r||(t.rejection===wV&&yte(t),t.rejection=pS),n===!0?a=A:(g&&g.enter(),a=n(A),g&&(g.exit(),C=!0)),a===e.promise?o(new QV("Promise-chain cycle")):(s=DV(a))?Wh(s,a,i,o):i(a)):o(A)}catch(I){g&&!C&&g.exit(),o(I)}},mV=function(e,t){e.notified||(e.notified=!0,QS(function(){for(var A=e.reactions,r;r=A.get();)yV(r,e);e.notified=!1,t&&!e.rejection&&Dte(e)}))},bV=function(e,t,A){var r,n;Qte?(r=Jb.createEvent("Event"),r.promise=t,r.reason=A,r.initEvent(e,!1,!0),jg.dispatchEvent(r)):r={promise:t,reason:A},!dte&&(n=jg["on"+e])?n(r):e===vV&&ute("Unhandled promise rejection",A)},Dte=function(e){Wh(hV,jg,function(){var t=e.facade,A=e.value,r=HG(e),n;if(r&&(n=cte(function(){qE?vS.emit("unhandledRejection",A,t):bV(vV,t,A)}),e.rejection=qE||HG(e)?wV:pS,n.error))throw n.value})},HG=function(e){return e.rejection!==pS&&!e.parent},yte=function(e){Wh(hV,jg,function(){var t=e.facade;qE?vS.emit("rejectionHandled",t):bV(vte,t,e.value)})},TC=function(e,t,A){return function(r){e(t,r,A)}},oI=function(e,t,A){e.done||(e.done=!0,A&&(e=A),e.value=t,e.state=pte,mV(e,!0))},Wb=function(e,t,A){if(!e.done){e.done=!0,A&&(e=A);try{if(e.facade===t)throw new QV("Promise can't be resolved itself");var r=DV(t);r?QS(function(){var n={done:!1};try{Wh(r,t,TC(Wb,n,e),TC(oI,n,e))}catch(i){oI(n,i,e)}}):(e.value=t,e.state=pV,mV(e,!1))}catch(n){oI({done:!1},n,e)}}};EV&&(xC=function(t){Ite(this,Qy),ste(t),Wh(PB,this);var A=Ey(this);try{t(TC(Wb,A),TC(oI,A))}catch(r){oI(A,r)}},Qy=xC.prototype,PB=function(t){Bte(this,{type:zv,done:!1,notified:!1,parent:!1,reactions:new hte,rejection:!1,state:xG,value:void 0})},PB.prototype=ote(Qy,"then",function(t,A){var r=Ey(this),n=zb(lte(this,xC));return r.parent=!0,n.ok=_b(t)?t:!0,n.fail=_b(A)&&A,n.domain=qE?vS.domain:void 0,r.state===xG?r.reactions.add(n):QS(function(){yV(n,r)}),n.promise}),TG=function(){var e=new PB,t=Ey(e);this.promise=e,this.resolve=TC(Wb,t),this.reject=TC(oI,t)},fV.f=zb=function(e){return e===xC||e===wte?new TG(e):Ete(e)});ite({global:!0,constructor:!0,wrap:!0,forced:EV},{Promise:xC});gte(xC,zv,!1,!0);ate(zv);var mte=Ml,bte=Tq,Mte=zh.CONSTRUCTOR,Wv=Mte||!bte(function(e){mte.all(e).then(void 0,function(){})}),kte=JA,Ste=er,Nte=tn,Pte=ro,Fte=bl,Rte=js,Lte=Wv;kte({target:"Promise",stat:!0,forced:Lte},{all:function(t){var A=this,r=Pte.f(A),n=r.resolve,i=r.reject,o=Fte(function(){var g=Nte(A.resolve),a=[],s=0,C=1;Rte(t,function(I){var l=s++,u=!1;C++,Ste(g,A,I).then(function(c){u||(u=!0,a[l]=c,--C||n(a))},i)}),--C||n(a)});return o.error&&i(o.value),r.promise}});var $te=JA,Ote=zh.CONSTRUCTOR,UG=Ml;UG&&UG.prototype;$te({target:"Promise",proto:!0,forced:Ote,real:!0},{catch:function(e){return this.then(void 0,e)}});var Gte=JA,xte=er,Tte=tn,Hte=ro,Ute=bl,Kte=js,_te=Wv;Gte({target:"Promise",stat:!0,forced:_te},{race:function(t){var A=this,r=Hte.f(A),n=r.reject,i=Ute(function(){var o=Tte(A.resolve);Kte(t,function(g){xte(o,A,g).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}});var Yte=JA,Jte=er,zte=ro,Wte=zh.CONSTRUCTOR;Yte({target:"Promise",stat:!0,forced:Wte},{reject:function(t){var A=zte.f(this);return Jte(A.reject,void 0,t),A.promise}});var qte=pn,jte=hr,Vte=ro,MV=function(e,t){if(qte(e),jte(t)&&t.constructor===e)return t;var A=Vte.f(e),r=A.resolve;return r(t),A.promise},Zte=JA,Xte=Or,Are=sKA,ere=Ml,tre=zh.CONSTRUCTOR,rre=MV,nre=Xte("Promise"),ire=!tre;Zte({target:"Promise",stat:!0,forced:Are},{resolve:function(t){return rre(ire&&this===nre?ere:this,t)}});var ore=JA,gre=er,are=tn,sre=ro,Cre=bl,Ire=js,lre=Wv;ore({target:"Promise",stat:!0,forced:lre},{allSettled:function(t){var A=this,r=sre.f(A),n=r.resolve,i=r.reject,o=Cre(function(){var g=are(A.resolve),a=[],s=0,C=1;Ire(t,function(I){var l=s++,u=!1;C++,gre(g,A,I).then(function(c){u||(u=!0,a[l]={status:"fulfilled",value:c},--C||n(a))},function(c){u||(u=!0,a[l]={status:"rejected",reason:c},--C||n(a))})}),--C||n(a)});return o.error&&i(o.value),r.promise}});var ure=JA,cre=er,hre=tn,dre=Or,Bre=ro,fre=bl,Ere=js,Qre=Wv,KG="No one promise resolved";ure({target:"Promise",stat:!0,forced:Qre},{any:function(t){var A=this,r=dre("AggregateError"),n=Bre.f(A),i=n.resolve,o=n.reject,g=fre(function(){var a=hre(A.resolve),s=[],C=0,I=1,l=!1;Ere(t,function(u){var c=C++,h=!1;I++,cre(a,A,u).then(function(d){h||l||(l=!0,i(d))},function(d){h||l||(h=!0,s[c]=d,--I||o(new r(s,KG)))})}),--I||o(new r(s,KG))});return g.error&&o(g.value),n.promise}});var vre=JA,qb=Ml,pre=Re,wre=Or,Dre=ht,yre=gV,_G=MV,mre=qb&&qb.prototype,bre=!!qb&&pre(function(){mre.finally.call({then:function(){}},function(){})});vre({target:"Promise",proto:!0,real:!0,forced:bre},{finally:function(e){var t=yre(this,wre("Promise")),A=Dre(e);return this.then(A?function(r){return _G(t,e()).then(function(){return r})}:e,A?function(r){return _G(t,e()).then(function(){throw r})}:e)}});var Mre=ot,kre=Mre.Promise,Sre=kre,Nre=Sre,Pre=JA,Fre=ro;Pre({target:"Promise",stat:!0},{withResolvers:function(){var t=Fre.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Rre=Nre,Lre=Rre,$re=JA,Ore=ro,Gre=bl;$re({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ore.f(this),A=Gre(e);return(A.error?t.reject:t.resolve)(A.value),t.promise}});var xre=Lre,Tre=xre,Hre=Tre,Ure=Aj,Kre=Ure,_re=Kre,Yre=_re,Jre=Yre;(function(e){var t=EAe.default,A=MW,r=rS,n=Vj,i=AV,o=DAe,g=zq,a=Zj,s=Hre,C=Jre,I=qq;function l(){e.exports=l=function(){return c},e.exports.__esModule=!0,e.exports.default=e.exports;var u,c={},h=Object.prototype,d=h.hasOwnProperty,B=A||function(L,P,$){L[P]=$.value},f=typeof r=="function"?r:{},E=f.iterator||"@@iterator",v=f.asyncIterator||"@@asyncIterator",p=f.toStringTag||"@@toStringTag";function D(L,P,$){return A(L,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),L[P]}try{D({},"")}catch{D=function($,z,w){return $[z]=w}}function F(L,P,$,z){var w=P&&P.prototype instanceof H?P:H,b=n(w.prototype),G=new Y(z||[]);return B(b,"_invoke",{value:HA(L,$,G)}),b}function N(L,P,$){try{return{type:"normal",arg:L.call(P,$)}}catch(z){return{type:"throw",arg:z}}}c.wrap=F;var S="suspendedStart",m="suspendedYield",R="executing",k="completed",O={};function H(){}function X(){}function q(){}var Z={};D(Z,E,function(){return this});var uA=i,MA=uA&&uA(uA(nA([])));MA&&MA!==h&&d.call(MA,E)&&(Z=MA);var XA=q.prototype=H.prototype=n(Z);function KA(L){var P;o(P=["next","throw","return"]).call(P,function($){D(L,$,function(z){return this._invoke($,z)})})}function QA(L,P){function $(w,b,G,J){var K=N(L[w],L,b);if(K.type!=="throw"){var iA=K.arg,lA=iA.value;return lA&&t(lA)=="object"&&d.call(lA,"__await")?P.resolve(lA.__await).then(function(rA){$("next",rA,G,J)},function(rA){$("throw",rA,G,J)}):P.resolve(lA).then(function(rA){iA.value=rA,G(iA)},function(rA){return $("throw",rA,G,J)})}J(K.arg)}var z;B(this,"_invoke",{value:function(b,G){function J(){return new P(function(K,iA){$(b,G,K,iA)})}return z=z?z.then(J,J):J()}})}function HA(L,P,$){var z=S;return function(w,b){if(z===R)throw new Error("Generator is already running");if(z===k){if(w==="throw")throw b;return{value:u,done:!0}}for($.method=w,$.arg=b;;){var G=$.delegate;if(G){var J=_A(G,$);if(J){if(J===O)continue;return J}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(z===S)throw z=k,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);z=R;var K=N(L,P,$);if(K.type==="normal"){if(z=$.done?k:m,K.arg===O)continue;return{value:K.arg,done:$.done}}K.type==="throw"&&(z=k,$.method="throw",$.arg=K.arg)}}}function _A(L,P){var $=P.method,z=L.iterator[$];if(z===u)return P.delegate=null,$==="throw"&&L.iterator.return&&(P.method="return",P.arg=u,_A(L,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),O;var w=N(z,L.iterator,P.arg);if(w.type==="throw")return P.method="throw",P.arg=w.arg,P.delegate=null,O;var b=w.arg;return b?b.done?(P[L.resultName]=b.value,P.next=L.nextLoc,P.method!=="return"&&(P.method="next",P.arg=u),P.delegate=null,O):b:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,O)}function ne(L){var P,$={tryLoc:L[0]};1 in L&&($.catchLoc=L[1]),2 in L&&($.finallyLoc=L[2],$.afterLoc=L[3]),g(P=this.tryEntries).call(P,$)}function ce(L){var P=L.completion||{};P.type="normal",delete P.arg,L.completion=P}function Y(L){this.tryEntries=[{tryLoc:"root"}],o(L).call(L,ne,this),this.reset(!0)}function nA(L){if(L||L===""){var P=L[E];if(P)return P.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var $=-1,z=function w(){for(;++$<L.length;)if(d.call(L,$))return w.value=L[$],w.done=!1,w;return w.value=u,w.done=!0,w};return z.next=z}}throw new TypeError(t(L)+" is not iterable")}return X.prototype=q,B(XA,"constructor",{value:q,configurable:!0}),B(q,"constructor",{value:X,configurable:!0}),X.displayName=D(q,p,"GeneratorFunction"),c.isGeneratorFunction=function(L){var P=typeof L=="function"&&L.constructor;return!!P&&(P===X||(P.displayName||P.name)==="GeneratorFunction")},c.mark=function(L){return a?a(L,q):(L.__proto__=q,D(L,p,"GeneratorFunction")),L.prototype=n(XA),L},c.awrap=function(L){return{__await:L}},KA(QA.prototype),D(QA.prototype,v,function(){return this}),c.AsyncIterator=QA,c.async=function(L,P,$,z,w){w===void 0&&(w=s);var b=new QA(F(L,P,$,z),w);return c.isGeneratorFunction(P)?b:b.next().then(function(G){return G.done?G.value:b.next()})},KA(XA),D(XA,p,"Generator"),D(XA,E,function(){return this}),D(XA,"toString",function(){return"[object Generator]"}),c.keys=function(L){var P=Object(L),$=[];for(var z in P)g($).call($,z);return C($).call($),function w(){for(;$.length;){var b=$.pop();if(b in P)return w.value=b,w.done=!1,w}return w.done=!0,w}},c.values=nA,Y.prototype={constructor:Y,reset:function(P){var $;if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,o($=this.tryEntries).call($,ce),!P)for(var z in this)z.charAt(0)==="t"&&d.call(this,z)&&!isNaN(+I(z).call(z,1))&&(this[z]=u)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var $=this;function z(iA,lA){return G.type="throw",G.arg=P,$.next=iA,lA&&($.method="next",$.arg=u),!!lA}for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w],G=b.completion;if(b.tryLoc==="root")return z("end");if(b.tryLoc<=this.prev){var J=d.call(b,"catchLoc"),K=d.call(b,"finallyLoc");if(J&&K){if(this.prev<b.catchLoc)return z(b.catchLoc,!0);if(this.prev<b.finallyLoc)return z(b.finallyLoc)}else if(J){if(this.prev<b.catchLoc)return z(b.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<b.finallyLoc)return z(b.finallyLoc)}}}},abrupt:function(P,$){for(var z=this.tryEntries.length-1;z>=0;--z){var w=this.tryEntries[z];if(w.tryLoc<=this.prev&&d.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var b=w;break}}b&&(P==="break"||P==="continue")&&b.tryLoc<=$&&$<=b.finallyLoc&&(b=null);var G=b?b.completion:{};return G.type=P,G.arg=$,b?(this.method="next",this.next=b.finallyLoc,O):this.complete(G)},complete:function(P,$){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&$&&(this.next=$),O},finish:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),ce(z),O}},catch:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var z=this.tryEntries[$];if(z.tryLoc===P){var w=z.completion;if(w.type==="throw"){var b=w.arg;ce(z)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(P,$,z){return this.delegate={iterator:nA(P),resultName:$,nextLoc:z},this.method==="next"&&(this.arg=u),O}},c}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports})(eV);var zre=eV.exports,Sf=zre(),Wre=Sf;try{regeneratorRuntime=Sf}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Sf:Function("r","regeneratorRuntime = r")(Sf)}var Tr=ZA(Wre),kV={exports:{}},qre=Re,jre=qre(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Vre=Re,Zre=hr,Xre=ua,YG=jre,Nf=Object.isExtensible,Ane=Vre(function(){Nf(1)}),ene=Ane||YG?function(t){return!Zre(t)||YG&&Xre(t)==="ArrayBuffer"?!1:Nf?Nf(t):!0}:Nf,tne=Re,rne=!tne(function(){return Object.isExtensible(Object.preventExtensions({}))}),nne=JA,ine=Xe,one=Fh,gne=hr,wS=$t,ane=nn.f,JG=Rh,sne=zk,DS=ene,Cne=pv,Ine=rne,SV=!1,Po=Cne("meta"),lne=0,yS=function(e){ane(e,Po,{value:{objectID:"O"+lne++,weakData:{}}})},une=function(e,t){if(!gne(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!wS(e,Po)){if(!DS(e))return"F";if(!t)return"E";yS(e)}return e[Po].objectID},cne=function(e,t){if(!wS(e,Po)){if(!DS(e))return!0;if(!t)return!1;yS(e)}return e[Po].weakData},hne=function(e){return Ine&&SV&&DS(e)&&!wS(e,Po)&&yS(e),e},dne=function(){Bne.enable=function(){},SV=!0;var e=JG.f,t=ine([].splice),A={};A[Po]=1,e(A).length&&(JG.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===Po){t(n,i,1);break}return n},nne({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sne.f}))},Bne=kV.exports={enable:dne,fastKey:une,getWeakData:cne,onFreeze:hne};one[Po]=!0;var NV=kV.exports,fne=JA,Ene=it,Qne=NV,vne=Re,pne=Ho,wne=js,Dne=fS,yne=ht,mne=hr,bne=dl,Mne=Ws,kne=nn.f,Sne=Dl.forEach,Nne=Ar,PV=wl,Pne=PV.set,Fne=PV.getterFor,FV=function(e,t,A){var r=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,i=r?"set":"add",o=Ene[e],g=o&&o.prototype,a={},s;if(!Nne||!yne(o)||!(n||g.forEach&&!vne(function(){new o().entries().next()})))s=A.getConstructor(t,e,r,i),Qne.enable();else{s=t(function(l,u){Pne(Dne(l,C),{type:e,collection:new o}),bne(u)||wne(u,l[i],{that:l,AS_ENTRIES:r})});var C=s.prototype,I=Fne(e);Sne(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(l){var u=l==="add"||l==="set";l in g&&!(n&&l==="clear")&&pne(C,l,function(c,h){var d=I(this).collection;if(!u&&n&&!mne(c))return l==="get"?void 0:!1;var B=d[l](c===0?0:c,h);return u?this:B})}),n||kne(C,"size",{configurable:!0,get:function(){return I(this).collection.size}})}return Mne(s,e,!1,!0),a[e]=s,fne({global:!0,forced:!0},a),n||A.setStrong(s,e,r),s},Rne=pl,Lne=function(e,t,A){for(var r in t)A&&A.unsafe&&e[r]?e[r]=t[r]:Rne(e,r,t[r],A);return e},$ne=zs,One=Wk,zG=Lne,Gne=ha,xne=fS,Tne=dl,Hne=js,Une=AS,FB=eS,Kne=oV,Zl=Ar,WG=NV.fastKey,RV=wl,qG=RV.set,vy=RV.getterFor,LV={getConstructor:function(e,t,A,r){var n=e(function(s,C){xne(s,i),qG(s,{type:t,index:$ne(null),first:void 0,last:void 0,size:0}),Zl||(s.size=0),Tne(C)||Hne(C,s[r],{that:s,AS_ENTRIES:A})}),i=n.prototype,o=vy(t),g=function(s,C,I){var l=o(s),u=a(s,C),c,h;return u?u.value=I:(l.last=u={index:h=WG(C,!0),key:C,value:I,previous:c=l.last,next:void 0,removed:!1},l.first||(l.first=u),c&&(c.next=u),Zl?l.size++:s.size++,h!=="F"&&(l.index[h]=u)),s},a=function(s,C){var I=o(s),l=WG(C),u;if(l!=="F")return I.index[l];for(u=I.first;u;u=u.next)if(u.key===C)return u};return zG(i,{clear:function(){for(var C=this,I=o(C),l=I.index,u=I.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete l[u.index],u=u.next;I.first=I.last=void 0,Zl?I.size=0:C.size=0},delete:function(s){var C=this,I=o(C),l=a(C,s);if(l){var u=l.next,c=l.previous;delete I.index[l.index],l.removed=!0,c&&(c.next=u),u&&(u.previous=c),I.first===l&&(I.first=u),I.last===l&&(I.last=c),Zl?I.size--:C.size--}return!!l},forEach:function(C){for(var I=o(this),l=Gne(C,arguments.length>1?arguments[1]:void 0),u;u=u?u.next:I.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(C){return!!a(this,C)}}),zG(i,A?{get:function(C){var I=a(this,C);return I&&I.value},set:function(C,I){return g(this,C===0?0:C,I)}}:{add:function(C){return g(this,C=C===0?0:C,C)}}),Zl&&One(i,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,A){var r=t+" Iterator",n=vy(t),i=vy(r);Une(e,t,function(o,g){qG(this,{type:r,target:o,state:n(o),kind:g,last:void 0})},function(){for(var o=i(this),g=o.kind,a=o.last;a&&a.removed;)a=a.previous;return!o.target||!(o.last=a=a?a.next:o.state.first)?(o.target=void 0,FB(void 0,!0)):FB(g==="keys"?a.key:g==="values"?a.value:[a.key,a.value],!1)},A?"entries":"values",!A,!0),Kne(t)}},_ne=FV,Yne=LV;_ne("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Yne);var Jne=ot,zne=Jne.Map,Wne=zne,qne=Wne,jne=qne,$V=ZA(jne),Vne=JA,Zne=Dl.some,Xne=Tv,Aie=Xne("some");Vne({target:"Array",proto:!0,forced:!Aie},{some:function(t){return Zne(this,t,arguments.length>1?arguments[1]:void 0)}});var eie=Qr,tie=eie("Array","some"),rie=Lt,nie=tie,py=Array.prototype,iie=function(e){var t=e.some;return e===py||rie(py,e)&&t===py.some?nie:t},oie=iie,gie=oie,aie=gie,sie=ZA(aie),Cie=Qr,Iie=Cie("Array","keys"),lie=Iie,uie=lie,cie=Uo,hie=$t,die=Lt,Bie=uie,wy=Array.prototype,fie={DOMTokenList:!0,NodeList:!0},Eie=function(e){var t=e.keys;return e===wy||die(wy,e)&&t===wy.keys||hie(fie,cie(e))?Bie:t},Qie=Eie,fC=ZA(Qie),jG=TW,vie=Math.floor,jb=function(e,t){var A=e.length,r=vie(A/2);return A<8?pie(e,t):wie(e,jb(jG(e,0,r),t),jb(jG(e,r),t),t)},pie=function(e,t){for(var A=e.length,r=1,n,i;r<A;){for(i=r,n=e[r];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==r++&&(e[i]=n)}return e},wie=function(e,t,A,r){for(var n=t.length,i=A.length,o=0,g=0;o<n||g<i;)e[o+g]=o<n&&g<i?r(t[o],A[g])<=0?t[o++]:A[g++]:o<n?t[o++]:A[g++];return e},Die=jb,yie=ca,VG=yie.match(/firefox\/(\d+)/i),mie=!!VG&&+VG[1],bie=ca,Mie=/MSIE|Trident/.test(bie),kie=ca,ZG=kie.match(/AppleWebKit\/(\d+)\./),Sie=!!ZG&&+ZG[1],Nie=JA,OV=Xe,Pie=tn,Fie=rn,XG=wn,Rie=ej,Ax=Js,mS=Re,Lie=Die,$ie=Tv,ex=mie,Oie=Mie,tx=Bl,rx=Sie,Eg=[],nx=OV(Eg.sort),Gie=OV(Eg.push),xie=mS(function(){Eg.sort(void 0)}),Tie=mS(function(){Eg.sort(null)}),Hie=$ie("sort"),GV=!mS(function(){if(tx)return tx<70;if(!(ex&&ex>3)){if(Oie)return!0;if(rx)return rx<603;var e="",t,A,r,n;for(t=65;t<76;t++){switch(A=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Eg.push({k:A+n,v:r})}for(Eg.sort(function(i,o){return o.v-i.v}),n=0;n<Eg.length;n++)A=Eg[n].k.charAt(0),e.charAt(e.length-1)!==A&&(e+=A);return e!=="DGBEFHACIJK"}}),Uie=xie||!Tie||!Hie||!GV,Kie=function(e){return function(t,A){return A===void 0?-1:t===void 0?1:e!==void 0?+e(t,A)||0:Ax(t)>Ax(A)?1:-1}};Nie({target:"Array",proto:!0,forced:Uie},{sort:function(t){t!==void 0&&Pie(t);var A=Fie(this);if(GV)return t===void 0?nx(A):nx(A,t);var r=[],n=XG(A),i,o;for(o=0;o<n;o++)o in A&&Gie(r,A[o]);for(Lie(r,Kie(t)),i=XG(r),o=0;o<i;)A[o]=r[o++];for(;o<n;)Rie(A,o++);return A}});var _ie=Qr,Yie=_ie("Array","sort"),Jie=Lt,zie=Yie,Dy=Array.prototype,Wie=function(e){var t=e.sort;return e===Dy||Jie(Dy,e)&&t===Dy.sort?zie:t},qie=Wie,jie=qie,Vie=jie,Vb=ZA(Vie),Zie=Qr,Xie=Zie("Array","values"),Aoe=Xie,eoe=Aoe,toe=Uo,roe=$t,noe=Lt,ioe=eoe,yy=Array.prototype,ooe={DOMTokenList:!0,NodeList:!0},goe=function(e){var t=e.values;return e===yy||noe(yy,e)&&t===yy.values||roe(ooe,toe(e))?ioe:t},aoe=goe,ix=ZA(aoe),soe=bq,HC=ZA(soe),Coe=Qr,Ioe=Coe("Array","entries"),loe=Ioe,uoe=loe,coe=Uo,hoe=$t,doe=Lt,Boe=uoe,my=Array.prototype,foe={DOMTokenList:!0,NodeList:!0},Eoe=function(e){var t=e.entries;return e===my||doe(my,e)&&t===my.entries||hoe(foe,coe(e))?Boe:t},Qoe=Eoe,voe=ZA(Qoe);let RB;const poe=new Uint8Array(16);function woe(){if(!RB&&(RB=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!RB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RB(poe)}const sr=[];for(let e=0;e<256;++e)sr.push((e+256).toString(16).slice(1));function Doe(e,t=0){return sr[e[t+0]]+sr[e[t+1]]+sr[e[t+2]]+sr[e[t+3]]+"-"+sr[e[t+4]]+sr[e[t+5]]+"-"+sr[e[t+6]]+sr[e[t+7]]+"-"+sr[e[t+8]]+sr[e[t+9]]+"-"+sr[e[t+10]]+sr[e[t+11]]+sr[e[t+12]]+sr[e[t+13]]+sr[e[t+14]]+sr[e[t+15]]}const yoe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var ox={randomUUID:yoe};function moe(e,t,A){if(ox.randomUUID&&!t&&!e)return ox.randomUUID();e=e||{};const r=e.random||(e.rng||woe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){A=A||0;for(let n=0;n<16;++n)t[A+n]=r[n];return t}return Doe(r)}function gx(e){return typeof e=="string"||typeof e=="number"}var boe=function(){function e(t){Ev(this,e),Rg(this,"_queue",[]),Rg(this,"_timeout",null),Rg(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return xv(e,[{key:"setOptions",value:function(A){A&&typeof A.delay<"u"&&(this.delay=A.delay),A&&typeof A.max<"u"&&(this.max=A.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var A=this._extended.object,r=this._extended.methods,n=0;n<r.length;n++){var i=r[n];i.original?A[i.name]=i.original:delete A[i.name]}this._extended=null}}},{key:"replace",value:function(A,r){var n=this,i=A[r];if(!i)throw new Error("Method "+r+" undefined");A[r]=function(){for(var o=arguments.length,g=new Array(o),a=0;a<o;a++)g[a]=arguments[a];n.queue({args:g,fn:i,context:this})}}},{key:"queue",value:function(A){typeof A=="function"?this._queue.push({fn:A}):this._queue.push(A),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var A=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=A7A(function(){A.flush()},this.delay))}},{key:"flush",value:function(){var A,r;fs(A=tj(r=this._queue).call(r,0)).call(A,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(A,r){var n=new e(r);if(A.flush!==void 0)throw new Error("Target object already has a property flush");A.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(r&&r.replace)for(var o=0;o<r.replace.length;o++){var g=r.replace[o];i.push({name:g,original:A[g]}),n.replace(A,g)}return n._extended={object:A,methods:i},n}}]),e}(),Moe=function(){function e(){Ev(this,e),Rg(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Rg(this,"subscribe",e.prototype.on),Rg(this,"unsubscribe",e.prototype.off)}return xv(e,[{key:"_trigger",value:function(A,r,n){var i,o;if(A==="*")throw new Error("Cannot trigger event *");fs(i=Kv(o=[]).call(o,Jr(this._subscribers[A]),Jr(this._subscribers["*"]))).call(i,function(g){g(A,r,n??null)})}},{key:"on",value:function(A,r){typeof r=="function"&&this._subscribers[A].push(r)}},{key:"off",value:function(A,r){var n;this._subscribers[A]=$C(n=this._subscribers[A]).call(n,function(i){return i!==r})}}]),e}(),koe=FV,Soe=LV;koe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Soe);var Noe=ot,Poe=Noe.Set,Foe=Poe,Roe=Foe,Loe=Roe,by=ZA(Loe),$oe=iS,Ooe=$oe,Goe=Ooe,xoe=Goe,Toe=xoe,Hoe=Toe,Uoe=Hoe,Koe=Uoe,_oe=Koe,Yoe=_oe,My=ZA(Yoe);function mi(e,t){var A=typeof Uv<"u"&&gS(e)||e["@@iterator"];if(!A){if(un(e)||(A=Joe(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1034
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function Joe(e,t){var A;if(e){if(typeof e=="string")return ax(e,t);var r=_v(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return oS(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ax(e,t)}}function ax(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}var sx=function(e){function t(A){Ev(this,t),this._pairs=A}return xv(t,[{key:e,value:Tr.mark(function A(){var r,n,i,o,g;return Tr.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r=mi(this._pairs),s.prev=1,r.s();case 3:if((n=r.n()).done){s.next=9;break}return i=Gr(n.value,2),o=i[0],g=i[1],s.next=7,[o,g];case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),r.e(s.t0);case 14:return s.prev=14,r.f(),s.finish(14);case 17:case"end":return s.stop()}},A,this,[[1,11,14,17]])})},{key:"entries",value:Tr.mark(function A(){var r,n,i,o,g;return Tr.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r=mi(this._pairs),s.prev=1,r.s();case 3:if((n=r.n()).done){s.next=9;break}return i=Gr(n.value,2),o=i[0],g=i[1],s.next=7,[o,g];case 7:s.next=3;break;case 9:s.next=14;break;case 11:s.prev=11,s.t0=s.catch(1),r.e(s.t0);case 14:return s.prev=14,r.f(),s.finish(14);case 17:case"end":return s.stop()}},A,this,[[1,11,14,17]])})},{key:"keys",value:Tr.mark(function A(){var r,n,i,o;return Tr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:r=mi(this._pairs),a.prev=1,r.s();case 3:if((n=r.n()).done){a.next=9;break}return i=Gr(n.value,1),o=i[0],a.next=7,o;case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),r.e(a.t0);case 14:return a.prev=14,r.f(),a.finish(14);case 17:case"end":return a.stop()}},A,this,[[1,11,14,17]])})},{key:"values",value:Tr.mark(function A(){var r,n,i,o;return Tr.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:r=mi(this._pairs),a.prev=1,r.s();case 3:if((n=r.n()).done){a.next=9;break}return i=Gr(n.value,2),o=i[1],a.next=7,o;case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),r.e(a.t0);case 14:return a.prev=14,r.f(),a.finish(14);case 17:case"end":return a.stop()}},A,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var r;return ei(r=Jr(this._pairs)).call(r,function(n){return n[0]})}},{key:"toItemArray",value:function(){var r;return ei(r=Jr(this._pairs)).call(r,function(n){return n[1]})}},{key:"toEntryArray",value:function(){return Jr(this._pairs)}},{key:"toObjectMap",value:function(){var r=S9A(null),n=mi(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=Gr(i.value,2),g=o[0],a=o[1];r[g]=a}}catch(s){n.e(s)}finally{n.f()}return r}},{key:"toMap",value:function(){return new $V(this._pairs)}},{key:"toIdSet",value:function(){return new by(this.toIdArray())}},{key:"toItemSet",value:function(){return new by(this.toItemArray())}},{key:"cache",value:function(){return new t(Jr(this._pairs))}},{key:"distinct",value:function(r){var n=new by,i=mi(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var g=Gr(o.value,2),a=g[0],s=g[1];n.add(r(s,a))}}catch(C){i.e(C)}finally{i.f()}return n}},{key:"filter",value:function(r){var n=this._pairs;return new t({[HC](){return Tr.mark(function i(){var o,g,a,s,C;return Tr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o=mi(n),l.prev=1,o.s();case 3:if((g=o.n()).done){l.next=10;break}if(a=Gr(g.value,2),s=a[0],C=a[1],!r(C,s)){l.next=8;break}return l.next=8,[s,C];case 8:l.next=3;break;case 10:l.next=15;break;case 12:l.prev=12,l.t0=l.catch(1),o.e(l.t0);case 15:return l.prev=15,o.f(),l.finish(15);case 18:case"end":return l.stop()}},i,null,[[1,12,15,18]])})()}})}},{key:"forEach",value:function(r){var n=mi(this._pairs),i;try{for(n.s();!(i=n.n()).done;){var o=Gr(i.value,2),g=o[0],a=o[1];r(a,g)}}catch(s){n.e(s)}finally{n.f()}}},{key:"map",value:function(r){var n=this._pairs;return new t({[HC](){return Tr.mark(function i(){var o,g,a,s,C;return Tr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o=mi(n),l.prev=1,o.s();case 3:if((g=o.n()).done){l.next=9;break}return a=Gr(g.value,2),s=a[0],C=a[1],l.next=7,[s,r(C,s)];case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),o.e(l.t0);case 14:return l.prev=14,o.f(),l.finish(14);case 17:case"end":return l.stop()}},i,null,[[1,11,14,17]])})()}})}},{key:"max",value:function(r){var n=My(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],g=r(i.value[1],i.value[0]);!(i=n.next()).done;){var a=Gr(i.value,2),s=a[0],C=a[1],I=r(C,s);I>g&&(g=I,o=C)}return o}},{key:"min",value:function(r){var n=My(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],g=r(i.value[1],i.value[0]);!(i=n.next()).done;){var a=Gr(i.value,2),s=a[0],C=a[1],I=r(C,s);I<g&&(g=I,o=C)}return o}},{key:"reduce",value:function(r,n){var i=mi(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var g=Gr(o.value,2),a=g[0],s=g[1];n=r(n,s,a)}}catch(C){i.e(C)}finally{i.f()}return n}},{key:"sort",value:function(r){var n=this;return new t({[HC]:function(){var i;return My(Vb(i=Jr(n._pairs)).call(i,function(o,g){var a=Gr(o,2),s=a[0],C=a[1],I=Gr(g,2),l=I[0],u=I[1];return r(C,u,s,l)}))}})}}]),t}(HC);function Cx(e,t){var A=sS(e);if(uG){var r=uG(e);t&&(r=$C(r).call(r,function(n){return zj(e,n).enumerable})),A.push.apply(A,r)}return A}function Ix(e){for(var t=1;t<arguments.length;t++){var A,r,n=arguments[t]!=null?arguments[t]:{};t%2?fs(A=Cx(Object(n),!0)).call(A,function(i){Rg(e,i,n[i])}):cG?_XA(e,cG(n)):fs(r=Cx(Object(n))).call(r,function(i){JXA(e,i,zj(n,i))})}return e}function ky(e,t){var A=typeof Uv<"u"&&gS(e)||e["@@iterator"];if(!A){if(un(e)||(A=zoe(e))||t&&e&&typeof e.length=="number"){A&&(e=A);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1035
1035
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,g;return{s:function(){A=A.call(e)},n:function(){var s=A.next();return i=s.done,s},e:function(s){o=!0,g=s},f:function(){try{!i&&A.return!=null&&A.return()}finally{if(o)throw g}}}}function zoe(e,t){var A;if(e){if(typeof e=="string")return lx(e,t);var r=_v(A=Object.prototype.toString.call(e)).call(A,8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return oS(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lx(e,t)}}function lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=new Array(t);A<t;A++)r[A]=e[A];return r}function Woe(e){var t=qoe();return function(){var r=JE(e),n;if(t){var i=JE(this).constructor;n=Mf(r,arguments,i)}else n=r.apply(this,arguments);return cAe(this,n)}}function qoe(){if(typeof Reflect>"u"||!Mf||Mf.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Mf(Boolean,[],function(){})),!0}catch{return!1}}function joe(e,t){return e[t]==null&&(e[t]=moe()),e}var jE=function(e){uAe(A,e);var t=Woe(A);function A(r,n){var i;return Ev(this,A),i=t.call(this),Rg(jj(i),"_queue",null),r&&!un(r)&&(n=r,r=[]),i._options=n||{},i._data=new $V,i.length=0,i._idProp=i._options.fieldId||"id",r&&r.length&&i.add(r),i.setOptions(n),i}return xv(A,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=boe.extend(this,{replace:["add","update","remove"]})),n.queue&&typeof n.queue=="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,i){var o=this,g=[],a;if(un(n)){var s=ei(n).call(n,function(l){return l[o._idProp]});if(sie(s).call(s,function(l){return o._data.has(l)}))throw new Error("A duplicate id was found in the parameter array.");for(var C=0,I=n.length;C<I;C++)a=this._addItem(n[C]),g.push(a)}else if(n&&typeof n=="object")a=this._addItem(n),g.push(a);else throw new Error("Unknown dataType");return g.length&&this._trigger("add",{items:g},i),g}},{key:"update",value:function(n,i){var o=this,g=[],a=[],s=[],C=[],I=this._idProp,l=function(B){var f=B[I];if(f!=null&&o._data.has(f)){var E=B,v=l9A({},o._data.get(f)),p=o._updateItem(E);a.push(p),C.push(E),s.push(v)}else{var D=o._addItem(B);g.push(D)}};if(un(n))for(var u=0,c=n.length;u<c;u++)n[u]&&typeof n[u]=="object"?l(n[u]):console.warn("Ignoring input item, which is not an object at index "+u);else if(n&&typeof n=="object")l(n);else throw new Error("Unknown dataType");if(g.length&&this._trigger("add",{items:g},i),a.length){var h={items:a,oldData:s,data:C};this._trigger("update",h,i)}return Kv(g).call(g,a)}},{key:"updateOnly",value:function(n,i){var o,g=this;un(n)||(n=[n]);var a=ei(o=ei(n).call(n,function(C){var I=g._data.get(C[g._idProp]);if(I==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:I,update:C}})).call(o,function(C){var I=C.oldData,l=C.update,u=I[g._idProp],c=Y7A(I,l);return g._data.set(u,c),{id:u,oldData:I,updatedData:c}});if(a.length){var s={items:ei(a).call(a,function(C){return C.id}),oldData:ei(a).call(a,function(C){return C.oldData}),data:ei(a).call(a,function(C){return C.updatedData})};return this._trigger("update",s,i),s.items}else return[]}},{key:"get",value:function(n,i){var o=void 0,g=void 0,a=void 0;gx(n)?(o=n,a=i):un(n)?(g=n,a=i):a=n;var s=a&&a.returnType==="Object"?"Object":"Array",C=a&&$C(a),I=[],l=void 0,u=void 0,c=void 0;if(o!=null)l=this._data.get(o),l&&C&&!C(l)&&(l=void 0);else if(g!=null)for(var h=0,d=g.length;h<d;h++)l=this._data.get(g[h]),l!=null&&(!C||C(l))&&I.push(l);else{var B;u=Jr(fC(B=this._data).call(B));for(var f=0,E=u.length;f<E;f++)c=u[f],l=this._data.get(c),l!=null&&(!C||C(l))&&I.push(l)}if(a&&a.order&&o==null&&this._sort(I,a.order),a&&a.fields){var v=a.fields;if(o!=null&&l!=null)l=this._filterFields(l,v);else for(var p=0,D=I.length;p<D;p++)I[p]=this._filterFields(I[p],v)}if(s=="Object"){for(var F={},N=0,S=I.length;N<S;N++){var m=I[N],R=m[this._idProp];F[R]=m}return F}else if(o!=null){var k;return(k=l)!==null&&k!==void 0?k:null}else return I}},{key:"getIds",value:function(n){var i=this._data,o=n&&$C(n),g=n&&n.order,a=Jr(fC(i).call(i)),s=[];if(o)if(g){for(var C=[],I=0,l=a.length;I<l;I++){var u=a[I],c=this._data.get(u);c!=null&&o(c)&&C.push(c)}this._sort(C,g);for(var h=0,d=C.length;h<d;h++)s.push(C[h][this._idProp])}else for(var B=0,f=a.length;B<f;B++){var E=a[B],v=this._data.get(E);v!=null&&o(v)&&s.push(v[this._idProp])}else if(g){for(var p=[],D=0,F=a.length;D<F;D++){var N=a[D];p.push(i.get(N))}this._sort(p,g);for(var S=0,m=p.length;S<m;S++)s.push(p[S][this._idProp])}else for(var R=0,k=a.length;R<k;R++){var O=a[R],H=i.get(O);H!=null&&s.push(H[this._idProp])}return s}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,i){var o=i&&$C(i),g=this._data,a=Jr(fC(g).call(g));if(i&&i.order)for(var s=this.get(i),C=0,I=s.length;C<I;C++){var l=s[C],u=l[this._idProp];n(l,u)}else for(var c=0,h=a.length;c<h;c++){var d=a[c],B=this._data.get(d);B!=null&&(!o||o(B))&&n(B,d)}}},{key:"map",value:function(n,i){for(var o=i&&$C(i),g=[],a=this._data,s=Jr(fC(a).call(a)),C=0,I=s.length;C<I;C++){var l=s[C],u=this._data.get(l);u!=null&&(!o||o(u))&&g.push(n(u,l))}return i&&i.order&&this._sort(g,i.order),g}},{key:"_filterFields",value:function(n,i){var o;return n&&MqA(o=un(i)?i:sS(i)).call(o,function(g,a){return g[a]=n[a],g},{})}},{key:"_sort",value:function(n,i){if(typeof i=="string"){var o=i;Vb(n).call(n,function(g,a){var s=g[o],C=a[o];return s>C?1:s<C?-1:0})}else if(typeof i=="function")Vb(n).call(n,i);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,i){for(var o=[],g=[],a=un(n)?n:[n],s=0,C=a.length;s<C;s++){var I=this._remove(a[s]);if(I){var l=I[this._idProp];l!=null&&(o.push(l),g.push(I))}}return o.length&&this._trigger("remove",{items:o,oldData:g},i),o}},{key:"_remove",value:function(n){var i;if(gx(n)?i=n:n&&typeof n=="object"&&(i=n[this._idProp]),i!=null&&this._data.has(i)){var o=this._data.get(i)||null;return this._data.delete(i),--this.length,o}return null}},{key:"clear",value:function(n){for(var i,o=Jr(fC(i=this._data).call(i)),g=[],a=0,s=o.length;a<s;a++)g.push(this._data.get(o[a]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:g},n),o}},{key:"max",value:function(n){var i,o=null,g=null,a=ky(ix(i=this._data).call(i)),s;try{for(a.s();!(s=a.n()).done;){var C=s.value,I=C[n];typeof I=="number"&&(g==null||I>g)&&(o=C,g=I)}}catch(l){a.e(l)}finally{a.f()}return o||null}},{key:"min",value:function(n){var i,o=null,g=null,a=ky(ix(i=this._data).call(i)),s;try{for(a.s();!(s=a.n()).done;){var C=s.value,I=C[n];typeof I=="number"&&(g==null||I<g)&&(o=C,g=I)}}catch(l){a.e(l)}finally{a.f()}return o||null}},{key:"distinct",value:function(n){for(var i=this._data,o=Jr(fC(i).call(i)),g=[],a=0,s=0,C=o.length;s<C;s++){for(var I=o[s],l=i.get(I),u=l[n],c=!1,h=0;h<a;h++)if(g[h]==u){c=!0;break}!c&&u!==void 0&&(g[a]=u,a++)}return g}},{key:"_addItem",value:function(n){var i=joe(n,this._idProp),o=i[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,i),++this.length,o}},{key:"_updateItem",value:function(n){var i=n[this._idProp];if(i==null)throw new Error("Cannot update item: item has no id (item: "+$9A(n)+")");var o=this._data.get(i);if(!o)throw new Error("Cannot update item: no item with id "+i+" found");return this._data.set(i,Ix(Ix({},o),n)),i}},{key:"stream",value:function(n){if(n){var i=this._data;return new sx({[HC](){return Tr.mark(function g(){var a,s,C,I;return Tr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=ky(n),u.prev=1,a.s();case 3:if((s=a.n()).done){u.next=11;break}if(C=s.value,I=i.get(C),I==null){u.next=9;break}return u.next=9,[C,I];case 9:u.next=3;break;case 11:u.next=16;break;case 13:u.prev=13,u.t0=u.catch(1),a.e(u.t0);case 16:return u.prev=16,a.f(),u.finish(16);case 19:case"end":return u.stop()}},g,null,[[1,13,16,19]])})()}})}else{var o;return new sx({[HC]:Rq(o=voe(this._data)).call(o,this._data)})}}}]),A}(Moe);function Voe(e,t){return typeof t=="object"&&t!==null&&e===t.idProp&&typeof t.add=="function"&&typeof t.clear=="function"&&typeof t.distinct=="function"&&typeof fs(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof ei(t)=="function"&&typeof t.max=="function"&&typeof t.min=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.remove=="function"&&typeof t.setOptions=="function"&&typeof t.stream=="function"&&typeof t.update=="function"&&typeof t.updateOnly=="function"}function xV(e,t){return typeof t=="object"&&t!==null&&e===t.idProp&&typeof fs(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof ei(t)=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.stream=="function"&&Voe(e,t.getDataSet())}/**
|
|
1036
1036
|
* vis-network
|
|
1037
1037
|
* https://visjs.github.io/vis-network/
|