vite-plugin-vue-devtools 7.0.26 → 7.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/assets/{index-MOiccYc6.js → index-N1hSW_y4.js} +1 -1
- package/client/index.html +1 -1
- package/dist/vite.cjs +6527 -5576
- package/dist/vite.d.mts +47 -0
- package/dist/vite.mjs +6509 -5575
- package/package.json +5 -5
- package/src/overlay/devtools-overlay.js +2 -2
|
@@ -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 yC=typeof document<"u";function CrA(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function $p(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 Du=()=>{},hi=Array.isArray,PK=/#/g,IrA=/&/g,lrA=/\//g,urA=/=/g,crA=/\?/g,FK=/\+/g,hrA=/%5B/g,drA=/%5D/g,RK=/%5E/g,BrA=/%60/g,LK=/%7B/g,frA=/%7C/g,$K=/%7D/g,ErA=/%20/g;function cM(e){return encodeURI(""+e).replace(frA,"|").replace(hrA,"[").replace(drA,"]")}function QrA(e){return cM(e).replace(LK,"{").replace($K,"}").replace(RK,"^")}function Xm(e){return cM(e).replace(FK,"%2B").replace(ErA,"+").replace(PK,"%23").replace(IrA,"%26").replace(BrA,"`").replace(LK,"{").replace($K,"}").replace(RK,"^")}function vrA(e){return Xm(e).replace(urA,"%3D")}function prA(e){return cM(e).replace(PK,"%23").replace(crA,"%3F")}function wrA(e){return e==null?"":prA(e).replace(lrA,"%2F")}function ec(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const DrA=/\/$/,yrA=e=>e.replace(DrA,"");function Op(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=krA(r??t,A),{fullPath:r+(i&&"?")+i+o,path:r,query:n,hash:ec(o)}}function mrA(e,t){const A=t.query?e(t.query):"";return t.path+(A&&"?")+A+(t.hash||"")}function brA(e,t,A){const r=t.matched.length-1,n=A.matched.length-1;return r>-1&&r===n&&hI(t.matched[r],A.matched[n])&&OK(t.params,A.params)&&e(t.query)===e(A.query)&&t.hash===A.hash}function hI(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function OK(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)?KP(e,t):hi(t)?KP(t,e):e===t}function KP(e,t){return hi(t)?e.length===t.length&&e.every((A,r)=>A===t[r]):e.length===1&&e[0]===t}function krA(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 tc;(function(e){e.pop="pop",e.push="push"})(tc||(tc={}));var rE;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rE||(rE={}));const Gp="";function SrA(e){if(!e)if(yC){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yrA(e)}const NrA=/^[^#]+#/;function PrA(e,t){return e.replace(NrA,"#")+t}function FrA(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 RrA=()=>({left:window.scrollX,top:window.scrollY});function LrA(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=FrA(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 _P(e,t){return(history.state?history.state.position-t:-1)+e}const A0=new Map;function $rA(e,t){A0.set(e,t)}function OrA(e){const t=A0.get(e);return A0.delete(e),t}function GrA(e=""){let t=[],A=[Gp],r=0;e=SrA(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:tc.pop};for(const l of t)l(g,a,I)}const o={location:Gp,state:{},base:e,createHref:PrA.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=[Gp],r=0},go(g,a=!0){const s=this.location,C=g<0?rE.back:rE.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 xrA(e){return typeof e=="string"||e&&typeof e=="object"}function GK(e){return typeof e=="string"||typeof e=="symbol"}const zo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xK=Symbol("");var YP;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(YP||(YP={}));function dI(e,t){return et(new Error,{type:e,[xK]:!0},t)}function oo(e,t){return e instanceof Error&&xK in e&&(t==null||!!(e.type&t))}const JP="[^/]+?",TrA={sensitive:!1,strict:!1,start:!0,end:!0},HrA=/[.+*?^${}()[\]/\\]/g;function UrA(e,t){const A=et({},TrA,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(HrA,"\\$&"),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||JP;if(f!==JP){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 KrA(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 _rA(e,t){let A=0;const r=e.score,n=t.score;for(;A<r.length&&A<n.length;){const i=KrA(r[A],n[A]);if(i)return i;A++}if(Math.abs(n.length-r.length)===1){if(zP(r))return 1;if(zP(n))return-1}return n.length-r.length}function zP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const YrA={type:0,value:""},JrA=/[a-zA-Z0-9_]/;function zrA(e){if(!e)return[[]];if(e==="/")return[[YrA]];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:JrA.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 WrA(e,t,A){const r=UrA(zrA(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 qrA(e,t){const A=[],r=new Map;t=jP({strict:!1,end:!0,sensitive:!1},t);function n(C){return r.get(C)}function i(C,I,l){const u=!l,c=jrA(C);c.aliasOf=l&&l.record;const h=jP(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=WrA(E,I,h),l?l.alias.push(B):(f=f||B,f!==B&&f.alias.push(B),u&&C.name&&!qP(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)}:Du}function o(C){if(GK(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&&_rA(C,A[I])>=0&&(C.record.path!==A[I].record.path||!TK(C,A[I]));)I++;A.splice(I,0,C),C.record.name&&!qP(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 dI(1,{location:C});h=l.record.name,u=et(WP(I.params,l.keys.filter(f=>!f.optional).concat(l.parent?l.parent.keys.filter(f=>f.optional):[]).map(f=>f.name)),C.params&&WP(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 dI(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:ZrA(d)}}return e.forEach(C=>i(C)),{addRoute:i,resolve:s,removeRoute:o,getRoutes:g,getRecordMatcher:n}}function WP(e,t){const A={};for(const r of t)r in e&&(A[r]=e[r]);return A}function jrA(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:VrA(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 VrA(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 qP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZrA(e){return e.reduce((t,A)=>et(t,A.meta),{})}function jP(e,t){const A={};for(const r in e)A[r]=r in t?t[r]:e[r];return A}function TK(e,t){return t.children.some(A=>A===e||TK(e,A))}function XrA(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(FK," "),o=i.indexOf("="),g=ec(o<0?i:i.slice(0,o)),a=o<0?null:ec(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 VP(e){let t="";for(let A in e){const r=e[A];if(A=vrA(A),r==null){r!==void 0&&(t+=(t.length?"&":"")+A);continue}(hi(r)?r.map(i=>i&&Xm(i)):[r&&Xm(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+A,i!=null&&(t+="="+i))})}return t}function AnA(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 enA=Symbol(""),ZP=Symbol(""),PQ=Symbol(""),hM=Symbol(""),e0=Symbol("");function Jl(){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(dI(4,{from:A,to:t})):l instanceof Error?a(l):xrA(l)?a(dI(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 xp(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(tnA(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=CrA(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 tnA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function XP(e){const t=pt(PQ),A=pt(hM),r=_(()=>t.resolve(Q(e.to))),n=_(()=>{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(hI.bind(null,C));if(l>-1)return l;const u=AF(a[s-2]);return s>1&&AF(C)===u&&I[I.length-1].path!==u?I.findIndex(hI.bind(null,a[s-2])):l}),i=_(()=>n.value>-1&&inA(A.params,r.value.params)),o=_(()=>n.value>-1&&n.value===A.matched.length-1&&OK(A.params,r.value.params));function g(a={}){return nnA(a)?t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(Du):Promise.resolve()}return{route:r,href:_(()=>r.value.href),isActive:i,isExactActive:o,navigate:g}}const rnA=yA({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:XP,setup(e,{slots:t}){const A=Ug(XP(e)),{options:r}=pt(PQ),n=_(()=>({[eF(e.activeClass,r.linkActiveClass,"router-link-active")]:A.isActive,[eF(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const i=t.default&&t.default(A);return e.custom?i:qI("a",{"aria-current":A.isExactActive?e.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:n.value},i)}}}),HK=rnA;function nnA(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 inA(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 AF(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const eF=(e,t,A)=>e??t??A,onA=yA({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:A}){const r=pt(e0),n=_(()=>e.route||r.value),i=pt(ZP,0),o=_(()=>{let s=Q(i);const{matched:C}=n.value;let I;for(;(I=C[s])&&!I.components;)s++;return s}),g=_(()=>n.value.matched[o.value]);Io(ZP,_(()=>o.value+1)),Io(enA,g),Io(e0,n);const a=H();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||!hI(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 tF(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=qI(l,et({},c,t,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(I.instances[C]=null)},ref:a}));return tF(A.default,{Component:d,route:s})||d}}});function tF(e,t){if(!e)return null;const A=e(t);return A.length===1?A[0]:A}const gnA=onA;function anA(e){const t=qrA(e.routes,e),A=e.parseQuery||XrA,r=e.stringifyQuery||VP,n=e.history,i=Jl(),o=Jl(),g=Jl(),a=Zi(zo);let s=zo;yC&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=$p.bind(null,Y=>""+Y),I=$p.bind(null,wrA),l=$p.bind(null,ec);function u(Y,nA){let L,P;return GK(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=Op(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:ec(b.hash),redirectedFrom:void 0,href:J})}let L;if(Y.path!=null)L=et({},Y,{path:Op(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=mrA(r,et({},Y,{hash:QrA($),path:P.path})),w=n.createHref(z);return et({fullPath:z,hash:$,query:r===VP?AnA(Y.query):Y.query||{}},P,{redirectedFrom:void 0,href:w})}function f(Y){return typeof Y=="string"?Op(A,Y,a.value.path):et({},Y)}function E(Y,nA){if(s!==Y)return dI(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&&brA(r,P,L)&&(J=dI(16,{to:G,from:P}),bA(P,P,!0,!1)),(J?Promise.resolve(J):m(G,P)).catch(K=>oo(K)?oo(K,2)?K:MA(K):j(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 S(Y,nA){const L=E(Y,nA);return L?Promise.reject(L):Promise.resolve()}function N(Y){const nA=UA.values().next().value;return nA&&typeof nA.runWithContext=="function"?nA.runWithContext(Y):Y()}function m(Y,nA){let L;const[P,$,z]=snA(Y,nA);L=xp(P.reverse(),"beforeRouteLeave",Y,nA);for(const b of P)b.leaveGuards.forEach(G=>{L.push(sg(G,Y,nA))});const w=S.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=xp($,"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=xp(z,"beforeRouteEnter",Y,nA,N),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=>N(()=>P(Y,nA,L)))}function k(Y,nA,L,P,$){const z=E(Y,nA);if(z)return z;const w=nA===zo,b=yC?history.state:{};L&&(P||w?n.replace(Y.fullPath,et({scroll:w&&b&&b.scroll},$)):n.push(Y.fullPath,$)),a.value=Y,bA(Y,nA,L,w),MA()}let O;function Z(){O||(O=n.listen((Y,nA,L)=>{if(!ne.listening)return;const P=B(Y),$=D(P);if($){F(et($,{replace:!0}),P).catch(Du);return}s=P;const z=a.value;yC&&$rA(_P(z.fullPath,L.delta),RrA()),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===tc.pop&&n.go(-1,!1)}).catch(Du),Promise.reject()):(L.delta&&n.go(-L.delta,!1),j(w,P,z))).then(w=>{w=w||k(P,z,!1),w&&(L.delta&&!oo(w,8)?n.go(-L.delta,!1):L.type===tc.pop&&oo(w,20)&&n.go(-1,!1)),R(P,z,w)}).catch(Du)}))}let hA=Jl(),eA=Jl(),X;function j(Y,nA,L){MA(Y);const P=eA.list();return P.length?P.forEach($=>$(Y,nA,L)):console.error(Y),Promise.reject(Y)}function oA(){return X&&a.value!==zo?Promise.resolve():new Promise((Y,nA)=>{hA.add([Y,nA])})}function MA(Y){return X||(X=!Y,Z(),hA.list().forEach(([nA,L])=>Y?L(Y):nA()),hA.reset()),Y}function bA(Y,nA,L,P){const{scrollBehavior:$}=e;if(!yC||!$)return Promise.resolve();const z=!L&&OrA(_P(Y.fullPath,0))||(P||!L)&&history.state&&history.state.scroll||null;return cr().then(()=>$(Y,nA,z)).then(w=>w&&LrA(w)).catch(w=>j(w,Y,nA))}const aA=Y=>n.go(Y);let FA;const UA=new Set,ne={currentRoute:a,listening:!0,addRoute:u,removeRoute:c,hasRoute:d,getRoutes:h,resolve:B,options:e,push:v,replace:p,go:aA,back:()=>aA(-1),forward:()=>aA(1),beforeEach:i.add,beforeResolve:o.add,afterEach:g.add,onError:eA.add,isReady:oA,install(Y){const nA=this;Y.component("RouterLink",HK),Y.component("RouterView",gnA),Y.config.globalProperties.$router=nA,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(a)}),yC&&!FA&&a.value===zo&&(FA=!0,v(n.location).catch($=>{}));const L={};for(const $ in zo)Object.defineProperty(L,$,{get:()=>a.value[$],enumerable:!0});Y.provide(PQ,nA),Y.provide(hM,J1(L)),Y.provide(e0,a);const P=Y.unmount;UA.add(Y),Y.unmount=function(){UA.delete(Y),UA.size<1&&(s=zo,O&&O(),O=null,a.value=zo,FA=!1,X=!1),P()}}};function ce(Y){return Y.reduce((nA,L)=>nA.then(()=>N(L)),Promise.resolve())}return ne}function snA(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=>hI(s,g))?r.push(g):A.push(g));const a=e.matched[o];a&&(t.matched.find(s=>hI(s,a))||n.push(a))}return[A,r,n]}function ZI(){return pt(PQ)}function FQ(){return pt(hM)}const CnA=["src","alt"],InA=["title"],qc=yA({__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,CnA)):(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,InA))}}),lnA=["top","right","bottom","left"],rF=["start","end"],nF=lnA.reduce((e,t)=>e.concat(t,t+"-"+rF[0],t+"-"+rF[1]),[]),rc=Math.min,Sa=Math.max,unA={left:"right",right:"left",bottom:"top",top:"bottom"},cnA={start:"end",end:"start"};function t0(e,t,A){return Sa(e,rc(t,A))}function Fs(e,t){return typeof e=="function"?e(t):e}function Wi(e){return e.split("-")[0]}function ui(e){return e.split("-")[1]}function UK(e){return e==="x"?"y":"x"}function dM(e){return e==="y"?"height":"width"}function jc(e){return["top","bottom"].includes(Wi(e))?"y":"x"}function BM(e){return UK(jc(e))}function KK(e,t,A){A===void 0&&(A=!1);const r=ui(e),n=BM(e),i=dM(n);let o=n==="x"?r===(A?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=iE(o)),[o,iE(o)]}function hnA(e){const t=iE(e);return[nE(e),t,nE(t)]}function nE(e){return e.replace(/start|end/g,t=>cnA[t])}function dnA(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 BnA(e,t,A,r){const n=ui(e);let i=dnA(Wi(e),A==="start",r);return n&&(i=i.map(o=>o+"-"+n),t&&(i=i.concat(i.map(nE)))),i}function iE(e){return e.replace(/left|right|bottom|top/g,t=>unA[t])}function fnA(e){return{top:0,right:0,bottom:0,left:0,...e}}function _K(e){return typeof e!="number"?fnA(e):{top:e,right:e,bottom:e,left:e}}function yu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function iF(e,t,A){let{reference:r,floating:n}=e;const i=jc(t),o=BM(t),g=dM(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 EnA=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}=iF(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}=iF(s,l,a)),h=-1;continue}}return{x:C,y:I,placement:l,strategy:n,middlewareData:u}};async function RQ(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}=Fs(t,e),c=_K(u),d=g[l?I==="floating"?"reference":"floating":I],B=yu(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=yu(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 QnA=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}=Fs(e,t)||{};if(a==null)return{};const C=_K(s),I={x:A,y:r},l=BM(n),u=dM(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,S=D/2-c[u]/2-1,N=rc(C[d],S),m=rc(C[B],S),R=N,k=D-c[u]-m,O=D/2-c[u]/2+F,Z=t0(R,O,k),eA=ui(n)!=null&&O!=Z&&i.reference[u]/2-(O<R?N:m)-c[u]/2<0?O<R?R-O:k-O:0;return{[l]:I[l]-eA,data:{[l]:Z,centerOffset:O-Z+eA}}}});function vnA(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?nE(n)!==n:!1):!0)}const pnA=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=nF,autoAlignment:u=!0,...c}=Fs(e,t),h=I!==void 0||l===nF?vnA(I||null,u,l):l,d=await RQ(t,c),B=((A=o.autoPlacement)==null?void 0:A.index)||0,f=h[B];if(f==null)return{};const E=KK(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]),N=((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 N!==g?{data:{index:B+1,overflows:p},reset:{placement:N}}:{}}}},wnA=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}=Fs(e,t),d=Wi(r),B=Wi(o)===o,f=await(g.isRTL==null?void 0:g.isRTL(a.floating)),E=I||(B||!c?[iE(o)]:hnA(o));!I&&u!=="none"&&E.push(...BnA(o,c,u,f));const v=[o,...E],p=await RQ(t,h),D=[];let F=((A=n.flip)==null?void 0:A.overflows)||[];if(s&&D.push(p[d]),C){const R=KK(r,i,f);D.push(p[R[0]],p[R[1]])}if(F=[...F,{placement:r,overflows:D}],!D.every(R=>R<=0)){var S,N;const R=(((S=n.flip)==null?void 0:S.index)||0)+1,k=v[R];if(k)return{data:{index:R,overflows:F},reset:{placement:k}};let O=(N=F.filter(Z=>Z.overflows[0]<=0).sort((Z,hA)=>Z.overflows[1]-hA.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(l){case"bestFit":{var m;const Z=(m=F.map(hA=>[hA.placement,hA.overflows.filter(eA=>eA>0).reduce((eA,X)=>eA+X,0)]).sort((hA,eA)=>hA[1]-eA[1])[0])==null?void 0:m[0];Z&&(O=Z);break}case"initialPlacement":O=o;break}if(r!==O)return{reset:{placement:O}}}return{}}}};async function DnA(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=jc(A)==="y",s=["left","top"].includes(o)?-1:1,C=i&&a?-1:1,I=Fs(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 ynA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:A,y:r}=t,n=await DnA(t,e);return{x:A+n.x,y:r+n.y,data:n}}}},mnA=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}=Fs(e,t),s={x:A,y:r},C=await RQ(t,a),I=jc(Wi(n)),l=UK(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=t0(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=t0(f,c,E)}const h=g.fn({...t,[l]:u,[I]:c});return{...h,data:{x:h.x-A,y:h.y-r}}}}},bnA=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}=Fs(e,t),a=await RQ(t,g),s=Wi(A),C=ui(A),I=jc(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?rc(B,D):D}else{const D=u-a.top-a.bottom;E=C||f?rc(d,D):D}if(f&&!C){const D=Sa(a.left,0),F=Sa(a.right,0),S=Sa(a.top,0),N=Sa(a.bottom,0);I?v=l-2*(D!==0||F!==0?D+F:Sa(a.left,a.right)):E=u-2*(S!==0||N!==0?S+N: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 On(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xi(e){return On(e).getComputedStyle(e)}const oF=Math.min,mu=Math.max,oE=Math.round;function YK(e){const t=xi(e);let A=parseFloat(t.width),r=parseFloat(t.height);const n=e.offsetWidth,i=e.offsetHeight,o=oE(A)!==n||oE(r)!==i;return o&&(A=n,r=i),{width:A,height:r,fallback:o}}function Jg(e){return zK(e)?(e.nodeName||"").toLowerCase():""}let Pd;function JK(){if(Pd)return Pd;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Pd=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Pd):navigator.userAgent}function Ti(e){return e instanceof On(e).HTMLElement}function Dg(e){return e instanceof On(e).Element}function zK(e){return e instanceof On(e).Node}function gF(e){return typeof ShadowRoot>"u"?!1:e instanceof On(e).ShadowRoot||e instanceof ShadowRoot}function LQ(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 r0(e){const t=/firefox/i.test(JK()),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 WK(){return!/^((?!chrome|android).)*safari/i.test(JK())}function fM(e){return["html","body","#document"].includes(Jg(e))}function qK(e){return Dg(e)?e:e.contextElement}const jK={x:1,y:1};function ZC(e){const t=qK(e);if(!Ti(t))return jK;const A=t.getBoundingClientRect(),{width:r,height:n,fallback:i}=YK(t);let o=(i?oE(A.width):A.width)/r,g=(i?oE(A.height):A.height)/n;return o&&Number.isFinite(o)||(o=1),g&&Number.isFinite(g)||(g=1),{x:o,y:g}}function nc(e,t,A,r){var n,i;t===void 0&&(t=!1),A===void 0&&(A=!1);const o=e.getBoundingClientRect(),g=qK(e);let a=jK;t&&(r?Dg(r)&&(a=ZC(r)):a=ZC(e));const s=g?On(g):window,C=!WK()&&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=On(g),d=r&&Dg(r)?On(r):r;let B=h.frameElement;for(;B&&r&&d!==h;){const f=ZC(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=On(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((zK(e)?e.ownerDocument:e.document)||window.document).documentElement}function $Q(e){return Dg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function VK(e){return nc(yg(e)).left+$Q(e).scrollLeft}function ic(e){if(Jg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gF(e)&&e.host||yg(e);return gF(t)?t.host:t}function ZK(e){const t=ic(e);return fM(t)?t.ownerDocument.body:Ti(t)&&LQ(t)?t:ZK(t)}function gE(e,t){var A;t===void 0&&(t=[]);const r=ZK(e),n=r===((A=e.ownerDocument)==null?void 0:A.body),i=On(r);return n?t.concat(i,i.visualViewport||[],LQ(r)?r:[]):t.concat(r,gE(r))}function aF(e,t,A){return t==="viewport"?yu(function(r,n){const i=On(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=WK();(l||!l&&n==="fixed")&&(C=g.offsetLeft,I=g.offsetTop)}return{width:a,height:s,x:C,y:I}}(e,A)):Dg(t)?yu(function(r,n){const i=nc(r,!0,n==="fixed"),o=i.top+r.clientTop,g=i.left+r.clientLeft,a=Ti(r)?ZC(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)):yu(function(r){const n=yg(r),i=$Q(r),o=r.ownerDocument.body,g=mu(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=mu(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let s=-i.scrollLeft+VK(r);const C=-i.scrollTop;return xi(o).direction==="rtl"&&(s+=mu(n.clientWidth,o.clientWidth)-g),{width:g,height:a,x:s,y:C}}(yg(e)))}function sF(e){return Ti(e)&&xi(e).position!=="fixed"?e.offsetParent:null}function CF(e){const t=On(e);let A=sF(e);for(;A&&MnA(A)&&xi(A).position==="static";)A=sF(A);return A&&(Jg(A)==="html"||Jg(A)==="body"&&xi(A).position==="static"&&!r0(A))?t:A||function(r){let n=ic(r);for(;Ti(n)&&!fM(n);){if(r0(n))return n;n=ic(n)}return null}(e)||t}function knA(e,t,A){const r=Ti(t),n=yg(t),i=nc(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"||LQ(n))&&(o=$Q(t)),Ti(t)){const a=nc(t,!0);g.x=a.x+t.clientLeft,g.y=a.y+t.clientTop}else n&&(g.x=VK(n));return{x:i.left+o.scrollLeft-g.x,y:i.top+o.scrollTop-g.y,width:i.width,height:i.height}}const SnA={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=gE(s).filter(d=>Dg(d)&&Jg(d)!=="body"),u=null;const c=xi(s).position==="fixed";let h=c?ic(s):s;for(;Dg(h)&&!fM(h);){const d=xi(h),B=r0(h);(c?B||u:B||d.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=d:l=l.filter(f=>f!==h),h=ic(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=aF(t,C,n);return s.top=mu(I.top,s.top),s.right=oF(I.right,s.right),s.bottom=oF(I.bottom,s.bottom),s.left=mu(I.left,s.left),s},aF(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"||LQ(i))&&(o=$Q(A)),Ti(A))){const s=nc(A);g=ZC(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)?YK(e):e.getBoundingClientRect()},getOffsetParent:CF,getDocumentElement:yg,getScale:ZC,async getElementRects(e){let{reference:t,floating:A,strategy:r}=e;const n=this.getOffsetParent||CF,i=this.getDimensions;return{reference:knA(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"},NnA=(e,t,A)=>{const r=new Map,n={platform:SnA,...A},i={...n.platform,_c:r};return EnA(e,t,{...n,platform:i})},Wa={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 oc(e,t){let A=Wa.themes[e]||{},r;do r=A[t],typeof r>"u"?A.$extend?A=Wa.themes[A.$extend]||{}:(A=null,r=Wa[t]):A=null;while(A);return r}function PnA(e){const t=[e];let A=Wa.themes[e]||{};do A.$extend&&!A.$resetCss?(t.push(A.$extend),A=Wa.themes[A.$extend]||{}):A=null;while(A);return t.map(r=>`v-popper--theme-${r}`)}function IF(e){const t=[e];let A=Wa.themes[e]||{};do A.$extend?(t.push(A.$extend),A=Wa.themes[A.$extend]||{}):A=null;while(A);return t}let BI=!1;if(typeof window<"u"){BI=!1;try{const e=Object.defineProperty({},"passive",{get(){BI=!0}});window.addEventListener("test",null,e)}catch{}}let XK=!1;typeof window<"u"&&typeof navigator<"u"&&(XK=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const A_=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),lF={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},uF={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function cF(e,t){const A=e.indexOf(t);A!==-1&&e.splice(A,1)}function Tp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const oi=[];let ya=null;const hF={};function dF(e){let t=hF[e];return t||(t=hF[e]=[]),t}let n0=function(){};typeof window<"u"&&(n0=window.Element);function Ee(e){return function(t){return oc(t.theme,e)}}const Hp="__floating-vue__popper",e_=()=>yA({name:"VPopper",provide(){return{[Hp]:{parentPopper:this}}},inject:{[Hp]:{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=>A_.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,n0,Boolean],default:Ee("container")},boundary:{type:[String,n0],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[Hp])==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(ynA({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(pnA({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(mnA({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(wnA({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(QnA({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(bnA({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 NnA(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 Tp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...gE(this.$_referenceNode),...gE(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<oi.length;A++)t=oi[A],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}oi.push(this),document.body.classList.add("v-popper--some-open");for(const t of IF(this.theme))dF(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 Tp(),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,cF(oi,this),oi.length===0&&document.body.classList.remove("v-popper--some-open");for(const A of IF(this.theme)){const r=dF(A);cF(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 Tp(),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,lF,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],lF,this.popperTriggers,this.popperShowTriggers,e);const t=A=>{A.usedByTooltip||this.hide({event:A})};this.$_registerTriggerListeners(this.$_targetNodes,uF,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],uF,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,BI?{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(bu>=e.left&&bu<=e.right&&Mu>=e.top&&Mu<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),A=bu-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 Fd(Vo,Zo,i,o,t.left,t.top,t.left,t.bottom)||Fd(Vo,Zo,i,o,t.left,t.top,t.right,t.top)||Fd(Vo,Zo,i,o,t.right,t.top,t.right,t.bottom)||Fd(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(XK){const e=BI?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>BF(t),e),document.addEventListener("touchend",t=>fF(t,!0),e)}else window.addEventListener("mousedown",e=>BF(e),!0),window.addEventListener("click",e=>fF(e,!1),!0);window.addEventListener("resize",LnA)}function BF(e,t){for(let A=0;A<oi.length;A++){const r=oi[A];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function fF(e,t){FnA(e,t)}function FnA(e,t){const A={};for(let r=oi.length-1;r>=0;r--){const n=oi[r];try{const i=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!A[n.randomId]&&EF(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&&EF(o,o.containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function EF(e,t,A){return A.closeAllPopover||A.closePopover&&t||RnA(e,A)&&!t}function RnA(e,t){if(typeof e.autoHide=="function"){const A=e.autoHide(t);return e.lastAutoHide=A,A}return e.autoHide}function LnA(){for(let e=0;e<oi.length;e++)oi[e].$_computePosition()}let Vo=0,Zo=0,bu=0,Mu=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vo=bu,Zo=Mu,bu=e.clientX,Mu=e.clientY},BI?{passive:!0}:void 0);function Fd(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 $nA={extends:e_()},OQ=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A};function OnA(e,t,A,r,n,i){return M(),x("div",{ref:"reference",class:SA(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ZA(e.$slots,"default",xc(WI(e.slotData)))],2)}const GnA=OQ($nA,[["render",OnA]]);function xnA(){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 sf;function i0(){i0.init||(i0.init=!0,sf=xnA()!==-1)}var GQ={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){i0(),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",sf&&this.$el.appendChild(e),e.data="about:blank",sf||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&&(!sf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const TnA=aU();EQ("data-v-b329ee4c");const HnA={class:"resize-observer",tabindex:"-1"};QQ();const UnA=TnA((e,t,A,r,n,i)=>(M(),tA("div",HnA)));GQ.render=UnA;GQ.__scopeId="data-v-b329ee4c";GQ.__file="src/components/ResizeObserver.vue";const t_=(e="theme")=>({computed:{themeClass(){return PnA(this[e])}}}),KnA=yA({name:"VPopperContent",components:{ResizeObserver:GQ},mixins:[t_()],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}}}),_nA=["id","aria-hidden","tabindex","data-popper-placement"],YnA={ref:"inner",class:"v-popper__inner"},JnA=y("div",{class:"v-popper__arrow-outer"},null,-1),znA=y("div",{class:"v-popper__arrow-inner"},null,-1),WnA=[JnA,znA];function qnA(e,t,A,r,n,i){const o=vn("ResizeObserver");return M(),x("div",{id:e.popperId,ref:"popover",class:SA(["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]=OU(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",YnA,[e.mounted?(M(),x(DA,{key:0},[y("div",null,[ZA(e.$slots,"default")]),e.handleResize?(M(),tA(o,{key:0,onNotify:t[1]||(t[1]=g=>e.$emit("resize",g))})):wA("",!0)],64)):wA("",!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)},WnA,4)],4)],46,_nA)}const r_=OQ(KnA,[["render",qnA]]),n_={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 o0=function(){};typeof window<"u"&&(o0=window.Element);const jnA=yA({name:"VPopperWrapper",components:{Popper:GnA,PopperContent:r_},mixins:[n_,t_("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,o0,Boolean],default:void 0},boundary:{type:[String,o0],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 VnA(e,t,A,r,n,i){const o=vn("PopperContent"),g=vn("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})=>[ZA(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(()=>[ZA(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 EM=OQ(jnA,[["render",VnA]]),ZnA={...EM,name:"VDropdown",vPopperTheme:"dropdown"};({...EM});const XnA={...EM,name:"VTooltip",vPopperTheme:"tooltip"},AiA=yA({name:"VTooltipDirective",components:{Popper:e_(),PopperContent:r_},mixins:[n_],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>oc(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>oc(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}}}),eiA=["innerHTML"],tiA=["textContent"];function riA(e,t,A,r,n,i){const o=vn("PopperContent"),g=vn("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:SA({"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,eiA)):(M(),x("div",{key:1,textContent:mA(e.finalContent)},null,8,tiA))]),_: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 niA=OQ(AiA,[["render",riA]]),i_="v-popper--has-tooltip";function iiA(e,t){let A=e.placement;if(!A&&t)for(const r of A_)t[r]&&(A=r);return A||(A=oc(e.theme||"tooltip","placement")),A}function o_(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=iiA(r,A),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let Up,gc,oiA=0;function giA(){if(Up)return;gc=H([]),Up=oM({name:"VTooltipDirectiveApp",setup(){return{directives:gc}},render(){return this.directives.map(t=>qI(niA,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Up.mount(e)}function aiA(e,t,A){giA();const r=H(o_(e,t,A)),n=H(!1),i={id:oiA++,options:r,shown:n};return gc.value.push(i),e.classList&&e.classList.add(i_),e.$_popper={options:r,item:i,show(){n.value=!0},hide(){n.value=!1}}}function g_(e){if(e.$_popper){const t=gc.value.indexOf(e.$_popper.item);t!==-1&&gc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(i_)}function QF(e,{value:t,modifiers:A}){const r=o_(e,t,A);if(!r.content||oc(r.theme||"tooltip","disabled"))g_(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=r):n=aiA(e,t,A),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const siA={beforeMount:QF,updated:QF,beforeUnmount(e){g_(e)}};function vF(e){e.addEventListener("mousedown",aE),e.addEventListener("click",aE),e.addEventListener("touchstart",a_,BI?{passive:!0}:!1)}function pF(e){e.removeEventListener("mousedown",aE),e.removeEventListener("click",aE),e.removeEventListener("touchstart",a_),e.removeEventListener("touchend",s_),e.removeEventListener("touchcancel",C_)}function aE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function a_(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",s_),t.addEventListener("touchcancel",C_)}}function s_(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 C_(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const CiA={beforeMount(e,{value:t,modifiers:A}){e.$_closePopoverModifiers=A,(typeof t>"u"||t)&&vF(e)},updated(e,{value:t,oldValue:A,modifiers:r}){e.$_closePopoverModifiers=r,t!==A&&(typeof t>"u"||t?vF(e):pF(e))},beforeUnmount(e){pF(e)}},En=siA,I_=CiA,IiA=ZnA,liA=XnA,QM=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},uiA={},ciA={class:"h-3 w-3 $ui-inline-fcc"},hiA=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),diA=[hiA];function BiA(e,t){return M(),x("div",ciA,diA)}const l_=QM(uiA,[["render",BiA]]),fiA={key:2},ie=yA({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=AAA(),i=_(()=>n.to?"router-link":n.href?"a":"button"),o=_(()=>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=fU(),C=_(()=>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(l_,{key:0,class:"mt0.5 h-full w3"})):ZA(I.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),Q(s).default?(M(),x("div",fiA,[ZA(I.$slots,"default")])):wA("",!0),ZA(I.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),EiA={},QiA={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function viA(e,t){return M(),x("span",QiA,[ZA(e.$slots,"default")])}const wF=QM(EiA,[["render",viA]]),De=yA({__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:SA(["$ui-base",[t.icon,t.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function xQ(e){return T1()?(x4(e),!0):!1}function piA(e,t,{enumerable:A=!1,unwrap:r=!0}={}){for(const[n,i]of Object.entries(t))n!=="value"&&(JA(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 Hn(e){return typeof e=="function"?e():Q(e)}const u_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wiA=e=>typeof e<"u",DiA=Object.prototype.toString,yiA=e=>DiA.call(e)==="[object Object]",sE=()=>{},DF=miA();function miA(){var e,t;return u_&&((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 c_(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 h_=e=>e();function biA(e,t={}){let A,r,n=sE;const i=o=>{clearTimeout(o),n(),n=sE};return o=>{const g=Hn(e),a=Hn(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=h_){const t=H(!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 kiA(e){return e||Aa()}function d_(...e){if(e.length!==1)return eU(...e);const t=e[0];return typeof t=="function"?Lo(V1(()=>({get:t,set:sE}))):H(t)}function SiA(e,t=200,A={}){return c_(biA(t,A),e)}function NiA(e,t=200,A={}){const r=H(e.value),n=SiA(()=>{r.value=e.value},t,A);return Ae(e,()=>n()),r}function PiA(e,t={}){let A=e,r,n;const i=V1((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 piA(i,{get:o,set:g,untrackedGet:()=>o(!1),silentSet:a=>g(a,!1),peek:()=>o(!1),lay:a=>g(a,!1)},{enumerable:!0})}function FiA(e,t,A={}){const{eventFilter:r=h_,...n}=A;return Ae(e,c_(r,t),n)}function RiA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=MiA(r);return{stop:FiA(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function vM(e,t=!0,A){kiA()?pn(e,A):t?e():cr(e)}function LiA(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=JA(e),i=H(e);function o(g){if(arguments.length)return i.value=g,i.value;{const a=Hn(A);return i.value=i.value===a?Hn(r):a,i.value}}return n?o:[i,o]}function dg(e){var t;const A=Hn(e);return(t=A?.$el)!=null?t:A}const zg=u_?window:void 0;function CE(...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 sE;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),Hn(n)],([C,I])=>{if(o(),!C)return;const l=yiA(I)?{...I}:I;i.push(...A.flatMap(u=>r.map(c=>g(C,u,c,l))))},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return xQ(s),s}function $iA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function B_(...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=$iA(t);return CE(n,i,s=>{s.repeat&&Hn(g)||a(s)&&A(s)},o)}function OiA(){const e=H(!1),t=Aa();return t&&pn(()=>{e.value=!0},t),e}function f_(e){const t=OiA();return _(()=>(t.value,!!e()))}function GiA(e,t={}){const{window:A=zg}=t,r=f_(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=H(!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(Hn(e)),"addEventListener"in n?n.addEventListener("change",o):n.addListener(o),i.value=n.matches)});return xQ(()=>{a(),g(),n=void 0}),i}function xiA(e){return JSON.parse(JSON.stringify(e))}const Rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ld="__vueuse_ssr_handlers__",TiA=HiA();function HiA(){return Ld in Rd||(Rd[Ld]=Rd[Ld]||{}),Rd[Ld]}function E_(e,t){return TiA[e]||t}function UiA(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 KiA={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()}},yF="vueuse-storage";function _iA(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:H)(typeof t=="function"?t():t);if(!A)try{A=E_("getDefaultStorage",()=>{var m;return(m=zg)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=Hn(t),B=UiA(d),f=(n=r.serializer)!=null?n:KiA[B],{pause:E,resume:v}=RiA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&vM(()=>{CE(I,"storage",S),CE(I,yF,N),c&&S()}),c||S();function p(m,R){I&&I.dispatchEvent(new CustomEvent(yF,{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 S(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 N(m){S(m.detail)}return h}function YiA(e){return GiA("(prefers-color-scheme: dark)",e)}function JiA(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=YiA({window:n}),u=_(()=>l.value?"dark":"light"),c=a||(o==null?d_(r):_iA(o,r,i,{window:n,listenToStorageChanges:g})),h=_(()=>c.value==="auto"?u.value:c.value),d=E_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):dg(v);if(!F)return;let S;if(C&&(S=n.document.createElement("style"),S.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n.document.head.appendChild(S)),p==="class"){const N=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{N.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(S).opacity,document.head.removeChild(S))});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}),vM(()=>f(h.value));const E=_({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 ziA(e,t,A={}){const{window:r=zg,...n}=A;let i;const o=f_(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=_(()=>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 xQ(C),{isSupported:o,stop:C}}function WiA(e,t={width:0,height:0},A={}){const{window:r=zg,box:n="content-box"}=A,i=_(()=>{var I,l;return(l=(I=dg(e))==null?void 0:I.namespaceURI)==null?void 0:l.includes("svg")}),o=H(t.width),g=H(t.height),{stop:a}=ziA(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);vM(()=>{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 Kp(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Q_(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:Q_(A)}}function qiA(e){const t=e||window.event,A=t.target;return Q_(A)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const $d=new WeakMap;function jiA(e,t=!1){const A=H(t);let r=null;Ae(d_(e),o=>{const g=Kp(Hn(o));if(g){const a=g;$d.get(a)||$d.set(a,a.style.overflow),A.value&&(a.style.overflow="hidden")}},{immediate:!0});const n=()=>{const o=Kp(Hn(e));!o||A.value||(DF&&(r=CE(o,"touchmove",g=>{qiA(g)},{passive:!1})),o.style.overflow="hidden",A.value=!0)},i=()=>{var o;const g=Kp(Hn(e));!g||!A.value||(DF&&r?.(),g.style.overflow=(o=$d.get(g))!=null?o:"",$d.delete(g),A.value=!1)};return xQ(i),_({get(){return A.value},set(o){o?n():i()}})}function Rs(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):xiA(E):E,B=()=>wiA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=H(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 _({get(){return B()},set(E){f(E)}})}const ViA={class:"$ui-dark-toggle-vtr"},v_=yA({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(e){const t=e,A=Rs(t,"isDark"),r=JiA({initialValue:A.value?"dark":"light",onChanged:g=>{A.value=g==="dark"}}),n=_({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",ViA,[ZA(g.$slots,"default",xc(WI({mode:Q(r),isDark:n.value,toggle:o})))]))}}),ZiA={},XiA={class:"$ui-base border $ui-border-base rounded shadow-sm"};function AoA(e,t){return M(),x("div",XiA,[ZA(e.$slots,"default")])}const Cf=QM(ZiA,[["render",AoA]]),pM=yA({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(e){return(t,A)=>(M(),x("div",{class:SA(["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":""]])},[ZA(t.$slots,"default")],2))}}),eoA={class:"h7.5 w-full $ui-fbc"},toA={class:"text-4.5"},roA=y("div",{class:"i-carbon-close"},null,-1),noA=[roA],ioA={class:"content transition-all transition-duration-300"},ooA={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},goA={class:"$ui-fcc"},aoA=yA({__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=Rs(A,"modelValue",t,{passive:!0}),n=jiA(()=>window.document.documentElement);Er(()=>{r.value?n.value=!0:n.value=!1});function i(){r.value&&A.autoClose&&(r.value=!1)}B_("Escape",()=>{i()});const o=H(!1);return pn(()=>o.value=!0),(g,a)=>o.value||g.mountTo==="body"?(M(),tA(MU,{key:0,to:g.mountTo},[T(_c,{"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(pM,{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",eoA,[y("div",toA,[ZA(g.$slots,"title",{},()=>[RA(mA(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},noA)):wA("",!0)]),y("div",ioA,[ZA(g.$slots,"default")]),y("div",ooA,[ZA(g.$slots,"footer",{},()=>[ZA(g.$slots,"footer",{},()=>[y("div",goA,[T(ie,{type:"primary",onClick:i},{default:U(()=>[RA(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):wA("",!0)]),_:3})],8,["to"])):wA("",!0)}}),soA=["type","placeholder","disabled"],CoA={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"},_p="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",bo=yA({__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=Rs(A,"modelValue",r),i=NiA(_(()=>A.loading),A.loadingDebounceTime),o=PiA(!1,{onChanged(I){r("updateFocused",I)}}),g=_(()=>A.variant==="flat"||A.variant==="warning"||A.disabled||A.readonly),a=_(()=>A.disabled||i.value),s=H();let C=!1;return Er(()=>{i.value&&o.value?C=!0:!i.value&&C&&(C=!1,cr(()=>{o.value=!0}))}),pn(()=>{A.autoFocus&&(o.value=!0)}),Er(()=>{var I;o.value&&((I=s.value)==null||I.focus())}),(I,l)=>(M(),x("div",{class:SA(["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:SA(_p)},[T(De,{icon:I.leftIcon},null,8,["icon"])])):wA("",!0),vt(y("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":l[0]||(l[0]=u=>JA(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,soA),[[geA,Q(n)]]),Q(i)?(M(),x("div",{key:1,class:SA(_p)},[T(l_)])):I.rightIcon?(M(),x("div",{key:2,class:SA(_p)},[T(De,{icon:I.rightIcon},null,8,["icon"])])):wA("",!0),g.value?wA("",!0):(M(),x("div",CoA))],2))}}),IoA={class:"overflow-hidden rounded-lg shadow-lg"},loA=y("div",{class:"p2 opacity-40"}," Empty... ",-1),fI=yA({__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",_(()=>t.disabled)),(A,r)=>(M(),tA(Q(IiA),{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",IoA,[ZA(A.$slots,"popper",xc(WI({hide:n})),()=>[loA])])]),default:U(()=>[ZA(A.$slots,"default",{},()=>[T(ie,Ir({...A.buttonProps,disabled:A.disabled},{class:A.buttonClass}),dU({icon:U(()=>[ZA(A.$slots,"button-icon")]),"icon-right":U(()=>[ZA(A.$slots,"button-icon-right")]),_:2},[A.label?{name:"default",fn:U(()=>[RA(mA(A.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),mF=yA({__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(()=>[ZA(r.$slots,"icon")]),default:U(()=>[ZA(r.$slots,"default")]),_:3},16,["disabled"])),[[Q(I_)]])}}),uoA={class:"$ui-fec gap2.5"},coA=yA({__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=Rs(A,"modelValue",r);Er(()=>{n.value||r("close")});function i(o=!1){(A.autoClose||o)&&(n.value=!1)}return(o,g)=>(M(),tA(aoA,{modelValue:Q(n),"onUpdate:modelValue":g[2]||(g[2]=a=>JA(n)?n.value=a:null),width:o.width,height:o.height,title:o.title,closable:!1},{footer:U(()=>[y("div",uoA,[T(ie,{onClick:g[0]||(g[0]=()=>{r("cancel"),i(!0)})},{default:U(()=>[RA(mA(o.cancelText),1)]),_:1}),T(ie,{loading:o.loading,type:"primary",onClick:g[1]||(g[1]=()=>{r("confirm"),i()})},{default:U(()=>[RA(mA(o.confirmText),1)]),_:1},8,["loading"])])]),default:U(()=>[ZA(o.$slots,"default",{class:"h-auto w-auto"},()=>[RA(mA(o.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),hoA={class:"m1 min-w-35 w-auto flex flex-col"},doA=["onClick"],BoA=y("div",{class:"i-mdi-chevron-down"},null,-1),IE=yA({__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=fU(),i=_({get:()=>A.modelValue,set:a=>r("update:modelValue",a)}),o=_(()=>{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(fI,Ir({label:o.value},{buttonProps:a.buttonProps,disabled:a.disabled}),dU({popper:U(()=>[y("div",hoA,[Q(n).item?(M(!0),x(DA,{key:0},Be(a.options,C=>(M(),x("div",{key:C.value,class:"cursor-pointer",onClick:I=>g(C)},[ZA(a.$slots,"item",xc(WI({item:C,active:a.multiple?i.value.includes(C.value):C.value===i.value,disabled:a.disabled})))],8,doA))),128)):(M(!0),x(DA,{key:1},Be(a.options,C=>vt((M(),tA(ie,{key:C.value,disabled:a.disabled,round:"normal",class:SA(["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(()=>[RA(mA(C.label),1)]),_:2},1032,["disabled","class","onClick"])),[[Q(I_),a.autoClose]])),128))])]),"button-icon-right":U(()=>[BoA]),_:2},[Q(n).button?{name:"default",fn:U(()=>[ZA(a.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),bF=yA({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Rs(e,"modelValue",t),r=LiA(A);return(n,i)=>(M(),x("div",{class:SA([[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)())},[ZA(n.$slots,"default"),y("div",{class:SA([{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:SA(["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))}}),MC=yA({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Rs(e,"modelValue",t);return(r,n)=>(M(),x("div",{class:SA(["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:SA([[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))}}),p_=yA({__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}=WiA(()=>typeof A.top=="string"?document.querySelector(A.top):A.top,void 0,{box:"border-box"}),i=Rs(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%"}};B_("Escape",()=>{A.closable&&(i.value=!1)});const g=_(()=>o[A.placement]),a=H(!1);return pn(()=>a.value=!0),(s,C)=>a.value||s.mountTo==="body"?(M(),tA(MU,{key:0,to:s.mountTo},[T(_c,{"enter-from-class":`${g.value.transition}`,"leave-to-class":`${g.value.transition}`},{default:U(()=>[Q(i)?(M(),tA(pM,{key:0,class:SA({"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:SA([[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)})):wA("",!0),ZA(s.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):wA("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):wA("",!0)}}),foA=yA({__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=H(!1);pn(()=>{n.value=!0,setTimeout(()=>{n.value=!1},t.duration)});const i=_(()=>t.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(o,g)=>(M(),x("div",{class:SA(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":o.placement.startsWith("top")},{"bottom-0":o.placement.startsWith("bottom")}]])},[T(_c,{"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:SA(["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:SA(A[o.type])},null,2),y("div",null,mA(o.message),1)],2)],4)):wA("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),EoA=yA({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(e){return(t,A)=>(M(),tA(Q(liA),Ir({disabled:t.disabled,placement:t.placement},t.$attrs),{popper:U(()=>[ZA(t.$slots,"popper")]),default:U(()=>[ZA(t.$slots,"default")]),_:3},16,["disabled","placement"]))}});function g0(e){const t=document.createElement("div");t.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(t);const A=e.onClose;function r(){EP(null,t)}e.onClose=()=>{r(),A?.(),document.body.removeChild(t)};const n=qI(foA,e);EP(n,t)}function Mo(e){return Array.isArray?Array.isArray(e):y_(e)==="[object Array]"}const QoA=1/0;function voA(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-QoA?"-0":t}function poA(e){return e==null?"":voA(e)}function Fi(e){return typeof e=="string"}function w_(e){return typeof e=="number"}function woA(e){return e===!0||e===!1||DoA(e)&&y_(e)=="[object Boolean]"}function D_(e){return typeof e=="object"}function DoA(e){return D_(e)&&e!==null}function dn(e){return e!=null}function Yp(e){return!e.trim().length}function y_(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const yoA="Incorrect 'index' type",moA=e=>`Invalid value for key ${e}`,boA=e=>`Pattern length exceeds max of ${e}.`,MoA=e=>`Missing ${e} property in key`,koA=e=>`Property 'weight' in key '${e}' must be a positive integer`,MF=Object.prototype.hasOwnProperty;class SoA{constructor(t){this._keys=[],this._keyMap={};let A=0;t.forEach(r=>{let n=m_(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 m_(e){let t=null,A=null,r=null,n=1,i=null;if(Fi(e)||Mo(e))r=e,t=kF(e),A=a0(e);else{if(!MF.call(e,"name"))throw new Error(MoA("name"));const o=e.name;if(r=o,MF.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(koA(o));t=kF(o),A=a0(o),i=e.getFn}return{path:t,id:A,weight:n,src:r,getFn:i}}function kF(e){return Mo(e)?e:e.split(".")}function a0(e){return Mo(e)?e.join("."):e}function NoA(e,t){let A=[],r=!1;const n=(i,o,g)=>{if(dn(i))if(!o[g])A.push(i);else{let a=o[g];const s=i[a];if(!dn(s))return;if(g===o.length-1&&(Fi(s)||w_(s)||woA(s)))A.push(poA(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 PoA={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},FoA={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},RoA={location:0,threshold:.6,distance:100},LoA={useExtendedSearch:!1,getFn:NoA,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ee={...FoA,...PoA,...RoA,...LoA};const $oA=/[^ ]+/g;function OoA(e=1,t=3){const A=new Map,r=Math.pow(10,t);return{get(n){const i=n.match($oA).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 wM{constructor({getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){this.norm=OoA(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(!dn(t)||Yp(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(dn(o)){if(Mo(o)){let g=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:s,value:C}=a.pop();if(dn(C))if(Fi(C)&&!Yp(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)&&!Yp(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 b_(e,t,{getFn:A=ee.getFn,fieldNormWeight:r=ee.fieldNormWeight}={}){const n=new wM({getFn:A,fieldNormWeight:r});return n.setKeys(e.map(m_)),n.setSources(t),n.create(),n}function GoA(e,{getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){const{keys:r,records:n}=e,i=new wM({getFn:t,fieldNormWeight:A});return i.setKeys(r),i.setIndexRecords(n),i}function Od(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 xoA(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 ToA(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(boA($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=Od(t,{currentLocation:B,expectedLocation:l,distance:n,ignoreLocation:s});if(u=Math.min(F,u),c=B+C,h){let S=0;for(;S<C;)d[B+S]=1,S+=1}}c=-1;let f=[],E=1,v=C+I;const p=1<<C-1;for(let F=0;F<C;F+=1){let S=0,N=v;for(;S<N;)Od(t,{errors:F,currentLocation:l+N,expectedLocation:l,distance:n,ignoreLocation:s})<=u?S=N:v=N,N=Math.floor((v-S)/2+S);v=N;let m=Math.max(1,l-N+1),R=o?I:Math.min(l+N,I)+C,k=Array(R+2);k[R+1]=(1<<F)-1;for(let Z=R;Z>=m;Z-=1){let hA=Z-1,eA=A[e.charAt(hA)];if(h&&(d[hA]=+!!eA),k[Z]=(k[Z+1]<<1|1)&eA,F&&(k[Z]|=(f[Z+1]|f[Z])<<1|1|f[Z+1]),k[Z]&p&&(E=Od(t,{errors:F,currentLocation:hA,expectedLocation:l,distance:n,ignoreLocation:s}),E<=u)){if(u=E,c=hA,c<=l)break;m=Math.max(1,2*l-c)}}if(Od(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=xoA(d,g);F.length?a&&(D.indices=F):D.isMatch=!1}return D}function HoA(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 M_{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:HoA(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}=ToA(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 SF(t,this.multiRegex)}static isSingleMatch(t){return SF(t,this.singleRegex)}search(){}}function SF(e,t){const A=e.match(t);return A?A[1]:null}class UoA 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 KoA 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 _oA 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 YoA 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 JoA 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 zoA 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 k_ 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 M_(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 S_ 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 s0=[UoA,S_,_oA,YoA,zoA,JoA,KoA,k_],NF=s0.length,WoA=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,qoA="|";function joA(e,t={}){return e.split(qoA).map(A=>{let r=A.trim().split(WoA).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<NF;){const C=s0[s];let I=C.isMultiMatch(g);I&&(n.push(new C(I,t)),a=!0)}if(!a)for(s=-1;++s<NF;){const C=s0[s];let I=C.isSingleMatch(g);if(I){n.push(new C(I,t));break}}}return n})}const VoA=new Set([k_.type,S_.type]);class ZoA{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=joA(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;VoA.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 C0=[];function XoA(...e){C0.push(...e)}function I0(e,t){for(let A=0,r=C0.length;A<r;A+=1){let n=C0[A];if(n.condition(e,t))return new n(e,t)}return new M_(e,t)}const lE={AND:"$and",OR:"$or"},l0={PATH:"$path",PATTERN:"$val"},u0=e=>!!(e[lE.AND]||e[lE.OR]),AgA=e=>!!e[l0.PATH],egA=e=>!Mo(e)&&D_(e)&&!u0(e),PF=e=>({[lE.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function N_(e,t,{auto:A=!0}={}){const r=n=>{let i=Object.keys(n);const o=AgA(n);if(!o&&i.length>1&&!u0(n))return r(PF(n));if(egA(n)){const a=o?n[l0.PATH]:i[0],s=o?n[l0.PATTERN]:n[a];if(!Fi(s))throw new Error(moA(a));const C={keyId:a0(a),pattern:s};return A&&(C.searcher=I0(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 u0(e)||(e=PF(e)),r(e)}function tgA(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 rgA(e,t){const A=e.matches;t.matches=[],dn(A)&&A.forEach(r=>{if(!dn(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 ngA(e,t){t.score=e.score}function igA(e,t,{includeMatches:A=ee.includeMatches,includeScore:r=ee.includeScore}={}){const n=[];return A&&n.push(rgA),r&&n.push(ngA),e.map(i=>{const{idx:o}=i,g={item:t[o],refIndex:o};return n.length&&n.forEach(a=>{a(i,g)}),g})}class Ls{constructor(t,A={},r){this.options={...ee,...A},this.options.useExtendedSearch,this._keyStore=new SoA(this.options.keys),this.setCollection(t,r)}setCollection(t,A){if(this._docs=t,A&&!(A instanceof wM))throw new Error(yoA);this._myIndex=A||b_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){dn(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 tgA(a,{ignoreFieldNorm:g}),i&&a.sort(o),w_(A)&&A>-1&&(a=a.slice(0,A)),igA(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(t){const A=I0(t,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:o,n:g})=>{if(!dn(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=N_(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===lE.AND)return[]}return C},n=this._myIndex.records,i={},o=[];return n.forEach(({$:g,i:a})=>{if(dn(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=I0(t,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:o,i:g})=>{if(!dn(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(!dn(A))return[];let n=[];if(Mo(A))A.forEach(({v:i,i:o,n:g})=>{if(!dn(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}}Ls.version="7.0.0";Ls.createIndex=b_;Ls.parseIndex=GoA;Ls.config=ee;Ls.parseQuery=N_;XoA(ZoA);const ogA=[["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"}]]],P_=["assets","graph","vite-inspect"],FF={pinia:"pinia",router:"vueRouter",i18n:"vueI18n"};function ggA(e,t){const A=t.name;return A in FF&&e[FF[A]]}function agA(e,t){const A=_f(ogA);return A.forEach(r=>{r[0]==="modules"&&(r[1]=r[1].filter(n=>t?ggA(t,n):!0))}),e&&!R1?A:A.map(([r,n])=>[r,n.filter(i=>!P_.includes(i.name))])}const F_=Zi([]),R_=H(null),sgA=_(()=>F_.value.find(e=>e.id===R_.value));function qi(e){return T1()?(x4(e),!0):!1}function It(e){return typeof e=="function"?e():Q(e)}const ls=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CgA=e=>typeof e<"u",IgA=e=>e!=null,lgA=Object.prototype.toString,ugA=e=>lgA.call(e)==="[object Object]",lo=()=>{},cgA=hgA();function hgA(){var e,t;return ls&&((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 dgA(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 L_=e=>e();function BgA(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 fgA(e=L_){const t=H(!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 RF(e,t=!1,A="Timeout"){return new Promise((r,n)=>{setTimeout(t?()=>n(A):r,e)})}function EgA(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 QgA(e){return e||Aa()}function vgA(...e){if(e.length!==1)return eU(...e);const t=e[0];return typeof t=="function"?Lo(V1(()=>({get:t,set:lo}))):H(t)}function $_(e,t,A={}){const{eventFilter:r=L_,...n}=A;return Ae(e,dgA(r,t),n)}function pgA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=fgA(r);return{stop:$_(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function XI(e,t=!0,A){QgA()?pn(e,A):t?e():cr(e)}function c0(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(RF(c,h).then(()=>It(e)).finally(()=>d?.())),Promise.race(f)}function r(I,l){if(!JA(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(RF(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 c0(e,!t)}}:{toMatch:A,toBe:r,toBeTruthy:n,toBeNull:i,toBeNaN:g,toBeUndefined:o,changed:s,changedTimes:C,get not(){return c0(e,!t)}}}function wgA(e){return c0(e)}function DgA(e,t=1e3,A={}){const{immediate:r=!0,immediateCallback:n=!1}=A;let i=null;const o=H(!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&&ls&&s(),JA(t)||typeof t=="function"){const C=Ae(t,()=>{o.value&&ls&&s()});qi(C)}return qi(a),{isActive:o,pause:a,resume:s}}function ygA(e,t,A={}){const{immediate:r=!0}=A,n=H(!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,ls&&a()),qi(g),{isPending:Lo(n),start:a,stop:g}}function DM(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=JA(e),i=H(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 yM(e,t,A={}){const{debounce:r=0,maxWait:n=void 0,...i}=A;return $_(e,t,{...i,eventFilter:BgA(r,{maxWait:n})})}function O_(e,t,A){const r=Ae(e,(...n)=>(cr(()=>r()),t(...n)),A);return r}function LF(e,t,A){let r;JA(A)?r={evaluating:A}:r=A||{};const{lazy:n=!1,evaluating:i=void 0,shallow:o=!0,onError:g=lo}=r,a=H(!n),s=o?Zi(t):H(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?_(()=>(a.value=!0,s.value)):s}function Nr(e){var t;const A=It(e);return(t=A?.$el)!=null?t:A}const Vr=ls?window:void 0,mgA=ls?window.document:void 0,G_=ls?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=Vr):[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(()=>[Nr(t),It(n)],([C,I])=>{if(o(),!C)return;const l=ugA(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 $F=!1;function bgA(e,t,A={}){const{window:r=Vr,ignore:n=[],capture:i=!0,detectIframe:o=!1}=A;if(!r)return lo;cgA&&!$F&&($F=!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=Nr(u);return c&&(l.target===c||l.composedPath().includes(c))}}),C=[Zt(r,"click",l=>{const u=Nr(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=Nr(e);g=!a(l)&&!!(u&&!l.composedPath().includes(u))},{passive:!0}),o&&Zt(r,"blur",l=>{setTimeout(()=>{var u;const c=Nr(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=H(!1),t=Aa();return t&&pn(()=>{e.value=!0},t),e}function Al(e){const t=MgA();return _(()=>(t.value,!!e()))}function kgA(e,t={}){const{immediate:A=!0,fpsLimit:r=void 0,window:n=Vr}=t,i=H(!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 x_(e,t={}){const{window:A=Vr}=t,r=Al(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=H(!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 OF(e,t={}){const{controls:A=!1,navigator:r=G_}=t,n=Al(()=>r&&"permissions"in r);let i;const o=typeof e=="string"?{name:e}:e,g=H(),a=()=>{i&&(g.value=i.state)},s=EgA(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 mM(e={}){const{navigator:t=G_,read:A=!1,source:r,copiedDuring:n=1500,legacy:i=!1}=e,o=Al(()=>t&&"clipboard"in t),g=OF("clipboard-read"),a=OF("clipboard-write"),s=_(()=>o.value||i),C=H(""),I=H(!1),l=ygA(()=>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 SgA(e){return JSON.parse(JSON.stringify(e))}const Gd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xd="__vueuse_ssr_handlers__",NgA=PgA();function PgA(){return xd in Gd||(Gd[xd]=Gd[xd]||{}),Gd[xd]}function T_(e,t){return NgA[e]||t}function FgA(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 RgA={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()}},GF="vueuse-storage";function H_(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=Vr,eventFilter:l,onError:u=m=>{console.error(m)},initOnMounted:c}=r,h=(C?Zi:H)(typeof t=="function"?t():t);if(!A)try{A=T_("getDefaultStorage",()=>{var m;return(m=Vr)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=It(t),B=FgA(d),f=(n=r.serializer)!=null?n:RgA[B],{pause:E,resume:v}=pgA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&XI(()=>{Zt(I,"storage",S),Zt(I,GF,N),c&&S()}),c||S();function p(m,R){I&&I.dispatchEvent(new CustomEvent(GF,{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 S(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 N(m){S(m.detail)}return h}function U_(e){return x_("(prefers-color-scheme: dark)",e)}function TQ(e={}){const{selector:t="html",attribute:A="class",initialValue:r="auto",window:n=Vr,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=U_({window:n}),u=_(()=>l.value?"dark":"light"),c=a||(o==null?vgA(r):H_(o,r,i,{window:n,listenToStorageChanges:g})),h=_(()=>c.value==="auto"?u.value:c.value),d=T_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):Nr(v);if(!F)return;let S;if(C&&(S=n.document.createElement("style"),S.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n.document.head.appendChild(S)),p==="class"){const N=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{N.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(S).opacity,document.head.removeChild(S))});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}),XI(()=>f(h.value));const E=_({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 LgA(e,t,A={}){const{window:r=Vr,...n}=A;let i;const o=Al(()=>r&&"MutationObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=_(()=>{const l=It(e),u=(Array.isArray(l)?l:[l]).map(Nr).filter(IgA);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 $gA(e={}){const{valueDark:t="dark",valueLight:A="",window:r=Vr}=e,n=TQ({...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=_(()=>n.system?n.system.value:U_({window:r}).value?"dark":"light");return _({get(){return n.value==="dark"},set(g){const a=g?"dark":"light";i.value===a?n.value="auto":n.value=a}})}function K_(e,t,A={}){const{window:r=Vr,...n}=A;let i;const o=Al(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=_(()=>Array.isArray(e)?e.map(I=>Nr(I)):[Nr(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 OgA(e,t={}){const{reset:A=!0,windowResize:r=!0,windowScroll:n=!0,immediate:i=!0}=t,o=H(0),g=H(0),a=H(0),s=H(0),C=H(0),I=H(0),l=H(0),u=H(0);function c(){const h=Nr(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 K_(e,c),Ae(()=>Nr(e),h=>!h&&c()),LgA(e,c,{attributeFilter:["style","class"]}),n&&Zt("scroll",c,{capture:!0,passive:!0}),r&&Zt("resize",c,{passive:!0}),XI(()=>{i&&c()}),{height:o,bottom:g,left:a,right:s,top:C,width:I,x:l,y:u,update:c}}function GgA(e,t={width:0,height:0},A={}){const{window:r=Vr,box:n="content-box"}=A,i=_(()=>{var I,l;return(l=(I=Nr(e))==null?void 0:I.namespaceURI)==null?void 0:l.includes("svg")}),o=H(t.width),g=H(t.height),{stop:a}=K_(e,([I])=>{const l=n==="border-box"?I.borderBoxSize:n==="content-box"?I.contentBoxSize:I.devicePixelContentBoxSize;if(r&&i.value){const u=Nr(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);XI(()=>{const I=Nr(e);I&&(o.value="offsetWidth"in I?I.offsetWidth:t.width,g.value="offsetHeight"in I?I.offsetHeight:t.height)});const s=Ae(()=>Nr(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 xgA(e={}){const{initialValue:t=""}=e,A=Al(()=>typeof window<"u"&&"EyeDropper"in window),r=H(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 TgA(e,t,A={}){const{window:r=Vr}=A;return H_(e,t,r?.localStorage,A)}const HgA={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function UgA(e={}){const{reactive:t=!1,target:A=Vr,aliasMap:r=HgA,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]=_(()=>E.every(v=>It(c[v])))}else a[d]=H(!1);const f=Reflect.get(h,d,B);return t?It(f):f}});return c}function KgA(e={}){const{controls:t=!1,interval:A="requestAnimationFrame"}=e,r=H(new Date),n=()=>r.value=new Date,i=A==="requestAnimationFrame"?kgA(n,{immediate:!0}):DgA(n,A,{immediate:!0});return t?{now:r,...i}:r}let _gA=0;function YgA(e,t={}){const A=H(!1),{document:r=mgA,immediate:n=!0,manual:i=!1,id:o=`vueuse_styletag_${++_gA}`}=t,g=H(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&&XI(s),i||qi(C),{id:o,css:g,unload:C,load:s,isLoaded:Lo(A)}}const JgA=[{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"}],zgA={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 WgA(e){return e.toISOString().slice(0,10)}function qgA(e,t={}){const{controls:A=!1,updateInterval:r=3e4}=t,{now:n,...i}=KgA({interval:r,controls:!0}),o=_(()=>jgA(new Date(It(e)),t,It(n)));return A?{timeAgo:o,...i}:o}function jgA(e,t={},A=Date.now()){var r;const{max:n,messages:i=zgA,fullDateFormatter:o=WgA,units:g=JgA,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 HQ(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):SgA(E):E,B=()=>CgA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=H(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 _({get(){return B()},set(E){f(E)}})}function VgA(e={}){const{window:t=Vr,initialWidth:A=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:i=!0}=e,o=H(A),g=H(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(),XI(a),Zt("resize",a,{passive:!0}),n){const s=x_("(orientation: portrait)");Ae(s,()=>a())}return{width:o,height:g}}function __(){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=TgA("__VUE_DEVTOOLS_CLIENT_STATE__",__(),{mergeDefaults:!0});function ZgA(){rt.value=__()}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}=Yn(),r=_(()=>A.value&&t.value);if(r.value){Xo.forEach(n=>n());return}return O_(r,n=>{n&&Xo.forEach(i=>i())}),()=>{Xo.splice(Xo.indexOf(e),1)}}function XgA(){Xo.forEach(e=>e())}let xF=null;function Vc(){const e=Yn(),t=H(e.tabs.value||[]),A=_(()=>{const g=e.vitePluginDetected.value,a=[...agA(g,sgA.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||R1)&&P_.includes(s.name))return;C[1].push({...s})}}),a}),r=_(()=>A.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[])),n=_(()=>{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=_(()=>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=_(()=>i.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[]));return Ei(()=>{xF?.(),xF=pK(g=>{t.value=g})}),{categorizedTabs:n,flattenedTabs:r,enabledTabs:i,enabledFlattenTabs:o}}function TF(e,t){return _(()=>{const A=[],r=rt.value.tabSettings.pinnedTabs;xm(t).reduce((o,[{name:g,hidden:a},s])=>(s.forEach(C=>{if(xm(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 AaA(e){const t=new Map;return e.forEach(A=>t.set(A.id,A)),Array.from(t.values())}const h0=Ug(new Map);let HF=null;function eaA(){const{enabledFlattenTabs:e}=Vc(),t=ZI(),A=Yn(),r=H(A.commands.value||[]);Er(()=>{r.value=A.commands.value||[]}),Ei(()=>{HF?.(),HF=wK(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:()=>raA()}],i=_(()=>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 _(()=>AaA([...n,...i.value,...taA(r.value),...Array.from(h0.values()).flatMap(o=>xm(o))]))}function UF(e){e?.type==="url"&&window.open(e.src,"_blank")}function taA(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:()=>{UF(A.action)}})).sort((A,r)=>(r.order??0)-(A.order??0));UF(t.action)}})).sort((t,A)=>(A.order??0)-(t.order??0))}function KF(e){const t=P7();h0.set(t,e),Ns(()=>{h0.delete(t)})}let Jp;async function raA(){return Jp||(Jp=(await pr(()=>import("./vue-apis-buOuct3A.js"),[],import.meta.url).then(t=>t.default)).map(t=>({...t,icon:"carbon-api-1",action:()=>{window.open(t.url,"_blank")}}))),Jp}const naA={flex:"~ col","max-h-120":"","min-h-60":"",h:"60%","w-xl":"","of-hidden":"",border:"1 base","rounded-md":"","text-3.75":""},iaA={border:"b base","flex-none":""},oaA={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},gaA=["id","onClick","onMouseover"],aaA={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},saA={"ws-nowrap":""},CaA={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},IaA={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},laA=y("span",{op50:""},"No results for",-1),uaA={"text-primary":""},caA={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},haA={"text-xs":"",flex:"~ items-center gap2"},daA={px1:""},BaA={px1:""},faA=y("span",{op75:""},"to navigate",-1),EaA={"text-xs":"",flex:"~ items-center gap2"},QaA=y("button",{px1:""}," Esc ",-1),vaA={op75:""},paA={"text-xs":"",flex:"~ items-center gap2"},waA={px1:""},DaA=y("span",{op75:""},"to select",-1),yaA=yA({__name:"CommandPalette",setup(e){const t=H(!1),A=H(""),r=eaA(),n=H(),i=_(()=>n.value||r.value),o=_(()=>new Ls(i.value,{keys:["id","title"],distance:50})),g=_(()=>A.value?o.value.search(A.value).map(l=>l.item):i.value||[]),a=H(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=qc;return Q(t)?(M(),tA(Q(pM),{key:0,dim:"",class:"backdrop-blur-2xl!"},{default:U(()=>[y("div",naA,[y("header",iaA,[T(Q(bo),{modelValue:Q(A),"onUpdate:modelValue":u[0]||(u[0]=h=>JA(A)?A.value=h:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),y("div",oaA,[(M(!0),x(DA,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:SA(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",aaA,[y("span",saA,mA(h.title),1),y("span",CaA,mA(h.description),1)]),Q(a)===d?(M(),tA(Q(De),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):wA("",!0)],2)],40,gaA))),128)),Q(g).length?wA("",!0):(M(),x("div",IaA,[T(Q(De),{icon:"carbon-search",op50:""}),y("div",null,[laA,y("strong",uaA,' "'+mA(Q(A))+'" ',1)])]))]),y("footer",caA,[y("div",haA,[y("button",daA,[T(Q(De),{icon:"carbon-arrow-down"})]),y("button",BaA,[T(Q(De),{icon:"carbon-arrow-up"})]),faA]),y("div",EaA,[QaA,y("span",vaA,"to "+mA(Q(n)?"go back":"close"),1)]),y("div",paA,[y("button",waA,[T(Q(De),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),DaA])])])]),_:1})):wA("",!0)}}}),Zc=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},maA={},baA={class:"panel-grids-center"};function MaA(e,t){return M(),x("div",baA,[ZA(e.$slots,"default")])}const Qi=Zc(maA,[["render",MaA]]),kaA={flex:"~ items-center gap-3"},SaA={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},NaA={"translate-y-0.5px":""},PaA={key:0,hidden:"","lg:block":""},Y_=yA({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"}},setup(e){const t=e,A=FQ(),r=_(()=>"path"in t.tab?`${t.tab.path.startsWith("/")?"":"/"}${t.tab.path}`:`/custom-tab-view/${t.tab.name}`),n=_(()=>"badge"in t.tab&&t.tab.badge?.()),i=_(()=>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=qc;return M(),tA(Q(EoA),{disabled:!g.minimized,placement:"right",class:SA({"w-full":!g.minimized})},{popper:U(()=>[y("div",null,mA(g.tab.title),1),"extraTabVNode"in g.tab&&g.tab.extraTabVNode?(M(),x("div",PaA,[(M(),tA(Kg(g.tab.extraTabVNode)))])):wA("",!0)]),default:U(()=>[(M(),tA(Kg(g.target==="main"?Q(HK):"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",kaA,[T(s,{"text-xl":"",icon:g.tab.icon,title:"Settings","show-title":!1},null,8,["icon"]),g.minimized?wA("",!0):(M(),x("span",SaA,mA(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:SA([Q(i)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":g.minimized}])},[y("span",NaA,mA(Q(It)(Q(n))),1)],2)):wA("",!0)]),_:1},8,["to","flex","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),FaA={flex:"~ col gap-1","max-w-80":"",py1:""},RaA={key:0,"h-1px":"",border:"b base"},LaA={flex:"~ wrap",px1:""},J_=yA({__name:"TabsGrid",props:{categories:{},target:{}},setup(e){return(t,A)=>{const r=Y_;return M(),x("div",FaA,[(M(!0),x(DA,null,Be(t.categories,([n,i],o)=>(M(),x(DA,{key:n},[i.length?(M(),x(DA,{key:0},[o?(M(),x("div",RaA)):wA("",!0),y("div",LaA,[(M(!0),x(DA,null,Be(i,g=>(M(),tA(r,{key:g.name,target:t.target,tab:g},null,8,["target","tab"]))),128))])],64)):wA("",!0)],64))),128))])}}}),$aA={"h-full":"","h-screen":"","of-hidden":""},OaA={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},GaA={flex:"","cursor-pointer":"","items-center":"",gap2:""},xaA=y("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),TaA={capitalize:""},HaA=y("div",{"flex-auto":""},null,-1),UaA=y("div",{"i-carbon:side-panel-open":""},null,-1),KaA=[UaA],_aA={key:1,"of-auto":"",style:{height:"calc(100% - 50px)"}},YaA=y("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),JaA=yA({__name:"SplitScreen",setup(e){function t(){rt.value.splitScreen.enabled=!1}const A=_(()=>rt.value.splitScreen),{enabledTabs:r,flattenedTabs:n}=Vc(),i=ZI(),o=FQ(),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=_(()=>{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=HX(h):g.value=h},{immediate:!0});const C=H(!1);return(I,l)=>{const u=qc,c=J_,h=Qi;return M(),x("div",$aA,[Q(g)&&Q(s)?(M(),x("div",OaA,[T(Q(fI),{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",GaA,[xaA,T(u,{"text-xl":"",icon:Q(s)?.icon,title:"Settings","show-title":!1},null,8,["icon"]),y("span",TaA,mA(Q(s)?.name),1)])]),_:1},8,["shown"]),HaA,vt((M(),x("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:t},KaA)),[[Q(En),"Close split screen"]])])):wA("",!0),Q(g)&&Q(s)?(M(),x("div",_aA,[(M(),tA(Kg(Q(g)),{key:`tab-${Q(s).name}`}))])):(M(),tA(h,{key:2},{default:U(()=>[YaA,T(Q(Cf),{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(()=>[RA(" Close Split Screen ")]),_:1})]),_:1}))])}}});function bM(){const e=uM(),t=H("");return CI&&ae.chrome.storage.local.get(Dp).then(A=>{t.value=A[Dp]??"overlay"}),{viewMode:t,toggle(A){t.value=A,ae.chrome.storage.local.set({[Dp]:A}),CI&&e.value.emit("toggle-view-mode",A)}}}const zaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},WaA=y("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),qaA=y("div",{"i-carbon-settings-adjust":""},null,-1),jaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},VaA=y("div",{"i-carbon-split-screen":""},null,-1),ZaA={px3:"",py2:"",flex:"~ gap2"},XaA=yA({__name:"DockingPanel",setup(e){const t=pt("viewMode",H("overlay")),A=_(()=>t.value==="panel"&&CI),{toggle:r}=bM(),n=ZI(),i=_({get:()=>rt.value.expandSidebar,set:l=>rt.value.expandSidebar=l}),o=_({get:()=>rt.value.splitScreen.enabled,set:l=>rt.value.splitScreen.enabled=l});function g(){location.reload()}const a=Yn(),s=_(()=>a.appRecords.value.map(l=>({label:l.name+(l.version?` (${l.version})`:""),value:l.id}))),C=H(a.activeAppRecordId.value),I=_(()=>s.value.find(l=>l.value===C.value)?.label??"");return Ae(C,l=>{nK(`${l}`).then(()=>{n.push("/overview").then(()=>{XgA()})})}),(l,u)=>(M(),x("div",null,[y("div",zaA,[T(Q(v_),null,{default:U(({isDark:c,toggle:h})=>[T(Q(ie),{outlined:"",type:"primary",onClick:h},{default:U(()=>[WaA,RA(" "+mA(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"]),RA(" "+mA(Q(i)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),T(Q(ie),{to:"/settings",outlined:"",type:"primary"},{default:U(()=>[qaA,RA(" Settings ")]),_:1})]),y("div",jaA,[T(Q(ie),{outlined:"",type:"primary",onClick:u[1]||(u[1]=c=>o.value=!Q(o))},{default:U(()=>[VaA,RA(" "+mA(Q(o)?"Close Split Screen":"Split Screen"),1)]),_:1})]),y("div",ZaA,[Q(s).length>1?(M(),tA(Q(IE),{key:0,modelValue:Q(C),"onUpdate:modelValue":u[2]||(u[2]=c=>JA(C)?C.value=c:null),options:Q(s),placeholder:Q(I)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):wA("",!0),T(Q(ie),{outlined:"",type:"primary",onClick:g},{default:U(()=>[RA(" 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(()=>[RA(" Switch to Overlay Mode ")]),_:1})):wA("",!0)])]))}}),AsA={border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},esA={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},tsA=y("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),rsA=y("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),nsA=y("div",{"flex-auto":""},null,-1),isA=y("div",{"i-carbon-overflow-menu-vertical":""},null,-1),osA={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},gsA={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},asA=y("div",{"flex-auto":""},null,-1),ssA=["flex"],CsA={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},IsA={"translate-y-0.5px":""},lsA=45,usA=yA({__name:"SideNav",setup(e){const t=H(!1),A=H(!1),r=H(),n=H(),i=H(),o=_(()=>rt.value.expandSidebar),g=_(()=>rt.value.scrollableSidebar),{enabledTabs:a,flattenedTabs:s}=Vc(),{height:C}=VgA(),I=_(()=>{const B=C.value-130;return Math.max(0,Math.floor(B/lsA))}),l=_(()=>s.value.slice(0,I.value)),u=_(()=>s.value.slice(I.value)),c=TF(l,a),h=TF(u,a),d=_(()=>g.value||o.value?a.value:c.value);return bgA(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=XaA,v=Y_,p=qc,D=J_;return M(),x("div",AsA,[y("div",esA,[T(Q(fI),{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:SA([Q(o)?"rounded pl2.5":"rounded-xl"])},[tsA,Q(o)?(M(),x(DA,{key:0},[rsA,nsA,isA],64)):wA("",!0)],2)]),_:1},8,["shown"])]),y("div",osA,[(M(!0),x(DA,null,Be(Q(d),([F,S],N)=>(M(),x(DA,{key:F},[N?(M(),x("div",gsA)):wA("",!0),(M(!0),x(DA,null,Be(S.filter(m=>!m.hidden),m=>(M(),tA(v,{key:m.name,tab:m,minimized:!Q(o)},null,8,["tab","minimized"]))),128))],64))),128)),asA]),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(fI),{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",CsA,[y("span",IsA,mA(Q(u).length),1)])],512)]),_:1})):wA("",!0),T(v,{minimized:!Q(o),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,ssA)])}}}),csA={},hsA={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dsA=pAA('<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),BsA=[dsA];function fsA(e,t){return M(),x("svg",hsA,BsA)}const MM=Zc(csA,[["render",fsA]]),EsA={class:"fixed inset-0 h-screen w-screen flex flex-col items-center justify-center $ui-bg-base"},QsA=y("p",{class:"p3 text-sm font-bold"},[RA(" DevTools is currently injected into user application in "),y("em",{class:"text-primary-600"},"Overlay"),RA(" view mode. ")],-1),vsA=yA({__name:"ViewModeSwitch",setup(e){TQ();const{toggle:t}=bM();return(A,r)=>{const n=MM;return M(),x("div",EsA,[T(n,{"h-18":""}),QsA,y("p",null,[T(Q(ie),{onClick:r[0]||(r[0]=fr(i=>Q(t)("panel"),["stop"]))},{default:U(()=>[RA(" Switch to Panel Mode ")]),_:1})])])}}}),psA="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",wsA={class:"h-screen w-screen $ui-fcc flex-col"},DsA={class:"outer"},ysA={class:"inner"},msA=["src"],bsA=yA({__name:"AppConnecting",setup(e){return(t,A)=>(M(),x("div",wsA,[y("div",DsA,[y("div",ysA,[y("img",{src:Q(psA),class:"max-w-18",alt:"Vue logo"},null,8,msA)])]),ZA(t.$slots,"default",{},void 0,!0)]))}}),z_=Zc(bsA,[["__scopeId","data-v-204233a8"]]),el={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 qI("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},ksA={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 SsA(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)},[ZA(e.$slots,"default")],4)}const Qn=MsA(ksA,[["render",SsA]]);function Xc(){const{copy:e,copied:t}=mM();return{copy:(r,n={})=>{const{silent:i=!1,type:o=""}=n;e(r).then(()=>{i||g0({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{i||g0({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:t}}const NsA=cI("get-open-in-editor-host"),Ah=H(!1),UQ=async e=>{const t=await NsA();return t?Zm(e,t):Zm(e)},PsA={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},FsA=yA({__name:"App",setup(e){pr(()=>import("./unocss-runtime-COcjrKyN.js"),[],import.meta.url),TQ();const t=ZI(),A=FQ(),{connected:r,clientConnected:n}=Yn(),i=rt,o=pt("viewMode",H("overlay")),g=_(()=>o.value==="overlay"&&CI),a=uM(),s=_(()=>A.path.startsWith("/__")||A.path==="/"),C=_(()=>i.value.expandSidebar),I=_(()=>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=_(()=>i.value.splitScreen.enabled),u=_({get:()=>i.value.splitScreen.size,set:B=>i.value.splitScreen.size=B}),c=Yn();Er(()=>{F_.value=c.appRecords.value,R_.value=c.activeAppRecordId.value});const{copy:h}=Xc(),d=xgA({});return tK().then(B=>{B&&(Ah.value=!0,KF(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{a.value.emit("toggle-panel",!1),await rK()}}]))}),KF(()=>[...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=z_,v=vsA,p=usA,D=vn("RouterView"),F=JaA,S=yaA;return M(),x("main",PsA,[Q(I)?Q(g)?(M(),tA(v,{key:1})):(M(),x("div",{key:2,class:SA(["h-full of-auto transition-base",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)?wA("",!0):(M(),tA(p,{key:0,"of-x-hidden":"","of-y-auto":""})),T(Q(el),{"h-full":"","of-hidden":"",onResize:f[0]||(f[0]=N=>u.value=N.map(m=>m.size))},{default:U(()=>[T(Q(Qn),{"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(Qn),{key:0,relative:"","h-full":"",class:"of-auto!",size:Q(u)[1]},{default:U(()=>[T(F)]),_:1},8,["size"])):wA("",!0)]),_:1})],2)):(M(),tA(E,{key:0})),T(S)])}}}),kM=yA({__name:"ExpandIcon",props:{value:{type:Boolean}},setup(e){return(t,A)=>(M(),x("i",{class:SA(["i-radix-icons:triangle-right flex-none text-5 op-50 transition-base",{"transform rotate-90":t.value}])},null,2))}}),RsA={class:"flex-inline items-center gap4px"},LsA=yA({__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=_(()=>A.customType==="date"?"datetime-local":""),{escape:i,enter:o}=UgA();Er(()=>{i.value?r("cancel"):o.value&&r("submit")});const g=HQ(A,"modelValue",r);function a(I){try{return af(I,A.customType),!0}catch{return!1}}const s=H(!1);return Ae(g,mQ(()=>{s.value=!a(g.value)},300)),(I,l)=>(M(),x("span",RsA,[T(Q(bo),{modelValue:Q(g),"onUpdate:modelValue":l[0]||(l[0]=u=>JA(g)?g.value=u:null),type:Q(n),variant:Q(s)?"warning":"normal",class:SA(["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(DA,{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(En),{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(En),{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(En),{content:"Enter to submit change"}]])],64)):wA("",!0)]))}}),W_=Symbol("StateEditorSymbol");function $sA(e){const t=H(e);return Io(W_,t),{context:t}}function SM(){return pt(W_)}function OsA(){const e=H(""),t=H("string"),A=H(!1),r=SM();return{editingText:e,editing:A,toggleEditing(n){n&&(t.value=n),A.value=!A.value},editingType:t,nodeId:r.value.nodeId}}function GsA(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 xsA(){const e=H({enable:!1,key:"",value:"undefined"});function t(r,n){const i=GsA(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 TsA={class:"inline pl5px"},HsA={class:"w160px py5px"},_F=yA({__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=SM(),{copy:r,isSupported:n}=mM(),i=H(!1),o=_(()=>sM(t.data.value)),g=_(()=>o.value.value),a=_(()=>o.value.customType),s=_(()=>g.value===null?"null":typeof g.value),C={flat:!0,size:"mini"},I=_(()=>({"opacity-0":!t.hovering}));function l(c,h=!1){tE({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",TsA,[!t.disableEdit&&c.data.editable?(M(),x(DA,{key:0},[Q(s)==="string"||Q(s)==="number"||Q(s)==="object"||Q(s)==="null"?(M(),x(DA,{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(En),{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(En),{content:"Add new value"}]]):wA("",!0)],64)):wA("",!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(DA,{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)):wA("",!0)],64)):wA("",!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"])):wA("",!0),T(Q(fI),{class:SA({"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",HsA,[T(Q(mF),{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"}),RA(" Copy Value ")]),_:1}),T(Q(mF),{onClick:h[7]||(h[7]=()=>{Q(r)(c.data.key)})},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),RA(" Copy Path ")]),_:1})])]),"button-icon":U(()=>[T(Q(De),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}});function EI(e){const t=H({}),A=H({});return Io(`CollapseMapSymbol${e}`,t),Io(`CollapseMapSymbol${e}LinkedList`,A),{collapseMap:t,id:e,linkedList:A}}function UsA(e){const t=pt(`CollapseMapSymbol${e}`),A=pt(`CollapseMapSymbol${e}LinkedList`);return{collapseMap:t,linkedList:A,id:e}}function NM(e,t,A){const{collapseMap:r,linkedList:n}=UsA(e),i=_(()=>r.value[t]??!1),o=()=>{r.value[t]=!r.value[t]};return A?.length&&(n.value[t]=A??[]),{isExpanded:i,toggleCollapse:o}}function KsA(e,t={}){const{enter:A=()=>{},leave:r=()=>{},initial:n=!1}=t,i=H(n);return Zt(e,"mouseenter",()=>{i.value=!0,A()}),Zt(e,"mouseleave",()=>{i.value=!1,r()}),{isHovering:i}}const PM=e=>(EQ("data-v-a33ae112"),e=e(),QQ(),e),_sA={key:0},YsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},JsA=PM(()=>y("span",{"mx-1":""},":",-1)),zsA=["innerHTML"],WsA={key:1,"cursor-pointer":""},qsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},jsA=PM(()=>y("span",{"mx-1":""},":",-1)),VsA=["innerHTML"],ZsA={key:0},XsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},ACA=PM(()=>y("span",{"mx-1":""},":",-1)),YF=30,eCA=yA({__name:"InspectorStateField",props:{data:{},depth:{default:0},no:{},rootId:{}},setup(e){const t=e,A=SM(),r=_(()=>jU(t.data.value)),n=_(()=>NQ(t.data.value)),i=_(()=>n.value==="custom"?`state-format-${t.data.value._custom?.type}`:""),{isExpanded:o,toggleCollapse:g}=NM("inspector-state",`${t.rootId}-${t.no}-${t.depth}-${t.data.key}`),a=_(()=>{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=_(()=>sM(t.data.value)),C=H(YF),I=_(()=>{const{value:k,inherit:O,customType:Z}=s.value,hA=Z==="set";let eA;return yN(k)?k.slice(0,C.value).map((j,oA)=>({key:`${t.data.key}.${oA}`,value:j,...O,editable:t.data.editable&&!hA,creating:!1})):(DN(k)?(eA=Object.keys(k).slice(0,C.value).map(X=>({key:`${t.data.key}.${X}`,value:k[X],...O,editable:t.data.editable&&!hA,creating:!1})),n.value!=="custom"&&(eA=N7(eA))):eA=[],eA===t.data.value?{}:eA)}),l=_(()=>{const{value:k}=s.value;return yN(k)?k.length:DN(k)?Object.keys(k).length:0}),u=_(()=>{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}=OsA();Ae(()=>h.value,k=>{if(k){const{value:O}=s.value;d.value=StA(O,s.value.customType)}else d.value=""});function E(){const k=t.data;tE({path:k.key.split("."),inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:null,type:c.value,value:af(d.value,s.value.customType)}}),B()}const{addNewProp:v,draftingNewProp:p,resetDrafting:D}=xsA();function F(k){o.value||g(),v(k,s.value.value)}function S(){const k=t.data,O=k.key.split(".");O.push(p.value.key),tE({path:O,inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:p.value.key,type:typeof af(p.value.value),value:af(p.value.value)}}),D()}const N=_(()=>Object.keys(I.value).length>0||p.value.enable),m=H(),{isHovering:R}=KsA(()=>m.value);return(k,O)=>{const Z=LsA,hA=kM,eA=vn("InspectorStateField",!0);return M(),x("div",{ref_key:"containerRef",ref:m,class:"pl-6",style:Qt({paddingLeft:`${k.depth*15+4}px`})},[Q(N)?(M(),x("div",WsA,[y("div",{relative:"",flex:"","items-center":"",onClick:O[2]||(O[2]=(...X)=>Q(g)&&Q(g)(...X))},[T(hA,{value:Q(o),absolute:"","left--6":"","group-hover:text-white":""},null,8,["value"]),y("span",qsA,mA(Q(u)),1),jsA,Q(h)?(M(),tA(Z,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[1]||(O[1]=X=>JA(d)?d.value=X:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(DA,{key:1},[y("span",{class:SA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,VsA)],2),T(_F,{"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",ZsA,[(M(!0),x(DA,null,Be(Q(I),(X,j)=>(M(),tA(eA,{key:j,data:X,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]=X=>C.value+=YF)},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[Q(En),"Show more"]]):wA("",!0),Q(p).enable?(M(),x("div",{key:1,style:Qt({paddingLeft:`${(k.depth+1)*15+4}px`})},[y("span",XsA,[T(Z,{modelValue:Q(p).key,"onUpdate:modelValue":O[4]||(O[4]=X=>Q(p).key=X),"show-actions":!1},null,8,["modelValue"])]),ACA,T(Z,{modelValue:Q(p).value,"onUpdate:modelValue":O[5]||(O[5]=X=>Q(p).value=X),"auto-focus":!1,onCancel:Q(D),onSubmit:S},null,8,["modelValue","onCancel"])],4)):wA("",!0)])):wA("",!0)])):(M(),x("div",_sA,[y("span",YsA,mA(Q(u)),1),JsA,Q(h)?(M(),tA(Z,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[0]||(O[0]=X=>JA(d)?d.value=X:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(DA,{key:1},[y("span",{class:SA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,zsA)],2),T(_F,{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)}}}),tCA=Zc(eCA,[["__scopeId","data-v-a33ae112"]]),rCA=yA({__name:"InspectorStateType",props:{data:{},depth:{default:0},rootId:{}},setup(e){return(t,A)=>{const r=tCA;return M(!0),x(DA,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)}}}),nCA={"text-primary-400":"","group-hover:text-white":"",class:"text-[#486887] dark:text-[#7595b5]"},eh=yA({__name:"InspectorState",props:{data:{},name:{},id:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1}},setup(e){const t=e,{isExpanded:A,toggleCollapse:r}=NM("inspector-state",t.id);return!A.value&&r(),$sA({nodeId:t.nodeId,inspectorId:t.inspectorId,disableEdit:t.disableEdit}),(n,i)=>{const o=kM,g=rCA;return M(),x(DA,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",nCA,mA(n.name),1)]),Q(A)?(M(),tA(g,{key:0,data:n.data,"root-id":n.id},null,8,["data","root-id"])):wA("",!0)],64)}}});function d0(e){return e.toString(16).padStart(6,"0")}function iCA(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 q_=yA({__name:"InspectorNodeTag",props:{tag:{}},setup(e){return(t,A)=>{const r=vQ("tooltip");return vt((M(),x("span",{style:Qt({color:`#${Q(d0)(t.tag.textColor)}`,backgroundColor:`#${Q(d0)(t.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[RA(mA(t.tag.label),1)],4)),[[r,{content:t.tag.tooltip,html:!0}]])}}});function oCA(e){const t=H("");return Io(`SelectedSymbol${e}`,t),{selected:t,id:e}}function gCA(e){return{selected:pt(`SelectedSymbol${e}`),id:e}}function aCA(e,t,A){const{selected:r}=gCA(e);return{isSelected:_(()=>r.value===t),toggleSelected:o=>{r.value=o,A?.(o)}}}const sCA={key:1,"inline-block":"","h-6":"","w-6":""},CCA={"text-primary-400":"","group-hover:text-white":"",class:"[.active_&]:text-white"},ICA=yA({__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}=NM("component-tree",A.data.id,[...A.linkedList,A.data.id]),{isSelected:o,toggleSelected:g}=aCA("component-tree",A.data.id,a=>{r("select",a)});return(a,s)=>{const C=kM,I=q_,l=vn("ComponentTreeNode",!0);return M(),x(DA,null,[y("div",{class:SA(["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",sCA)),y("span",CCA,mA(a.data.name),1),(M(!0),x(DA,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(DA,{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)):wA("",!0)],64)}}}),lCA={"w-full":"",flex:"",gap2:"",px2:"",py2:""},uCA=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),cCA=[uCA],hCA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},dCA={flex:"","items-center":"","justify-between":"","overflow-auto":"",px2:"",py3:"",class:"no-scrollbar"},BCA={key:0},fCA={flex:"~ gap2"},ECA=y("p",{class:"x-divider"},null,-1),JF="components",QCA=yA({__name:"components",setup(e){const t=uM(),A=H([]),r=H(""),n=_(()=>Ah.value),i=H(!1),[o,g]=DM(!0),{selected:a}=oCA("component-tree"),{collapseMap:s,linkedList:C}=EI("component-tree");EI("inspector-state");const I=_(()=>{const j=[],oA=MA=>{MA.forEach(bA=>{bA.id===a.value&&j.push(bA),bA.children?.length&&oA(bA.children)})};return oA(A.value),j[0]}),l=_(()=>{const j=[],oA=(MA,bA=[])=>{MA.forEach(aA=>{j.push([...bA,aA.id]),aA.children?.length&&oA(aA.children,[...bA,aA.id])})};return oA(A.value),j}),u=_(()=>I.value?.file??"");function c(j,oA){return j.length?j.find(MA=>MA.id===oA)?!0:j.some(MA=>c(MA.children||[],oA)):!1}function h(j){j.length&&(a.value&&c(j,a.value)||(a.value=j?.[0].id,m(j?.[0].id)))}function d(j){return new Promise(oA=>{iK({inspectorId:"components",instanceId:j}).then(MA=>{oA(li(MA))})})}function B(j){return{[j[0].id]:!0,...j?.[0].children?.reduce((oA,MA)=>(oA[MA.id]=!0,oA),{})}}function f(j){return new Promise(oA=>{jI({inspectorId:"components",filter:j}).then(MA=>{const bA=!Object.keys(s.value).length,aA=li(MA);A.value=aA,bA&&(s.value=B(aA)),h(aA),oA()})})}const E=H(!1);async function v(j,oA){E.value&&await wgA(E).toBe(!1),E.value=!0,d(j).then(MA=>{gK({id:j,visible:oA,bounds:MA}),E.value=!1})}function p(j){aK({id:j})}function D(){t.value.emit("toggle-panel",!1),oK().then(j=>{const oA=JSON.parse(j);a.value=oA.id,F(oA.id);const MA=C.value[oA.id];MA?MA.forEach(bA=>{s.value[bA]=!0}):l.value.forEach(bA=>{let aA=bA.indexOf(oA.id);for(;aA>=0;)s.value[bA[aA]]=!0,aA--})}).finally(()=>{t.value.emit("toggle-panel",!0)})}function F(j){R(),m(j),r.value=j}Ae(a,j=>{sK(j)});const S=H({});function N(j){if(!j||!j?.state)return{};const oA={};return j.state.forEach(MA=>{oA[MA.type]||(oA[MA.type]=[]),oA[MA.type].push(MA)}),oA}function m(j){zc({inspectorId:"components",nodeId:j}).then(oA=>{S.value=N(li(oA))})}function R(){S.value={}}Ei(()=>{f().then(()=>{i.value=!0}),VI(j=>{!j?.data.length||j.inspectorId!==JF||(A.value=j.data,s.value={...B(j.data),...s.value},h(j.data))}),Wc(j=>{j.inspectorId===JF&&(S.value=N({state:j.state}))})});const k=H("");yM(k,j=>{const oA=j.trim().toLowerCase();g(),f(oA).then(()=>{g()})},{debounce:300});const O=Yn(),Z=H(),hA=H(!1),{width:eA}=GgA(Z),X=_(()=>hA.value?eA.value<700:!1);return(j,oA)=>{const MA=ICA,bA=eh,aA=Qi;return M(),tA(aA,{"h-screen":""},{default:U(()=>[T(Q(el),{ref_key:"splitpanesRef",ref:Z,horizontal:Q(X),onReady:oA[3]||(oA[3]=FA=>hA.value=!0)},{default:U(()=>[T(Q(Qn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",lCA,[Q(i)?(M(),tA(Q(bo),{key:0,modelValue:Q(k),"onUpdate:modelValue":oA[0]||(oA[0]=FA=>JA(k)?k.value=FA:null),"loading-debounce-time":250,loading:!Q(o),placeholder:"Find components...","flex-1":""},null,8,["modelValue","loading"])):wA("",!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"},cCA))])):wA("",!0)]),y("div",hCA,[(M(!0),x(DA,null,Be(Q(A),FA=>(M(),tA(MA,{key:FA.id,data:FA,onSelect:F,onMouseenter:v,onMouseleave:v},null,8,["data"]))),128))])]),_:1}),T(Q(Qn),{flex:"","flex-col":""},{default:U(()=>[y("div",dCA,[Q(I)?.name?(M(),x("span",BCA,mA(Q(I).name),1)):wA("",!0),y("div",fCA,[vt(T(Q(De),{title:"Scroll to Component",icon:"i-iconoir:mouse-scroll-wheel",action:"","flex-none":"",border:!1,onClick:oA[1]||(oA[1]=FA=>p(Q(a)))},null,512),[[Q(En),"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:oA[2]||(oA[2]=FA=>Q(UQ)(Q(u)))},null,512)),[[Q(En),"Open in Editor"]]):wA("",!0)])]),ECA,(M(),x("div",{key:Q(a),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(DA,null,Be(Q(S),(FA,UA)=>(M(),tA(bA,{id:UA,key:UA,"node-id":Q(r),data:FA,name:`${UA}`,"inspector-id":"components"},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1},8,["horizontal"])]),_:1})}}}),vCA="7.0.26",pCA={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},wCA=y("div",{"flex-auto":""},null,-1),DCA={flex:"~ col","mt-20":"","items-center":""},yCA={flex:"~","mt--10":"","items-center":"","justify-center":""},mCA={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},bCA=y("span",{op40:""}," Vue DevTools ",-1),MCA={op40:""},kCA={flex:"~ gap2 wrap"},SCA={p4:"","theme-card-green":"",flex:"~ col auto"},NCA=y("div",{"i-logos-vue":"","text-3xl":""},null,-1),PCA=y("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),FCA=y("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),RCA={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},LCA=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":""}),RA(" Star on GitHub ")],-1),$CA=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":""}),RA(" Ideas & Suggestions ")],-1),OCA=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":""}),RA(" Project Roadmap ")],-1),GCA=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":""}),RA(" Bug Reports ")],-1),xCA=y("div",{"i-carbon-settings":""},null,-1),TCA=y("div",{"flex-auto":""},null,-1),HCA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},UCA=y("span",null,"+",-1),KCA=y("span",null,"+",-1),_CA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},YCA=y("span",null,"+",-1),JCA=y("span",null,"+",-1),zCA=y("span",null,"+",-1),WCA=y("span",null,"+",-1),qCA=yA({__name:"overview",setup(e){const{vueVersion:t}=Yn(),A=H(1),r=H(0);function n(i){let o=0;for(const g of i)o++,g.children?.length&&(o+=n(g.children));return o}return Ei(()=>{IM().then(i=>{const o=JSON.parse(i);A.value=o?.routes?.length||1}),lM(i=>{A.value=i?.routes?.length||1}),jI({inspectorId:"components",filter:""}).then(i=>{const o=li(i);r.value=n(o)}),VI(i=>{!i?.data?.length||i.inspectorId!=="components"||(r.value=n(i.data))})}),(i,o)=>{const g=MM,a=vn("RouterLink"),s=Qi;return M(),tA(s,{"h-screen":"","w-full":"",flex:"","of-auto":""},{default:U(()=>[y("div",pCA,[wCA,y("div",DCA,[y("div",yCA,[T(g,{"h-18":""})]),y("div",mCA,[bCA,y("code",MCA,"v"+mA(Q(vCA)),1)])]),y("div",kCA,[y("div",SCA,[NCA,y("code",null,"v"+mA(Q(t)),1)]),T(a,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:U(()=>[PCA,y("div",null,mA(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(()=>[FCA,y("div",null,mA(Q(r))+" components",1)]),_:1})):wA("",!0)]),y("div",RCA,[LCA,$CA,OCA,GCA,T(a,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:U(()=>[xCA,RA(" Settings ")]),_:1})]),TCA,y("div",HCA,[RA(" Press "),Q(wN)()?(M(),x(DA,{key:0},[T(Q(ie),null,{default:U(()=>[RA(" ⌘ Command ")]),_:1}),UCA,T(Q(ie),null,{default:U(()=>[RA(" K ")]),_:1})],64)):(M(),x(DA,{key:1},[T(Q(ie),null,{default:U(()=>[RA(" Alt ")]),_:1}),KCA,T(Q(ie),null,{default:U(()=>[RA(" K ")]),_:1})],64)),RA(" to toggle Command Palette ")]),y("div",_CA,[RA(" Press "),Q(wN)()?(M(),x(DA,{key:0},[T(Q(ie),null,{default:U(()=>[RA(" ⇧ Shift ")]),_:1}),YCA,T(Q(ie),null,{default:U(()=>[RA(" ⌥ Option ")]),_:1}),JCA,T(Q(ie),null,{default:U(()=>[RA(" D ")]),_:1})],64)):(M(),x(DA,{key:1},[T(Q(ie),null,{default:U(()=>[RA(" Shift ")]),_:1}),zCA,T(Q(ie),null,{default:U(()=>[RA(" Alt ")]),_:1}),WCA,T(Q(ie),null,{default:U(()=>[RA(" D ")]),_:1})],64)),RA(" to toggle DevTools ")])])]),_:1})}}});function jCA(){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 If;function B0(){B0.init||(B0.init=!0,If=jCA()!==-1)}var KQ={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){B0(),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",If&&this.$el.appendChild(e),e.data="about:blank",If||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&&(!If&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VCA=aU();EQ("data-v-b329ee4c");const ZCA={class:"resize-observer",tabindex:"-1"};QQ();const XCA=VCA((e,t,A,r,n,i)=>(M(),tA("div",ZCA)));KQ.render=XCA;KQ.__scopeId="data-v-b329ee4c";KQ.__file="src/components/ResizeObserver.vue";function lf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lf=function(t){return typeof t}:lf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(e)}function AIA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zF(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 eIA(e,t,A){return t&&zF(e.prototype,t),A&&zF(e,A),e}function WF(e){return tIA(e)||rIA(e)||nIA(e)||iIA()}function tIA(e){if(Array.isArray(e))return f0(e)}function rIA(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nIA(e,t){if(e){if(typeof e=="string")return f0(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 f0(e,t)}}function f0(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 iIA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
*/const yC=typeof document<"u";function CrA(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function $p(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 Du=()=>{},hi=Array.isArray,PK=/#/g,IrA=/&/g,lrA=/\//g,urA=/=/g,crA=/\?/g,FK=/\+/g,hrA=/%5B/g,drA=/%5D/g,RK=/%5E/g,BrA=/%60/g,LK=/%7B/g,frA=/%7C/g,$K=/%7D/g,ErA=/%20/g;function cM(e){return encodeURI(""+e).replace(frA,"|").replace(hrA,"[").replace(drA,"]")}function QrA(e){return cM(e).replace(LK,"{").replace($K,"}").replace(RK,"^")}function Xm(e){return cM(e).replace(FK,"%2B").replace(ErA,"+").replace(PK,"%23").replace(IrA,"%26").replace(BrA,"`").replace(LK,"{").replace($K,"}").replace(RK,"^")}function vrA(e){return Xm(e).replace(urA,"%3D")}function prA(e){return cM(e).replace(PK,"%23").replace(crA,"%3F")}function wrA(e){return e==null?"":prA(e).replace(lrA,"%2F")}function ec(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const DrA=/\/$/,yrA=e=>e.replace(DrA,"");function Op(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=krA(r??t,A),{fullPath:r+(i&&"?")+i+o,path:r,query:n,hash:ec(o)}}function mrA(e,t){const A=t.query?e(t.query):"";return t.path+(A&&"?")+A+(t.hash||"")}function brA(e,t,A){const r=t.matched.length-1,n=A.matched.length-1;return r>-1&&r===n&&hI(t.matched[r],A.matched[n])&&OK(t.params,A.params)&&e(t.query)===e(A.query)&&t.hash===A.hash}function hI(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function OK(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)?KP(e,t):hi(t)?KP(t,e):e===t}function KP(e,t){return hi(t)?e.length===t.length&&e.every((A,r)=>A===t[r]):e.length===1&&e[0]===t}function krA(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 tc;(function(e){e.pop="pop",e.push="push"})(tc||(tc={}));var rE;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rE||(rE={}));const Gp="";function SrA(e){if(!e)if(yC){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yrA(e)}const NrA=/^[^#]+#/;function PrA(e,t){return e.replace(NrA,"#")+t}function FrA(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 RrA=()=>({left:window.scrollX,top:window.scrollY});function LrA(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=FrA(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 _P(e,t){return(history.state?history.state.position-t:-1)+e}const A0=new Map;function $rA(e,t){A0.set(e,t)}function OrA(e){const t=A0.get(e);return A0.delete(e),t}function GrA(e=""){let t=[],A=[Gp],r=0;e=SrA(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:tc.pop};for(const l of t)l(g,a,I)}const o={location:Gp,state:{},base:e,createHref:PrA.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=[Gp],r=0},go(g,a=!0){const s=this.location,C=g<0?rE.back:rE.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 xrA(e){return typeof e=="string"||e&&typeof e=="object"}function GK(e){return typeof e=="string"||typeof e=="symbol"}const zo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xK=Symbol("");var YP;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(YP||(YP={}));function dI(e,t){return et(new Error,{type:e,[xK]:!0},t)}function oo(e,t){return e instanceof Error&&xK in e&&(t==null||!!(e.type&t))}const JP="[^/]+?",TrA={sensitive:!1,strict:!1,start:!0,end:!0},HrA=/[.+*?^${}()[\]/\\]/g;function UrA(e,t){const A=et({},TrA,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(HrA,"\\$&"),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||JP;if(f!==JP){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 KrA(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 _rA(e,t){let A=0;const r=e.score,n=t.score;for(;A<r.length&&A<n.length;){const i=KrA(r[A],n[A]);if(i)return i;A++}if(Math.abs(n.length-r.length)===1){if(zP(r))return 1;if(zP(n))return-1}return n.length-r.length}function zP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const YrA={type:0,value:""},JrA=/[a-zA-Z0-9_]/;function zrA(e){if(!e)return[[]];if(e==="/")return[[YrA]];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:JrA.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 WrA(e,t,A){const r=UrA(zrA(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 qrA(e,t){const A=[],r=new Map;t=jP({strict:!1,end:!0,sensitive:!1},t);function n(C){return r.get(C)}function i(C,I,l){const u=!l,c=jrA(C);c.aliasOf=l&&l.record;const h=jP(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=WrA(E,I,h),l?l.alias.push(B):(f=f||B,f!==B&&f.alias.push(B),u&&C.name&&!qP(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)}:Du}function o(C){if(GK(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&&_rA(C,A[I])>=0&&(C.record.path!==A[I].record.path||!TK(C,A[I]));)I++;A.splice(I,0,C),C.record.name&&!qP(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 dI(1,{location:C});h=l.record.name,u=et(WP(I.params,l.keys.filter(f=>!f.optional).concat(l.parent?l.parent.keys.filter(f=>f.optional):[]).map(f=>f.name)),C.params&&WP(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 dI(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:ZrA(d)}}return e.forEach(C=>i(C)),{addRoute:i,resolve:s,removeRoute:o,getRoutes:g,getRecordMatcher:n}}function WP(e,t){const A={};for(const r of t)r in e&&(A[r]=e[r]);return A}function jrA(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:VrA(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 VrA(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 qP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZrA(e){return e.reduce((t,A)=>et(t,A.meta),{})}function jP(e,t){const A={};for(const r in e)A[r]=r in t?t[r]:e[r];return A}function TK(e,t){return t.children.some(A=>A===e||TK(e,A))}function XrA(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(FK," "),o=i.indexOf("="),g=ec(o<0?i:i.slice(0,o)),a=o<0?null:ec(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 VP(e){let t="";for(let A in e){const r=e[A];if(A=vrA(A),r==null){r!==void 0&&(t+=(t.length?"&":"")+A);continue}(hi(r)?r.map(i=>i&&Xm(i)):[r&&Xm(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+A,i!=null&&(t+="="+i))})}return t}function AnA(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 enA=Symbol(""),ZP=Symbol(""),PQ=Symbol(""),hM=Symbol(""),e0=Symbol("");function Jl(){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(dI(4,{from:A,to:t})):l instanceof Error?a(l):xrA(l)?a(dI(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 xp(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(tnA(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=CrA(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 tnA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function XP(e){const t=pt(PQ),A=pt(hM),r=_(()=>t.resolve(Q(e.to))),n=_(()=>{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(hI.bind(null,C));if(l>-1)return l;const u=AF(a[s-2]);return s>1&&AF(C)===u&&I[I.length-1].path!==u?I.findIndex(hI.bind(null,a[s-2])):l}),i=_(()=>n.value>-1&&inA(A.params,r.value.params)),o=_(()=>n.value>-1&&n.value===A.matched.length-1&&OK(A.params,r.value.params));function g(a={}){return nnA(a)?t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(Du):Promise.resolve()}return{route:r,href:_(()=>r.value.href),isActive:i,isExactActive:o,navigate:g}}const rnA=yA({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:XP,setup(e,{slots:t}){const A=Ug(XP(e)),{options:r}=pt(PQ),n=_(()=>({[eF(e.activeClass,r.linkActiveClass,"router-link-active")]:A.isActive,[eF(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const i=t.default&&t.default(A);return e.custom?i:qI("a",{"aria-current":A.isExactActive?e.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:n.value},i)}}}),HK=rnA;function nnA(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 inA(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 AF(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const eF=(e,t,A)=>e??t??A,onA=yA({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:A}){const r=pt(e0),n=_(()=>e.route||r.value),i=pt(ZP,0),o=_(()=>{let s=Q(i);const{matched:C}=n.value;let I;for(;(I=C[s])&&!I.components;)s++;return s}),g=_(()=>n.value.matched[o.value]);Io(ZP,_(()=>o.value+1)),Io(enA,g),Io(e0,n);const a=H();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||!hI(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 tF(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=qI(l,et({},c,t,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(I.instances[C]=null)},ref:a}));return tF(A.default,{Component:d,route:s})||d}}});function tF(e,t){if(!e)return null;const A=e(t);return A.length===1?A[0]:A}const gnA=onA;function anA(e){const t=qrA(e.routes,e),A=e.parseQuery||XrA,r=e.stringifyQuery||VP,n=e.history,i=Jl(),o=Jl(),g=Jl(),a=Zi(zo);let s=zo;yC&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=$p.bind(null,Y=>""+Y),I=$p.bind(null,wrA),l=$p.bind(null,ec);function u(Y,nA){let L,P;return GK(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=Op(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:ec(b.hash),redirectedFrom:void 0,href:J})}let L;if(Y.path!=null)L=et({},Y,{path:Op(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=mrA(r,et({},Y,{hash:QrA($),path:P.path})),w=n.createHref(z);return et({fullPath:z,hash:$,query:r===VP?AnA(Y.query):Y.query||{}},P,{redirectedFrom:void 0,href:w})}function f(Y){return typeof Y=="string"?Op(A,Y,a.value.path):et({},Y)}function E(Y,nA){if(s!==Y)return dI(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&&brA(r,P,L)&&(J=dI(16,{to:G,from:P}),bA(P,P,!0,!1)),(J?Promise.resolve(J):m(G,P)).catch(K=>oo(K)?oo(K,2)?K:MA(K):j(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 S(Y,nA){const L=E(Y,nA);return L?Promise.reject(L):Promise.resolve()}function N(Y){const nA=UA.values().next().value;return nA&&typeof nA.runWithContext=="function"?nA.runWithContext(Y):Y()}function m(Y,nA){let L;const[P,$,z]=snA(Y,nA);L=xp(P.reverse(),"beforeRouteLeave",Y,nA);for(const b of P)b.leaveGuards.forEach(G=>{L.push(sg(G,Y,nA))});const w=S.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=xp($,"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=xp(z,"beforeRouteEnter",Y,nA,N),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=>N(()=>P(Y,nA,L)))}function k(Y,nA,L,P,$){const z=E(Y,nA);if(z)return z;const w=nA===zo,b=yC?history.state:{};L&&(P||w?n.replace(Y.fullPath,et({scroll:w&&b&&b.scroll},$)):n.push(Y.fullPath,$)),a.value=Y,bA(Y,nA,L,w),MA()}let O;function Z(){O||(O=n.listen((Y,nA,L)=>{if(!ne.listening)return;const P=B(Y),$=D(P);if($){F(et($,{replace:!0}),P).catch(Du);return}s=P;const z=a.value;yC&&$rA(_P(z.fullPath,L.delta),RrA()),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===tc.pop&&n.go(-1,!1)}).catch(Du),Promise.reject()):(L.delta&&n.go(-L.delta,!1),j(w,P,z))).then(w=>{w=w||k(P,z,!1),w&&(L.delta&&!oo(w,8)?n.go(-L.delta,!1):L.type===tc.pop&&oo(w,20)&&n.go(-1,!1)),R(P,z,w)}).catch(Du)}))}let hA=Jl(),eA=Jl(),X;function j(Y,nA,L){MA(Y);const P=eA.list();return P.length?P.forEach($=>$(Y,nA,L)):console.error(Y),Promise.reject(Y)}function oA(){return X&&a.value!==zo?Promise.resolve():new Promise((Y,nA)=>{hA.add([Y,nA])})}function MA(Y){return X||(X=!Y,Z(),hA.list().forEach(([nA,L])=>Y?L(Y):nA()),hA.reset()),Y}function bA(Y,nA,L,P){const{scrollBehavior:$}=e;if(!yC||!$)return Promise.resolve();const z=!L&&OrA(_P(Y.fullPath,0))||(P||!L)&&history.state&&history.state.scroll||null;return cr().then(()=>$(Y,nA,z)).then(w=>w&&LrA(w)).catch(w=>j(w,Y,nA))}const aA=Y=>n.go(Y);let FA;const UA=new Set,ne={currentRoute:a,listening:!0,addRoute:u,removeRoute:c,hasRoute:d,getRoutes:h,resolve:B,options:e,push:v,replace:p,go:aA,back:()=>aA(-1),forward:()=>aA(1),beforeEach:i.add,beforeResolve:o.add,afterEach:g.add,onError:eA.add,isReady:oA,install(Y){const nA=this;Y.component("RouterLink",HK),Y.component("RouterView",gnA),Y.config.globalProperties.$router=nA,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(a)}),yC&&!FA&&a.value===zo&&(FA=!0,v(n.location).catch($=>{}));const L={};for(const $ in zo)Object.defineProperty(L,$,{get:()=>a.value[$],enumerable:!0});Y.provide(PQ,nA),Y.provide(hM,J1(L)),Y.provide(e0,a);const P=Y.unmount;UA.add(Y),Y.unmount=function(){UA.delete(Y),UA.size<1&&(s=zo,O&&O(),O=null,a.value=zo,FA=!1,X=!1),P()}}};function ce(Y){return Y.reduce((nA,L)=>nA.then(()=>N(L)),Promise.resolve())}return ne}function snA(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=>hI(s,g))?r.push(g):A.push(g));const a=e.matched[o];a&&(t.matched.find(s=>hI(s,a))||n.push(a))}return[A,r,n]}function ZI(){return pt(PQ)}function FQ(){return pt(hM)}const CnA=["src","alt"],InA=["title"],qc=yA({__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,CnA)):(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,InA))}}),lnA=["top","right","bottom","left"],rF=["start","end"],nF=lnA.reduce((e,t)=>e.concat(t,t+"-"+rF[0],t+"-"+rF[1]),[]),rc=Math.min,Sa=Math.max,unA={left:"right",right:"left",bottom:"top",top:"bottom"},cnA={start:"end",end:"start"};function t0(e,t,A){return Sa(e,rc(t,A))}function Fs(e,t){return typeof e=="function"?e(t):e}function Wi(e){return e.split("-")[0]}function ui(e){return e.split("-")[1]}function UK(e){return e==="x"?"y":"x"}function dM(e){return e==="y"?"height":"width"}function jc(e){return["top","bottom"].includes(Wi(e))?"y":"x"}function BM(e){return UK(jc(e))}function KK(e,t,A){A===void 0&&(A=!1);const r=ui(e),n=BM(e),i=dM(n);let o=n==="x"?r===(A?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=iE(o)),[o,iE(o)]}function hnA(e){const t=iE(e);return[nE(e),t,nE(t)]}function nE(e){return e.replace(/start|end/g,t=>cnA[t])}function dnA(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 BnA(e,t,A,r){const n=ui(e);let i=dnA(Wi(e),A==="start",r);return n&&(i=i.map(o=>o+"-"+n),t&&(i=i.concat(i.map(nE)))),i}function iE(e){return e.replace(/left|right|bottom|top/g,t=>unA[t])}function fnA(e){return{top:0,right:0,bottom:0,left:0,...e}}function _K(e){return typeof e!="number"?fnA(e):{top:e,right:e,bottom:e,left:e}}function yu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function iF(e,t,A){let{reference:r,floating:n}=e;const i=jc(t),o=BM(t),g=dM(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 EnA=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}=iF(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}=iF(s,l,a)),h=-1;continue}}return{x:C,y:I,placement:l,strategy:n,middlewareData:u}};async function RQ(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}=Fs(t,e),c=_K(u),d=g[l?I==="floating"?"reference":"floating":I],B=yu(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=yu(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 QnA=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}=Fs(e,t)||{};if(a==null)return{};const C=_K(s),I={x:A,y:r},l=BM(n),u=dM(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,S=D/2-c[u]/2-1,N=rc(C[d],S),m=rc(C[B],S),R=N,k=D-c[u]-m,O=D/2-c[u]/2+F,Z=t0(R,O,k),eA=ui(n)!=null&&O!=Z&&i.reference[u]/2-(O<R?N:m)-c[u]/2<0?O<R?R-O:k-O:0;return{[l]:I[l]-eA,data:{[l]:Z,centerOffset:O-Z+eA}}}});function vnA(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?nE(n)!==n:!1):!0)}const pnA=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=nF,autoAlignment:u=!0,...c}=Fs(e,t),h=I!==void 0||l===nF?vnA(I||null,u,l):l,d=await RQ(t,c),B=((A=o.autoPlacement)==null?void 0:A.index)||0,f=h[B];if(f==null)return{};const E=KK(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]),N=((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 N!==g?{data:{index:B+1,overflows:p},reset:{placement:N}}:{}}}},wnA=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}=Fs(e,t),d=Wi(r),B=Wi(o)===o,f=await(g.isRTL==null?void 0:g.isRTL(a.floating)),E=I||(B||!c?[iE(o)]:hnA(o));!I&&u!=="none"&&E.push(...BnA(o,c,u,f));const v=[o,...E],p=await RQ(t,h),D=[];let F=((A=n.flip)==null?void 0:A.overflows)||[];if(s&&D.push(p[d]),C){const R=KK(r,i,f);D.push(p[R[0]],p[R[1]])}if(F=[...F,{placement:r,overflows:D}],!D.every(R=>R<=0)){var S,N;const R=(((S=n.flip)==null?void 0:S.index)||0)+1,k=v[R];if(k)return{data:{index:R,overflows:F},reset:{placement:k}};let O=(N=F.filter(Z=>Z.overflows[0]<=0).sort((Z,hA)=>Z.overflows[1]-hA.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(l){case"bestFit":{var m;const Z=(m=F.map(hA=>[hA.placement,hA.overflows.filter(eA=>eA>0).reduce((eA,X)=>eA+X,0)]).sort((hA,eA)=>hA[1]-eA[1])[0])==null?void 0:m[0];Z&&(O=Z);break}case"initialPlacement":O=o;break}if(r!==O)return{reset:{placement:O}}}return{}}}};async function DnA(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=jc(A)==="y",s=["left","top"].includes(o)?-1:1,C=i&&a?-1:1,I=Fs(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 ynA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:A,y:r}=t,n=await DnA(t,e);return{x:A+n.x,y:r+n.y,data:n}}}},mnA=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}=Fs(e,t),s={x:A,y:r},C=await RQ(t,a),I=jc(Wi(n)),l=UK(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=t0(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=t0(f,c,E)}const h=g.fn({...t,[l]:u,[I]:c});return{...h,data:{x:h.x-A,y:h.y-r}}}}},bnA=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}=Fs(e,t),a=await RQ(t,g),s=Wi(A),C=ui(A),I=jc(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?rc(B,D):D}else{const D=u-a.top-a.bottom;E=C||f?rc(d,D):D}if(f&&!C){const D=Sa(a.left,0),F=Sa(a.right,0),S=Sa(a.top,0),N=Sa(a.bottom,0);I?v=l-2*(D!==0||F!==0?D+F:Sa(a.left,a.right)):E=u-2*(S!==0||N!==0?S+N: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 On(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xi(e){return On(e).getComputedStyle(e)}const oF=Math.min,mu=Math.max,oE=Math.round;function YK(e){const t=xi(e);let A=parseFloat(t.width),r=parseFloat(t.height);const n=e.offsetWidth,i=e.offsetHeight,o=oE(A)!==n||oE(r)!==i;return o&&(A=n,r=i),{width:A,height:r,fallback:o}}function Jg(e){return zK(e)?(e.nodeName||"").toLowerCase():""}let Pd;function JK(){if(Pd)return Pd;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Pd=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Pd):navigator.userAgent}function Ti(e){return e instanceof On(e).HTMLElement}function Dg(e){return e instanceof On(e).Element}function zK(e){return e instanceof On(e).Node}function gF(e){return typeof ShadowRoot>"u"?!1:e instanceof On(e).ShadowRoot||e instanceof ShadowRoot}function LQ(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 r0(e){const t=/firefox/i.test(JK()),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 WK(){return!/^((?!chrome|android).)*safari/i.test(JK())}function fM(e){return["html","body","#document"].includes(Jg(e))}function qK(e){return Dg(e)?e:e.contextElement}const jK={x:1,y:1};function ZC(e){const t=qK(e);if(!Ti(t))return jK;const A=t.getBoundingClientRect(),{width:r,height:n,fallback:i}=YK(t);let o=(i?oE(A.width):A.width)/r,g=(i?oE(A.height):A.height)/n;return o&&Number.isFinite(o)||(o=1),g&&Number.isFinite(g)||(g=1),{x:o,y:g}}function nc(e,t,A,r){var n,i;t===void 0&&(t=!1),A===void 0&&(A=!1);const o=e.getBoundingClientRect(),g=qK(e);let a=jK;t&&(r?Dg(r)&&(a=ZC(r)):a=ZC(e));const s=g?On(g):window,C=!WK()&&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=On(g),d=r&&Dg(r)?On(r):r;let B=h.frameElement;for(;B&&r&&d!==h;){const f=ZC(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=On(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((zK(e)?e.ownerDocument:e.document)||window.document).documentElement}function $Q(e){return Dg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function VK(e){return nc(yg(e)).left+$Q(e).scrollLeft}function ic(e){if(Jg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gF(e)&&e.host||yg(e);return gF(t)?t.host:t}function ZK(e){const t=ic(e);return fM(t)?t.ownerDocument.body:Ti(t)&&LQ(t)?t:ZK(t)}function gE(e,t){var A;t===void 0&&(t=[]);const r=ZK(e),n=r===((A=e.ownerDocument)==null?void 0:A.body),i=On(r);return n?t.concat(i,i.visualViewport||[],LQ(r)?r:[]):t.concat(r,gE(r))}function aF(e,t,A){return t==="viewport"?yu(function(r,n){const i=On(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=WK();(l||!l&&n==="fixed")&&(C=g.offsetLeft,I=g.offsetTop)}return{width:a,height:s,x:C,y:I}}(e,A)):Dg(t)?yu(function(r,n){const i=nc(r,!0,n==="fixed"),o=i.top+r.clientTop,g=i.left+r.clientLeft,a=Ti(r)?ZC(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)):yu(function(r){const n=yg(r),i=$Q(r),o=r.ownerDocument.body,g=mu(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=mu(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let s=-i.scrollLeft+VK(r);const C=-i.scrollTop;return xi(o).direction==="rtl"&&(s+=mu(n.clientWidth,o.clientWidth)-g),{width:g,height:a,x:s,y:C}}(yg(e)))}function sF(e){return Ti(e)&&xi(e).position!=="fixed"?e.offsetParent:null}function CF(e){const t=On(e);let A=sF(e);for(;A&&MnA(A)&&xi(A).position==="static";)A=sF(A);return A&&(Jg(A)==="html"||Jg(A)==="body"&&xi(A).position==="static"&&!r0(A))?t:A||function(r){let n=ic(r);for(;Ti(n)&&!fM(n);){if(r0(n))return n;n=ic(n)}return null}(e)||t}function knA(e,t,A){const r=Ti(t),n=yg(t),i=nc(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"||LQ(n))&&(o=$Q(t)),Ti(t)){const a=nc(t,!0);g.x=a.x+t.clientLeft,g.y=a.y+t.clientTop}else n&&(g.x=VK(n));return{x:i.left+o.scrollLeft-g.x,y:i.top+o.scrollTop-g.y,width:i.width,height:i.height}}const SnA={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=gE(s).filter(d=>Dg(d)&&Jg(d)!=="body"),u=null;const c=xi(s).position==="fixed";let h=c?ic(s):s;for(;Dg(h)&&!fM(h);){const d=xi(h),B=r0(h);(c?B||u:B||d.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=d:l=l.filter(f=>f!==h),h=ic(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=aF(t,C,n);return s.top=mu(I.top,s.top),s.right=oF(I.right,s.right),s.bottom=oF(I.bottom,s.bottom),s.left=mu(I.left,s.left),s},aF(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"||LQ(i))&&(o=$Q(A)),Ti(A))){const s=nc(A);g=ZC(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)?YK(e):e.getBoundingClientRect()},getOffsetParent:CF,getDocumentElement:yg,getScale:ZC,async getElementRects(e){let{reference:t,floating:A,strategy:r}=e;const n=this.getOffsetParent||CF,i=this.getDimensions;return{reference:knA(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"},NnA=(e,t,A)=>{const r=new Map,n={platform:SnA,...A},i={...n.platform,_c:r};return EnA(e,t,{...n,platform:i})},Wa={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 oc(e,t){let A=Wa.themes[e]||{},r;do r=A[t],typeof r>"u"?A.$extend?A=Wa.themes[A.$extend]||{}:(A=null,r=Wa[t]):A=null;while(A);return r}function PnA(e){const t=[e];let A=Wa.themes[e]||{};do A.$extend&&!A.$resetCss?(t.push(A.$extend),A=Wa.themes[A.$extend]||{}):A=null;while(A);return t.map(r=>`v-popper--theme-${r}`)}function IF(e){const t=[e];let A=Wa.themes[e]||{};do A.$extend?(t.push(A.$extend),A=Wa.themes[A.$extend]||{}):A=null;while(A);return t}let BI=!1;if(typeof window<"u"){BI=!1;try{const e=Object.defineProperty({},"passive",{get(){BI=!0}});window.addEventListener("test",null,e)}catch{}}let XK=!1;typeof window<"u"&&typeof navigator<"u"&&(XK=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const A_=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),lF={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},uF={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function cF(e,t){const A=e.indexOf(t);A!==-1&&e.splice(A,1)}function Tp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const oi=[];let ya=null;const hF={};function dF(e){let t=hF[e];return t||(t=hF[e]=[]),t}let n0=function(){};typeof window<"u"&&(n0=window.Element);function Ee(e){return function(t){return oc(t.theme,e)}}const Hp="__floating-vue__popper",e_=()=>yA({name:"VPopper",provide(){return{[Hp]:{parentPopper:this}}},inject:{[Hp]:{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=>A_.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,n0,Boolean],default:Ee("container")},boundary:{type:[String,n0],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[Hp])==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(ynA({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(pnA({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(mnA({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(wnA({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(QnA({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(bnA({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 NnA(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 Tp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...gE(this.$_referenceNode),...gE(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<oi.length;A++)t=oi[A],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}oi.push(this),document.body.classList.add("v-popper--some-open");for(const t of IF(this.theme))dF(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 Tp(),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,cF(oi,this),oi.length===0&&document.body.classList.remove("v-popper--some-open");for(const A of IF(this.theme)){const r=dF(A);cF(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 Tp(),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,lF,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],lF,this.popperTriggers,this.popperShowTriggers,e);const t=A=>{A.usedByTooltip||this.hide({event:A})};this.$_registerTriggerListeners(this.$_targetNodes,uF,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],uF,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,BI?{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(bu>=e.left&&bu<=e.right&&Mu>=e.top&&Mu<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),A=bu-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 Fd(Vo,Zo,i,o,t.left,t.top,t.left,t.bottom)||Fd(Vo,Zo,i,o,t.left,t.top,t.right,t.top)||Fd(Vo,Zo,i,o,t.right,t.top,t.right,t.bottom)||Fd(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(XK){const e=BI?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>BF(t),e),document.addEventListener("touchend",t=>fF(t,!0),e)}else window.addEventListener("mousedown",e=>BF(e),!0),window.addEventListener("click",e=>fF(e,!1),!0);window.addEventListener("resize",LnA)}function BF(e,t){for(let A=0;A<oi.length;A++){const r=oi[A];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function fF(e,t){FnA(e,t)}function FnA(e,t){const A={};for(let r=oi.length-1;r>=0;r--){const n=oi[r];try{const i=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!A[n.randomId]&&EF(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&&EF(o,o.containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function EF(e,t,A){return A.closeAllPopover||A.closePopover&&t||RnA(e,A)&&!t}function RnA(e,t){if(typeof e.autoHide=="function"){const A=e.autoHide(t);return e.lastAutoHide=A,A}return e.autoHide}function LnA(){for(let e=0;e<oi.length;e++)oi[e].$_computePosition()}let Vo=0,Zo=0,bu=0,Mu=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vo=bu,Zo=Mu,bu=e.clientX,Mu=e.clientY},BI?{passive:!0}:void 0);function Fd(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 $nA={extends:e_()},OQ=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A};function OnA(e,t,A,r,n,i){return M(),x("div",{ref:"reference",class:SA(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ZA(e.$slots,"default",xc(WI(e.slotData)))],2)}const GnA=OQ($nA,[["render",OnA]]);function xnA(){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 sf;function i0(){i0.init||(i0.init=!0,sf=xnA()!==-1)}var GQ={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){i0(),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",sf&&this.$el.appendChild(e),e.data="about:blank",sf||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&&(!sf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const TnA=aU();EQ("data-v-b329ee4c");const HnA={class:"resize-observer",tabindex:"-1"};QQ();const UnA=TnA((e,t,A,r,n,i)=>(M(),tA("div",HnA)));GQ.render=UnA;GQ.__scopeId="data-v-b329ee4c";GQ.__file="src/components/ResizeObserver.vue";const t_=(e="theme")=>({computed:{themeClass(){return PnA(this[e])}}}),KnA=yA({name:"VPopperContent",components:{ResizeObserver:GQ},mixins:[t_()],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}}}),_nA=["id","aria-hidden","tabindex","data-popper-placement"],YnA={ref:"inner",class:"v-popper__inner"},JnA=y("div",{class:"v-popper__arrow-outer"},null,-1),znA=y("div",{class:"v-popper__arrow-inner"},null,-1),WnA=[JnA,znA];function qnA(e,t,A,r,n,i){const o=vn("ResizeObserver");return M(),x("div",{id:e.popperId,ref:"popover",class:SA(["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]=OU(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",YnA,[e.mounted?(M(),x(DA,{key:0},[y("div",null,[ZA(e.$slots,"default")]),e.handleResize?(M(),tA(o,{key:0,onNotify:t[1]||(t[1]=g=>e.$emit("resize",g))})):wA("",!0)],64)):wA("",!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)},WnA,4)],4)],46,_nA)}const r_=OQ(KnA,[["render",qnA]]),n_={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 o0=function(){};typeof window<"u"&&(o0=window.Element);const jnA=yA({name:"VPopperWrapper",components:{Popper:GnA,PopperContent:r_},mixins:[n_,t_("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,o0,Boolean],default:void 0},boundary:{type:[String,o0],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 VnA(e,t,A,r,n,i){const o=vn("PopperContent"),g=vn("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})=>[ZA(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(()=>[ZA(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 EM=OQ(jnA,[["render",VnA]]),ZnA={...EM,name:"VDropdown",vPopperTheme:"dropdown"};({...EM});const XnA={...EM,name:"VTooltip",vPopperTheme:"tooltip"},AiA=yA({name:"VTooltipDirective",components:{Popper:e_(),PopperContent:r_},mixins:[n_],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>oc(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>oc(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}}}),eiA=["innerHTML"],tiA=["textContent"];function riA(e,t,A,r,n,i){const o=vn("PopperContent"),g=vn("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:SA({"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,eiA)):(M(),x("div",{key:1,textContent:mA(e.finalContent)},null,8,tiA))]),_: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 niA=OQ(AiA,[["render",riA]]),i_="v-popper--has-tooltip";function iiA(e,t){let A=e.placement;if(!A&&t)for(const r of A_)t[r]&&(A=r);return A||(A=oc(e.theme||"tooltip","placement")),A}function o_(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=iiA(r,A),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let Up,gc,oiA=0;function giA(){if(Up)return;gc=H([]),Up=oM({name:"VTooltipDirectiveApp",setup(){return{directives:gc}},render(){return this.directives.map(t=>qI(niA,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Up.mount(e)}function aiA(e,t,A){giA();const r=H(o_(e,t,A)),n=H(!1),i={id:oiA++,options:r,shown:n};return gc.value.push(i),e.classList&&e.classList.add(i_),e.$_popper={options:r,item:i,show(){n.value=!0},hide(){n.value=!1}}}function g_(e){if(e.$_popper){const t=gc.value.indexOf(e.$_popper.item);t!==-1&&gc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(i_)}function QF(e,{value:t,modifiers:A}){const r=o_(e,t,A);if(!r.content||oc(r.theme||"tooltip","disabled"))g_(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=r):n=aiA(e,t,A),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const siA={beforeMount:QF,updated:QF,beforeUnmount(e){g_(e)}};function vF(e){e.addEventListener("mousedown",aE),e.addEventListener("click",aE),e.addEventListener("touchstart",a_,BI?{passive:!0}:!1)}function pF(e){e.removeEventListener("mousedown",aE),e.removeEventListener("click",aE),e.removeEventListener("touchstart",a_),e.removeEventListener("touchend",s_),e.removeEventListener("touchcancel",C_)}function aE(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function a_(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",s_),t.addEventListener("touchcancel",C_)}}function s_(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 C_(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const CiA={beforeMount(e,{value:t,modifiers:A}){e.$_closePopoverModifiers=A,(typeof t>"u"||t)&&vF(e)},updated(e,{value:t,oldValue:A,modifiers:r}){e.$_closePopoverModifiers=r,t!==A&&(typeof t>"u"||t?vF(e):pF(e))},beforeUnmount(e){pF(e)}},En=siA,I_=CiA,IiA=ZnA,liA=XnA,QM=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},uiA={},ciA={class:"h-3 w-3 $ui-inline-fcc"},hiA=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),diA=[hiA];function BiA(e,t){return M(),x("div",ciA,diA)}const l_=QM(uiA,[["render",BiA]]),fiA={key:2},ie=yA({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=AAA(),i=_(()=>n.to?"router-link":n.href?"a":"button"),o=_(()=>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=fU(),C=_(()=>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(l_,{key:0,class:"mt0.5 h-full w3"})):ZA(I.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),Q(s).default?(M(),x("div",fiA,[ZA(I.$slots,"default")])):wA("",!0),ZA(I.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),EiA={},QiA={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function viA(e,t){return M(),x("span",QiA,[ZA(e.$slots,"default")])}const wF=QM(EiA,[["render",viA]]),De=yA({__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:SA(["$ui-base",[t.icon,t.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function xQ(e){return T1()?(x4(e),!0):!1}function piA(e,t,{enumerable:A=!1,unwrap:r=!0}={}){for(const[n,i]of Object.entries(t))n!=="value"&&(JA(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 Hn(e){return typeof e=="function"?e():Q(e)}const u_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wiA=e=>typeof e<"u",DiA=Object.prototype.toString,yiA=e=>DiA.call(e)==="[object Object]",sE=()=>{},DF=miA();function miA(){var e,t;return u_&&((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 c_(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 h_=e=>e();function biA(e,t={}){let A,r,n=sE;const i=o=>{clearTimeout(o),n(),n=sE};return o=>{const g=Hn(e),a=Hn(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=h_){const t=H(!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 kiA(e){return e||Aa()}function d_(...e){if(e.length!==1)return eU(...e);const t=e[0];return typeof t=="function"?Lo(V1(()=>({get:t,set:sE}))):H(t)}function SiA(e,t=200,A={}){return c_(biA(t,A),e)}function NiA(e,t=200,A={}){const r=H(e.value),n=SiA(()=>{r.value=e.value},t,A);return Ae(e,()=>n()),r}function PiA(e,t={}){let A=e,r,n;const i=V1((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 piA(i,{get:o,set:g,untrackedGet:()=>o(!1),silentSet:a=>g(a,!1),peek:()=>o(!1),lay:a=>g(a,!1)},{enumerable:!0})}function FiA(e,t,A={}){const{eventFilter:r=h_,...n}=A;return Ae(e,c_(r,t),n)}function RiA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=MiA(r);return{stop:FiA(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function vM(e,t=!0,A){kiA()?pn(e,A):t?e():cr(e)}function LiA(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=JA(e),i=H(e);function o(g){if(arguments.length)return i.value=g,i.value;{const a=Hn(A);return i.value=i.value===a?Hn(r):a,i.value}}return n?o:[i,o]}function dg(e){var t;const A=Hn(e);return(t=A?.$el)!=null?t:A}const zg=u_?window:void 0;function CE(...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 sE;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),Hn(n)],([C,I])=>{if(o(),!C)return;const l=yiA(I)?{...I}:I;i.push(...A.flatMap(u=>r.map(c=>g(C,u,c,l))))},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return xQ(s),s}function $iA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function B_(...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=$iA(t);return CE(n,i,s=>{s.repeat&&Hn(g)||a(s)&&A(s)},o)}function OiA(){const e=H(!1),t=Aa();return t&&pn(()=>{e.value=!0},t),e}function f_(e){const t=OiA();return _(()=>(t.value,!!e()))}function GiA(e,t={}){const{window:A=zg}=t,r=f_(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=H(!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(Hn(e)),"addEventListener"in n?n.addEventListener("change",o):n.addListener(o),i.value=n.matches)});return xQ(()=>{a(),g(),n=void 0}),i}function xiA(e){return JSON.parse(JSON.stringify(e))}const Rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ld="__vueuse_ssr_handlers__",TiA=HiA();function HiA(){return Ld in Rd||(Rd[Ld]=Rd[Ld]||{}),Rd[Ld]}function E_(e,t){return TiA[e]||t}function UiA(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 KiA={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()}},yF="vueuse-storage";function _iA(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:H)(typeof t=="function"?t():t);if(!A)try{A=E_("getDefaultStorage",()=>{var m;return(m=zg)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=Hn(t),B=UiA(d),f=(n=r.serializer)!=null?n:KiA[B],{pause:E,resume:v}=RiA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&vM(()=>{CE(I,"storage",S),CE(I,yF,N),c&&S()}),c||S();function p(m,R){I&&I.dispatchEvent(new CustomEvent(yF,{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 S(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 N(m){S(m.detail)}return h}function YiA(e){return GiA("(prefers-color-scheme: dark)",e)}function JiA(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=YiA({window:n}),u=_(()=>l.value?"dark":"light"),c=a||(o==null?d_(r):_iA(o,r,i,{window:n,listenToStorageChanges:g})),h=_(()=>c.value==="auto"?u.value:c.value),d=E_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):dg(v);if(!F)return;let S;if(C&&(S=n.document.createElement("style"),S.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n.document.head.appendChild(S)),p==="class"){const N=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{N.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(S).opacity,document.head.removeChild(S))});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}),vM(()=>f(h.value));const E=_({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 ziA(e,t,A={}){const{window:r=zg,...n}=A;let i;const o=f_(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=_(()=>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 xQ(C),{isSupported:o,stop:C}}function WiA(e,t={width:0,height:0},A={}){const{window:r=zg,box:n="content-box"}=A,i=_(()=>{var I,l;return(l=(I=dg(e))==null?void 0:I.namespaceURI)==null?void 0:l.includes("svg")}),o=H(t.width),g=H(t.height),{stop:a}=ziA(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);vM(()=>{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 Kp(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Q_(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:Q_(A)}}function qiA(e){const t=e||window.event,A=t.target;return Q_(A)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const $d=new WeakMap;function jiA(e,t=!1){const A=H(t);let r=null;Ae(d_(e),o=>{const g=Kp(Hn(o));if(g){const a=g;$d.get(a)||$d.set(a,a.style.overflow),A.value&&(a.style.overflow="hidden")}},{immediate:!0});const n=()=>{const o=Kp(Hn(e));!o||A.value||(DF&&(r=CE(o,"touchmove",g=>{qiA(g)},{passive:!1})),o.style.overflow="hidden",A.value=!0)},i=()=>{var o;const g=Kp(Hn(e));!g||!A.value||(DF&&r?.(),g.style.overflow=(o=$d.get(g))!=null?o:"",$d.delete(g),A.value=!1)};return xQ(i),_({get(){return A.value},set(o){o?n():i()}})}function Rs(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):xiA(E):E,B=()=>wiA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=H(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 _({get(){return B()},set(E){f(E)}})}const ViA={class:"$ui-dark-toggle-vtr"},v_=yA({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(e){const t=e,A=Rs(t,"isDark"),r=JiA({initialValue:A.value?"dark":"light",onChanged:g=>{A.value=g==="dark"}}),n=_({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",ViA,[ZA(g.$slots,"default",xc(WI({mode:Q(r),isDark:n.value,toggle:o})))]))}}),ZiA={},XiA={class:"$ui-base border $ui-border-base rounded shadow-sm"};function AoA(e,t){return M(),x("div",XiA,[ZA(e.$slots,"default")])}const Cf=QM(ZiA,[["render",AoA]]),pM=yA({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(e){return(t,A)=>(M(),x("div",{class:SA(["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":""]])},[ZA(t.$slots,"default")],2))}}),eoA={class:"h7.5 w-full $ui-fbc"},toA={class:"text-4.5"},roA=y("div",{class:"i-carbon-close"},null,-1),noA=[roA],ioA={class:"content transition-all transition-duration-300"},ooA={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},goA={class:"$ui-fcc"},aoA=yA({__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=Rs(A,"modelValue",t,{passive:!0}),n=jiA(()=>window.document.documentElement);Er(()=>{r.value?n.value=!0:n.value=!1});function i(){r.value&&A.autoClose&&(r.value=!1)}B_("Escape",()=>{i()});const o=H(!1);return pn(()=>o.value=!0),(g,a)=>o.value||g.mountTo==="body"?(M(),tA(MU,{key:0,to:g.mountTo},[T(_c,{"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(pM,{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",eoA,[y("div",toA,[ZA(g.$slots,"title",{},()=>[RA(mA(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},noA)):wA("",!0)]),y("div",ioA,[ZA(g.$slots,"default")]),y("div",ooA,[ZA(g.$slots,"footer",{},()=>[ZA(g.$slots,"footer",{},()=>[y("div",goA,[T(ie,{type:"primary",onClick:i},{default:U(()=>[RA(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):wA("",!0)]),_:3})],8,["to"])):wA("",!0)}}),soA=["type","placeholder","disabled"],CoA={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"},_p="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",bo=yA({__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=Rs(A,"modelValue",r),i=NiA(_(()=>A.loading),A.loadingDebounceTime),o=PiA(!1,{onChanged(I){r("updateFocused",I)}}),g=_(()=>A.variant==="flat"||A.variant==="warning"||A.disabled||A.readonly),a=_(()=>A.disabled||i.value),s=H();let C=!1;return Er(()=>{i.value&&o.value?C=!0:!i.value&&C&&(C=!1,cr(()=>{o.value=!0}))}),pn(()=>{A.autoFocus&&(o.value=!0)}),Er(()=>{var I;o.value&&((I=s.value)==null||I.focus())}),(I,l)=>(M(),x("div",{class:SA(["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:SA(_p)},[T(De,{icon:I.leftIcon},null,8,["icon"])])):wA("",!0),vt(y("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":l[0]||(l[0]=u=>JA(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,soA),[[geA,Q(n)]]),Q(i)?(M(),x("div",{key:1,class:SA(_p)},[T(l_)])):I.rightIcon?(M(),x("div",{key:2,class:SA(_p)},[T(De,{icon:I.rightIcon},null,8,["icon"])])):wA("",!0),g.value?wA("",!0):(M(),x("div",CoA))],2))}}),IoA={class:"overflow-hidden rounded-lg shadow-lg"},loA=y("div",{class:"p2 opacity-40"}," Empty... ",-1),fI=yA({__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",_(()=>t.disabled)),(A,r)=>(M(),tA(Q(IiA),{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",IoA,[ZA(A.$slots,"popper",xc(WI({hide:n})),()=>[loA])])]),default:U(()=>[ZA(A.$slots,"default",{},()=>[T(ie,Ir({...A.buttonProps,disabled:A.disabled},{class:A.buttonClass}),dU({icon:U(()=>[ZA(A.$slots,"button-icon")]),"icon-right":U(()=>[ZA(A.$slots,"button-icon-right")]),_:2},[A.label?{name:"default",fn:U(()=>[RA(mA(A.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),mF=yA({__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(()=>[ZA(r.$slots,"icon")]),default:U(()=>[ZA(r.$slots,"default")]),_:3},16,["disabled"])),[[Q(I_)]])}}),uoA={class:"$ui-fec gap2.5"},coA=yA({__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=Rs(A,"modelValue",r);Er(()=>{n.value||r("close")});function i(o=!1){(A.autoClose||o)&&(n.value=!1)}return(o,g)=>(M(),tA(aoA,{modelValue:Q(n),"onUpdate:modelValue":g[2]||(g[2]=a=>JA(n)?n.value=a:null),width:o.width,height:o.height,title:o.title,closable:!1},{footer:U(()=>[y("div",uoA,[T(ie,{onClick:g[0]||(g[0]=()=>{r("cancel"),i(!0)})},{default:U(()=>[RA(mA(o.cancelText),1)]),_:1}),T(ie,{loading:o.loading,type:"primary",onClick:g[1]||(g[1]=()=>{r("confirm"),i()})},{default:U(()=>[RA(mA(o.confirmText),1)]),_:1},8,["loading"])])]),default:U(()=>[ZA(o.$slots,"default",{class:"h-auto w-auto"},()=>[RA(mA(o.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),hoA={class:"m1 min-w-35 w-auto flex flex-col"},doA=["onClick"],BoA=y("div",{class:"i-mdi-chevron-down"},null,-1),IE=yA({__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=fU(),i=_({get:()=>A.modelValue,set:a=>r("update:modelValue",a)}),o=_(()=>{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(fI,Ir({label:o.value},{buttonProps:a.buttonProps,disabled:a.disabled}),dU({popper:U(()=>[y("div",hoA,[Q(n).item?(M(!0),x(DA,{key:0},Be(a.options,C=>(M(),x("div",{key:C.value,class:"cursor-pointer",onClick:I=>g(C)},[ZA(a.$slots,"item",xc(WI({item:C,active:a.multiple?i.value.includes(C.value):C.value===i.value,disabled:a.disabled})))],8,doA))),128)):(M(!0),x(DA,{key:1},Be(a.options,C=>vt((M(),tA(ie,{key:C.value,disabled:a.disabled,round:"normal",class:SA(["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(()=>[RA(mA(C.label),1)]),_:2},1032,["disabled","class","onClick"])),[[Q(I_),a.autoClose]])),128))])]),"button-icon-right":U(()=>[BoA]),_:2},[Q(n).button?{name:"default",fn:U(()=>[ZA(a.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),bF=yA({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Rs(e,"modelValue",t),r=LiA(A);return(n,i)=>(M(),x("div",{class:SA([[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)())},[ZA(n.$slots,"default"),y("div",{class:SA([{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:SA(["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))}}),MC=yA({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(e,{emit:t}){const A=Rs(e,"modelValue",t);return(r,n)=>(M(),x("div",{class:SA(["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:SA([[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))}}),p_=yA({__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}=WiA(()=>typeof A.top=="string"?document.querySelector(A.top):A.top,void 0,{box:"border-box"}),i=Rs(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%"}};B_("Escape",()=>{A.closable&&(i.value=!1)});const g=_(()=>o[A.placement]),a=H(!1);return pn(()=>a.value=!0),(s,C)=>a.value||s.mountTo==="body"?(M(),tA(MU,{key:0,to:s.mountTo},[T(_c,{"enter-from-class":`${g.value.transition}`,"leave-to-class":`${g.value.transition}`},{default:U(()=>[Q(i)?(M(),tA(pM,{key:0,class:SA({"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:SA([[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)})):wA("",!0),ZA(s.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):wA("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):wA("",!0)}}),foA=yA({__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=H(!1);pn(()=>{n.value=!0,setTimeout(()=>{n.value=!1},t.duration)});const i=_(()=>t.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(o,g)=>(M(),x("div",{class:SA(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":o.placement.startsWith("top")},{"bottom-0":o.placement.startsWith("bottom")}]])},[T(_c,{"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:SA(["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:SA(A[o.type])},null,2),y("div",null,mA(o.message),1)],2)],4)):wA("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),EoA=yA({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(e){return(t,A)=>(M(),tA(Q(liA),Ir({disabled:t.disabled,placement:t.placement},t.$attrs),{popper:U(()=>[ZA(t.$slots,"popper")]),default:U(()=>[ZA(t.$slots,"default")]),_:3},16,["disabled","placement"]))}});function g0(e){const t=document.createElement("div");t.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(t);const A=e.onClose;function r(){EP(null,t)}e.onClose=()=>{r(),A?.(),document.body.removeChild(t)};const n=qI(foA,e);EP(n,t)}function Mo(e){return Array.isArray?Array.isArray(e):y_(e)==="[object Array]"}const QoA=1/0;function voA(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-QoA?"-0":t}function poA(e){return e==null?"":voA(e)}function Fi(e){return typeof e=="string"}function w_(e){return typeof e=="number"}function woA(e){return e===!0||e===!1||DoA(e)&&y_(e)=="[object Boolean]"}function D_(e){return typeof e=="object"}function DoA(e){return D_(e)&&e!==null}function dn(e){return e!=null}function Yp(e){return!e.trim().length}function y_(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const yoA="Incorrect 'index' type",moA=e=>`Invalid value for key ${e}`,boA=e=>`Pattern length exceeds max of ${e}.`,MoA=e=>`Missing ${e} property in key`,koA=e=>`Property 'weight' in key '${e}' must be a positive integer`,MF=Object.prototype.hasOwnProperty;class SoA{constructor(t){this._keys=[],this._keyMap={};let A=0;t.forEach(r=>{let n=m_(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 m_(e){let t=null,A=null,r=null,n=1,i=null;if(Fi(e)||Mo(e))r=e,t=kF(e),A=a0(e);else{if(!MF.call(e,"name"))throw new Error(MoA("name"));const o=e.name;if(r=o,MF.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(koA(o));t=kF(o),A=a0(o),i=e.getFn}return{path:t,id:A,weight:n,src:r,getFn:i}}function kF(e){return Mo(e)?e:e.split(".")}function a0(e){return Mo(e)?e.join("."):e}function NoA(e,t){let A=[],r=!1;const n=(i,o,g)=>{if(dn(i))if(!o[g])A.push(i);else{let a=o[g];const s=i[a];if(!dn(s))return;if(g===o.length-1&&(Fi(s)||w_(s)||woA(s)))A.push(poA(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 PoA={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},FoA={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},RoA={location:0,threshold:.6,distance:100},LoA={useExtendedSearch:!1,getFn:NoA,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ee={...FoA,...PoA,...RoA,...LoA};const $oA=/[^ ]+/g;function OoA(e=1,t=3){const A=new Map,r=Math.pow(10,t);return{get(n){const i=n.match($oA).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 wM{constructor({getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){this.norm=OoA(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(!dn(t)||Yp(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(dn(o)){if(Mo(o)){let g=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:s,value:C}=a.pop();if(dn(C))if(Fi(C)&&!Yp(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)&&!Yp(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 b_(e,t,{getFn:A=ee.getFn,fieldNormWeight:r=ee.fieldNormWeight}={}){const n=new wM({getFn:A,fieldNormWeight:r});return n.setKeys(e.map(m_)),n.setSources(t),n.create(),n}function GoA(e,{getFn:t=ee.getFn,fieldNormWeight:A=ee.fieldNormWeight}={}){const{keys:r,records:n}=e,i=new wM({getFn:t,fieldNormWeight:A});return i.setKeys(r),i.setIndexRecords(n),i}function Od(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 xoA(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 ToA(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(boA($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=Od(t,{currentLocation:B,expectedLocation:l,distance:n,ignoreLocation:s});if(u=Math.min(F,u),c=B+C,h){let S=0;for(;S<C;)d[B+S]=1,S+=1}}c=-1;let f=[],E=1,v=C+I;const p=1<<C-1;for(let F=0;F<C;F+=1){let S=0,N=v;for(;S<N;)Od(t,{errors:F,currentLocation:l+N,expectedLocation:l,distance:n,ignoreLocation:s})<=u?S=N:v=N,N=Math.floor((v-S)/2+S);v=N;let m=Math.max(1,l-N+1),R=o?I:Math.min(l+N,I)+C,k=Array(R+2);k[R+1]=(1<<F)-1;for(let Z=R;Z>=m;Z-=1){let hA=Z-1,eA=A[e.charAt(hA)];if(h&&(d[hA]=+!!eA),k[Z]=(k[Z+1]<<1|1)&eA,F&&(k[Z]|=(f[Z+1]|f[Z])<<1|1|f[Z+1]),k[Z]&p&&(E=Od(t,{errors:F,currentLocation:hA,expectedLocation:l,distance:n,ignoreLocation:s}),E<=u)){if(u=E,c=hA,c<=l)break;m=Math.max(1,2*l-c)}}if(Od(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=xoA(d,g);F.length?a&&(D.indices=F):D.isMatch=!1}return D}function HoA(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 M_{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:HoA(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}=ToA(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 SF(t,this.multiRegex)}static isSingleMatch(t){return SF(t,this.singleRegex)}search(){}}function SF(e,t){const A=e.match(t);return A?A[1]:null}class UoA 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 KoA 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 _oA 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 YoA 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 JoA 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 zoA 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 k_ 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 M_(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 S_ 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 s0=[UoA,S_,_oA,YoA,zoA,JoA,KoA,k_],NF=s0.length,WoA=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,qoA="|";function joA(e,t={}){return e.split(qoA).map(A=>{let r=A.trim().split(WoA).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<NF;){const C=s0[s];let I=C.isMultiMatch(g);I&&(n.push(new C(I,t)),a=!0)}if(!a)for(s=-1;++s<NF;){const C=s0[s];let I=C.isSingleMatch(g);if(I){n.push(new C(I,t));break}}}return n})}const VoA=new Set([k_.type,S_.type]);class ZoA{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=joA(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;VoA.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 C0=[];function XoA(...e){C0.push(...e)}function I0(e,t){for(let A=0,r=C0.length;A<r;A+=1){let n=C0[A];if(n.condition(e,t))return new n(e,t)}return new M_(e,t)}const lE={AND:"$and",OR:"$or"},l0={PATH:"$path",PATTERN:"$val"},u0=e=>!!(e[lE.AND]||e[lE.OR]),AgA=e=>!!e[l0.PATH],egA=e=>!Mo(e)&&D_(e)&&!u0(e),PF=e=>({[lE.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function N_(e,t,{auto:A=!0}={}){const r=n=>{let i=Object.keys(n);const o=AgA(n);if(!o&&i.length>1&&!u0(n))return r(PF(n));if(egA(n)){const a=o?n[l0.PATH]:i[0],s=o?n[l0.PATTERN]:n[a];if(!Fi(s))throw new Error(moA(a));const C={keyId:a0(a),pattern:s};return A&&(C.searcher=I0(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 u0(e)||(e=PF(e)),r(e)}function tgA(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 rgA(e,t){const A=e.matches;t.matches=[],dn(A)&&A.forEach(r=>{if(!dn(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 ngA(e,t){t.score=e.score}function igA(e,t,{includeMatches:A=ee.includeMatches,includeScore:r=ee.includeScore}={}){const n=[];return A&&n.push(rgA),r&&n.push(ngA),e.map(i=>{const{idx:o}=i,g={item:t[o],refIndex:o};return n.length&&n.forEach(a=>{a(i,g)}),g})}class Ls{constructor(t,A={},r){this.options={...ee,...A},this.options.useExtendedSearch,this._keyStore=new SoA(this.options.keys),this.setCollection(t,r)}setCollection(t,A){if(this._docs=t,A&&!(A instanceof wM))throw new Error(yoA);this._myIndex=A||b_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){dn(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 tgA(a,{ignoreFieldNorm:g}),i&&a.sort(o),w_(A)&&A>-1&&(a=a.slice(0,A)),igA(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(t){const A=I0(t,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:o,n:g})=>{if(!dn(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=N_(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===lE.AND)return[]}return C},n=this._myIndex.records,i={},o=[];return n.forEach(({$:g,i:a})=>{if(dn(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=I0(t,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:o,i:g})=>{if(!dn(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(!dn(A))return[];let n=[];if(Mo(A))A.forEach(({v:i,i:o,n:g})=>{if(!dn(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}}Ls.version="7.0.0";Ls.createIndex=b_;Ls.parseIndex=GoA;Ls.config=ee;Ls.parseQuery=N_;XoA(ZoA);const ogA=[["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"}]]],P_=["assets","graph","vite-inspect"],FF={pinia:"pinia",router:"vueRouter",i18n:"vueI18n"};function ggA(e,t){const A=t.name;return A in FF&&e[FF[A]]}function agA(e,t){const A=_f(ogA);return A.forEach(r=>{r[0]==="modules"&&(r[1]=r[1].filter(n=>t?ggA(t,n):!0))}),e&&!R1?A:A.map(([r,n])=>[r,n.filter(i=>!P_.includes(i.name))])}const F_=Zi([]),R_=H(null),sgA=_(()=>F_.value.find(e=>e.id===R_.value));function qi(e){return T1()?(x4(e),!0):!1}function It(e){return typeof e=="function"?e():Q(e)}const ls=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CgA=e=>typeof e<"u",IgA=e=>e!=null,lgA=Object.prototype.toString,ugA=e=>lgA.call(e)==="[object Object]",lo=()=>{},cgA=hgA();function hgA(){var e,t;return ls&&((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 dgA(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 L_=e=>e();function BgA(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 fgA(e=L_){const t=H(!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 RF(e,t=!1,A="Timeout"){return new Promise((r,n)=>{setTimeout(t?()=>n(A):r,e)})}function EgA(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 QgA(e){return e||Aa()}function vgA(...e){if(e.length!==1)return eU(...e);const t=e[0];return typeof t=="function"?Lo(V1(()=>({get:t,set:lo}))):H(t)}function $_(e,t,A={}){const{eventFilter:r=L_,...n}=A;return Ae(e,dgA(r,t),n)}function pgA(e,t,A={}){const{eventFilter:r,...n}=A,{eventFilter:i,pause:o,resume:g,isActive:a}=fgA(r);return{stop:$_(e,t,{...n,eventFilter:i}),pause:o,resume:g,isActive:a}}function XI(e,t=!0,A){QgA()?pn(e,A):t?e():cr(e)}function c0(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(RF(c,h).then(()=>It(e)).finally(()=>d?.())),Promise.race(f)}function r(I,l){if(!JA(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(RF(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 c0(e,!t)}}:{toMatch:A,toBe:r,toBeTruthy:n,toBeNull:i,toBeNaN:g,toBeUndefined:o,changed:s,changedTimes:C,get not(){return c0(e,!t)}}}function wgA(e){return c0(e)}function DgA(e,t=1e3,A={}){const{immediate:r=!0,immediateCallback:n=!1}=A;let i=null;const o=H(!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&&ls&&s(),JA(t)||typeof t=="function"){const C=Ae(t,()=>{o.value&&ls&&s()});qi(C)}return qi(a),{isActive:o,pause:a,resume:s}}function ygA(e,t,A={}){const{immediate:r=!0}=A,n=H(!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,ls&&a()),qi(g),{isPending:Lo(n),start:a,stop:g}}function DM(e=!1,t={}){const{truthyValue:A=!0,falsyValue:r=!1}=t,n=JA(e),i=H(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 yM(e,t,A={}){const{debounce:r=0,maxWait:n=void 0,...i}=A;return $_(e,t,{...i,eventFilter:BgA(r,{maxWait:n})})}function O_(e,t,A){const r=Ae(e,(...n)=>(cr(()=>r()),t(...n)),A);return r}function LF(e,t,A){let r;JA(A)?r={evaluating:A}:r=A||{};const{lazy:n=!1,evaluating:i=void 0,shallow:o=!0,onError:g=lo}=r,a=H(!n),s=o?Zi(t):H(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?_(()=>(a.value=!0,s.value)):s}function Nr(e){var t;const A=It(e);return(t=A?.$el)!=null?t:A}const Vr=ls?window:void 0,mgA=ls?window.document:void 0,G_=ls?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=Vr):[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(()=>[Nr(t),It(n)],([C,I])=>{if(o(),!C)return;const l=ugA(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 $F=!1;function bgA(e,t,A={}){const{window:r=Vr,ignore:n=[],capture:i=!0,detectIframe:o=!1}=A;if(!r)return lo;cgA&&!$F&&($F=!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=Nr(u);return c&&(l.target===c||l.composedPath().includes(c))}}),C=[Zt(r,"click",l=>{const u=Nr(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=Nr(e);g=!a(l)&&!!(u&&!l.composedPath().includes(u))},{passive:!0}),o&&Zt(r,"blur",l=>{setTimeout(()=>{var u;const c=Nr(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=H(!1),t=Aa();return t&&pn(()=>{e.value=!0},t),e}function Al(e){const t=MgA();return _(()=>(t.value,!!e()))}function kgA(e,t={}){const{immediate:A=!0,fpsLimit:r=void 0,window:n=Vr}=t,i=H(!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 x_(e,t={}){const{window:A=Vr}=t,r=Al(()=>A&&"matchMedia"in A&&typeof A.matchMedia=="function");let n;const i=H(!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 OF(e,t={}){const{controls:A=!1,navigator:r=G_}=t,n=Al(()=>r&&"permissions"in r);let i;const o=typeof e=="string"?{name:e}:e,g=H(),a=()=>{i&&(g.value=i.state)},s=EgA(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 mM(e={}){const{navigator:t=G_,read:A=!1,source:r,copiedDuring:n=1500,legacy:i=!1}=e,o=Al(()=>t&&"clipboard"in t),g=OF("clipboard-read"),a=OF("clipboard-write"),s=_(()=>o.value||i),C=H(""),I=H(!1),l=ygA(()=>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 SgA(e){return JSON.parse(JSON.stringify(e))}const Gd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xd="__vueuse_ssr_handlers__",NgA=PgA();function PgA(){return xd in Gd||(Gd[xd]=Gd[xd]||{}),Gd[xd]}function T_(e,t){return NgA[e]||t}function FgA(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 RgA={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()}},GF="vueuse-storage";function H_(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=Vr,eventFilter:l,onError:u=m=>{console.error(m)},initOnMounted:c}=r,h=(C?Zi:H)(typeof t=="function"?t():t);if(!A)try{A=T_("getDefaultStorage",()=>{var m;return(m=Vr)==null?void 0:m.localStorage})()}catch(m){u(m)}if(!A)return h;const d=It(t),B=FgA(d),f=(n=r.serializer)!=null?n:RgA[B],{pause:E,resume:v}=pgA(h,()=>D(h.value),{flush:i,deep:o,eventFilter:l});I&&g&&XI(()=>{Zt(I,"storage",S),Zt(I,GF,N),c&&S()}),c||S();function p(m,R){I&&I.dispatchEvent(new CustomEvent(GF,{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 S(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 N(m){S(m.detail)}return h}function U_(e){return x_("(prefers-color-scheme: dark)",e)}function TQ(e={}){const{selector:t="html",attribute:A="class",initialValue:r="auto",window:n=Vr,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=U_({window:n}),u=_(()=>l.value?"dark":"light"),c=a||(o==null?vgA(r):H_(o,r,i,{window:n,listenToStorageChanges:g})),h=_(()=>c.value==="auto"?u.value:c.value),d=T_("updateHTMLAttrs",(v,p,D)=>{const F=typeof v=="string"?n?.document.querySelector(v):Nr(v);if(!F)return;let S;if(C&&(S=n.document.createElement("style"),S.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n.document.head.appendChild(S)),p==="class"){const N=D.split(/\s/g);Object.values(I).flatMap(m=>(m||"").split(/\s/g)).filter(Boolean).forEach(m=>{N.includes(m)?F.classList.add(m):F.classList.remove(m)})}else F.setAttribute(p,D);C&&(n.getComputedStyle(S).opacity,document.head.removeChild(S))});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}),XI(()=>f(h.value));const E=_({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 LgA(e,t,A={}){const{window:r=Vr,...n}=A;let i;const o=Al(()=>r&&"MutationObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=_(()=>{const l=It(e),u=(Array.isArray(l)?l:[l]).map(Nr).filter(IgA);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 $gA(e={}){const{valueDark:t="dark",valueLight:A="",window:r=Vr}=e,n=TQ({...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=_(()=>n.system?n.system.value:U_({window:r}).value?"dark":"light");return _({get(){return n.value==="dark"},set(g){const a=g?"dark":"light";i.value===a?n.value="auto":n.value=a}})}function K_(e,t,A={}){const{window:r=Vr,...n}=A;let i;const o=Al(()=>r&&"ResizeObserver"in r),g=()=>{i&&(i.disconnect(),i=void 0)},a=_(()=>Array.isArray(e)?e.map(I=>Nr(I)):[Nr(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 OgA(e,t={}){const{reset:A=!0,windowResize:r=!0,windowScroll:n=!0,immediate:i=!0}=t,o=H(0),g=H(0),a=H(0),s=H(0),C=H(0),I=H(0),l=H(0),u=H(0);function c(){const h=Nr(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 K_(e,c),Ae(()=>Nr(e),h=>!h&&c()),LgA(e,c,{attributeFilter:["style","class"]}),n&&Zt("scroll",c,{capture:!0,passive:!0}),r&&Zt("resize",c,{passive:!0}),XI(()=>{i&&c()}),{height:o,bottom:g,left:a,right:s,top:C,width:I,x:l,y:u,update:c}}function GgA(e,t={width:0,height:0},A={}){const{window:r=Vr,box:n="content-box"}=A,i=_(()=>{var I,l;return(l=(I=Nr(e))==null?void 0:I.namespaceURI)==null?void 0:l.includes("svg")}),o=H(t.width),g=H(t.height),{stop:a}=K_(e,([I])=>{const l=n==="border-box"?I.borderBoxSize:n==="content-box"?I.contentBoxSize:I.devicePixelContentBoxSize;if(r&&i.value){const u=Nr(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);XI(()=>{const I=Nr(e);I&&(o.value="offsetWidth"in I?I.offsetWidth:t.width,g.value="offsetHeight"in I?I.offsetHeight:t.height)});const s=Ae(()=>Nr(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 xgA(e={}){const{initialValue:t=""}=e,A=Al(()=>typeof window<"u"&&"EyeDropper"in window),r=H(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 TgA(e,t,A={}){const{window:r=Vr}=A;return H_(e,t,r?.localStorage,A)}const HgA={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function UgA(e={}){const{reactive:t=!1,target:A=Vr,aliasMap:r=HgA,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]=_(()=>E.every(v=>It(c[v])))}else a[d]=H(!1);const f=Reflect.get(h,d,B);return t?It(f):f}});return c}function KgA(e={}){const{controls:t=!1,interval:A="requestAnimationFrame"}=e,r=H(new Date),n=()=>r.value=new Date,i=A==="requestAnimationFrame"?kgA(n,{immediate:!0}):DgA(n,A,{immediate:!0});return t?{now:r,...i}:r}let _gA=0;function YgA(e,t={}){const A=H(!1),{document:r=mgA,immediate:n=!0,manual:i=!1,id:o=`vueuse_styletag_${++_gA}`}=t,g=H(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&&XI(s),i||qi(C),{id:o,css:g,unload:C,load:s,isLoaded:Lo(A)}}const JgA=[{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"}],zgA={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 WgA(e){return e.toISOString().slice(0,10)}function qgA(e,t={}){const{controls:A=!1,updateInterval:r=3e4}=t,{now:n,...i}=KgA({interval:r,controls:!0}),o=_(()=>jgA(new Date(It(e)),t,It(n)));return A?{timeAgo:o,...i}:o}function jgA(e,t={},A=Date.now()){var r;const{max:n,messages:i=zgA,fullDateFormatter:o=WgA,units:g=JgA,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 HQ(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):SgA(E):E,B=()=>CgA(e[t])?d(e[t]):I,f=E=>{l?l(E)&&c(h,E):c(h,E)};if(a){const E=B(),v=H(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 _({get(){return B()},set(E){f(E)}})}function VgA(e={}){const{window:t=Vr,initialWidth:A=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:i=!0}=e,o=H(A),g=H(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(),XI(a),Zt("resize",a,{passive:!0}),n){const s=x_("(orientation: portrait)");Ae(s,()=>a())}return{width:o,height:g}}function __(){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=TgA("__VUE_DEVTOOLS_CLIENT_STATE__",__(),{mergeDefaults:!0});function ZgA(){rt.value=__()}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}=Yn(),r=_(()=>A.value&&t.value);if(r.value){Xo.forEach(n=>n());return}return O_(r,n=>{n&&Xo.forEach(i=>i())}),()=>{Xo.splice(Xo.indexOf(e),1)}}function XgA(){Xo.forEach(e=>e())}let xF=null;function Vc(){const e=Yn(),t=H(e.tabs.value||[]),A=_(()=>{const g=e.vitePluginDetected.value,a=[...agA(g,sgA.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||R1)&&P_.includes(s.name))return;C[1].push({...s})}}),a}),r=_(()=>A.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[])),n=_(()=>{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=_(()=>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=_(()=>i.value.reduce((g,[a,s])=>(s.forEach(C=>{g.push(C)}),g),[]));return Ei(()=>{xF?.(),xF=pK(g=>{t.value=g})}),{categorizedTabs:n,flattenedTabs:r,enabledTabs:i,enabledFlattenTabs:o}}function TF(e,t){return _(()=>{const A=[],r=rt.value.tabSettings.pinnedTabs;xm(t).reduce((o,[{name:g,hidden:a},s])=>(s.forEach(C=>{if(xm(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 AaA(e){const t=new Map;return e.forEach(A=>t.set(A.id,A)),Array.from(t.values())}const h0=Ug(new Map);let HF=null;function eaA(){const{enabledFlattenTabs:e}=Vc(),t=ZI(),A=Yn(),r=H(A.commands.value||[]);Er(()=>{r.value=A.commands.value||[]}),Ei(()=>{HF?.(),HF=wK(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:()=>raA()}],i=_(()=>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 _(()=>AaA([...n,...i.value,...taA(r.value),...Array.from(h0.values()).flatMap(o=>xm(o))]))}function UF(e){e?.type==="url"&&window.open(e.src,"_blank")}function taA(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:()=>{UF(A.action)}})).sort((A,r)=>(r.order??0)-(A.order??0));UF(t.action)}})).sort((t,A)=>(A.order??0)-(t.order??0))}function KF(e){const t=P7();h0.set(t,e),Ns(()=>{h0.delete(t)})}let Jp;async function raA(){return Jp||(Jp=(await pr(()=>import("./vue-apis-buOuct3A.js"),[],import.meta.url).then(t=>t.default)).map(t=>({...t,icon:"carbon-api-1",action:()=>{window.open(t.url,"_blank")}}))),Jp}const naA={flex:"~ col","max-h-120":"","min-h-60":"",h:"60%","w-xl":"","of-hidden":"",border:"1 base","rounded-md":"","text-3.75":""},iaA={border:"b base","flex-none":""},oaA={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},gaA=["id","onClick","onMouseover"],aaA={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},saA={"ws-nowrap":""},CaA={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},IaA={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},laA=y("span",{op50:""},"No results for",-1),uaA={"text-primary":""},caA={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},haA={"text-xs":"",flex:"~ items-center gap2"},daA={px1:""},BaA={px1:""},faA=y("span",{op75:""},"to navigate",-1),EaA={"text-xs":"",flex:"~ items-center gap2"},QaA=y("button",{px1:""}," Esc ",-1),vaA={op75:""},paA={"text-xs":"",flex:"~ items-center gap2"},waA={px1:""},DaA=y("span",{op75:""},"to select",-1),yaA=yA({__name:"CommandPalette",setup(e){const t=H(!1),A=H(""),r=eaA(),n=H(),i=_(()=>n.value||r.value),o=_(()=>new Ls(i.value,{keys:["id","title"],distance:50})),g=_(()=>A.value?o.value.search(A.value).map(l=>l.item):i.value||[]),a=H(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=qc;return Q(t)?(M(),tA(Q(pM),{key:0,dim:"",class:"backdrop-blur-2xl!"},{default:U(()=>[y("div",naA,[y("header",iaA,[T(Q(bo),{modelValue:Q(A),"onUpdate:modelValue":u[0]||(u[0]=h=>JA(A)?A.value=h:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),y("div",oaA,[(M(!0),x(DA,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:SA(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",aaA,[y("span",saA,mA(h.title),1),y("span",CaA,mA(h.description),1)]),Q(a)===d?(M(),tA(Q(De),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):wA("",!0)],2)],40,gaA))),128)),Q(g).length?wA("",!0):(M(),x("div",IaA,[T(Q(De),{icon:"carbon-search",op50:""}),y("div",null,[laA,y("strong",uaA,' "'+mA(Q(A))+'" ',1)])]))]),y("footer",caA,[y("div",haA,[y("button",daA,[T(Q(De),{icon:"carbon-arrow-down"})]),y("button",BaA,[T(Q(De),{icon:"carbon-arrow-up"})]),faA]),y("div",EaA,[QaA,y("span",vaA,"to "+mA(Q(n)?"go back":"close"),1)]),y("div",paA,[y("button",waA,[T(Q(De),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),DaA])])])]),_:1})):wA("",!0)}}}),Zc=(e,t)=>{const A=e.__vccOpts||e;for(const[r,n]of t)A[r]=n;return A},maA={},baA={class:"panel-grids-center"};function MaA(e,t){return M(),x("div",baA,[ZA(e.$slots,"default")])}const Qi=Zc(maA,[["render",MaA]]),kaA={flex:"~ items-center gap-3"},SaA={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},NaA={"translate-y-0.5px":""},PaA={key:0,hidden:"","lg:block":""},Y_=yA({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"}},setup(e){const t=e,A=FQ(),r=_(()=>"path"in t.tab?`${t.tab.path.startsWith("/")?"":"/"}${t.tab.path}`:`/custom-tab-view/${t.tab.name}`),n=_(()=>"badge"in t.tab&&t.tab.badge?.()),i=_(()=>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=qc;return M(),tA(Q(EoA),{disabled:!g.minimized,placement:"right",class:SA({"w-full":!g.minimized})},{popper:U(()=>[y("div",null,mA(g.tab.title),1),"extraTabVNode"in g.tab&&g.tab.extraTabVNode?(M(),x("div",PaA,[(M(),tA(Kg(g.tab.extraTabVNode)))])):wA("",!0)]),default:U(()=>[(M(),tA(Kg(g.target==="main"?Q(HK):"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",kaA,[T(s,{"text-xl":"",icon:g.tab.icon,title:"Settings","show-title":!1},null,8,["icon"]),g.minimized?wA("",!0):(M(),x("span",SaA,mA(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:SA([Q(i)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":g.minimized}])},[y("span",NaA,mA(Q(It)(Q(n))),1)],2)):wA("",!0)]),_:1},8,["to","flex","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),FaA={flex:"~ col gap-1","max-w-80":"",py1:""},RaA={key:0,"h-1px":"",border:"b base"},LaA={flex:"~ wrap",px1:""},J_=yA({__name:"TabsGrid",props:{categories:{},target:{}},setup(e){return(t,A)=>{const r=Y_;return M(),x("div",FaA,[(M(!0),x(DA,null,Be(t.categories,([n,i],o)=>(M(),x(DA,{key:n},[i.length?(M(),x(DA,{key:0},[o?(M(),x("div",RaA)):wA("",!0),y("div",LaA,[(M(!0),x(DA,null,Be(i,g=>(M(),tA(r,{key:g.name,target:t.target,tab:g},null,8,["target","tab"]))),128))])],64)):wA("",!0)],64))),128))])}}}),$aA={"h-full":"","h-screen":"","of-hidden":""},OaA={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},GaA={flex:"","cursor-pointer":"","items-center":"",gap2:""},xaA=y("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),TaA={capitalize:""},HaA=y("div",{"flex-auto":""},null,-1),UaA=y("div",{"i-carbon:side-panel-open":""},null,-1),KaA=[UaA],_aA={key:1,"of-auto":"",style:{height:"calc(100% - 50px)"}},YaA=y("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),JaA=yA({__name:"SplitScreen",setup(e){function t(){rt.value.splitScreen.enabled=!1}const A=_(()=>rt.value.splitScreen),{enabledTabs:r,flattenedTabs:n}=Vc(),i=ZI(),o=FQ(),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=_(()=>{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=HX(h):g.value=h},{immediate:!0});const C=H(!1);return(I,l)=>{const u=qc,c=J_,h=Qi;return M(),x("div",$aA,[Q(g)&&Q(s)?(M(),x("div",OaA,[T(Q(fI),{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",GaA,[xaA,T(u,{"text-xl":"",icon:Q(s)?.icon,title:"Settings","show-title":!1},null,8,["icon"]),y("span",TaA,mA(Q(s)?.name),1)])]),_:1},8,["shown"]),HaA,vt((M(),x("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:t},KaA)),[[Q(En),"Close split screen"]])])):wA("",!0),Q(g)&&Q(s)?(M(),x("div",_aA,[(M(),tA(Kg(Q(g)),{key:`tab-${Q(s).name}`}))])):(M(),tA(h,{key:2},{default:U(()=>[YaA,T(Q(Cf),{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(()=>[RA(" Close Split Screen ")]),_:1})]),_:1}))])}}});function bM(){const e=uM(),t=H("");return CI&&ae.chrome.storage.local.get(Dp).then(A=>{t.value=A[Dp]??"overlay"}),{viewMode:t,toggle(A){t.value=A,ae.chrome.storage.local.set({[Dp]:A}),CI&&e.value.emit("toggle-view-mode",A)}}}const zaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},WaA=y("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),qaA=y("div",{"i-carbon-settings-adjust":""},null,-1),jaA={px3:"",py2:"",border:"b base",flex:"~ gap-2"},VaA=y("div",{"i-carbon-split-screen":""},null,-1),ZaA={px3:"",py2:"",flex:"~ gap2"},XaA=yA({__name:"DockingPanel",setup(e){const t=pt("viewMode",H("overlay")),A=_(()=>t.value==="panel"&&CI),{toggle:r}=bM(),n=ZI(),i=_({get:()=>rt.value.expandSidebar,set:l=>rt.value.expandSidebar=l}),o=_({get:()=>rt.value.splitScreen.enabled,set:l=>rt.value.splitScreen.enabled=l});function g(){location.reload()}const a=Yn(),s=_(()=>a.appRecords.value.map(l=>({label:l.name+(l.version?` (${l.version})`:""),value:l.id}))),C=H(a.activeAppRecordId.value),I=_(()=>s.value.find(l=>l.value===C.value)?.label??"");return Ae(C,l=>{nK(`${l}`).then(()=>{n.push("/overview").then(()=>{XgA()})})}),(l,u)=>(M(),x("div",null,[y("div",zaA,[T(Q(v_),null,{default:U(({isDark:c,toggle:h})=>[T(Q(ie),{outlined:"",type:"primary",onClick:h},{default:U(()=>[WaA,RA(" "+mA(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"]),RA(" "+mA(Q(i)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),T(Q(ie),{to:"/settings",outlined:"",type:"primary"},{default:U(()=>[qaA,RA(" Settings ")]),_:1})]),y("div",jaA,[T(Q(ie),{outlined:"",type:"primary",onClick:u[1]||(u[1]=c=>o.value=!Q(o))},{default:U(()=>[VaA,RA(" "+mA(Q(o)?"Close Split Screen":"Split Screen"),1)]),_:1})]),y("div",ZaA,[Q(s).length>1?(M(),tA(Q(IE),{key:0,modelValue:Q(C),"onUpdate:modelValue":u[2]||(u[2]=c=>JA(C)?C.value=c:null),options:Q(s),placeholder:Q(I)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):wA("",!0),T(Q(ie),{outlined:"",type:"primary",onClick:g},{default:U(()=>[RA(" 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(()=>[RA(" Switch to Overlay Mode ")]),_:1})):wA("",!0)])]))}}),AsA={border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},esA={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},tsA=y("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),rsA=y("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),nsA=y("div",{"flex-auto":""},null,-1),isA=y("div",{"i-carbon-overflow-menu-vertical":""},null,-1),osA={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},gsA={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},asA=y("div",{"flex-auto":""},null,-1),ssA=["flex"],CsA={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},IsA={"translate-y-0.5px":""},lsA=45,usA=yA({__name:"SideNav",setup(e){const t=H(!1),A=H(!1),r=H(),n=H(),i=H(),o=_(()=>rt.value.expandSidebar),g=_(()=>rt.value.scrollableSidebar),{enabledTabs:a,flattenedTabs:s}=Vc(),{height:C}=VgA(),I=_(()=>{const B=C.value-130;return Math.max(0,Math.floor(B/lsA))}),l=_(()=>s.value.slice(0,I.value)),u=_(()=>s.value.slice(I.value)),c=TF(l,a),h=TF(u,a),d=_(()=>g.value||o.value?a.value:c.value);return bgA(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=XaA,v=Y_,p=qc,D=J_;return M(),x("div",AsA,[y("div",esA,[T(Q(fI),{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:SA([Q(o)?"rounded pl2.5":"rounded-xl"])},[tsA,Q(o)?(M(),x(DA,{key:0},[rsA,nsA,isA],64)):wA("",!0)],2)]),_:1},8,["shown"])]),y("div",osA,[(M(!0),x(DA,null,Be(Q(d),([F,S],N)=>(M(),x(DA,{key:F},[N?(M(),x("div",gsA)):wA("",!0),(M(!0),x(DA,null,Be(S.filter(m=>!m.hidden),m=>(M(),tA(v,{key:m.name,tab:m,minimized:!Q(o)},null,8,["tab","minimized"]))),128))],64))),128)),asA]),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(fI),{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",CsA,[y("span",IsA,mA(Q(u).length),1)])],512)]),_:1})):wA("",!0),T(v,{minimized:!Q(o),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,ssA)])}}}),csA={},hsA={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dsA=pAA('<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),BsA=[dsA];function fsA(e,t){return M(),x("svg",hsA,BsA)}const MM=Zc(csA,[["render",fsA]]),EsA={class:"fixed inset-0 h-screen w-screen flex flex-col items-center justify-center $ui-bg-base"},QsA=y("p",{class:"p3 text-sm font-bold"},[RA(" DevTools is currently injected into user application in "),y("em",{class:"text-primary-600"},"Overlay"),RA(" view mode. ")],-1),vsA=yA({__name:"ViewModeSwitch",setup(e){TQ();const{toggle:t}=bM();return(A,r)=>{const n=MM;return M(),x("div",EsA,[T(n,{"h-18":""}),QsA,y("p",null,[T(Q(ie),{onClick:r[0]||(r[0]=fr(i=>Q(t)("panel"),["stop"]))},{default:U(()=>[RA(" Switch to Panel Mode ")]),_:1})])])}}}),psA="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",wsA={class:"h-screen w-screen $ui-fcc flex-col"},DsA={class:"outer"},ysA={class:"inner"},msA=["src"],bsA=yA({__name:"AppConnecting",setup(e){return(t,A)=>(M(),x("div",wsA,[y("div",DsA,[y("div",ysA,[y("img",{src:Q(psA),class:"max-w-18",alt:"Vue logo"},null,8,msA)])]),ZA(t.$slots,"default",{},void 0,!0)]))}}),z_=Zc(bsA,[["__scopeId","data-v-204233a8"]]),el={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 qI("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},ksA={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 SsA(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)},[ZA(e.$slots,"default")],4)}const Qn=MsA(ksA,[["render",SsA]]);function Xc(){const{copy:e,copied:t}=mM();return{copy:(r,n={})=>{const{silent:i=!1,type:o=""}=n;e(r).then(()=>{i||g0({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{i||g0({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:t}}const NsA=cI("get-open-in-editor-host"),Ah=H(!1),UQ=async e=>{const t=await NsA();return t?Zm(e,t):Zm(e)},PsA={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},FsA=yA({__name:"App",setup(e){pr(()=>import("./unocss-runtime-COcjrKyN.js"),[],import.meta.url),TQ();const t=ZI(),A=FQ(),{connected:r,clientConnected:n}=Yn(),i=rt,o=pt("viewMode",H("overlay")),g=_(()=>o.value==="overlay"&&CI),a=uM(),s=_(()=>A.path.startsWith("/__")||A.path==="/"),C=_(()=>i.value.expandSidebar),I=_(()=>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=_(()=>i.value.splitScreen.enabled),u=_({get:()=>i.value.splitScreen.size,set:B=>i.value.splitScreen.size=B}),c=Yn();Er(()=>{F_.value=c.appRecords.value,R_.value=c.activeAppRecordId.value});const{copy:h}=Xc(),d=xgA({});return tK().then(B=>{B&&(Ah.value=!0,KF(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{a.value.emit("toggle-panel",!1),await rK()}}]))}),KF(()=>[...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=z_,v=vsA,p=usA,D=vn("RouterView"),F=JaA,S=yaA;return M(),x("main",PsA,[Q(I)?Q(g)?(M(),tA(v,{key:1})):(M(),x("div",{key:2,class:SA(["h-full of-auto transition-base",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)?wA("",!0):(M(),tA(p,{key:0,"of-x-hidden":"","of-y-auto":""})),T(Q(el),{"h-full":"","of-hidden":"",onResize:f[0]||(f[0]=N=>u.value=N.map(m=>m.size))},{default:U(()=>[T(Q(Qn),{"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(Qn),{key:0,relative:"","h-full":"",class:"of-auto!",size:Q(u)[1]},{default:U(()=>[T(F)]),_:1},8,["size"])):wA("",!0)]),_:1})],2)):(M(),tA(E,{key:0})),T(S)])}}}),kM=yA({__name:"ExpandIcon",props:{value:{type:Boolean}},setup(e){return(t,A)=>(M(),x("i",{class:SA(["i-radix-icons:triangle-right flex-none text-5 op-50 transition-base",{"transform rotate-90":t.value}])},null,2))}}),RsA={class:"flex-inline items-center gap4px"},LsA=yA({__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=_(()=>A.customType==="date"?"datetime-local":""),{escape:i,enter:o}=UgA();Er(()=>{i.value?r("cancel"):o.value&&r("submit")});const g=HQ(A,"modelValue",r);function a(I){try{return af(I,A.customType),!0}catch{return!1}}const s=H(!1);return Ae(g,mQ(()=>{s.value=!a(g.value)},300)),(I,l)=>(M(),x("span",RsA,[T(Q(bo),{modelValue:Q(g),"onUpdate:modelValue":l[0]||(l[0]=u=>JA(g)?g.value=u:null),type:Q(n),variant:Q(s)?"warning":"normal",class:SA(["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(DA,{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(En),{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(En),{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(En),{content:"Enter to submit change"}]])],64)):wA("",!0)]))}}),W_=Symbol("StateEditorSymbol");function $sA(e){const t=H(e);return Io(W_,t),{context:t}}function SM(){return pt(W_)}function OsA(){const e=H(""),t=H("string"),A=H(!1),r=SM();return{editingText:e,editing:A,toggleEditing(n){n&&(t.value=n),A.value=!A.value},editingType:t,nodeId:r.value.nodeId}}function GsA(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 xsA(){const e=H({enable:!1,key:"",value:"undefined"});function t(r,n){const i=GsA(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 TsA={class:"inline pl5px"},HsA={class:"w160px py5px"},_F=yA({__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=SM(),{copy:r,isSupported:n}=mM(),i=H(!1),o=_(()=>sM(t.data.value)),g=_(()=>o.value.value),a=_(()=>o.value.customType),s=_(()=>g.value===null?"null":typeof g.value),C={flat:!0,size:"mini"},I=_(()=>({"opacity-0":!t.hovering}));function l(c,h=!1){tE({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",TsA,[!t.disableEdit&&c.data.editable?(M(),x(DA,{key:0},[Q(s)==="string"||Q(s)==="number"||Q(s)==="object"||Q(s)==="null"?(M(),x(DA,{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(En),{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(En),{content:"Add new value"}]]):wA("",!0)],64)):wA("",!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(DA,{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)):wA("",!0)],64)):wA("",!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"])):wA("",!0),T(Q(fI),{class:SA({"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",HsA,[T(Q(mF),{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"}),RA(" Copy Value ")]),_:1}),T(Q(mF),{onClick:h[7]||(h[7]=()=>{Q(r)(c.data.key)})},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),RA(" Copy Path ")]),_:1})])]),"button-icon":U(()=>[T(Q(De),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}});function EI(e){const t=H({}),A=H({});return Io(`CollapseMapSymbol${e}`,t),Io(`CollapseMapSymbol${e}LinkedList`,A),{collapseMap:t,id:e,linkedList:A}}function UsA(e){const t=pt(`CollapseMapSymbol${e}`),A=pt(`CollapseMapSymbol${e}LinkedList`);return{collapseMap:t,linkedList:A,id:e}}function NM(e,t,A){const{collapseMap:r,linkedList:n}=UsA(e),i=_(()=>r.value[t]??!1),o=()=>{r.value[t]=!r.value[t]};return A?.length&&(n.value[t]=A??[]),{isExpanded:i,toggleCollapse:o}}function KsA(e,t={}){const{enter:A=()=>{},leave:r=()=>{},initial:n=!1}=t,i=H(n);return Zt(e,"mouseenter",()=>{i.value=!0,A()}),Zt(e,"mouseleave",()=>{i.value=!1,r()}),{isHovering:i}}const PM=e=>(EQ("data-v-a33ae112"),e=e(),QQ(),e),_sA={key:0},YsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},JsA=PM(()=>y("span",{"mx-1":""},":",-1)),zsA=["innerHTML"],WsA={key:1,"cursor-pointer":""},qsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},jsA=PM(()=>y("span",{"mx-1":""},":",-1)),VsA=["innerHTML"],ZsA={key:0},XsA={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},ACA=PM(()=>y("span",{"mx-1":""},":",-1)),YF=30,eCA=yA({__name:"InspectorStateField",props:{data:{},depth:{default:0},no:{},rootId:{}},setup(e){const t=e,A=SM(),r=_(()=>jU(t.data.value)),n=_(()=>NQ(t.data.value)),i=_(()=>n.value==="custom"?`state-format-${t.data.value._custom?.type}`:""),{isExpanded:o,toggleCollapse:g}=NM("inspector-state",`${t.rootId}-${t.no}-${t.depth}-${t.data.key}`),a=_(()=>{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=_(()=>sM(t.data.value)),C=H(YF),I=_(()=>{const{value:k,inherit:O,customType:Z}=s.value,hA=Z==="set";let eA;return yN(k)?k.slice(0,C.value).map((j,oA)=>({key:`${t.data.key}.${oA}`,value:j,...O,editable:t.data.editable&&!hA,creating:!1})):(DN(k)?(eA=Object.keys(k).slice(0,C.value).map(X=>({key:`${t.data.key}.${X}`,value:k[X],...O,editable:t.data.editable&&!hA,creating:!1})),n.value!=="custom"&&(eA=N7(eA))):eA=[],eA===t.data.value?{}:eA)}),l=_(()=>{const{value:k}=s.value;return yN(k)?k.length:DN(k)?Object.keys(k).length:0}),u=_(()=>{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}=OsA();Ae(()=>h.value,k=>{if(k){const{value:O}=s.value;d.value=StA(O,s.value.customType)}else d.value=""});function E(){const k=t.data;tE({path:k.key.split("."),inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:null,type:c.value,value:af(d.value,s.value.customType)}}),B()}const{addNewProp:v,draftingNewProp:p,resetDrafting:D}=xsA();function F(k){o.value||g(),v(k,s.value.value)}function S(){const k=t.data,O=k.key.split(".");O.push(p.value.key),tE({path:O,inspectorId:A.value.inspectorId,type:k.stateType,nodeId:f,state:{newKey:p.value.key,type:typeof af(p.value.value),value:af(p.value.value)}}),D()}const N=_(()=>Object.keys(I.value).length>0||p.value.enable),m=H(),{isHovering:R}=KsA(()=>m.value);return(k,O)=>{const Z=LsA,hA=kM,eA=vn("InspectorStateField",!0);return M(),x("div",{ref_key:"containerRef",ref:m,class:"pl-6",style:Qt({paddingLeft:`${k.depth*15+4}px`})},[Q(N)?(M(),x("div",WsA,[y("div",{relative:"",flex:"","items-center":"",onClick:O[2]||(O[2]=(...X)=>Q(g)&&Q(g)(...X))},[T(hA,{value:Q(o),absolute:"","left--6":"","group-hover:text-white":""},null,8,["value"]),y("span",qsA,mA(Q(u)),1),jsA,Q(h)?(M(),tA(Z,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[1]||(O[1]=X=>JA(d)?d.value=X:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(DA,{key:1},[y("span",{class:SA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,VsA)],2),T(_F,{"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",ZsA,[(M(!0),x(DA,null,Be(Q(I),(X,j)=>(M(),tA(eA,{key:j,data:X,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]=X=>C.value+=YF)},{icon:U(()=>[T(Q(De),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[Q(En),"Show more"]]):wA("",!0),Q(p).enable?(M(),x("div",{key:1,style:Qt({paddingLeft:`${(k.depth+1)*15+4}px`})},[y("span",XsA,[T(Z,{modelValue:Q(p).key,"onUpdate:modelValue":O[4]||(O[4]=X=>Q(p).key=X),"show-actions":!1},null,8,["modelValue"])]),ACA,T(Z,{modelValue:Q(p).value,"onUpdate:modelValue":O[5]||(O[5]=X=>Q(p).value=X),"auto-focus":!1,onCancel:Q(D),onSubmit:S},null,8,["modelValue","onCancel"])],4)):wA("",!0)])):wA("",!0)])):(M(),x("div",_sA,[y("span",YsA,mA(Q(u)),1),JsA,Q(h)?(M(),tA(Z,{key:0,modelValue:Q(d),"onUpdate:modelValue":O[0]||(O[0]=X=>JA(d)?d.value=X:null),"custom-type":Q(s).customType,onCancel:Q(B),onSubmit:E},null,8,["modelValue","custom-type","onCancel"])):(M(),x(DA,{key:1},[y("span",{class:SA(Q(i))},[y("span",{innerHTML:Q(a)},null,8,zsA)],2),T(_F,{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)}}}),tCA=Zc(eCA,[["__scopeId","data-v-a33ae112"]]),rCA=yA({__name:"InspectorStateType",props:{data:{},depth:{default:0},rootId:{}},setup(e){return(t,A)=>{const r=tCA;return M(!0),x(DA,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)}}}),nCA={"text-primary-400":"","group-hover:text-white":"",class:"text-[#486887] dark:text-[#7595b5]"},eh=yA({__name:"InspectorState",props:{data:{},name:{},id:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1}},setup(e){const t=e,{isExpanded:A,toggleCollapse:r}=NM("inspector-state",t.id);return!A.value&&r(),$sA({nodeId:t.nodeId,inspectorId:t.inspectorId,disableEdit:t.disableEdit}),(n,i)=>{const o=kM,g=rCA;return M(),x(DA,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",nCA,mA(n.name),1)]),Q(A)?(M(),tA(g,{key:0,data:n.data,"root-id":n.id},null,8,["data","root-id"])):wA("",!0)],64)}}});function d0(e){return e.toString(16).padStart(6,"0")}function iCA(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 q_=yA({__name:"InspectorNodeTag",props:{tag:{}},setup(e){return(t,A)=>{const r=vQ("tooltip");return vt((M(),x("span",{style:Qt({color:`#${Q(d0)(t.tag.textColor)}`,backgroundColor:`#${Q(d0)(t.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[RA(mA(t.tag.label),1)],4)),[[r,{content:t.tag.tooltip,html:!0}]])}}});function oCA(e){const t=H("");return Io(`SelectedSymbol${e}`,t),{selected:t,id:e}}function gCA(e){return{selected:pt(`SelectedSymbol${e}`),id:e}}function aCA(e,t,A){const{selected:r}=gCA(e);return{isSelected:_(()=>r.value===t),toggleSelected:o=>{r.value=o,A?.(o)}}}const sCA={key:1,"inline-block":"","h-6":"","w-6":""},CCA={"text-primary-400":"","group-hover:text-white":"",class:"[.active_&]:text-white"},ICA=yA({__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}=NM("component-tree",A.data.id,[...A.linkedList,A.data.id]),{isSelected:o,toggleSelected:g}=aCA("component-tree",A.data.id,a=>{r("select",a)});return(a,s)=>{const C=kM,I=q_,l=vn("ComponentTreeNode",!0);return M(),x(DA,null,[y("div",{class:SA(["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",sCA)),y("span",CCA,mA(a.data.name),1),(M(!0),x(DA,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(DA,{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)):wA("",!0)],64)}}}),lCA={"w-full":"",flex:"",gap2:"",px2:"",py2:""},uCA=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),cCA=[uCA],hCA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},dCA={flex:"","items-center":"","justify-between":"","overflow-auto":"",px2:"",py3:"",class:"no-scrollbar"},BCA={key:0},fCA={flex:"~ gap2"},ECA=y("p",{class:"x-divider"},null,-1),JF="components",QCA=yA({__name:"components",setup(e){const t=uM(),A=H([]),r=H(""),n=_(()=>Ah.value),i=H(!1),[o,g]=DM(!0),{selected:a}=oCA("component-tree"),{collapseMap:s,linkedList:C}=EI("component-tree");EI("inspector-state");const I=_(()=>{const j=[],oA=MA=>{MA.forEach(bA=>{bA.id===a.value&&j.push(bA),bA.children?.length&&oA(bA.children)})};return oA(A.value),j[0]}),l=_(()=>{const j=[],oA=(MA,bA=[])=>{MA.forEach(aA=>{j.push([...bA,aA.id]),aA.children?.length&&oA(aA.children,[...bA,aA.id])})};return oA(A.value),j}),u=_(()=>I.value?.file??"");function c(j,oA){return j.length?j.find(MA=>MA.id===oA)?!0:j.some(MA=>c(MA.children||[],oA)):!1}function h(j){j.length&&(a.value&&c(j,a.value)||(a.value=j?.[0].id,m(j?.[0].id)))}function d(j){return new Promise(oA=>{iK({inspectorId:"components",instanceId:j}).then(MA=>{oA(li(MA))})})}function B(j){return{[j[0].id]:!0,...j?.[0].children?.reduce((oA,MA)=>(oA[MA.id]=!0,oA),{})}}function f(j){return new Promise(oA=>{jI({inspectorId:"components",filter:j}).then(MA=>{const bA=!Object.keys(s.value).length,aA=li(MA);A.value=aA,bA&&(s.value=B(aA)),h(aA),oA()})})}const E=H(!1);async function v(j,oA){E.value&&await wgA(E).toBe(!1),E.value=!0,d(j).then(MA=>{gK({id:j,visible:oA,bounds:MA}),E.value=!1})}function p(j){aK({id:j})}function D(){t.value.emit("toggle-panel",!1),oK().then(j=>{const oA=JSON.parse(j);a.value=oA.id,F(oA.id);const MA=C.value[oA.id];MA?MA.forEach(bA=>{s.value[bA]=!0}):l.value.forEach(bA=>{let aA=bA.indexOf(oA.id);for(;aA>=0;)s.value[bA[aA]]=!0,aA--})}).finally(()=>{t.value.emit("toggle-panel",!0)})}function F(j){R(),m(j),r.value=j}Ae(a,j=>{sK(j)});const S=H({});function N(j){if(!j||!j?.state)return{};const oA={};return j.state.forEach(MA=>{oA[MA.type]||(oA[MA.type]=[]),oA[MA.type].push(MA)}),oA}function m(j){zc({inspectorId:"components",nodeId:j}).then(oA=>{S.value=N(li(oA))})}function R(){S.value={}}Ei(()=>{f().then(()=>{i.value=!0}),VI(j=>{!j?.data.length||j.inspectorId!==JF||(A.value=j.data,s.value={...B(j.data),...s.value},h(j.data))}),Wc(j=>{j.inspectorId===JF&&(S.value=N({state:j.state}))})});const k=H("");yM(k,j=>{const oA=j.trim().toLowerCase();g(),f(oA).then(()=>{g()})},{debounce:300});const O=Yn(),Z=H(),hA=H(!1),{width:eA}=GgA(Z),X=_(()=>hA.value?eA.value<700:!1);return(j,oA)=>{const MA=ICA,bA=eh,aA=Qi;return M(),tA(aA,{"h-screen":""},{default:U(()=>[T(Q(el),{ref_key:"splitpanesRef",ref:Z,horizontal:Q(X),onReady:oA[3]||(oA[3]=FA=>hA.value=!0)},{default:U(()=>[T(Q(Qn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",lCA,[Q(i)?(M(),tA(Q(bo),{key:0,modelValue:Q(k),"onUpdate:modelValue":oA[0]||(oA[0]=FA=>JA(k)?k.value=FA:null),"loading-debounce-time":250,loading:!Q(o),placeholder:"Find components...","flex-1":""},null,8,["modelValue","loading"])):wA("",!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"},cCA))])):wA("",!0)]),y("div",hCA,[(M(!0),x(DA,null,Be(Q(A),FA=>(M(),tA(MA,{key:FA.id,data:FA,onSelect:F,onMouseenter:v,onMouseleave:v},null,8,["data"]))),128))])]),_:1}),T(Q(Qn),{flex:"","flex-col":""},{default:U(()=>[y("div",dCA,[Q(I)?.name?(M(),x("span",BCA,mA(Q(I).name),1)):wA("",!0),y("div",fCA,[vt(T(Q(De),{title:"Scroll to Component",icon:"i-iconoir:mouse-scroll-wheel",action:"","flex-none":"",border:!1,onClick:oA[1]||(oA[1]=FA=>p(Q(a)))},null,512),[[Q(En),"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:oA[2]||(oA[2]=FA=>Q(UQ)(Q(u)))},null,512)),[[Q(En),"Open in Editor"]]):wA("",!0)])]),ECA,(M(),x("div",{key:Q(a),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(DA,null,Be(Q(S),(FA,UA)=>(M(),tA(bA,{id:UA,key:UA,"node-id":Q(r),data:FA,name:`${UA}`,"inspector-id":"components"},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1},8,["horizontal"])]),_:1})}}}),vCA="7.0.27",pCA={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},wCA=y("div",{"flex-auto":""},null,-1),DCA={flex:"~ col","mt-20":"","items-center":""},yCA={flex:"~","mt--10":"","items-center":"","justify-center":""},mCA={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},bCA=y("span",{op40:""}," Vue DevTools ",-1),MCA={op40:""},kCA={flex:"~ gap2 wrap"},SCA={p4:"","theme-card-green":"",flex:"~ col auto"},NCA=y("div",{"i-logos-vue":"","text-3xl":""},null,-1),PCA=y("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),FCA=y("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),RCA={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},LCA=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":""}),RA(" Star on GitHub ")],-1),$CA=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":""}),RA(" Ideas & Suggestions ")],-1),OCA=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":""}),RA(" Project Roadmap ")],-1),GCA=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":""}),RA(" Bug Reports ")],-1),xCA=y("div",{"i-carbon-settings":""},null,-1),TCA=y("div",{"flex-auto":""},null,-1),HCA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},UCA=y("span",null,"+",-1),KCA=y("span",null,"+",-1),_CA={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},YCA=y("span",null,"+",-1),JCA=y("span",null,"+",-1),zCA=y("span",null,"+",-1),WCA=y("span",null,"+",-1),qCA=yA({__name:"overview",setup(e){const{vueVersion:t}=Yn(),A=H(1),r=H(0);function n(i){let o=0;for(const g of i)o++,g.children?.length&&(o+=n(g.children));return o}return Ei(()=>{IM().then(i=>{const o=JSON.parse(i);A.value=o?.routes?.length||1}),lM(i=>{A.value=i?.routes?.length||1}),jI({inspectorId:"components",filter:""}).then(i=>{const o=li(i);r.value=n(o)}),VI(i=>{!i?.data?.length||i.inspectorId!=="components"||(r.value=n(i.data))})}),(i,o)=>{const g=MM,a=vn("RouterLink"),s=Qi;return M(),tA(s,{"h-screen":"","w-full":"",flex:"","of-auto":""},{default:U(()=>[y("div",pCA,[wCA,y("div",DCA,[y("div",yCA,[T(g,{"h-18":""})]),y("div",mCA,[bCA,y("code",MCA,"v"+mA(Q(vCA)),1)])]),y("div",kCA,[y("div",SCA,[NCA,y("code",null,"v"+mA(Q(t)),1)]),T(a,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:U(()=>[PCA,y("div",null,mA(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(()=>[FCA,y("div",null,mA(Q(r))+" components",1)]),_:1})):wA("",!0)]),y("div",RCA,[LCA,$CA,OCA,GCA,T(a,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:U(()=>[xCA,RA(" Settings ")]),_:1})]),TCA,y("div",HCA,[RA(" Press "),Q(wN)()?(M(),x(DA,{key:0},[T(Q(ie),null,{default:U(()=>[RA(" ⌘ Command ")]),_:1}),UCA,T(Q(ie),null,{default:U(()=>[RA(" K ")]),_:1})],64)):(M(),x(DA,{key:1},[T(Q(ie),null,{default:U(()=>[RA(" Alt ")]),_:1}),KCA,T(Q(ie),null,{default:U(()=>[RA(" K ")]),_:1})],64)),RA(" to toggle Command Palette ")]),y("div",_CA,[RA(" Press "),Q(wN)()?(M(),x(DA,{key:0},[T(Q(ie),null,{default:U(()=>[RA(" ⇧ Shift ")]),_:1}),YCA,T(Q(ie),null,{default:U(()=>[RA(" ⌥ Option ")]),_:1}),JCA,T(Q(ie),null,{default:U(()=>[RA(" D ")]),_:1})],64)):(M(),x(DA,{key:1},[T(Q(ie),null,{default:U(()=>[RA(" Shift ")]),_:1}),zCA,T(Q(ie),null,{default:U(()=>[RA(" Alt ")]),_:1}),WCA,T(Q(ie),null,{default:U(()=>[RA(" D ")]),_:1})],64)),RA(" to toggle DevTools ")])])]),_:1})}}});function jCA(){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 If;function B0(){B0.init||(B0.init=!0,If=jCA()!==-1)}var KQ={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){B0(),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",If&&this.$el.appendChild(e),e.data="about:blank",If||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&&(!If&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VCA=aU();EQ("data-v-b329ee4c");const ZCA={class:"resize-observer",tabindex:"-1"};QQ();const XCA=VCA((e,t,A,r,n,i)=>(M(),tA("div",ZCA)));KQ.render=XCA;KQ.__scopeId="data-v-b329ee4c";KQ.__file="src/components/ResizeObserver.vue";function lf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lf=function(t){return typeof t}:lf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(e)}function AIA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zF(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 eIA(e,t,A){return t&&zF(e.prototype,t),A&&zF(e,A),e}function WF(e){return tIA(e)||rIA(e)||nIA(e)||iIA()}function tIA(e){if(Array.isArray(e))return f0(e)}function rIA(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nIA(e,t){if(e){if(typeof e=="string")return f0(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 f0(e,t)}}function f0(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 iIA(){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 oIA(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function gIA(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(WF(i))),n=a,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[a].concat(WF(i))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function j_(e,t){if(e===t)return!0;if(lf(e)==="object"){for(var A in e)if(!j_(e[A],t[A]))return!1;return!0}return!1}var aIA=function(){function e(t,A,r){AIA(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(A,r)}return eIA(e,[{key:"createObserver",value:function(A,r){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=oIA(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=gIA(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 V_(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 aIA(e,r,A);e._vue_visibilityState=n}}function sIA(e,t,A){var r=t.value,n=t.oldValue;if(!j_(r,n)){var i=e._vue_visibilityState;if(!r){Z_(e);return}i?i.createObserver(r,A):V_(e,{value:r},A)}}function Z_(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var CIA={beforeMount:V_,updated:sIA,unmounted:Z_},IIA={itemsLimit:1e3},lIA=/(auto|scroll)/;function X_(e,t){return e.parentNode===null?t:X_(e.parentNode,t.concat([e]))}var zp=function(t,A){return getComputedStyle(t,null).getPropertyValue(A)},uIA=function(t){return zp(t,"overflow")+zp(t,"overflow-y")+zp(t,"overflow-x")},cIA=function(t){return lIA.test(uIA(t))};function qF(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=X_(e.parentNode,[]),A=0;A<t.length;A+=1)if(cIA(t[A]))return t[A];return document.scrollingElement||document.documentElement}}function E0(e){"@babel/helpers - typeof";return E0=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},E0(e)}var hIA={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 dIA(){return this.items.length&&E0(this.items[0])!=="object"}var Q0=!1;if(typeof window<"u"){Q0=!1;try{var BIA=Object.defineProperty({},"passive",{get:function(){Q0=!0}});window.addEventListener("test",null,BIA)}catch{}}let fIA=0;var _Q={name:"RecycleScroller",components:{ResizeObserver:KQ},directives:{ObserveVisibility:CIA},props:{...hIA,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:dIA,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=W1({id:fIA++,index:t,used:!0,key:r,type:n}),o=J1({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,Z=0,hA=s-1,eA=~~(s/2),X;do X=eA,O=C[eA].accumulator,O<m.start?Z=eA:eA<s-1&&C[eA+1].accumulator>m.start&&(hA=eA),eA=~~((Z+hA)/2);while(eA!==X);for(eA<0&&(eA=0),h=eA,B=C[s-1].accumulator,d=eA;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>IIA.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,S,N;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}S=F[o];let k=l.get(S),O=!1;if(!v)p?k&&k.length?v=k.pop():v=this.addView(u,m,F,R,S):(N=D.get(S)||0,(!k||N>=k.length)&&(v=this.addView(u,m,F,R,S),this.unuseView(v,!0),k=l.get(S)),v=k[N],D.set(S,N+1)),I.delete(v.nr.key),v.nr.used=!0,v.nr.index=m,v.nr.key=R,v.nr.type=S,I.set(R,v),O=!0;else if(!v.nr.used&&(v.nr.used=!0,O=!0,k)){const Z=k.indexOf(v);Z!==-1&&k.splice(Z,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=qF(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,Q0?{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=qF(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 EIA={key:0,ref:"before",class:"vue-recycle-scroller__slot"},QIA={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function vIA(e,t,A,r,n,i){const o=vn("ResizeObserver"),g=vQ("observe-visibility");return vt((M(),x("div",{class:SA(["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",EIA,[ZA(e.$slots,"before")],512)):wA("v-if",!0),(M(),tA(Kg(A.listTag),{ref:"wrapper",style:Qt({[e.direction==="vertical"?"minHeight":"minWidth"]:n.totalSize+"px"}),class:SA(["vue-recycle-scroller__item-wrapper",A.listClass])},{default:U(()=>[(M(!0),x(DA,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}]]},ZX(A.skipHover?{}:{mouseenter:()=>{n.hoverKey=a.nr.key},mouseleave:()=>{n.hoverKey=null}})),{default:U(()=>[ZA(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),ZA(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(M(),x("div",QIA,[ZA(e.$slots,"after")],512)):wA("v-if",!0),T(o,{onNotify:i.handleResize},null,8,["onNotify"])],34)),[[g,i.handleVisibilityChange]])}_Q.render=vIA;_Q.__file="src/components/RecycleScroller.vue";const pIA=["onClick"],wIA={class:"selectable-item-label"},FM=yA({__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=q_;return M(),tA(Q(_Q),{items:n.data,"min-item-size":32,"key-field":"id","page-mode":""},{default:U(({item:g})=>[y("div",{class:SA(["selectable-item",{active:n.modelValue===g.id}]),onClick:a=>r(g.id)},[y("span",wIA,mA(g.label),1),(M(!0),x(DA,null,Be(g.tags,(a,s)=>(M(),tA(o,{key:s,tag:a},null,8,["tag"]))),128))],10,pIA)]),_:1},8,["items"])}}}),DIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},zl="pinia",yIA=yA({__name:"pinia",setup(e){const t=H(""),A=H([]),r=H({});function n(o){zc({inspectorId:zl,nodeId:o}).then(g=>{r.value=li(g)})}function i(){r.value={}}return Ae(t,()=>{i(),n(t.value)}),EI("inspector-state"),Ei(()=>{jI({inspectorId:zl,filter:""}).then(o=>{const g=li(o);A.value=g,!t.value&&g.length&&(t.value=g[0].id,n(g[0].id))}),VI(o=>{!o?.data.length||o.inspectorId!==zl||(A.value=o.data,!t.value&&o.data.length&&(t.value=o.data[0].id,n(o.data[0].id)))}),Wc(o=>{!o||!o?.state?.length||o.inspectorId!==zl||(r.value={state:o.state,getters:o.getters})})}),(o,g)=>{const a=FM,s=eh,C=Qi;return M(),tA(C,{"h-screen":""},{default:U(()=>[T(Q(el),null,{default:U(()=>[T(Q(Qn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",DIA,[T(a,{modelValue:Q(t),"onUpdate:modelValue":g[0]||(g[0]=I=>JA(t)?t.value=I:null),data:Q(A)},null,8,["modelValue","data"])])]),_:1}),T(Q(Qn),{flex:"","flex-col":""},{default:U(()=>[(M(),x("div",{key:Q(t),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(DA,null,Be(Q(r),(I,l)=>(M(),tA(s,{id:l,key:l,"inspector-id":zl,"node-id":Q(t),data:I,name:`${l}`},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),mIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},bIA=yA({__name:"router",setup(e){const t=H(""),A=H([]),r=H({}),n=Yn(),i=_(()=>`router-inspector:${n.appRecords.value.find(s=>s.id===n.activeAppRecordId.value)?.routerId??0}`);EI("inspector-state");function o(a){zc({inspectorId:i.value,nodeId:a}).then(s=>{r.value=li(s)})}function g(){r.value={}}return Ae(t,()=>{g(),o(t.value)}),Ei(()=>{jI({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))}),VI(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)))}),Wc(a=>{!a||!a.state||a.inspectorId!==i.value||(r.value={state:a.state})})}),(a,s)=>{const C=FM,I=eh,l=Qi;return M(),tA(l,{"h-screen":""},{default:U(()=>[T(Q(el),null,{default:U(()=>[T(Q(Qn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",mIA,[T(C,{modelValue:Q(t),"onUpdate:modelValue":s[0]||(s[0]=u=>JA(t)?t.value=u:null),data:Q(A)},null,8,["modelValue","data"])])]),_:1}),T(Q(Qn),{flex:"","flex-col":""},{default:U(()=>[(M(),x("div",{key:Q(t),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(DA,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"},Td="vue-i18n-resource-inspector",kIA=yA({__name:"i18n",setup(e){const t=H(""),A=H([]),r=H({});function n(o){zc({inspectorId:Td,nodeId:o}).then(g=>{r.value=li(g)})}function i(){r.value={}}return Ae(t,()=>{i(),n(t.value)}),EI("inspector-state"),Ei(()=>{jI({inspectorId:Td,filter:""}).then(o=>{const g=li(o);A.value=g,!t.value&&g.length&&(t.value=g[0].id,n(g[0].id))}),VI(o=>{o?.data.length&&(A.value=o.data,!t.value&&o.data.length&&(t.value=o.data[0].id,n(o.data[0].id)))}),Wc(o=>{!o||!o?.state?.length||o.inspectorId!==Td||(r.value={state:o.state})})}),Ns(()=>{CK()}),(o,g)=>{const a=FM,s=eh,C=Qi;return M(),tA(C,{"h-screen":""},{default:U(()=>[T(Q(el),null,{default:U(()=>[T(Q(Qn),{flex:"","flex-col":"",border:"r base"},{default:U(()=>[y("div",MIA,[T(a,{modelValue:Q(t),"onUpdate:modelValue":g[0]||(g[0]=I=>JA(t)?t.value=I:null),data:Q(A)},null,8,["modelValue","data"])])]),_:1}),T(Q(Qn),{flex:"","flex-col":""},{default:U(()=>[(M(),x("div",{key:Q(t),"h-0":"",grow:"","overflow-auto":"","p-2":"",class:"no-scrollbar"},[(M(!0),x(DA,null,Be(Q(r),(I,l)=>(M(),tA(s,{id:l,key:l,"inspector-id":Td,"node-id":Q(t),data:I,name:`${l}`},null,8,["id","node-id","data","name"]))),128))]))]),_:1})]),_:1})]),_:1})}}}),SIA={class:"h-full flex flex-col items-center justify-center p-12 text-center text-gray-400 space-y-6 dark:text-gray-600"},NIA=yA({__name:"EmptyPane",props:{icon:{},inline:{type:Boolean}},setup(e){const t=e;return(A,r)=>(M(),x("div",SIA,[T(Q(De),xc(WI(t)),null,16),y("div",null,[ZA(A.$slots,"default")])]))}}),PIA=["onClick"],FIA={class:"flex-1 truncate font-mono space-x-1"},RIA=["innerHTML"],LIA={key:0,class:"flex-none text-xs font-mono op-50"},$IA=yA({__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(_Q),{items:n.data,"min-item-size":42,"key-field":"id","page-mode":""},{default:U(({item:o})=>[y("li",{class:SA(["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",FIA,[y("span",{class:SA(["font-medium",{"text-purple-600 dark:text-purple-400":n.modelValue!==o.id}])},[y("span",null,mA(o.title||"Event"),1)],2),o.subtitle?(M(),x("span",{key:0,class:"op-75",innerHTML:o.subtitle},null,8,RIA)):wA("",!0)]),o.time?(M(),x("span",LIA,mA(Q(iCA)(o.time)),1)):wA("",!0)],10,PIA)]),_:1},8,["items"]))}}),OIA={"overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},GIA=yA({__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=_(()=>`#${d0(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",OIA,mA(o.data.label),1)],4))}}),xIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},TIA={"h-screen":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},HIA={"h-screen":"","select-none":"","overflow-scroll":"","p-2":"",class:"no-scrollbar"},UIA=yA({__name:"timeline",setup(e){const t=H([]),A=H({}),r=H(""),n=H("");EI("inspector-state");const i=_(()=>A.value[r.value]?.map((I,l)=>({...I,id:`${l}`}))??[]),o=_(()=>i.value?.[+(n.value??0)]?.data??{}),g=_(()=>{const I=[];for(const l in o.value)I.push({key:l,type:l,editable:!1,value:o.value[l]});return I}),a=_(()=>{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=_(()=>({"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}`!==Jc||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(()=>{uK().then(I=>{t.value=I,t.value.forEach(l=>{A.value[l.id]=[],l.groups={}}),r.value||(r.value=I?.length?I[0].id:"")}),DK(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=GIA,c=$IA,h=NIA,d=eh,B=Qi;return Q(t).length?(M(),tA(B,{key:0},{default:U(()=>[T(Q(el),null,{default:U(()=>[T(Q(Qn),{border:"r base",size:"20"},{default:U(()=>[y("div",xIA,[(M(!0),x(DA,null,Be(Q(t),f=>(M(),tA(u,{key:f.id,modelValue:Q(r),"onUpdate:modelValue":l[0]||(l[0]=E=>JA(r)?r.value=E:null),data:f},null,8,["modelValue","data"]))),128))])]),_:1}),T(Q(Qn),{border:"r base",size:"45"},{default:U(()=>[y("div",TIA,[Q(i).length?(M(),tA(c,{key:0,modelValue:Q(n),"onUpdate:modelValue":l[1]||(l[1]=f=>JA(n)?n.value=f:null),data:Q(i)},null,8,["modelValue","data"])):(M(),tA(h,{key:1,icon:"i-ic-baseline-inbox"},{default:U(()=>[RA(" No events ")]),_:1}))])]),_:1}),T(Q(Qn),{size:"35"},{default:U(()=>[y("div",HIA,[Q(n)?(M(!0),x(DA,{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(()=>[RA(" Select an event to display details ")]),_:1}))])]),_:1})]),_:1})]),_:1})):(M(),tA(h,{key:1,icon:"i-ic-baseline-inbox"},{default:U(()=>[RA(" No layers ")]),_:1}))}}}),KIA={flex:"~ gap-3","items-center":""},RM=yA({__name:"IconTitle",props:{icon:{},text:{}},setup(e){return(t,A)=>(M(),x("div",KIA,[t.icon?(M(),x("div",{key:0,class:SA(t.icon)},null,2)):wA("",!0),ZA(t.$slots,"default",{},()=>[y("div",null,mA(t.text),1)])]))}}),AY=e=>(EQ("data-v-d09fbc98"),e=e(),QQ(),e),_IA=["open"],YIA={"text-base":""},JIA={key:0,"text-sm":"",op50:""},zIA=AY(()=>y("div",{class:"flex-auto"},null,-1)),WIA=AY(()=>y("div",{class:"x-divider"},null,-1)),qIA=yA({__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=HQ(e,"open",void 0,{passive:!0});function r(n){A.value=n.target.open}return(n,i)=>{const o=RM,g=vQ("lazy-show");return M(),x(DA,null,[y("details",{open:Q(A),onToggle:r},[y("summary",{class:SA(["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:SA(Q(A)?"op100":"op60")},{default:U(()=>[y("div",null,[y("div",YIA,[ZA(n.$slots,"text",{},()=>[RA(mA(n.text),1)],!0)]),n.description||n.$slots.description?(M(),x("div",JIA,[ZA(n.$slots,"description",{},()=>[RA(mA(n.description),1)],!0)])):wA("",!0)]),zIA,ZA(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":""})):wA("",!0)]),_:3},8,["icon","text","class"])],2),vt((M(),x("div",{class:SA(["flex flex-col flex-gap2 pb6 pt2",typeof n.padding=="string"?n.padding:n.padding?"px4":""])},[ZA(n.$slots,"details",{},void 0,!0),y("div",{class:SA([n.containerClass,"mt1"])},[ZA(n.$slots,"default",{},void 0,!0)],2),ZA(n.$slots,"footer",{},void 0,!0)],2)),[[g,Q(A)]])],40,_IA),WIA],64)}}}),eY=Zc(qIA,[["__scopeId","data-v-d09fbc98"]]),jIA={block:"","cursor-pointer":""},VIA={p2:""},ZIA=["onSubmit"],XIA=y("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),AlA={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},elA={key:1},tlA=yA({__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=H([]),o=_(()=>n(A.route.path));Er(()=>{i.value=Array.from({length:o.value.length},()=>"")});const g=_(()=>o.value.map((C,I)=>C[0]===":"?i.value[I]:C).join("").replace(/\/+/g,"/")),a=_(()=>A.route.path.includes(":"));function s(){r("navigate",g.value)}return(C,I)=>Q(a)?(M(),tA(Q(fI),{key:1},{popper:U(({hide:l})=>[y("div",VIA,[y("form",{flex:"~ col",onSubmit:fr(()=>{s(),l()},["prevent"])},[Q(a)?(M(),x(DA,{key:0},[XIA,y("div",AlA,[(M(!0),x(DA,null,Be(Q(o),(u,c)=>(M(),x(DA,{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",elA,mA(u),1))],64))),128))])],64)):wA("",!0),T(Q(ie),{block:"",type:"primary"},{default:U(()=>[RA(" Navigate ")]),_:1})],40,ZIA)])]),default:U(()=>[y("code",jIA,[(M(!0),x(DA,null,Be(Q(o),(l,u)=>(M(),x("span",{key:u,class:SA(l[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},mA(l[0]===":"?l.slice(1):l),3))),128))])]),_:1})):(M(),x("button",{key:0,onClick:s},[y("code",null,mA(C.route.path),1)]))}}),rlA={"w-full":""},nlA=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),ilA={"w-20":"","pr-1":""},olA={flex:"","items-center":"","justify-end":""},glA={"text-sm":""},alA={flex:"inline gap3","items-center":""},slA={op0:"","group-hover:op100":"",flex:"~ gap1"},ClA=["onClick"],IlA=y("div",{"i-carbon-script-reference":""},null,-1),llA=[IlA],ulA={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},clA=yA({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate"],setup(e){const t=e,A=_(()=>[...t.pages].sort((i,o)=>i.path.localeCompare(o.path))),r=_(()=>Ah.value),n=Yn();return(i,o)=>{const g=tlA;return M(),x("div",null,[y("table",rlA,[nlA,y("tbody",null,[(M(!0),x(DA,null,Be(Q(A),a=>(M(),x("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[y("td",ilA,[y("div",olA,[i.matched.find(s=>s.name===a.name)?(M(),tA(Q(wF),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):i.matchedPending.find(s=>s.name===a.name)?(M(),tA(Q(wF),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):wA("",!0)])]),y("td",glA,[y("div",alA,[T(g,{route:a,class:SA(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",slA,[(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(UQ)(a.file||a.meta?.file)},llA,8,ClA)):wA("",!0)])])]),y("td",ulA,mA(a.name),1)]))),128))])])])}}}),hlA={"h-full":"","of-auto":""},dlA={border:"b base",flex:"~ col gap1",px4:"",py3:""};const BlA={key:1,op50:""},flA=y("span",null,[RA("Press "),y("b",{"font-bold":""},"Enter"),RA(" to navigate")],-1),ElA={key:0,"text-orange":"",op75:""},QlA={key:1,op50:""},vlA=yA({__name:"pages",setup(e){const t=H(""),A=H(null),r=H([]),n=_(()=>t.value===A.value?.path?[]:r.value),i=H([]);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){IK({path:s})}return Ei(()=>{IM().then(s=>{o(JSON.parse(s))}),lM(s=>{o(s)})}),yM(t,()=>{t.value!==A.value?.path&&lK(t.value).then(s=>{r.value=JSON.parse(s)})}),(s,C)=>{const I=clA,l=eY,u=Qi;return M(),tA(u,{block:"","h-screen":"","of-auto":""},{default:U(()=>[y("div",hlA,[y("div",dlA,[y("div",null,[(M(),x("span",BlA,"Current route"))]),T(Q(bo),{modelValue:Q(t),"onUpdate:modelValue":C[0]||(C[0]=c=>JA(t)?t.value=c:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:SA(Q(A)?.path===Q(t)?"":Q(n).length?"text-green!":"text-orange!"),onKeydown:OU(g,["enter"])},null,8,["modelValue","class"]),y("div",null,[Q(A)?.path!==Q(t)?(M(),x(DA,{key:0},[flA,Q(n).length?wA("",!0):(M(),x("span",ElA," (no match)"))],64)):(M(),x("span",QlA,"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"])):wA("",!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 QI;(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})(QI||(QI={}));function uE(e,t){const A=[],r=plA(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(jF(n)){const a=[];do a.push(n),n=r.next();while(jF(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 jF(e){return!!e&&!!e.match(/[\w\.:]+/)}function plA(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 tY(e){typeof e.dispose=="function"&&e.dispose()}function wlA(e){return LM(e)}function LM(e){return Array.isArray(e)?DlA(e):typeof e=="object"?ylA(e):e}function DlA(e){let t=[];for(let A=0,r=e.length;A<r;A++)t[A]=LM(e[A]);return t}function ylA(e){let t={};for(let A in e)t[A]=LM(e[A]);return t}function rY(e,...t){return t.forEach(A=>{for(let r in A)e[r]=A[r]}),e}function nY(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?nY(e.substring(0,e.length-1)):e.substr(~t+1)}let Wp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class Hd{static hasCaptures(t){return t===null?!1:(Wp.lastIndex=0,Wp.test(t))}static replaceCaptures(t,A,r){return t.replace(Wp,(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 iY(e,t){return e<t?-1:e>t?1:0}function oY(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=iY(e[n],t[n]);if(i!==0)return i}return 0}return A-r}function VF(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 gY(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class aY{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 ac{scopeName;constructor(t){this.scopeName=t}toKey(){return this.scopeName}}class mlA{scopeName;ruleName;constructor(t,A){this.scopeName=t,this.ruleName=A}toKey(){return`${this.scopeName}#${this.ruleName}`}}class blA{_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 ac(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const A=new blA;for(const r of t)klA(r,this.initialScopeName,this.repo,A);for(const r of A.references)if(r instanceof ac){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 klA(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 ac?uf({baseGrammar:i,selfGrammar:n},r):v0(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 ac(g))}function v0(e,t,A){if(t.repository&&t.repository[e]){const r=t.repository[e];cE([r],t,A)}}function uf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&cE(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&cE(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function cE(e,t,A){for(const r of e){if(A.visitedRule.has(r))continue;A.visitedRule.add(r);const n=r.repository?rY({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&cE(r.patterns,{...t,repository:n},A);const i=r.include;if(!i)continue;const o=sY(i);switch(o.kind){case 0:uf({...t,selfGrammar:t.baseGrammar},A);break;case 1:uf(t,A);break;case 2:v0(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?v0(o.ruleName,a,A):uf(a,A)}else o.kind===4?A.add(new mlA(o.scopeName,o.ruleName)):A.add(new ac(o.scopeName));break}}}class SlA{kind=0}class NlA{kind=1}class PlA{ruleName;kind=2;constructor(t){this.ruleName=t}}class FlA{scopeName;kind=3;constructor(t){this.scopeName=t}}class RlA{scopeName;ruleName;kind=4;constructor(t,A){this.scopeName=t,this.ruleName=A}}function sY(e){if(e==="$base")return new SlA;if(e==="$self")return new NlA;const t=e.indexOf("#");if(t===-1)return new FlA(e);if(t===0)return new PlA(e.substring(1));{const A=e.substring(0,t),r=e.substring(t+1);return new RlA(A,r)}}const LlA=/\\(\d+)/,ZF=/\\(\d+)/g,$lA=-1,CY=-2;class th{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,A,r,n){this.$location=t,this.id=A,this._name=r||null,this._nameIsCapturing=Hd.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Hd.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${nY(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:Hd.replaceCaptures(this._name,t,A)}getContentName(t,A){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Hd.replaceCaptures(this._contentName,t,A)}}class OlA extends th{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 GlA extends th{_match;captures;_cachedCompiledPatterns;constructor(t,A,r,n,i){super(t,A,r,null),this._match=new us(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 sc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class XF extends th{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 sc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class p0 extends th{_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 us(i,this.id),this.beginCaptures=o,this._end=new us(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 sc;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 hE extends th{_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 us(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new us(g,CY),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 sc;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 sc,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 OlA(A,o,r,n,i))}static getCompiledRuleId(t,A,r){return t.id||A.registerRule(n=>{if(t.id=n,t.match)return new GlA(t.$vscodeTextmateLocation,t.id,t.name,t.match,Jt._compileCaptures(t.captures,A,r));if(typeof t.begin>"u"){t.repository&&(r=rY({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new XF(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Jt._compilePatterns(i,A,r))}return t.while?new hE(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 p0(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=sY(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 XF||s instanceof p0||s instanceof hE)&&s.hasMissingPatterns&&s.patterns.length===0&&(C=!0),C)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}}class us{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=LlA.test(this.source)}clone(){return new us(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 ZF.lastIndex=0,this.source.replace(ZF,(n,i)=>gY(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 sc{_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 AR(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 AR(t,n,this._items.map(i=>i.ruleId))}}class AR{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 dE{_colorMap;_defaults;_root;static createFromRawTheme(t,A){return this.createFromParsedTheme(HlA(t),A)}static createFromParsedTheme(t,A){return KlA(t,A)}_cachedMatchRoot=new aY(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=>xlA(t.parent,i.parentScopes));return n?new IY(n.fontStyle,n.foreground,n.background):null}}class qa{parent;scopeName;static push(t,A){for(const r of A)t=new qa(t,r);return t}static from(...t){let A=null;for(let r=0;r<t.length;r++)A=new qa(A,t[r]);return A}constructor(t,A){this.parent=t,this.scopeName=A}push(t){return new qa(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 xlA(e,t){if(t===null)return!0;let A=0,r=t[A];for(;e;){if(TlA(e.scopeName,r)){if(A++,A===t.length)return!0;r=t[A]}e=e.parent}return!1}function TlA(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}class IY{fontStyle;foregroundId;backgroundId;constructor(t,A,r){this.fontStyle=t,this.foregroundId=A,this.backgroundId=r}}function HlA(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"&&VF(o.settings.foreground)&&(s=o.settings.foreground);let C=null;typeof o.settings.background=="string"&&VF(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 UlA(h,d,n,a,s,C)}}return A}class UlA{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 KlA(e,t){e.sort((a,s)=>{let C=iY(a.scope,s.scope);return C!==0||(C=oY(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 _lA(t),o=new IY(A,i.getId(r),i.getId(n)),g=new ku(new Cc(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 dE(i,o,g)}class _lA{_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 Cc{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 Cc(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 ku{_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 ku._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):ku._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 ku(this._mainRule.clone(),Cc.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(oY(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 Cc(t,A,r,n,i))}}class qp{languageId;tokenType;constructor(t,A){this.languageId=t,this.tokenType=A}}class BE{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,A){this._defaultAttributes=new qp(t,8),this._embeddedLanguagesMatcher=new YlA(Object.entries(A||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?BE._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new qp(0,0);_getBasicScopeAttributes=new aY(t=>{const A=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new qp(A,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const A=t.match(BE.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 YlA{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])=>gY(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 eR{stack;stoppedEarly;constructor(t,A){this.stack=t,this.stoppedEarly=A}}function lY(e,t,A,r,n,i,o,g){const a=t.content.length;let s=!1,C=-1;if(o){const u=JlA(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 eR(n,!0);l()}return new eR(n,!1);function l(){const u=zlA(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===$lA){const B=n.getRule(e);i.produce(n,c[0].start),n=n.withContentNameScopesList(n.nameScopesList),su(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 p0){const p=B;su(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 hE){const p=B;su(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(su(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 JlA(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 hE&&g.push({rule:s,stack:a})}for(let a=g.pop();a;a=g.pop()){const{ruleScanner:s,findOptions:C}=jlA(a.rule,e,a.stack.endRule,A,r===o),I=s.findNextMatchSync(t,r,C);if(I){if(I.ruleId!==CY){n=a.stack.pop();break}I.captureIndices&&I.captureIndices.length&&(i.produce(a.stack,I.captureIndices[0].start),su(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 zlA(e,t,A,r,n,i){const o=WlA(e,t,A,r,n,i),g=e.getInjections();if(g.length===0)return o;const a=qlA(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 WlA(e,t,A,r,n,i){const o=n.getRule(e),{ruleScanner:g,findOptions:a}=uY(o,e,n.endRule,A,r===i),s=g.findNextMatchSync(t,r,a);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}function qlA(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}=uY(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 uY(e,t,A,r,n){return{ruleScanner:e.compileAG(t,A,r,n),findOptions:0}}function jlA(e,t,A,r,n){return{ruleScanner:e.compileWhileAG(t,A,r,n),findOptions:0}}function su(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));lY(e,v,A&&u.start===0,u.start,E,n,!1,0),tY(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 VlA(d,u.end))}}for(;s.length>0;)n.produceFromScopes(s[s.length-1].scopes,s[s.length-1].endPos),s.pop()}class VlA{scopes;endPos;constructor(t,A){this.scopes=t,this.endPos=A}}function ZlA(e,t,A,r,n,i,o,g){return new AuA(e,t,A,r,n,i,o,g)}function tR(e,t,A,r,n){const i=uE(t,fE),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 fE(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(XlA(t[n],r))return A=n+1,!0;return!1})}function XlA(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 AuA{_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 BE(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=g,this._grammar=rR(A,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const s of Object.keys(i)){const C=uE(s,fE);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)tR(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&&tR(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]=rR(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=QI.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 tuA(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),s=lY(this,o,i,0,A,a,!0,n);return tY(o),{lineLength:g,lineTokens:a,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}}function rR(e,t){return e=wlA(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=qa.push(n,i.scopeNames),r=new wr(r,n,i.encodedTokenAttributes);return r}static createRoot(t,A){return new wr(null,new qa(null,t),A)}static createRootAndLookUpScopeName(t,A,r){const n=r.getMetadataForScope(t),i=new qa(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),QI.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 euA{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,A){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):uE(r,fE).map(n=>n.matcher)),this.unbalancedBracketScopes=A.flatMap(r=>uE(r,fE).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 tuA{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=QI.set(n,0,g.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=QI.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 ruA{_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,ZlA(t,o,A,r,n,i,this,await this._onigLibPromise))}return this._grammars.get(t)}}let nuA=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new ruA(dE.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,A){this._syncRegistry.setTheme(dE.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 euA(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 iuA=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 YQ(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 cY(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ouA(e){return e==="ansi"||cY(e)}function hY(e){return e==="none"}function guA(e){return hY(e)}function dY(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 auA(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 suA(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?auA(n,i):n})):e}function xa(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function BY(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 fY(e){return Object.entries(e).map(([t,A])=>`${t}:${A}`).join(";")}function CuA(e){const t=YQ(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 Ta=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jp={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function IuA(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 nR(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 luA(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)jp[n]&&t.push({type:"setDecoration",value:jp[n]});else if(n<=29){const i=jp[n-20];i&&t.push({type:"resetDecoration",value:i})}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ta[n-30]}});else if(n===38){const[i,o]=nR(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:Ta[n-40]}});else if(n===48){const[i,o]=nR(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:Ta[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ta[n-100+8]}})}return t}function uuA(){let e=null,t=null,A=new Set;return{parse(r){const n=[];let i=0;do{const o=IuA(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=luA(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 cuA={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 huA(e=cuA){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<Ta.length;s++)r.push(t(Ta[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 duA(e,t,A){const r={...e.colorReplacements,...A?.colorReplacements},n=YQ(t),i=huA(Object.fromEntries(Ta.map(g=>[g,e.colors?.[`terminal.ansi${g[0].toUpperCase()}${g.substring(1)}`]]))),o=uuA();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=xa(s,r),C=xa(C,r),a.decorations.has("dim")&&(s=BuA(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 BuA(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 $M(e,t,A={}){const{lang:r="text",theme:n=e.getLoadedThemes()[0]}=A;if(cY(r)||hY(n))return YQ(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:i,colorMap:o}=e.setTheme(n);if(r==="ansi")return duA(i,t,A);const g=e.getLanguage(r);return fuA(t,g,i,o,A)}function fuA(e,t,A,r,n){const i={...A.colorReplacements,...n?.colorReplacements},{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:g=500}=n,a=YQ(e);let s=iuA,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 S=E.tokens[2*p+1],N=xa(r[go.getForeground(S)],i),m=go.getFontStyle(S),R={content:c.substring(D,F),offset:h+D,color:N,fontStyle:m};if(n.includeExplanation){R.explanation=[];let k=0;for(;D+k<F;){const O=B[f],Z=c.substring(O.startIndex,O.endIndex);k+=Z.length,R.explanation.push({content:Z,scopes:EuA(A,O.scopes)}),f+=1}}C.push(R)}I.push(C),C=[],s=E.ruleStack}return I}function EuA(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:vuA(e,o,i)}}return A}function iR(e,t){const A=`${e}.`;return e===t||t.substring(0,A.length)===A}function QuA(e,t,A,r){if(!iR(e,A))return!1;let n=t.length-1,i=r.length-1;for(;n>=0&&i>=0;)iR(t[n],r[i])&&(n-=1),i-=1;return n===-1}function vuA(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);QuA(u,c,t,A)&&(r[n++]=g,s=C)}}return r}function EY(e,t,A){const r=Object.entries(A.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),n=puA(...r.map(o=>$M(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 puA(...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 EE(e,t,A){let r,n,i,o,g;if("themes"in A){const{defaultColor:a="light",cssVariablePrefix:s="--shiki-",colorReplacements:C}=A,I=Object.entries(A.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})).sort((h,d)=>h.color===a?-1:d.color===a?1:0);if(I.length===0)throw new Sr("`themes` option must not be empty");const l=EY(e,t,A);if(a&&!I.find(h=>h.color===a))throw new Sr(`\`themes\` option must contain the defaultColor key \`${a}\``);const u=I.map(h=>e.getTheme(h.theme)),c=I.map(h=>h.color);i=l.map(h=>h.map(d=>wuA(d,c,s,a))),n=I.map((h,d)=>(d===0&&a?"":`${s+h.color}:`)+(xa(u[d].fg,C)||"inherit")).join(";"),r=I.map((h,d)=>(d===0&&a?"":`${s+h.color}-bg:`)+(xa(u[d].bg,C)||"inherit")).join(";"),o=`shiki-themes ${u.map(h=>h.name).join(" ")}`,g=a?void 0:[n,r].join(";")}else if("theme"in A){const{colorReplacements:a}=A;i=$M(e,t,A);const s=e.getTheme(A.theme);r=xa(s.bg,a),n=xa(s.fg,a),o=s.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 wuA(e,t,A,r){const n={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(a=>BY(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?fY(g):Object.values(g).join(";"),n}function DuA(){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=CuA(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 suA(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&&dY(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 yuA=[DuA()];function QE(e){return[...e.transformers||[],...yuA]}function vE(e,t,A,r={meta:{},options:A,codeToHast:(n,i)=>vE(e,n,i),codeToTokens:(n,i)=>EE(e,n,i)}){let n=t;for(const l of QE(A))n=l.preprocess?.call(r,n,A)||n;let{tokens:i,fg:o,bg:g,themeName:a,rootStyle:s}=EE(e,n,A);const{mergeWhitespaces:C=!0}=A;C===!0?i=buA(i):C==="never"&&(i=MuA(i));const I={...r,get source(){return n}};for(const l of QE(A))i=l.tokens?.call(I,i)||i;return muA(i,{...A,fg:o,bg:g,themeName:a,rootStyle:s},I)}function muA(e,t,A){const r=QE(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:dY,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:`
|