@nuxtjs/sitemap 8.0.1 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devtools/200.html +1 -1
- package/dist/devtools/404.html +1 -1
- package/dist/devtools/_nuxt/{DLfyhkbV.js → AhMXwKse.js} +1 -1
- package/dist/devtools/_nuxt/{_hKGTbzI.js → BQRIT6w4.js} +1 -1
- package/dist/devtools/_nuxt/{BK43-3Xm.js → BeXXvinr.js} +1 -1
- package/dist/devtools/_nuxt/{DuYBAn1h.js → C1N6mIu9.js} +1 -1
- package/dist/devtools/_nuxt/{BFP26XjE.js → CDp4EnVZ.js} +1 -1
- package/dist/devtools/_nuxt/{Cq2IBCZt.js → COgZGVQl.js} +1 -1
- package/dist/devtools/_nuxt/{DRdBN13f.js → CQf_PESu.js} +1 -1
- package/dist/devtools/_nuxt/{jxhrXVY1.js → CVNnDxJ3.js} +1 -1
- package/dist/devtools/_nuxt/{Bl-ESRhh.js → CjkTYPBi.js} +1 -1
- package/dist/devtools/_nuxt/CmDrQj9k.js +3 -0
- package/dist/devtools/_nuxt/{CdSSkj0j.js → D65PUFkv.js} +1 -1
- package/dist/devtools/_nuxt/{BUgp7PK5.js → DNIUhadS.js} +1 -1
- package/dist/devtools/_nuxt/DevtoolsEmptyState.FN7tqZ7J.css +1 -0
- package/dist/devtools/_nuxt/DevtoolsSection.DneElwcg.css +1 -0
- package/dist/devtools/_nuxt/{BgUkVPML.js → DlvAHnBI.js} +1 -1
- package/dist/devtools/_nuxt/{6-8YL5RT.js → DxyEqF84.js} +1 -1
- package/dist/devtools/_nuxt/LFs5A6TN.js +22 -0
- package/dist/devtools/_nuxt/Source.BD31fKZQ.css +1 -0
- package/dist/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/devtools/_nuxt/builds/meta/0df35358-ff80-43c3-ac91-6e44ec18e417.json +1 -0
- package/dist/devtools/_nuxt/entry.CGIOauXq.css +2 -0
- package/dist/devtools/_nuxt/error-404.Df0yGDyQ.css +1 -0
- package/dist/devtools/_nuxt/error-500.Bls3zmCr.css +1 -0
- package/dist/devtools/_nuxt/{DC83McAa.js → mN4JdVF_.js} +3 -3
- package/dist/devtools/_nuxt/pages.BJ7ReatF.css +1 -0
- package/dist/devtools/_nuxt/{BpntLhpu.js → rSnFkCKK.js} +1 -1
- package/dist/devtools/_nuxt/w3lMPfeh.js +1 -0
- package/dist/devtools/app-sources/index.html +1 -1
- package/dist/devtools/debug/index.html +1 -1
- package/dist/devtools/docs/index.html +1 -1
- package/dist/devtools/index.html +1 -1
- package/dist/devtools/user-sources/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +14 -0
- package/dist/runtime/types.d.ts +2 -2
- package/package.json +7 -7
- package/dist/devtools/_nuxt/BJ46vUgN.js +0 -22
- package/dist/devtools/_nuxt/Cfg7NvvP.js +0 -3
- package/dist/devtools/_nuxt/D56-uEuD.js +0 -1
- package/dist/devtools/_nuxt/DevtoolsEmptyState.CPam6VsX.css +0 -1
- package/dist/devtools/_nuxt/DevtoolsSection.BeqVO-za.css +0 -1
- package/dist/devtools/_nuxt/Source.ChvNXxeG.css +0 -1
- package/dist/devtools/_nuxt/builds/meta/faabf89a-40de-433d-ae87-9f9d117398e4.json +0 -1
- package/dist/devtools/_nuxt/entry.DuwzcCXL.css +0 -2
- package/dist/devtools/_nuxt/error-404.CbnweSUu.css +0 -1
- package/dist/devtools/_nuxt/error-500.DrNDBqZi.css +0 -1
- package/dist/devtools/_nuxt/pages.CV7xHNff.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{$ as e,A as t,At as n,B as r,C as i,Ct as a,Dt as o,E as s,Et as c,G as l,H as u,J as d,M as f,O as p,Ot as m,R as h,St as g,T as _,V as v,W as y,X as b,Y as x,Z as S,_ as C,_t as w,at as T,b as ee,bt as te,c as E,dt as ne,et as D,f as re,ft as O,g as k,gt as ie,j as A,jt as j,k as ae,kt as oe,l as se,lt as ce,m as M,mt as N,ot as le,p as ue,pt as P,q as de,rt as F,s as fe,st as pe,t as me,tt as he,v as ge,vt as _e,w as ve,wt as ye,x as be,xt as I,yt as xe,z as Se}from"./Cfg7NvvP.js";import{bt as Ce,gt as we,lt as Te,mt as Ee,rt as De,st as Oe}from"./BUgp7PK5.js";import{a as ke,d as Ae,o as je,t as Me,u as Ne}from"./CdSSkj0j.js";import{t as Pe}from"./Cq2IBCZt.js";var Fe=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function Ie(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new Fe(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var Le=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function Re(e=`GET`){return Le.has(e.toUpperCase())}function ze(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var Be=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),Ve=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function He(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return Ve.test(t)?`json`:t===`text/event-stream`?`stream`:Be.has(t)||t.startsWith(`text/`)?`text`:`blob`}function Ue(e,t,n,r){let i=We(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function We(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function Ge(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var Ke=new Set([408,409,425,429,500,502,503,504]),qe=new Set([101,204,205,304]);function Je(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:Re(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Ke.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=Ie(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:Ue(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await Ge(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=Ee(s.request,s.options.baseURL)),s.options.query&&(s.request=we(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&Re(s.options.method))if(ze(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`));let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await Ge(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!qe.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||He(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Ce;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await Ge(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Ge(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>Je({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var Ye=(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 Error(`unable to locate global object`)})(),Xe=Ye.fetch?(...e)=>Ye.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),Ze=Ye.Headers,Qe=Ye.AbortController,$e=Je({fetch:Xe,Headers:Ze,AbortController:Qe}),et=$e;function tt(e,t){let n=w();return D(()=>{n.value=e()},{...t,flush:t?.flush??`sync`}),P(n)}function nt(e,t){return pe()?(ne(e,t),!0):!1}function rt(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return nt(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}var it=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var at=e=>e!==void 0,ot=Object.prototype.toString,st=e=>ot.call(e)===`[object Object]`,ct=()=>{},lt=ut();function ut(){var e,t;return it&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function dt(...e){if(e.length!==1)return xe(...e);let t=e[0];return typeof t==`function`?P(T(()=>({get:t,set:ct}))):N(t)}function ft(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var pt=e=>e();function mt(e,t={}){let n,r,i=ct,a=e=>{clearTimeout(e),i(),i=ct},o;return s=>{let c=I(e),l=I(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function ht(e=pt,t={}){let{initialState:n=`active`}=t,r=dt(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:P(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function gt(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function _t(e){return Array.isArray(e)?e:[e]}function vt(e){return e||ve()}function yt(e){if(!it)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=le(!0),n=r.run(()=>e(...a))),nt(i),n))}function bt(e){return ce(e)?O(new Proxy({},{get(t,n,r){return a(Reflect.get(e.value,n,r))},set(t,n,r){return ce(e.value[n])&&!ce(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):O(e)}function xt(e){return bt(M(e))}function St(e,...t){let n=t.flat(),r=n[0];return xt(()=>Object.fromEntries(typeof r==`function`?Object.entries(te(e)).filter(([e,t])=>!r(I(t),e)):Object.entries(te(e)).filter(e=>!n.includes(e[0]))))}function Ct(e,...t){let n=t.flat(),r=n[0];return xt(()=>Object.fromEntries(typeof r==`function`?Object.entries(te(e)).filter(([e,t])=>r(I(t),e)):n.map(t=>[t,dt(e,t)])))}function wt(e,t=1e4){return T((n,r)=>{let i=I(e),a,o=()=>setTimeout(()=>{i=I(e),r()},I(t));return nt(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function Tt(e,t=200,n={}){return ft(mt(t,n),e)}function Et(t,n,r={}){let{eventFilter:i=pt,...a}=r;return e(t,ft(i,n),a)}function Dt(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=ht(r,{initialState:i});return{stop:Et(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ot(e,t=!0,n){vt(n)?h(e,n):t?e():f(e)}function kt(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=w(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},I(t))}return r&&(a.value=!0,it&&l()),nt(c),{isPending:ie(a),start:l,stop:c}}function At(e=1e3,t={}){let{controls:n=!1,callback:r}=t,i=kt(r??ct,e,t),a=M(()=>!i.isPending.value);return n?{ready:a,...i}:a}function jt(t,n,r){return e(t,n,{...r,immediate:!0})}var Mt=it?window:void 0;it&&window.document;var Nt=it?window.navigator:void 0;it&&window.location;function Pt(e){let t=I(e);return t?.$el??t}function Ft(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=M(()=>{let t=_t(I(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return jt(()=>[n.value?.map(e=>Pt(e))??[Mt].filter(e=>e!=null),_t(I(n.value?e[1]:e[0])),_t(a(n.value?e[2]:e[1])),I(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=st(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var It=!1;function Lt(e,t,n={}){let{window:r=Mt,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:ct,cancel:ct,trigger:ct}:ct;if(lt&&!It){It=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,ct,e)),r.document.documentElement.addEventListener(`click`,ct,e)}let c=!0,l=e=>I(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=Pt(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=I(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=I(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=Pt(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[Ft(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),Ft(r,`pointerdown`,t=>{let n=Pt(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&Ft(r,`blur`,n=>{setTimeout(()=>{let i=Pt(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),h=()=>m.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:h}function Rt(){let e=w(!1),t=ve();return t&&h(()=>{e.value=!0},t),e}function zt(e){let t=Rt();return M(()=>(t.value,!!e()))}function Bt(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vt(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=Mt,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Bt(t);return Ft(i,a,e=>{e.repeat&&I(s)||c(e)&&n(e)},o)}function Ht(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=Mt,once:a=!1}=t,o=w(!1),s=M(()=>{let e=I(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),nt(f),{isActive:P(o),pause:f,resume:d}}function Ut(e,t={}){let{controls:n=!1,navigator:r=Nt}=t,i=zt(()=>r&&`permissions`in r),a=w(),o=typeof e==`string`?{name:e}:e,s=w(),c=()=>{s.value=a.value?.state??`prompt`};Ft(a,`change`,c,{passive:!0});let l=gt(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return _e(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Wt(e={}){let{navigator:t=Nt,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=zt(()=>t&&`clipboard`in t),s=Ut(`clipboard-read`),c=Ut(`clipboard-write`),l=M(()=>o.value||a),u=w(``),d=w(!1),f=kt(()=>d.value=!1,i,{immediate:!1});async function p(){let e=!(o.value&&_(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=g())}l.value&&n&&Ft([`copy`,`cut`],p,{passive:!0});async function m(e=I(r)){if(l.value&&e!=null){let n=!(o.value&&_(c.value));if(!n)try{await t.clipboard.writeText(e)}catch{n=!0}n&&h(e),u.value=e,d.value=!0,f.start()}}function h(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function g(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function _(e){return e===`granted`||e===`prompt`}return{isSupported:l,text:P(u),copied:P(d),copy:m}}function Gt(e){return JSON.parse(JSON.stringify(e))}var Kt=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},qt=`__vueuse_ssr_handlers__`,Jt=Yt();function Yt(){return qt in Kt||(Kt[qt]=Kt[qt]||{}),Kt[qt]}function Xt(e,t){return Jt[e]||t}function Zt(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Qt={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$t=`vueuse-storage`;function en(t,n,r,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=Mt,eventFilter:p,onError:m=e=>{console.error(e)},initOnMounted:h}=i,g=(u?w:N)(typeof n==`function`?n():n),_=M(()=>I(t));if(!r)try{r=Xt(`getDefaultStorage`,()=>Mt?.localStorage)()}catch(e){m(e)}if(!r)return g;let v=I(n),y=Zt(v),b=i.serializer??Qt[y],{pause:x,resume:S}=Dt(g,e=>ee(e),{flush:a,deep:o,eventFilter:p});e(_,()=>E(),{flush:a});let C=!1;d&&s&&(r instanceof Storage?Ft(d,`storage`,e=>{h&&!C||E(e)},{passive:!0}):Ft(d,$t,e=>{h&&!C||ne(e)})),h?Ot(()=>{C=!0,E()}):E();function T(e,t){if(d){let n={key:_.value,oldValue:e,newValue:t,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent($t,{detail:n}))}}function ee(e){try{let t=r.getItem(_.value);if(e==null)T(t,null),r.removeItem(_.value);else{let n=b.write(e);t!==n&&(r.setItem(_.value,n),T(t,n))}}catch(e){m(e)}}function te(e){let t=e?e.newValue:r.getItem(_.value);if(t==null)return c&&v!=null&&r.setItem(_.value,b.write(v)),v;if(!e&&l){let e=b.read(t);return typeof l==`function`?l(e,v):y===`object`&&!Array.isArray(e)?{...v,...e}:e}else if(typeof t!=`string`)return t;else return b.read(t)}function E(e){if(!(e&&e.storageArea!==r)){if(e&&e.key==null){g.value=v;return}if(!(e&&e.key!==_.value)){x();try{let t=b.write(g.value);(e===void 0||e?.newValue!==t)&&(g.value=te(e))}catch(e){m(e)}finally{e?f(S):S()}}}}function ne(e){E(e.detail)}return g}function tn(e,t,n={}){let{window:r=Mt}=n;return en(e,t,r?.localStorage,n)}function nn(t,n,r,i={}){var a,o;let{clone:s=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:d,shouldEmit:p}=i,m=ve(),h=r||m?.emit||(m==null||(a=m.$emit)==null?void 0:a.bind(m))||(m==null||(o=m.proxy)==null||(o=o.$emit)==null?void 0:o.bind(m?.proxy)),g=l;n||=`modelValue`,g||=`update:${n.toString()}`;let _=e=>s?typeof s==`function`?s(e):Gt(e):e,v=()=>at(t[n])?_(t[n]):d,y=e=>{p?p(e)&&h(g,e):h(g,e)};if(c){let r=N(v()),i=!1;return e(()=>t[n],e=>{i||(i=!0,r.value=_(e),f(()=>i=!1))}),e(r,e=>{!i&&(e!==t[n]||u)&&y(e)},{deep:u}),r}else return M({get(){return v()},set(e){y(e)}})}var rn=N(Date.now()),an=window.location.host,on=N(`/`);N();var sn=N(`/`);M(()=>hn.value?pn.value:Ee(sn.value,`${window.location.protocol}//${an}`));var cn=Tt(()=>{rn.value=Date.now()},200);Tt(()=>{rn.value=Date.now()},1e3);var ln=tn(`nuxt-seo:preview-source`,`local`),un=N(``),dn=M(()=>{let e=un.value;return!e||!Te(e)?!1:!e.includes(`localhost`)&&!e.includes(`127.0.0.1`)}),fn=M(()=>ln.value===`production`&&dn.value),pn=tn(`nuxt-seo:standalone-url`,``),mn=N(!1),hn=M(()=>!mn.value&&!!pn.value),gn=`modulepreload`,_n=function(e,t){return new URL(e,t).href},vn={},yn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=_n(t,n),t in vn)return;vn[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:gn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function bn(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=p(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(u(r,e),e)]}function xn(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Sn(e){return e==null}function Cn(e){return e?e.flatMap(e=>e.type===se?Cn(e.children):[e]):[]}var[wn,Tn]=bn(`ConfigProvider`),En=i({inheritAttrs:!1,__name:`ConfigProvider`,props:{dir:{type:String,required:!1,default:`ltr`},locale:{type:String,required:!1,default:`en`},scrollBody:{type:[Boolean,Object],required:!1,default:!0},nonce:{type:String,required:!1,default:void 0},useId:{type:Function,required:!1,default:void 0}},setup(e){let t=e,{dir:n,locale:r,scrollBody:i,nonce:a}=te(t);return Tn({dir:n,locale:r,scrollBody:i,nonce:a,useId:t.useId}),(e,t)=>l(e.$slots,`default`)}});function Dn(e){let t=ve(),r=t?.type.emits,i={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(t=>{i[n(ye(t))]=(...n)=>e(t,...n)}),i}function On(){let e=ve(),t=N(),n=M(()=>i());r(()=>{n.value!==i()&&g(t)});function i(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Pt(t)}let a=Object.assign({},e.exposed),o={};for(let t in e.props)Object.defineProperty(o,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(a).length>0)for(let e in a)Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>a[e]});Object.defineProperty(o,`$el`,{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function s(n){if(t.value=n,n&&(Object.defineProperty(o,`$el`,{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.prototype.hasOwnProperty.call(n,`$el`))){let t=n.$.exposed,r=Object.assign({},o);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:s,currentRef:t,currentElement:n}}function kn(e){let t=ve(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=xe(e);return M(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[ye(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function An(e,t){let n=kn(e),r=t?Dn(t):{};return M(()=>({...n.value,...r}))}function jn(e,t){let n=wt(!1,300);nt(()=>{n.value=!1});let r=N(null),i=rt();function a(){r.value=null,n.value=!1}function o(e,t){let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=Nn(a,Mn(a,i.getBoundingClientRect()),1),s=Pn(t.getBoundingClientRect());r.value=In([...o,...s]),n.value=!0}return D(n=>{if(e.value&&t.value){let r=e=>o(e,t.value),i=t=>o(t,e.value);e.value.addEventListener(`pointerleave`,r),t.value.addEventListener(`pointerleave`,i),n(()=>{e.value?.removeEventListener(`pointerleave`,r),t.value?.removeEventListener(`pointerleave`,i)})}}),D(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof Element))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!Fn(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())};e.value?.ownerDocument.addEventListener(`pointermove`,o),n(()=>e.value?.ownerDocument.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function Mn(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Nn(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Pn(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Fn(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function In(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),Ln(t)}function Ln(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Rn=0;function zn(e,t=`reka`){if(e)return e;let n;return n=`useId`in me?x?.():wn({useId:void 0}).useId?.()??`${++Rn}`,t?`${t}-${n}`:n}function Bn(e){let t=N(),n=M(()=>t.value?.width??0),r=M(()=>t.value?.height??0);return h(()=>{let n=Pt(e);if(n){t.value={width:n.offsetWidth,height:n.offsetHeight};let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}});return e.observe(n,{box:`border-box`}),()=>e.unobserve(n)}else t.value=void 0}),{width:n,height:r}}function Vn(e,t){let n=N(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Hn(t,n){let r=N({}),i=N(`none`),a=N(t),o=t.value?`mounted`:`unmounted`,s,c=n.value?.ownerDocument.defaultView??Mt,{state:l,dispatch:u}=Vn(o,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),d=e=>{if(it){let t=new CustomEvent(e,{bubbles:!1,cancelable:!1});n.value?.dispatchEvent(t)}};e(t,async(e,t)=>{let a=t!==e;if(await f(),a){let a=i.value,o=Un(n.value);e?(u(`MOUNT`),d(`enter`),o===`none`&&d(`after-enter`)):o===`none`||o===`undefined`||r.value?.display===`none`?(u(`UNMOUNT`),d(`leave`),d(`after-leave`)):t&&a!==o?(u(`ANIMATION_OUT`),d(`leave`)):(u(`UNMOUNT`),d(`after-leave`))}},{immediate:!0});let p=e=>{let t=Un(n.value),r=t.includes(CSS.escape(e.animationName)),i=l.value===`mounted`?`enter`:`leave`;if(e.target===n.value&&r&&(d(`after-${i}`),u(`ANIMATION_END`),!a.value)){let e=n.value.style.animationFillMode;n.value.style.animationFillMode=`forwards`,s=c?.setTimeout(()=>{n.value?.style.animationFillMode===`forwards`&&(n.value.style.animationFillMode=e)})}e.target===n.value&&t===`none`&&u(`ANIMATION_END`)},m=e=>{e.target===n.value&&(i.value=Un(n.value))},h=e(n,(e,t)=>{e?(r.value=getComputedStyle(e),e.addEventListener(`animationstart`,m),e.addEventListener(`animationcancel`,p),e.addEventListener(`animationend`,p)):(u(`ANIMATION_END`),s!==void 0&&c?.clearTimeout(s),t?.removeEventListener(`animationstart`,m),t?.removeEventListener(`animationcancel`,p),t?.removeEventListener(`animationend`,p))},{immediate:!0}),g=e(l,()=>{let e=Un(n.value);i.value=l.value===`mounted`?e:`none`});return Se(()=>{h(),g()}),{isPresent:M(()=>[`mounted`,`unmountSuspended`].includes(l.value))}}function Un(e){return e&&getComputedStyle(e).animationName||`none`}var Wn=i({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=te(e),a=N(),{isPresent:o}=Hn(r,a);n({present:o});let c=t.default({present:o.value});c=Cn(c||[]);let l=ve();if(c&&c?.length>1){let e=l?.parent?.type.name?`<${l.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
1
|
+
import{$ as e,A as t,At as n,B as r,C as i,Ct as a,Dt as o,E as s,Et as c,G as l,H as u,J as d,M as f,O as p,Ot as m,R as h,St as g,T as _,V as v,W as y,X as b,Y as x,Z as S,_ as C,_t as w,at as T,b as ee,bt as te,c as E,dt as ne,et as D,f as re,ft as O,g as k,gt as ie,j as A,jt as j,k as ae,kt as oe,l as se,lt as ce,m as M,mt as N,ot as le,p as ue,pt as P,q as de,rt as F,s as fe,st as pe,t as me,tt as he,v as ge,vt as _e,w as ve,wt as ye,x as be,xt as I,yt as xe,z as Se}from"./CmDrQj9k.js";import{bt as Ce,gt as we,lt as Te,mt as Ee,rt as De,st as Oe}from"./DNIUhadS.js";import{a as ke,d as Ae,o as je,t as Me,u as Ne}from"./D65PUFkv.js";import{t as Pe}from"./COgZGVQl.js";var Fe=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function Ie(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new Fe(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var Le=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function Re(e=`GET`){return Le.has(e.toUpperCase())}function ze(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var Be=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),Ve=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function He(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return Ve.test(t)?`json`:t===`text/event-stream`?`stream`:Be.has(t)||t.startsWith(`text/`)?`text`:`blob`}function Ue(e,t,n,r){let i=We(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function We(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function Ge(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var Ke=new Set([408,409,425,429,500,502,503,504]),qe=new Set([101,204,205,304]);function Je(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:Re(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Ke.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=Ie(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:Ue(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await Ge(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=Ee(s.request,s.options.baseURL)),s.options.query&&(s.request=we(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&Re(s.options.method))if(ze(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`));let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await Ge(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!qe.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||He(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Ce;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await Ge(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Ge(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>Je({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var Ye=(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 Error(`unable to locate global object`)})(),Xe=Ye.fetch?(...e)=>Ye.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),Ze=Ye.Headers,Qe=Ye.AbortController,$e=Je({fetch:Xe,Headers:Ze,AbortController:Qe}),et=$e;function tt(e,t){let n=w();return D(()=>{n.value=e()},{...t,flush:t?.flush??`sync`}),P(n)}function nt(e,t){return pe()?(ne(e,t),!0):!1}function rt(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return nt(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}var it=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var at=e=>e!==void 0,ot=Object.prototype.toString,st=e=>ot.call(e)===`[object Object]`,ct=()=>{},lt=ut();function ut(){var e,t;return it&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function dt(...e){if(e.length!==1)return xe(...e);let t=e[0];return typeof t==`function`?P(T(()=>({get:t,set:ct}))):N(t)}function ft(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var pt=e=>e();function mt(e,t={}){let n,r,i=ct,a=e=>{clearTimeout(e),i(),i=ct},o;return s=>{let c=I(e),l=I(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function ht(e=pt,t={}){let{initialState:n=`active`}=t,r=dt(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:P(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function gt(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function _t(e){return Array.isArray(e)?e:[e]}function vt(e){return e||ve()}function yt(e){if(!it)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=le(!0),n=r.run(()=>e(...a))),nt(i),n))}function bt(e){return ce(e)?O(new Proxy({},{get(t,n,r){return a(Reflect.get(e.value,n,r))},set(t,n,r){return ce(e.value[n])&&!ce(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):O(e)}function xt(e){return bt(M(e))}function St(e,...t){let n=t.flat(),r=n[0];return xt(()=>Object.fromEntries(typeof r==`function`?Object.entries(te(e)).filter(([e,t])=>!r(I(t),e)):Object.entries(te(e)).filter(e=>!n.includes(e[0]))))}function Ct(e,...t){let n=t.flat(),r=n[0];return xt(()=>Object.fromEntries(typeof r==`function`?Object.entries(te(e)).filter(([e,t])=>r(I(t),e)):n.map(t=>[t,dt(e,t)])))}function wt(e,t=1e4){return T((n,r)=>{let i=I(e),a,o=()=>setTimeout(()=>{i=I(e),r()},I(t));return nt(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function Tt(e,t=200,n={}){return ft(mt(t,n),e)}function Et(t,n,r={}){let{eventFilter:i=pt,...a}=r;return e(t,ft(i,n),a)}function Dt(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=ht(r,{initialState:i});return{stop:Et(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ot(e,t=!0,n){vt(n)?h(e,n):t?e():f(e)}function kt(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=w(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},I(t))}return r&&(a.value=!0,it&&l()),nt(c),{isPending:ie(a),start:l,stop:c}}function At(e=1e3,t={}){let{controls:n=!1,callback:r}=t,i=kt(r??ct,e,t),a=M(()=>!i.isPending.value);return n?{ready:a,...i}:a}function jt(t,n,r){return e(t,n,{...r,immediate:!0})}var Mt=it?window:void 0;it&&window.document;var Nt=it?window.navigator:void 0;it&&window.location;function Pt(e){let t=I(e);return t?.$el??t}function Ft(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=M(()=>{let t=_t(I(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return jt(()=>[n.value?.map(e=>Pt(e))??[Mt].filter(e=>e!=null),_t(I(n.value?e[1]:e[0])),_t(a(n.value?e[2]:e[1])),I(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=st(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var It=!1;function Lt(e,t,n={}){let{window:r=Mt,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:ct,cancel:ct,trigger:ct}:ct;if(lt&&!It){It=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,ct,e)),r.document.documentElement.addEventListener(`click`,ct,e)}let c=!0,l=e=>I(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=Pt(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=I(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=I(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=Pt(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[Ft(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),Ft(r,`pointerdown`,t=>{let n=Pt(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&Ft(r,`blur`,n=>{setTimeout(()=>{let i=Pt(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),h=()=>m.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:h}function Rt(){let e=w(!1),t=ve();return t&&h(()=>{e.value=!0},t),e}function zt(e){let t=Rt();return M(()=>(t.value,!!e()))}function Bt(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vt(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=Mt,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Bt(t);return Ft(i,a,e=>{e.repeat&&I(s)||c(e)&&n(e)},o)}function Ht(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=Mt,once:a=!1}=t,o=w(!1),s=M(()=>{let e=I(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),nt(f),{isActive:P(o),pause:f,resume:d}}function Ut(e,t={}){let{controls:n=!1,navigator:r=Nt}=t,i=zt(()=>r&&`permissions`in r),a=w(),o=typeof e==`string`?{name:e}:e,s=w(),c=()=>{s.value=a.value?.state??`prompt`};Ft(a,`change`,c,{passive:!0});let l=gt(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return _e(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Wt(e={}){let{navigator:t=Nt,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=zt(()=>t&&`clipboard`in t),s=Ut(`clipboard-read`),c=Ut(`clipboard-write`),l=M(()=>o.value||a),u=w(``),d=w(!1),f=kt(()=>d.value=!1,i,{immediate:!1});async function p(){let e=!(o.value&&_(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=g())}l.value&&n&&Ft([`copy`,`cut`],p,{passive:!0});async function m(e=I(r)){if(l.value&&e!=null){let n=!(o.value&&_(c.value));if(!n)try{await t.clipboard.writeText(e)}catch{n=!0}n&&h(e),u.value=e,d.value=!0,f.start()}}function h(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function g(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function _(e){return e===`granted`||e===`prompt`}return{isSupported:l,text:P(u),copied:P(d),copy:m}}function Gt(e){return JSON.parse(JSON.stringify(e))}var Kt=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},qt=`__vueuse_ssr_handlers__`,Jt=Yt();function Yt(){return qt in Kt||(Kt[qt]=Kt[qt]||{}),Kt[qt]}function Xt(e,t){return Jt[e]||t}function Zt(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Qt={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$t=`vueuse-storage`;function en(t,n,r,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=Mt,eventFilter:p,onError:m=e=>{console.error(e)},initOnMounted:h}=i,g=(u?w:N)(typeof n==`function`?n():n),_=M(()=>I(t));if(!r)try{r=Xt(`getDefaultStorage`,()=>Mt?.localStorage)()}catch(e){m(e)}if(!r)return g;let v=I(n),y=Zt(v),b=i.serializer??Qt[y],{pause:x,resume:S}=Dt(g,e=>ee(e),{flush:a,deep:o,eventFilter:p});e(_,()=>E(),{flush:a});let C=!1;d&&s&&(r instanceof Storage?Ft(d,`storage`,e=>{h&&!C||E(e)},{passive:!0}):Ft(d,$t,e=>{h&&!C||ne(e)})),h?Ot(()=>{C=!0,E()}):E();function T(e,t){if(d){let n={key:_.value,oldValue:e,newValue:t,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent($t,{detail:n}))}}function ee(e){try{let t=r.getItem(_.value);if(e==null)T(t,null),r.removeItem(_.value);else{let n=b.write(e);t!==n&&(r.setItem(_.value,n),T(t,n))}}catch(e){m(e)}}function te(e){let t=e?e.newValue:r.getItem(_.value);if(t==null)return c&&v!=null&&r.setItem(_.value,b.write(v)),v;if(!e&&l){let e=b.read(t);return typeof l==`function`?l(e,v):y===`object`&&!Array.isArray(e)?{...v,...e}:e}else if(typeof t!=`string`)return t;else return b.read(t)}function E(e){if(!(e&&e.storageArea!==r)){if(e&&e.key==null){g.value=v;return}if(!(e&&e.key!==_.value)){x();try{let t=b.write(g.value);(e===void 0||e?.newValue!==t)&&(g.value=te(e))}catch(e){m(e)}finally{e?f(S):S()}}}}function ne(e){E(e.detail)}return g}function tn(e,t,n={}){let{window:r=Mt}=n;return en(e,t,r?.localStorage,n)}function nn(t,n,r,i={}){var a,o;let{clone:s=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:d,shouldEmit:p}=i,m=ve(),h=r||m?.emit||(m==null||(a=m.$emit)==null?void 0:a.bind(m))||(m==null||(o=m.proxy)==null||(o=o.$emit)==null?void 0:o.bind(m?.proxy)),g=l;n||=`modelValue`,g||=`update:${n.toString()}`;let _=e=>s?typeof s==`function`?s(e):Gt(e):e,v=()=>at(t[n])?_(t[n]):d,y=e=>{p?p(e)&&h(g,e):h(g,e)};if(c){let r=N(v()),i=!1;return e(()=>t[n],e=>{i||(i=!0,r.value=_(e),f(()=>i=!1))}),e(r,e=>{!i&&(e!==t[n]||u)&&y(e)},{deep:u}),r}else return M({get(){return v()},set(e){y(e)}})}var rn=N(Date.now()),an=window.location.host,on=N(`/`);N();var sn=N(`/`),cn=tn(`nuxt-seo:standalone-url`,``),ln=N(!1),un=M(()=>!ln.value&&!!cn.value);M(()=>un.value?cn.value:Ee(sn.value,`${window.location.protocol}//${an}`));var dn=Tt(()=>{rn.value=Date.now()},200);Tt(()=>{rn.value=Date.now()},1e3);var fn=tn(`nuxt-seo:preview-source`,`local`),pn=N(``),mn=M(()=>{let e=pn.value;return!e||!Te(e)?!1:!e.includes(`localhost`)&&!e.includes(`127.0.0.1`)}),hn=M(()=>fn.value===`production`&&mn.value),gn=`modulepreload`,_n=function(e,t){return new URL(e,t).href},vn={},yn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=_n(t,n),t in vn)return;vn[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:gn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function bn(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=p(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(u(r,e),e)]}function xn(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Sn(e){return e==null}function Cn(e){return e?e.flatMap(e=>e.type===se?Cn(e.children):[e]):[]}var[wn,Tn]=bn(`ConfigProvider`),En=i({inheritAttrs:!1,__name:`ConfigProvider`,props:{dir:{type:String,required:!1,default:`ltr`},locale:{type:String,required:!1,default:`en`},scrollBody:{type:[Boolean,Object],required:!1,default:!0},nonce:{type:String,required:!1,default:void 0},useId:{type:Function,required:!1,default:void 0}},setup(e){let t=e,{dir:n,locale:r,scrollBody:i,nonce:a}=te(t);return Tn({dir:n,locale:r,scrollBody:i,nonce:a,useId:t.useId}),(e,t)=>l(e.$slots,`default`)}});function Dn(e){let t=ve(),r=t?.type.emits,i={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(t=>{i[n(ye(t))]=(...n)=>e(t,...n)}),i}function On(){let e=ve(),t=N(),n=M(()=>i());r(()=>{n.value!==i()&&g(t)});function i(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Pt(t)}let a=Object.assign({},e.exposed),o={};for(let t in e.props)Object.defineProperty(o,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(a).length>0)for(let e in a)Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>a[e]});Object.defineProperty(o,`$el`,{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function s(n){if(t.value=n,n&&(Object.defineProperty(o,`$el`,{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.prototype.hasOwnProperty.call(n,`$el`))){let t=n.$.exposed,r=Object.assign({},o);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:s,currentRef:t,currentElement:n}}function kn(e){let t=ve(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=xe(e);return M(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[ye(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function An(e,t){let n=kn(e),r=t?Dn(t):{};return M(()=>({...n.value,...r}))}function jn(e,t){let n=wt(!1,300);nt(()=>{n.value=!1});let r=N(null),i=rt();function a(){r.value=null,n.value=!1}function o(e,t){let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=Nn(a,Mn(a,i.getBoundingClientRect()),1),s=Pn(t.getBoundingClientRect());r.value=In([...o,...s]),n.value=!0}return D(n=>{if(e.value&&t.value){let r=e=>o(e,t.value),i=t=>o(t,e.value);e.value.addEventListener(`pointerleave`,r),t.value.addEventListener(`pointerleave`,i),n(()=>{e.value?.removeEventListener(`pointerleave`,r),t.value?.removeEventListener(`pointerleave`,i)})}}),D(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof Element))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!Fn(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())};e.value?.ownerDocument.addEventListener(`pointermove`,o),n(()=>e.value?.ownerDocument.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function Mn(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Nn(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Pn(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Fn(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function In(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),Ln(t)}function Ln(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Rn=0;function zn(e,t=`reka`){if(e)return e;let n;return n=`useId`in me?x?.():wn({useId:void 0}).useId?.()??`${++Rn}`,t?`${t}-${n}`:n}function Bn(e){let t=N(),n=M(()=>t.value?.width??0),r=M(()=>t.value?.height??0);return h(()=>{let n=Pt(e);if(n){t.value={width:n.offsetWidth,height:n.offsetHeight};let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}});return e.observe(n,{box:`border-box`}),()=>e.unobserve(n)}else t.value=void 0}),{width:n,height:r}}function Vn(e,t){let n=N(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Hn(t,n){let r=N({}),i=N(`none`),a=N(t),o=t.value?`mounted`:`unmounted`,s,c=n.value?.ownerDocument.defaultView??Mt,{state:l,dispatch:u}=Vn(o,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),d=e=>{if(it){let t=new CustomEvent(e,{bubbles:!1,cancelable:!1});n.value?.dispatchEvent(t)}};e(t,async(e,t)=>{let a=t!==e;if(await f(),a){let a=i.value,o=Un(n.value);e?(u(`MOUNT`),d(`enter`),o===`none`&&d(`after-enter`)):o===`none`||o===`undefined`||r.value?.display===`none`?(u(`UNMOUNT`),d(`leave`),d(`after-leave`)):t&&a!==o?(u(`ANIMATION_OUT`),d(`leave`)):(u(`UNMOUNT`),d(`after-leave`))}},{immediate:!0});let p=e=>{let t=Un(n.value),r=t.includes(CSS.escape(e.animationName)),i=l.value===`mounted`?`enter`:`leave`;if(e.target===n.value&&r&&(d(`after-${i}`),u(`ANIMATION_END`),!a.value)){let e=n.value.style.animationFillMode;n.value.style.animationFillMode=`forwards`,s=c?.setTimeout(()=>{n.value?.style.animationFillMode===`forwards`&&(n.value.style.animationFillMode=e)})}e.target===n.value&&t===`none`&&u(`ANIMATION_END`)},m=e=>{e.target===n.value&&(i.value=Un(n.value))},h=e(n,(e,t)=>{e?(r.value=getComputedStyle(e),e.addEventListener(`animationstart`,m),e.addEventListener(`animationcancel`,p),e.addEventListener(`animationend`,p)):(u(`ANIMATION_END`),s!==void 0&&c?.clearTimeout(s),t?.removeEventListener(`animationstart`,m),t?.removeEventListener(`animationcancel`,p),t?.removeEventListener(`animationend`,p))},{immediate:!0}),g=e(l,()=>{let e=Un(n.value);i.value=l.value===`mounted`?e:`none`});return Se(()=>{h(),g()}),{isPresent:M(()=>[`mounted`,`unmountSuspended`].includes(l.value))}}function Un(e){return e&&getComputedStyle(e).animationName||`none`}var Wn=i({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=te(e),a=N(),{isPresent:o}=Hn(r,a);n({present:o});let c=t.default({present:o.value});c=Cn(c||[]);let l=ve();if(c&&c?.length>1){let e=l?.parent?.type.name?`<${l.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
2
2
|
`)].join(`
|
|
3
|
-
`))}return()=>i.value||r.value||o.value?s(t.default({present:o.value})[0],{ref:e=>{let t=Pt(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),Gn=i({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=Cn(n.default()),r=e.findIndex(e=>e.type!==E);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?A(t,i.props):t,o=ue({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Kn=[`area`,`img`,`input`],qn=i({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Kn.includes(r)?()=>s(r,t):r===`template`?()=>s(Gn,t,{default:n.default}):()=>s(e.as,t,{default:n.default})}}),Jn=`dismissableLayer.pointerDownOutside`,Yn=`dismissableLayer.focusOutside`;function Xn(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function Zn(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=N(!1),a=N(()=>{});return D(o=>{if(!it||!I(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(Xn(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){xn(Jn,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{I(n)&&(i.value=!0)}}}function Qn(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=N(!1);return D(a=>{if(!it||!I(n))return;let o=async n=>{if(!t?.value)return;await f(),await f();let r=n.target;!t.value||!r||Xn(t.value,r)||n.target&&!i.value&&xn(Yn,e,{originalEvent:n})};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{I(n)&&(i.value=!0)},onBlurCapture:()=>{I(n)&&(i.value=!1)}}}var $n=O({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),er=i({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:o}=On(),s=M(()=>o.value?.ownerDocument??globalThis.document),c=M(()=>$n.layersRoot),u=M(()=>o.value?Array.from(c.value).indexOf(o.value):-1),d=M(()=>$n.layersWithOutsidePointerEventsDisabled.size>0),p=M(()=>{let e=Array.from(c.value),[t]=[...$n.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return u.value>=n}),h=Zn(async e=>{let t=[...$n.branches].some(t=>t?.contains(e.target));!p.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await f(),e.defaultPrevented||r(`dismiss`))},o),g=Qn(e=>{[...$n.branches].some(t=>t?.contains(e.target))||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},o);return Vt(`Escape`,e=>{u.value===c.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))}),D(e=>{o.value&&(n.disableOutsidePointerEvents&&($n.layersWithOutsidePointerEventsDisabled.size===0&&($n.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents=`none`),$n.layersWithOutsidePointerEventsDisabled.add(o.value)),c.value.add(o.value),e(()=>{n.disableOutsidePointerEvents&&$n.layersWithOutsidePointerEventsDisabled.size===1&&!Sn($n.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=$n.originalBodyPointerEvents)}))}),D(e=>{e(()=>{o.value&&(c.value.delete(o.value),$n.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(e,t)=>(v(),k(a(qn),{ref:a(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:m({pointerEvents:d.value?p.value?`auto`:`none`:void 0}),onFocusCapture:a(g).onFocusCapture,onBlurCapture:a(g).onBlurCapture,onPointerdownCapture:a(h).onPointerDownCapture},{default:F(()=>[l(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),tr=i({__name:`Teleport`,props:{to:{type:null,required:!1,default:`body`},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=Rt();return(e,n)=>a(t)||e.forceMount?(v(),k(re,{key:0,to:e.to,disabled:e.disabled,defer:e.defer},[l(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):C(`v-if`,!0)}}),nr=i({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(v(),k(a(qn),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:F(()=>[l(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),[rr,ir]=bn(`PopperRoot`),ar=i({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=N();return ir({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>l(e.$slots,`default`)}}),or=i({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=On(),i=rr();return he(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(v(),k(a(qn),{ref:a(n),as:e.as,"as-child":e.asChild},{default:F(()=>[l(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),sr={key:0,d:`M0 0L6 6L12 0`},cr={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`},lr=i({__name:`Arrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return On(),(e,n)=>(v(),k(a(qn),A(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:`0 0 12 6`,preserveAspectRatio:e.asChild?void 0:`none`}),{default:F(()=>[l(e.$slots,`default`,{},()=>[e.rounded?(v(),ge(`path`,cr)):(v(),ge(`path`,sr))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}});function ur(e){return e!==null}function dr(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=fr(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function fr(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var pr=[`top`,`right`,`bottom`,`left`],mr=Math.min,hr=Math.max,gr=Math.round,_r=Math.floor,vr=e=>({x:e,y:e}),yr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function br(e,t,n){return hr(e,mr(t,n))}function xr(e,t){return typeof e==`function`?e(t):e}function Sr(e){return e.split(`-`)[0]}function Cr(e){return e.split(`-`)[1]}function wr(e){return e===`x`?`y`:`x`}function Tr(e){return e===`y`?`height`:`width`}function Er(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Dr(e){return wr(Er(e))}function Or(e,t,n){n===void 0&&(n=!1);let r=Cr(e),i=Dr(e),a=Tr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Lr(o)),[o,Lr(o)]}function kr(e){let t=Lr(e);return[Ar(e),t,Ar(t)]}function Ar(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jr=[`left`,`right`],Mr=[`right`,`left`],Nr=[`top`,`bottom`],Pr=[`bottom`,`top`];function Fr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mr:jr:t?jr:Mr;case`left`:case`right`:return t?Nr:Pr;default:return[]}}function Ir(e,t,n,r){let i=Cr(e),a=Fr(Sr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ar)))),a}function Lr(e){let t=Sr(e);return yr[t]+e.slice(t.length)}function Rr(e){return{top:0,right:0,bottom:0,left:0,...e}}function zr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Rr(e)}function Br(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Vr(e,t,n){let{reference:r,floating:i}=e,a=Er(t),o=Dr(t),s=Tr(o),c=Sr(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Cr(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Hr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=xr(t,e),p=zr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Br(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Br(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ur=50,Wr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Hr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Vr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ur&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Vr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Gr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xr(e,t)||{};if(l==null)return{};let d=zr(u),f={x:n,y:r},p=Dr(i),m=Tr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=mr(d[_],T),te=mr(d[v],T),E=ee,ne=C-h[m]-te,D=C/2-h[m]/2+w,re=br(E,D,ne),O=!c.arrow&&Cr(i)!=null&&D!==re&&a.reference[m]/2-(D<E?ee:te)-h[m]/2<0,k=O?D<E?D-E:D-ne:0;return{[p]:f[p]+k,data:{[p]:re,centerOffset:D-re-k,...O&&{alignmentOffset:k}},reset:O}}}),Kr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=xr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Sr(r),_=Er(o),v=Sr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Lr(o)]:kr(o)),x=p!==`none`;!d&&x&&b.push(...Ir(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Or(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Er(t))||T.every(e=>Er(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Er(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function qr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jr(e){return pr.some(t=>e[t]>=0)}var Yr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=xr(e,t);switch(i){case`referenceHidden`:{let e=qr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Jr(e)}}}case`escaped`:{let e=qr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Jr(e)}}}default:return{}}}}},Xr=new Set([`left`,`top`]);async function Zr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sr(n),s=Cr(n),c=Er(n)===`y`,l=Xr.has(o)?-1:1,u=a&&c?-1:1,d=xr(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Qr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Zr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},$r=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=xr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Er(Sr(i)),p=wr(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=br(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=br(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ei=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=xr(e,t),u={x:n,y:r},d=Er(i),f=wr(d),p=u[f],m=u[d],h=xr(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Xr.has(Sr(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ti=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=xr(e,t),u=await o.detectOverflow(t,l),d=Sr(i),f=Cr(i),p=Er(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mr(h-u[g],v),x=mr(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=hr(u.left,0),t=hr(u.right,0),n=hr(u.top,0),r=hr(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:hr(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:hr(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ni(){return typeof window<`u`}function ri(e){return oi(e)?(e.nodeName||``).toLowerCase():`#document`}function ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ai(e){return((oi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oi(e){return ni()?e instanceof Node||e instanceof ii(e).Node:!1}function si(e){return ni()?e instanceof Element||e instanceof ii(e).Element:!1}function ci(e){return ni()?e instanceof HTMLElement||e instanceof ii(e).HTMLElement:!1}function li(e){return!ni()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ii(e).ShadowRoot}function ui(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function di(e){return/^(table|td|th)$/.test(ri(e))}function fi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var pi=/transform|translate|scale|rotate|perspective|filter/,mi=/paint|layout|strict|content/,hi=e=>!!e&&e!==`none`,gi;function _i(e){let t=si(e)?xi(e):e;return hi(t.transform)||hi(t.translate)||hi(t.scale)||hi(t.rotate)||hi(t.perspective)||!yi()&&(hi(t.backdropFilter)||hi(t.filter))||pi.test(t.willChange||``)||mi.test(t.contain||``)}function vi(e){let t=Ci(e);for(;ci(t)&&!bi(t);){if(_i(t))return t;if(fi(t))return null;t=Ci(t)}return null}function yi(){return gi??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),gi}function bi(e){return/^(html|body|#document)$/.test(ri(e))}function xi(e){return ii(e).getComputedStyle(e)}function Si(e){return si(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ci(e){if(ri(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||li(e)&&e.host||ai(e);return li(t)?t.host:t}function wi(e){let t=Ci(e);return bi(t)?e.ownerDocument?e.ownerDocument.body:e.body:ci(t)&&ui(t)?t:wi(t)}function Ti(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=wi(e),i=r===e.ownerDocument?.body,a=ii(r);if(i){let e=Ei(a);return t.concat(a,a.visualViewport||[],ui(r)?r:[],e&&n?Ti(e):[])}else return t.concat(r,Ti(r,[],n))}function Ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){let t=xi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ci(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gr(n)!==a||gr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Oi(e){return si(e)?e:e.contextElement}function ki(e){let t=Oi(e);if(!ci(t))return vr(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Di(t),o=(a?gr(n.width):n.width)/r,s=(a?gr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ai=vr(0);function ji(e){let t=ii(e);return!yi()||!t.visualViewport?Ai:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ii(e)?!1:t}function Ni(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Oi(e),o=vr(1);t&&(r?si(r)&&(o=ki(r)):o=ki(e));let s=Mi(a,n,r)?ji(a):vr(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ii(a),t=r&&si(r)?ii(r):r,n=e,i=Ei(n);for(;i&&r&&t!==n;){let e=ki(i),t=i.getBoundingClientRect(),r=xi(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ii(i),i=Ei(n)}}return Br({width:u,height:d,x:c,y:l})}function Pi(e,t){let n=Si(e).scrollLeft;return t?t.left+n:Ni(ai(e)).left+n}function Fi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Pi(e,n),y:n.top+t.scrollTop}}function Ii(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ai(r),s=t?fi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vr(1),u=vr(0),d=ci(r);if((d||!d&&!a)&&((ri(r)!==`body`||ui(o))&&(c=Si(r)),d)){let e=Ni(r);l=ki(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Fi(o,c):vr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Li(e){return Array.from(e.getClientRects())}function Ri(e){let t=ai(e),n=Si(e),r=e.ownerDocument.body,i=hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Pi(e),s=-n.scrollTop;return xi(r).direction===`rtl`&&(o+=hr(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var zi=25;function Bi(e,t){let n=ii(e),r=ai(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=yi();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Pi(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=zi&&(a-=o)}else l<=zi&&(a+=l);return{width:a,height:o,x:s,y:c}}function Vi(e,t){let n=Ni(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ci(e)?ki(e):vr(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Hi(e,t,n){let r;if(t===`viewport`)r=Bi(e,n);else if(t===`document`)r=Ri(ai(e));else if(si(t))r=Vi(t,n);else{let n=ji(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Br(r)}function Ui(e,t){let n=Ci(e);return n===t||!si(n)||bi(n)?!1:xi(n).position===`fixed`||Ui(n,t)}function Wi(e,t){let n=t.get(e);if(n)return n;let r=Ti(e,[],!1).filter(e=>si(e)&&ri(e)!==`body`),i=null,a=xi(e).position===`fixed`,o=a?Ci(e):e;for(;si(o)&&!bi(o);){let t=xi(o),n=_i(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||ui(o)&&!n&&Ui(e,o))?r=r.filter(e=>e!==o):i=t,o=Ci(o)}return t.set(e,r),r}function Gi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?fi(t)?[]:Wi(t,this._c):[].concat(n),r],o=Hi(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Hi(t,a[e],i);s=hr(n.top,s),c=mr(n.right,c),l=mr(n.bottom,l),u=hr(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ki(e){let{width:t,height:n}=Di(e);return{width:t,height:n}}function qi(e,t,n){let r=ci(t),i=ai(t),a=n===`fixed`,o=Ni(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vr(0);function l(){c.x=Pi(i)}if(r||!r&&!a)if((ri(t)!==`body`||ui(i))&&(s=Si(t)),r){let e=Ni(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Fi(i,s):vr(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ji(e){return xi(e).position===`static`}function Yi(e,t){if(!ci(e)||xi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ai(e)===n&&(n=n.ownerDocument.body),n}function Xi(e,t){let n=ii(e);if(fi(e))return n;if(!ci(e)){let t=Ci(e);for(;t&&!bi(t);){if(si(t)&&!Ji(t))return t;t=Ci(t)}return n}let r=Yi(e,t);for(;r&&di(r)&&Ji(r);)r=Yi(r,t);return r&&bi(r)&&Ji(r)&&!_i(r)?n:r||vi(e)||n}var Zi=async function(e){let t=this.getOffsetParent||Xi,n=this.getDimensions,r=await n(e.floating);return{reference:qi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qi(e){return xi(e).direction===`rtl`}var $i={convertOffsetParentRelativeRectToViewportRelativeRect:Ii,getDocumentElement:ai,getClippingRect:Gi,getOffsetParent:Xi,getElementRects:Zi,getClientRects:Li,getDimensions:Ki,getScale:ki,isElement:si,isRTL:Qi};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ta(e,t){let n=null,r,i=ai(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=_r(d),h=_r(i.clientWidth-(u+f)),g=_r(i.clientHeight-(d+p)),_=_r(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:hr(0,mr(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!ea(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function na(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Oi(e),u=i||a?[...l?Ti(l):[],...t?Ti(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?ta(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ni(e):null;c&&g();function g(){let t=Ni(e);h&&!ea(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ra=Qr,ia=$r,aa=Kr,oa=ti,sa=Yr,ca=Gr,la=ei,ua=(e,t,n)=>{let r=new Map,i={platform:$i,...n},a={...i.platform,_c:r};return Wr(e,t,{...i,platform:a})};function da(e){return typeof e==`object`&&!!e&&`$el`in e}function fa(e){if(da(e)){let t=e.$el;return oi(t)&&ri(t)===`#comment`?null:t}return e}function pa(e){return typeof e==`function`?e():a(e)}function ma(e){return{name:`arrow`,options:e,fn(t){let n=fa(pa(e.element));return n==null?{}:ca({element:n,padding:e.padding}).fn(t)}}}function ha(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(e,t){let n=ha(e);return Math.round(t*n)/n}function _a(t,n,r){r===void 0&&(r={});let i=r.whileElementsMounted,a=M(()=>pa(r.open)??!0),o=M(()=>pa(r.middleware)),s=M(()=>pa(r.placement)??`bottom`),c=M(()=>pa(r.strategy)??`absolute`),l=M(()=>pa(r.transform)??!0),u=M(()=>fa(t.value)),d=M(()=>fa(n.value)),f=N(0),p=N(0),m=N(c.value),h=N(s.value),g=w({}),_=N(!1),v=M(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=ga(d.value,f.value),n=ga(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...ha(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),y;function b(){if(u.value==null||d.value==null)return;let e=a.value;ua(u.value,d.value,{middleware:o.value,placement:s.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,g.value=t.middlewareData,_.value=e!==!1})}function x(){typeof y==`function`&&(y(),y=void 0)}function S(){if(x(),i===void 0){b();return}if(u.value!=null&&d.value!=null){y=i(u.value,d.value,b);return}}function C(){a.value||(_.value=!1)}return e([o,s,c,a],b,{flush:`sync`}),e([u,d],S,{flush:`sync`}),e(a,C,{flush:`sync`}),pe()&&ne(x),{x:ie(f),y:ie(p),strategy:ie(m),placement:ie(h),middlewareData:ie(g),isPositioned:ie(_),floatingStyles:v,update:b}}var va={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[ya,ba]=bn(`PopperContent`),xa=i({inheritAttrs:!1,__name:`PopperContent`,props:ae({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...va}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=rr(),{forwardRef:o,currentElement:s}=On(),c=N(),u=N(),{width:d,height:f}=Bn(u),p=M(()=>n.side+(n.align===`center`?``:`-${n.align}`)),h=M(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),g=M(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),_=M(()=>({padding:h.value,boundary:g.value.filter(ur),altBoundary:g.value.length>0})),y=M(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),b=tt(()=>[ra({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&aa({..._.value,...y.value}),n.avoidCollisions&&ia({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?la():void 0,..._.value}),!n.prioritizePosition&&n.avoidCollisions&&aa({..._.value,...y.value}),oa({..._.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),u.value&&ma({element:u.value,padding:n.arrowPadding}),dr({arrowWidth:d.value,arrowHeight:f.value}),n.hideWhenDetached&&sa({strategy:`referenceHidden`,..._.value})]),{floatingStyles:x,placement:S,isPositioned:C,middlewareData:w,update:T}=_a(M(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...e)=>na(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:b}),ee=M(()=>fr(S.value)[0]),te=M(()=>fr(S.value)[1]);he(()=>{C.value&&r(`placed`)});let E=M(()=>{let e=w.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),ne=N(``);return D(()=>{s.value&&(ne.value=window.getComputedStyle(s.value).zIndex)}),ba({placedSide:ee,onArrowChange:e=>u.value=e,arrowX:M(()=>w.value.arrow?.x??0),arrowY:M(()=>w.value.arrow?.y??0),shouldHideArrow:E}),(e,t)=>(v(),ge(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,style:m({...a(x),transform:a(C)?a(x).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ne.value,"--reka-popper-transform-origin":[a(w).transformOrigin?.x,a(w).transformOrigin?.y].join(` `),...a(w).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[be(a(qn),A({ref:a(o)},e.$attrs,{"as-child":n.asChild,as:e.as,"data-side":ee.value,"data-align":te.value,style:{animation:a(C)?void 0:`none`}}),{default:F(()=>[l(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])],4))}}),Sa={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ca=i({inheritAttrs:!1,__name:`PopperArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let{forwardRef:t}=On(),n=ya(),r=M(()=>Sa[n.placedSide.value]);return(e,i)=>(v(),ge(`span`,{ref:e=>{a(n).onArrowChange(e)},style:m({position:`absolute`,left:a(n).arrowX?.value?`${a(n).arrowX?.value}px`:void 0,top:a(n).arrowY?.value?`${a(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[a(n).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[a(n).placedSide.value],visibility:a(n).shouldHideArrow.value?`hidden`:void 0})},[be(lr,A(e.$attrs,{ref:a(t),style:{display:`block`},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:F(()=>[l(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}}),wa=i({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return On(),(e,n)=>(v(),k(a(Ca),o(_(t)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))}}),[Ta,Ea]=bn(`TooltipProvider`),Da=i({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:t,skipDelayDuration:n,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:o,content:s}=te(e);On();let c=N(!0),u=N(!1),{start:d,stop:f}=kt(()=>{c.value=!0},n,{immediate:!1});return Ea({isOpenDelayed:c,delayDuration:t,onOpen(){f(),c.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:r,disableClosingTrigger:i,disabled:o,ignoreNonKeyboardFocus:a,content:s}),(e,t)=>l(e.$slots,`default`)}}),Oa=`tooltip.open`,[ka,Aa]=bn(`TooltipRoot`),ja=i({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(t,{emit:n}){let r=t,i=n;On();let o=Ta(),s=M(()=>r.disableHoverableContent??o.disableHoverableContent.value),c=M(()=>r.disableClosingTrigger??o.disableClosingTrigger.value),u=M(()=>r.disabled??o.disabled.value),d=M(()=>r.delayDuration??o.delayDuration.value),f=M(()=>r.ignoreNonKeyboardFocus??o.ignoreNonKeyboardFocus.value),p=nn(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});e(p,e=>{o.onClose&&(e?(o.onOpen(),document.dispatchEvent(new CustomEvent(Oa))):o.onClose())});let m=N(!1),h=N(),g=M(()=>p.value?m.value?`delayed-open`:`instant-open`:`closed`),{start:_,stop:y}=kt(()=>{m.value=!0,p.value=!0},d,{immediate:!1});function b(){y(),m.value=!1,p.value=!0}function x(){y(),p.value=!1}function S(){_()}return Aa({contentId:``,open:p,stateAttribute:g,trigger:h,onTriggerChange(e){h.value=e},onTriggerEnter(){o.isOpenDelayed.value?S():b()},onTriggerLeave(){s.value?x():y()},onOpen:b,onClose:x,disableHoverableContent:s,disableClosingTrigger:c,disabled:u,ignoreNonKeyboardFocus:f}),(e,t)=>(v(),k(a(ar),null,{default:F(()=>[l(e.$slots,`default`,{open:a(p)})]),_:3}))}}),Ma=i({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=ka(),o=Ta(),{forwardRef:s,currentElement:c}=On(),u=M(()=>n.ariaLabel||c.value?.textContent),d=M(()=>{let{ariaLabel:e,...t}=n;return Oe(t,o.content.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1})});return h(()=>{Ft(window,`scroll`,e=>{e.target?.contains(i.trigger.value)&&i.onClose()}),Ft(window,Oa,i.onClose)}),(e,t)=>(v(),k(a(er),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[0]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[1]||=e=>{a(i).disableClosingTrigger.value&&a(i).trigger.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)},onFocusOutside:t[2]||=fe(()=>{},[`prevent`]),onDismiss:t[3]||=e=>a(i).onClose()},{default:F(()=>[be(a(xa),A({ref:a(s),"data-state":a(i).stateAttribute.value},{...e.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:F(()=>[l(e.$slots,`default`),be(a(nr),{id:a(i).contentId,role:`tooltip`},{default:F(()=>[ee(oe(u.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),Na=i({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let t=kn(e),{forwardRef:n,currentElement:r}=On(),{trigger:i,onClose:o}=ka(),s=Ta(),{isPointerInTransit:c,onPointerExit:u}=jn(i,r);return s.isPointerInTransitRef=c,u(()=>{o()}),(e,r)=>(v(),k(Ma,A({ref:a(n)},a(t)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))}}),Pa=i({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=ka(),o=An(n,r),{forwardRef:s}=On();return(e,t)=>(v(),k(a(Wn),{present:e.forceMount||a(i).open.value},{default:F(()=>[(v(),k(de(a(i).disableHoverableContent.value?Ma:Na),A({ref:a(s)},a(o)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Fa=i({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(v(),k(a(tr),o(_(t)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))}}),Ia=i({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=ka(),r=Ta();n.contentId||=zn(void 0,`reka-tooltip-content`);let{forwardRef:i,currentElement:o}=On(),s=N(!1),c=N(!1),u=M(()=>n.disabled.value?{}:{click:b,focus:_,pointermove:m,pointerleave:g,pointerdown:p,blur:y});h(()=>{n.onTriggerChange(o.value)});function f(){setTimeout(()=>{s.value=!1},1)}function p(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener(`pointerup`,f,{once:!0})}function m(e){e.pointerType!==`touch`&&!c.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),c.value=!0)}function g(){n.onTriggerLeave(),c.value=!1}function _(e){s.value||n.ignoreNonKeyboardFocus.value&&!e.target.matches?.(`:focus-visible`)||n.onOpen()}function y(){n.onClose()}function b(){n.disableClosingTrigger.value||n.onClose()}return(e,r)=>(v(),k(a(or),{"as-child":``,reference:e.reference},{default:F(()=>[be(a(qn),A({ref:a(i),"aria-describedby":a(n).open.value?a(n).contentId:void 0,"data-state":a(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":``},d(u.value)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}}),La={__name:`UIcon`,props:{name:{type:null,required:!0},mode:{type:String,required:!1},size:{type:[String,Number],required:!1},customize:{type:[Function,Boolean,null],required:!1}},setup(e){let t=kn(Ct(e,`name`,`mode`,`size`,`customize`));return(n,r)=>{let i=Me;return typeof e.name==`string`?(v(),k(i,o(A({key:0},a(t))),null,16)):(v(),k(de(e.name),{key:1}))}}},Ra=Symbol(`nuxt-ui.field-group`);function za(e){let t=p(Ra,void 0);return{orientation:M(()=>t?.value.orientation),size:M(()=>e?.size??t?.value.size)}}function Ba(e){let t=ke(),n=M(()=>I(e)),r=M(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:M(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing||!!n.value.trailingIcon),leadingIconName:M(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:M(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}function Va(e,t){return Ha(Ua(e),Ua(t))}function Ha(e,t){let n=[],r=new Set([...Object.keys(e.props||{}),...Object.keys(t.props||{})]);if(e.props&&t.props)for(let i of r){let r=e.props[i],a=t.props[i];r&&a?n.push(...Ha(e.props?.[i],t.props?.[i])):(r||a)&&n.push(new Wa((a||r).key,r?`removed`:`added`,a,r))}return r.size===0&&e.hash!==t.hash&&n.push(new Wa((t||e).key,`changed`,t,e)),n}function Ua(e,t=``){if(e&&typeof e!=`object`)return new Ga(t,e,Ae(e));let n={},r=[];for(let i in e)n[i]=Ua(e[i],t?`${t}.${i}`:i),r.push(n[i].hash);return new Ga(t,e,`{${r.join(`:`)}}`,n)}var Wa=class{constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue.toString()}\``}}},Ga=class{constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}};function Ka(e,t){let n={...e};for(let e of t)delete n[e];return n}function qa(e,t,n){typeof t==`string`&&(t=t.split(`.`).map(e=>{let t=Number(e);return Number.isNaN(t)?e:t}));let r=e;for(let e of t){if(r==null)return n;r=r[e]}return r===void 0?n:r}function Ja(e){let t=Number.parseFloat(e);return Number.isNaN(t)?e:t}function Ya(e,t){return!e&&!t?``:[...Array.isArray(e)?e:[e],t].filter(Boolean)}var[Xa,Za]=bn(`UTheme`,`RootContext`);function Qa(e,t){let{ui:n}=Xa({ui:M(()=>({}))});return M(()=>{let r=qa(n.value,e)||{};return Oe(t.ui??{},r)})}var $a=/\s+/g,eo=e=>typeof e!=`string`||!e?e:e.replace($a,` `).trim(),to=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?eo(t.join(` `)):void 0},no=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,L=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},ro=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},io=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=to(e[n],r):e[n]=r}return e},ao=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?ao(r,t):r&&t.push(r)}},oo=(...e)=>{let t=[];ao(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},so=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=oo(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=so(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},co={twMerge:!0,twMergeConfig:{}};function lo(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var uo=lo(),fo=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...co,...n},u=r?.base?to(r.base,t?.base):t?.base,d=r?.variants&&!L(r.variants)?so(a,r.variants):a,f=r?.defaultVariants&&!L(r.defaultVariants)?{...r.defaultVariants,...c}:c;!L(l.twMergeConfig)&&!ro(l.twMergeConfig,uo.cachedTwMergeConfig)&&(uo.didTwMergeConfigChange=!0,uo.cachedTwMergeConfig=l.twMergeConfig);let p=L(r?.slots),m=L(i)?{}:{base:to(t?.base,p&&r?.base),...i},h=p?m:io({...r?.slots},L(m)?{base:t?.base}:m),g=L(r?.compoundVariants)?o:oo(r?.compoundVariants,o),_=t=>{if(L(d)&&L(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||L(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=no(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??no(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!L(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!L(i)||!p){let t={};if(typeof h==`object`&&!L(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?so(e,r):e)}},po=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},mo=(e,t)=>({classGroupId:e,validator:t}),ho=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),go=`-`,_o=[],vo=`arbitrary..`,yo=e=>{let t=So(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return xo(e);let n=e.split(go);return bo(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?po(i,t):t:i||_o}return n[e]||_o}}},bo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=bo(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(go):e.slice(t).join(go),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},xo=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?vo+r:void 0})(),So=e=>{let{theme:t,classGroups:n}=e;return Co(n,t)},Co=(e,t)=>{let n=ho();for(let r in e){let i=e[r];wo(i,n,r,t)}return n},wo=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];To(i,t,n,r)}},To=(e,t,n,r)=>{if(typeof e==`string`){Eo(e,t,n);return}if(typeof e==`function`){Do(e,t,n,r);return}Oo(e,t,n,r)},Eo=(e,t,n)=>{let r=e===``?t:ko(t,e);r.classGroupId=n},Do=(e,t,n,r)=>{if(Ao(e)){wo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(mo(n,e))},Oo=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];wo(o,ko(t,a),n,r)}},ko=(e,t)=>{let n=e,r=t.split(go),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ho(),n.nextPart.set(t,i)),n=i}return n},Ao=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,jo=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Mo=`!`,No=`:`,Po=[],Fo=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Io=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===No){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Mo)?(c=s.slice(0,-1),l=!0):s.startsWith(Mo)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Fo(t,l,c,u)};if(t){let e=t+No,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Fo(Po,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Lo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ro=e=>({cache:jo(e.cacheSize),parseClassName:Io(e),sortModifiers:Lo(e),...yo(e)}),zo=/\s+/,Bo=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(zo),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Mo:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Vo=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ho(n))&&(i&&(i+=` `),i+=r);return i},Ho=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ho(e[r]))&&(n&&(n+=` `),n+=t);return n},Uo=(e,...t)=>{let n,r,i,a,o=o=>(n=Ro(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Bo(e,n);return i(e,a),a};return a=o,(...e)=>a(Vo(...e))},Wo=[],R=e=>{let t=t=>t[e]||Wo;return t.isThemeGetter=!0,t},Go=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ko=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yo=/\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$/,Xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$o=e=>qo.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),es=e=>!!e&&Number.isInteger(Number(e)),ts=e=>e.endsWith(`%`)&&z(e.slice(0,-1)),ns=e=>Jo.test(e),rs=()=>!0,is=e=>Yo.test(e)&&!Xo.test(e),as=()=>!1,os=e=>Zo.test(e),ss=e=>Qo.test(e),cs=e=>!B(e)&&!V(e),ls=e=>ws(e,Os,as),B=e=>Go.test(e),us=e=>ws(e,ks,is),ds=e=>ws(e,As,z),fs=e=>ws(e,Ms,rs),ps=e=>ws(e,js,as),ms=e=>ws(e,Es,as),hs=e=>ws(e,Ds,ss),gs=e=>ws(e,Ns,os),V=e=>Ko.test(e),_s=e=>Ts(e,ks),vs=e=>Ts(e,js),ys=e=>Ts(e,Es),bs=e=>Ts(e,Os),xs=e=>Ts(e,Ds),Ss=e=>Ts(e,Ns,!0),Cs=e=>Ts(e,Ms,!0),ws=(e,t,n)=>{let r=Go.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ts=(e,t,n=!1)=>{let r=Ko.exec(e);return r?r[1]?t(r[1]):n:!1},Es=e=>e===`position`||e===`percentage`,Ds=e=>e===`image`||e===`url`,Os=e=>e===`length`||e===`size`||e===`bg-size`,ks=e=>e===`length`,As=e=>e===`number`,js=e=>e===`family-name`,Ms=e=>e===`number`||e===`weight`,Ns=e=>e===`shadow`,Ps=()=>{let e=R(`color`),t=R(`font`),n=R(`text`),r=R(`font-weight`),i=R(`tracking`),a=R(`leading`),o=R(`breakpoint`),s=R(`container`),c=R(`spacing`),l=R(`radius`),u=R(`shadow`),d=R(`inset-shadow`),f=R(`text-shadow`),p=R(`drop-shadow`),m=R(`blur`),h=R(`perspective`),g=R(`aspect`),_=R(`ease`),v=R(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),V,B],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[V,B,c],T=()=>[$o,`full`,`auto`,...w()],ee=()=>[es,`none`,`subgrid`,V,B],te=()=>[`auto`,{span:[`full`,es,V,B]},es,V,B],E=()=>[es,`auto`,V,B],ne=()=>[`auto`,`min`,`max`,`fr`,V,B],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],k=()=>[$o,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ie=()=>[$o,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],A=()=>[$o,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,V,B],ae=()=>[...b(),ys,ms,{position:[V,B]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,bs,ls,{size:[V,B]}],ce=()=>[ts,_s,us],M=()=>[``,`none`,`full`,l,V,B],N=()=>[``,z,_s,us],le=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[z,ts,ys,ms],de=()=>[``,`none`,m,V,B],F=()=>[`none`,z,V,B],fe=()=>[`none`,z,V,B],pe=()=>[z,V,B],me=()=>[$o,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ns],breakpoint:[ns],color:[rs],container:[ns],"drop-shadow":[ns],ease:[`in`,`out`,`in-out`],font:[cs],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ns],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ns],shadow:[ns],spacing:[`px`,z],text:[ns],"text-shadow":[ns],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,$o,B,V,g]}],container:[`container`],columns:[{columns:[z,B,V,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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`],sr:[`sr-only`,`not-sr-only`],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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[es,`auto`,V,B]}],basis:[{basis:[$o,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[z,$o,`auto`,`initial`,`none`,B]}],grow:[{grow:[``,z,V,B]}],shrink:[{shrink:[``,z,V,B]}],order:[{order:[es,`first`,`last`,`none`,V,B]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...A()]}],"min-block-size":[{"min-block":[`auto`,...A()]}],"max-block-size":[{"max-block":[`none`,...A()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,_s,us]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Cs,fs]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ts,B]}],"font-family":[{font:[vs,ps,t]}],"font-features":[{"font-features":[B]}],"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-fractions`],tracking:[{tracking:[i,V,B]}],"line-clamp":[{"line-clamp":[z,`none`,V,ds]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,V,B]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,V,B]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...le(),`wavy`]}],"text-decoration-thickness":[{decoration:[z,`from-font`,`auto`,V,us]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[z,`auto`,V,B]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,V,B]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,V,B]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},es,V,B],radial:[``,V,B],conic:[es,V,B]},xs,hs]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...le(),`hidden`,`none`]}],"divide-style":[{divide:[...le(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...le(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[z,V,B]}],"outline-w":[{outline:[``,z,_s,us]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Ss,gs]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ss,gs]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[z,us]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ss,gs]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[z,V,B]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[V,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,V,B]}],filter:[{filter:[``,`none`,V,B]}],blur:[{blur:de()}],brightness:[{brightness:[z,V,B]}],contrast:[{contrast:[z,V,B]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ss,gs]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,z,V,B]}],"hue-rotate":[{"hue-rotate":[z,V,B]}],invert:[{invert:[``,z,V,B]}],saturate:[{saturate:[z,V,B]}],sepia:[{sepia:[``,z,V,B]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,V,B]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[z,V,B]}],"backdrop-contrast":[{"backdrop-contrast":[z,V,B]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,z,V,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,V,B]}],"backdrop-invert":[{"backdrop-invert":[``,z,V,B]}],"backdrop-opacity":[{"backdrop-opacity":[z,V,B]}],"backdrop-saturate":[{"backdrop-saturate":[z,V,B]}],"backdrop-sepia":[{"backdrop-sepia":[``,z,V,B]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,V,B]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[z,`initial`,V,B]}],ease:[{ease:[`linear`,`initial`,_,V,B]}],delay:[{delay:[z,V,B]}],animate:[{animate:[`none`,v,V,B]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,V,B]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[V,B,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],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`,V,B]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,V,B]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[z,_s,us,ds]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`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-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`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`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Fs=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(Is(e,`cacheSize`,t),Is(e,`prefix`,n),Is(e,`experimentalParseClassName`,r),Ls(e.theme,a.theme),Ls(e.classGroups,a.classGroups),Ls(e.conflictingClassGroups,a.conflictingClassGroups),Ls(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Is(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),Rs(e.theme,i.theme),Rs(e.classGroups,i.classGroups),Rs(e.conflictingClassGroups,i.conflictingClassGroups),Rs(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),zs(e,i,`orderSensitiveModifiers`),e),Is=(e,t,n)=>{n!==void 0&&(e[t]=n)},Ls=(e,t)=>{if(t)for(let n in t)Is(e,n,t[n])},Rs=(e,t)=>{if(t)for(let n in t)zs(e,t,n)},zs=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Bs=(e,...t)=>typeof e==`function`?Uo(Ps,e,...t):Uo(()=>Fs(Ps(),e),...t),Vs=Uo(Ps),Hs=e=>L(e)?Vs:Bs({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Us=(e,t)=>{let n=to(e);return!n||!(t?.twMerge??!0)?n:((!uo.cachedTwMerge||uo.didTwMergeConfigChange)&&(uo.didTwMergeConfigChange=!1,uo.cachedTwMerge=Hs(uo.cachedTwMergeConfig)),uo.cachedTwMerge(n)||void 0)},{createTV:Ws,tv:Gs}=fo((...e)=>t=>Us(e,t)),Ks=Ws(je.ui?.tv),qs=Symbol(`nuxt-ui.avatar-group`);function Js(e){let t=p(qs,void 0),n=M(()=>e.size??t?.value.size);return u(qs,M(()=>({size:n.value}))),{size:n}}var Ys={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},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`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},Xs=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:t({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let t=e,n=b(e,`show`,{type:Boolean,default:!0}),{size:r}=Js(t),i=ke(),s=Qa(`chip`,t),u=M(()=>Ks({extend:Ks(Ys),...i.ui?.chip||{}})({color:t.color,size:r.value,position:t.position,inset:t.inset,standalone:t.standalone}));return(r,i)=>(v(),k(a(qn),{as:e.as,"data-slot":`root`,class:c(u.value.root({class:[a(s)?.root,t.class]}))},{default:F(()=>[be(a(Gn),o(_(r.$attrs)),{default:F(()=>[l(r.$slots,`default`)]),_:3},16),n.value?(v(),ge(`span`,{key:0,"data-slot":`base`,class:c(u.value.base({class:a(s)?.base}))},[l(r.$slots,`content`,{},()=>[ee(oe(e.text),1)])],2)):C(``,!0)]),_:3},8,[`as`,`class`]))}}),Zs={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium leading-none text-muted truncate`,icon:`text-muted shrink-0`},variants:{size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`}},Qs=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(t){let n=t,r=M(()=>typeof n.as==`string`||typeof n.as?.render==`function`?{root:n.as}:Oe(n.as,{root:`span`})),i=M(()=>n.text||(n.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=ke(),u=Qa(`avatar`,n),{size:d}=Js(n),f=M(()=>Ks({extend:Ks(Zs),...s.ui?.avatar||{}})({size:d.value})),p=M(()=>f.value.root({class:[u.value?.root,n.class]})),m=M(()=>{let e=p.value.split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),h=N(!1);e(()=>n.src,()=>{h.value&&=!1});function g(){h.value=!0}return(e,s)=>(v(),k(de(n.chip?Xs:a(qn)),A({as:r.value.root},n.chip?typeof n.chip==`object`?{inset:!0,...n.chip}:{inset:!0}:{},{"data-slot":`root`,class:p.value,style:n.style}),{default:F(()=>[t.src&&!h.value?(v(),k(de(r.value.img||a(`img`)),A({key:0,src:t.src,alt:t.alt,width:m.value,height:m.value},e.$attrs,{"data-slot":`image`,class:f.value.image({class:a(u)?.image}),onError:g}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(v(),k(a(Gn),o(A({key:1},e.$attrs)),{default:F(()=>[l(e.$slots,`default`,{},()=>[t.icon?(v(),k(La,{key:0,name:t.icon,"data-slot":`icon`,class:c(f.value.icon({class:a(u)?.icon}))},null,8,[`name`,`class`])):(v(),ge(`span`,{key:1,"data-slot":`fallback`,class:c(f.value.fallback({class:a(u)?.fallback}))},oe(i.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`class`,`style`]))}}),$s=Symbol(`nuxt-ui.portal-target`);function ec(e){let t=p($s,void 0),n=M(()=>e.value===!0?t?.value:e.value),r=M(()=>typeof n.value==`boolean`?!n.value:!1),i=M(()=>typeof n.value==`boolean`?`body`:n.value);return M(()=>({to:i.value,disabled:r.value}))}var tc={meta:``,ctrl:``,alt:``,win:`⊞`,command:`⌘`,shift:`⇧`,control:`⌃`,option:`⌥`,enter:`↵`,delete:`⌦`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,capslock:`⇪`,arrowup:`↑`,arrowright:`→`,arrowdown:`↓`,arrowleft:`←`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`},nc=yt(()=>{let e=M(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=O({meta:` `,alt:` `,ctrl:` `});h(()=>{t.meta=e.value?tc.command:`Ctrl`,t.ctrl=e.value?tc.control:`Ctrl`,t.alt=e.value?tc.option:`Alt`});function n(e){if(e)return[`meta`,`alt`,`ctrl`].includes(e)?t[e]:tc[e]||e}return{macOS:e,getKbdKey:n}}),rc={base:`inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase`,variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{sm:`h-4 min-w-[16px] text-[10px]`,md:`h-5 min-w-[20px] text-[11px]`,lg:`h-6 min-w-[24px] text-[12px]`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`}],defaultVariants:{variant:`outline`,color:`neutral`,size:`md`}},ic={__name:`UKbd`,props:{as:{type:null,required:!1,default:`kbd`},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=e,{getKbdKey:n}=nc(),r=ke(),i=Qa(`kbd`,t),o=M(()=>Ks({extend:Ks(rc),...r.ui?.kbd||{}}));return(r,s)=>(v(),k(a(qn),{as:e.as,class:c(o.value({class:[a(i)?.base,t.class],color:t.color,variant:t.variant,size:t.size}))},{default:F(()=>[l(r.$slots,`default`,{},()=>[ee(oe(a(n)(e.value)),1)])]),_:3},8,[`as`,`class`]))}},ac={slots:{content:`flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto`,arrow:`fill-bg stroke-default`,text:`truncate`,kbds:`hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,kbdsSize:`sm`}},oc={__name:`UTooltip`,props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=S(),s=ke(),u=Qa(`tooltip`,n),d=Ta(),f=An(Ct(n,`defaultOpen`,`open`,`delayDuration`,`disableHoverableContent`,`disableClosingTrigger`,`ignoreNonKeyboardFocus`),r),p=ec(xe(()=>n.portal)),m=xe(()=>Oe(n.content,d.content.value,{side:`bottom`,sideOffset:8,collisionPadding:8})),h=xe(()=>Oe(n.arrow,{rounded:!0})),g=M(()=>Ks({extend:Ks(ac),...s.ui?.tooltip||{}})({side:m.value.side}));return(t,r)=>(v(),k(a(ja),A(a(f),{disabled:!(e.text||e.kbds?.length||i.content)||n.disabled}),{default:F(({open:r})=>[i.default||e.reference?(v(),k(a(Ia),A({key:0},t.$attrs,{"as-child":``,reference:e.reference,class:n.class}),{default:F(()=>[l(t.$slots,`default`,{open:r})]),_:2},1040,[`reference`,`class`])):C(``,!0),be(a(Fa),o(_(a(p))),{default:F(()=>[be(a(Pa),A(m.value,{"data-slot":`content`,class:g.value.content({class:[!i.default&&n.class,a(u)?.content]})}),{default:F(()=>[l(t.$slots,`content`,{ui:g.value},()=>[e.text?(v(),ge(`span`,{key:0,"data-slot":`text`,class:c(g.value.text({class:a(u)?.text}))},oe(e.text),3)):C(``,!0),e.kbds?.length?(v(),ge(`span`,{key:1,"data-slot":`kbds`,class:c(g.value.kbds({class:a(u)?.kbds}))},[(v(!0),ge(se,null,y(e.kbds,(e,t)=>(v(),k(ic,A({key:t,size:a(u)?.kbdsSize||g.value.kbdsSize()},{ref_for:!0},typeof e==`string`?{value:e}:e),null,16,[`size`]))),128))],2)):C(``,!0)]),e.arrow?(v(),k(a(wa),A({key:0},h.value,{"data-slot":`arrow`,class:g.value.arrow({class:a(u)?.arrow})}),null,16,[`class`])):C(``,!0)]),_:3},16,[`class`])]),_:3},16)]),_:3},16,[`disabled`]))}},sc=Symbol(`nuxt-ui.form-options`),cc=Symbol(`nuxt-ui.form-events`),lc=Symbol(`nuxt-ui.form-field`),uc=Symbol(`nuxt-ui.input-id`),dc=Symbol(`nuxt-ui.form-loading`);function fc(e,t){let n=p(sc,void 0),r=p(cc,void 0),i=p(lc,void 0),a=p(uc,void 0);u(lc,void 0),i&&a&&(t?.bind===!1?a.value=void 0:e?.id&&(a.value=e?.id));function o(e,t,n){r&&i&&t&&r.emit({type:e,name:t,eager:n})}function s(){o(`blur`,i?.value.name)}function c(){o(`focus`,i?.value.name)}function l(){o(`change`,i?.value.name)}let d=Tt(()=>{o(`input`,i?.value.name,!t?.deferInputValidation||i?.value.eagerValidation)},i?.value.validateOnInputDelay??n?.value.validateOnInputDelay??0);return{id:M(()=>e?.id??a?.value),name:M(()=>e?.name??i?.value.name),size:M(()=>e?.size??i?.value.size),color:M(()=>i?.value.error?`error`:e?.color),highlight:M(()=>i?.value.error?!0:e?.highlight),disabled:M(()=>n?.value.disabled||e?.disabled),emitFormBlur:s,emitFormInput:d,emitFormChange:l,emitFormFocus:c,ariaAttrs:M(()=>{if(!i?.value)return;let e=[`error`,`hint`,`description`,`help`].filter(e=>i?.value?.[e]).map(e=>`${i?.value.ariaId}-${e}`)||[],t={"aria-invalid":!!i?.value.error};return e.length>0&&(t[`aria-describedby`]=e.join(` `)),t})}}var pc=`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`);function mc(e){let t=Object.keys(e),n=t.filter(e=>e.startsWith(`aria-`)),r=t.filter(e=>e.startsWith(`data-`));return Ct(e,...pc,...n,...r)}function hc(e,t){let n=Va(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set);return Ne(Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e))))}var gc={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:String,required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let t=e;function n(e){if(t.disabled){e.stopPropagation(),e.preventDefault();return}if(t.onClick)for(let n of Array.isArray(t.onClick)?t.onClick:[t.onClick])n(e);t.href&&t.navigate&&!t.isExternal&&t.navigate(e)}return(t,r)=>(v(),k(a(qn),A(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:F(()=>[l(t.$slots,`default`)]),_:3},16,[`rel`,`target`]))}},_c={base:`focus-visible:outline-primary`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]},vc=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){let t=e,n=De(),r=ke(),i=kn(St(t,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`class`)),s=M(()=>Ks({extend:Ks(_c),...Oe({variants:{active:{true:Ya(r.ui?.link?.variants?.active?.true,t.activeClass),false:Ya(r.ui?.link?.variants?.active?.false,t.inactiveClass)}}},r.ui?.link||{})})),c=M(()=>t.to??t.href);function u({route:e,isActive:r,isExactActive:i}){if(t.active!==void 0)return t.active;if(t.exactQuery===`partial`){if(!hc(e.query,n.query))return!1}else if(t.exactQuery===!0&&!Ne(e.query,n.query))return!1;return t.exactHash&&e.hash!==n.hash?!1:!!(t.exact&&i||!t.exact&&r)}function d({route:e,isActive:n,isExactActive:r}){let i=u({route:e,isActive:n,isExactActive:r});return t.raw?[t.class,i?t.activeClass:t.inactiveClass]:s.value({class:t.class,active:i,disabled:t.disabled})}return(n,r)=>{let s=Pe;return v(),k(s,A(a(i),{to:c.value,custom:``}),{default:F(({href:r,navigate:i,route:a,isActive:s,isExactActive:c,...f})=>[e.custom?l(n.$slots,`default`,o(A({key:0},{...n.$attrs,...e.exact&&c?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:r,navigate:i,rel:f.rel,target:f.target,isExternal:f.isExternal,active:u({route:a,isActive:s,isExactActive:c})}))):(v(),k(gc,A({key:1},{...n.$attrs,...e.exact&&c?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:r,navigate:i,rel:f.rel,target:f.target,isExternal:f.isExternal},{class:d({route:a,isActive:s,isExactActive:c})}),{default:F(()=>[l(n.$slots,`default`,{active:u({route:a,isActive:s,isExactActive:c})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])}}}),yc={slots:{base:[`rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75`,`transition-colors`],label:`truncate`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailingIcon:`shrink-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``,ghost:``,link:``},size:{xs:{base:`px-2 py-1 text-xs gap-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-xs gap-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-sm gap-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-sm gap-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},block:{true:{base:`w-full justify-center`,trailingIcon:`ms-auto`}},square:{true:``},leading:{true:``},trailing:{true:``},loading:{true:``},active:{true:{base:``},false:{base:``}}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary hover:bg-primary/75 active:bg-primary/75 disabled:bg-primary aria-disabled:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary hover:bg-secondary/75 active:bg-secondary/75 disabled:bg-secondary aria-disabled:bg-secondary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success hover:bg-success/75 active:bg-success/75 disabled:bg-success aria-disabled:bg-success focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info hover:bg-info/75 active:bg-info/75 disabled:bg-info aria-disabled:bg-info focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning hover:bg-warning/75 active:bg-warning/75 disabled:bg-warning aria-disabled:bg-warning focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error hover:bg-error/75 active:bg-error/75 disabled:bg-error aria-disabled:bg-error focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary hover:bg-primary/10 active:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary hover:bg-secondary/10 active:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success hover:bg-success/10 active:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info hover:bg-info/10 active:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning hover:bg-warning/10 active:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error hover:bg-error/10 active:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10 hover:bg-primary/15 active:bg-primary/15 focus:outline-none focus-visible:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 focus:outline-none focus-visible:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10 hover:bg-success/15 active:bg-success/15 focus:outline-none focus-visible:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10 hover:bg-info/15 active:bg-info/15 focus:outline-none focus-visible:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10 hover:bg-warning/15 active:bg-warning/15 focus:outline-none focus-visible:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10 hover:bg-error/15 active:bg-error/15 focus:outline-none focus-visible:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10 hover:bg-primary/15 active:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10 hover:bg-success/15 active:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-success`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10 hover:bg-info/15 active:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-info`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10 hover:bg-warning/15 active:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-warning`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10 hover:bg-error/15 active:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-error`},{color:`primary`,variant:`ghost`,class:`text-primary hover:bg-primary/10 active:bg-primary/10 focus:outline-none focus-visible:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`secondary`,variant:`ghost`,class:`text-secondary hover:bg-secondary/10 active:bg-secondary/10 focus:outline-none focus-visible:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`success`,variant:`ghost`,class:`text-success hover:bg-success/10 active:bg-success/10 focus:outline-none focus-visible:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`info`,variant:`ghost`,class:`text-info hover:bg-info/10 active:bg-info/10 focus:outline-none focus-visible:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`warning`,variant:`ghost`,class:`text-warning hover:bg-warning/10 active:bg-warning/10 focus:outline-none focus-visible:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`error`,variant:`ghost`,class:`text-error hover:bg-error/10 active:bg-error/10 focus:outline-none focus-visible:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`primary`,variant:`link`,class:`text-primary hover:text-primary/75 active:text-primary/75 disabled:text-primary aria-disabled:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary`},{color:`secondary`,variant:`link`,class:`text-secondary hover:text-secondary/75 active:text-secondary/75 disabled:text-secondary aria-disabled:text-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary`},{color:`success`,variant:`link`,class:`text-success hover:text-success/75 active:text-success/75 disabled:text-success aria-disabled:text-success focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success`},{color:`info`,variant:`link`,class:`text-info hover:text-info/75 active:text-info/75 disabled:text-info aria-disabled:text-info focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info`},{color:`warning`,variant:`link`,class:`text-warning hover:text-warning/75 active:text-warning/75 disabled:text-warning aria-disabled:text-warning focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning`},{color:`error`,variant:`link`,class:`text-error hover:text-error/75 active:text-error/75 disabled:text-error aria-disabled:text-error focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted`},{color:`neutral`,variant:`ghost`,class:`text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent`},{color:`neutral`,variant:`link`,class:`text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted`},{size:`xs`,square:!0,class:`p-1`},{size:`sm`,square:!0,class:`p-1.5`},{size:`md`,square:!0,class:`p-1.5`},{size:`lg`,square:!0,class:`p-2`},{size:`xl`,square:!0,class:`p-2`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`}},bc={__name:`UButton`,props:{label:{type:String,required:!1},color:{type:null,required:!1},activeColor:{type:null,required:!1},variant:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){let t=e,n=S(),r=ke(),i=Qa(`button`,t),{orientation:o,size:s}=za(t),u=kn(mc(t)),d=N(!1),f=p(dc,void 0);async function m(e){d.value=!0;let n=Array.isArray(t.onClick)?t.onClick:[t.onClick];try{await Promise.all(n.map(t=>t?.(e)))}finally{d.value=!1}}let h=M(()=>t.loading||t.loadingAuto&&(d.value||f?.value&&t.type===`submit`)),{isLeading:g,isTrailing:_,leadingIconName:y,trailingIconName:b}=Ba(M(()=>({...t,loading:h.value}))),x=M(()=>Ks({extend:Ks(yc),...Oe({variants:{active:{true:{base:Ya(r.ui?.button?.variants?.active?.true?.base,t.activeClass)},false:{base:Ya(r.ui?.button?.variants?.active?.false?.base,t.inactiveClass)}}}},r.ui?.button||{})})({color:t.color,variant:t.variant,size:s.value,loading:h.value,block:t.block,square:t.square||!n.default&&!t.label,leading:g.value,trailing:_.value,fieldGroup:o.value}));return(n,r)=>(v(),k(vc,A({type:e.type,disabled:e.disabled||h.value},a(Ka)(a(u),[`type`,`disabled`,`onClick`]),{custom:``}),{default:F(({active:r,...o})=>[be(gc,A(o,{"data-slot":`base`,class:x.value.base({class:[a(i)?.base,t.class],active:r,...r&&e.activeVariant?{variant:e.activeVariant}:{},...r&&e.activeColor?{color:e.activeColor}:{}}),onClick:m}),{default:F(()=>[l(n.$slots,`leading`,{ui:x.value},()=>[a(g)&&a(y)?(v(),k(La,{key:0,name:a(y),"data-slot":`leadingIcon`,class:c(x.value.leadingIcon({class:a(i)?.leadingIcon,active:r}))},null,8,[`name`,`class`])):e.avatar?(v(),k(Qs,A({key:1,size:a(i)?.leadingAvatarSize||x.value.leadingAvatarSize()},e.avatar,{"data-slot":`leadingAvatar`,class:x.value.leadingAvatar({class:a(i)?.leadingAvatar,active:r})}),null,16,[`size`,`class`])):C(``,!0)]),l(n.$slots,`default`,{ui:x.value},()=>[e.label!==void 0&&e.label!==null?(v(),ge(`span`,{key:0,"data-slot":`label`,class:c(x.value.label({class:a(i)?.label,active:r}))},oe(e.label),3)):C(``,!0)]),l(n.$slots,`trailing`,{ui:x.value},()=>[a(_)&&a(b)?(v(),k(La,{key:0,name:a(b),"data-slot":`trailingIcon`,class:c(x.value.trailingIcon({class:a(i)?.trailingIcon,active:r}))},null,8,[`name`,`class`])):C(``,!0)])]),_:2},1040,[`class`])]),_:3},16,[`type`,`disabled`]))}},xc,Sc=[];function Cc(e){if(Sc.push(e),!(typeof window>`u`))return window.__NUXT_DEVTOOLS__&&Sc.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,`__NUXT_DEVTOOLS__`,{set(e){e&&Sc.forEach(t=>t(e))},get(){return xc.value},configurable:!0}),()=>{Sc.splice(Sc.indexOf(e),1)}}var wc=N(),Tc=N(),Ec=N(`dark`);function Dc(t={}){window.parent!==window&&Cc(async e=>{if(mn.value=!0,wc.value=e.host.app.$fetch,D(()=>{Ec.value=e.host.app.colorMode.value}),Tc.value=e.devtools,t.onConnected?.(e),t.onRouteChange){let n=e.host.nuxt.vueApp.config.globalProperties?.$route;t.onRouteChange(n);let r=e.host.nuxt.$router.afterEach(e=>{t.onRouteChange(e)});e.host.nuxt.hook(`app:unmount`,r)}}),e(()=>pn.value,e=>{e&&!mn.value&&(wc.value=$e.create({baseURL:e}),Ec.value=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`,cn())},{immediate:!0})}var H=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Oc(e){return kc(e)}function kc(e){return Array.isArray(e)?Ac(e):e instanceof RegExp?e:typeof e==`object`?jc(e):e}function Ac(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=kc(e[n]);return t}function jc(e){let t={};for(let n in e)t[n]=kc(e[n]);return t}function Mc(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Nc(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Nc(e.substring(0,e.length-1)):e.substr(~t+1)}var Pc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fc=class{static hasCaptures(e){return e===null?!1:(Pc.lastIndex=0,Pc.test(e))}static replaceCaptures(e,t,n){return e.replace(Pc,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Ic(e,t){return e<t?-1:e>t?1:0}function Lc(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Ic(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Rc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function zc(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Bc=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Vc=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Kc(e),t)}static createFromParsedTheme(e,t){return Jc(e,t)}_cachedMatchRoot=new Bc(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Uc(e.parent,t.parentScopes));return n?new Gc(n.fontStyle,n.foreground,n.background):null}},Hc=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Uc(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Wc(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Wc(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Gc=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Kc(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&Rc(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Rc(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new qc(l,u,e,o,s,c)}}return n}var qc=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},U=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(U||{});function Jc(e,t){e.sort((e,t)=>{let n=Ic(e.scope,t.scope);return n!==0||(n=Lc(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Yc(t),o=new Gc(n,a.getId(r),a.getId(i)),s=new Qc(new Zc(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Vc(a,o,s)}var Yc=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Xc=Object.freeze([]),Zc=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Xc,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Qc=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Zc.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Lc(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Zc(e,t,n,r,i))}},$c=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=tl(r)),i!==null&&(u=i?1:0),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function el(e){return e}function tl(e){return e}function nl(e,t){let n=[],r=il(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(rl(i)){let e=[];do e.push(i),i=r.next();while(rl(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function rl(e){return!!e&&!!e.match(/[\w\.:]+/)}function il(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function al(e){typeof e.dispose==`function`&&e.dispose()}var ol=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},sl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},cl=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ll=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ol(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new cl;for(let n of e)ul(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ol){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ul(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof ol?fl({baseGrammar:a,selfGrammar:i},r):dl(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ol(e))}function dl(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];pl([r],t,n)}}function fl(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&pl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&pl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function pl(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Mc({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&pl(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=yl(i);switch(a.kind){case 0:fl({...t,selfGrammar:t.baseGrammar},n);break;case 1:fl(t,n);break;case 2:dl(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?dl(a.ruleName,i,n):fl(i,n)}else a.kind===4?n.add(new sl(a.scopeName,a.ruleName)):n.add(new ol(a.scopeName));break}}}var ml=class{kind=0},hl=class{kind=1},gl=class{constructor(e){this.ruleName=e}kind=2},_l=class{constructor(e){this.scopeName=e}kind=3},vl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function yl(e){if(e===`$base`)return new ml;if(e===`$self`)return new hl;let t=e.indexOf(`#`);return t===-1?new _l(e):t===0?new gl(e.substring(1)):new vl(e.substring(0,t),e.substring(t+1))}var bl=/\\(\d+)/,xl=/\\(\d+)/g,Sl=-1,Cl=-2;function wl(e){return e}function Tl(e){return e}var El=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Fc.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Fc.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Nc(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Fc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fc.replaceCaptures(this._contentName,e,t)}},Dl=class extends El{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Ol=class extends El{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Nl(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kl=class extends El{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Al=class extends El{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Nl(i,this.id),this.beginCaptures=a,this._end=new Nl(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pl;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},jl=class extends El{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Nl(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Nl(o,Cl),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pl;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Pl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},Ml=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Dl(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Ol(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Mc({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new kl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new jl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Al(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=yl(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof kl||e instanceof Al||e instanceof jl)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Nl=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=bl.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return xl.lastIndex=0,this.source.replace(xl,(e,t)=>zc(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Pl=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){return this._cached||=new Fl(e,this._items.map(e=>e.source),this._items.map(e=>e.ruleId)),this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Fl(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Fl=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
3
|
+
`))}return()=>i.value||r.value||o.value?s(t.default({present:o.value})[0],{ref:e=>{let t=Pt(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),Gn=i({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=Cn(n.default()),r=e.findIndex(e=>e.type!==E);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?A(t,i.props):t,o=ue({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Kn=[`area`,`img`,`input`],qn=i({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Kn.includes(r)?()=>s(r,t):r===`template`?()=>s(Gn,t,{default:n.default}):()=>s(e.as,t,{default:n.default})}}),Jn=`dismissableLayer.pointerDownOutside`,Yn=`dismissableLayer.focusOutside`;function Xn(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function Zn(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=N(!1),a=N(()=>{});return D(o=>{if(!it||!I(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(Xn(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){xn(Jn,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{I(n)&&(i.value=!0)}}}function Qn(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=N(!1);return D(a=>{if(!it||!I(n))return;let o=async n=>{if(!t?.value)return;await f(),await f();let r=n.target;!t.value||!r||Xn(t.value,r)||n.target&&!i.value&&xn(Yn,e,{originalEvent:n})};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{I(n)&&(i.value=!0)},onBlurCapture:()=>{I(n)&&(i.value=!1)}}}var $n=O({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),er=i({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:o}=On(),s=M(()=>o.value?.ownerDocument??globalThis.document),c=M(()=>$n.layersRoot),u=M(()=>o.value?Array.from(c.value).indexOf(o.value):-1),d=M(()=>$n.layersWithOutsidePointerEventsDisabled.size>0),p=M(()=>{let e=Array.from(c.value),[t]=[...$n.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return u.value>=n}),h=Zn(async e=>{let t=[...$n.branches].some(t=>t?.contains(e.target));!p.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await f(),e.defaultPrevented||r(`dismiss`))},o),g=Qn(e=>{[...$n.branches].some(t=>t?.contains(e.target))||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},o);return Vt(`Escape`,e=>{u.value===c.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))}),D(e=>{o.value&&(n.disableOutsidePointerEvents&&($n.layersWithOutsidePointerEventsDisabled.size===0&&($n.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents=`none`),$n.layersWithOutsidePointerEventsDisabled.add(o.value)),c.value.add(o.value),e(()=>{n.disableOutsidePointerEvents&&$n.layersWithOutsidePointerEventsDisabled.size===1&&!Sn($n.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=$n.originalBodyPointerEvents)}))}),D(e=>{e(()=>{o.value&&(c.value.delete(o.value),$n.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(e,t)=>(v(),k(a(qn),{ref:a(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:m({pointerEvents:d.value?p.value?`auto`:`none`:void 0}),onFocusCapture:a(g).onFocusCapture,onBlurCapture:a(g).onBlurCapture,onPointerdownCapture:a(h).onPointerDownCapture},{default:F(()=>[l(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),tr=i({__name:`Teleport`,props:{to:{type:null,required:!1,default:`body`},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=Rt();return(e,n)=>a(t)||e.forceMount?(v(),k(re,{key:0,to:e.to,disabled:e.disabled,defer:e.defer},[l(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):C(`v-if`,!0)}}),nr=i({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(v(),k(a(qn),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:F(()=>[l(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),[rr,ir]=bn(`PopperRoot`),ar=i({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=N();return ir({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>l(e.$slots,`default`)}}),or=i({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=On(),i=rr();return he(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(v(),k(a(qn),{ref:a(n),as:e.as,"as-child":e.asChild},{default:F(()=>[l(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),sr={key:0,d:`M0 0L6 6L12 0`},cr={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`},lr=i({__name:`Arrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return On(),(e,n)=>(v(),k(a(qn),A(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:`0 0 12 6`,preserveAspectRatio:e.asChild?void 0:`none`}),{default:F(()=>[l(e.$slots,`default`,{},()=>[e.rounded?(v(),ge(`path`,cr)):(v(),ge(`path`,sr))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}});function ur(e){return e!==null}function dr(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=fr(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function fr(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var pr=[`top`,`right`,`bottom`,`left`],mr=Math.min,hr=Math.max,gr=Math.round,_r=Math.floor,vr=e=>({x:e,y:e}),yr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function br(e,t,n){return hr(e,mr(t,n))}function xr(e,t){return typeof e==`function`?e(t):e}function Sr(e){return e.split(`-`)[0]}function Cr(e){return e.split(`-`)[1]}function wr(e){return e===`x`?`y`:`x`}function Tr(e){return e===`y`?`height`:`width`}function Er(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Dr(e){return wr(Er(e))}function Or(e,t,n){n===void 0&&(n=!1);let r=Cr(e),i=Dr(e),a=Tr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Lr(o)),[o,Lr(o)]}function kr(e){let t=Lr(e);return[Ar(e),t,Ar(t)]}function Ar(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jr=[`left`,`right`],Mr=[`right`,`left`],Nr=[`top`,`bottom`],Pr=[`bottom`,`top`];function Fr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mr:jr:t?jr:Mr;case`left`:case`right`:return t?Nr:Pr;default:return[]}}function Ir(e,t,n,r){let i=Cr(e),a=Fr(Sr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ar)))),a}function Lr(e){let t=Sr(e);return yr[t]+e.slice(t.length)}function Rr(e){return{top:0,right:0,bottom:0,left:0,...e}}function zr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Rr(e)}function Br(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Vr(e,t,n){let{reference:r,floating:i}=e,a=Er(t),o=Dr(t),s=Tr(o),c=Sr(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Cr(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Hr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=xr(t,e),p=zr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Br(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Br(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ur=50,Wr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Hr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Vr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ur&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Vr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Gr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xr(e,t)||{};if(l==null)return{};let d=zr(u),f={x:n,y:r},p=Dr(i),m=Tr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=mr(d[_],T),te=mr(d[v],T),E=ee,ne=C-h[m]-te,D=C/2-h[m]/2+w,re=br(E,D,ne),O=!c.arrow&&Cr(i)!=null&&D!==re&&a.reference[m]/2-(D<E?ee:te)-h[m]/2<0,k=O?D<E?D-E:D-ne:0;return{[p]:f[p]+k,data:{[p]:re,centerOffset:D-re-k,...O&&{alignmentOffset:k}},reset:O}}}),Kr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=xr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Sr(r),_=Er(o),v=Sr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Lr(o)]:kr(o)),x=p!==`none`;!d&&x&&b.push(...Ir(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Or(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Er(t))||T.every(e=>Er(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Er(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function qr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jr(e){return pr.some(t=>e[t]>=0)}var Yr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=xr(e,t);switch(i){case`referenceHidden`:{let e=qr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Jr(e)}}}case`escaped`:{let e=qr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Jr(e)}}}default:return{}}}}},Xr=new Set([`left`,`top`]);async function Zr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sr(n),s=Cr(n),c=Er(n)===`y`,l=Xr.has(o)?-1:1,u=a&&c?-1:1,d=xr(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Qr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Zr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},$r=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=xr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Er(Sr(i)),p=wr(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=br(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=br(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ei=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=xr(e,t),u={x:n,y:r},d=Er(i),f=wr(d),p=u[f],m=u[d],h=xr(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Xr.has(Sr(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ti=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=xr(e,t),u=await o.detectOverflow(t,l),d=Sr(i),f=Cr(i),p=Er(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mr(h-u[g],v),x=mr(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=hr(u.left,0),t=hr(u.right,0),n=hr(u.top,0),r=hr(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:hr(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:hr(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ni(){return typeof window<`u`}function ri(e){return oi(e)?(e.nodeName||``).toLowerCase():`#document`}function ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ai(e){return((oi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oi(e){return ni()?e instanceof Node||e instanceof ii(e).Node:!1}function si(e){return ni()?e instanceof Element||e instanceof ii(e).Element:!1}function ci(e){return ni()?e instanceof HTMLElement||e instanceof ii(e).HTMLElement:!1}function li(e){return!ni()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ii(e).ShadowRoot}function ui(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function di(e){return/^(table|td|th)$/.test(ri(e))}function fi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var pi=/transform|translate|scale|rotate|perspective|filter/,mi=/paint|layout|strict|content/,hi=e=>!!e&&e!==`none`,gi;function _i(e){let t=si(e)?xi(e):e;return hi(t.transform)||hi(t.translate)||hi(t.scale)||hi(t.rotate)||hi(t.perspective)||!yi()&&(hi(t.backdropFilter)||hi(t.filter))||pi.test(t.willChange||``)||mi.test(t.contain||``)}function vi(e){let t=Ci(e);for(;ci(t)&&!bi(t);){if(_i(t))return t;if(fi(t))return null;t=Ci(t)}return null}function yi(){return gi??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),gi}function bi(e){return/^(html|body|#document)$/.test(ri(e))}function xi(e){return ii(e).getComputedStyle(e)}function Si(e){return si(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ci(e){if(ri(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||li(e)&&e.host||ai(e);return li(t)?t.host:t}function wi(e){let t=Ci(e);return bi(t)?e.ownerDocument?e.ownerDocument.body:e.body:ci(t)&&ui(t)?t:wi(t)}function Ti(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=wi(e),i=r===e.ownerDocument?.body,a=ii(r);if(i){let e=Ei(a);return t.concat(a,a.visualViewport||[],ui(r)?r:[],e&&n?Ti(e):[])}else return t.concat(r,Ti(r,[],n))}function Ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){let t=xi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ci(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gr(n)!==a||gr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Oi(e){return si(e)?e:e.contextElement}function ki(e){let t=Oi(e);if(!ci(t))return vr(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Di(t),o=(a?gr(n.width):n.width)/r,s=(a?gr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ai=vr(0);function ji(e){let t=ii(e);return!yi()||!t.visualViewport?Ai:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ii(e)?!1:t}function Ni(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Oi(e),o=vr(1);t&&(r?si(r)&&(o=ki(r)):o=ki(e));let s=Mi(a,n,r)?ji(a):vr(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ii(a),t=r&&si(r)?ii(r):r,n=e,i=Ei(n);for(;i&&r&&t!==n;){let e=ki(i),t=i.getBoundingClientRect(),r=xi(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ii(i),i=Ei(n)}}return Br({width:u,height:d,x:c,y:l})}function Pi(e,t){let n=Si(e).scrollLeft;return t?t.left+n:Ni(ai(e)).left+n}function Fi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Pi(e,n),y:n.top+t.scrollTop}}function Ii(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ai(r),s=t?fi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vr(1),u=vr(0),d=ci(r);if((d||!d&&!a)&&((ri(r)!==`body`||ui(o))&&(c=Si(r)),d)){let e=Ni(r);l=ki(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Fi(o,c):vr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Li(e){return Array.from(e.getClientRects())}function Ri(e){let t=ai(e),n=Si(e),r=e.ownerDocument.body,i=hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Pi(e),s=-n.scrollTop;return xi(r).direction===`rtl`&&(o+=hr(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var zi=25;function Bi(e,t){let n=ii(e),r=ai(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=yi();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Pi(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=zi&&(a-=o)}else l<=zi&&(a+=l);return{width:a,height:o,x:s,y:c}}function Vi(e,t){let n=Ni(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ci(e)?ki(e):vr(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Hi(e,t,n){let r;if(t===`viewport`)r=Bi(e,n);else if(t===`document`)r=Ri(ai(e));else if(si(t))r=Vi(t,n);else{let n=ji(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Br(r)}function Ui(e,t){let n=Ci(e);return n===t||!si(n)||bi(n)?!1:xi(n).position===`fixed`||Ui(n,t)}function Wi(e,t){let n=t.get(e);if(n)return n;let r=Ti(e,[],!1).filter(e=>si(e)&&ri(e)!==`body`),i=null,a=xi(e).position===`fixed`,o=a?Ci(e):e;for(;si(o)&&!bi(o);){let t=xi(o),n=_i(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||ui(o)&&!n&&Ui(e,o))?r=r.filter(e=>e!==o):i=t,o=Ci(o)}return t.set(e,r),r}function Gi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?fi(t)?[]:Wi(t,this._c):[].concat(n),r],o=Hi(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Hi(t,a[e],i);s=hr(n.top,s),c=mr(n.right,c),l=mr(n.bottom,l),u=hr(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ki(e){let{width:t,height:n}=Di(e);return{width:t,height:n}}function qi(e,t,n){let r=ci(t),i=ai(t),a=n===`fixed`,o=Ni(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vr(0);function l(){c.x=Pi(i)}if(r||!r&&!a)if((ri(t)!==`body`||ui(i))&&(s=Si(t)),r){let e=Ni(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Fi(i,s):vr(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ji(e){return xi(e).position===`static`}function Yi(e,t){if(!ci(e)||xi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ai(e)===n&&(n=n.ownerDocument.body),n}function Xi(e,t){let n=ii(e);if(fi(e))return n;if(!ci(e)){let t=Ci(e);for(;t&&!bi(t);){if(si(t)&&!Ji(t))return t;t=Ci(t)}return n}let r=Yi(e,t);for(;r&&di(r)&&Ji(r);)r=Yi(r,t);return r&&bi(r)&&Ji(r)&&!_i(r)?n:r||vi(e)||n}var Zi=async function(e){let t=this.getOffsetParent||Xi,n=this.getDimensions,r=await n(e.floating);return{reference:qi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qi(e){return xi(e).direction===`rtl`}var $i={convertOffsetParentRelativeRectToViewportRelativeRect:Ii,getDocumentElement:ai,getClippingRect:Gi,getOffsetParent:Xi,getElementRects:Zi,getClientRects:Li,getDimensions:Ki,getScale:ki,isElement:si,isRTL:Qi};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ta(e,t){let n=null,r,i=ai(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=_r(d),h=_r(i.clientWidth-(u+f)),g=_r(i.clientHeight-(d+p)),_=_r(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:hr(0,mr(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!ea(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function na(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Oi(e),u=i||a?[...l?Ti(l):[],...t?Ti(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?ta(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ni(e):null;c&&g();function g(){let t=Ni(e);h&&!ea(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ra=Qr,ia=$r,aa=Kr,oa=ti,sa=Yr,ca=Gr,la=ei,ua=(e,t,n)=>{let r=new Map,i={platform:$i,...n},a={...i.platform,_c:r};return Wr(e,t,{...i,platform:a})};function da(e){return typeof e==`object`&&!!e&&`$el`in e}function fa(e){if(da(e)){let t=e.$el;return oi(t)&&ri(t)===`#comment`?null:t}return e}function pa(e){return typeof e==`function`?e():a(e)}function ma(e){return{name:`arrow`,options:e,fn(t){let n=fa(pa(e.element));return n==null?{}:ca({element:n,padding:e.padding}).fn(t)}}}function ha(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(e,t){let n=ha(e);return Math.round(t*n)/n}function _a(t,n,r){r===void 0&&(r={});let i=r.whileElementsMounted,a=M(()=>pa(r.open)??!0),o=M(()=>pa(r.middleware)),s=M(()=>pa(r.placement)??`bottom`),c=M(()=>pa(r.strategy)??`absolute`),l=M(()=>pa(r.transform)??!0),u=M(()=>fa(t.value)),d=M(()=>fa(n.value)),f=N(0),p=N(0),m=N(c.value),h=N(s.value),g=w({}),_=N(!1),v=M(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=ga(d.value,f.value),n=ga(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...ha(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),y;function b(){if(u.value==null||d.value==null)return;let e=a.value;ua(u.value,d.value,{middleware:o.value,placement:s.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,g.value=t.middlewareData,_.value=e!==!1})}function x(){typeof y==`function`&&(y(),y=void 0)}function S(){if(x(),i===void 0){b();return}if(u.value!=null&&d.value!=null){y=i(u.value,d.value,b);return}}function C(){a.value||(_.value=!1)}return e([o,s,c,a],b,{flush:`sync`}),e([u,d],S,{flush:`sync`}),e(a,C,{flush:`sync`}),pe()&&ne(x),{x:ie(f),y:ie(p),strategy:ie(m),placement:ie(h),middlewareData:ie(g),isPositioned:ie(_),floatingStyles:v,update:b}}var va={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[ya,ba]=bn(`PopperContent`),xa=i({inheritAttrs:!1,__name:`PopperContent`,props:ae({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...va}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=rr(),{forwardRef:o,currentElement:s}=On(),c=N(),u=N(),{width:d,height:f}=Bn(u),p=M(()=>n.side+(n.align===`center`?``:`-${n.align}`)),h=M(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),g=M(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),_=M(()=>({padding:h.value,boundary:g.value.filter(ur),altBoundary:g.value.length>0})),y=M(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),b=tt(()=>[ra({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&aa({..._.value,...y.value}),n.avoidCollisions&&ia({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?la():void 0,..._.value}),!n.prioritizePosition&&n.avoidCollisions&&aa({..._.value,...y.value}),oa({..._.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),u.value&&ma({element:u.value,padding:n.arrowPadding}),dr({arrowWidth:d.value,arrowHeight:f.value}),n.hideWhenDetached&&sa({strategy:`referenceHidden`,..._.value})]),{floatingStyles:x,placement:S,isPositioned:C,middlewareData:w,update:T}=_a(M(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...e)=>na(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:b}),ee=M(()=>fr(S.value)[0]),te=M(()=>fr(S.value)[1]);he(()=>{C.value&&r(`placed`)});let E=M(()=>{let e=w.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),ne=N(``);return D(()=>{s.value&&(ne.value=window.getComputedStyle(s.value).zIndex)}),ba({placedSide:ee,onArrowChange:e=>u.value=e,arrowX:M(()=>w.value.arrow?.x??0),arrowY:M(()=>w.value.arrow?.y??0),shouldHideArrow:E}),(e,t)=>(v(),ge(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,style:m({...a(x),transform:a(C)?a(x).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ne.value,"--reka-popper-transform-origin":[a(w).transformOrigin?.x,a(w).transformOrigin?.y].join(` `),...a(w).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[be(a(qn),A({ref:a(o)},e.$attrs,{"as-child":n.asChild,as:e.as,"data-side":ee.value,"data-align":te.value,style:{animation:a(C)?void 0:`none`}}),{default:F(()=>[l(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])],4))}}),Sa={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ca=i({inheritAttrs:!1,__name:`PopperArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let{forwardRef:t}=On(),n=ya(),r=M(()=>Sa[n.placedSide.value]);return(e,i)=>(v(),ge(`span`,{ref:e=>{a(n).onArrowChange(e)},style:m({position:`absolute`,left:a(n).arrowX?.value?`${a(n).arrowX?.value}px`:void 0,top:a(n).arrowY?.value?`${a(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[a(n).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[a(n).placedSide.value],visibility:a(n).shouldHideArrow.value?`hidden`:void 0})},[be(lr,A(e.$attrs,{ref:a(t),style:{display:`block`},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:F(()=>[l(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}}),wa=i({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return On(),(e,n)=>(v(),k(a(Ca),o(_(t)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))}}),[Ta,Ea]=bn(`TooltipProvider`),Da=i({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:t,skipDelayDuration:n,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:o,content:s}=te(e);On();let c=N(!0),u=N(!1),{start:d,stop:f}=kt(()=>{c.value=!0},n,{immediate:!1});return Ea({isOpenDelayed:c,delayDuration:t,onOpen(){f(),c.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:r,disableClosingTrigger:i,disabled:o,ignoreNonKeyboardFocus:a,content:s}),(e,t)=>l(e.$slots,`default`)}}),Oa=`tooltip.open`,[ka,Aa]=bn(`TooltipRoot`),ja=i({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(t,{emit:n}){let r=t,i=n;On();let o=Ta(),s=M(()=>r.disableHoverableContent??o.disableHoverableContent.value),c=M(()=>r.disableClosingTrigger??o.disableClosingTrigger.value),u=M(()=>r.disabled??o.disabled.value),d=M(()=>r.delayDuration??o.delayDuration.value),f=M(()=>r.ignoreNonKeyboardFocus??o.ignoreNonKeyboardFocus.value),p=nn(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});e(p,e=>{o.onClose&&(e?(o.onOpen(),document.dispatchEvent(new CustomEvent(Oa))):o.onClose())});let m=N(!1),h=N(),g=M(()=>p.value?m.value?`delayed-open`:`instant-open`:`closed`),{start:_,stop:y}=kt(()=>{m.value=!0,p.value=!0},d,{immediate:!1});function b(){y(),m.value=!1,p.value=!0}function x(){y(),p.value=!1}function S(){_()}return Aa({contentId:``,open:p,stateAttribute:g,trigger:h,onTriggerChange(e){h.value=e},onTriggerEnter(){o.isOpenDelayed.value?S():b()},onTriggerLeave(){s.value?x():y()},onOpen:b,onClose:x,disableHoverableContent:s,disableClosingTrigger:c,disabled:u,ignoreNonKeyboardFocus:f}),(e,t)=>(v(),k(a(ar),null,{default:F(()=>[l(e.$slots,`default`,{open:a(p)})]),_:3}))}}),Ma=i({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=ka(),o=Ta(),{forwardRef:s,currentElement:c}=On(),u=M(()=>n.ariaLabel||c.value?.textContent),d=M(()=>{let{ariaLabel:e,...t}=n;return Oe(t,o.content.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1})});return h(()=>{Ft(window,`scroll`,e=>{e.target?.contains(i.trigger.value)&&i.onClose()}),Ft(window,Oa,i.onClose)}),(e,t)=>(v(),k(a(er),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[0]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[1]||=e=>{a(i).disableClosingTrigger.value&&a(i).trigger.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)},onFocusOutside:t[2]||=fe(()=>{},[`prevent`]),onDismiss:t[3]||=e=>a(i).onClose()},{default:F(()=>[be(a(xa),A({ref:a(s),"data-state":a(i).stateAttribute.value},{...e.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:F(()=>[l(e.$slots,`default`),be(a(nr),{id:a(i).contentId,role:`tooltip`},{default:F(()=>[ee(oe(u.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),Na=i({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let t=kn(e),{forwardRef:n,currentElement:r}=On(),{trigger:i,onClose:o}=ka(),s=Ta(),{isPointerInTransit:c,onPointerExit:u}=jn(i,r);return s.isPointerInTransitRef=c,u(()=>{o()}),(e,r)=>(v(),k(Ma,A({ref:a(n)},a(t)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))}}),Pa=i({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=ka(),o=An(n,r),{forwardRef:s}=On();return(e,t)=>(v(),k(a(Wn),{present:e.forceMount||a(i).open.value},{default:F(()=>[(v(),k(de(a(i).disableHoverableContent.value?Ma:Na),A({ref:a(s)},a(o)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Fa=i({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(v(),k(a(tr),o(_(t)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16))}}),Ia=i({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=ka(),r=Ta();n.contentId||=zn(void 0,`reka-tooltip-content`);let{forwardRef:i,currentElement:o}=On(),s=N(!1),c=N(!1),u=M(()=>n.disabled.value?{}:{click:b,focus:_,pointermove:m,pointerleave:g,pointerdown:p,blur:y});h(()=>{n.onTriggerChange(o.value)});function f(){setTimeout(()=>{s.value=!1},1)}function p(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener(`pointerup`,f,{once:!0})}function m(e){e.pointerType!==`touch`&&!c.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),c.value=!0)}function g(){n.onTriggerLeave(),c.value=!1}function _(e){s.value||n.ignoreNonKeyboardFocus.value&&!e.target.matches?.(`:focus-visible`)||n.onOpen()}function y(){n.onClose()}function b(){n.disableClosingTrigger.value||n.onClose()}return(e,r)=>(v(),k(a(or),{"as-child":``,reference:e.reference},{default:F(()=>[be(a(qn),A({ref:a(i),"aria-describedby":a(n).open.value?a(n).contentId:void 0,"data-state":a(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":``},d(u.value)),{default:F(()=>[l(e.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}}),La={__name:`UIcon`,props:{name:{type:null,required:!0},mode:{type:String,required:!1},size:{type:[String,Number],required:!1},customize:{type:[Function,Boolean,null],required:!1}},setup(e){let t=kn(Ct(e,`name`,`mode`,`size`,`customize`));return(n,r)=>{let i=Me;return typeof e.name==`string`?(v(),k(i,o(A({key:0},a(t))),null,16)):(v(),k(de(e.name),{key:1}))}}},Ra=Symbol(`nuxt-ui.field-group`);function za(e){let t=p(Ra,void 0);return{orientation:M(()=>t?.value.orientation),size:M(()=>e?.size??t?.value.size)}}function Ba(e){let t=ke(),n=M(()=>I(e)),r=M(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:M(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing||!!n.value.trailingIcon),leadingIconName:M(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:M(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}function Va(e,t){return Ha(Ua(e),Ua(t))}function Ha(e,t){let n=[],r=new Set([...Object.keys(e.props||{}),...Object.keys(t.props||{})]);if(e.props&&t.props)for(let i of r){let r=e.props[i],a=t.props[i];r&&a?n.push(...Ha(e.props?.[i],t.props?.[i])):(r||a)&&n.push(new Wa((a||r).key,r?`removed`:`added`,a,r))}return r.size===0&&e.hash!==t.hash&&n.push(new Wa((t||e).key,`changed`,t,e)),n}function Ua(e,t=``){if(e&&typeof e!=`object`)return new Ga(t,e,Ae(e));let n={},r=[];for(let i in e)n[i]=Ua(e[i],t?`${t}.${i}`:i),r.push(n[i].hash);return new Ga(t,e,`{${r.join(`:`)}}`,n)}var Wa=class{constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue.toString()}\``}}},Ga=class{constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}};function Ka(e,t){let n={...e};for(let e of t)delete n[e];return n}function qa(e,t,n){typeof t==`string`&&(t=t.split(`.`).map(e=>{let t=Number(e);return Number.isNaN(t)?e:t}));let r=e;for(let e of t){if(r==null)return n;r=r[e]}return r===void 0?n:r}function Ja(e){let t=Number.parseFloat(e);return Number.isNaN(t)?e:t}function Ya(e,t){return!e&&!t?``:[...Array.isArray(e)?e:[e],t].filter(Boolean)}var[Xa,Za]=bn(`UTheme`,`RootContext`);function Qa(e,t){let{ui:n}=Xa({ui:M(()=>({}))});return M(()=>{let r=qa(n.value,e)||{};return Oe(t.ui??{},r)})}var $a=/\s+/g,eo=e=>typeof e!=`string`||!e?e:e.replace($a,` `).trim(),to=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?eo(t.join(` `)):void 0},no=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,L=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},ro=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},io=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=to(e[n],r):e[n]=r}return e},ao=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?ao(r,t):r&&t.push(r)}},oo=(...e)=>{let t=[];ao(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},so=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=oo(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=so(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},co={twMerge:!0,twMergeConfig:{}};function lo(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var uo=lo(),fo=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...co,...n},u=r?.base?to(r.base,t?.base):t?.base,d=r?.variants&&!L(r.variants)?so(a,r.variants):a,f=r?.defaultVariants&&!L(r.defaultVariants)?{...r.defaultVariants,...c}:c;!L(l.twMergeConfig)&&!ro(l.twMergeConfig,uo.cachedTwMergeConfig)&&(uo.didTwMergeConfigChange=!0,uo.cachedTwMergeConfig=l.twMergeConfig);let p=L(r?.slots),m=L(i)?{}:{base:to(t?.base,p&&r?.base),...i},h=p?m:io({...r?.slots},L(m)?{base:t?.base}:m),g=L(r?.compoundVariants)?o:oo(r?.compoundVariants,o),_=t=>{if(L(d)&&L(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||L(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=no(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??no(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!L(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!L(i)||!p){let t={};if(typeof h==`object`&&!L(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?so(e,r):e)}},po=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},mo=(e,t)=>({classGroupId:e,validator:t}),ho=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),go=`-`,_o=[],vo=`arbitrary..`,yo=e=>{let t=So(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return xo(e);let n=e.split(go);return bo(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?po(i,t):t:i||_o}return n[e]||_o}}},bo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=bo(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(go):e.slice(t).join(go),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},xo=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?vo+r:void 0})(),So=e=>{let{theme:t,classGroups:n}=e;return Co(n,t)},Co=(e,t)=>{let n=ho();for(let r in e){let i=e[r];wo(i,n,r,t)}return n},wo=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];To(i,t,n,r)}},To=(e,t,n,r)=>{if(typeof e==`string`){Eo(e,t,n);return}if(typeof e==`function`){Do(e,t,n,r);return}Oo(e,t,n,r)},Eo=(e,t,n)=>{let r=e===``?t:ko(t,e);r.classGroupId=n},Do=(e,t,n,r)=>{if(Ao(e)){wo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(mo(n,e))},Oo=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];wo(o,ko(t,a),n,r)}},ko=(e,t)=>{let n=e,r=t.split(go),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ho(),n.nextPart.set(t,i)),n=i}return n},Ao=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,jo=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Mo=`!`,No=`:`,Po=[],Fo=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Io=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===No){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Mo)?(c=s.slice(0,-1),l=!0):s.startsWith(Mo)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Fo(t,l,c,u)};if(t){let e=t+No,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Fo(Po,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Lo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ro=e=>({cache:jo(e.cacheSize),parseClassName:Io(e),sortModifiers:Lo(e),...yo(e)}),zo=/\s+/,Bo=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(zo),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Mo:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Vo=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ho(n))&&(i&&(i+=` `),i+=r);return i},Ho=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ho(e[r]))&&(n&&(n+=` `),n+=t);return n},Uo=(e,...t)=>{let n,r,i,a,o=o=>(n=Ro(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Bo(e,n);return i(e,a),a};return a=o,(...e)=>a(Vo(...e))},Wo=[],R=e=>{let t=t=>t[e]||Wo;return t.isThemeGetter=!0,t},Go=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ko=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yo=/\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$/,Xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$o=e=>qo.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),es=e=>!!e&&Number.isInteger(Number(e)),ts=e=>e.endsWith(`%`)&&z(e.slice(0,-1)),ns=e=>Jo.test(e),rs=()=>!0,is=e=>Yo.test(e)&&!Xo.test(e),as=()=>!1,os=e=>Zo.test(e),ss=e=>Qo.test(e),cs=e=>!B(e)&&!V(e),ls=e=>ws(e,Os,as),B=e=>Go.test(e),us=e=>ws(e,ks,is),ds=e=>ws(e,As,z),fs=e=>ws(e,Ms,rs),ps=e=>ws(e,js,as),ms=e=>ws(e,Es,as),hs=e=>ws(e,Ds,ss),gs=e=>ws(e,Ns,os),V=e=>Ko.test(e),_s=e=>Ts(e,ks),vs=e=>Ts(e,js),ys=e=>Ts(e,Es),bs=e=>Ts(e,Os),xs=e=>Ts(e,Ds),Ss=e=>Ts(e,Ns,!0),Cs=e=>Ts(e,Ms,!0),ws=(e,t,n)=>{let r=Go.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ts=(e,t,n=!1)=>{let r=Ko.exec(e);return r?r[1]?t(r[1]):n:!1},Es=e=>e===`position`||e===`percentage`,Ds=e=>e===`image`||e===`url`,Os=e=>e===`length`||e===`size`||e===`bg-size`,ks=e=>e===`length`,As=e=>e===`number`,js=e=>e===`family-name`,Ms=e=>e===`number`||e===`weight`,Ns=e=>e===`shadow`,Ps=()=>{let e=R(`color`),t=R(`font`),n=R(`text`),r=R(`font-weight`),i=R(`tracking`),a=R(`leading`),o=R(`breakpoint`),s=R(`container`),c=R(`spacing`),l=R(`radius`),u=R(`shadow`),d=R(`inset-shadow`),f=R(`text-shadow`),p=R(`drop-shadow`),m=R(`blur`),h=R(`perspective`),g=R(`aspect`),_=R(`ease`),v=R(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),V,B],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[V,B,c],T=()=>[$o,`full`,`auto`,...w()],ee=()=>[es,`none`,`subgrid`,V,B],te=()=>[`auto`,{span:[`full`,es,V,B]},es,V,B],E=()=>[es,`auto`,V,B],ne=()=>[`auto`,`min`,`max`,`fr`,V,B],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],k=()=>[$o,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ie=()=>[$o,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],A=()=>[$o,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,V,B],ae=()=>[...b(),ys,ms,{position:[V,B]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,bs,ls,{size:[V,B]}],ce=()=>[ts,_s,us],M=()=>[``,`none`,`full`,l,V,B],N=()=>[``,z,_s,us],le=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[z,ts,ys,ms],de=()=>[``,`none`,m,V,B],F=()=>[`none`,z,V,B],fe=()=>[`none`,z,V,B],pe=()=>[z,V,B],me=()=>[$o,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ns],breakpoint:[ns],color:[rs],container:[ns],"drop-shadow":[ns],ease:[`in`,`out`,`in-out`],font:[cs],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ns],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ns],shadow:[ns],spacing:[`px`,z],text:[ns],"text-shadow":[ns],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,$o,B,V,g]}],container:[`container`],columns:[{columns:[z,B,V,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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`],sr:[`sr-only`,`not-sr-only`],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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[es,`auto`,V,B]}],basis:[{basis:[$o,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[z,$o,`auto`,`initial`,`none`,B]}],grow:[{grow:[``,z,V,B]}],shrink:[{shrink:[``,z,V,B]}],order:[{order:[es,`first`,`last`,`none`,V,B]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...A()]}],"min-block-size":[{"min-block":[`auto`,...A()]}],"max-block-size":[{"max-block":[`none`,...A()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,_s,us]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Cs,fs]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ts,B]}],"font-family":[{font:[vs,ps,t]}],"font-features":[{"font-features":[B]}],"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-fractions`],tracking:[{tracking:[i,V,B]}],"line-clamp":[{"line-clamp":[z,`none`,V,ds]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,V,B]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,V,B]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...le(),`wavy`]}],"text-decoration-thickness":[{decoration:[z,`from-font`,`auto`,V,us]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[z,`auto`,V,B]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,V,B]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,V,B]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},es,V,B],radial:[``,V,B],conic:[es,V,B]},xs,hs]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...le(),`hidden`,`none`]}],"divide-style":[{divide:[...le(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...le(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[z,V,B]}],"outline-w":[{outline:[``,z,_s,us]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Ss,gs]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ss,gs]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[z,us]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ss,gs]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[z,V,B]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[V,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,V,B]}],filter:[{filter:[``,`none`,V,B]}],blur:[{blur:de()}],brightness:[{brightness:[z,V,B]}],contrast:[{contrast:[z,V,B]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ss,gs]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,z,V,B]}],"hue-rotate":[{"hue-rotate":[z,V,B]}],invert:[{invert:[``,z,V,B]}],saturate:[{saturate:[z,V,B]}],sepia:[{sepia:[``,z,V,B]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,V,B]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[z,V,B]}],"backdrop-contrast":[{"backdrop-contrast":[z,V,B]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,z,V,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,V,B]}],"backdrop-invert":[{"backdrop-invert":[``,z,V,B]}],"backdrop-opacity":[{"backdrop-opacity":[z,V,B]}],"backdrop-saturate":[{"backdrop-saturate":[z,V,B]}],"backdrop-sepia":[{"backdrop-sepia":[``,z,V,B]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,V,B]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[z,`initial`,V,B]}],ease:[{ease:[`linear`,`initial`,_,V,B]}],delay:[{delay:[z,V,B]}],animate:[{animate:[`none`,v,V,B]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,V,B]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[V,B,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],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`,V,B]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,V,B]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[z,_s,us,ds]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`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-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`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`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Fs=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(Is(e,`cacheSize`,t),Is(e,`prefix`,n),Is(e,`experimentalParseClassName`,r),Ls(e.theme,a.theme),Ls(e.classGroups,a.classGroups),Ls(e.conflictingClassGroups,a.conflictingClassGroups),Ls(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Is(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),Rs(e.theme,i.theme),Rs(e.classGroups,i.classGroups),Rs(e.conflictingClassGroups,i.conflictingClassGroups),Rs(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),zs(e,i,`orderSensitiveModifiers`),e),Is=(e,t,n)=>{n!==void 0&&(e[t]=n)},Ls=(e,t)=>{if(t)for(let n in t)Is(e,n,t[n])},Rs=(e,t)=>{if(t)for(let n in t)zs(e,t,n)},zs=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Bs=(e,...t)=>typeof e==`function`?Uo(Ps,e,...t):Uo(()=>Fs(Ps(),e),...t),Vs=Uo(Ps),Hs=e=>L(e)?Vs:Bs({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Us=(e,t)=>{let n=to(e);return!n||!(t?.twMerge??!0)?n:((!uo.cachedTwMerge||uo.didTwMergeConfigChange)&&(uo.didTwMergeConfigChange=!1,uo.cachedTwMerge=Hs(uo.cachedTwMergeConfig)),uo.cachedTwMerge(n)||void 0)},{createTV:Ws,tv:Gs}=fo((...e)=>t=>Us(e,t)),Ks=Ws(je.ui?.tv),qs=Symbol(`nuxt-ui.avatar-group`);function Js(e){let t=p(qs,void 0),n=M(()=>e.size??t?.value.size);return u(qs,M(()=>({size:n.value}))),{size:n}}var Ys={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},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`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},Xs=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:t({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let t=e,n=b(e,`show`,{type:Boolean,default:!0}),{size:r}=Js(t),i=ke(),s=Qa(`chip`,t),u=M(()=>Ks({extend:Ks(Ys),...i.ui?.chip||{}})({color:t.color,size:r.value,position:t.position,inset:t.inset,standalone:t.standalone}));return(r,i)=>(v(),k(a(qn),{as:e.as,"data-slot":`root`,class:c(u.value.root({class:[a(s)?.root,t.class]}))},{default:F(()=>[be(a(Gn),o(_(r.$attrs)),{default:F(()=>[l(r.$slots,`default`)]),_:3},16),n.value?(v(),ge(`span`,{key:0,"data-slot":`base`,class:c(u.value.base({class:a(s)?.base}))},[l(r.$slots,`content`,{},()=>[ee(oe(e.text),1)])],2)):C(``,!0)]),_:3},8,[`as`,`class`]))}}),Zs={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium leading-none text-muted truncate`,icon:`text-muted shrink-0`},variants:{size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`}},Qs=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(t){let n=t,r=M(()=>typeof n.as==`string`||typeof n.as?.render==`function`?{root:n.as}:Oe(n.as,{root:`span`})),i=M(()=>n.text||(n.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=ke(),u=Qa(`avatar`,n),{size:d}=Js(n),f=M(()=>Ks({extend:Ks(Zs),...s.ui?.avatar||{}})({size:d.value})),p=M(()=>f.value.root({class:[u.value?.root,n.class]})),m=M(()=>{let e=p.value.split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),h=N(!1);e(()=>n.src,()=>{h.value&&=!1});function g(){h.value=!0}return(e,s)=>(v(),k(de(n.chip?Xs:a(qn)),A({as:r.value.root},n.chip?typeof n.chip==`object`?{inset:!0,...n.chip}:{inset:!0}:{},{"data-slot":`root`,class:p.value,style:n.style}),{default:F(()=>[t.src&&!h.value?(v(),k(de(r.value.img||a(`img`)),A({key:0,src:t.src,alt:t.alt,width:m.value,height:m.value},e.$attrs,{"data-slot":`image`,class:f.value.image({class:a(u)?.image}),onError:g}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(v(),k(a(Gn),o(A({key:1},e.$attrs)),{default:F(()=>[l(e.$slots,`default`,{},()=>[t.icon?(v(),k(La,{key:0,name:t.icon,"data-slot":`icon`,class:c(f.value.icon({class:a(u)?.icon}))},null,8,[`name`,`class`])):(v(),ge(`span`,{key:1,"data-slot":`fallback`,class:c(f.value.fallback({class:a(u)?.fallback}))},oe(i.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`class`,`style`]))}}),$s=Symbol(`nuxt-ui.portal-target`);function ec(e){let t=p($s,void 0),n=M(()=>e.value===!0?t?.value:e.value),r=M(()=>typeof n.value==`boolean`?!n.value:!1),i=M(()=>typeof n.value==`boolean`?`body`:n.value);return M(()=>({to:i.value,disabled:r.value}))}var tc={meta:``,ctrl:``,alt:``,win:`⊞`,command:`⌘`,shift:`⇧`,control:`⌃`,option:`⌥`,enter:`↵`,delete:`⌦`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,capslock:`⇪`,arrowup:`↑`,arrowright:`→`,arrowdown:`↓`,arrowleft:`←`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`},nc=yt(()=>{let e=M(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=O({meta:` `,alt:` `,ctrl:` `});h(()=>{t.meta=e.value?tc.command:`Ctrl`,t.ctrl=e.value?tc.control:`Ctrl`,t.alt=e.value?tc.option:`Alt`});function n(e){if(e)return[`meta`,`alt`,`ctrl`].includes(e)?t[e]:tc[e]||e}return{macOS:e,getKbdKey:n}}),rc={base:`inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase`,variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{sm:`h-4 min-w-[16px] text-[10px]`,md:`h-5 min-w-[20px] text-[11px]`,lg:`h-6 min-w-[24px] text-[12px]`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`}],defaultVariants:{variant:`outline`,color:`neutral`,size:`md`}},ic={__name:`UKbd`,props:{as:{type:null,required:!1,default:`kbd`},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=e,{getKbdKey:n}=nc(),r=ke(),i=Qa(`kbd`,t),o=M(()=>Ks({extend:Ks(rc),...r.ui?.kbd||{}}));return(r,s)=>(v(),k(a(qn),{as:e.as,class:c(o.value({class:[a(i)?.base,t.class],color:t.color,variant:t.variant,size:t.size}))},{default:F(()=>[l(r.$slots,`default`,{},()=>[ee(oe(a(n)(e.value)),1)])]),_:3},8,[`as`,`class`]))}},ac={slots:{content:`flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto`,arrow:`fill-bg stroke-default`,text:`truncate`,kbds:`hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,kbdsSize:`sm`}},oc={__name:`UTooltip`,props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=S(),s=ke(),u=Qa(`tooltip`,n),d=Ta(),f=An(Ct(n,`defaultOpen`,`open`,`delayDuration`,`disableHoverableContent`,`disableClosingTrigger`,`ignoreNonKeyboardFocus`),r),p=ec(xe(()=>n.portal)),m=xe(()=>Oe(n.content,d.content.value,{side:`bottom`,sideOffset:8,collisionPadding:8})),h=xe(()=>Oe(n.arrow,{rounded:!0})),g=M(()=>Ks({extend:Ks(ac),...s.ui?.tooltip||{}})({side:m.value.side}));return(t,r)=>(v(),k(a(ja),A(a(f),{disabled:!(e.text||e.kbds?.length||i.content)||n.disabled}),{default:F(({open:r})=>[i.default||e.reference?(v(),k(a(Ia),A({key:0},t.$attrs,{"as-child":``,reference:e.reference,class:n.class}),{default:F(()=>[l(t.$slots,`default`,{open:r})]),_:2},1040,[`reference`,`class`])):C(``,!0),be(a(Fa),o(_(a(p))),{default:F(()=>[be(a(Pa),A(m.value,{"data-slot":`content`,class:g.value.content({class:[!i.default&&n.class,a(u)?.content]})}),{default:F(()=>[l(t.$slots,`content`,{ui:g.value},()=>[e.text?(v(),ge(`span`,{key:0,"data-slot":`text`,class:c(g.value.text({class:a(u)?.text}))},oe(e.text),3)):C(``,!0),e.kbds?.length?(v(),ge(`span`,{key:1,"data-slot":`kbds`,class:c(g.value.kbds({class:a(u)?.kbds}))},[(v(!0),ge(se,null,y(e.kbds,(e,t)=>(v(),k(ic,A({key:t,size:a(u)?.kbdsSize||g.value.kbdsSize()},{ref_for:!0},typeof e==`string`?{value:e}:e),null,16,[`size`]))),128))],2)):C(``,!0)]),e.arrow?(v(),k(a(wa),A({key:0},h.value,{"data-slot":`arrow`,class:g.value.arrow({class:a(u)?.arrow})}),null,16,[`class`])):C(``,!0)]),_:3},16,[`class`])]),_:3},16)]),_:3},16,[`disabled`]))}},sc=Symbol(`nuxt-ui.form-options`),cc=Symbol(`nuxt-ui.form-events`),lc=Symbol(`nuxt-ui.form-field`),uc=Symbol(`nuxt-ui.input-id`),dc=Symbol(`nuxt-ui.form-loading`);function fc(e,t){let n=p(sc,void 0),r=p(cc,void 0),i=p(lc,void 0),a=p(uc,void 0);u(lc,void 0),i&&a&&(t?.bind===!1?a.value=void 0:e?.id&&(a.value=e?.id));function o(e,t,n){r&&i&&t&&r.emit({type:e,name:t,eager:n})}function s(){o(`blur`,i?.value.name)}function c(){o(`focus`,i?.value.name)}function l(){o(`change`,i?.value.name)}let d=Tt(()=>{o(`input`,i?.value.name,!t?.deferInputValidation||i?.value.eagerValidation)},i?.value.validateOnInputDelay??n?.value.validateOnInputDelay??0);return{id:M(()=>e?.id??a?.value),name:M(()=>e?.name??i?.value.name),size:M(()=>e?.size??i?.value.size),color:M(()=>i?.value.error?`error`:e?.color),highlight:M(()=>i?.value.error?!0:e?.highlight),disabled:M(()=>n?.value.disabled||e?.disabled),emitFormBlur:s,emitFormInput:d,emitFormChange:l,emitFormFocus:c,ariaAttrs:M(()=>{if(!i?.value)return;let e=[`error`,`hint`,`description`,`help`].filter(e=>i?.value?.[e]).map(e=>`${i?.value.ariaId}-${e}`)||[],t={"aria-invalid":!!i?.value.error};return e.length>0&&(t[`aria-describedby`]=e.join(` `)),t})}}var pc=`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`);function mc(e){let t=Object.keys(e),n=t.filter(e=>e.startsWith(`aria-`)),r=t.filter(e=>e.startsWith(`data-`));return Ct(e,...pc,...n,...r)}function hc(e,t){let n=Va(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set);return Ne(Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e))))}var gc={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:String,required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let t=e;function n(e){if(t.disabled){e.stopPropagation(),e.preventDefault();return}if(t.onClick)for(let n of Array.isArray(t.onClick)?t.onClick:[t.onClick])n(e);t.href&&t.navigate&&!t.isExternal&&t.navigate(e)}return(t,r)=>(v(),k(a(qn),A(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:F(()=>[l(t.$slots,`default`)]),_:3},16,[`rel`,`target`]))}},_c={base:`focus-visible:outline-primary`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]},vc=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){let t=e,n=De(),r=ke(),i=kn(St(t,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`class`)),s=M(()=>Ks({extend:Ks(_c),...Oe({variants:{active:{true:Ya(r.ui?.link?.variants?.active?.true,t.activeClass),false:Ya(r.ui?.link?.variants?.active?.false,t.inactiveClass)}}},r.ui?.link||{})})),c=M(()=>t.to??t.href);function u({route:e,isActive:r,isExactActive:i}){if(t.active!==void 0)return t.active;if(t.exactQuery===`partial`){if(!hc(e.query,n.query))return!1}else if(t.exactQuery===!0&&!Ne(e.query,n.query))return!1;return t.exactHash&&e.hash!==n.hash?!1:!!(t.exact&&i||!t.exact&&r)}function d({route:e,isActive:n,isExactActive:r}){let i=u({route:e,isActive:n,isExactActive:r});return t.raw?[t.class,i?t.activeClass:t.inactiveClass]:s.value({class:t.class,active:i,disabled:t.disabled})}return(n,r)=>{let s=Pe;return v(),k(s,A(a(i),{to:c.value,custom:``}),{default:F(({href:r,navigate:i,route:a,isActive:s,isExactActive:c,...f})=>[e.custom?l(n.$slots,`default`,o(A({key:0},{...n.$attrs,...e.exact&&c?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:r,navigate:i,rel:f.rel,target:f.target,isExternal:f.isExternal,active:u({route:a,isActive:s,isExactActive:c})}))):(v(),k(gc,A({key:1},{...n.$attrs,...e.exact&&c?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:r,navigate:i,rel:f.rel,target:f.target,isExternal:f.isExternal},{class:d({route:a,isActive:s,isExactActive:c})}),{default:F(()=>[l(n.$slots,`default`,{active:u({route:a,isActive:s,isExactActive:c})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])}}}),yc={slots:{base:[`rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75`,`transition-colors`],label:`truncate`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailingIcon:`shrink-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``,ghost:``,link:``},size:{xs:{base:`px-2 py-1 text-xs gap-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-xs gap-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-sm gap-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-sm gap-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},block:{true:{base:`w-full justify-center`,trailingIcon:`ms-auto`}},square:{true:``},leading:{true:``},trailing:{true:``},loading:{true:``},active:{true:{base:``},false:{base:``}}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary hover:bg-primary/75 active:bg-primary/75 disabled:bg-primary aria-disabled:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary hover:bg-secondary/75 active:bg-secondary/75 disabled:bg-secondary aria-disabled:bg-secondary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success hover:bg-success/75 active:bg-success/75 disabled:bg-success aria-disabled:bg-success focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info hover:bg-info/75 active:bg-info/75 disabled:bg-info aria-disabled:bg-info focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning hover:bg-warning/75 active:bg-warning/75 disabled:bg-warning aria-disabled:bg-warning focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error hover:bg-error/75 active:bg-error/75 disabled:bg-error aria-disabled:bg-error focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary hover:bg-primary/10 active:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary hover:bg-secondary/10 active:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success hover:bg-success/10 active:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info hover:bg-info/10 active:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning hover:bg-warning/10 active:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error hover:bg-error/10 active:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10 hover:bg-primary/15 active:bg-primary/15 focus:outline-none focus-visible:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 focus:outline-none focus-visible:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10 hover:bg-success/15 active:bg-success/15 focus:outline-none focus-visible:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10 hover:bg-info/15 active:bg-info/15 focus:outline-none focus-visible:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10 hover:bg-warning/15 active:bg-warning/15 focus:outline-none focus-visible:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10 hover:bg-error/15 active:bg-error/15 focus:outline-none focus-visible:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10 hover:bg-primary/15 active:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10 hover:bg-success/15 active:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-success`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10 hover:bg-info/15 active:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-info`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10 hover:bg-warning/15 active:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-warning`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10 hover:bg-error/15 active:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-error`},{color:`primary`,variant:`ghost`,class:`text-primary hover:bg-primary/10 active:bg-primary/10 focus:outline-none focus-visible:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`secondary`,variant:`ghost`,class:`text-secondary hover:bg-secondary/10 active:bg-secondary/10 focus:outline-none focus-visible:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`success`,variant:`ghost`,class:`text-success hover:bg-success/10 active:bg-success/10 focus:outline-none focus-visible:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`info`,variant:`ghost`,class:`text-info hover:bg-info/10 active:bg-info/10 focus:outline-none focus-visible:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`warning`,variant:`ghost`,class:`text-warning hover:bg-warning/10 active:bg-warning/10 focus:outline-none focus-visible:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`error`,variant:`ghost`,class:`text-error hover:bg-error/10 active:bg-error/10 focus:outline-none focus-visible:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`primary`,variant:`link`,class:`text-primary hover:text-primary/75 active:text-primary/75 disabled:text-primary aria-disabled:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary`},{color:`secondary`,variant:`link`,class:`text-secondary hover:text-secondary/75 active:text-secondary/75 disabled:text-secondary aria-disabled:text-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary`},{color:`success`,variant:`link`,class:`text-success hover:text-success/75 active:text-success/75 disabled:text-success aria-disabled:text-success focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success`},{color:`info`,variant:`link`,class:`text-info hover:text-info/75 active:text-info/75 disabled:text-info aria-disabled:text-info focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info`},{color:`warning`,variant:`link`,class:`text-warning hover:text-warning/75 active:text-warning/75 disabled:text-warning aria-disabled:text-warning focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning`},{color:`error`,variant:`link`,class:`text-error hover:text-error/75 active:text-error/75 disabled:text-error aria-disabled:text-error focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted`},{color:`neutral`,variant:`ghost`,class:`text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent`},{color:`neutral`,variant:`link`,class:`text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted`},{size:`xs`,square:!0,class:`p-1`},{size:`sm`,square:!0,class:`p-1.5`},{size:`md`,square:!0,class:`p-1.5`},{size:`lg`,square:!0,class:`p-2`},{size:`xl`,square:!0,class:`p-2`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`}},bc={__name:`UButton`,props:{label:{type:String,required:!1},color:{type:null,required:!1},activeColor:{type:null,required:!1},variant:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){let t=e,n=S(),r=ke(),i=Qa(`button`,t),{orientation:o,size:s}=za(t),u=kn(mc(t)),d=N(!1),f=p(dc,void 0);async function m(e){d.value=!0;let n=Array.isArray(t.onClick)?t.onClick:[t.onClick];try{await Promise.all(n.map(t=>t?.(e)))}finally{d.value=!1}}let h=M(()=>t.loading||t.loadingAuto&&(d.value||f?.value&&t.type===`submit`)),{isLeading:g,isTrailing:_,leadingIconName:y,trailingIconName:b}=Ba(M(()=>({...t,loading:h.value}))),x=M(()=>Ks({extend:Ks(yc),...Oe({variants:{active:{true:{base:Ya(r.ui?.button?.variants?.active?.true?.base,t.activeClass)},false:{base:Ya(r.ui?.button?.variants?.active?.false?.base,t.inactiveClass)}}}},r.ui?.button||{})})({color:t.color,variant:t.variant,size:s.value,loading:h.value,block:t.block,square:t.square||!n.default&&!t.label,leading:g.value,trailing:_.value,fieldGroup:o.value}));return(n,r)=>(v(),k(vc,A({type:e.type,disabled:e.disabled||h.value},a(Ka)(a(u),[`type`,`disabled`,`onClick`]),{custom:``}),{default:F(({active:r,...o})=>[be(gc,A(o,{"data-slot":`base`,class:x.value.base({class:[a(i)?.base,t.class],active:r,...r&&e.activeVariant?{variant:e.activeVariant}:{},...r&&e.activeColor?{color:e.activeColor}:{}}),onClick:m}),{default:F(()=>[l(n.$slots,`leading`,{ui:x.value},()=>[a(g)&&a(y)?(v(),k(La,{key:0,name:a(y),"data-slot":`leadingIcon`,class:c(x.value.leadingIcon({class:a(i)?.leadingIcon,active:r}))},null,8,[`name`,`class`])):e.avatar?(v(),k(Qs,A({key:1,size:a(i)?.leadingAvatarSize||x.value.leadingAvatarSize()},e.avatar,{"data-slot":`leadingAvatar`,class:x.value.leadingAvatar({class:a(i)?.leadingAvatar,active:r})}),null,16,[`size`,`class`])):C(``,!0)]),l(n.$slots,`default`,{ui:x.value},()=>[e.label!==void 0&&e.label!==null?(v(),ge(`span`,{key:0,"data-slot":`label`,class:c(x.value.label({class:a(i)?.label,active:r}))},oe(e.label),3)):C(``,!0)]),l(n.$slots,`trailing`,{ui:x.value},()=>[a(_)&&a(b)?(v(),k(La,{key:0,name:a(b),"data-slot":`trailingIcon`,class:c(x.value.trailingIcon({class:a(i)?.trailingIcon,active:r}))},null,8,[`name`,`class`])):C(``,!0)])]),_:2},1040,[`class`])]),_:3},16,[`type`,`disabled`]))}},xc,Sc=[];function Cc(e){if(Sc.push(e),!(typeof window>`u`))return window.__NUXT_DEVTOOLS__&&Sc.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,`__NUXT_DEVTOOLS__`,{set(e){e&&Sc.forEach(t=>t(e))},get(){return xc.value},configurable:!0}),()=>{Sc.splice(Sc.indexOf(e),1)}}var wc=N(),Tc=N(),Ec=N(`dark`);function Dc(t={}){window.parent!==window&&Cc(async e=>{if(ln.value=!0,wc.value=e.host.app.$fetch,D(()=>{Ec.value=e.host.app.colorMode.value}),Tc.value=e.devtools,t.onConnected?.(e),t.onRouteChange){let n=e.host.nuxt.vueApp.config.globalProperties?.$route;t.onRouteChange(n);let r=e.host.nuxt.$router.afterEach(e=>{t.onRouteChange(e)});e.host.nuxt.hook(`app:unmount`,r)}}),e(()=>cn.value,e=>{e&&!ln.value&&(wc.value=$e.create({baseURL:e}),Ec.value=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`,dn())},{immediate:!0})}var H=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Oc(e){return kc(e)}function kc(e){return Array.isArray(e)?Ac(e):e instanceof RegExp?e:typeof e==`object`?jc(e):e}function Ac(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=kc(e[n]);return t}function jc(e){let t={};for(let n in e)t[n]=kc(e[n]);return t}function Mc(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Nc(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Nc(e.substring(0,e.length-1)):e.substr(~t+1)}var Pc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fc=class{static hasCaptures(e){return e===null?!1:(Pc.lastIndex=0,Pc.test(e))}static replaceCaptures(e,t,n){return e.replace(Pc,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Ic(e,t){return e<t?-1:e>t?1:0}function Lc(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Ic(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Rc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function zc(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Bc=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Vc=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Kc(e),t)}static createFromParsedTheme(e,t){return Jc(e,t)}_cachedMatchRoot=new Bc(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Uc(e.parent,t.parentScopes));return n?new Gc(n.fontStyle,n.foreground,n.background):null}},Hc=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Uc(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Wc(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Wc(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Gc=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Kc(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&Rc(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Rc(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new qc(l,u,e,o,s,c)}}return n}var qc=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},U=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(U||{});function Jc(e,t){e.sort((e,t)=>{let n=Ic(e.scope,t.scope);return n!==0||(n=Lc(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Yc(t),o=new Gc(n,a.getId(r),a.getId(i)),s=new Qc(new Zc(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Vc(a,o,s)}var Yc=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Xc=Object.freeze([]),Zc=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Xc,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Qc=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Zc.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Lc(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Zc(e,t,n,r,i))}},$c=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=tl(r)),i!==null&&(u=i?1:0),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function el(e){return e}function tl(e){return e}function nl(e,t){let n=[],r=il(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(rl(i)){let e=[];do e.push(i),i=r.next();while(rl(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function rl(e){return!!e&&!!e.match(/[\w\.:]+/)}function il(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function al(e){typeof e.dispose==`function`&&e.dispose()}var ol=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},sl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},cl=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ll=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ol(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new cl;for(let n of e)ul(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ol){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ul(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof ol?fl({baseGrammar:a,selfGrammar:i},r):dl(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ol(e))}function dl(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];pl([r],t,n)}}function fl(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&pl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&pl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function pl(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Mc({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&pl(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=yl(i);switch(a.kind){case 0:fl({...t,selfGrammar:t.baseGrammar},n);break;case 1:fl(t,n);break;case 2:dl(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?dl(a.ruleName,i,n):fl(i,n)}else a.kind===4?n.add(new sl(a.scopeName,a.ruleName)):n.add(new ol(a.scopeName));break}}}var ml=class{kind=0},hl=class{kind=1},gl=class{constructor(e){this.ruleName=e}kind=2},_l=class{constructor(e){this.scopeName=e}kind=3},vl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function yl(e){if(e===`$base`)return new ml;if(e===`$self`)return new hl;let t=e.indexOf(`#`);return t===-1?new _l(e):t===0?new gl(e.substring(1)):new vl(e.substring(0,t),e.substring(t+1))}var bl=/\\(\d+)/,xl=/\\(\d+)/g,Sl=-1,Cl=-2;function wl(e){return e}function Tl(e){return e}var El=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Fc.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Fc.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Nc(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Fc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fc.replaceCaptures(this._contentName,e,t)}},Dl=class extends El{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Ol=class extends El{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Nl(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kl=class extends El{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Al=class extends El{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Nl(i,this.id),this.beginCaptures=a,this._end=new Nl(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pl;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},jl=class extends El{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Nl(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Nl(o,Cl),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pl;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Pl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},Ml=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Dl(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Ol(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Mc({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new kl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new jl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Al(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=yl(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof kl||e instanceof Al||e instanceof jl)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Nl=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=bl.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return xl.lastIndex=0,this.source.replace(xl,(e,t)=>zc(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Pl=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){return this._cached||=new Fl(e,this._items.map(e=>e.source),this._items.map(e=>e.ruleId)),this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Fl(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Fl=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
4
4
|
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Il=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ll=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Il(e,8),this._embeddedLanguagesMatcher=new Rl(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Il(0,0);_getBasicScopeAttributes=new Bc(e=>new Il(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Rl=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>zc(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var zl=!1,Bl=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Vl(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Hl(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new Bl(i,!0);f()}return new Bl(i,!1);function f(){let o=Ul(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Sl){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),Yl(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Al){let r=o;Yl(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof jl){let r=o;Yl(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(Yl(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Hl(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof jl&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=ql(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Cl){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),Yl(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Ul(e,t,n,r,i,a){let o=Wl(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Gl(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function Wl(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Kl(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Gl(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=Kl(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Kl(e,t,n,r,i){return zl?{ruleScanner:e.compile(t,n),findOptions:Jl(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ql(e,t,n,r,i){return zl?{ruleScanner:e.compileWhile(t,n),findOptions:Jl(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Jl(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Yl(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Vl(e,p,n&&d.start===0,d.start,f,i,!1,0),al(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Xl(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Xl=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Zl(e,t,n,r,i,a,o,s){return new tu(e,t,n,r,i,a,o,s)}function Ql(e,t,n,r,i){let a=nl(t,$l),o=Ml.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function $l(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(eu(t[r],e))return n=r+1,!0;return!1})}function eu(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var tu=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Ll(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=nu(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=nl(e,$l);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)Ql(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&Ql(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(wl(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Tl(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=nu(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Ml.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===iu.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=$c.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?ru.createRootAndLookUpScopeName(a,r,this):ru.createRoot(`unknown`,r),t=new iu(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
5
5
|
`;let a=this.createOnigString(e),o=a.content.length,s=new ou(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Vl(this,a,i,0,t,s,!0,r);return al(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function nu(e,t){return e=Oc(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ru=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Hc.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Hc(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Hc(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),$c.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},iu=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ru.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Tl(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ru.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,wl(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ru.fromExtension(r,n.contentNameScopesList))}},au=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):nl(e,$l).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>nl(e,$l).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ou=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=$c.set(n,0,el(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=$c.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},su=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,Zl(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},cu=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new su(Vc.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Vc.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new au(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new ll(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},lu=iu.NULL;function uu(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function du(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fu(e){return Array.isArray(e)?e:[e]}async function pu(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function mu(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function hu(e){return e===`ansi`||mu(e)}function gu(e){return e===`none`}function _u(e){return gu(e)}function vu(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var yu={light:`#333333`,dark:`#bbbbbb`},bu={light:`#fffffe`,dark:`#1e1e1e`},xu=`__shiki_resolved`;function Su(e){if(e?.[xu])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?yu.light:yu.dark,n||=t.type===`light`?bu.light:bu.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,xu,{enumerable:!1,writable:!1,value:!0}),t}async function Cu(e){return Array.from(new Set((await Promise.all(e.filter(e=>!hu(e)).map(async e=>await pu(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function wu(e){return(await Promise.all(e.map(async e=>_u(e)?null:Su(await pu(e))))).filter(e=>!!e)}function Tu(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new H(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Eu=class extends cu{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Su(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Vc.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Tu(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new H(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Du=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Ou=0;function ku(e){Ou+=1,e.warnings!==!1&&Ou>=10&&Ou%10==0&&console.warn(`[Shiki] ${Ou} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new H("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Su),i=new Eu(new Du(e.engine,n),r,n,e.langAlias),a;function o(t){return Tu(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new H(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new H(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Cu(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await wu(e))}function g(){if(t)throw new H(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Ou)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Au(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([wu(e.themes||[]),Cu(e.langs||[]),e.engine]);return ku({...e,themes:t,langs:n,engine:r})}var ju=new WeakMap;function Mu(e,t){ju.set(e,t)}function Nu(e){return ju.get(e)}var Pu=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(fu(n).map(e=>[e,lu])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Fu(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Fu(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Iu(e,t){if(!(e instanceof Pu))throw new H(`Invalid grammar state`);return e.getInternalStack(t)}function Lu(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(mu(e.resolveLangAlias(n.lang||`text`))||gu(r))return vu(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new H(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new H(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return zu(t,o,i,a,n)}function Ru(...e){if(e.length===2)return Nu(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(mu(i)||gu(a))throw new H(`Plain language does not have grammar state`);if(i===`ansi`)throw new H(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Pu(Bu(n,c,o,s,r).stateStack,c.name,o.name)}function zu(e,t,n,r,i){let a=Bu(e,t,n,r,i),o=new Pu(a.stateStack,t.name,n.name);return Mu(a.tokens,o),a.tokens}function Bu(e,t,n,r,i){let a=uu(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=vu(e),l=i.grammarState?Iu(i.grammarState,n.name)??lu:i.grammarContextCode==null?lu:Bu(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=du(r[$c.getForeground(s)],a),l=$c.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?Vu(t.scopes):Hu(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function Vu(e){return e.map(e=>({scopeName:e}))}function Hu(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Gu(e,i,t.slice(0,r))}}return n}function Uu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Wu(e,t,n){if(!Uu(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Uu(e[r],n[i])&&--r,--i;return r===-1}function Gu(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Wu(e,t,n)){r.push(a);break}return r}function Ku(e,t,n,r=Lu){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Nu(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=qu(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Pu(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Mu(s,c),s}function qu(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var Ju=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Yu=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Yu.prototype.normal={},Yu.prototype.property={},Yu.prototype.space=void 0;function Xu(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Yu(n,r,t)}function Zu(e){return e.toLowerCase()}var W=class{constructor(e,t){this.attribute=t,this.property=e}};W.prototype.attribute=``,W.prototype.booleanish=!1,W.prototype.boolean=!1,W.prototype.commaOrSpaceSeparated=!1,W.prototype.commaSeparated=!1,W.prototype.defined=!1,W.prototype.mustUseProperty=!1,W.prototype.number=!1,W.prototype.overloadedBoolean=!1,W.prototype.property=``,W.prototype.spaceSeparated=!1,W.prototype.space=void 0;var Qu=j({boolean:()=>G,booleanish:()=>K,commaOrSpaceSeparated:()=>nd,commaSeparated:()=>td,number:()=>q,overloadedBoolean:()=>ed,spaceSeparated:()=>J}),$u=0,G=rd(),K=rd(),ed=rd(),q=rd(),J=rd(),td=rd(),nd=rd();function rd(){return 2**++$u}var id=Object.keys(Qu),ad=class extends W{constructor(e,t,n,r){let i=-1;if(super(e,t),od(this,`space`,r),typeof n==`number`)for(;++i<id.length;){let e=id[i];od(this,id[i],(n&Qu[e])===Qu[e])}}};ad.prototype.defined=!0;function od(e,t,n){n&&(e[t]=n)}function sd(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ad(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Zu(r)]=r,n[Zu(a.attribute)]=r}return new Yu(t,n,e.space)}var cd=sd({properties:{ariaActiveDescendant:null,ariaAtomic:K,ariaAutoComplete:null,ariaBusy:K,ariaChecked:K,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:K,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:K,ariaFlowTo:J,ariaGrabbed:K,ariaHasPopup:null,ariaHidden:K,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:q,ariaLive:null,ariaModal:K,ariaMultiLine:K,ariaMultiSelectable:K,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:K,ariaReadOnly:K,ariaRelevant:null,ariaRequired:K,ariaRoleDescription:J,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:K,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ld(e,t){return t in e?e[t]:t}function ud(e,t){return ld(e,t.toLowerCase())}var dd=sd({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:td,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:J,autoFocus:G,autoPlay:G,blocking:J,capture:null,charSet:null,checked:G,cite:null,className:J,cols:q,colSpan:null,content:null,contentEditable:K,controls:G,controlsList:J,coords:q|td,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:ed,draggable:K,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:J,height:q,hidden:ed,high:q,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:J,itemRef:J,itemScope:G,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:G,optimum:q,pattern:null,ping:J,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:J,required:G,reversed:G,rows:q,rowSpan:q,sandbox:J,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:K,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:K,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:K,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:G,disableRemotePlayback:G,prefix:null,property:null,results:q,security:null,unselectable:null},space:`html`,transform:ud}),fd=sd({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:nd,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:td,g2:td,glyphName:td,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:nd,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nd,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nd,rev:nd,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nd,requiredFeatures:nd,requiredFonts:nd,requiredFormats:nd,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:nd,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nd,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nd,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ld}),pd=sd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),md=sd({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ud}),hd=sd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),gd=/[A-Z]/g,_d=/-[a-z]/g,vd=/^data[-\w.:]+$/i;function yd(e,t){let n=Zu(t),r=t,i=W;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&vd.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(_d,xd);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_d.test(e)){let n=e.replace(gd,bd);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ad}return new i(r,t)}function bd(e){return`-`+e.toLowerCase()}function xd(e){return e.charAt(1).toUpperCase()}var Sd=Xu([cd,dd,pd,md,hd],`html`),Cd=Xu([cd,fd,pd,md,hd],`svg`),wd={}.hasOwnProperty;function Td(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&wd.call(t,e)){let n=String(t[e]);i=wd.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Ed=/["&'<>`]/g,Dd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Od=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kd=/[|\\{}()[\]^$+*?.]/g,Ad=new WeakMap;function jd(e,t){if(e=e.replace(t.subset?Md(t.subset):Ed,r),t.subset||t.escapeOnly)return e;return e.replace(Dd,n).replace(Od,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Md(e){let t=Ad.get(e);return t||(t=Nd(e),Ad.set(e,t)),t}function Nd(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(kd,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Pd=/[\dA-Fa-f]/;function Fd(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Pd.test(String.fromCharCode(t))?r:r+`;`}var Id=/\d/;function Ld(e,t,n){let r=`&#`+String(e);return n&&t&&!Id.test(String.fromCharCode(t))?r:r+`;`}var Rd=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),zd={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},Bd=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Vd={}.hasOwnProperty,Hd={},Ud;for(Ud in zd)Vd.call(zd,Ud)&&(Hd[zd[Ud]]=Ud);var Wd=/[^\dA-Za-z]/;function Gd(e,t,n,r){let i=String.fromCharCode(e);if(Vd.call(Hd,i)){let e=Hd[i],a=`&`+e;return n&&Rd.includes(e)&&!Bd.includes(e)&&(!r||t&&t!==61&&Wd.test(String.fromCharCode(t)))?a:a+`;`}return``}function Kd(e,t,n){let r=Fd(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Gd(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Ld(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function qd(e,t){return jd(e,Object.assign({format:Kd},t))}var Jd=/^>|^->|<!--|-->|--!>|<!-$/g,Yd=[`>`],Xd=[`<`,`>`];function Zd(e,t,n,r){return r.settings.bogusComments?`<?`+qd(e.value,Object.assign({},r.settings.characterReferences,{subset:Yd}))+`>`:`<!--`+e.value.replace(Jd,i)+`-->`;function i(e){return qd(e,Object.assign({},r.settings.characterReferences,{subset:Xd}))}}function Qd(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function $d(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ef(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function tf(e){return e.join(` `).trim()}var nf=/[ \t\n\f\r]/g;function rf(e){return typeof e==`object`?e.type===`text`?af(e.value):!1:af(e)}function af(e){return e.replace(nf,``)===``}var Y=cf(1),of=cf(-1),sf=[];function cf(e){return t;function t(t,n,r){let i=t?t.children:sf,a=(n||0)+e,o=i[a];if(!r)for(;o&&rf(o);)a+=e,o=i[a];return o}}var lf={}.hasOwnProperty;function uf(e){return t;function t(t,n,r){return lf.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var df=uf({body:mf,caption:ff,colgroup:ff,dd:vf,dt:_f,head:ff,html:pf,li:gf,optgroup:bf,option:xf,p:hf,rp:yf,rt:yf,tbody:Cf,td:Ef,tfoot:wf,th:Ef,thead:Sf,tr:Tf});function ff(e,t,n){let r=Y(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&rf(r.value.charAt(0)))}function pf(e,t,n){let r=Y(n,t);return!r||r.type!==`comment`}function mf(e,t,n){let r=Y(n,t);return!r||r.type!==`comment`}function hf(e,t,n){let r=Y(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function gf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&r.tagName===`li`}function _f(e,t,n){let r=Y(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function vf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function yf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function bf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function xf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Sf(e,t,n){let r=Y(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function Cf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function wf(e,t,n){return!Y(n,t)}function Tf(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Ef(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var Df=uf({body:Af,colgroup:jf,head:kf,html:Of,tbody:Mf});function Of(e){let t=Y(e,-1);return!t||t.type!==`comment`}function kf(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function Af(e){let t=Y(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&rf(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function jf(e,t,n){let r=of(n,t),i=Y(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&df(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Mf(e,t,n){let r=of(n,t),i=Y(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&df(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Nf={name:[[`
|
|
6
6
|
\f\r &/=>`.split(``),`
|
|
@@ -151,4 +151,4 @@ XID_Continue XIDC
|
|
|
151
151
|
XID_Start XIDS`.split(/\s/).map(e=>[ch(e),e])),eg=new Map([[`s`,Z(383)],[Z(383),`s`]]),tg=new Map([[Z(223),Z(7838)],[Z(107),Z(8490)],[Z(229),Z(8491)],[Z(969),Z(8486)]]),ng=new Map([ag(453),ag(456),ag(459),ag(498),...og(8072,8079),...og(8088,8095),...og(8104,8111),ag(8124),ag(8140),ag(8188)]),rg=new Map([[`alnum`,Q`[\p{Alpha}\p{Nd}]`],[`alpha`,Q`\p{Alpha}`],[`ascii`,Q`\p{ASCII}`],[`blank`,Q`[\p{Zs}\t]`],[`cntrl`,Q`\p{Cc}`],[`digit`,Q`\p{Nd}`],[`graph`,Q`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,Q`\p{Lower}`],[`print`,Q`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,Q`[\p{P}\p{S}]`],[`space`,Q`\p{space}`],[`upper`,Q`\p{Upper}`],[`word`,Q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,Q`\p{AHex}`]]);function ig(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function ag(e){let t=Z(e);return[t.toLowerCase(),t]}function og(e,t){return ig(e,t).map(e=>ag(e))}var sg=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function cg(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};fg(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Wh(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};dh(e,lg,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return dh(e,ug,a),dh(e,dg,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var lg={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=qm();e.body[0].body.push(Jm({negate:!0,body:r}),eh(`Any`));let i=qm();i.body[0].body.push(Zm(`greedy`,0,1/0,e)),n($(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];Uh(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=yg(t.get(e));if(n){let t=qm({flags:n});t.body[0].body=e.body,e.body=[$(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o($(Jm({body:[Lm({body:[Rm(`string_end`)]}),Lm({body:[Vm(10)]})]}),t));else if(c===`line_start`)o($(Og(Q`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&Tg(e))o($(Jm({negate:!0}),t));else if(d)throw Error(Q`Uses "\G" in a way that requires a subclass`);else o(Ag(Rm(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o($(Og(Q`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${Zh})(?!${Zh})|(?<!${Zh})(?=${Zh}))`,n=`(?:(?<=${Zh})(?=${Zh})|(?<!${Zh})(?!${Zh}))`;o($(Og(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Dg(n)&&(n=vg(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Dg(r)&&(r=vg(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n($(Hm({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(Ag(Wm(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n($(kg(Og(Yh),l),t));return}if(s&&(c===`word`||u===`word`)){n(Ag(Wm(`word`,{negate:l}),t));return}if(c===`any`)n(Ag(eh(`Any`),t));else if(c===`digit`)n(Ag(eh(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(Q`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=Q`\p{RI}{2}|${e}(?:\u200D${e})*`;n($(Og(Q`(?>\r\n|${i?Q`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(Ag(eh(`AHex`,{negate:l}),t));else if(c===`newline`)n($(Og(l?`[^
|
|
152
152
|
]`:`(?>\r
|
|
153
153
|
?|[
|
|
154
|
-
\v\f
\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${Z(e.codePointAt(0)-1)}${Z(e.codePointAt(2)+1)}-\u{10FFFF}`),n($(Og(`[${e}]`),t))}else n($(kg(Og(rg.get(u)),l),t));else if(c===`property`)$h.has(ch(u))||(e.key=`sc`);else if(c===`space`)n(Ag(eh(`space`,{negate:l}),t));else if(c===`word`)n($(kg(Og(Zh),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=qm({flags:c});e.body[0].body=o(),i($(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&wm(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(Q`Uses "\K" in a way that's unsupported`);let o=Jm({behind:!0});o.body[0].body=a(),i($(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n($(Jm({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=qm();t.body[0].body.push(e.body),e.body=$(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=Sg(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(Q`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Dg(n)&&(n=vg(n,t),e.ref=n)}},ug={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=Ag(gg(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&Uh(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=Uh(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Hh(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?gg(0):hg(o,r.groupOriginByCopy,null),l=c;if(!s){let e=yg(_g(o,e=>e.type===`Group`&&!!e.flags)),t=e?Hh(r.globalFlags,e):r.globalFlags;pg(t,r.currentFlags)||(l=qm({flags:bg(t)}),l.body[0].body.push(c))}n($(l,t),{traverse:!s})}},dg={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>mg(t,e));i.length?i.length>1?n($(qm({atomic:!0,body:i.reverse().map(e=>Lm({body:[zm(e.number)]}))}),t)):e.ref=i[0].number:n($(Jm({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Bm();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function fg(e){dh(e,{"*"({node:e,parent:t}){e.parent=t}})}function pg(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function mg(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=xg(n.parent);for(let r of t){if(r===n)break;if(r===e||Cg(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function hg(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=hg(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function gg(e){let t=$m(e);return t.isRecursive=!0,t}function _g(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function vg(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function yg(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function bg({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function xg(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Sg(e){let t=e.find(e=>e.kind===`search_start`||Eg(e,{negate:!1})||!wg(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=Sg(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Cg(e,t){let n=xg(e)??[];for(let e of n)if(e===t||Cg(e,t))return!0;return!1}function wg({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function Tg(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function Eg(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&wm(e.body[0],{type:`Assertion`,kind:`search_start`})}function Dg(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Og(e,t){let n=Dm(e,{...t,unicodePropertyMap:$h}).body;return n.length>1||n[0].body.length>1?qm({body:n}):n[0].body[0]}function kg(e,t){return e.negate=t,e}function Ag(e,t){return e.parent=t,e}function $(e,t){return fg(e),e.parent=t,e}function jg(e,t){let n=Jh(t),r=Wh(n.target,`ES2024`),i=Wh(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];dh(e,Mg,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,Gh(Ng[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&Uh(f._captureTransfers,e.transferTo,[]).push(t)}),f}var Mg={"*":{enter({node:e},t){if(Gg(e)){let n=t.getCurrentModI();t.pushModI(e.flags?Hh({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Gg(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){zg(Z(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Bg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&sg.has(e.value)&&t.setHasCasedChar()}},Ng={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?Q`\B`:Q`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=Z(e),r=Vg(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&zg(n)){let e=Qh(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);Bh.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(qg)&&(o=[Vm(45),...o.filter(e=>!qg(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||Bh.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=qm(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=Lm({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(Bh.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Vg(n,i),o=Vg(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Hg(Bg(e)).forEach(e=>{s.add(Array.isArray(e)?`${Vg(e[0],i)}-${Vg(e[1],i)}`:Vg(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:Q`[^\n]`;if(e===`digit`)return t?Q`\D`:Q`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&sg.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Q`\P`:Q`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?Q`\W`:Q`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=Hh(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${Ug(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+Wg(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:Q`\g<${t}&R=${r}>`}},Pg=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Fg=new Set([`-`,`\\`,`]`,`^`,`[`]),Ig=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Lg=new Map([[9,Q`\t`],[10,Q`\n`],[11,Q`\v`],[12,Q`\f`],[13,Q`\r`],[8232,Q`\u2028`],[8233,Q`\u2029`],[65279,Q`\uFEFF`]]),Rg=/^\p{Cased}$/u;function zg(e){return Rg.test(e)}function Bg(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=Z(e);if(!zg(t))continue;let o=Qh(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function Vg(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Lg.has(e))return Lg.get(e);if(e<32||e>126&&e<160||e>262143||t&&Kg(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?Ig:Fg:Pg,a=Z(e);return(i.has(a)?`\\`:``)+a}function Hg(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function Ug(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function Wg({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function Gg({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function Kg(e){return e>47&&e<58}function qg({type:e,value:t}){return e===`Character`&&t===45}var Jg=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=Xg(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(Yg(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=Zg(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function Yg(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Xg(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)Uh(n,t,{}).transferTo=e;return n}function Zg(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Qg(e,t){let n=$g(e,t);return n.options?new Jg(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function $g(e,t){let n=Jh(t),r=cg(Dm(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:$h}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=jg(r,n),a=Ph(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=wh(Dh(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function e_(e,t){return Qg(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function t_(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>e_(e,{target:t.target}),{createScanner(e){return new Pp(e,t)},createString(e){return{content:e}}}}var n_=N();async function r_(e={}){let t=[yn(()=>import(`./B-CoxLn7.js`),[],import.meta.url),yn(()=>import(`./CMkTWvG2.js`),[],import.meta.url),yn(()=>import(`./BBg_LgdD.js`),[],import.meta.url)];return e.extraLangs&&t.push(...e.extraLangs),n_.value=await Mp({themes:[yn(()=>import(`./D9eL2h5z.js`),[],import.meta.url),yn(()=>import(`./BFxFqELk.js`),[],import.meta.url)],langs:t,engine:t_()}).catch(e=>{console.warn(`[nuxt-seo] Failed to load shiki highlighter:`,e)}),n_.value}function i_(e,t){return M(()=>n_.value&&n_.value.codeToHtml(I(e)||``,{lang:t,themes:{light:`vitesse-light`,dark:`vitesse-dark`}})||``)}var a_=N(null),o_=N(null),s_=N(null),c_=N(!1);async function l_(){wc.value&&(a_.value=await wc.value(`/__sitemap__/debug.json`))}async function u_(){if(!wc.value||!un.value)return;c_.value=!0,o_.value=null;let e=await wc.value(`/__sitemap__/debug-production.json`,{query:{url:un.value,mode:`debug`}}).catch(()=>null);if(e&&!e.error&&e.sitemaps&&!Array.isArray(e.sitemaps)){o_.value=e,c_.value=!1;return}s_.value=await wc.value(`/__sitemap__/debug-production.json`,{query:{url:un.value}}).catch(e=>(console.error(`Failed to fetch production sitemap data:`,e),null)),c_.value=!1}e(a_,e=>{e?.siteConfig?.url&&(un.value=e.siteConfig.url)},{immediate:!0}),e(fn,e=>{e&&!s_.value&&!o_.value&&u_()});export{yt as $,Gn as A,mn as B,za as C,tr as D,nr as E,En as F,un as G,hn as H,Sn as I,Vt as J,pn as K,bn as L,An as M,kn as N,$n as O,On as P,nn as Q,yn as R,Ba as S,Da as T,on as U,fn as V,ln as W,Wt as X,Pt as Y,Ht as Z,Ks as _,u_ as a,Ja as b,i_ as c,bc as d,it as et,fc as f,Qs as g,ec as h,o_ as i,Wn as j,qn as k,Ec as l,$s as m,s_ as n,At as nt,l_ as o,oc as p,Lt as q,c_ as r,et as rt,r_ as s,a_ as t,Ct as tt,Dc as u,Qa as v,La as w,Ka as x,qa as y,dn as z};
|
|
154
|
+
\v\f
\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${Z(e.codePointAt(0)-1)}${Z(e.codePointAt(2)+1)}-\u{10FFFF}`),n($(Og(`[${e}]`),t))}else n($(kg(Og(rg.get(u)),l),t));else if(c===`property`)$h.has(ch(u))||(e.key=`sc`);else if(c===`space`)n(Ag(eh(`space`,{negate:l}),t));else if(c===`word`)n($(kg(Og(Zh),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=qm({flags:c});e.body[0].body=o(),i($(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&wm(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(Q`Uses "\K" in a way that's unsupported`);let o=Jm({behind:!0});o.body[0].body=a(),i($(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n($(Jm({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=qm();t.body[0].body.push(e.body),e.body=$(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=Sg(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(Q`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Dg(n)&&(n=vg(n,t),e.ref=n)}},ug={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=Ag(gg(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&Uh(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=Uh(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Hh(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?gg(0):hg(o,r.groupOriginByCopy,null),l=c;if(!s){let e=yg(_g(o,e=>e.type===`Group`&&!!e.flags)),t=e?Hh(r.globalFlags,e):r.globalFlags;pg(t,r.currentFlags)||(l=qm({flags:bg(t)}),l.body[0].body.push(c))}n($(l,t),{traverse:!s})}},dg={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>mg(t,e));i.length?i.length>1?n($(qm({atomic:!0,body:i.reverse().map(e=>Lm({body:[zm(e.number)]}))}),t)):e.ref=i[0].number:n($(Jm({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Bm();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function fg(e){dh(e,{"*"({node:e,parent:t}){e.parent=t}})}function pg(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function mg(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=xg(n.parent);for(let r of t){if(r===n)break;if(r===e||Cg(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function hg(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=hg(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function gg(e){let t=$m(e);return t.isRecursive=!0,t}function _g(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function vg(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function yg(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function bg({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function xg(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Sg(e){let t=e.find(e=>e.kind===`search_start`||Eg(e,{negate:!1})||!wg(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=Sg(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Cg(e,t){let n=xg(e)??[];for(let e of n)if(e===t||Cg(e,t))return!0;return!1}function wg({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function Tg(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function Eg(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&wm(e.body[0],{type:`Assertion`,kind:`search_start`})}function Dg(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Og(e,t){let n=Dm(e,{...t,unicodePropertyMap:$h}).body;return n.length>1||n[0].body.length>1?qm({body:n}):n[0].body[0]}function kg(e,t){return e.negate=t,e}function Ag(e,t){return e.parent=t,e}function $(e,t){return fg(e),e.parent=t,e}function jg(e,t){let n=Jh(t),r=Wh(n.target,`ES2024`),i=Wh(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];dh(e,Mg,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,Gh(Ng[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&Uh(f._captureTransfers,e.transferTo,[]).push(t)}),f}var Mg={"*":{enter({node:e},t){if(Gg(e)){let n=t.getCurrentModI();t.pushModI(e.flags?Hh({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Gg(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){zg(Z(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Bg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&sg.has(e.value)&&t.setHasCasedChar()}},Ng={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?Q`\B`:Q`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=Z(e),r=Vg(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&zg(n)){let e=Qh(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);Bh.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(qg)&&(o=[Vm(45),...o.filter(e=>!qg(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||Bh.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=qm(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=Lm({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(Bh.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Vg(n,i),o=Vg(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Hg(Bg(e)).forEach(e=>{s.add(Array.isArray(e)?`${Vg(e[0],i)}-${Vg(e[1],i)}`:Vg(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:Q`[^\n]`;if(e===`digit`)return t?Q`\D`:Q`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&sg.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Q`\P`:Q`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?Q`\W`:Q`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=Hh(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${Ug(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+Wg(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:Q`\g<${t}&R=${r}>`}},Pg=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Fg=new Set([`-`,`\\`,`]`,`^`,`[`]),Ig=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Lg=new Map([[9,Q`\t`],[10,Q`\n`],[11,Q`\v`],[12,Q`\f`],[13,Q`\r`],[8232,Q`\u2028`],[8233,Q`\u2029`],[65279,Q`\uFEFF`]]),Rg=/^\p{Cased}$/u;function zg(e){return Rg.test(e)}function Bg(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=Z(e);if(!zg(t))continue;let o=Qh(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function Vg(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Lg.has(e))return Lg.get(e);if(e<32||e>126&&e<160||e>262143||t&&Kg(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?Ig:Fg:Pg,a=Z(e);return(i.has(a)?`\\`:``)+a}function Hg(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function Ug(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function Wg({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function Gg({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function Kg(e){return e>47&&e<58}function qg({type:e,value:t}){return e===`Character`&&t===45}var Jg=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=Xg(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(Yg(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=Zg(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function Yg(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Xg(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)Uh(n,t,{}).transferTo=e;return n}function Zg(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Qg(e,t){let n=$g(e,t);return n.options?new Jg(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function $g(e,t){let n=Jh(t),r=cg(Dm(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:$h}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=jg(r,n),a=Ph(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=wh(Dh(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function e_(e,t){return Qg(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function t_(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>e_(e,{target:t.target}),{createScanner(e){return new Pp(e,t)},createString(e){return{content:e}}}}var n_=N();async function r_(e={}){let t=[yn(()=>import(`./B-CoxLn7.js`),[],import.meta.url),yn(()=>import(`./CMkTWvG2.js`),[],import.meta.url),yn(()=>import(`./BBg_LgdD.js`),[],import.meta.url)];return e.extraLangs&&t.push(...e.extraLangs),n_.value=await Mp({themes:[yn(()=>import(`./D9eL2h5z.js`),[],import.meta.url),yn(()=>import(`./BFxFqELk.js`),[],import.meta.url)],langs:t,engine:t_()}).catch(e=>{console.warn(`[nuxt-seo] Failed to load shiki highlighter:`,e)}),n_.value}function i_(e,t){return M(()=>n_.value&&n_.value.codeToHtml(I(e)||``,{lang:t,themes:{light:`vitesse-light`,dark:`vitesse-dark`}})||``)}var a_=N(null),o_=N(null),s_=N(null),c_=N(!1);async function l_(){wc.value&&(a_.value=await wc.value(`/__sitemap__/debug.json`))}async function u_(){if(!wc.value||!pn.value)return;c_.value=!0,o_.value=null;let e=await wc.value(`/__sitemap__/debug-production.json`,{query:{url:pn.value,mode:`debug`}}).catch(()=>null);if(e&&!e.error&&e.sitemaps&&!Array.isArray(e.sitemaps)){o_.value=e,c_.value=!1;return}s_.value=await wc.value(`/__sitemap__/debug-production.json`,{query:{url:pn.value}}).catch(e=>(console.error(`Failed to fetch production sitemap data:`,e),null)),c_.value=!1}e(a_,e=>{e?.siteConfig?.url&&(pn.value=e.siteConfig.url)},{immediate:!0}),e(hn,e=>{e&&!s_.value&&!o_.value&&u_()});export{nn as $,qn as A,mn as B,Ba as C,nr as D,Da as E,On as F,fn as G,hn as H,En as I,Lt as J,pn as K,Sn as L,Wn as M,An as N,tr as O,kn as P,Ht as Q,bn as R,Ka as S,La as T,un as U,ln as V,on as W,Pt as X,Vt as Y,Wt as Z,Qs as _,u_ as a,qa as b,i_ as c,Cc as d,yt as et,bc as f,ec as g,$s as h,o_ as i,et as it,Gn as j,$n as k,Ec as l,oc as m,s_ as n,Ct as nt,l_ as o,fc as p,cn as q,c_ as r,At as rt,r_ as s,a_ as t,it as tt,Dc as u,Ks as v,za as w,Ja as x,Qa as y,yn as z};
|