const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_ReferenceProvider-xi6gPVi2EWKMw89QNhuV0-uCpFjmyS.js","assets/_ReferenceProvider-xi6gPVi2EWKMw89QNhuV0-CAZQlgQP.css"])))=>i.map(i=>d[i]); (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();const Lx="modulepreload",Px=function(t){return"/"+t},Qm={},Ft=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){let l=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),o=i?.nonce||i?.getAttribute("nonce");a=l(r.map(u=>{if(u=Px(u),u in Qm)return;Qm[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="proxy.php?url=https%3A%2F%2Fdocs.teachfloor.com%2F%24%7Bu%7D"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":Lx,c||(h.as="script"),h.crossOrigin="",h.href=u,o&&h.setAttribute("nonce",o),document.head.appendChild(h),c)return new Promise((f,m)=>{h.addEventListener("load",f),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return a.then(i=>{for(const o of i||[])o.status==="rejected"&&s(o.reason);return e().catch(s)})};function ph(t,e={},r){for(const n in t){const a=t[n],s=r?`${r}:${n}`:n;typeof a=="object"&&a!==null?ph(a,e,s):typeof a=="function"&&(e[s]=a)}return e}const Dx={run:t=>t()},$x=()=>Dx,F6=typeof console.createTask<"u"?console.createTask:$x;function Bx(t,e){const r=e.shift(),n=F6(r);return t.reduce((a,s)=>a.then(()=>n.run(()=>s(...e))),Promise.resolve())}function Hx(t,e){const r=e.shift(),n=F6(r);return Promise.all(t.map(a=>n.run(()=>a(...e))))}function sf(t,e){for(const r of[...t])r(e)}class Fx{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,r,n={}){if(!e||typeof r!="function")return()=>{};const a=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${a} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(r),()=>{r&&(this.removeHook(e,r),r=void 0)}}hookOnce(e,r){let n,a=(...s)=>(typeof n=="function"&&n(),n=void 0,a=void 0,r(...s));return n=this.hook(e,a),n}removeHook(e,r){if(this._hooks[e]){const n=this._hooks[e].indexOf(r);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,r){this._deprecatedHooks[e]=typeof r=="string"?{to:r}:r;const n=this._hooks[e]||[];delete this._hooks[e];for(const a of n)this.hook(e,a)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const r in e)this.deprecateHook(r,e[r])}addHooks(e){const r=ph(e),n=Object.keys(r).map(a=>this.hook(a,r[a]));return()=>{for(const a of n.splice(0,n.length))a()}}removeHooks(e){const r=ph(e);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...r){return r.unshift(e),this.callHookWith(Bx,e,...r)}callHookParallel(e,...r){return r.unshift(e),this.callHookWith(Hx,e,...r)}callHookWith(e,r,...n){const a=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&sf(this._before,a);const s=e(r in this._hooks?[...this._hooks[r]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&a&&sf(this._after,a)}):(this._after&&a&&sf(this._after,a),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const r=this._before.indexOf(e);r!==-1&&this._before.splice(r,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const r=this._after.indexOf(e);r!==-1&&this._after.splice(r,1)}}}}function jx(){return new Fx}const zx=new Set(["link","style","script","noscript"]),Ux=new Set(["title","titleTemplate","script","style","noscript"]),Xm=new Set(["base","meta","link","style","script","noscript"]),qx=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Vx=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Zx=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Wx=new Set(["templateParams","htmlAttrs","bodyAttrs"]),zp=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Gx=["name","property","http-equiv"],Yx=new Set(["viewport","description","keywords","robots"]);function j6(t){const e=t.split(":");return e.length?zp.has(e[1]):!1}function mh(t){const{props:e,tag:r}=t;if(Vx.has(r))return r;if(r==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(t.tag==="meta"){for(const n of Gx)if(e[n]!==void 0){const a=e[n],s=a.includes(":"),i=Yx.has(a),l=!(s||i)&&t.key?`:key:${t.key}`:"";return`${r}:${a}${l}`}}if(t.key)return`${r}:key:${t.key}`;if(e.id)return`${r}:id:${e.id}`;if(Ux.has(r)){const n=t.textContent||t.innerHTML;if(n)return`${r}:content:${n}`}}function Jm(t){const e=t._h||t._d;if(e)return e;const r=t.textContent||t.innerHTML;return r||`${t.tag}:${Object.entries(t.props).map(([n,a])=>`${n}:${String(a)}`).join(",")}`}function ad(t,e,r){typeof t==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(t=t());let a;if(e&&(a=e(r,t)),Array.isArray(a))return a.map(s=>ad(s,e));if(a?.constructor===Object){const s={};for(const i of Object.keys(a))s[i]=ad(a[i],e,i);return s}return a}function Kx(t,e){const r=t==="style"?new Map:new Set;function n(a){const s=a.trim();if(s)if(t==="style"){const[i,...o]=s.split(":").map(l=>l.trim());i&&o.length&&r.set(i,o.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>r.add(i))}return typeof e=="string"?t==="style"?e.split(";").forEach(n):n(e):Array.isArray(e)?e.forEach(a=>n(a)):e&&typeof e=="object"&&Object.entries(e).forEach(([a,s])=>{s&&s!=="false"&&(t==="style"?r.set(a.trim(),s):n(a))}),r}function z6(t,e){return t.props=t.props||{},e?t.tag==="templateParams"?(t.props=e,t):(Object.entries(e).forEach(([r,n])=>{if(n===null){t.props[r]=null;return}if(r==="class"||r==="style"){t.props[r]=Kx(r,n);return}if(Zx.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let i=e.type;if(e.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;e.type=i,t.props.type=i,t[r]=JSON.stringify(n)}else t[r]=n;return}const a=String(n),s=r.startsWith("data-");a==="true"||a===""?t.props[r]=s?a:!0:!n&&s&&a==="false"?t.props[r]="false":n!==void 0&&(t.props[r]=n)}),t):t}function Qx(t,e){const r=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},n=z6({tag:t,props:{}},r);return n.key&&zx.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(a=>({...n,props:{...n.props,content:a}})):n}function Xx(t,e){if(!t)return[];typeof t=="function"&&(t=t());const r=(a,s)=>{for(let i=0;i{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])n.push(Qx(a,i))}),n.flat()}const e4=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,t4={base:-10,title:10},Jx={critical:-8,high:-1,low:2},r4={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},eT=/@import/,f0=t=>t===""||t===!0;function tT(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let r=100;const n=Jx[e.tagPriority]||0,a=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:r4;if(e.tag in t4)r=t4[e.tag];else if(e.tag==="meta"){const s=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;s&&(r=r4.meta[s])}else e.tag==="link"&&e.props.rel?r=a.link[e.props.rel]:e.tag==="script"?f0(e.props.async)?r=a.script.async:e.props.src&&!f0(e.props.defer)&&!f0(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?r=a.script.sync:f0(e.props.defer)&&e.props.src&&!f0(e.props.async)&&(r=a.script.defer):e.tag==="style"&&(r=e.innerHTML&&eT.test(e.innerHTML)?a.style.imported:a.style.sync);return(r||100)+n}function n4(t,e){const r=typeof e=="function"?e(t):e,n=r.key||String(t.plugins.size+1);t.plugins.get(n)||(t.plugins.set(n,r),t.hooks.addHooks(r.hooks||{}))}function rT(t={}){const e=jx();e.addHooks(t.hooks||{});const r=!t.document,n=new Map,a=new Map,s=new Set,i={_entryCount:1,plugins:a,dirty:!1,resolvedOptions:t,hooks:e,ssr:r,entries:n,headEntries(){return[...n.values()]},use:o=>n4(i,o),push(o,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,d={_i:c,input:o,options:u},h={_poll(f=!1){i.dirty=!0,!f&&s.add(c),e.callHook("entries:updated",i)},dispose(){n.delete(c)&&i.invalidate()},patch(f){(!u.mode||u.mode==="server"&&r||u.mode==="client"&&!r)&&(d.input=f,n.set(c,d),h._poll())}};return h.patch(o),h},async resolveTags(){const o={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await e.callHook("entries:resolve",o);s.size;){const h=s.values().next().value;s.delete(h);const f=n.get(h);if(f){const m={tags:Xx(f.input,t.propResolvers||[]).map(p=>Object.assign(p,f.options)),entry:f};await e.callHook("entries:normalize",m),f._tags=m.tags.map((p,b)=>(p._w=tT(i,p),p._p=(f._i<<10)+b,p._d=mh(p),p))}}let l=!1;o.entries.flatMap(h=>(h._tags||[]).map(f=>({...f,props:{...f.props}}))).sort(e4).reduce((h,f)=>{const m=String(f._d||f._p);if(!h.has(m))return h.set(m,f);const p=h.get(m);if((f?.tagDuplicateStrategy||(Wx.has(f.tag)?"merge":null)||(f.key&&f.key===p.key?"merge":null))==="merge"){const y={...p.props};Object.entries(f.props).forEach(([x,k])=>y[x]=x==="style"?new Map([...p.props.style||new Map,...k]):x==="class"?new Set([...p.props.class||new Set,...k]):k),h.set(m,{...f,props:y})}else f._p>>10===p._p>>10&&f.tag==="meta"&&j6(m)?(h.set(m,Object.assign([...Array.isArray(p)?p:[p],f],f)),l=!0):(f._w===p._w?f._p>p._p:f?._wn4(i,o)),i.hooks.callHook("init",i),t.init?.forEach(o=>o&&i.push(o)),i}async function U6(t,e={}){const r=e.document||t.resolvedOptions.document;if(!r||!t.dirty)return;const n={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async a=>{const s=new Map,i=new Promise(f=>{t.resolveTags().then(m=>{f(m.map(p=>{const b=s.get(p._d)||0,y={tag:p,id:(b?`${p._d}:${b}`:p._d)||Jm(p),shouldRender:!0};return p._d&&j6(p._d)&&s.set(p._d,b+1),y}))})});let o=t._dom;if(!o){o={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const f of["body","head"]){const m=r[f]?.children;for(const p of m){const b=p.tagName.toLowerCase();if(!Xm.has(b))continue;const y=z6({tag:b,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((x,k)=>(x[k]=p.getAttribute(k),x),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=mh(y)||Jm(y),o.elMap.has(y._d)){let x=1,k=y._d;for(;o.elMap.has(k);)k=`${y._d}:${x++}`;o.elMap.set(k,p)}else o.elMap.set(y._d,p)}}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};function l(f,m,p){const b=`${f}:${m}`;o.sideEffects[b]=p,delete o.pendingSideEffects[b]}function u({id:f,$el:m,tag:p}){const b=p.tag.endsWith("Attrs");o.elMap.set(f,m),b||(p.textContent&&p.textContent!==m.textContent&&(m.textContent=p.textContent),p.innerHTML&&p.innerHTML!==m.innerHTML&&(m.innerHTML=p.innerHTML),l(f,"el",()=>{m?.remove(),o.elMap.delete(f)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const x=p.props[y];if(y.startsWith("on")&&typeof x=="function"){const N=m?.dataset;if(N&&N[`${y}fired`]){const L=y.slice(0,-5);x.call(m,new Event(L.substring(2)))}m.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?r.defaultView:m).addEventListener(y.substring(2),x.bind(m)),m.setAttribute(`data-${y}`,""));continue}const k=`attr:${y}`;if(y==="class"){if(!x)continue;for(const N of x)b&&l(f,`${k}:${N}`,()=>m.classList.remove(N)),!m.classList.contains(N)&&m.classList.add(N)}else if(y==="style"){if(!x)continue;for(const[N,L]of x)l(f,`${k}:${N}`,()=>{m.style.removeProperty(N)}),m.style.setProperty(N,L)}else x!==!1&&x!==null&&(m.getAttribute(y)!==x&&m.setAttribute(y,x===!0?"":String(x)),b&&l(f,k,()=>m.removeAttribute(y)))}}const c=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const f of h){const{tag:m,shouldRender:p,id:b}=f;if(p){if(m.tag==="title"){r.title=m.textContent,l("title","",()=>r.title=o.title);continue}f.$el=f.$el||o.elMap.get(b),f.$el?u(f):Xm.has(m.tag)&&c.push(f)}}for(const f of c){const m=f.tag.tagPosition||"head";f.$el=r.createElement(f.tag.tag),u(f),d[m]=d[m]||r.createDocumentFragment(),d[m].appendChild(f.$el)}for(const f of h)await t.hooks.callHook("dom:renderTag",f,r,l);d.head&&r.head.appendChild(d.head),d.bodyOpen&&r.body.insertBefore(d.bodyOpen,r.body.firstChild),d.bodyClose&&r.body.appendChild(d.bodyClose);for(const f in o.pendingSideEffects)o.pendingSideEffects[f]();t._dom=o,await t.hooks.callHook("dom:rendered",{renders:h}),a()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function nT(t={}){const e=t.domOptions?.render||U6;t.document=t.document||(typeof window<"u"?document:void 0);const r=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return rT({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[r?JSON.parse(r):!1,...t.init||[]]})}function aT(t,e){let r=0;return()=>{const n=++r;e(()=>{r===n&&t()})}}const tu={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},sT={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},q6={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>`${Fs(t)}=${e}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:t,value:e})=>t==="seconds"?`${e}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>typeof e=="boolean"?Fs(t):`${Fs(t)}:${e}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:t,value:e})=>`${Fs(t)} ${e}`}},charset:{}};function Fs(t){const e=t.replace(/([A-Z])/g,"-$1").toLowerCase(),r=e.indexOf("-");return r===-1?e:tu.META.has(e.slice(0,r))||tu.OG.has(e.slice(0,r))?t.replace(/([A-Z])/g,":$1").toLowerCase():e}function V6(t){return Object.fromEntries(Object.entries(t).filter(([e,r])=>String(r)!=="false"&&e))}function gh(t){return Array.isArray(t)?t.map(gh):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).map(([e,r])=>[Fs(e),gh(r)]))}function Z6(t,e={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:a,resolve:s}=e;return Object.entries(t).map(([i,o])=>{if(s){const u=s({key:i,value:o});if(u!==void 0)return u}const l=typeof o=="object"?Z6(o,e):typeof o=="number"?o.toString():typeof o=="string"&&a?`${a}${o.replace(new RegExp(a,"g"),`\\${a}`)}${a}`:o;return`${i}${n}${l}`}).join(r)}function a4(t,e){const r=V6(e),n=Fs(t),a=W6(n);if(!zp.has(n))return[{[a]:n,...r}];const s=Object.fromEntries(Object.entries(r).map(([i,o])=>[`${t}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,o]));return sd(s||{}).sort((i,o)=>(i[a]?.length||0)-(o[a]?.length||0))}function W6(t){if(q6[t]?.metaKey==="http-equiv"||tu.HTTP_EQUIV.has(t))return"http-equiv";const e=Fs(t),r=e.indexOf(":");return r===-1?"name":tu.OG.has(e.slice(0,r))?"property":"name"}function iT(t){return sT[t]||Fs(t)}function oT(t,e){return e==="refresh"?`${t.seconds};url=${t.url}`:Z6(gh(t),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:r,key:n})=>r===null?"":typeof r=="boolean"?n:void 0,...q6[e]?.unpack})}function sd(t){const e=[],r={};for(const[a,s]of Object.entries(t)){if(Array.isArray(s)){if(a==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&e.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const o=[],l=[];for(const[u,c]of Object.entries(i)){const d=`${a}${u==="url"?"":`:${u}`}`,h=sd({[d]:c});(u==="url"?o:l).push(...h)}e.push(...o,...l)}else e.push(...typeof i=="string"?sd({[a]:i}):a4(a,i));continue}if(typeof s=="object"&&s)if(tu.MEDIA.has(a)){const i=a.startsWith("twitter")?"twitter":"og",o=a.replace(/^(og|twitter)/,"").toLowerCase(),l=i==="twitter"?"name":"property";s.url&&e.push({[l]:`${i}:${o}`,content:s.url}),s.secureUrl&&e.push({[l]:`${i}:${o}:secure_url`,content:s.secureUrl});for(const[u,c]of Object.entries(s))u!=="url"&&u!=="secureUrl"&&e.push({[l]:`${i}:${o}:${u}`,content:c})}else zp.has(Fs(a))?e.push(...a4(a,s)):r[a]=V6(s);else r[a]=s}const n=Object.entries(r).map(([a,s])=>{if(a==="charset")return{charset:s===null?"_null":s};const i=W6(a),o=iT(a),l=s===null?"_null":typeof s=="object"?oT(s,a):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":o,content:l}:{[i]:o,content:l}});return[...e,...n].map(a=>"content"in a&&a.content==="_null"?{...a,content:null}:a)}const lT={key:"flatMeta",hooks:{"entries:normalize":t=>{const e=[];t.tags=t.tags.map(r=>r.tag!=="_flatMeta"?r:(e.push(sd(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...e)}}};/** * @vue/shared v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Up(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const jt={},Tl=[],xa=()=>{},G6=()=>!1,Kd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),qp=t=>t.startsWith("onUpdate:"),Dr=Object.assign,Vp=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},uT=Object.prototype.hasOwnProperty,qt=(t,e)=>uT.call(t,e),Xe=Array.isArray,kl=t=>$u(t)==="[object Map]",Uo=t=>$u(t)==="[object Set]",s4=t=>$u(t)==="[object Date]",ht=t=>typeof t=="function",lr=t=>typeof t=="string",Ca=t=>typeof t=="symbol",Yt=t=>t!==null&&typeof t=="object",Y6=t=>(Yt(t)||ht(t))&&ht(t.then)&&ht(t.catch),K6=Object.prototype.toString,$u=t=>K6.call(t),cT=t=>$u(t).slice(8,-1),Q6=t=>$u(t)==="[object Object]",Zp=t=>lr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,$0=Up(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qd=t=>{const e=Object.create(null);return(r=>e[r]||(e[r]=t(r)))},dT=/-\w/g,Un=Qd(t=>t.replace(dT,e=>e.slice(1).toUpperCase())),fT=/\B([A-Z])/g,ei=Qd(t=>t.replace(fT,"-$1").toLowerCase()),ra=Qd(t=>t.charAt(0).toUpperCase()+t.slice(1)),of=Qd(t=>t?`on${ra(t)}`:""),Sn=(t,e)=>!Object.is(t,e),zc=(t,...e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},id=t=>{const e=parseFloat(t);return isNaN(e)?t:e},hT=t=>{const e=lr(t)?Number(t):NaN;return isNaN(e)?t:e};let i4;const Bu=()=>i4||(i4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(t){if(Xe(t)){const e={};for(let r=0;r{if(r){const n=r.split(mT);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Zt(t){let e="";if(lr(t))e=t;else if(Xe(t))for(let r=0;rGi(r,e))}const e7=t=>!!(t&&t.__v_isRef===!0),kr=t=>lr(t)?t:t==null?"":Xe(t)||Yt(t)&&(t.toString===K6||!ht(t.toString))?e7(t)?kr(t.value):JSON.stringify(t,t7,2):String(t),t7=(t,e)=>e7(e)?t7(t,e.value):kl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,a],s)=>(r[lf(n,s)+" =>"]=a,r),{})}:Uo(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>lf(r))}:Ca(e)?lf(e):Yt(e)&&!Xe(e)&&!Q6(e)?String(e):e,lf=(t,e="")=>{var r;return Ca(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};function _T(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}/** * @vue/reactivity v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Xr;class ET{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Xr,!e&&Xr&&(this.index=(Xr.scopes||(Xr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e0&&--this._on===0&&(Xr=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r0)return;if(H0){let e=H0;for(H0=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;B0;){let e=B0;for(B0=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function s7(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function i7(t){let e,r=t.depsTail,n=r;for(;n;){const a=n.prevDep;n.version===-1?(n===r&&(r=a),Kp(n),xT(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}t.deps=e,t.depsTail=r}function bh(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(o7(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function o7(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ru)||(t.globalVersion=ru,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!bh(t))))return;t.flags|=2;const e=t.dep,r=er,n=Ta;er=t,Ta=!0;try{s7(t);const a=t.fn(t._value);(e.version===0||Sn(a,t._value))&&(t.flags|=128,t._value=a,e.version++)}catch(a){throw e.version++,a}finally{er=r,Ta=n,i7(t),t.flags&=-3}}function Kp(t,e=!1){const{dep:r,prevSub:n,nextSub:a}=t;if(n&&(n.nextSub=a,t.prevSub=void 0),a&&(a.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let s=r.computed.deps;s;s=s.nextDep)Kp(s,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function xT(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let Ta=!0;const l7=[];function qs(){l7.push(Ta),Ta=!1}function Vs(){const t=l7.pop();Ta=t===void 0?!0:t}function o4(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=er;er=void 0;try{e()}finally{er=r}}}let ru=0;class TT{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class e1{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!er||!Ta||er===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==er)r=this.activeLink=new TT(er,this),er.deps?(r.prevDep=er.depsTail,er.depsTail.nextDep=r,er.depsTail=r):er.deps=er.depsTail=r,u7(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=er.depsTail,r.nextDep=void 0,er.depsTail.nextDep=r,er.depsTail=r,er.deps===r&&(er.deps=n)}return r}trigger(e){this.version++,ru++,this.notify(e)}notify(e){Gp();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Yp()}}}function u7(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)u7(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const od=new WeakMap,Ao=Symbol(""),vh=Symbol(""),nu=Symbol("");function Jr(t,e,r){if(Ta&&er){let n=od.get(t);n||od.set(t,n=new Map);let a=n.get(r);a||(n.set(r,a=new e1),a.map=n,a.key=r),a.track()}}function Ds(t,e,r,n,a,s){const i=od.get(t);if(!i){ru++;return}const o=l=>{l&&l.trigger()};if(Gp(),e==="clear")i.forEach(o);else{const l=Xe(t),u=l&&Zp(r);if(l&&r==="length"){const c=Number(n);i.forEach((d,h)=>{(h==="length"||h===nu||!Ca(h)&&h>=c)&&o(d)})}else switch((r!==void 0||i.has(void 0))&&o(i.get(r)),u&&o(i.get(nu)),e){case"add":l?u&&o(i.get("length")):(o(i.get(Ao)),kl(t)&&o(i.get(vh)));break;case"delete":l||(o(i.get(Ao)),kl(t)&&o(i.get(vh)));break;case"set":kl(t)&&o(i.get(Ao));break}}Yp()}function kT(t,e){const r=od.get(t);return r&&r.get(e)}function sl(t){const e=vt(t);return e===t?e:(Jr(e,"iterate",nu),sa(t)?e:e.map(Zr))}function t1(t){return Jr(t=vt(t),"iterate",nu),t}const ST={__proto__:null,[Symbol.iterator](){return cf(this,Symbol.iterator,Zr)},concat(...t){return sl(this).concat(...t.map(e=>Xe(e)?sl(e):e))},entries(){return cf(this,"entries",t=>(t[1]=Zr(t[1]),t))},every(t,e){return Ss(this,"every",t,e,void 0,arguments)},filter(t,e){return Ss(this,"filter",t,e,r=>r.map(Zr),arguments)},find(t,e){return Ss(this,"find",t,e,Zr,arguments)},findIndex(t,e){return Ss(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ss(this,"findLast",t,e,Zr,arguments)},findLastIndex(t,e){return Ss(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ss(this,"forEach",t,e,void 0,arguments)},includes(...t){return df(this,"includes",t)},indexOf(...t){return df(this,"indexOf",t)},join(t){return sl(this).join(t)},lastIndexOf(...t){return df(this,"lastIndexOf",t)},map(t,e){return Ss(this,"map",t,e,void 0,arguments)},pop(){return h0(this,"pop")},push(...t){return h0(this,"push",t)},reduce(t,...e){return l4(this,"reduce",t,e)},reduceRight(t,...e){return l4(this,"reduceRight",t,e)},shift(){return h0(this,"shift")},some(t,e){return Ss(this,"some",t,e,void 0,arguments)},splice(...t){return h0(this,"splice",t)},toReversed(){return sl(this).toReversed()},toSorted(t){return sl(this).toSorted(t)},toSpliced(...t){return sl(this).toSpliced(...t)},unshift(...t){return h0(this,"unshift",t)},values(){return cf(this,"values",Zr)}};function cf(t,e,r){const n=t1(t),a=n[e]();return n!==t&&!sa(t)&&(a._next=a.next,a.next=()=>{const s=a._next();return s.value&&(s.value=r(s.value)),s}),a}const AT=Array.prototype;function Ss(t,e,r,n,a,s){const i=t1(t),o=i!==t&&!sa(t),l=i[e];if(l!==AT[e]){const d=l.apply(t,s);return o?Zr(d):d}let u=r;i!==t&&(o?u=function(d,h){return r.call(this,Zr(d),h,t)}:r.length>2&&(u=function(d,h){return r.call(this,d,h,t)}));const c=l.call(i,u,n);return o&&a?a(c):c}function l4(t,e,r,n){const a=t1(t);let s=r;return a!==t&&(sa(t)?r.length>3&&(s=function(i,o,l){return r.call(this,i,o,l,t)}):s=function(i,o,l){return r.call(this,i,Zr(o),l,t)}),a[e](s,...n)}function df(t,e,r){const n=vt(t);Jr(n,"iterate",nu);const a=n[e](...r);return(a===-1||a===!1)&&Xp(r[0])?(r[0]=vt(r[0]),n[e](...r)):a}function h0(t,e,r=[]){qs(),Gp();const n=vt(t)[e].apply(t,r);return Yp(),Vs(),n}const CT=Up("__proto__,__v_isRef,__isVue"),c7=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ca));function OT(t){Ca(t)||(t=String(t));const e=vt(this);return Jr(e,"has",t),e.hasOwnProperty(t)}class d7{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const a=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(a?s?b7:g7:s?m7:p7).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=Xe(e);if(!a){let l;if(i&&(l=ST[r]))return l;if(r==="hasOwnProperty")return OT}const o=Reflect.get(e,r,yr(e)?e:n);return(Ca(r)?c7.has(r):CT(r))||(a||Jr(e,"get",r),s)?o:yr(o)?i&&Zp(r)?o:o.value:Yt(o)?a?Qp(o):Oa(o):o}}class f7 extends d7{constructor(e=!1){super(!1,e)}set(e,r,n,a){let s=e[r];if(!this._isShallow){const l=Yi(s);if(!sa(n)&&!Yi(n)&&(s=vt(s),n=vt(n)),!Xe(e)&&yr(s)&&!yr(n))return l||(s.value=n),!0}const i=Xe(e)&&Zp(r)?Number(r)t,bc=t=>Reflect.getPrototypeOf(t);function LT(t,e,r){return function(...n){const a=this.__v_raw,s=vt(a),i=kl(s),o=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,u=a[t](...n),c=r?yh:e?ld:Zr;return!e&&Jr(s,"iterate",l?vh:Ao),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:o?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function vc(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function PT(t,e){const r={get(a){const s=this.__v_raw,i=vt(s),o=vt(a);t||(Sn(a,o)&&Jr(i,"get",a),Jr(i,"get",o));const{has:l}=bc(i),u=e?yh:t?ld:Zr;if(l.call(i,a))return u(s.get(a));if(l.call(i,o))return u(s.get(o));s!==i&&s.get(a)},get size(){const a=this.__v_raw;return!t&&Jr(vt(a),"iterate",Ao),a.size},has(a){const s=this.__v_raw,i=vt(s),o=vt(a);return t||(Sn(a,o)&&Jr(i,"has",a),Jr(i,"has",o)),a===o?s.has(a):s.has(a)||s.has(o)},forEach(a,s){const i=this,o=i.__v_raw,l=vt(o),u=e?yh:t?ld:Zr;return!t&&Jr(l,"iterate",Ao),o.forEach((c,d)=>a.call(s,u(c),u(d),i))}};return Dr(r,t?{add:vc("add"),set:vc("set"),delete:vc("delete"),clear:vc("clear")}:{add(a){!e&&!sa(a)&&!Yi(a)&&(a=vt(a));const s=vt(this);return bc(s).has.call(s,a)||(s.add(a),Ds(s,"add",a,a)),this},set(a,s){!e&&!sa(s)&&!Yi(s)&&(s=vt(s));const i=vt(this),{has:o,get:l}=bc(i);let u=o.call(i,a);u||(a=vt(a),u=o.call(i,a));const c=l.call(i,a);return i.set(a,s),u?Sn(s,c)&&Ds(i,"set",a,s):Ds(i,"add",a,s),this},delete(a){const s=vt(this),{has:i,get:o}=bc(s);let l=i.call(s,a);l||(a=vt(a),l=i.call(s,a)),o&&o.call(s,a);const u=s.delete(a);return l&&Ds(s,"delete",a,void 0),u},clear(){const a=vt(this),s=a.size!==0,i=a.clear();return s&&Ds(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=LT(a,t,e)}),r}function r1(t,e){const r=PT(t,e);return(n,a,s)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?n:Reflect.get(qt(r,a)&&a in n?r:n,a,s)}const DT={get:r1(!1,!1)},$T={get:r1(!1,!0)},BT={get:r1(!0,!1)},HT={get:r1(!0,!0)},p7=new WeakMap,m7=new WeakMap,g7=new WeakMap,b7=new WeakMap;function FT(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jT(t){return t.__v_skip||!Object.isExtensible(t)?0:FT(cT(t))}function Oa(t){return Yi(t)?t:n1(t,!1,MT,DT,p7)}function v7(t){return n1(t,!1,RT,$T,m7)}function Qp(t){return n1(t,!0,NT,BT,g7)}function $n(t){return n1(t,!0,IT,HT,b7)}function n1(t,e,r,n,a){if(!Yt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=jT(t);if(s===0)return t;const i=a.get(t);if(i)return i;const o=new Proxy(t,s===2?n:r);return a.set(t,o),o}function Sl(t){return Yi(t)?Sl(t.__v_raw):!!(t&&t.__v_isReactive)}function Yi(t){return!!(t&&t.__v_isReadonly)}function sa(t){return!!(t&&t.__v_isShallow)}function Xp(t){return t?!!t.__v_raw:!1}function vt(t){const e=t&&t.__v_raw;return e?vt(e):t}function zT(t){return!qt(t,"__v_skip")&&Object.isExtensible(t)&&X6(t,"__v_skip",!0),t}const Zr=t=>Yt(t)?Oa(t):t,ld=t=>Yt(t)?Qp(t):t;function yr(t){return t?t.__v_isRef===!0:!1}function Re(t){return y7(t,!1)}function an(t){return y7(t,!0)}function y7(t,e){return yr(t)?t:new UT(t,e)}class UT{constructor(e,r){this.dep=new e1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:vt(e),this._value=r?e:Zr(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||sa(e)||Yi(e);e=n?e:vt(e),Sn(e,r)&&(this._rawValue=e,this._value=n?e:Zr(e),this.dep.trigger())}}function U(t){return yr(t)?t.value:t}function or(t){return ht(t)?t():U(t)}const qT={get:(t,e,r)=>e==="__v_raw"?t:U(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const a=t[e];return yr(a)&&!yr(r)?(a.value=r,!0):Reflect.set(t,e,r,n)}};function w7(t){return Sl(t)?t:new Proxy(t,qT)}class VT{constructor(e){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new e1,{get:n,set:a}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=a}get value(){return this._value=this._get()}set value(e){this._set(e)}}function _7(t){return new VT(t)}class ZT{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return kT(vt(this._object),this._key)}}class WT{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ote(t,e,r){return yr(t)?t:ht(t)?new WT(t):Yt(t)&&arguments.length>1?GT(t,e,r):Re(t)}function GT(t,e,r){const n=t[e];return yr(n)?n:new ZT(t,e,r)}class YT{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new e1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ru-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&er!==this)return a7(this,!0),!0}get value(){const e=this.dep.track();return o7(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function KT(t,e,r=!1){let n,a;return ht(t)?n=t:(n=t.get,a=t.set),new YT(n,a,r)}const yc={},ud=new WeakMap;let Eo;function QT(t,e=!1,r=Eo){if(r){let n=ud.get(r);n||ud.set(r,n=[]),n.push(t)}}function XT(t,e,r=jt){const{immediate:n,deep:a,once:s,scheduler:i,augmentJob:o,call:l}=r,u=N=>a?N:sa(N)||a===!1||a===0?$s(N,1):$s(N);let c,d,h,f,m=!1,p=!1;if(yr(t)?(d=()=>t.value,m=sa(t)):Sl(t)?(d=()=>u(t),m=!0):Xe(t)?(p=!0,m=t.some(N=>Sl(N)||sa(N)),d=()=>t.map(N=>{if(yr(N))return N.value;if(Sl(N))return u(N);if(ht(N))return l?l(N,2):N()})):ht(t)?e?d=l?()=>l(t,2):t:d=()=>{if(h){qs();try{h()}finally{Vs()}}const N=Eo;Eo=c;try{return l?l(t,3,[f]):t(f)}finally{Eo=N}}:d=xa,e&&a){const N=d,L=a===!0?1/0:a;d=()=>$s(N(),L)}const b=Hu(),y=()=>{c.stop(),b&&b.active&&Vp(b.effects,c)};if(s&&e){const N=e;e=(...L)=>{N(...L),y()}}let x=p?new Array(t.length).fill(yc):yc;const k=N=>{if(!(!(c.flags&1)||!c.dirty&&!N))if(e){const L=c.run();if(a||m||(p?L.some((W,z)=>Sn(W,x[z])):Sn(L,x))){h&&h();const W=Eo;Eo=c;try{const z=[L,x===yc?void 0:p&&x[0]===yc?[]:x,f];x=L,l?l(e,3,z):e(...z)}finally{Eo=W}}}else c.run()};return o&&o(k),c=new r7(d),c.scheduler=i?()=>i(k,!1):k,f=N=>QT(N,!1,c),h=c.onStop=()=>{const N=ud.get(c);if(N){if(l)l(N,4);else for(const L of N)L();ud.delete(c)}},e?n?k(!0):x=c.run():i?i(k.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function $s(t,e=1/0,r){if(e<=0||!Yt(t)||t.__v_skip||(r=r||new Map,(r.get(t)||0)>=e))return t;if(r.set(t,e),e--,yr(t))$s(t.value,e,r);else if(Xe(t))for(let n=0;n{$s(n,e,r)});else if(Q6(t)){for(const n in t)$s(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&$s(t[n],e,r)}return t}/** * @vue/runtime-core v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Fu(t,e,r,n){try{return n?t(...n):t()}catch(a){a1(a,e,r)}}function Ma(t,e,r,n){if(ht(t)){const a=Fu(t,e,r,n);return a&&Y6(a)&&a.catch(s=>{a1(s,e,r)}),a}if(Xe(t)){const a=[];for(let s=0;s>>1,a=hn[n],s=au(a);s=au(r)?hn.push(t):hn.splice(ek(e),0,t),t.flags|=1,x7()}}function x7(){cd||(cd=E7.then(S7))}function T7(t){Xe(t)?Al.push(...t):Di&&t.id===-1?Di.splice(fl+1,0,t):t.flags&1||(Al.push(t),t.flags|=1),x7()}function u4(t,e,r=ss+1){for(;rau(r)-au(n));if(Al.length=0,Di){Di.push(...e);return}for(Di=e,fl=0;flt.id==null?t.flags&2?-1:1/0:t.id;function S7(t){try{for(ss=0;ss{n._d&&md(-1);const s=dd(e);let i;try{i=t(...a)}finally{dd(s),n._d&&md(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function e2(t,e){if(Wr===null)return t;const r=f1(Wr),n=t.dirs||(t.dirs=[]);for(let a=0;at.__isTeleport,F0=t=>t&&(t.disabled||t.disabled===""),c4=t=>t&&(t.defer||t.defer===""),d4=t=>typeof SVGElement<"u"&&t instanceof SVGElement,f4=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,wh=(t,e)=>{const r=t&&t.to;return lr(r)?e?e(r):null:r},M7={name:"Teleport",__isTeleport:!0,process(t,e,r,n,a,s,i,o,l,u){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:m,createText:p,createComment:b}}=u,y=F0(e.props);let{shapeFlag:x,children:k,dynamicChildren:N}=e;if(t==null){const L=e.el=p(""),W=e.anchor=p("");f(L,r,n),f(W,r,n);const z=(K,ge)=>{x&16&&(a&&a.isCE&&(a.ce._teleportTarget=K),c(k,K,ge,a,s,i,o,l))},ne=()=>{const K=e.target=wh(e.props,m),ge=R7(K,e,p,f);K&&(i!=="svg"&&d4(K)?i="svg":i!=="mathml"&&f4(K)&&(i="mathml"),y||(z(K,ge),Uc(e,!1)))};y&&(z(r,W),Uc(e,!0)),c4(e.props)?(e.el.__isMounted=!1,fn(()=>{ne(),delete e.el.__isMounted},s)):ne()}else{if(c4(e.props)&&t.el.__isMounted===!1){fn(()=>{M7.process(t,e,r,n,a,s,i,o,l,u)},s);return}e.el=t.el,e.targetStart=t.targetStart;const L=e.anchor=t.anchor,W=e.target=t.target,z=e.targetAnchor=t.targetAnchor,ne=F0(t.props),K=ne?r:W,ge=ne?L:z;if(i==="svg"||d4(W)?i="svg":(i==="mathml"||f4(W))&&(i="mathml"),N?(h(t.dynamicChildren,N,K,a,s,i,o),o2(t,e,!0)):l||d(t,e,K,ge,a,s,i,o,!1),y)ne?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):wc(e,r,L,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const le=e.target=wh(e.props,m);le&&wc(e,le,null,u,0)}else ne&&wc(e,W,z,u,1);Uc(e,y)}},remove(t,e,r,{um:n,o:{remove:a}},s){const{shapeFlag:i,children:o,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=t;if(d&&(a(u),a(c)),s&&a(l),i&16){const f=s||!F0(h);for(let m=0;m{t.isMounted=!0}),o1(()=>{t.isUnmounting=!0}),t}const ea=[Function,Array],I7={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ea,onEnter:ea,onAfterEnter:ea,onEnterCancelled:ea,onBeforeLeave:ea,onLeave:ea,onAfterLeave:ea,onLeaveCancelled:ea,onBeforeAppear:ea,onAppear:ea,onAfterAppear:ea,onAppearCancelled:ea},L7=t=>{const e=t.subTree;return e.component?L7(e.component):e},nk={name:"BaseTransition",props:I7,setup(t,{slots:e}){const r=Nn(),n=rk();return()=>{const a=e.default&&$7(e.default(),!0);if(!a||!a.length)return;const s=P7(a),i=vt(t),{mode:o}=i;if(n.isLeaving)return ff(s);const l=h4(s);if(!l)return ff(s);let u=_h(l,i,n,r,d=>u=d);l.type!==tn&&su(l,u);let c=r.subTree&&h4(r.subTree);if(c&&c.type!==tn&&!xo(c,l)&&L7(r).type!==tn){let d=_h(c,i,n,r);if(su(c,d),o==="out-in"&&l.type!==tn)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave,c=void 0},ff(s);o==="in-out"&&l.type!==tn?d.delayLeave=(h,f,m)=>{const p=D7(n,c);p[String(c.key)]=c,h[Is]=()=>{f(),h[Is]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function P7(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==tn){e=r;break}}return e}const ak=nk;function D7(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function _h(t,e,r,n,a){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:b,onAppear:y,onAfterAppear:x,onAppearCancelled:k}=e,N=String(t.key),L=D7(r,t),W=(K,ge)=>{K&&Ma(K,n,9,ge)},z=(K,ge)=>{const le=ge[1];W(K,ge),Xe(K)?K.every(ee=>ee.length<=1)&&le():K.length<=1&&le()},ne={mode:i,persisted:o,beforeEnter(K){let ge=l;if(!r.isMounted)if(s)ge=b||l;else return;K[Is]&&K[Is](!0);const le=L[N];le&&xo(t,le)&&le.el[Is]&&le.el[Is](),W(ge,[K])},enter(K){let ge=u,le=c,ee=d;if(!r.isMounted)if(s)ge=y||u,le=x||c,ee=k||d;else return;let Ne=!1;const Be=K[_c]=Qe=>{Ne||(Ne=!0,Qe?W(ee,[K]):W(le,[K]),ne.delayedLeave&&ne.delayedLeave(),K[_c]=void 0)};ge?z(ge,[K,Be]):Be()},leave(K,ge){const le=String(t.key);if(K[_c]&&K[_c](!0),r.isUnmounting)return ge();W(h,[K]);let ee=!1;const Ne=K[Is]=Be=>{ee||(ee=!0,ge(),Be?W(p,[K]):W(m,[K]),K[Is]=void 0,L[le]===t&&delete L[le])};L[le]=t,f?z(f,[K,Ne]):Ne()},clone(K){const ge=_h(K,e,r,n,a);return a&&a(ge),ge}};return ne}function ff(t){if(s1(t))return t=Zs(t),t.children=null,t}function h4(t){if(!s1(t))return O7(t.type)&&t.children?P7(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&ht(r.default))return r.default()}}function su(t,e){t.shapeFlag&6&&t.component?(t.transition=e,su(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function $7(t,e=!1,r){let n=[],a=0;for(let s=0;s1)for(let s=0;sr.value,set:s=>r.value=s})}return r}const fd=new WeakMap;function j0(t,e,r,n,a=!1){if(Xe(t)){t.forEach((m,p)=>j0(m,e&&(Xe(e)?e[p]:e),r,n,a));return}if(Cl(n)&&!a){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&j0(t,e,r,n.component.subTree);return}const s=n.shapeFlag&4?f1(n.component):n.el,i=a?null:s,{i:o,r:l}=t,u=e&&e.r,c=o.refs===jt?o.refs={}:o.refs,d=o.setupState,h=vt(d),f=d===jt?G6:m=>qt(h,m);if(u!=null&&u!==l){if(p4(e),lr(u))c[u]=null,f(u)&&(d[u]=null);else if(yr(u)){u.value=null;const m=e;m.k&&(c[m.k]=null)}}if(ht(l))Fu(l,o,12,[i,c]);else{const m=lr(l),p=yr(l);if(m||p){const b=()=>{if(t.f){const y=m?f(l)?d[l]:c[l]:l.value;if(a)Xe(y)&&Vp(y,s);else if(Xe(y))y.includes(s)||y.push(s);else if(m)c[l]=[s],f(l)&&(d[l]=c[l]);else{const x=[s];l.value=x,t.k&&(c[t.k]=x)}}else m?(c[l]=i,f(l)&&(d[l]=i)):p&&(l.value=i,t.k&&(c[t.k]=i))};if(i){const y=()=>{b(),fd.delete(t)};y.id=-1,fd.set(t,y),fn(y,r)}else p4(t),b()}}}function p4(t){const e=fd.get(t);e&&(e.flags|=8,fd.delete(t))}Bu().requestIdleCallback;Bu().cancelIdleCallback;const Cl=t=>!!t.type.__asyncLoader,s1=t=>t.type.__isKeepAlive;function H7(t,e){j7(t,"a",e)}function F7(t,e){j7(t,"da",e)}function j7(t,e,r=rn){const n=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(i1(e,n,r),r){let a=r.parent;for(;a&&a.parent;)s1(a.parent.vnode)&&ok(n,e,r,a),a=a.parent}}function ok(t,e,r,n){const a=i1(e,t,n,!0);qn(()=>{Vp(n[e],a)},r)}function i1(t,e,r=rn,n=!1){if(r){const a=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...i)=>{qs();const o=ju(r),l=Ma(e,r,t,i);return o(),Vs(),l});return n?a.unshift(s):a.push(s),s}}const ti=t=>(e,r=rn)=>{(!lu||t==="sp")&&i1(t,(...n)=>e(...n),r)},z7=ti("bm"),hr=ti("m"),U7=ti("bu"),t2=ti("u"),o1=ti("bum"),qn=ti("um"),r2=ti("sp"),lk=ti("rtg"),uk=ti("rtc");function ck(t,e=rn){i1("ec",t,e)}const q7="components";function V7(t,e){return W7(q7,t,!0,e)||t}const Z7=Symbol.for("v-ndc");function n2(t){return lr(t)?W7(q7,t,!1)||t:t||Z7}function W7(t,e,r=!0,n=!1){const a=Wr||rn;if(a){const s=a.type;{const o=Qk(s,!1);if(o&&(o===e||o===Un(e)||o===ra(Un(e))))return s}const i=m4(a[t]||s[t],e)||m4(a.appContext[t],e);return!i&&n?s:i}}function m4(t,e){return t&&(t[e]||t[Un(e)]||t[ra(Un(e))])}function e0(t,e,r,n){let a;const s=r,i=Xe(t);if(i||lr(t)){const o=i&&Sl(t);let l=!1,u=!1;o&&(l=!sa(t),u=Yi(t),t=t1(t)),a=new Array(t.length);for(let c=0,d=t.length;ce(o,l,void 0,s));else{const o=Object.keys(t);a=new Array(o.length);for(let l=0,u=o.length;l{const s=n.fn(...a);return s&&(s.key=n.key),s}:n.fn)}return t}function Rt(t,e,r={},n,a){if(Wr.ce||Wr.parent&&Cl(Wr.parent)&&Wr.parent.ce)return e!=="default"&&(r.name=e),A(),ot(Vt,null,[bt("slot",r,n&&n())],64);let s=t[e];s&&s._c&&(s._d=!1),A();const i=s&&G7(s(r)),o=r.key||i&&i.key,l=ot(Vt,{key:(o&&!Ca(o)?o:`_${e}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&t._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function G7(t){return t.some(e=>ou(e)?!(e.type===tn||e.type===Vt&&!G7(e.children)):!0)?t:null}const Eh=t=>t?m8(t)?f1(t):Eh(t.parent):null,z0=Dr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Eh(t.parent),$root:t=>Eh(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Q7(t),$forceUpdate:t=>t.f||(t.f=()=>{Jp(t.update)}),$nextTick:t=>t.n||(t.n=bn.bind(t.proxy)),$watch:t=>Pk.bind(t)}),hf=(t,e)=>t!==jt&&!t.__isScriptSetup&&qt(t,e),fk={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:a,props:s,accessCache:i,type:o,appContext:l}=t;let u;if(e[0]!=="$"){const f=i[e];if(f!==void 0)switch(f){case 1:return n[e];case 2:return a[e];case 4:return r[e];case 3:return s[e]}else{if(hf(n,e))return i[e]=1,n[e];if(a!==jt&&qt(a,e))return i[e]=2,a[e];if((u=t.propsOptions[0])&&qt(u,e))return i[e]=3,s[e];if(r!==jt&&qt(r,e))return i[e]=4,r[e];xh&&(i[e]=0)}}const c=z0[e];let d,h;if(c)return e==="$attrs"&&Jr(t.attrs,"get",""),c(t);if((d=o.__cssModules)&&(d=d[e]))return d;if(r!==jt&&qt(r,e))return i[e]=4,r[e];if(h=l.config.globalProperties,qt(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:a,ctx:s}=t;return hf(a,e)?(a[e]=r,!0):n!==jt&&qt(n,e)?(n[e]=r,!0):qt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:a,propsOptions:s,type:i}},o){let l,u;return!!(r[o]||t!==jt&&o[0]!=="$"&&qt(t,o)||hf(e,o)||(l=s[0])&&qt(l,o)||qt(n,o)||qt(z0,o)||qt(a.config.globalProperties,o)||(u=i.__cssModules)&&u[o])},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:qt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function lte(){return Y7().slots}function hk(){return Y7().attrs}function Y7(t){const e=Nn();return e.setupContext||(e.setupContext=b8(e))}function hd(t){return Xe(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function pk(t,e){return!t||!e?t||e:Xe(t)&&Xe(e)?t.concat(e):Dr({},hd(t),hd(e))}function ute(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}let xh=!0;function mk(t){const e=Q7(t),r=t.proxy,n=t.ctx;xh=!1,e.beforeCreate&&g4(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:i,watch:o,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:m,activated:p,deactivated:b,beforeDestroy:y,beforeUnmount:x,destroyed:k,unmounted:N,render:L,renderTracked:W,renderTriggered:z,errorCaptured:ne,serverPrefetch:K,expose:ge,inheritAttrs:le,components:ee,directives:Ne,filters:Be}=e;if(u&&gk(u,n,null),i)for(const De in i){const Ae=i[De];ht(Ae)&&(n[De]=Ae.bind(r))}if(a){const De=a.call(r,r);Yt(De)&&(t.data=Oa(De))}if(xh=!0,s)for(const De in s){const Ae=s[De],Je=ht(Ae)?Ae.bind(r,r):ht(Ae.get)?Ae.get.bind(r,r):xa,Mt=!ht(Ae)&&ht(Ae.set)?Ae.set.bind(r):xa,ze=ie({get:Je,set:Mt});Object.defineProperty(n,De,{enumerable:!0,configurable:!0,get:()=>ze.value,set:et=>ze.value=et})}if(o)for(const De in o)K7(o[De],n,r,De);if(l){const De=ht(l)?l.call(r):l;Reflect.ownKeys(De).forEach(Ae=>{jn(Ae,De[Ae])})}c&&g4(c,t,"c");function be(De,Ae){Xe(Ae)?Ae.forEach(Je=>De(Je.bind(r))):Ae&&De(Ae.bind(r))}if(be(z7,d),be(hr,h),be(U7,f),be(t2,m),be(H7,p),be(F7,b),be(ck,ne),be(uk,W),be(lk,z),be(o1,x),be(qn,N),be(r2,K),Xe(ge))if(ge.length){const De=t.exposed||(t.exposed={});ge.forEach(Ae=>{Object.defineProperty(De,Ae,{get:()=>r[Ae],set:Je=>r[Ae]=Je,enumerable:!0})})}else t.exposed||(t.exposed={});L&&t.render===xa&&(t.render=L),le!=null&&(t.inheritAttrs=le),ee&&(t.components=ee),Ne&&(t.directives=Ne),K&&B7(t)}function gk(t,e,r=xa){Xe(t)&&(t=Th(t));for(const n in t){const a=t[n];let s;Yt(a)?"default"in a?s=Gt(a.from||n,a.default,!0):s=Gt(a.from||n):s=Gt(a),yr(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[n]=s}}function g4(t,e,r){Ma(Xe(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function K7(t,e,r,n){let a=n.includes(".")?l8(r,n):()=>r[n];if(lr(t)){const s=e[t];ht(s)&&St(a,s)}else if(ht(t))St(a,t.bind(r));else if(Yt(t))if(Xe(t))t.forEach(s=>K7(s,e,r,n));else{const s=ht(t.handler)?t.handler.bind(r):e[t.handler];ht(s)&&St(a,s,t)}}function Q7(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:a,optionsCache:s,config:{optionMergeStrategies:i}}=t.appContext,o=s.get(e);let l;return o?l=o:!a.length&&!r&&!n?l=e:(l={},a.length&&a.forEach(u=>pd(l,u,i,!0)),pd(l,e,i)),Yt(e)&&s.set(e,l),l}function pd(t,e,r,n=!1){const{mixins:a,extends:s}=e;s&&pd(t,s,r,!0),a&&a.forEach(i=>pd(t,i,r,!0));for(const i in e)if(!(n&&i==="expose")){const o=bk[i]||r&&r[i];t[i]=o?o(t[i],e[i]):e[i]}return t}const bk={data:b4,props:v4,emits:v4,methods:A0,computed:A0,beforeCreate:dn,created:dn,beforeMount:dn,mounted:dn,beforeUpdate:dn,updated:dn,beforeDestroy:dn,beforeUnmount:dn,destroyed:dn,unmounted:dn,activated:dn,deactivated:dn,errorCaptured:dn,serverPrefetch:dn,components:A0,directives:A0,watch:yk,provide:b4,inject:vk};function b4(t,e){return e?t?function(){return Dr(ht(t)?t.call(this,this):t,ht(e)?e.call(this,this):e)}:e:t}function vk(t,e){return A0(Th(t),Th(e))}function Th(t){if(Xe(t)){const e={};for(let r=0;r1)return r&&ht(e)?e.call(n&&n.proxy):e}}function a2(){return!!(Nn()||Co)}const J7={},e8=()=>Object.create(J7),t8=t=>Object.getPrototypeOf(t)===J7;function Ek(t,e,r,n=!1){const a={},s=e8();t.propsDefaults=Object.create(null),r8(t,e,a,s);for(const i in t.propsOptions[0])i in a||(a[i]=void 0);r?t.props=n?a:v7(a):t.type.props?t.props=a:t.props=s,t.attrs=s}function xk(t,e,r,n){const{props:a,attrs:s,vnode:{patchFlag:i}}=t,o=vt(a),[l]=t.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,f]=n8(d,e,!0);Dr(i,h),f&&o.push(...f)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!l)return Yt(t)&&n.set(t,Tl),Tl;if(Xe(s))for(let c=0;ct==="_"||t==="_ctx"||t==="$stable",i2=t=>Xe(t)?t.map(os):[os(t)],kk=(t,e,r)=>{if(e._n)return e;const n=tr((...a)=>i2(e(...a)),r);return n._c=!1,n},a8=(t,e,r)=>{const n=t._ctx;for(const a in t){if(s2(a))continue;const s=t[a];if(ht(s))e[a]=kk(a,s,n);else if(s!=null){const i=i2(s);e[a]=()=>i}}},s8=(t,e)=>{const r=i2(e);t.slots.default=()=>r},i8=(t,e,r)=>{for(const n in e)(r||!s2(n))&&(t[n]=e[n])},Sk=(t,e,r)=>{const n=t.slots=e8();if(t.vnode.shapeFlag&32){const a=e._;a?(i8(n,e,r),r&&X6(n,"_",a,!0)):a8(e,n)}else e&&s8(t,e)},Ak=(t,e,r)=>{const{vnode:n,slots:a}=t;let s=!0,i=jt;if(n.shapeFlag&32){const o=e._;o?r&&o===1?s=!1:i8(a,e,r):(s=!e.$stable,a8(e,a)),i=e}else e&&(s8(t,e),i={default:1});if(s)for(const o in a)!s2(o)&&i[o]==null&&delete a[o]},fn=zk;function Ck(t){return Ok(t)}function Ok(t,e){const r=Bu();r.__VUE__=!0;const{insert:n,remove:a,patchProp:s,createElement:i,createText:o,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=xa,insertStaticContent:m}=t,p=($,j,G,se=null,oe=null,ae=null,Me=void 0,xe=null,Te=!!j.dynamicChildren)=>{if($===j)return;$&&!xo($,j)&&(se=re($),et($,oe,ae,!0),$=null),j.patchFlag===-2&&(Te=!1,j.dynamicChildren=null);const{type:me,ref:at,shapeFlag:Pe}=j;switch(me){case c1:b($,j,G,se);break;case tn:y($,j,G,se);break;case U0:$==null&&x(j,G,se,Me);break;case Vt:ee($,j,G,se,oe,ae,Me,xe,Te);break;default:Pe&1?L($,j,G,se,oe,ae,Me,xe,Te):Pe&6?Ne($,j,G,se,oe,ae,Me,xe,Te):(Pe&64||Pe&128)&&me.process($,j,G,se,oe,ae,Me,xe,Te,Ue)}at!=null&&oe?j0(at,$&&$.ref,ae,j||$,!j):at==null&&$&&$.ref!=null&&j0($.ref,null,ae,$,!0)},b=($,j,G,se)=>{if($==null)n(j.el=o(j.children),G,se);else{const oe=j.el=$.el;j.children!==$.children&&u(oe,j.children)}},y=($,j,G,se)=>{$==null?n(j.el=l(j.children||""),G,se):j.el=$.el},x=($,j,G,se)=>{[$.el,$.anchor]=m($.children,j,G,se,$.el,$.anchor)},k=({el:$,anchor:j},G,se)=>{let oe;for(;$&&$!==j;)oe=h($),n($,G,se),$=oe;n(j,G,se)},N=({el:$,anchor:j})=>{let G;for(;$&&$!==j;)G=h($),a($),$=G;a(j)},L=($,j,G,se,oe,ae,Me,xe,Te)=>{j.type==="svg"?Me="svg":j.type==="math"&&(Me="mathml"),$==null?W(j,G,se,oe,ae,Me,xe,Te):K($,j,oe,ae,Me,xe,Te)},W=($,j,G,se,oe,ae,Me,xe)=>{let Te,me;const{props:at,shapeFlag:Pe,transition:tt,dirs:ft}=$;if(Te=$.el=i($.type,ae,at&&at.is,at),Pe&8?c(Te,$.children):Pe&16&&ne($.children,Te,null,se,oe,pf($,ae),Me,xe),ft&&go($,null,se,"created"),z(Te,$,$.scopeId,Me,se),at){for(const He in at)He!=="value"&&!$0(He)&&s(Te,He,null,at[He],ae,se);"value"in at&&s(Te,"value",null,at.value,ae),(me=at.onVnodeBeforeMount)&&Ha(me,se,$)}ft&&go($,null,se,"beforeMount");const V=Mk(oe,tt);V&&tt.beforeEnter(Te),n(Te,j,G),((me=at&&at.onVnodeMounted)||V||ft)&&fn(()=>{me&&Ha(me,se,$),V&&tt.enter(Te),ft&&go($,null,se,"mounted")},oe)},z=($,j,G,se,oe)=>{if(G&&f($,G),se)for(let ae=0;ae{for(let me=Te;me<$.length;me++){const at=$[me]=xe?$i($[me]):os($[me]);p(null,at,j,G,se,oe,ae,Me,xe)}},K=($,j,G,se,oe,ae,Me)=>{const xe=j.el=$.el;let{patchFlag:Te,dynamicChildren:me,dirs:at}=j;Te|=$.patchFlag&16;const Pe=$.props||jt,tt=j.props||jt;let ft;if(G&&bo(G,!1),(ft=tt.onVnodeBeforeUpdate)&&Ha(ft,G,j,$),at&&go(j,$,G,"beforeUpdate"),G&&bo(G,!0),(Pe.innerHTML&&tt.innerHTML==null||Pe.textContent&&tt.textContent==null)&&c(xe,""),me?ge($.dynamicChildren,me,xe,G,se,pf(j,oe),ae):Me||Ae($,j,xe,null,G,se,pf(j,oe),ae,!1),Te>0){if(Te&16)le(xe,Pe,tt,G,oe);else if(Te&2&&Pe.class!==tt.class&&s(xe,"class",null,tt.class,oe),Te&4&&s(xe,"style",Pe.style,tt.style,oe),Te&8){const V=j.dynamicProps;for(let He=0;He{ft&&Ha(ft,G,j,$),at&&go(j,$,G,"updated")},se)},ge=($,j,G,se,oe,ae,Me)=>{for(let xe=0;xe{if(j!==G){if(j!==jt)for(const ae in j)!$0(ae)&&!(ae in G)&&s($,ae,j[ae],null,oe,se);for(const ae in G){if($0(ae))continue;const Me=G[ae],xe=j[ae];Me!==xe&&ae!=="value"&&s($,ae,xe,Me,oe,se)}"value"in G&&s($,"value",j.value,G.value,oe)}},ee=($,j,G,se,oe,ae,Me,xe,Te)=>{const me=j.el=$?$.el:o(""),at=j.anchor=$?$.anchor:o("");let{patchFlag:Pe,dynamicChildren:tt,slotScopeIds:ft}=j;ft&&(xe=xe?xe.concat(ft):ft),$==null?(n(me,G,se),n(at,G,se),ne(j.children||[],G,at,oe,ae,Me,xe,Te)):Pe>0&&Pe&64&&tt&&$.dynamicChildren?(ge($.dynamicChildren,tt,G,oe,ae,Me,xe),(j.key!=null||oe&&j===oe.subTree)&&o2($,j,!0)):Ae($,j,G,at,oe,ae,Me,xe,Te)},Ne=($,j,G,se,oe,ae,Me,xe,Te)=>{j.slotScopeIds=xe,$==null?j.shapeFlag&512?oe.ctx.activate(j,G,se,Me,Te):Be(j,G,se,oe,ae,Me,Te):Qe($,j,Te)},Be=($,j,G,se,oe,ae,Me)=>{const xe=$.component=Wk($,se,oe);if(s1($)&&(xe.ctx.renderer=Ue),Gk(xe,!1,Me),xe.asyncDep){if(oe&&oe.registerDep(xe,be,Me),!$.el){const Te=xe.subTree=bt(tn);y(null,Te,j,G),$.placeholder=Te.el}}else be(xe,$,j,G,oe,ae,Me)},Qe=($,j,G)=>{const se=j.component=$.component;if(Fk($,j,G))if(se.asyncDep&&!se.asyncResolved){De(se,j,G);return}else se.next=j,se.update();else j.el=$.el,se.vnode=j},be=($,j,G,se,oe,ae,Me)=>{const xe=()=>{if($.isMounted){let{next:Pe,bu:tt,u:ft,parent:V,vnode:He}=$;{const Ln=o8($);if(Ln){Pe&&(Pe.el=He.el,De($,Pe,Me)),Ln.asyncDep.then(()=>{$.isUnmounted||xe()});return}}let Ht=Pe,Vr;bo($,!1),Pe?(Pe.el=He.el,De($,Pe,Me)):Pe=He,tt&&zc(tt),(Vr=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&Ha(Vr,V,Pe,He),bo($,!0);const Yr=_4($),En=$.subTree;$.subTree=Yr,p(En,Yr,d(En.el),re(En),$,oe,ae),Pe.el=Yr.el,Ht===null&&jk($,Yr.el),ft&&fn(ft,oe),(Vr=Pe.props&&Pe.props.onVnodeUpdated)&&fn(()=>Ha(Vr,V,Pe,He),oe)}else{let Pe;const{el:tt,props:ft}=j,{bm:V,m:He,parent:Ht,root:Vr,type:Yr}=$,En=Cl(j);bo($,!1),V&&zc(V),!En&&(Pe=ft&&ft.onVnodeBeforeMount)&&Ha(Pe,Ht,j),bo($,!0);{Vr.ce&&Vr.ce._def.shadowRoot!==!1&&Vr.ce._injectChildStyle(Yr);const Ln=$.subTree=_4($);p(null,Ln,G,se,$,oe,ae),j.el=Ln.el}if(He&&fn(He,oe),!En&&(Pe=ft&&ft.onVnodeMounted)){const Ln=j;fn(()=>Ha(Pe,Ht,Ln),oe)}(j.shapeFlag&256||Ht&&Cl(Ht.vnode)&&Ht.vnode.shapeFlag&256)&&$.a&&fn($.a,oe),$.isMounted=!0,j=G=se=null}};$.scope.on();const Te=$.effect=new r7(xe);$.scope.off();const me=$.update=Te.run.bind(Te),at=$.job=Te.runIfDirty.bind(Te);at.i=$,at.id=$.uid,Te.scheduler=()=>Jp(at),bo($,!0),me()},De=($,j,G)=>{j.component=$;const se=$.vnode.props;$.vnode=j,$.next=null,xk($,j.props,se,G),Ak($,j.children,G),qs(),u4($),Vs()},Ae=($,j,G,se,oe,ae,Me,xe,Te=!1)=>{const me=$&&$.children,at=$?$.shapeFlag:0,Pe=j.children,{patchFlag:tt,shapeFlag:ft}=j;if(tt>0){if(tt&128){Mt(me,Pe,G,se,oe,ae,Me,xe,Te);return}else if(tt&256){Je(me,Pe,G,se,oe,ae,Me,xe,Te);return}}ft&8?(at&16&&Nt(me,oe,ae),Pe!==me&&c(G,Pe)):at&16?ft&16?Mt(me,Pe,G,se,oe,ae,Me,xe,Te):Nt(me,oe,ae,!0):(at&8&&c(G,""),ft&16&&ne(Pe,G,se,oe,ae,Me,xe,Te))},Je=($,j,G,se,oe,ae,Me,xe,Te)=>{$=$||Tl,j=j||Tl;const me=$.length,at=j.length,Pe=Math.min(me,at);let tt;for(tt=0;ttat?Nt($,oe,ae,!0,!1,Pe):ne(j,G,se,oe,ae,Me,xe,Te,Pe)},Mt=($,j,G,se,oe,ae,Me,xe,Te)=>{let me=0;const at=j.length;let Pe=$.length-1,tt=at-1;for(;me<=Pe&&me<=tt;){const ft=$[me],V=j[me]=Te?$i(j[me]):os(j[me]);if(xo(ft,V))p(ft,V,G,null,oe,ae,Me,xe,Te);else break;me++}for(;me<=Pe&&me<=tt;){const ft=$[Pe],V=j[tt]=Te?$i(j[tt]):os(j[tt]);if(xo(ft,V))p(ft,V,G,null,oe,ae,Me,xe,Te);else break;Pe--,tt--}if(me>Pe){if(me<=tt){const ft=tt+1,V=fttt)for(;me<=Pe;)et($[me],oe,ae,!0),me++;else{const ft=me,V=me,He=new Map;for(me=V;me<=tt;me++){const ln=j[me]=Te?$i(j[me]):os(j[me]);ln.key!=null&&He.set(ln.key,me)}let Ht,Vr=0;const Yr=tt-V+1;let En=!1,Ln=0;const si=new Array(Yr);for(me=0;me=Yr){et(ln,oe,ae,!0);continue}let un;if(ln.key!=null)un=He.get(ln.key);else for(Ht=V;Ht<=tt;Ht++)if(si[Ht-V]===0&&xo(ln,j[Ht])){un=Ht;break}un===void 0?et(ln,oe,ae,!0):(si[un-V]=me+1,un>=Ln?Ln=un:En=!0,p(ln,j[un],G,null,oe,ae,Me,xe,Te),Vr++)}const sc=En?Nk(si):Tl;for(Ht=sc.length-1,me=Yr-1;me>=0;me--){const ln=V+me,un=j[ln],u0=j[ln+1],rl=ln+1{const{el:ae,type:Me,transition:xe,children:Te,shapeFlag:me}=$;if(me&6){ze($.component.subTree,j,G,se);return}if(me&128){$.suspense.move(j,G,se);return}if(me&64){Me.move($,j,G,Ue);return}if(Me===Vt){n(ae,j,G);for(let Pe=0;Pexe.enter(ae),oe);else{const{leave:Pe,delayLeave:tt,afterLeave:ft}=xe,V=()=>{$.ctx.isUnmounted?a(ae):n(ae,j,G)},He=()=>{ae._isLeaving&&ae[Is](!0),Pe(ae,()=>{V(),ft&&ft()})};tt?tt(ae,V,He):He()}else n(ae,j,G)},et=($,j,G,se=!1,oe=!1)=>{const{type:ae,props:Me,ref:xe,children:Te,dynamicChildren:me,shapeFlag:at,patchFlag:Pe,dirs:tt,cacheIndex:ft}=$;if(Pe===-2&&(oe=!1),xe!=null&&(qs(),j0(xe,null,G,$,!0),Vs()),ft!=null&&(j.renderCache[ft]=void 0),at&256){j.ctx.deactivate($);return}const V=at&1&&tt,He=!Cl($);let Ht;if(He&&(Ht=Me&&Me.onVnodeBeforeUnmount)&&Ha(Ht,j,$),at&6)br($.component,G,se);else{if(at&128){$.suspense.unmount(G,se);return}V&&go($,null,j,"beforeUnmount"),at&64?$.type.remove($,j,G,Ue,se):me&&!me.hasOnce&&(ae!==Vt||Pe>0&&Pe&64)?Nt(me,j,G,!1,!0):(ae===Vt&&Pe&384||!oe&&at&16)&&Nt(Te,j,G),se&&At($)}(He&&(Ht=Me&&Me.onVnodeUnmounted)||V)&&fn(()=>{Ht&&Ha(Ht,j,$),V&&go($,null,j,"unmounted")},G)},At=$=>{const{type:j,el:G,anchor:se,transition:oe}=$;if(j===Vt){Qt(G,se);return}if(j===U0){N($);return}const ae=()=>{a(G),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if($.shapeFlag&1&&oe&&!oe.persisted){const{leave:Me,delayLeave:xe}=oe,Te=()=>Me(G,ae);xe?xe($.el,ae,Te):Te()}else ae()},Qt=($,j)=>{let G;for(;$!==j;)G=h($),a($),$=G;a(j)},br=($,j,G)=>{const{bum:se,scope:oe,job:ae,subTree:Me,um:xe,m:Te,a:me}=$;w4(Te),w4(me),se&&zc(se),oe.stop(),ae&&(ae.flags|=8,et(Me,$,j,G)),xe&&fn(xe,j),fn(()=>{$.isUnmounted=!0},j)},Nt=($,j,G,se=!1,oe=!1,ae=0)=>{for(let Me=ae;Me<$.length;Me++)et($[Me],j,G,se,oe)},re=$=>{if($.shapeFlag&6)return re($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const j=h($.anchor||$.el),G=j&&j[C7];return G?h(G):j};let Ce=!1;const Ee=($,j,G)=>{$==null?j._vnode&&et(j._vnode,null,null,!0):p(j._vnode||null,$,j,null,null,null,G),j._vnode=$,Ce||(Ce=!0,u4(),k7(),Ce=!1)},Ue={p,um:et,m:ze,r:At,mt:Be,mc:ne,pc:Ae,pbc:ge,n:re,o:t};return{render:Ee,hydrate:void 0,createApp:_k(Ee)}}function pf({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function bo({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Mk(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function o2(t,e,r=!1){const n=t.children,a=e.children;if(Xe(n)&&Xe(a))for(let s=0;s>1,t[r[o]]0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,i=r[s-1];s-- >0;)r[s]=i,i=e[i];return r}function o8(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:o8(e)}function w4(t){if(t)for(let e=0;eGt(Rk);function Yn(t,e){return l1(t,null,e)}function Lk(t,e){return l1(t,null,{flush:"sync"})}function St(t,e,r){return l1(t,e,r)}function l1(t,e,r=jt){const{immediate:n,deep:a,flush:s,once:i}=r,o=Dr({},r),l=e&&n||!e&&s!=="post";let u;if(lu){if(s==="sync"){const f=Ik();u=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=xa,f.resume=xa,f.pause=xa,f}}const c=rn;o.call=(f,m,p)=>Ma(f,c,m,p);let d=!1;s==="post"?o.scheduler=f=>{fn(f,c&&c.suspense)}:s!=="sync"&&(d=!0,o.scheduler=(f,m)=>{m?f():Jp(f)}),o.augmentJob=f=>{e&&(f.flags|=4),d&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const h=XT(t,e,o);return lu&&(u?u.push(h):l&&h()),h}function Pk(t,e,r){const n=this.proxy,a=lr(t)?t.includes(".")?l8(n,t):()=>n[t]:t.bind(n,n);let s;ht(e)?s=e:(s=e.handler,r=e);const i=ju(this),o=l1(a,s.bind(n),r);return i(),o}function l8(t,e){const r=e.split(".");return()=>{let n=t;for(let a=0;a{let c,d=jt,h;return Lk(()=>{const f=t[a];Sn(c,f)&&(c=f,u())}),{get(){return l(),r.get?r.get(c):c},set(f){const m=r.set?r.set(f):f;if(!Sn(m,c)&&!(d!==jt&&Sn(f,d)))return;const p=n.vnode.props;p&&(e in p||a in p||s in p)&&(`onUpdate:${e}`in p||`onUpdate:${a}`in p||`onUpdate:${s}`in p)||(c=f,u()),n.emit(`update:${e}`,m),Sn(f,m)&&Sn(f,d)&&!Sn(m,h)&&u(),d=f,h=m}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||jt:o,done:!1}:{done:!0}}}},o}const c8=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Un(e)}Modifiers`]||t[`${ei(e)}Modifiers`];function Dk(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||jt;let a=r;const s=e.startsWith("update:"),i=s&&c8(n,e.slice(7));i&&(i.trim&&(a=r.map(c=>lr(c)?c.trim():c)),i.number&&(a=r.map(id)));let o,l=n[o=of(e)]||n[o=of(Un(e))];!l&&s&&(l=n[o=of(ei(e))]),l&&Ma(l,t,6,a);const u=n[o+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Ma(u,t,6,a)}}const $k=new WeakMap;function d8(t,e,r=!1){const n=r?$k:e.emitsCache,a=n.get(t);if(a!==void 0)return a;const s=t.emits;let i={},o=!1;if(!ht(t)){const l=u=>{const c=d8(u,e,!0);c&&(o=!0,Dr(i,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!o?(Yt(t)&&n.set(t,null),null):(Xe(s)?s.forEach(l=>i[l]=null):Dr(i,s),Yt(t)&&n.set(t,i),i)}function u1(t,e){return!t||!Kd(e)?!1:(e=e.slice(2).replace(/Once$/,""),qt(t,e[0].toLowerCase()+e.slice(1))||qt(t,ei(e))||qt(t,e))}function _4(t){const{type:e,vnode:r,proxy:n,withProxy:a,propsOptions:[s],slots:i,attrs:o,emit:l,render:u,renderCache:c,props:d,data:h,setupState:f,ctx:m,inheritAttrs:p}=t,b=dd(t);let y,x;try{if(r.shapeFlag&4){const N=a||n,L=N;y=os(u.call(L,N,c,d,f,h,m)),x=o}else{const N=e;y=os(N.length>1?N(d,{attrs:o,slots:i,emit:l}):N(d,null)),x=e.props?o:Bk(o)}}catch(N){q0.length=0,a1(N,t,1),y=bt(tn)}let k=y;if(x&&p!==!1){const N=Object.keys(x),{shapeFlag:L}=k;N.length&&L&7&&(s&&N.some(qp)&&(x=Hk(x,s)),k=Zs(k,x,!1,!0))}return r.dirs&&(k=Zs(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(r.dirs):r.dirs),r.transition&&su(k,r.transition),y=k,dd(b),y}const Bk=t=>{let e;for(const r in t)(r==="class"||r==="style"||Kd(r))&&((e||(e={}))[r]=t[r]);return e},Hk=(t,e)=>{const r={};for(const n in t)(!qp(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function Fk(t,e,r){const{props:n,children:a,component:s}=t,{props:i,children:o,patchFlag:l}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?E4(n,i,u):!!i;if(l&8){const c=e.dynamicProps;for(let d=0;dt.__isSuspense;function zk(t,e){e&&e.pendingBranch?Xe(t)?e.effects.push(...t):e.effects.push(t):T7(t)}const Vt=Symbol.for("v-fgt"),c1=Symbol.for("v-txt"),tn=Symbol.for("v-cmt"),U0=Symbol.for("v-stc"),q0=[];let Fn=null;function A(t=!1){q0.push(Fn=t?null:[])}function Uk(){q0.pop(),Fn=q0[q0.length-1]||null}let iu=1;function md(t,e=!1){iu+=t,t<0&&Fn&&e&&(Fn.hasOnce=!0)}function h8(t){return t.dynamicChildren=iu>0?Fn||Tl:null,Uk(),iu>0&&Fn&&Fn.push(t),t}function I(t,e,r,n,a,s){return h8(C(t,e,r,n,a,s,!0))}function ot(t,e,r,n,a){return h8(bt(t,e,r,n,a,!0))}function ou(t){return t?t.__v_isVNode===!0:!1}function xo(t,e){return t.type===e.type&&t.key===e.key}const p8=({key:t})=>t??null,qc=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?lr(t)||yr(t)||ht(t)?{i:Wr,r:t,k:e,f:!!r}:t:null);function C(t,e=null,r=null,n=0,a=null,s=t===Vt?0:1,i=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&p8(e),ref:e&&qc(e),scopeId:A7,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Wr};return o?(l2(l,r),s&128&&t.normalize(l)):r&&(l.shapeFlag|=lr(r)?8:16),iu>0&&!i&&Fn&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Fn.push(l),l}const bt=qk;function qk(t,e=null,r=null,n=0,a=null,s=!1){if((!t||t===Z7)&&(t=tn),ou(t)){const o=Zs(t,e,!0);return r&&l2(o,r),iu>0&&!s&&Fn&&(o.shapeFlag&6?Fn[Fn.indexOf(t)]=o:Fn.push(o)),o.patchFlag=-2,o}if(Xk(t)&&(t=t.__vccOpts),e){e=d1(e);let{class:o,style:l}=e;o&&!lr(o)&&(e.class=Zt(o)),Yt(l)&&(Xp(l)&&!Xe(l)&&(l=Dr({},l)),e.style=Mn(l))}const i=lr(t)?1:f8(t)?128:O7(t)?64:Yt(t)?4:ht(t)?2:0;return C(t,e,r,n,a,i,s,!0)}function d1(t){return t?Xp(t)||t8(t)?Dr({},t):t:null}function Zs(t,e,r=!1,n=!1){const{props:a,ref:s,patchFlag:i,children:o,transition:l}=t,u=e?pr(a||{},e):a,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&p8(u),ref:e&&e.ref?r&&s?Xe(s)?s.concat(qc(e)):[s,qc(e)]:qc(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Vt?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Zs(t.ssContent),ssFallback:t.ssFallback&&Zs(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&su(c,l.clone(c)),c}function Ws(t=" ",e=0){return bt(c1,null,t,e)}function qo(t,e){const r=bt(U0,null,t);return r.staticCount=e,r}function Ke(t="",e=!1){return e?(A(),ot(tn,null,t)):bt(tn,null,t)}function os(t){return t==null||typeof t=="boolean"?bt(tn):Xe(t)?bt(Vt,null,t.slice()):ou(t)?$i(t):bt(c1,null,String(t))}function $i(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Zs(t)}function l2(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Xe(e))r=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),l2(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=e._;!a&&!t8(e)?e._ctx=Wr:a===3&&Wr&&(Wr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ht(e)?(e={default:e,_ctx:Wr},r=32):(e=String(e),n&64?(r=16,e=[Ws(e)]):r=8);t.children=e,t.shapeFlag|=r}function pr(...t){const e={};for(let r=0;rrn||Wr;let gd,Sh;{const t=Bu(),e=(r,n)=>{let a;return(a=t[r])||(a=t[r]=[]),a.push(n),s=>{a.length>1?a.forEach(i=>i(s)):a[0](s)}};gd=e("__VUE_INSTANCE_SETTERS__",r=>rn=r),Sh=e("__VUE_SSR_SETTERS__",r=>lu=r)}const ju=t=>{const e=rn;return gd(t),t.scope.on(),()=>{t.scope.off(),gd(e)}},x4=()=>{rn&&rn.scope.off(),gd(null)};function m8(t){return t.vnode.shapeFlag&4}let lu=!1;function Gk(t,e=!1,r=!1){e&&Sh(e);const{props:n,children:a}=t.vnode,s=m8(t);Ek(t,n,s,e),Sk(t,a,r||e);const i=s?Yk(t,e):void 0;return e&&Sh(!1),i}function Yk(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,fk);const{setup:n}=r;if(n){qs();const a=t.setupContext=n.length>1?b8(t):null,s=ju(t),i=Fu(n,t,0,[t.props,a]),o=Y6(i);if(Vs(),s(),(o||t.sp)&&!Cl(t)&&B7(t),o){if(i.then(x4,x4),e)return i.then(l=>{T4(t,l)}).catch(l=>{a1(l,t,0)});t.asyncDep=i}else T4(t,i)}else g8(t)}function T4(t,e,r){ht(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Yt(e)&&(t.setupState=w7(e)),g8(t)}function g8(t,e,r){const n=t.type;t.render||(t.render=n.render||xa);{const a=ju(t);qs();try{mk(t)}finally{Vs(),a()}}}const Kk={get(t,e){return Jr(t,"get",""),t[e]}};function b8(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,Kk),slots:t.slots,emit:t.emit,expose:e}}function f1(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(w7(zT(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in z0)return z0[r](t)},has(e,r){return r in e||r in z0}})):t.proxy}function Qk(t,e=!0){return ht(t)?t.displayName||t.name:t.name||e&&t.__name}function Xk(t){return ht(t)&&"__vccOpts"in t}const ie=(t,e)=>KT(t,e,lu);function Tr(t,e,r){const n=(s,i,o)=>{md(-1);try{return bt(s,i,o)}finally{md(1)}},a=arguments.length;return a===2?Yt(e)&&!Xe(e)?ou(e)?n(t,null,[e]):n(t,e):n(t,null,e):(a>3?r=Array.prototype.slice.call(arguments,2):a===3&&ou(r)&&(r=[r]),n(t,e,r))}const Jk="3.5.21";/** * @vue/runtime-dom v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ah;const k4=typeof window<"u"&&window.trustedTypes;if(k4)try{Ah=k4.createPolicy("vue",{createHTML:t=>t})}catch{}const v8=Ah?t=>Ah.createHTML(t):t=>t,eS="http://www.w3.org/2000/svg",tS="http://www.w3.org/1998/Math/MathML",Rs=typeof document<"u"?document:null,S4=Rs&&Rs.createElement("template"),rS={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const a=e==="svg"?Rs.createElementNS(eS,t):e==="mathml"?Rs.createElementNS(tS,t):r?Rs.createElement(t,{is:r}):Rs.createElement(t);return t==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:t=>Rs.createTextNode(t),createComment:t=>Rs.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Rs.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,a,s){const i=r?r.previousSibling:e.lastChild;if(a&&(a===s||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===s||!(a=a.nextSibling)););else{S4.innerHTML=v8(n==="svg"?`${t}`:n==="mathml"?`${t}`:t);const o=S4.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,r)}return[i?i.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},li="transition",p0="animation",uu=Symbol("_vtc"),y8={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},nS=Dr({},I7,y8),aS=t=>(t.displayName="Transition",t.props=nS,t),cte=aS((t,{slots:e})=>Tr(ak,sS(t),e)),vo=(t,e=[])=>{Xe(t)?t.forEach(r=>r(...e)):t&&t(...e)},A4=t=>t?Xe(t)?t.some(e=>e.length>1):t.length>1:!1;function sS(t){const e={};for(const ee in t)ee in y8||(e[ee]=t[ee]);if(t.css===!1)return e;const{name:r="v",type:n,duration:a,enterFromClass:s=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:o=`${r}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=o,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:f=`${r}-leave-to`}=t,m=iS(a),p=m&&m[0],b=m&&m[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:k,onLeave:N,onLeaveCancelled:L,onBeforeAppear:W=y,onAppear:z=x,onAppearCancelled:ne=k}=e,K=(ee,Ne,Be,Qe)=>{ee._enterCancelled=Qe,yo(ee,Ne?c:o),yo(ee,Ne?u:i),Be&&Be()},ge=(ee,Ne)=>{ee._isLeaving=!1,yo(ee,d),yo(ee,f),yo(ee,h),Ne&&Ne()},le=ee=>(Ne,Be)=>{const Qe=ee?z:x,be=()=>K(Ne,ee,Be);vo(Qe,[Ne,be]),C4(()=>{yo(Ne,ee?l:s),As(Ne,ee?c:o),A4(Qe)||O4(Ne,n,p,be)})};return Dr(e,{onBeforeEnter(ee){vo(y,[ee]),As(ee,s),As(ee,i)},onBeforeAppear(ee){vo(W,[ee]),As(ee,l),As(ee,u)},onEnter:le(!1),onAppear:le(!0),onLeave(ee,Ne){ee._isLeaving=!0;const Be=()=>ge(ee,Ne);As(ee,d),ee._enterCancelled?(As(ee,h),R4()):(R4(),As(ee,h)),C4(()=>{ee._isLeaving&&(yo(ee,d),As(ee,f),A4(N)||O4(ee,n,b,Be))}),vo(N,[ee,Be])},onEnterCancelled(ee){K(ee,!1,void 0,!0),vo(k,[ee])},onAppearCancelled(ee){K(ee,!0,void 0,!0),vo(ne,[ee])},onLeaveCancelled(ee){ge(ee),vo(L,[ee])}})}function iS(t){if(t==null)return null;if(Yt(t))return[mf(t.enter),mf(t.leave)];{const e=mf(t);return[e,e]}}function mf(t){return hT(t)}function As(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[uu]||(t[uu]=new Set)).add(e)}function yo(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[uu];r&&(r.delete(e),r.size||(t[uu]=void 0))}function C4(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let oS=0;function O4(t,e,r,n){const a=t._endId=++oS,s=()=>{a===t._endId&&n()};if(r!=null)return setTimeout(s,r);const{type:i,timeout:o,propCount:l}=lS(t,e);if(!i)return n();const u=i+"end";let c=0;const d=()=>{t.removeEventListener(u,h),s()},h=f=>{f.target===t&&++c>=l&&d()};setTimeout(()=>{c(r[m]||"").split(", "),a=n(`${li}Delay`),s=n(`${li}Duration`),i=M4(a,s),o=n(`${p0}Delay`),l=n(`${p0}Duration`),u=M4(o,l);let c=null,d=0,h=0;e===li?i>0&&(c=li,d=i,h=s.length):e===p0?u>0&&(c=p0,d=u,h=l.length):(d=Math.max(i,u),c=d>0?i>u?li:p0:null,h=c?c===li?s.length:l.length:0);const f=c===li&&/\b(?:transform|all)(?:,|$)/.test(n(`${li}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:f}}function M4(t,e){for(;t.lengthN4(r)+N4(t[n])))}function N4(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function R4(){return document.body.offsetHeight}function uS(t,e,r){const n=t[uu];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const bd=Symbol("_vod"),w8=Symbol("_vsh"),u2={name:"show",beforeMount(t,{value:e},{transition:r}){t[bd]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):m0(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),m0(t,!0),n.enter(t)):n.leave(t,()=>{m0(t,!1)}):m0(t,e))},beforeUnmount(t,{value:e}){m0(t,e)}};function m0(t,e){t.style.display=e?t[bd]:"none",t[w8]=!e}function cS(){u2.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const _8=Symbol("");function dS(t){const e=Nn();if(!e)return;const r=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(s=>vd(s,a))},n=()=>{const a=t(e.proxy);e.ce?vd(e.ce,a):Ch(e.subTree,a),r(a)};U7(()=>{T7(n)}),hr(()=>{St(n,xa,{flush:"post"});const a=new MutationObserver(n);a.observe(e.subTree.el.parentNode,{childList:!0}),qn(()=>a.disconnect())})}function Ch(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Ch(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)vd(t.el,e);else if(t.type===Vt)t.children.forEach(r=>Ch(r,e));else if(t.type===U0){let{el:r,anchor:n}=t;for(;r&&(vd(r,e),r!==n);)r=r.nextSibling}}function vd(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const a in e){const s=_T(e[a]);r.setProperty(`--${a}`,s),n+=`--${a}: ${s};`}r[_8]=n}}const fS=/(?:^|;)\s*display\s*:/;function hS(t,e,r){const n=t.style,a=lr(r);let s=!1;if(r&&!a){if(e)if(lr(e))for(const i of e.split(";")){const o=i.slice(0,i.indexOf(":")).trim();r[o]==null&&Vc(n,o,"")}else for(const i in e)r[i]==null&&Vc(n,i,"");for(const i in r)i==="display"&&(s=!0),Vc(n,i,r[i])}else if(a){if(e!==r){const i=n[_8];i&&(r+=";"+i),n.cssText=r,s=fS.test(r)}}else e&&t.removeAttribute("style");bd in t&&(t[bd]=s?n.display:"",t[w8]&&(n.display="none"))}const I4=/\s*!important$/;function Vc(t,e,r){if(Xe(r))r.forEach(n=>Vc(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=pS(t,e);I4.test(r)?t.setProperty(ei(n),r.replace(I4,""),"important"):t[n]=r}}const L4=["Webkit","Moz","ms"],gf={};function pS(t,e){const r=gf[e];if(r)return r;let n=Un(e);if(n!=="filter"&&n in t)return gf[e]=n;n=ra(n);for(let a=0;abf||(vS.then(()=>bf=0),bf=Date.now());function wS(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Ma(_S(n,r.value),e,5,[n])};return r.value=t,r.attached=yS(),r}function _S(t,e){if(Xe(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const F4=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,ES=(t,e,r,n,a,s)=>{const i=a==="svg";e==="class"?uS(t,n,i):e==="style"?hS(t,r,n):Kd(e)?qp(e)||gS(t,e,r,n,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):xS(t,e,n,i))?($4(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&D4(t,e,n,i,s,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!lr(n))?$4(t,Un(e),n,s,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),D4(t,e,n,i))};function xS(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&F4(e)&&ht(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return F4(e)&&lr(r)?!1:e in t}const Ki=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Xe(e)?r=>zc(e,r):e};function TS(t){t.target.composing=!0}function j4(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ia=Symbol("_assign"),yd={created(t,{modifiers:{lazy:e,trim:r,number:n}},a){t[ia]=Ki(a);const s=n||a.props&&a.props.type==="number";Bs(t,e?"change":"input",i=>{if(i.target.composing)return;let o=t.value;r&&(o=o.trim()),s&&(o=id(o)),t[ia](o)}),r&&Bs(t,"change",()=>{t.value=t.value.trim()}),e||(Bs(t,"compositionstart",TS),Bs(t,"compositionend",j4),Bs(t,"change",j4))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:a,number:s}},i){if(t[ia]=Ki(i),t.composing)return;const o=(s||t.type==="number")&&!/^0\d/.test(t.value)?id(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||a&&t.value.trim()===l)||(t.value=l))}},E8={deep:!0,created(t,e,r){t[ia]=Ki(r),Bs(t,"change",()=>{const n=t._modelValue,a=Hl(t),s=t.checked,i=t[ia];if(Xe(n)){const o=Jd(n,a),l=o!==-1;if(s&&!l)i(n.concat(a));else if(!s&&l){const u=[...n];u.splice(o,1),i(u)}}else if(Uo(n)){const o=new Set(n);s?o.add(a):o.delete(a),i(o)}else i(T8(t,s))})},mounted:z4,beforeUpdate(t,e,r){t[ia]=Ki(r),z4(t,e,r)}};function z4(t,{value:e,oldValue:r},n){t._modelValue=e;let a;if(Xe(e))a=Jd(e,n.props.value)>-1;else if(Uo(e))a=e.has(n.props.value);else{if(e===r)return;a=Gi(e,T8(t,!0))}t.checked!==a&&(t.checked=a)}const x8={created(t,{value:e},r){t.checked=Gi(e,r.props.value),t[ia]=Ki(r),Bs(t,"change",()=>{t[ia](Hl(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[ia]=Ki(n),e!==r&&(t.checked=Gi(e,n.props.value))}},kS={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const a=Uo(e);Bs(t,"change",()=>{const s=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>r?id(Hl(i)):Hl(i));t[ia](t.multiple?a?new Set(s):s:s[0]),t._assigning=!0,bn(()=>{t._assigning=!1})}),t[ia]=Ki(n)},mounted(t,{value:e}){U4(t,e)},beforeUpdate(t,e,r){t[ia]=Ki(r)},updated(t,{value:e}){t._assigning||U4(t,e)}};function U4(t,e){const r=t.multiple,n=Xe(e);if(!(r&&!n&&!Uo(e))){for(let a=0,s=t.options.length;aString(u)===String(o)):i.selected=Jd(e,o)>-1}else i.selected=e.has(o);else if(Gi(Hl(i),e)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Hl(t){return"_value"in t?t._value:t.value}function T8(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const SS={created(t,e,r){Ec(t,e,r,null,"created")},mounted(t,e,r){Ec(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Ec(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Ec(t,e,r,n,"updated")}};function k8(t,e){switch(t){case"SELECT":return kS;case"TEXTAREA":return yd;default:switch(e){case"checkbox":return E8;case"radio":return x8;default:return yd}}}function Ec(t,e,r,n,a){const i=k8(t.tagName,r.props&&r.props.type)[a];i&&i(t,e,r,n)}function AS(){yd.getSSRProps=({value:t})=>({value:t}),x8.getSSRProps=({value:t},e)=>{if(e.props&&Gi(e.props.value,t))return{checked:!0}},E8.getSSRProps=({value:t},e)=>{if(Xe(t)){if(e.props&&Jd(t,e.props.value)>-1)return{checked:!0}}else if(Uo(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},SS.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=k8(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const CS=["ctrl","shift","alt","meta"],OS={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>CS.some(r=>t[`${r}Key`]&&!e.includes(r))},ls=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=((a,...s)=>{for(let i=0;i{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=(a=>{if(!("key"in a))return;const s=ei(a.key);if(e.some(i=>i===s||MS[i]===s))return t(a)}))},NS=Dr({patchProp:ES},rS);let q4;function S8(){return q4||(q4=Ck(NS))}const dte=((...t)=>{S8().render(...t)}),RS=((...t)=>{const e=S8().createApp(...t),{mount:r}=e;return e.mount=n=>{const a=LS(n);if(!a)return;const s=e._component;!ht(s)&&!s.render&&!s.template&&(s.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=r(a,!1,IS(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},e});function IS(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function LS(t){return lr(t)?document.querySelector(t):t}let V4=!1;const PS=()=>{V4||(V4=!0,AS(),cS())},DS=(t,e)=>yr(e)?or(e):e,A8="usehead";function $S(t){return{install(r){r.config.globalProperties.$unhead=t,r.config.globalProperties.$head=t,r.provide(A8,t)}}.install}function C8(){if(a2()){const t=Gt(A8);if(!t)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function c2(t,e={}){const r=e.head||C8();return r.ssr?r.push(t||{},e):BS(r,t,e)}function BS(t,e,r={}){const n=Re(!1);let a;return Yn(()=>{const i=n.value?{}:ad(e,DS);a?a.patch(i):a=t.push(i,r)}),Nn()&&(o1(()=>{a.dispose()}),F7(()=>{n.value=!0}),H7(()=>{n.value=!1})),a}function O8(t={},e={}){(e.head||C8()).use(lT);const{title:n,titleTemplate:a,...s}=t;return c2({title:n,titleTemplate:a,_flatMeta:s},e)}function HS(t={}){const e=nT({domOptions:{render:aT(()=>U6(e),r=>setTimeout(r,0))},...t});return e.install=$S(e),e}/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const hl=typeof document<"u";function M8(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function FS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&M8(t.default)}const Ut=Object.assign;function yf(t,e){const r={};for(const n in e){const a=e[n];r[n]=Na(a)?a.map(t):t(a)}return r}const V0=()=>{},Na=Array.isArray,N8=/#/g,jS=/&/g,zS=/\//g,US=/=/g,qS=/\?/g,R8=/\+/g,VS=/%5B/g,ZS=/%5D/g,I8=/%5E/g,WS=/%60/g,L8=/%7B/g,GS=/%7C/g,P8=/%7D/g,YS=/%20/g;function d2(t){return encodeURI(""+t).replace(GS,"|").replace(VS,"[").replace(ZS,"]")}function KS(t){return d2(t).replace(L8,"{").replace(P8,"}").replace(I8,"^")}function Oh(t){return d2(t).replace(R8,"%2B").replace(YS,"+").replace(N8,"%23").replace(jS,"%26").replace(WS,"`").replace(L8,"{").replace(P8,"}").replace(I8,"^")}function QS(t){return Oh(t).replace(US,"%3D")}function XS(t){return d2(t).replace(N8,"%23").replace(qS,"%3F")}function JS(t){return t==null?"":XS(t).replace(zS,"%2F")}function cu(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const eA=/\/$/,tA=t=>t.replace(eA,"");function wf(t,e,r="/"){let n,a={},s="",i="";const o=e.indexOf("#");let l=e.indexOf("?");return o=0&&(l=-1),l>-1&&(n=e.slice(0,l),s=e.slice(l+1,o>-1?o:e.length),a=t(s)),o>-1&&(n=n||e.slice(0,o),i=e.slice(o,e.length)),n=sA(n??e,r),{fullPath:n+(s&&"?")+s+i,path:n,query:a,hash:cu(i)}}function rA(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Z4(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function nA(t,e,r){const n=e.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&Fl(e.matched[n],r.matched[a])&&D8(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Fl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function D8(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!aA(t[r],e[r]))return!1;return!0}function aA(t,e){return Na(t)?W4(t,e):Na(e)?W4(e,t):t===e}function W4(t,e){return Na(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function sA(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let s=r.length-1,i,o;for(i=0;i1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(i).join("/")}const ui={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var jl;(function(t){t.pop="pop",t.push="push"})(jl||(jl={}));var Oo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Oo||(Oo={}));const _f="";function $8(t){if(!t)if(hl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),tA(t)}const iA=/^[^#]+#/;function B8(t,e){return t.replace(iA,"#")+e}function oA(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const h1=()=>({left:window.scrollX,top:window.scrollY});function lA(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;e=oA(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function G4(t,e){return(history.state?history.state.position-e:-1)+t}const Mh=new Map;function uA(t,e){Mh.set(t,e)}function cA(t){const e=Mh.get(t);return Mh.delete(t),e}let dA=()=>location.protocol+"//"+location.host;function H8(t,e){const{pathname:r,search:n,hash:a}=e,s=t.indexOf("#");if(s>-1){let o=a.includes(t.slice(s))?t.slice(s).length:1,l=a.slice(o);return l[0]!=="/"&&(l="/"+l),Z4(l,"")}return Z4(r,t)+n+a}function fA(t,e,r,n){let a=[],s=[],i=null;const o=({state:h})=>{const f=H8(t,location),m=r.value,p=e.value;let b=0;if(h){if(r.value=f,e.value=h,i&&i===m){i=null;return}b=p?h.position-p.position:0}else n(f);a.forEach(y=>{y(r.value,m,{delta:b,type:jl.pop,direction:b?b>0?Oo.forward:Oo.back:Oo.unknown})})};function l(){i=r.value}function u(h){a.push(h);const f=()=>{const m=a.indexOf(h);m>-1&&a.splice(m,1)};return s.push(f),f}function c(){const{history:h}=window;h.state&&h.replaceState(Ut({},h.state,{scroll:h1()}),"")}function d(){for(const h of s)h();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Y4(t,e,r,n=!1,a=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:a?h1():null}}function hA(t){const{history:e,location:r}=window,n={value:H8(t,r)},a={value:e.state};a.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const d=t.indexOf("#"),h=d>-1?(r.host&&document.querySelector("base")?t:t.slice(d))+l:dA()+t+l;try{e[c?"replaceState":"pushState"](u,"",h),a.value=u}catch(f){console.error(f),r[c?"replace":"assign"](h)}}function i(l,u){const c=Ut({},e.state,Y4(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});s(l,c,!0),n.value=l}function o(l,u){const c=Ut({},a.value,e.state,{forward:l,scroll:h1()});s(c.current,c,!0);const d=Ut({},Y4(n.value,l,null),{position:c.position+1},u);s(l,d,!1),n.value=l}return{location:n,state:a,push:o,replace:i}}function pA(t){t=$8(t);const e=hA(t),r=fA(t,e.state,e.location,e.replace);function n(s,i=!0){i||r.pauseListeners(),history.go(s)}const a=Ut({location:"",base:t,go:n,createHref:B8.bind(null,t)},e,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function fte(t=""){let e=[],r=[[_f,{}]],n=0;t=$8(t);function a(o,l={}){n++,n!==r.length&&r.splice(n),r.push([o,l])}function s(o,l,{direction:u,delta:c}){const d={direction:u,delta:c,type:jl.pop};for(const h of e)h(o,l,d)}const i={location:_f,state:{},base:t,createHref:B8.bind(null,t),replace(o,l){r.splice(n--,1),a(o,l)},push(o,l){a(o,l)},listen(o){return e.push(o),()=>{const l=e.indexOf(o);l>-1&&e.splice(l,1)}},destroy(){e=[],r=[[_f,{}]],n=0},go(o,l=!0){const u=this.location,c=o<0?Oo.back:Oo.forward;n=Math.max(0,Math.min(n+o,r.length-1)),l&&s(this.location,u,{direction:c,delta:o})}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>r[n][0]}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>r[n][1]}),i}function mA(t){return typeof t=="string"||t&&typeof t=="object"}function F8(t){return typeof t=="string"||typeof t=="symbol"}const j8=Symbol("");var K4;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(K4||(K4={}));function zl(t,e){return Ut(new Error,{type:t,[j8]:!0},e)}function Cs(t,e){return t instanceof Error&&j8 in t&&(e==null||!!(t.type&e))}const Q4="[^/]+?",gA={sensitive:!1,strict:!1,start:!0,end:!0},bA=/[.+*?^${}()[\]/\\]/g;function vA(t,e){const r=Ut({},gA,e),n=[];let a=r.start?"^":"";const s=[];for(const u of t){const c=u.length?[]:[90];r.strict&&!u.length&&(a+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function z8(t,e){let r=0;const n=t.score,a=e.score;for(;r0&&e[e.length-1]<0}const wA={type:0,value:""},_A=/[a-zA-Z0-9_]/;function EA(t){if(!t)return[[]];if(t==="/")return[[wA]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${r})/"${u}": ${f}`)}let r=0,n=r;const a=[];let s;function i(){s&&a.push(s),s=[]}let o=0,l,u="",c="";function d(){u&&(r===0?s.push({type:0,value:u}):r===1||r===2||r===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;o{i(k)}:V0}function i(d){if(F8(d)){const h=n.get(d);h&&(n.delete(d),r.splice(r.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=r.indexOf(d);h>-1&&(r.splice(h,1),d.record.name&&n.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function o(){return r}function l(d){const h=AA(d,r);r.splice(h,0,d),d.record.name&&!t3(d)&&n.set(d.record.name,d)}function u(d,h){let f,m={},p,b;if("name"in d&&d.name){if(f=n.get(d.name),!f)throw zl(1,{location:d});b=f.record.name,m=Ut(J4(h.params,f.keys.filter(k=>!k.optional).concat(f.parent?f.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),d.params&&J4(d.params,f.keys.map(k=>k.name))),p=f.stringify(m)}else if(d.path!=null)p=d.path,f=r.find(k=>k.re.test(p)),f&&(m=f.parse(p),b=f.record.name);else{if(f=h.name?n.get(h.name):r.find(k=>k.re.test(h.path)),!f)throw zl(1,{location:d,currentLocation:h});b=f.record.name,m=Ut({},h.params,d.params),p=f.stringify(m)}const y=[];let x=f;for(;x;)y.unshift(x.record),x=x.parent;return{name:b,path:p,params:m,matched:y,meta:SA(y)}}t.forEach(d=>s(d));function c(){r.length=0,n.clear()}return{addRoute:s,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:o,getRecordMatcher:a}}function J4(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function e3(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:kA(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function kA(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function t3(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function SA(t){return t.reduce((e,r)=>Ut(e,r.meta),{})}function r3(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function AA(t,e){let r=0,n=e.length;for(;r!==n;){const s=r+n>>1;z8(t,e[s])<0?n=s:r=s+1}const a=CA(t);return a&&(n=e.lastIndexOf(a,n-1)),n}function CA(t){let e=t;for(;e=e.parent;)if(U8(e)&&z8(t,e)===0)return e}function U8({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function OA(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;as&&Oh(s)):[n&&Oh(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+r,s!=null&&(e+="="+s))})}return e}function MA(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Na(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return e}const NA=Symbol(""),a3=Symbol(""),p1=Symbol(""),f2=Symbol(""),Nh=Symbol("");function g0(){let t=[];function e(n){return t.push(n),()=>{const a=t.indexOf(n);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Bi(t,e,r,n,a,s=i=>i()){const i=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,l)=>{const u=h=>{h===!1?l(zl(4,{from:r,to:e})):h instanceof Error?l(h):mA(h)?l(zl(2,{from:e,to:h})):(i&&n.enterCallbacks[a]===i&&typeof h=="function"&&i.push(h),o())},c=s(()=>t.call(n&&n.instances[a],e,r,u));let d=Promise.resolve(c);t.length<3&&(d=d.then(u)),d.catch(h=>l(h))})}function Ef(t,e,r,n,a=s=>s()){const s=[];for(const i of t)for(const o in i.components){let l=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if(M8(l)){const c=(l.__vccOpts||l)[e];c&&s.push(Bi(c,r,n,i,o,a))}else{let u=l();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${i.path}"`);const d=FS(c)?c.default:c;i.mods[o]=c,i.components[o]=d;const f=(d.__vccOpts||d)[e];return f&&Bi(f,r,n,i,o,a)()}))}}return s}function s3(t){const e=Gt(p1),r=Gt(f2),n=ie(()=>{const l=U(t.to);return e.resolve(l)}),a=ie(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],d=r.matched;if(!c||!d.length)return-1;const h=d.findIndex(Fl.bind(null,c));if(h>-1)return h;const f=i3(l[u-2]);return u>1&&i3(c)===f&&d[d.length-1].path!==f?d.findIndex(Fl.bind(null,l[u-2])):h}),s=ie(()=>a.value>-1&&DA(r.params,n.value.params)),i=ie(()=>a.value>-1&&a.value===r.matched.length-1&&D8(r.params,n.value.params));function o(l={}){if(PA(l)){const u=e[U(t.replace)?"replace":"push"](U(t.to)).catch(V0);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:ie(()=>n.value.href),isActive:s,isExactActive:i,navigate:o}}function RA(t){return t.length===1?t[0]:t}const IA=Ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:s3,setup(t,{slots:e}){const r=Oa(s3(t)),{options:n}=Gt(p1),a=ie(()=>({[o3(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[o3(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=e.default&&RA(e.default(r));return t.custom?s:Tr("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},s)}}}),LA=IA;function PA(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function DA(t,e){for(const r in e){const n=e[r],a=t[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Na(a)||a.length!==n.length||n.some((s,i)=>s!==a[i]))return!1}return!0}function i3(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const o3=(t,e,r)=>t??e??r,$A=Ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=Gt(Nh),a=ie(()=>t.route||n.value),s=Gt(a3,0),i=ie(()=>{let u=U(s);const{matched:c}=a.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),o=ie(()=>a.value.matched[i.value]);jn(a3,ie(()=>i.value+1)),jn(NA,o),jn(Nh,a);const l=Re();return St(()=>[l.value,o.value,t.name],([u,c,d],[h,f,m])=>{c&&(c.instances[d]=u,f&&f!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),u&&c&&(!f||!Fl(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=a.value,c=t.name,d=o.value,h=d&&d.components[c];if(!h)return l3(r.default,{Component:h,route:u});const f=d.props[c],m=f?f===!0?u.params:typeof f=="function"?f(u):f:null,b=Tr(h,Ut({},m,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return l3(r.default,{Component:b,route:u})||b}}});function l3(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const q8=$A;function BA(t){const e=TA(t.routes,t),r=t.parseQuery||OA,n=t.stringifyQuery||n3,a=t.history,s=g0(),i=g0(),o=g0(),l=an(ui);let u=ui;hl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=yf.bind(null,re=>""+re),d=yf.bind(null,JS),h=yf.bind(null,cu);function f(re,Ce){let Ee,Ue;return F8(re)?(Ee=e.getRecordMatcher(re),Ue=Ce):Ue=re,e.addRoute(Ue,Ee)}function m(re){const Ce=e.getRecordMatcher(re);Ce&&e.removeRoute(Ce)}function p(){return e.getRoutes().map(re=>re.record)}function b(re){return!!e.getRecordMatcher(re)}function y(re,Ce){if(Ce=Ut({},Ce||l.value),typeof re=="string"){const G=wf(r,re,Ce.path),se=e.resolve({path:G.path},Ce),oe=a.createHref(G.fullPath);return Ut(G,se,{params:h(se.params),hash:cu(G.hash),redirectedFrom:void 0,href:oe})}let Ee;if(re.path!=null)Ee=Ut({},re,{path:wf(r,re.path,Ce.path).path});else{const G=Ut({},re.params);for(const se in G)G[se]==null&&delete G[se];Ee=Ut({},re,{params:d(G)}),Ce.params=d(Ce.params)}const Ue=e.resolve(Ee,Ce),Lt=re.hash||"";Ue.params=c(h(Ue.params));const $=rA(n,Ut({},re,{hash:KS(Lt),path:Ue.path})),j=a.createHref($);return Ut({fullPath:$,hash:Lt,query:n===n3?MA(re.query):re.query||{}},Ue,{redirectedFrom:void 0,href:j})}function x(re){return typeof re=="string"?wf(r,re,l.value.path):Ut({},re)}function k(re,Ce){if(u!==re)return zl(8,{from:Ce,to:re})}function N(re){return z(re)}function L(re){return N(Ut(x(re),{replace:!0}))}function W(re){const Ce=re.matched[re.matched.length-1];if(Ce&&Ce.redirect){const{redirect:Ee}=Ce;let Ue=typeof Ee=="function"?Ee(re):Ee;return typeof Ue=="string"&&(Ue=Ue.includes("?")||Ue.includes("#")?Ue=x(Ue):{path:Ue},Ue.params={}),Ut({query:re.query,hash:re.hash,params:Ue.path!=null?{}:re.params},Ue)}}function z(re,Ce){const Ee=u=y(re),Ue=l.value,Lt=re.state,$=re.force,j=re.replace===!0,G=W(Ee);if(G)return z(Ut(x(G),{state:typeof G=="object"?Ut({},Lt,G.state):Lt,force:$,replace:j}),Ce||Ee);const se=Ee;se.redirectedFrom=Ce;let oe;return!$&&nA(n,Ue,Ee)&&(oe=zl(16,{to:se,from:Ue}),ze(Ue,Ue,!0,!1)),(oe?Promise.resolve(oe):ge(se,Ue)).catch(ae=>Cs(ae)?Cs(ae,2)?ae:Mt(ae):Ae(ae,se,Ue)).then(ae=>{if(ae){if(Cs(ae,2))return z(Ut({replace:j},x(ae.to),{state:typeof ae.to=="object"?Ut({},Lt,ae.to.state):Lt,force:$}),Ce||se)}else ae=ee(se,Ue,!0,j,Lt);return le(se,Ue,ae),ae})}function ne(re,Ce){const Ee=k(re,Ce);return Ee?Promise.reject(Ee):Promise.resolve()}function K(re){const Ce=Qt.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(re):re()}function ge(re,Ce){let Ee;const[Ue,Lt,$]=HA(re,Ce);Ee=Ef(Ue.reverse(),"beforeRouteLeave",re,Ce);for(const G of Ue)G.leaveGuards.forEach(se=>{Ee.push(Bi(se,re,Ce))});const j=ne.bind(null,re,Ce);return Ee.push(j),Nt(Ee).then(()=>{Ee=[];for(const G of s.list())Ee.push(Bi(G,re,Ce));return Ee.push(j),Nt(Ee)}).then(()=>{Ee=Ef(Lt,"beforeRouteUpdate",re,Ce);for(const G of Lt)G.updateGuards.forEach(se=>{Ee.push(Bi(se,re,Ce))});return Ee.push(j),Nt(Ee)}).then(()=>{Ee=[];for(const G of $)if(G.beforeEnter)if(Na(G.beforeEnter))for(const se of G.beforeEnter)Ee.push(Bi(se,re,Ce));else Ee.push(Bi(G.beforeEnter,re,Ce));return Ee.push(j),Nt(Ee)}).then(()=>(re.matched.forEach(G=>G.enterCallbacks={}),Ee=Ef($,"beforeRouteEnter",re,Ce,K),Ee.push(j),Nt(Ee))).then(()=>{Ee=[];for(const G of i.list())Ee.push(Bi(G,re,Ce));return Ee.push(j),Nt(Ee)}).catch(G=>Cs(G,8)?G:Promise.reject(G))}function le(re,Ce,Ee){o.list().forEach(Ue=>K(()=>Ue(re,Ce,Ee)))}function ee(re,Ce,Ee,Ue,Lt){const $=k(re,Ce);if($)return $;const j=Ce===ui,G=hl?history.state:{};Ee&&(Ue||j?a.replace(re.fullPath,Ut({scroll:j&&G&&G.scroll},Lt)):a.push(re.fullPath,Lt)),l.value=re,ze(re,Ce,Ee,j),Mt()}let Ne;function Be(){Ne||(Ne=a.listen((re,Ce,Ee)=>{if(!br.listening)return;const Ue=y(re),Lt=W(Ue);if(Lt){z(Ut(Lt,{replace:!0,force:!0}),Ue).catch(V0);return}u=Ue;const $=l.value;hl&&uA(G4($.fullPath,Ee.delta),h1()),ge(Ue,$).catch(j=>Cs(j,12)?j:Cs(j,2)?(z(Ut(x(j.to),{force:!0}),Ue).then(G=>{Cs(G,20)&&!Ee.delta&&Ee.type===jl.pop&&a.go(-1,!1)}).catch(V0),Promise.reject()):(Ee.delta&&a.go(-Ee.delta,!1),Ae(j,Ue,$))).then(j=>{j=j||ee(Ue,$,!1),j&&(Ee.delta&&!Cs(j,8)?a.go(-Ee.delta,!1):Ee.type===jl.pop&&Cs(j,20)&&a.go(-1,!1)),le(Ue,$,j)}).catch(V0)}))}let Qe=g0(),be=g0(),De;function Ae(re,Ce,Ee){Mt(re);const Ue=be.list();return Ue.length?Ue.forEach(Lt=>Lt(re,Ce,Ee)):console.error(re),Promise.reject(re)}function Je(){return De&&l.value!==ui?Promise.resolve():new Promise((re,Ce)=>{Qe.add([re,Ce])})}function Mt(re){return De||(De=!re,Be(),Qe.list().forEach(([Ce,Ee])=>re?Ee(re):Ce()),Qe.reset()),re}function ze(re,Ce,Ee,Ue){const{scrollBehavior:Lt}=t;if(!hl||!Lt)return Promise.resolve();const $=!Ee&&cA(G4(re.fullPath,0))||(Ue||!Ee)&&history.state&&history.state.scroll||null;return bn().then(()=>Lt(re,Ce,$)).then(j=>j&&lA(j)).catch(j=>Ae(j,re,Ce))}const et=re=>a.go(re);let At;const Qt=new Set,br={currentRoute:l,listening:!0,addRoute:f,removeRoute:m,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:p,resolve:y,options:t,push:N,replace:L,go:et,back:()=>et(-1),forward:()=>et(1),beforeEach:s.add,beforeResolve:i.add,afterEach:o.add,onError:be.add,isReady:Je,install(re){const Ce=this;re.component("RouterLink",LA),re.component("RouterView",q8),re.config.globalProperties.$router=Ce,Object.defineProperty(re.config.globalProperties,"$route",{enumerable:!0,get:()=>U(l)}),hl&&!At&&l.value===ui&&(At=!0,N(a.location).catch(Lt=>{}));const Ee={};for(const Lt in ui)Object.defineProperty(Ee,Lt,{get:()=>l.value[Lt],enumerable:!0});re.provide(p1,Ce),re.provide(f2,v7(Ee)),re.provide(Nh,l);const Ue=re.unmount;Qt.add(re),re.unmount=function(){Qt.delete(re),Qt.size<1&&(u=ui,Ne&&Ne(),Ne=null,l.value=ui,At=!1,De=!1),Ue()}}};function Nt(re){return re.reduce((Ce,Ee)=>Ce.then(()=>K(Ee)),Promise.resolve())}return br}function HA(t,e){const r=[],n=[],a=[],s=Math.max(e.matched.length,t.matched.length);for(let i=0;iFl(u,o))?n.push(o):r.push(o));const l=t.matched[i];l&&(e.matched.find(u=>Fl(u,l))||a.push(l))}return[r,n,a]}function m1(){return Gt(p1)}function FA(t){return Gt(f2)}function jA(t){return document.readyState==="loading"?new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>e(t))}):Promise.resolve(t)}const zA=Ve({setup(t,{slots:e}){const r=Re(!1);return hr(()=>r.value=!0),()=>r.value?e.default&&e.default({}):e.placeholder&&e.placeholder({})}});function UA(t){try{return JSON.parse(t||"{}")}catch(e){return console.error("[SSG] On state deserialization -",e,t),{}}}function qA(t,e,r,n){const{transformState:a,registerComponents:s=!0,useHead:i=!0,rootContainer:o="#app"}={};async function l(u){const c=RS(t);let d;i&&c.use(d=HS());const h=BA({history:pA(e.base),...e}),{routes:f}=e;s&&c.component("ClientOnly",zA);const m=[],y={app:c,head:d,isClient:!0,router:h,routes:f,onSSRAppRendered:()=>{},triggerOnSSRAppRendered:()=>Promise.all(m.map(L=>L())),initialState:{},transformState:a,routePath:u};await jA(),y.initialState=a?.(window.__INITIAL_STATE__||{})||UA(window.__INITIAL_STATE__),await r?.(y),c.use(h);let x,k=!0;h.beforeEach((L,W,z)=>{(k||x&&x===L.path)&&(k=!1,x=L.path,L.meta.state=y.initialState),z()});const N=y.initialState;return{...y,initialState:N}}return(async()=>{const{app:u,router:c}=await l();await c.isReady(),u.mount(o,!0)})(),l}var zt;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),i={};for(const o of s)i[o]=a[o];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function n(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(zt||(zt={}));var u3;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(u3||(u3={}));const qe=zt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hi=t=>{switch(typeof t){case"undefined":return qe.undefined;case"string":return qe.string;case"number":return Number.isNaN(t)?qe.nan:qe.number;case"boolean":return qe.boolean;case"function":return qe.function;case"bigint":return qe.bigint;case"symbol":return qe.symbol;case"object":return Array.isArray(t)?qe.array:t===null?qe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?qe.promise:typeof Map<"u"&&t instanceof Map?qe.map:typeof Set<"u"&&t instanceof Set?qe.set:typeof Date<"u"&&t instanceof Date?qe.date:qe.object;default:return qe.unknown}},we=zt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);let Lo=class V8 extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(s){return s.message},n={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let o=n,l=0;for(;lr.message){const r={},n=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];r[s]=r[s]||[],r[s].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Lo.create=t=>new Lo(t);const Rh=(t,e)=>{let r;switch(t.code){case we.invalid_type:t.received===qe.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case we.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,zt.jsonStringifyReplacer)}`;break;case we.unrecognized_keys:r=`Unrecognized key(s) in object: ${zt.joinValues(t.keys,", ")}`;break;case we.invalid_union:r="Invalid input";break;case we.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${zt.joinValues(t.options)}`;break;case we.invalid_enum_value:r=`Invalid enum value. Expected ${zt.joinValues(t.options)}, received '${t.received}'`;break;case we.invalid_arguments:r="Invalid function arguments";break;case we.invalid_return_type:r="Invalid function return type";break;case we.invalid_date:r="Invalid date";break;case we.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:zt.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case we.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case we.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case we.custom:r="Invalid input";break;case we.invalid_intersection_types:r="Intersection results could not be merged";break;case we.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case we.not_finite:r="Number must be finite";break;default:r=e.defaultError,zt.assertNever(t)}return{message:r}};let VA=Rh;function ZA(){return VA}const WA=t=>{const{data:e,path:r,errorMaps:n,issueData:a}=t,s=[...r,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let o="";const l=n.filter(u=>!!u).slice().reverse();for(const u of l)o=u(i,{data:e,defaultError:o}).message;return{...a,path:s,message:o}};function $e(t,e){const r=ZA(),n=WA({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Rh?void 0:Rh].filter(a=>!!a)});t.common.issues.push(n)}let Vn=class Z8{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const a of r){if(a.status==="aborted")return gt;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const a of r){const s=await a.key,i=await a.value;n.push({key:s,value:i})}return Z8.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const a of r){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return gt;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(n[s.value]=i.value)}return{status:e.value,value:n}}};const gt=Object.freeze({status:"aborted"}),C0=t=>({status:"dirty",value:t}),da=t=>({status:"valid",value:t}),c3=t=>t.status==="aborted",d3=t=>t.status==="dirty",Ul=t=>t.status==="valid",wd=t=>typeof Promise<"u"&&t instanceof Promise;var We;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(We||(We={}));let bs=class{constructor(e,r,n,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};const f3=(t,e)=>{if(Ul(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Lo(t.common.issues);return this._error=r,this._error}}};function xt(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:a}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,o)=>{const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??n??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:l??r??o.defaultError}},description:a}}let It=class{get description(){return this._def.description}_getType(e){return Hi(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Hi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Vn,ctx:{common:e.parent.common,data:e.data,parsedType:Hi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(wd(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hi(e)},a=this._parseSync({data:e,path:n.path,parent:n});return f3(n,a)}"~validate"(e){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hi(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:r});return Ul(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>Ul(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hi(e)},a=this._parse({data:e,path:n.path,parent:n}),s=await(wd(a)?a:Promise.resolve(a));return f3(n,s)}refine(e,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,s)=>{const i=e(a),o=()=>s.addIssue({code:we.custom,...n(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,r){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(e){return new Po({schema:this,typeName:pt.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return qi.create(this,this._def)}nullable(){return Vl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ql.create(this)}promise(){return Ad.create(this,this._def)}or(e){return kd.create([this,e],this._def)}and(e){return Sd.create(this,e,this._def)}transform(e){return new Po({...xt(this._def),schema:this,typeName:pt.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new zh({...xt(this._def),innerType:this,defaultValue:r,typeName:pt.ZodDefault})}brand(){return new bC({typeName:pt.ZodBranded,type:this,...xt(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Uh({...xt(this._def),innerType:this,catchValue:r,typeName:pt.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return vC.create(this,e)}readonly(){return qh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const GA=/^c[^\s-]{8,}$/i,YA=/^[0-9a-z]+$/,KA=/^[0-9A-HJKMNP-TV-Z]{26}$/i,QA=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,XA=/^[a-z0-9_-]{21}$/i,JA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xf;const nC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,sC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,iC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W8="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",uC=new RegExp(`^${W8}$`);function G8(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function cC(t){return new RegExp(`^${G8(t)}$`)}function dC(t){let e=`${W8}T${G8(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function fC(t,e){return!!((e==="v4"||!e)&&nC.test(t)||(e==="v6"||!e)&&sC.test(t))}function hC(t,e){if(!JA.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function pC(t,e){return!!((e==="v4"||!e)&&aC.test(t)||(e==="v6"||!e)&&iC.test(t))}let du=class O0 extends It{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==qe.string){const s=this._getOrReturnCtx(e);return $e(s,{code:we.invalid_type,expected:qe.string,received:s.parsedType}),gt}const n=new Vn;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(a=this._getOrReturnCtx(e,a),$e(a,{code:we.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,o=e.data.lengthe.test(a),{validation:r,code:we.invalid_string,...We.errToObj(n)})}_addCheck(e){return new O0({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...We.errToObj(e)})}url(e){return this._addCheck({kind:"url",...We.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...We.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...We.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...We.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...We.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...We.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...We.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...We.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...We.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...We.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...We.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...We.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...We.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...We.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...We.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...We.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...We.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...We.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...We.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...We.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...We.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...We.errToObj(r)})}nonempty(e){return this.min(1,We.errToObj(e))}trim(){return new O0({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new O0({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new O0({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew du({checks:[],typeName:pt.ZodString,coerce:t?.coerce??!1,...xt(t)});function mC(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=r>n?r:n,s=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return s%i/10**a}let _d=class Ih extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==qe.number){const s=this._getOrReturnCtx(e);return $e(s,{code:we.invalid_type,expected:qe.number,received:s.parsedType}),gt}let n;const a=new Vn;for(const s of this._def.checks)s.kind==="int"?zt.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),$e(n,{code:we.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),$e(n,{code:we.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?mC(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),$e(n,{code:we.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),$e(n,{code:we.not_finite,message:s.message}),a.dirty()):zt.assertNever(s);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,We.toString(r))}gt(e,r){return this.setLimit("min",e,!1,We.toString(r))}lte(e,r){return this.setLimit("max",e,!0,We.toString(r))}lt(e,r){return this.setLimit("max",e,!1,We.toString(r))}setLimit(e,r,n,a){return new Ih({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:We.toString(a)}]})}_addCheck(e){return new Ih({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:We.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:We.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:We.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:We.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:We.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:We.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:We.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:We.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:We.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&zt.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.valuenew _d({checks:[],typeName:pt.ZodNumber,coerce:t?.coerce||!1,...xt(t)});let Ed=class Lh extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==qe.bigint)return this._getInvalidInput(e);let n;const a=new Vn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),$e(n,{code:we.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),$e(n,{code:we.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):zt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return $e(r,{code:we.invalid_type,expected:qe.bigint,received:r.parsedType}),gt}gte(e,r){return this.setLimit("min",e,!0,We.toString(r))}gt(e,r){return this.setLimit("min",e,!1,We.toString(r))}lte(e,r){return this.setLimit("max",e,!0,We.toString(r))}lt(e,r){return this.setLimit("max",e,!1,We.toString(r))}setLimit(e,r,n,a){return new Lh({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:We.toString(a)}]})}_addCheck(e){return new Lh({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:We.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:We.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:We.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:We.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:We.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Ed({checks:[],typeName:pt.ZodBigInt,coerce:t?.coerce??!1,...xt(t)});let xd=class extends It{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==qe.boolean){const n=this._getOrReturnCtx(e);return $e(n,{code:we.invalid_type,expected:qe.boolean,received:n.parsedType}),gt}return da(e.data)}};xd.create=t=>new xd({typeName:pt.ZodBoolean,coerce:t?.coerce||!1,...xt(t)});let Td=class Y8 extends It{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==qe.date){const s=this._getOrReturnCtx(e);return $e(s,{code:we.invalid_type,expected:qe.date,received:s.parsedType}),gt}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return $e(s,{code:we.invalid_date}),gt}const n=new Vn;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(a=this._getOrReturnCtx(e,a),$e(a,{code:we.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):zt.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Y8({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:We.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:We.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Td({checks:[],coerce:t?.coerce||!1,typeName:pt.ZodDate,...xt(t)});let h3=class extends It{_parse(e){if(this._getType(e)!==qe.symbol){const n=this._getOrReturnCtx(e);return $e(n,{code:we.invalid_type,expected:qe.symbol,received:n.parsedType}),gt}return da(e.data)}};h3.create=t=>new h3({typeName:pt.ZodSymbol,...xt(t)});let p3=class extends It{_parse(e){if(this._getType(e)!==qe.undefined){const n=this._getOrReturnCtx(e);return $e(n,{code:we.invalid_type,expected:qe.undefined,received:n.parsedType}),gt}return da(e.data)}};p3.create=t=>new p3({typeName:pt.ZodUndefined,...xt(t)});let m3=class extends It{_parse(e){if(this._getType(e)!==qe.null){const n=this._getOrReturnCtx(e);return $e(n,{code:we.invalid_type,expected:qe.null,received:n.parsedType}),gt}return da(e.data)}};m3.create=t=>new m3({typeName:pt.ZodNull,...xt(t)});let g3=class extends It{constructor(){super(...arguments),this._any=!0}_parse(e){return da(e.data)}};g3.create=t=>new g3({typeName:pt.ZodAny,...xt(t)});let b3=class extends It{constructor(){super(...arguments),this._unknown=!0}_parse(e){return da(e.data)}};b3.create=t=>new b3({typeName:pt.ZodUnknown,...xt(t)});let Qi=class extends It{_parse(e){const r=this._getOrReturnCtx(e);return $e(r,{code:we.invalid_type,expected:qe.never,received:r.parsedType}),gt}};Qi.create=t=>new Qi({typeName:pt.ZodNever,...xt(t)});let v3=class extends It{_parse(e){if(this._getType(e)!==qe.undefined){const n=this._getOrReturnCtx(e);return $e(n,{code:we.invalid_type,expected:qe.void,received:n.parsedType}),gt}return da(e.data)}};v3.create=t=>new v3({typeName:pt.ZodVoid,...xt(t)});let ql=class Zc extends It{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),a=this._def;if(r.parsedType!==qe.array)return $e(r,{code:we.invalid_type,expected:qe.array,received:r.parsedType}),gt;if(a.exactLength!==null){const i=r.data.length>a.exactLength.value,o=r.data.lengtha.maxLength.value&&($e(r,{code:we.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,o)=>a.type._parseAsync(new bs(r,i,r.path,o)))).then(i=>Vn.mergeArray(n,i));const s=[...r.data].map((i,o)=>a.type._parseSync(new bs(r,i,r.path,o)));return Vn.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new Zc({...this._def,minLength:{value:e,message:We.toString(r)}})}max(e,r){return new Zc({...this._def,maxLength:{value:e,message:We.toString(r)}})}length(e,r){return new Zc({...this._def,exactLength:{value:e,message:We.toString(r)}})}nonempty(e){return this.min(1,e)}};ql.create=(t,e)=>new ql({type:t,minLength:null,maxLength:null,exactLength:null,typeName:pt.ZodArray,...xt(e)});function pl(t){if(t instanceof Gs){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=qi.create(pl(n))}return new Gs({...t._def,shape:()=>e})}else return t instanceof ql?new ql({...t._def,type:pl(t.element)}):t instanceof qi?qi.create(pl(t.unwrap())):t instanceof Vl?Vl.create(pl(t.unwrap())):t instanceof fu?fu.create(t.items.map(e=>pl(e))):t}let Gs=class ba extends It{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=zt.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==qe.object){const u=this._getOrReturnCtx(e);return $e(u,{code:we.invalid_type,expected:qe.object,received:u.parsedType}),gt}const{status:n,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Qi&&this._def.unknownKeys==="strip"))for(const u in a.data)i.includes(u)||o.push(u);const l=[];for(const u of i){const c=s[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new bs(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Qi){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&($e(a,{code:we.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new bs(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,h=await c.value;u.push({key:d,value:h,alwaysSet:c.alwaysSet})}return u}).then(u=>Vn.mergeObjectSync(n,u)):Vn.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return We.errToObj,new ba({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{const a=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:We.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new ba({...this._def,unknownKeys:"strip"})}passthrough(){return new ba({...this._def,unknownKeys:"passthrough"})}extend(e){return new ba({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ba({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:pt.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new ba({...this._def,catchall:e})}pick(e){const r={};for(const n of zt.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new ba({...this._def,shape:()=>r})}omit(e){const r={};for(const n of zt.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new ba({...this._def,shape:()=>r})}deepPartial(){return pl(this)}partial(e){const r={};for(const n of zt.objectKeys(this.shape)){const a=this.shape[n];e&&!e[n]?r[n]=a:r[n]=a.optional()}return new ba({...this._def,shape:()=>r})}required(e){const r={};for(const n of zt.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof qi;)s=s._def.innerType;r[n]=s}return new ba({...this._def,shape:()=>r})}keyof(){return Q8(zt.objectKeys(this.shape))}};Gs.create=(t,e)=>new Gs({shape:()=>t,unknownKeys:"strip",catchall:Qi.create(),typeName:pt.ZodObject,...xt(e)});Gs.strictCreate=(t,e)=>new Gs({shape:()=>t,unknownKeys:"strict",catchall:Qi.create(),typeName:pt.ZodObject,...xt(e)});Gs.lazycreate=(t,e)=>new Gs({shape:t,unknownKeys:"strip",catchall:Qi.create(),typeName:pt.ZodObject,...xt(e)});let kd=class extends It{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function a(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;const i=s.map(o=>new Lo(o.ctx.common.issues));return $e(r,{code:we.invalid_union,unionErrors:i}),gt}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const l of n){const u={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(l=>new Lo(l));return $e(r,{code:we.invalid_union,unionErrors:o}),gt}}get options(){return this._def.options}};kd.create=(t,e)=>new kd({options:t,typeName:pt.ZodUnion,...xt(e)});function Ph(t,e){const r=Hi(t),n=Hi(e);if(t===e)return{valid:!0,data:t};if(r===qe.object&&n===qe.object){const a=zt.objectKeys(e),s=zt.objectKeys(t).filter(o=>a.indexOf(o)!==-1),i={...t,...e};for(const o of s){const l=Ph(t[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(r===qe.array&&n===qe.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s{if(c3(s)||c3(i))return gt;const o=Ph(s.value,i.value);return o.valid?((d3(s)||d3(i))&&r.dirty(),{status:r.value,value:o.data}):($e(n,{code:we.invalid_intersection_types}),gt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Sd.create=(t,e,r)=>new Sd({left:t,right:e,typeName:pt.ZodIntersection,...xt(r)});let fu=class K8 extends It{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.array)return $e(n,{code:we.invalid_type,expected:qe.array,received:n.parsedType}),gt;if(n.data.lengththis._def.items.length&&($e(n,{code:we.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new bs(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>Vn.mergeArray(r,i)):Vn.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new K8({...this._def,rest:e})}};fu.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fu({items:t,typeName:pt.ZodTuple,rest:null,...xt(e)})};let gC=class Dh extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.object)return $e(n,{code:we.invalid_type,expected:qe.object,received:n.parsedType}),gt;const a=[],s=this._def.keyType,i=this._def.valueType;for(const o in n.data)a.push({key:s._parse(new bs(n,o,n.path,o)),value:i._parse(new bs(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Vn.mergeObjectAsync(r,a):Vn.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof It?new Dh({keyType:e,valueType:r,typeName:pt.ZodRecord,...xt(n)}):new Dh({keyType:du.create(),valueType:e,typeName:pt.ZodRecord,...xt(r)})}},y3=class extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.map)return $e(n,{code:we.invalid_type,expected:qe.map,received:n.parsedType}),gt;const a=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new bs(n,o,n.path,[u,"key"])),value:s._parse(new bs(n,l,n.path,[u,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return gt;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(u.value,c.value)}return{status:r.value,value:o}})}else{const o=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return gt;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(u.value,c.value)}return{status:r.value,value:o}}}};y3.create=(t,e,r)=>new y3({valueType:e,keyType:t,typeName:pt.ZodMap,...xt(r)});let $h=class Bh extends It{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.set)return $e(n,{code:we.invalid_type,expected:qe.set,received:n.parsedType}),gt;const a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&($e(n,{code:we.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const s=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return gt;c.status==="dirty"&&r.dirty(),u.add(c.value)}return{status:r.value,value:u}}const o=[...n.data.values()].map((l,u)=>s._parse(new bs(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,r){return new Bh({...this._def,minSize:{value:e,message:We.toString(r)}})}max(e,r){return new Bh({...this._def,maxSize:{value:e,message:We.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};$h.create=(t,e)=>new $h({valueType:t,minSize:null,maxSize:null,typeName:pt.ZodSet,...xt(e)});let w3=class extends It{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};w3.create=(t,e)=>new w3({getter:t,typeName:pt.ZodLazy,...xt(e)});let Hh=class extends It{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return $e(r,{received:r.data,code:we.invalid_literal,expected:this._def.value}),gt}return{status:"valid",value:e.data}}get value(){return this._def.value}};Hh.create=(t,e)=>new Hh({value:t,typeName:pt.ZodLiteral,...xt(e)});function Q8(t,e){return new h2({values:t,typeName:pt.ZodEnum,...xt(e)})}let h2=class Fh extends It{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return $e(r,{expected:zt.joinValues(n),received:r.parsedType,code:we.invalid_type}),gt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return $e(r,{received:r.data,code:we.invalid_enum_value,options:n}),gt}return da(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Fh.create(e,{...this._def,...r})}exclude(e,r=this._def){return Fh.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};h2.create=Q8;let jh=class extends It{_parse(e){const r=zt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==qe.string&&n.parsedType!==qe.number){const a=zt.objectValues(r);return $e(n,{expected:zt.joinValues(a),received:n.parsedType,code:we.invalid_type}),gt}if(this._cache||(this._cache=new Set(zt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=zt.objectValues(r);return $e(n,{received:n.data,code:we.invalid_enum_value,options:a}),gt}return da(e.data)}get enum(){return this._def.values}};jh.create=(t,e)=>new jh({values:t,typeName:pt.ZodNativeEnum,...xt(e)});let Ad=class extends It{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==qe.promise&&r.common.async===!1)return $e(r,{code:we.invalid_type,expected:qe.promise,received:r.parsedType}),gt;const n=r.parsedType===qe.promise?r.data:Promise.resolve(r.data);return da(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ad.create=(t,e)=>new Ad({type:t,typeName:pt.ZodPromise,...xt(e)});let Po=class extends It{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:i=>{$e(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async o=>{if(r.value==="aborted")return gt;const l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?gt:l.status==="dirty"||r.value==="dirty"?C0(l.value):l});{if(r.value==="aborted")return gt;const o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?gt:o.status==="dirty"||r.value==="dirty"?C0(o.value):o}}if(a.type==="refinement"){const i=o=>{const l=a.refinement(o,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?gt:(o.status==="dirty"&&r.dirty(),i(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?gt:(o.status==="dirty"&&r.dirty(),i(o.value).then(()=>({status:r.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ul(i))return gt;const o=a.transform(i.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Ul(i)?Promise.resolve(a.transform(i.value,s)).then(o=>({status:r.value,value:o})):gt);zt.assertNever(a)}};Po.create=(t,e,r)=>new Po({schema:t,typeName:pt.ZodEffects,effect:e,...xt(r)});Po.createWithPreprocess=(t,e,r)=>new Po({schema:e,effect:{type:"preprocess",transform:t},typeName:pt.ZodEffects,...xt(r)});let qi=class extends It{_parse(e){return this._getType(e)===qe.undefined?da(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};qi.create=(t,e)=>new qi({innerType:t,typeName:pt.ZodOptional,...xt(e)});let Vl=class extends It{_parse(e){return this._getType(e)===qe.null?da(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Vl.create=(t,e)=>new Vl({innerType:t,typeName:pt.ZodNullable,...xt(e)});let zh=class extends It{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===qe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};zh.create=(t,e)=>new zh({innerType:t,typeName:pt.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...xt(e)});let Uh=class extends It{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return wd(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Lo(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Lo(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Uh.create=(t,e)=>new Uh({innerType:t,typeName:pt.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...xt(e)});let _3=class extends It{_parse(e){if(this._getType(e)!==qe.nan){const n=this._getOrReturnCtx(e);return $e(n,{code:we.invalid_type,expected:qe.nan,received:n.parsedType}),gt}return{status:"valid",value:e.data}}};_3.create=t=>new _3({typeName:pt.ZodNaN,...xt(t)});let bC=class extends It{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},vC=class X8 extends It{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?gt:s.status==="dirty"?(r.dirty(),C0(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?gt:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,r){return new X8({in:e,out:r,typeName:pt.ZodPipeline})}},qh=class extends It{_parse(e){const r=this._def.innerType._parse(e),n=a=>(Ul(a)&&(a.value=Object.freeze(a.value)),a);return wd(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}};qh.create=(t,e)=>new qh({innerType:t,typeName:pt.ZodReadonly,...xt(e)});var pt;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(pt||(pt={}));const Y=du.create,t0=_d.create;Ed.create;const Tt=xd.create;Td.create;Qi.create;const zu=ql.create,mt=Gs.create,r0=kd.create;Sd.create;fu.create;const la=gC.create,yC=$h.create,gr=Hh.create,Vh=h2.create,J8=jh.create;Ad.create;qi.create;Vl.create;const Vo=Po.createWithPreprocess,Mo={string:(t=>du.create({...t,coerce:!0})),number:(t=>_d.create({...t,coerce:!0})),boolean:(t=>xd.create({...t,coerce:!0})),bigint:(t=>Ed.create({...t,coerce:!0})),date:(t=>Td.create({...t,coerce:!0}))};let wC=t=>crypto.getRandomValues(new Uint8Array(t)),_C=(t,e,r)=>{let n=(2<{let i="";for(;;){let o=r(a),l=a|0;for(;l--;)if(i+=t[o[l]&n]||"",i.length>=s)return i}}},EC=(t,e=21)=>_C(t,e|0,wC);function xC(t,e,r=!0){const n=e.safeParse(t);if(n.success||(console.error("Zod Schema Error"),console.group(),n.error.issues.forEach(a=>{console.log(`Path: ${a.path.join(", ")} Error: ${a.message}`)}),console.groupEnd()),r&&!n.success)throw new Error("Zod validation failure");return n.success?n.data:null}const TC="useandom26T198340PX75pxJACKVERYMINDBUSHWOLFGQZbfghjklqvwyzrict",Zn=t=>EC(TC,21)(t);Y().email().transform(t=>t.toLowerCase());const Zl=t0().int().min(0),Lr=Y().min(5),eb=mt({uid:Lr.default(Zn),createdAt:Zl.default(E3),updatedAt:Zl.default(E3)});function E3(t=Date.now()){return Math.floor(new Date(t).getTime()/1e3)}var tb=(t=>(t.Dev="development",t.Test="test",t.Prod="production",t.Staging="staging",t))(tb||{});J8(tb).optional().default("development");const kC=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;Y().regex(kC,{message:"Version must be a valid semver format (e.g. 0.0.1)"});const SC=/^[a-z](?:[a-z0-9-]*[a-z0-9])?$/,rb=Y().min(1,"Slug is required").min(3,"Slug must be at least 3 characters").max(60,"Slug must be less than 60 characters").regex(SC,{message:"Slug can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number."}),AC=t=>t instanceof Set?t:Array.isArray(t)?new Set(t):t,CC=t=>Array.from(t),OC=t=>Vo(AC,t).transform(CC),Tf=t=>t.normalize("NFC").toLowerCase().trim().replace(/[^\p{L}\p{M}\p{N}\s-]/gu,"").replace(/[\s-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,255);Y().transform(t=>t.split(",").map(e=>e.trim()).filter(e=>!!e).map(e=>{if(e.at(0)!=="^")return e;try{return new RegExp(e)}catch{return e}}));const MC=Y().regex(/^[a-zA-Z0-9-_]+$/,'Namespaces can only contain letters, numbers, "-", and "_".').toLowerCase().min(3,"Namespaces need to be at least 3 characters.").max(50,"Namespaces need to be less than 50 characters."),NC=mt({uid:Y(),domain:Y(),publishedAt:Zl}),n0=mt({uid:Lr,title:Y(),show:Tt().default(!0),isStarred:Tt().default(!1),type:r0([gr("guide"),gr("reference"),gr("link"),gr("group"),gr("version-selector"),gr("spacer")]).default("link")}),nb=n0.extend({type:gr("reference"),hasPermalink:Tt().default(!1).describe("Whether the reference has a permalinked reference or not"),hasManagedDoc:Tt().default(!1).describe("Whether the reference has a linked registry API")}),ab=n0.extend({type:gr("guide")}),RC=n0.extend({type:gr("version-selector")}),IC=n0.extend({type:gr("spacer")}),sb=n0.extend({type:gr("link"),isButton:Tt().default(!1),link:Y()}),LC=n0.extend({type:gr("group"),children:zu(r0([ab,nb,sb])).describe("Children of the group. Groups cannot contain other groups, spacers, or the version selector")}),PC=r0([ab,nb,LC,sb,RC,IC]);function g1({guides:t,references:e,header:r}){const n=[...r].filter(s=>s.type==="guide"?!!t[s.uid]:s.type==="reference"?!!e[s.uid]:!0).map(s=>s.type!=="group"?s:{...s,children:s.children.filter(i=>i.type==="guide"?!!t[i.uid]:i.type==="reference"?!!e[i.uid]:!0)}),a=[];return n.forEach(s=>{a.push(s.uid),s.type==="group"&&a.push(...s.children.map(i=>i.uid))}),Object.values(t).forEach(s=>{a.includes(s.uid)||n.push({uid:s.uid,title:s.title,show:s.show,isStarred:s.isStarred,type:"guide"})}),Object.values(e).forEach(s=>{a.includes(s.uid)||n.push({uid:s.uid,title:s.title,show:s.show,isStarred:s.isStarred,type:"reference",hasPermalink:!!s.specPermalink,hasManagedDoc:!!s.managedDoc})}),n.find(s=>s.type==="version-selector")||n.push({uid:Zn(),title:"Version Selector",type:"version-selector",show:!0,isStarred:!1}),n.forEach(s=>{const i=t[s.uid],o=e[s.uid];s.type==="guide"&&i&&(s.title=i.title,s.show=i.show,s.isStarred=i.isStarred),s.type==="reference"&&o&&(s.title=o.title,s.show=o.show,s.isStarred=o.isStarred,s.hasPermalink=!!o.specPermalink,s.hasManagedDoc=!!o.managedDoc),s.type==="group"&&s.children.forEach(l=>{const u=t[l.uid],c=e[l.uid];l.type==="guide"&&u&&(l.title=u.title,l.show=u.show,l.isStarred=u.isStarred),l.type==="reference"&&c&&(l.title=c.title,l.show=c.show,l.isStarred=c.isStarred,l.hasPermalink=!!c.specPermalink,l.hasManagedDoc=!!c.managedDoc)})}),n}const DC=mt({src:Y().default(""),title:Y().optional(),mask:Tt().optional(),tags:Y().array().default([]),group:Y().default("")});DC.extend({createdAt:Zl,uploadedBy:Y(),group:gr("custom")});const $C=mt({src:Y().default(""),title:Y().optional(),mask:Tt().optional()}),ib=Vo(t=>t&&(t.src||(t.src=t.local||t.remote),t.local&&(t.group="solid"),t.remote&&(t.group="custom"),t),$C);var ps=(t=>(t.Page="Page",t.Folder="Folder",t.Link="Link",t))(ps||{});const p2=mt({uid:Lr,title:Y().trim().min(1),type:J8(ps),link:Y().optional(),icon:ib.optional(),children:Y().array().optional(),description:Y().optional(),show:Tt()}),BC=p2.extend({title:Vo(t=>t?.trim()||"Link",Y().trim().min(1)),link:Y(),type:gr("Link")}),HC=p2.extend({title:Vo(t=>t?.trim()||"Page",Y().trim().min(1)),sidebarTitle:Y().optional(),description:Y(),children:Y().array().default([]),type:gr("Page"),defaultOpen:Tt().optional(),yjsReference:Y(),backgroundImage:Y().optional(),icon:ib.optional(),isMdx:Tt().default(!1)}),ob=()=>({uid:Zn(),title:"Getting Started",type:"Page",description:"Start writing your API Documentation with our platform",children:[],show:!0,yjsReference:Zn(),isMdx:!1}),FC=p2.extend({title:Vo(t=>t?.trim()||"Folder",Y().trim().min(1)),children:Y().array().default([]),type:gr("Folder"),defaultOpen:Tt().optional()}),jC=r0([BC,HC,FC]),zC=mt({items:la(Y(),jC),children:Y().array()}).transform(t=>{if(!Object.values(t.items).some(r=>r.type==="Page")){const r=ob();t.items[r.uid]=r,t.children.push(r.uid)}return t});function x3(t,e){const r="versions"in e?e.versions[e.activeVersionId]??e.versions[Object.keys(e.versions)[0]??""]:e;if(!r)throw Error("No version found in project");if(t==="version")return r;const n=r.guides[r.primaryGuideId]??r.guides[Object.keys(r.guides)[0]??""],a=r.references[r.primaryReferenceId]??r.references[Object.keys(r.references)[0]??""];if(t==="guide")return n||null;if(t==="reference")return a||null;const i=Object.values(n?.sidebar?.items??{}).find(o=>o.type===ps.Page);if(t==="page")return i||null;throw Error("Invalid entity type specified")}const UC=` `,qC=`footer { display: flex; flex-direction: column; font-size: var(--scalar-paragraph); line-height: 1.625; max-width: 680px; margin: 0 auto; } footer p { margin-bottom: 25px; } footer a { width: fit-content; color:var(--scalar-color-accent) } footer a:hover { cursor: pointer; text-decoration: underline; } @media (max-width: 1000px) { footer { max-width: 100%; } } `,lb=mt({uid:Lr,title:Y().transform(t=>t===""?"Guide":t),description:Y(),sidebar:zC,show:Tt().default(!0),isButton:Tt().default(!1),isStarred:Tt().default(!1)});function VC(){const t=ob();return lb.parse({uid:Zn(),title:"Guide",description:"",sidebar:{items:{[t.uid]:t},children:[t.uid]},show:!0,isButton:!1,isStarred:!1})}const ZC=mt({namespace:MC,slug:rb,versions:Y().array().default(["latest"])}),ub=mt({uid:Lr,title:Y().transform(t=>t===""?"Reference":t),description:Y(),yjsReference:Lr,config:Y().default("{}"),specPermalink:Y().default(""),managedDoc:ZC.nullable().default(null),show:Tt().default(!0),isButton:Tt().default(!1),isStarred:Tt().default(!1)});function WC(){return ub.parse({uid:Zn(),title:"",description:"",yjsReference:Zn()})}const m2=mt({uid:Lr,name:Y().default("Default Version"),primaryGuideId:Y(),primaryReferenceId:Y(),references:la(Y(),ub),guides:la(Y(),lb),header:PC.array(),footer:Y().default(""),footerCss:Y().default(""),footerBelowSidebar:Tt().default(!1),headScript:Y().default(""),bodyScript:Y().default("")}).transform(t=>({...t,header:g1({guides:t.guides,references:t.references,header:t.header})}));function GC(t={},e={}){const r=VC(),n=WC();return e.hideGuide&&(r.show=!1),e.hideReference&&(n.show=!1),m2.parse({uid:Zn(),name:"Version 0",primaryGuideId:r.uid,primaryReferenceId:n.uid,references:{[n.uid]:n},guides:{[r.uid]:r},header:g1({guides:{[r.uid]:r},references:{[n.uid]:n},header:[]}),footer:UC,footerCss:qC,footerBelowSidebar:!1,headScript:"",bodyScript:"",...t})}const YC=mt({lastDeployed:Zl,subdomainPrefix:Y().transform(t=>t.toLowerCase()),customUrl:Y().transform(t=>t.toLowerCase()),subPath:Y().optional(),title:Y().optional(),description:Y().optional(),favicon:Y().optional(),ogImage:Y().optional(),proxy:Y().url().optional(),routing:mt({guidePathPattern:Y().optional(),referencePathPattern:Y().optional()}).default({guidePathPattern:"",referencePathPattern:""}),redirects:zu(mt({from:Y(),to:Y()})).default([])}),KC=mt({darkMode:Y(),lightMode:Y()}),cb=eb.extend({name:Y(),activeDeployment:NC.nullable().default(null),lastPublished:Zl.nullable().default(null),lastPublishedUid:Y().nullable().default(null),loginPortalUid:Y().default(""),activeThemeId:Y().default(""),typesenseId:t0().optional(),isPrivate:Tt().default(!1),accessGroups:OC(yC(Lr).max(50)).default([])}),g2=cb.extend({versions:la(Y(),m2),activeTemplateId:Y().optional().default(""),activeVersionId:Y().optional().default(""),logo:KC,website:YC.describe("Deployed site configuration for a project"),insertPageTitles:Tt().optional().default(!0)}).transform(t=>{if(Object.keys(t.versions).length===0){const e=GC({});t.versions[e.uid]=e}return t.activeVersionId||(t.activeVersionId=Object.keys(t.versions)[0]??""),t}),db=mt({linkedBy:Y(),id:t0(),name:Y().min(2),configPath:Y().default(""),branch:Y().default(""),publishOnMerge:Tt().default(!1),publishPreviews:Tt().default(!1),prComments:Tt().default(!1),expired:Tt().default(!1)}),QC=cb.extend({slug:rb.optional(),publishStatus:Y().default(""),publishMessage:Y().default(""),repository:db.nullable().optional()});eb.extend({projectUid:Lr,status:r0([gr("pending"),gr("building"),gr("deployed"),gr("inactive"),gr("error"),gr("deleted")]),deployedAt:t0().nullable().default(null),message:Y().default(""),domain:Y().default("")});function XC(t){if(typeof window>"u")throw new Error("browserRandomInt is not available in Node environments");return Math.floor((()=>{const r=new Int8Array(4);return window.crypto.getRandomValues(r),new DataView(r.buffer).getUint32(0)/4294967296})()*(t+1))}typeof window>"u"&&(await Ft(async()=>{const{randomInt:t}=await import("node:crypto");return{randomInt:t}},[])).randomInt;const Uu=Vo(t=>t&&(typeof t=="object"&&(t.identifier=Tf(t.name)),t),mt({uid:Lr,name:Y().transform(Tf),description:Y(),theme:Y(),slug:Y().transform(Tf)}));mt({uid:Lr,version:m2,theme:Uu.optional(),yjsDocs:la(Y(),Y()),yjsReferences:la(Y(),Y())});const JC=mt({slug:Y(),name:Y(),level:Mo.number().int(),uid:Lr,parent:Y().optional()}),eO=mt({path:Y(),data:Y()});mt({token:Y(),teamUid:Lr,publishUid:Lr,subdomain:Y(),yjsDocs:la(Y(),Y()),yjsReferences:la(Y(),Y()),project:g2,theme:Uu,customDomain:Y().nullable(),isPaid:Tt().optional(),preview:Tt().optional()});mt({token:Y(),teamUid:Lr,publishUid:Lr,subdomain:Y(),customDomain:Y().optional().default(""),encryptedGithubToken:Y(),project:QC.extend({repository:db}),theme:Uu,isPaid:Tt().default(!1),preview:Tt().optional(),branch:Y()});mt({token:Y(),teamUid:Lr,publishUid:Lr,subdomain:Y(),customDomain:Y().optional().default(""),assets:eO.array(),documents:la(Y(),Y()),references:la(Y(),Y()),project:g2,theme:Uu,isPaid:Tt().default(!1),gitProjectUid:Lr,preview:Tt().optional()});const tO=mt({html:Y(),headings:la(Y(),JC),markdown:Y()}),rO=la(Y(),tO),nO=mt({project:g2,theme:Uu,isPaid:Tt().default(!1),typesenseKey:Y(),typesenseHost:Y(),typesenseCollection:Y(),proxy:Y().url()});mt({staticDocs:rO,errors:Y().array()});const fb=(t,e,r)=>{const n=t[e];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((a,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})};function aO(t,e){const r=e||"latest",n=r==="latest",a=`${t}${n?"":`-${r}`}`,s=n?"":`/${r}`;return{uid:a,path:s,version:r,isLatest:n,label:n?"Latest":r}}function sO(t){return[...new Set(["latest",...t||[]])]}function _a(t,e={}){const{addLeadingSlash:r=!1,addTrailingSlash:n=!1}=e;let a=t.split("/").filter(s=>!!s).join("/");return r&&(a=`/${a}`),n&&(a=`${a}/`),a}function iO(t){return _a(t.replaceAll(" ","")).match(/{{([a-zA-Z0-9-_ ]*?)}}/g)?.map(n=>n.replace("{{","").replace("}}",""))??[]}const Zh=t=>t.normalize("NFC").toLowerCase().trim().replace(/[^\p{L}\p{M}\p{N}\s-]/gu,"").replace(/[\s-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,255);function kf(t,e){const r={},n={};return t.forEach(a=>{const s=Zh(a[e]);r[a.uid]=n[s]?`${s}-${n[s]}`:s,n[s]=n[s]?n[s]+1:1}),r}function hb(t,e,r,n={}){const a={};return e.forEach(s=>{const i=t[s];if(i){const o=r?`${r}/${Zh(i.title)}`:Zh(i.title);n[s]=a[o]?`${o}-${a[o]}`:o,a[o]=a[o]?a[o]+1:1,i.children&&hb(t,i.children,n[s],n)}}),n}function b2(t,e,r="Page"){for(const n of e){const a=t[n];if(a?.type===r)return a.uid;if(a?.children){const s=b2(t,a.children,r);if(s)return s}}}function T3({base:t,type:e,multipleVersions:r,multipleLocales:n}){const a=[],s=_a(t.replaceAll(" ","")),i=iO(s);return i.includes("version")&&i.includes(e)&&i.indexOf("version")>=i.indexOf(e)&&a.push(`The {{version}} key must be before the {{${e}}} key in your path template.`),r&&!i.includes("version")&&a.push("With multiple versions the {{version}} key must be included."),e!=="flat-guide"&&!i.includes(e)&&a.push(e==="guide"?"The {{guide}} key must be present if there are multiple guides in any version.":`The {{${e}}} key must be present in the path template.`),{path:s,withoutGuide:_a(s.replace("{{guide}}","")),withoutVersion:_a(s.replace("{{version}}","")),withoutLocale:_a(s.replace("{{locale}}","")),withoutVersionAndLocale:_a(s.replace("{{version}}","").replace("{{locale}}","")),issues:a,error:a.length>0}}function oO(t){const e=t===1;return{reference:e?"{{reference}}":"{{version}}/{{reference}}",guide:e?"{{guide}}":"{{version}}/{{guide}}"}}function Zo(t){return Hu()?(Wp(t),!0):!1}const Sf=new WeakMap,lO=(...t)=>{var e;const r=t[0],n=(e=Nn())==null?void 0:e.proxy;if(n==null&&!a2())throw new Error("injectLocal must be called in setup");return n&&Sf.has(n)&&r in Sf.get(n)?Sf.get(n)[r]:Gt(...t)},b1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pb=t=>t!=null,uO=Object.prototype.toString,cO=t=>uO.call(t)==="[object Object]",en=()=>{},dO=fO();function fO(){var t,e;return b1&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v2(t,e){function r(...n){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(a).catch(s)})}return r}const hO=t=>t();function mb(t,e={}){let r,n,a=en;const s=l=>{clearTimeout(l),a(),a=en};let i;return l=>{const u=or(t),c=or(e.maxWait);return r&&s(r),u<=0||c!==void 0&&c<=0?(n&&(s(n),n=void 0),Promise.resolve(l())):new Promise((d,h)=>{a=e.rejectOnCancel?h:d,i=l,c&&!n&&(n=setTimeout(()=>{r&&s(r),n=void 0,d(i())},c)),r=setTimeout(()=>{n&&s(n),n=void 0,d(l())},u)})}}function pO(...t){let e=0,r,n=!0,a=en,s,i,o,l,u;!yr(t[0])&&typeof t[0]=="object"?{delay:i,trailing:o=!0,leading:l=!0,rejectOnCancel:u=!1}=t[0]:[i,o=!0,l=!0,u=!1]=t;const c=()=>{r&&(clearTimeout(r),r=void 0,a(),a=en)};return h=>{const f=or(i),m=Date.now()-e,p=()=>s=h();return c(),f<=0?(e=Date.now(),p()):(m>f&&(l||!n)?(e=Date.now(),p()):o&&(s=new Promise((b,y)=>{a=u?y:b,r=setTimeout(()=>{e=Date.now(),n=!0,b(p()),c()},Math.max(0,f-m))})),!l&&!r&&(r=setTimeout(()=>n=!0,f)),n=!1,s)}}function k3(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function Z0(t){return Array.isArray(t)?t:[t]}function mO(t){return Nn()}function gb(t,e=200,r={}){return v2(mb(e,r),t)}function gO(t,e=200,r=!1,n=!0,a=!1){return v2(pO(e,r,n,a),t)}function bO(t,e,r={}){const{eventFilter:n=hO,...a}=r;return St(t,v2(n,e),a)}function bb(t,e=!0,r){mO()?hr(t,r):e?t():bn(t)}function vO(t,e,r={}){const{immediate:n=!0,immediateCallback:a=!1}=r,s=an(!1);let i;function o(){i&&(clearTimeout(i),i=void 0)}function l(){s.value=!1,o()}function u(...c){a&&t(),o(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=void 0,t(...c)},or(e))}return n&&(s.value=!0,b1&&u()),Zo(l),{isPending:$n(s),start:u,stop:l}}function Bte(t,e,r={}){const{debounce:n=0,maxWait:a=void 0,...s}=r;return bO(t,e,{...s,eventFilter:mb(n,{maxWait:a})})}function yO(t,e,r){return St(t,e,{...r,immediate:!0})}const ri=b1?window:void 0;function On(t){var e;const r=or(t);return(e=r?.$el)!=null?e:r}function Vi(...t){const e=[],r=()=>{e.forEach(o=>o()),e.length=0},n=(o,l,u,c)=>(o.addEventListener(l,u,c),()=>o.removeEventListener(l,u,c)),a=ie(()=>{const o=Z0(or(t[0])).filter(l=>l!=null);return o.every(l=>typeof l!="string")?o:void 0}),s=yO(()=>{var o,l;return[(l=(o=a.value)==null?void 0:o.map(u=>On(u)))!=null?l:[ri].filter(u=>u!=null),Z0(or(a.value?t[1]:t[0])),Z0(U(a.value?t[2]:t[1])),or(a.value?t[3]:t[2])]},([o,l,u,c])=>{if(r(),!o?.length||!l?.length||!u?.length)return;const d=cO(c)?{...c}:c;e.push(...o.flatMap(h=>l.flatMap(f=>u.map(m=>n(h,f,m,d)))))},{flush:"post"}),i=()=>{s(),r()};return Zo(r),i}let S3=!1;function Hte(t,e,r={}){const{window:n=ri,ignore:a=[],capture:s=!0,detectIframe:i=!1,controls:o=!1}=r;if(!n)return o?{stop:en,cancel:en,trigger:en}:en;if(dO&&!S3){S3=!0;const b={passive:!0};Array.from(n.document.body.children).forEach(y=>y.addEventListener("click",en,b)),n.document.documentElement.addEventListener("click",en,b)}let l=!0;const u=b=>or(a).some(y=>{if(typeof y=="string")return Array.from(n.document.querySelectorAll(y)).some(x=>x===b.target||b.composedPath().includes(x));{const x=On(y);return x&&(b.target===x||b.composedPath().includes(x))}});function c(b){const y=or(b);return y&&y.$.subTree.shapeFlag===16}function d(b,y){const x=or(b),k=x.$.subTree&&x.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(N=>N.el===y.target||y.composedPath().includes(N.el))}const h=b=>{const y=On(t);if(b.target!=null&&!(!(y instanceof Element)&&c(t)&&d(t,b))&&!(!y||y===b.target||b.composedPath().includes(y))){if("detail"in b&&b.detail===0&&(l=!u(b)),!l){l=!0;return}e(b)}};let f=!1;const m=[Vi(n,"click",b=>{f||(f=!0,setTimeout(()=>{f=!1},0),h(b))},{passive:!0,capture:s}),Vi(n,"pointerdown",b=>{const y=On(t);l=!u(b)&&!!(y&&!b.composedPath().includes(y))},{passive:!0}),i&&Vi(n,"blur",b=>{setTimeout(()=>{var y;const x=On(t);((y=n.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!x?.contains(n.document.activeElement)&&e(b)},0)},{passive:!0})].filter(Boolean),p=()=>m.forEach(b=>b());return o?{stop:p,cancel:()=>{l=!1},trigger:b=>{l=!0,h(b),l=!1}}:p}function wO(){const t=an(!1),e=Nn();return e&&hr(()=>{t.value=!0},e),t}function v1(t){const e=wO();return ie(()=>(e.value,!!t()))}function vb(t,e,r={}){const{window:n=ri,...a}=r;let s;const i=v1(()=>n&&"MutationObserver"in n),o=()=>{s&&(s.disconnect(),s=void 0)},l=ie(()=>{const h=or(t),f=Z0(h).map(On).filter(pb);return new Set(f)}),u=St(l,h=>{o(),i.value&&h.size&&(s=new MutationObserver(e),h.forEach(f=>s.observe(f,a)))},{immediate:!0,flush:"post"}),c=()=>s?.takeRecords(),d=()=>{u(),o()};return Zo(d),{isSupported:i,stop:d,takeRecords:c}}function _O(t,e,r={}){const{window:n=ri,document:a=n?.document,flush:s="sync"}=r;if(!n||!a)return en;let i;const o=c=>{i?.(),i=c},l=Yn(()=>{const c=On(t);if(c){const{stop:d}=vb(a,h=>{h.map(m=>[...m.removedNodes]).flat().some(m=>m===c||m.contains(c))&&e(h)},{window:n,childList:!0,subtree:!0});o(d)}},{flush:s}),u=()=>{l(),o()};return Zo(u),u}function Fte(t,e=null){const r=Nn();let n=()=>{};const a=_7((s,i)=>(n=i,{get(){var o,l;return s(),(l=(o=r?.proxy)==null?void 0:o.$refs[t])!=null?l:e},set(){}}));return bb(n),t2(n),a}const EO=Symbol("vueuse-ssr-width");function xO(){const t=a2()?lO(EO,null):null;return typeof t=="number"?t:void 0}function Do(t,e={}){const{window:r=ri,ssrWidth:n=xO()}=e,a=v1(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),s=an(typeof n=="number"),i=an(),o=an(!1),l=u=>{o.value=u.matches};return Yn(()=>{if(s.value){s.value=!a.value;const u=or(t).split(",");o.value=u.some(c=>{const d=c.includes("not all"),h=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),f=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(h||f);return h&&m&&(m=n>=k3(h[1])),f&&m&&(m=n<=k3(f[1])),d?!m:m});return}a.value&&(i.value=r.matchMedia(or(t)),o.value=i.value.matches)}),Vi(i,"change",l,{passive:!0}),ie(()=>o.value)}function yb(t,e,r={}){const{window:n=ri,...a}=r;let s;const i=v1(()=>n&&"ResizeObserver"in n),o=()=>{s&&(s.disconnect(),s=void 0)},l=ie(()=>{const d=or(t);return Array.isArray(d)?d.map(h=>On(h)):[On(d)]}),u=St(l,d=>{if(o(),i.value&&n){s=new ResizeObserver(e);for(const h of d)h&&s.observe(h,a)}},{immediate:!0,flush:"post"}),c=()=>{o(),u()};return Zo(c),{isSupported:i,stop:c}}function jte(t,e={}){const{delayEnter:r=0,delayLeave:n=0,triggerOnRemoval:a=!1,window:s=ri}=e,i=an(!1);let o;const l=u=>{const c=u?r:n;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>i.value=u,c):i.value=u};return s&&(Vi(t,"mouseenter",()=>l(!0),{passive:!0}),Vi(t,"mouseleave",()=>l(!1),{passive:!0}),a&&_O(ie(()=>On(t)),()=>l(!1))),i}function zte(t,e,r={}){const{root:n,rootMargin:a="0px",threshold:s=0,window:i=ri,immediate:o=!0}=r,l=v1(()=>i&&"IntersectionObserver"in i),u=ie(()=>{const m=or(t);return Z0(m).map(On).filter(pb)});let c=en;const d=an(o),h=l.value?St(()=>[u.value,On(n),d.value],([m,p])=>{if(c(),!d.value||!m.length)return;const b=new IntersectionObserver(e,{root:On(p),rootMargin:a,threshold:s});m.forEach(y=>y&&b.observe(y)),c=()=>{b.disconnect(),c=en}},{immediate:o,flush:"post"}):en,f=()=>{c(),h(),d.value=!1};return Zo(f),{isSupported:l,isActive:d,pause(){c(),d.value=!1},resume(){d.value=!0},stop:f}}const b0=new Map;function Ute(t){const e=Hu();function r(o){var l;const u=b0.get(t)||new Set;u.add(o),b0.set(t,u);const c=()=>a(o);return(l=e?.cleanups)==null||l.push(c),c}function n(o){function l(...u){a(l),o(...u)}return r(l)}function a(o){const l=b0.get(t);l&&(l.delete(o),l.size||s())}function s(){b0.delete(t)}function i(o,l){var u;(u=b0.get(t))==null||u.forEach(c=>c(o,l))}return{on:r,once:n,off:a,emit:i,reset:s}}const A3=1;function qte(t,e={}){const{throttle:r=0,idle:n=200,onStop:a=en,onScroll:s=en,offset:i={left:0,right:0,top:0,bottom:0},observe:o={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=ri,onError:d=K=>{console.error(K)}}=e,h=typeof o=="boolean"?{mutation:o}:o,f=an(0),m=an(0),p=ie({get(){return f.value},set(K){y(K,void 0)}}),b=ie({get(){return m.value},set(K){y(void 0,K)}});function y(K,ge){var le,ee,Ne,Be;if(!c)return;const Qe=or(t);if(!Qe)return;(Ne=Qe instanceof Document?c.document.body:Qe)==null||Ne.scrollTo({top:(le=or(ge))!=null?le:b.value,left:(ee=or(K))!=null?ee:p.value,behavior:or(u)});const be=((Be=Qe?.document)==null?void 0:Be.documentElement)||Qe?.documentElement||Qe;p!=null&&(f.value=be.scrollLeft),b!=null&&(m.value=be.scrollTop)}const x=an(!1),k=Oa({left:!0,right:!1,top:!0,bottom:!1}),N=Oa({left:!1,right:!1,top:!1,bottom:!1}),L=K=>{x.value&&(x.value=!1,N.left=!1,N.right=!1,N.top=!1,N.bottom=!1,a(K))},W=gb(L,r+n),z=K=>{var ge;if(!c)return;const le=((ge=K?.document)==null?void 0:ge.documentElement)||K?.documentElement||On(K),{display:ee,flexDirection:Ne,direction:Be}=getComputedStyle(le),Qe=Be==="rtl"?-1:1,be=le.scrollLeft;N.left=bef.value;const De=Math.abs(be*Qe)<=(i.left||0),Ae=Math.abs(be*Qe)+le.clientWidth>=le.scrollWidth-(i.right||0)-A3;ee==="flex"&&Ne==="row-reverse"?(k.left=Ae,k.right=De):(k.left=De,k.right=Ae),f.value=be;let Je=le.scrollTop;K===c.document&&!Je&&(Je=c.document.body.scrollTop),N.top=Jem.value;const Mt=Math.abs(Je)<=(i.top||0),ze=Math.abs(Je)+le.clientHeight>=le.scrollHeight-(i.bottom||0)-A3;ee==="flex"&&Ne==="column-reverse"?(k.top=ze,k.bottom=Mt):(k.top=Mt,k.bottom=ze),m.value=Je},ne=K=>{var ge;if(!c)return;const le=(ge=K.target.documentElement)!=null?ge:K.target;z(le),x.value=!0,W(K),s(K)};return Vi(t,"scroll",r?gO(ne,r,!0,!1):ne,l),bb(()=>{try{const K=or(t);if(!K)return;z(K)}catch(K){d(K)}}),h?.mutation&&t!=null&&t!==c&&t!==document&&vb(t,()=>{const K=or(t);K&&z(K)},{attributes:!0,childList:!0,subtree:!0}),Vi(t,"scrollend",L,l),{x:p,y:b,isScrolling:x,arrivedState:k,directions:N,measure(){const K=or(t);c&&K&&z(K)}}}function Vte(t,e,r={}){const{immediate:n=!0,immediateCallback:a=!1}=r,{start:s}=vO(o,e,{immediate:n}),i=an(!1);async function o(){i.value&&(await t(),s())}function l(){i.value||(i.value=!0,a&&t(),s())}function u(){i.value=!1}return n&&b1&&l(),Zo(u),{isActive:i,pause:u,resume:l}}const TO="footer",Ol={Document:"t-doc",Header:"t-doc__header",Sidebar:"t-doc__sidebar",TableOfContents:"t-doc__toc",Search:"t-doc__search"},wb={Editor:"t-editor",Anchor:"t-editor__anchor",Bold:"t-editor__bold",Button:"t-editor__button",Callout:"t-editor__callout",Code:"t-editor__code",CodeMirror:"t-editor__codemirror",Detail:"t-editor__detail",Embed:"t-editor__embed",File:"t-editor__file",FinePrint:"t-editor__fine-print",Heading:"t-editor__heading",Highlight:"t-editor__highlight",Image:"t-editor__image",InlineCode:"t-editor__inline-code",Italic:"t-editor__italic",LineBreak:"t-editor__line-break",PageLink:"t-editor__page-link",List:"t-editor__list",CheckList:"t-editor__checklist",Mark:"t-editor__mark",Math:"t-editor__math",PageTitle:"t-editor__page-title",Paragraph:"t-editor__paragraph",Quote:"t-editor__quote",Strike:"t-editor__strike",Table:"t-editor__table",Underline:"t-editor__underline",StandardHeading:"t-editor__standard-heading",Subscript:"t-editor__subscript",Superscript:"t-editor__superscript"},C3="editor-id";var Pt;(function(t){t.assertEqual=a=>a;function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),i={};for(const o of s)i[o]=a[o];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Pt||(Pt={}));var Wh;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Wh||(Wh={}));const Fe=Pt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ls=t=>{switch(typeof t){case"undefined":return Fe.undefined;case"string":return Fe.string;case"number":return isNaN(t)?Fe.nan:Fe.number;case"boolean":return Fe.boolean;case"function":return Fe.function;case"bigint":return Fe.bigint;case"symbol":return Fe.symbol;case"object":return Array.isArray(t)?Fe.array:t===null?Fe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Fe.promise:typeof Map<"u"&&t instanceof Map?Fe.map:typeof Set<"u"&&t instanceof Set?Fe.set:typeof Date<"u"&&t instanceof Date?Fe.date:Fe.object;default:return Fe.unknown}},pe=Pt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kO=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class zn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(s){return s.message},n={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let o=n,l=0;for(;lr.message){const r={},n=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}zn.create=t=>new zn(t);const Wl=(t,e)=>{let r;switch(t.code){case pe.invalid_type:t.received===Fe.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case pe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Pt.jsonStringifyReplacer)}`;break;case pe.unrecognized_keys:r=`Unrecognized key(s) in object: ${Pt.joinValues(t.keys,", ")}`;break;case pe.invalid_union:r="Invalid input";break;case pe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Pt.joinValues(t.options)}`;break;case pe.invalid_enum_value:r=`Invalid enum value. Expected ${Pt.joinValues(t.options)}, received '${t.received}'`;break;case pe.invalid_arguments:r="Invalid function arguments";break;case pe.invalid_return_type:r="Invalid function return type";break;case pe.invalid_date:r="Invalid date";break;case pe.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Pt.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case pe.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case pe.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case pe.custom:r="Invalid input";break;case pe.invalid_intersection_types:r="Intersection results could not be merged";break;case pe.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case pe.not_finite:r="Number must be finite";break;default:r=e.defaultError,Pt.assertNever(t)}return{message:r}};let _b=Wl;function SO(t){_b=t}function Cd(){return _b}const Od=t=>{const{data:e,path:r,errorMaps:n,issueData:a}=t,s=[...r,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let o="";const l=n.filter(u=>!!u).slice().reverse();for(const u of l)o=u(i,{data:e,defaultError:o}).message;return{...a,path:s,message:o}},AO=[];function Ie(t,e){const r=Cd(),n=Od({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Wl?void 0:Wl].filter(a=>!!a)});t.common.issues.push(n)}class sn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const a of r){if(a.status==="aborted")return ct;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const a of r){const s=await a.key,i=await a.value;n.push({key:s,value:i})}return sn.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const a of r){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return ct;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(n[s.value]=i.value)}return{status:e.value,value:n}}}const ct=Object.freeze({status:"aborted"}),bl=t=>({status:"dirty",value:t}),yn=t=>({status:"valid",value:t}),Gh=t=>t.status==="aborted",Yh=t=>t.status==="dirty",$o=t=>t.status==="valid",hu=t=>typeof Promise<"u"&&t instanceof Promise;function Md(t,e,r,n){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function Eb(t,e,r,n,a){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r}var Ge;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ge||(Ge={}));var M0,N0;class vs{constructor(e,r,n,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const O3=(t,e)=>{if($o(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new zn(t.common.issues);return this._error=r,this._error}}};function wt(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:a}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,o)=>{var l,u;const{message:c}=t;return i.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(l=c??n)!==null&&l!==void 0?l:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(u=c??r)!==null&&u!==void 0?u:o.defaultError}},description:a}}class kt{get description(){return this._def.description}_getType(e){return Ls(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ls(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new sn,ctx:{common:e.parent.common,data:e.data,parsedType:Ls(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(hu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;const a={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ls(e)},s=this._parseSync({data:e,path:a.path,parent:a});return O3(a,s)}"~validate"(e){var r,n;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ls(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:a});return $o(s)?{value:s.value}:{issues:a.common.issues}}catch(s){!((n=(r=s?.message)===null||r===void 0?void 0:r.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:a}).then(s=>$o(s)?{value:s.value}:{issues:a.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ls(e)},a=this._parse({data:e,path:n.path,parent:n}),s=await(hu(a)?a:Promise.resolve(a));return O3(n,s)}refine(e,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,s)=>{const i=e(a),o=()=>s.addIssue({code:pe.custom,...n(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,r){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(e){return new Ra({schema:this,typeName:lt.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ms.create(this,this._def)}nullable(){return to.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ka.create(this)}promise(){return Yl.create(this,this._def)}or(e){return bu.create([this,e],this._def)}and(e){return vu.create(this,e,this._def)}transform(e){return new Ra({...wt(this._def),schema:this,typeName:lt.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new xu({...wt(this._def),innerType:this,defaultValue:r,typeName:lt.ZodDefault})}brand(){return new y2({typeName:lt.ZodBranded,type:this,...wt(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Tu({...wt(this._def),innerType:this,catchValue:r,typeName:lt.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return qu.create(this,e)}readonly(){return ku.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const CO=/^c[^\s-]{8,}$/i,OO=/^[0-9a-z]+$/,MO=/^[0-9A-HJKMNP-TV-Z]{26}$/i,NO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,RO=/^[a-z0-9_-]{21}$/i,IO=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,PO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,DO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Af;const $O=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,BO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,HO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,FO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,jO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,zO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",UO=new RegExp(`^${xb}$`);function Tb(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function qO(t){return new RegExp(`^${Tb(t)}$`)}function kb(t){let e=`${xb}T${Tb(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function VO(t,e){return!!((e==="v4"||!e)&&$O.test(t)||(e==="v6"||!e)&&HO.test(t))}function ZO(t,e){if(!IO.test(t))return!1;try{const[r]=t.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||!a.typ||!a.alg||e&&a.alg!==e)}catch{return!1}}function WO(t,e){return!!((e==="v4"||!e)&&BO.test(t)||(e==="v6"||!e)&&FO.test(t))}class Ea extends kt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Fe.string){const s=this._getOrReturnCtx(e);return Ie(s,{code:pe.invalid_type,expected:Fe.string,received:s.parsedType}),ct}const n=new sn;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(a=this._getOrReturnCtx(e,a),Ie(a,{code:pe.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,o=e.data.lengthe.test(a),{validation:r,code:pe.invalid_string,...Ge.errToObj(n)})}_addCheck(e){return new Ea({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ge.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ge.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ge.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ge.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ge.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ge.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ge.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ge.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ge.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ge.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ge.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ge.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ge.errToObj(e)})}datetime(e){var r,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,local:(n=e?.local)!==null&&n!==void 0?n:!1,...Ge.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ge.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ge.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...Ge.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...Ge.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...Ge.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...Ge.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...Ge.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...Ge.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...Ge.errToObj(r)})}nonempty(e){return this.min(1,Ge.errToObj(e))}trim(){return new Ea({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ea({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ea({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value{var e;return new Ea({checks:[],typeName:lt.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...wt(t)})};function GO(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=r>n?r:n,s=parseInt(t.toFixed(a).replace(".","")),i=parseInt(e.toFixed(a).replace(".",""));return s%i/Math.pow(10,a)}class Xi extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Fe.number){const s=this._getOrReturnCtx(e);return Ie(s,{code:pe.invalid_type,expected:Fe.number,received:s.parsedType}),ct}let n;const a=new sn;for(const s of this._def.checks)s.kind==="int"?Pt.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),Ie(n,{code:pe.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),Ie(n,{code:pe.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?GO(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),Ie(n,{code:pe.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),Ie(n,{code:pe.not_finite,message:s.message}),a.dirty()):Pt.assertNever(s);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,Ge.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Ge.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Ge.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Ge.toString(r))}setLimit(e,r,n,a){return new Xi({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ge.toString(a)}]})}_addCheck(e){return new Xi({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ge.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ge.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Ge.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:Ge.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ge.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ge.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&Pt.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.valuenew Xi({checks:[],typeName:lt.ZodNumber,coerce:t?.coerce||!1,...wt(t)});class Ji extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Fe.bigint)return this._getInvalidInput(e);let n;const a=new sn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),Ie(n,{code:pe.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),Ie(n,{code:pe.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Pt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return Ie(r,{code:pe.invalid_type,expected:Fe.bigint,received:r.parsedType}),ct}gte(e,r){return this.setLimit("min",e,!0,Ge.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Ge.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Ge.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Ge.toString(r))}setLimit(e,r,n,a){return new Ji({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ge.toString(a)}]})}_addCheck(e){return new Ji({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ge.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Ge.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value{var e;return new Ji({checks:[],typeName:lt.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...wt(t)})};class pu extends kt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Fe.boolean){const n=this._getOrReturnCtx(e);return Ie(n,{code:pe.invalid_type,expected:Fe.boolean,received:n.parsedType}),ct}return yn(e.data)}}pu.create=t=>new pu({typeName:lt.ZodBoolean,coerce:t?.coerce||!1,...wt(t)});class Bo extends kt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Fe.date){const s=this._getOrReturnCtx(e);return Ie(s,{code:pe.invalid_type,expected:Fe.date,received:s.parsedType}),ct}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return Ie(s,{code:pe.invalid_date}),ct}const n=new sn;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(a=this._getOrReturnCtx(e,a),Ie(a,{code:pe.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Pt.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Bo({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:Ge.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:Ge.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Bo({checks:[],coerce:t?.coerce||!1,typeName:lt.ZodDate,...wt(t)});class Nd extends kt{_parse(e){if(this._getType(e)!==Fe.symbol){const n=this._getOrReturnCtx(e);return Ie(n,{code:pe.invalid_type,expected:Fe.symbol,received:n.parsedType}),ct}return yn(e.data)}}Nd.create=t=>new Nd({typeName:lt.ZodSymbol,...wt(t)});class mu extends kt{_parse(e){if(this._getType(e)!==Fe.undefined){const n=this._getOrReturnCtx(e);return Ie(n,{code:pe.invalid_type,expected:Fe.undefined,received:n.parsedType}),ct}return yn(e.data)}}mu.create=t=>new mu({typeName:lt.ZodUndefined,...wt(t)});class gu extends kt{_parse(e){if(this._getType(e)!==Fe.null){const n=this._getOrReturnCtx(e);return Ie(n,{code:pe.invalid_type,expected:Fe.null,received:n.parsedType}),ct}return yn(e.data)}}gu.create=t=>new gu({typeName:lt.ZodNull,...wt(t)});class Gl extends kt{constructor(){super(...arguments),this._any=!0}_parse(e){return yn(e.data)}}Gl.create=t=>new Gl({typeName:lt.ZodAny,...wt(t)});class No extends kt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return yn(e.data)}}No.create=t=>new No({typeName:lt.ZodUnknown,...wt(t)});class Ys extends kt{_parse(e){const r=this._getOrReturnCtx(e);return Ie(r,{code:pe.invalid_type,expected:Fe.never,received:r.parsedType}),ct}}Ys.create=t=>new Ys({typeName:lt.ZodNever,...wt(t)});class Rd extends kt{_parse(e){if(this._getType(e)!==Fe.undefined){const n=this._getOrReturnCtx(e);return Ie(n,{code:pe.invalid_type,expected:Fe.void,received:n.parsedType}),ct}return yn(e.data)}}Rd.create=t=>new Rd({typeName:lt.ZodVoid,...wt(t)});class ka extends kt{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),a=this._def;if(r.parsedType!==Fe.array)return Ie(r,{code:pe.invalid_type,expected:Fe.array,received:r.parsedType}),ct;if(a.exactLength!==null){const i=r.data.length>a.exactLength.value,o=r.data.lengtha.maxLength.value&&(Ie(r,{code:pe.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,o)=>a.type._parseAsync(new vs(r,i,r.path,o)))).then(i=>sn.mergeArray(n,i));const s=[...r.data].map((i,o)=>a.type._parseSync(new vs(r,i,r.path,o)));return sn.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new ka({...this._def,minLength:{value:e,message:Ge.toString(r)}})}max(e,r){return new ka({...this._def,maxLength:{value:e,message:Ge.toString(r)}})}length(e,r){return new ka({...this._def,exactLength:{value:e,message:Ge.toString(r)}})}nonempty(e){return this.min(1,e)}}ka.create=(t,e)=>new ka({type:t,minLength:null,maxLength:null,exactLength:null,typeName:lt.ZodArray,...wt(e)});function ml(t){if(t instanceof dr){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=ms.create(ml(n))}return new dr({...t._def,shape:()=>e})}else return t instanceof ka?new ka({...t._def,type:ml(t.element)}):t instanceof ms?ms.create(ml(t.unwrap())):t instanceof to?to.create(ml(t.unwrap())):t instanceof ys?ys.create(t.items.map(e=>ml(e))):t}class dr extends kt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Pt.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==Fe.object){const u=this._getOrReturnCtx(e);return Ie(u,{code:pe.invalid_type,expected:Fe.object,received:u.parsedType}),ct}const{status:n,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ys&&this._def.unknownKeys==="strip"))for(const u in a.data)i.includes(u)||o.push(u);const l=[];for(const u of i){const c=s[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new vs(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Ys){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(Ie(a,{code:pe.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new vs(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,h=await c.value;u.push({key:d,value:h,alwaysSet:c.alwaysSet})}return u}).then(u=>sn.mergeObjectSync(n,u)):sn.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return Ge.errToObj,new dr({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var a,s,i,o;const l=(i=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,r,n).message)!==null&&i!==void 0?i:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=Ge.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new dr({...this._def,unknownKeys:"strip"})}passthrough(){return new dr({...this._def,unknownKeys:"passthrough"})}extend(e){return new dr({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new dr({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:lt.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new dr({...this._def,catchall:e})}pick(e){const r={};return Pt.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new dr({...this._def,shape:()=>r})}omit(e){const r={};return Pt.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new dr({...this._def,shape:()=>r})}deepPartial(){return ml(this)}partial(e){const r={};return Pt.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];e&&!e[n]?r[n]=a:r[n]=a.optional()}),new dr({...this._def,shape:()=>r})}required(e){const r={};return Pt.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof ms;)s=s._def.innerType;r[n]=s}}),new dr({...this._def,shape:()=>r})}keyof(){return Sb(Pt.objectKeys(this.shape))}}dr.create=(t,e)=>new dr({shape:()=>t,unknownKeys:"strip",catchall:Ys.create(),typeName:lt.ZodObject,...wt(e)});dr.strictCreate=(t,e)=>new dr({shape:()=>t,unknownKeys:"strict",catchall:Ys.create(),typeName:lt.ZodObject,...wt(e)});dr.lazycreate=(t,e)=>new dr({shape:t,unknownKeys:"strip",catchall:Ys.create(),typeName:lt.ZodObject,...wt(e)});class bu extends kt{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function a(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;const i=s.map(o=>new zn(o.ctx.common.issues));return Ie(r,{code:pe.invalid_union,unionErrors:i}),ct}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const l of n){const u={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(l=>new zn(l));return Ie(r,{code:pe.invalid_union,unionErrors:o}),ct}}get options(){return this._def.options}}bu.create=(t,e)=>new bu({options:t,typeName:lt.ZodUnion,...wt(e)});const Ns=t=>t instanceof wu?Ns(t.schema):t instanceof Ra?Ns(t.innerType()):t instanceof _u?[t.value]:t instanceof eo?t.options:t instanceof Eu?Pt.objectValues(t.enum):t instanceof xu?Ns(t._def.innerType):t instanceof mu?[void 0]:t instanceof gu?[null]:t instanceof ms?[void 0,...Ns(t.unwrap())]:t instanceof to?[null,...Ns(t.unwrap())]:t instanceof y2||t instanceof ku?Ns(t.unwrap()):t instanceof Tu?Ns(t._def.innerType):[];class y1 extends kt{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==Fe.object)return Ie(r,{code:pe.invalid_type,expected:Fe.object,received:r.parsedType}),ct;const n=this.discriminator,a=r.data[n],s=this.optionsMap.get(a);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(Ie(r,{code:pe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ct)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){const a=new Map;for(const s of r){const i=Ns(s.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of i){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,s)}}return new y1({typeName:lt.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a,...wt(n)})}}function Kh(t,e){const r=Ls(t),n=Ls(e);if(t===e)return{valid:!0,data:t};if(r===Fe.object&&n===Fe.object){const a=Pt.objectKeys(e),s=Pt.objectKeys(t).filter(o=>a.indexOf(o)!==-1),i={...t,...e};for(const o of s){const l=Kh(t[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(r===Fe.array&&n===Fe.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s{if(Gh(s)||Gh(i))return ct;const o=Kh(s.value,i.value);return o.valid?((Yh(s)||Yh(i))&&r.dirty(),{status:r.value,value:o.data}):(Ie(n,{code:pe.invalid_intersection_types}),ct)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}vu.create=(t,e,r)=>new vu({left:t,right:e,typeName:lt.ZodIntersection,...wt(r)});class ys extends kt{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.array)return Ie(n,{code:pe.invalid_type,expected:Fe.array,received:n.parsedType}),ct;if(n.data.lengththis._def.items.length&&(Ie(n,{code:pe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new vs(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>sn.mergeArray(r,i)):sn.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new ys({...this._def,rest:e})}}ys.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ys({items:t,typeName:lt.ZodTuple,rest:null,...wt(e)})};class yu extends kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.object)return Ie(n,{code:pe.invalid_type,expected:Fe.object,received:n.parsedType}),ct;const a=[],s=this._def.keyType,i=this._def.valueType;for(const o in n.data)a.push({key:s._parse(new vs(n,o,n.path,o)),value:i._parse(new vs(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?sn.mergeObjectAsync(r,a):sn.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof kt?new yu({keyType:e,valueType:r,typeName:lt.ZodRecord,...wt(n)}):new yu({keyType:Ea.create(),valueType:e,typeName:lt.ZodRecord,...wt(r)})}}class Id extends kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.map)return Ie(n,{code:pe.invalid_type,expected:Fe.map,received:n.parsedType}),ct;const a=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new vs(n,o,n.path,[u,"key"])),value:s._parse(new vs(n,l,n.path,[u,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ct;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(u.value,c.value)}return{status:r.value,value:o}})}else{const o=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ct;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(u.value,c.value)}return{status:r.value,value:o}}}}Id.create=(t,e,r)=>new Id({valueType:e,keyType:t,typeName:lt.ZodMap,...wt(r)});class Ho extends kt{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Fe.set)return Ie(n,{code:pe.invalid_type,expected:Fe.set,received:n.parsedType}),ct;const a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(Ie(n,{code:pe.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const s=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ct;c.status==="dirty"&&r.dirty(),u.add(c.value)}return{status:r.value,value:u}}const o=[...n.data.values()].map((l,u)=>s._parse(new vs(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,r){return new Ho({...this._def,minSize:{value:e,message:Ge.toString(r)}})}max(e,r){return new Ho({...this._def,maxSize:{value:e,message:Ge.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Ho.create=(t,e)=>new Ho({valueType:t,minSize:null,maxSize:null,typeName:lt.ZodSet,...wt(e)});class Ml extends kt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==Fe.function)return Ie(r,{code:pe.invalid_type,expected:Fe.function,received:r.parsedType}),ct;function n(o,l){return Od({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Cd(),Wl].filter(u=>!!u),issueData:{code:pe.invalid_arguments,argumentsError:l}})}function a(o,l){return Od({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Cd(),Wl].filter(u=>!!u),issueData:{code:pe.invalid_return_type,returnTypeError:l}})}const s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Yl){const o=this;return yn(async function(...l){const u=new zn([]),c=await o._def.args.parseAsync(l,s).catch(f=>{throw u.addIssue(n(l,f)),u}),d=await Reflect.apply(i,this,c);return await o._def.returns._def.type.parseAsync(d,s).catch(f=>{throw u.addIssue(a(d,f)),u})})}else{const o=this;return yn(function(...l){const u=o._def.args.safeParse(l,s);if(!u.success)throw new zn([n(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=o._def.returns.safeParse(c,s);if(!d.success)throw new zn([a(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ml({...this._def,args:ys.create(e).rest(No.create())})}returns(e){return new Ml({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Ml({args:e||ys.create([]).rest(No.create()),returns:r||No.create(),typeName:lt.ZodFunction,...wt(n)})}}class wu extends kt{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}wu.create=(t,e)=>new wu({getter:t,typeName:lt.ZodLazy,...wt(e)});class _u extends kt{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return Ie(r,{received:r.data,code:pe.invalid_literal,expected:this._def.value}),ct}return{status:"valid",value:e.data}}get value(){return this._def.value}}_u.create=(t,e)=>new _u({value:t,typeName:lt.ZodLiteral,...wt(e)});function Sb(t,e){return new eo({values:t,typeName:lt.ZodEnum,...wt(e)})}class eo extends kt{constructor(){super(...arguments),M0.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return Ie(r,{expected:Pt.joinValues(n),received:r.parsedType,code:pe.invalid_type}),ct}if(Md(this,M0)||Eb(this,M0,new Set(this._def.values)),!Md(this,M0).has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return Ie(r,{received:r.data,code:pe.invalid_enum_value,options:n}),ct}return yn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return eo.create(e,{...this._def,...r})}exclude(e,r=this._def){return eo.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}M0=new WeakMap;eo.create=Sb;class Eu extends kt{constructor(){super(...arguments),N0.set(this,void 0)}_parse(e){const r=Pt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Fe.string&&n.parsedType!==Fe.number){const a=Pt.objectValues(r);return Ie(n,{expected:Pt.joinValues(a),received:n.parsedType,code:pe.invalid_type}),ct}if(Md(this,N0)||Eb(this,N0,new Set(Pt.getValidEnumValues(this._def.values))),!Md(this,N0).has(e.data)){const a=Pt.objectValues(r);return Ie(n,{received:n.data,code:pe.invalid_enum_value,options:a}),ct}return yn(e.data)}get enum(){return this._def.values}}N0=new WeakMap;Eu.create=(t,e)=>new Eu({values:t,typeName:lt.ZodNativeEnum,...wt(e)});class Yl extends kt{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==Fe.promise&&r.common.async===!1)return Ie(r,{code:pe.invalid_type,expected:Fe.promise,received:r.parsedType}),ct;const n=r.parsedType===Fe.promise?r.data:Promise.resolve(r.data);return yn(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Yl.create=(t,e)=>new Yl({type:t,typeName:lt.ZodPromise,...wt(e)});class Ra extends kt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===lt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:i=>{Ie(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async o=>{if(r.value==="aborted")return ct;const l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?ct:l.status==="dirty"||r.value==="dirty"?bl(l.value):l});{if(r.value==="aborted")return ct;const o=this._def.schema._parseSync({data:i,path:n.path,parent:n});return o.status==="aborted"?ct:o.status==="dirty"||r.value==="dirty"?bl(o.value):o}}if(a.type==="refinement"){const i=o=>{const l=a.refinement(o,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ct:(o.status==="dirty"&&r.dirty(),i(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?ct:(o.status==="dirty"&&r.dirty(),i(o.value).then(()=>({status:r.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!$o(i))return i;const o=a.transform(i.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>$o(i)?Promise.resolve(a.transform(i.value,s)).then(o=>({status:r.value,value:o})):i);Pt.assertNever(a)}}Ra.create=(t,e,r)=>new Ra({schema:t,typeName:lt.ZodEffects,effect:e,...wt(r)});Ra.createWithPreprocess=(t,e,r)=>new Ra({schema:e,effect:{type:"preprocess",transform:t},typeName:lt.ZodEffects,...wt(r)});class ms extends kt{_parse(e){return this._getType(e)===Fe.undefined?yn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ms.create=(t,e)=>new ms({innerType:t,typeName:lt.ZodOptional,...wt(e)});class to extends kt{_parse(e){return this._getType(e)===Fe.null?yn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}to.create=(t,e)=>new to({innerType:t,typeName:lt.ZodNullable,...wt(e)});class xu extends kt{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===Fe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}xu.create=(t,e)=>new xu({innerType:t,typeName:lt.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...wt(e)});class Tu extends kt{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return hu(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new zn(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Tu.create=(t,e)=>new Tu({innerType:t,typeName:lt.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...wt(e)});class Ld extends kt{_parse(e){if(this._getType(e)!==Fe.nan){const n=this._getOrReturnCtx(e);return Ie(n,{code:pe.invalid_type,expected:Fe.nan,received:n.parsedType}),ct}return{status:"valid",value:e.data}}}Ld.create=t=>new Ld({typeName:lt.ZodNaN,...wt(t)});const YO=Symbol("zod_brand");class y2 extends kt{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class qu extends kt{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ct:s.status==="dirty"?(r.dirty(),bl(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ct:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,r){return new qu({in:e,out:r,typeName:lt.ZodPipeline})}}class ku extends kt{_parse(e){const r=this._def.innerType._parse(e),n=a=>($o(a)&&(a.value=Object.freeze(a.value)),a);return hu(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}ku.create=(t,e)=>new ku({innerType:t,typeName:lt.ZodReadonly,...wt(e)});function Ab(t,e={},r){return t?Gl.create().superRefine((n,a)=>{var s,i;if(!t(n)){const o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,l=(i=(s=o.fatal)!==null&&s!==void 0?s:r)!==null&&i!==void 0?i:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:l})}}):Gl.create()}const KO={object:dr.lazycreate};var lt;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(lt||(lt={}));const QO=(t,e={message:`Input not instance of ${t.name}`})=>Ab(r=>r instanceof t,e),Cb=Ea.create,Ob=Xi.create,XO=Ld.create,JO=Ji.create,Mb=pu.create,eM=Bo.create,tM=Nd.create,rM=mu.create,nM=gu.create,aM=Gl.create,sM=No.create,iM=Ys.create,oM=Rd.create,lM=ka.create,uM=dr.create,cM=dr.strictCreate,dM=bu.create,fM=y1.create,hM=vu.create,pM=ys.create,mM=yu.create,gM=Id.create,bM=Ho.create,vM=Ml.create,yM=wu.create,wM=_u.create,_M=eo.create,EM=Eu.create,xM=Yl.create,M3=Ra.create,TM=ms.create,kM=to.create,SM=Ra.createWithPreprocess,AM=qu.create,CM=()=>Cb().optional(),OM=()=>Ob().optional(),MM=()=>Mb().optional(),NM={string:(t=>Ea.create({...t,coerce:!0})),number:(t=>Xi.create({...t,coerce:!0})),boolean:(t=>pu.create({...t,coerce:!0})),bigint:(t=>Ji.create({...t,coerce:!0})),date:(t=>Bo.create({...t,coerce:!0}))},RM=ct;var Bn=Object.freeze({__proto__:null,defaultErrorMap:Wl,setErrorMap:SO,getErrorMap:Cd,makeIssue:Od,EMPTY_PATH:AO,addIssueToContext:Ie,ParseStatus:sn,INVALID:ct,DIRTY:bl,OK:yn,isAborted:Gh,isDirty:Yh,isValid:$o,isAsync:hu,get util(){return Pt},get objectUtil(){return Wh},ZodParsedType:Fe,getParsedType:Ls,ZodType:kt,datetimeRegex:kb,ZodString:Ea,ZodNumber:Xi,ZodBigInt:Ji,ZodBoolean:pu,ZodDate:Bo,ZodSymbol:Nd,ZodUndefined:mu,ZodNull:gu,ZodAny:Gl,ZodUnknown:No,ZodNever:Ys,ZodVoid:Rd,ZodArray:ka,ZodObject:dr,ZodUnion:bu,ZodDiscriminatedUnion:y1,ZodIntersection:vu,ZodTuple:ys,ZodRecord:yu,ZodMap:Id,ZodSet:Ho,ZodFunction:Ml,ZodLazy:wu,ZodLiteral:_u,ZodEnum:eo,ZodNativeEnum:Eu,ZodPromise:Yl,ZodEffects:Ra,ZodTransformer:Ra,ZodOptional:ms,ZodNullable:to,ZodDefault:xu,ZodCatch:Tu,ZodNaN:Ld,BRAND:YO,ZodBranded:y2,ZodPipeline:qu,ZodReadonly:ku,custom:Ab,Schema:kt,ZodSchema:kt,late:KO,get ZodFirstPartyTypeKind(){return lt},coerce:NM,any:aM,array:lM,bigint:JO,boolean:Mb,date:eM,discriminatedUnion:fM,effect:M3,enum:_M,function:vM,instanceof:QO,intersection:hM,lazy:yM,literal:wM,map:gM,nan:XO,nativeEnum:EM,never:iM,null:nM,nullable:kM,number:Ob,object:uM,oboolean:MM,onumber:OM,optional:TM,ostring:CM,pipeline:AM,preprocess:SM,promise:xM,record:mM,set:bM,strictObject:cM,string:Cb,symbol:tM,transformer:M3,tuple:pM,undefined:rM,union:dM,unknown:sM,void:oM,NEVER:RM,ZodIssueCode:pe,quotelessJson:kO,ZodError:zn});const Fa=Re("dark"),IM=Bn.enum(["dark","light","system"]).optional().catch(void 0);function w1(t={}){const{initialColorMode:e="system",overrideColorMode:r}=t;function n(){Fa.value=i.value==="dark"?"light":"dark",!(typeof window>"u")&&window?.localStorage?.setItem("colorMode",Fa.value)}function a(h){Fa.value=h,!(typeof window>"u")&&window?.localStorage?.setItem("colorMode",Fa.value)}function s(){return typeof window>"u"?"light":typeof window?.matchMedia!="function"||window?.matchMedia("(prefers-color-scheme: dark)")?.matches?"dark":"light"}const i=ie({get:()=>Fa.value==="system"?s():Fa.value,set:a}),o=ie({get:()=>i.value==="dark",set:h=>a(h?"dark":"light")});function l(h){if(typeof document>"u"||typeof window>"u")return;(r??(h==="system"?s():h))==="dark"?(document.body.classList.add("dark-mode"),document.body.classList.remove("light-mode")):(document.body.classList.add("light-mode"),document.body.classList.remove("dark-mode"))}const u=IM.parse(typeof window<"u"?window?.localStorage?.getItem("colorMode"):"system");Fa.value=u??e,St(Fa,l,{immediate:!0});const c=()=>Fa.value==="system"&&l("system"),d=Re(null);return hr(()=>{typeof window<"u"&&typeof window?.matchMedia=="function"&&(d.value=window.matchMedia("(prefers-color-scheme: dark)"),d.value?.addEventListener("change",c))}),qn(()=>{d.value?.removeEventListener("change",c)}),{colorMode:ie({get:()=>Fa.value,set:a}),darkLightMode:i,isDarkMode:o,toggleColorMode:n,setColorMode:a,getSystemModePreference:s}}const LM="regular";function _s(t={}){const e=ie(()=>t.label?{"aria-label":t.label}:{"aria-hidden":!0,role:"presentation"});return{bind:ie(()=>({width:"1em",height:"1em",...e.value})),weight:ie(()=>t.weight??LM)}}const PM={key:0},DM={key:1},$M={key:2},BM={key:3},HM={key:4},FM={key:5},jM={name:"ScalarIconArrowUpRight"},zM=Ve({...jM,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",PM,s[0]||(s[0]=[C("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",DM,s[1]||(s[1]=[C("path",{d:"M192,64V168L88,64Z",opacity:"0.2"},null,-1),C("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",$M,s[2]||(s[2]=[C("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"},null,-1)]))):U(n)==="light"?(A(),I("g",BM,s[3]||(s[3]=[C("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",HM,s[4]||(s[4]=[C("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",FM,s[5]||(s[5]=[C("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"},null,-1)]))):Ke("",!0)],16))}}),UM={key:0},qM={key:1},VM={key:2},ZM={key:3},WM={key:4},GM={key:5},YM={name:"ScalarIconCaretDown"},KM=Ve({...YM,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",UM,s[0]||(s[0]=[C("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",qM,s[1]||(s[1]=[C("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"},null,-1),C("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",VM,s[2]||(s[2]=[C("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"},null,-1)]))):U(n)==="light"?(A(),I("g",ZM,s[3]||(s[3]=[C("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",WM,s[4]||(s[4]=[C("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",GM,s[5]||(s[5]=[C("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"},null,-1)]))):Ke("",!0)],16))}}),QM={key:0},XM={key:1},JM={key:2},eN={key:3},tN={key:4},rN={key:5},nN={name:"ScalarIconCaretLeft"},aN=Ve({...nN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",QM,s[0]||(s[0]=[C("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",XM,s[1]||(s[1]=[C("path",{d:"M160,48V208L80,128Z",opacity:"0.2"},null,-1),C("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",JM,s[2]||(s[2]=[C("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"},null,-1)]))):U(n)==="light"?(A(),I("g",eN,s[3]||(s[3]=[C("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",tN,s[4]||(s[4]=[C("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",rN,s[5]||(s[5]=[C("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},null,-1)]))):Ke("",!0)],16))}}),sN={key:0},iN={key:1},oN={key:2},lN={key:3},uN={key:4},cN={key:5},dN={name:"ScalarIconCaretRight"},Qh=Ve({...dN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",sN,s[0]||(s[0]=[C("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",iN,s[1]||(s[1]=[C("path",{d:"M176,128,96,208V48Z",opacity:"0.2"},null,-1),C("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",oN,s[2]||(s[2]=[C("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1)]))):U(n)==="light"?(A(),I("g",lN,s[3]||(s[3]=[C("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",uN,s[4]||(s[4]=[C("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",cN,s[5]||(s[5]=[C("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"},null,-1)]))):Ke("",!0)],16))}}),fN={key:0},hN={key:1},pN={key:2},mN={key:3},gN={key:4},bN={key:5},vN={name:"ScalarIconEye"},N3=Ve({...vN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",fN,s[0]||(s[0]=[C("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",hN,s[1]||(s[1]=[C("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),C("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",pN,s[2]||(s[2]=[C("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1)]))):U(n)==="light"?(A(),I("g",mN,s[3]||(s[3]=[C("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",gN,s[4]||(s[4]=[C("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",bN,s[5]||(s[5]=[C("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},null,-1)]))):Ke("",!0)],16))}}),yN={key:0},wN={key:1},_N={key:2},EN={key:3},xN={key:4},TN={key:5},kN={name:"ScalarIconList"},SN=Ve({...kN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",yN,s[0]||(s[0]=[C("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",wN,s[1]||(s[1]=[C("path",{d:"M216,64V192H40V64Z",opacity:"0.2"},null,-1),C("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",_N,s[2]||(s[2]=[C("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1)]))):U(n)==="light"?(A(),I("g",EN,s[3]||(s[3]=[C("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",xN,s[4]||(s[4]=[C("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",TN,s[5]||(s[5]=[C("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1)]))):Ke("",!0)],16))}}),AN={key:0},CN={key:1},ON={key:2},MN={key:3},NN={key:4},RN={key:5},IN={name:"ScalarIconMagnifyingGlass"},w2=Ve({...IN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",AN,s[0]||(s[0]=[C("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",CN,s[1]||(s[1]=[C("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"},null,-1),C("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",ON,s[2]||(s[2]=[C("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"},null,-1)]))):U(n)==="light"?(A(),I("g",MN,s[3]||(s[3]=[C("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",NN,s[4]||(s[4]=[C("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",RN,s[5]||(s[5]=[C("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"},null,-1)]))):Ke("",!0)],16))}}),LN={key:0},PN={key:1},DN={key:2},$N={key:3},BN={key:4},HN={key:5},FN={name:"ScalarIconPencil"},R3=Ve({...FN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",LN,s[0]||(s[0]=[C("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",PN,s[1]||(s[1]=[C("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),C("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",DN,s[2]||(s[2]=[C("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"},null,-1)]))):U(n)==="light"?(A(),I("g",$N,s[3]||(s[3]=[C("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",BN,s[4]||(s[4]=[C("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",HN,s[5]||(s[5]=[C("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1)]))):Ke("",!0)],16))}}),jN={key:0},zN={key:1},UN={key:2},qN={key:3},VN={key:4},ZN={key:5},WN={name:"ScalarIconSignOut"},GN=Ve({...WN,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",jN,s[0]||(s[0]=[C("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",zN,s[1]||(s[1]=[C("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"},null,-1),C("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",UN,s[2]||(s[2]=[C("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1)]))):U(n)==="light"?(A(),I("g",qN,s[3]||(s[3]=[C("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",VN,s[4]||(s[4]=[C("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",ZN,s[5]||(s[5]=[C("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"},null,-1)]))):Ke("",!0)],16))}}),YN={key:0},KN={key:1},QN={key:2},XN={key:3},JN={key:4},eR={key:5},tR={name:"ScalarIconX"},rR=Ve({...tR,props:{label:{},weight:{}},setup(t){const e=t,{bind:r,weight:n}=_s(e);return(a,s)=>(A(),I("svg",pr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},U(r)),[Rt(a.$slots,"default"),U(n)==="bold"?(A(),I("g",YN,s[0]||(s[0]=[C("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},null,-1)]))):U(n)==="duotone"?(A(),I("g",KN,s[1]||(s[1]=[C("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),C("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1)]))):U(n)==="fill"?(A(),I("g",QN,s[2]||(s[2]=[C("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1)]))):U(n)==="light"?(A(),I("g",XN,s[3]||(s[3]=[C("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},null,-1)]))):U(n)==="regular"?(A(),I("g",JN,s[4]||(s[4]=[C("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1)]))):U(n)==="thin"?(A(),I("g",eR,s[5]||(s[5]=[C("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"},null,-1)]))):Ke("",!0)],16))}}),nR={class:"header-item-link text-c-1 ml-auto flex",href:"/logout"},aR=Ve({__name:"HeaderLogoutButton",setup(t){return(e,r)=>(A(),I("a",nR,[bt(U(GN)),r[0]||(r[0]=Ws(" Logout ",-1))]))}}),Ks=Math.min,Ir=Math.max,ro=Math.round,ji=Math.floor,Sr=t=>({x:t,y:t}),sR={left:"right",right:"left",bottom:"top",top:"bottom"},iR={start:"end",end:"start"};function Pd(t,e,r){return Ir(t,Ks(e,r))}function ni(t,e){return typeof t=="function"?t(e):t}function Wn(t){return t.split("-")[0]}function Wo(t){return t.split("-")[1]}function _2(t){return t==="x"?"y":"x"}function E2(t){return t==="y"?"height":"width"}const oR=new Set(["top","bottom"]);function nn(t){return oR.has(Wn(t))?"y":"x"}function x2(t){return _2(nn(t))}function Nb(t,e,r){r===void 0&&(r=!1);const n=Wo(t),a=x2(t),s=E2(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Su(i)),[i,Su(i)]}function Rb(t){const e=Su(t);return[Xh(t),e,Xh(e)]}function Xh(t){return t.replace(/start|end/g,e=>iR[e])}const I3=["left","right"],L3=["right","left"],lR=["top","bottom"],uR=["bottom","top"];function cR(t,e,r){switch(t){case"top":case"bottom":return r?e?L3:I3:e?I3:L3;case"left":case"right":return e?lR:uR;default:return[]}}function Ib(t,e,r,n){const a=Wo(t);let s=cR(Wn(t),r==="start",n);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map(Xh)))),s}function Su(t){return t.replace(/left|right|bottom|top/g,e=>sR[e])}function dR(t){return{top:0,right:0,bottom:0,left:0,...t}}function Lb(t){return typeof t!="number"?dR(t):{top:t,right:t,bottom:t,left:t}}function no(t){const{x:e,y:r,width:n,height:a}=t;return{width:n,height:a,top:r,left:e,right:e+n,bottom:r+a,x:e,y:r}}function P3(t,e,r){let{reference:n,floating:a}=t;const s=nn(e),i=x2(e),o=E2(i),l=Wn(e),u=s==="y",c=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,h=n[o]/2-a[o]/2;let f;switch(l){case"top":f={x:c,y:n.y-a.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-a.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Wo(e)){case"start":f[i]-=h*(r&&u?-1:1);break;case"end":f[i]+=h*(r&&u?-1:1);break}return f}const fR=async(t,e,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:i}=r,o=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:c,y:d}=P3(u,n,l),h=n,f={},m=0;for(let p=0;pBe<=0)){var le,ee;const Be=(((le=s.flip)==null?void 0:le.index)||0)+1,Qe=z[Be];if(Qe&&(!(d==="alignment"?x!==nn(Qe):!1)||ge.every(Ae=>Ae.overflows[0]>0&&nn(Ae.placement)===x)))return{data:{index:Be,overflows:ge},reset:{placement:Qe}};let be=(ee=ge.filter(De=>De.overflows[0]<=0).sort((De,Ae)=>De.overflows[1]-Ae.overflows[1])[0])==null?void 0:ee.placement;if(!be)switch(f){case"bestFit":{var Ne;const De=(Ne=ge.filter(Ae=>{if(W){const Je=nn(Ae.placement);return Je===x||Je==="y"}return!0}).map(Ae=>[Ae.placement,Ae.overflows.filter(Je=>Je>0).reduce((Je,Mt)=>Je+Mt,0)]).sort((Ae,Je)=>Ae[1]-Je[1])[0])==null?void 0:Ne[0];De&&(be=De);break}case"initialPlacement":be=o;break}if(a!==be)return{reset:{placement:be}}}return{}}}},pR=new Set(["left","top"]);async function mR(t,e){const{placement:r,platform:n,elements:a}=t,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=Wn(r),o=Wo(r),l=nn(r)==="y",u=pR.has(i)?-1:1,c=s&&l?-1:1,d=ni(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof m=="number"&&(f=o==="end"?m*-1:m),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const gR=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:a,y:s,placement:i,middlewareData:o}=e,l=await mR(e,t);return i===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:s+l.y,data:{...l,placement:i}}}}},bR=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:o={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=ni(t,e),u={x:r,y:n},c=await Pb(e,l),d=nn(Wn(a)),h=_2(d);let f=u[h],m=u[d];if(s){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=f+c[b],k=f-c[y];f=Pd(x,f,k)}if(i){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=m+c[b],k=m-c[y];m=Pd(x,m,k)}const p=o.fn({...e,[h]:f,[d]:m});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:s,[d]:i}}}}}};function _1(){return typeof window<"u"}function Ia(t){return E1(t)?(t.nodeName||"").toLowerCase():"#document"}function Ar(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Br(t){var e;return(e=(E1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function E1(t){return _1()?t instanceof Node||t instanceof Ar(t).Node:!1}function Cr(t){return _1()?t instanceof Element||t instanceof Ar(t).Element:!1}function qr(t){return _1()?t instanceof HTMLElement||t instanceof Ar(t).HTMLElement:!1}function D3(t){return!_1()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ar(t).ShadowRoot}const vR=new Set(["inline","contents"]);function lo(t){const{overflow:e,overflowX:r,overflowY:n,display:a}=Or(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!vR.has(a)}const yR=new Set(["table","td","th"]);function Db(t){return yR.has(Ia(t))}const wR=[":popover-open",":modal"];function Go(t){return wR.some(e=>{try{return t.matches(e)}catch{return!1}})}const _R=["transform","translate","scale","rotate","perspective"],ER=["transform","translate","scale","rotate","perspective","filter"],xR=["paint","layout","strict","content"];function Vu(t){const e=Zu(),r=Cr(t)?Or(t):t;return _R.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||ER.some(n=>(r.willChange||"").includes(n))||xR.some(n=>(r.contain||"").includes(n))}function $b(t){let e=Gn(t);for(;qr(e)&&!ws(e);){if(Vu(e))return e;if(Go(e))return null;e=Gn(e)}return null}function Zu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const TR=new Set(["html","body","#document"]);function ws(t){return TR.has(Ia(t))}function Or(t){return Ar(t).getComputedStyle(t)}function uo(t){return Cr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gn(t){if(Ia(t)==="html")return t;const e=t.assignedSlot||t.parentNode||D3(t)&&t.host||Br(t);return D3(e)?e.host:e}function Bb(t){const e=Gn(t);return ws(e)?t.ownerDocument?t.ownerDocument.body:t.body:qr(e)&&lo(e)?e:Bb(e)}function ao(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const a=Bb(t),s=a===((n=t.ownerDocument)==null?void 0:n.body),i=Ar(a);if(s){const o=Au(i);return e.concat(i,i.visualViewport||[],lo(a)?a:[],o&&r?ao(o):[])}return e.concat(a,ao(a,[],r))}function Au(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Hb(t){const e=Or(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=qr(t),s=a?t.offsetWidth:r,i=a?t.offsetHeight:n,o=ro(r)!==s||ro(n)!==i;return o&&(r=s,n=i),{width:r,height:n,$:o}}function T2(t){return Cr(t)?t:t.contextElement}function Nl(t){const e=T2(t);if(!qr(e))return Sr(1);const r=e.getBoundingClientRect(),{width:n,height:a,$:s}=Hb(e);let i=(s?ro(r.width):r.width)/n,o=(s?ro(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const kR=Sr(0);function Fb(t){const e=Ar(t);return!Zu()||!e.visualViewport?kR:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function SR(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ar(t)?!1:e}function Fo(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),s=T2(t);let i=Sr(1);e&&(n?Cr(n)&&(i=Nl(n)):i=Nl(t));const o=SR(s,r,n)?Fb(s):Sr(0);let l=(a.left+o.x)/i.x,u=(a.top+o.y)/i.y,c=a.width/i.x,d=a.height/i.y;if(s){const h=Ar(s),f=n&&Cr(n)?Ar(n):n;let m=h,p=Au(m);for(;p&&n&&f!==m;){const b=Nl(p),y=p.getBoundingClientRect(),x=Or(p),k=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*b.x,N=y.top+(p.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=k,u+=N,m=Ar(p),p=Au(m)}}return no({width:c,height:d,x:l,y:u})}function k2(t,e){const r=uo(t).scrollLeft;return e?e.left+r:Fo(Br(t)).left+r}function jb(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),a=n.left+e.scrollLeft-(r?0:k2(t,n)),s=n.top+e.scrollTop;return{x:a,y:s}}function AR(t){let{elements:e,rect:r,offsetParent:n,strategy:a}=t;const s=a==="fixed",i=Br(n),o=e?Go(e.floating):!1;if(n===i||o&&s)return r;let l={scrollLeft:0,scrollTop:0},u=Sr(1);const c=Sr(0),d=qr(n);if((d||!d&&!s)&&((Ia(n)!=="body"||lo(i))&&(l=uo(n)),qr(n))){const f=Fo(n);u=Nl(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const h=i&&!d&&!s?jb(i,l,!0):Sr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:r.y*u.y-l.scrollTop*u.y+c.y+h.y}}function CR(t){return Array.from(t.getClientRects())}function OR(t){const e=Br(t),r=uo(t),n=t.ownerDocument.body,a=Ir(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=Ir(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+k2(t);const o=-r.scrollTop;return Or(n).direction==="rtl"&&(i+=Ir(e.clientWidth,n.clientWidth)-a),{width:a,height:s,x:i,y:o}}function MR(t,e){const r=Ar(t),n=Br(t),a=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,o=0,l=0;if(a){s=a.width,i=a.height;const u=Zu();(!u||u&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:s,height:i,x:o,y:l}}const NR=new Set(["absolute","fixed"]);function RR(t,e){const r=Fo(t,!0,e==="fixed"),n=r.top+t.clientTop,a=r.left+t.clientLeft,s=qr(t)?Nl(t):Sr(1),i=t.clientWidth*s.x,o=t.clientHeight*s.y,l=a*s.x,u=n*s.y;return{width:i,height:o,x:l,y:u}}function $3(t,e,r){let n;if(e==="viewport")n=MR(t,r);else if(e==="document")n=OR(Br(t));else if(Cr(e))n=RR(e,r);else{const a=Fb(t);n={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return no(n)}function zb(t,e){const r=Gn(t);return r===e||!Cr(r)||ws(r)?!1:Or(r).position==="fixed"||zb(r,e)}function IR(t,e){const r=e.get(t);if(r)return r;let n=ao(t,[],!1).filter(o=>Cr(o)&&Ia(o)!=="body"),a=null;const s=Or(t).position==="fixed";let i=s?Gn(t):t;for(;Cr(i)&&!ws(i);){const o=Or(i),l=Vu(i);!l&&o.position==="fixed"&&(a=null),(s?!l&&!a:!l&&o.position==="static"&&!!a&&NR.has(a.position)||lo(i)&&!l&&zb(t,i))?n=n.filter(c=>c!==i):a=o,i=Gn(i)}return e.set(t,n),n}function LR(t){let{element:e,boundary:r,rootBoundary:n,strategy:a}=t;const i=[...r==="clippingAncestors"?Go(e)?[]:IR(e,this._c):[].concat(r),n],o=i[0],l=i.reduce((u,c)=>{const d=$3(e,c,a);return u.top=Ir(d.top,u.top),u.right=Ks(d.right,u.right),u.bottom=Ks(d.bottom,u.bottom),u.left=Ir(d.left,u.left),u},$3(e,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function PR(t){const{width:e,height:r}=Hb(t);return{width:e,height:r}}function DR(t,e,r){const n=qr(e),a=Br(e),s=r==="fixed",i=Fo(t,!0,s,e);let o={scrollLeft:0,scrollTop:0};const l=Sr(0);function u(){l.x=k2(a)}if(n||!n&&!s)if((Ia(e)!=="body"||lo(a))&&(o=uo(e)),n){const f=Fo(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else a&&u();s&&!n&&a&&u();const c=a&&!n&&!s?jb(a,o):Sr(0),d=i.left+o.scrollLeft-l.x-c.x,h=i.top+o.scrollTop-l.y-c.y;return{x:d,y:h,width:i.width,height:i.height}}function Cf(t){return Or(t).position==="static"}function B3(t,e){if(!qr(t)||Or(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Br(t)===r&&(r=r.ownerDocument.body),r}function Ub(t,e){const r=Ar(t);if(Go(t))return r;if(!qr(t)){let a=Gn(t);for(;a&&!ws(a);){if(Cr(a)&&!Cf(a))return a;a=Gn(a)}return r}let n=B3(t,e);for(;n&&Db(n)&&Cf(n);)n=B3(n,e);return n&&ws(n)&&Cf(n)&&!Vu(n)?r:n||$b(t)||r}const $R=async function(t){const e=this.getOffsetParent||Ub,r=this.getDimensions,n=await r(t.floating);return{reference:DR(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function BR(t){return Or(t).direction==="rtl"}const HR={convertOffsetParentRelativeRectToViewportRelativeRect:AR,getDocumentElement:Br,getClippingRect:LR,getOffsetParent:Ub,getElementRects:$R,getClientRects:CR,getDimensions:PR,getScale:Nl,isElement:Cr,isRTL:BR};function qb(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function FR(t,e){let r=null,n;const a=Br(t);function s(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function i(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const u=t.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(o||e(),!h||!f)return;const m=ji(d),p=ji(a.clientWidth-(c+h)),b=ji(a.clientHeight-(d+f)),y=ji(c),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-y+"px",threshold:Ir(0,Ks(1,l))||1};let N=!0;function L(W){const z=W[0].intersectionRatio;if(z!==l){if(!N)return i();z?i(!1,z):n=setTimeout(()=>{i(!1,1e-7)},1e3)}z===1&&!qb(u,t.getBoundingClientRect())&&i(),N=!1}try{r=new IntersectionObserver(L,{...k,root:a.ownerDocument})}catch{r=new IntersectionObserver(L,k)}r.observe(t)}return i(!0),s}function jR(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=T2(t),c=a||s?[...u?ao(u):[],...ao(e)]:[];c.forEach(y=>{a&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const d=u&&o?FR(u,r):null;let h=-1,f=null;i&&(f=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=f)==null||k.observe(e)})),r()}),u&&!l&&f.observe(u),f.observe(e));let m,p=l?Fo(t):null;l&&b();function b(){const y=Fo(t);p&&!qb(p,y)&&r(),p=y,m=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(x=>{a&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),d?.(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const zR=gR,UR=bR,qR=hR,VR=(t,e,r)=>{const n=new Map,a={platform:HR,...r},s={...a.platform,_c:n};return fR(t,e,{...a,platform:s})};function ZR(t){return t!=null&&typeof t=="object"&&"$el"in t}function H3(t){if(ZR(t)){const e=t.$el;return E1(e)&&Ia(e)==="#comment"?null:e}return t}function v0(t){return typeof t=="function"?t():U(t)}function Vb(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function F3(t,e){const r=Vb(t);return Math.round(e*r)/r}function WR(t,e,r){r===void 0&&(r={});const n=r.whileElementsMounted,a=ie(()=>{var z;return(z=v0(r.open))!=null?z:!0}),s=ie(()=>v0(r.middleware)),i=ie(()=>{var z;return(z=v0(r.placement))!=null?z:"bottom"}),o=ie(()=>{var z;return(z=v0(r.strategy))!=null?z:"absolute"}),l=ie(()=>{var z;return(z=v0(r.transform))!=null?z:!0}),u=ie(()=>H3(t.value)),c=ie(()=>H3(e.value)),d=Re(0),h=Re(0),f=Re(o.value),m=Re(i.value),p=an({}),b=Re(!1),y=ie(()=>{const z={position:f.value,left:"0",top:"0"};if(!c.value)return z;const ne=F3(c.value,d.value),K=F3(c.value,h.value);return l.value?{...z,transform:"translate("+ne+"px, "+K+"px)",...Vb(c.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:ne+"px",top:K+"px"}});let x;function k(){if(u.value==null||c.value==null)return;const z=a.value;VR(u.value,c.value,{middleware:s.value,placement:i.value,strategy:o.value}).then(ne=>{d.value=ne.x,h.value=ne.y,f.value=ne.strategy,m.value=ne.placement,p.value=ne.middlewareData,b.value=z!==!1})}function N(){typeof x=="function"&&(x(),x=void 0)}function L(){if(N(),n===void 0){k();return}if(u.value!=null&&c.value!=null){x=n(u.value,c.value,k);return}}function W(){a.value||(b.value=!1)}return St([s,i,o,a],k,{flush:"sync"}),St([u,c],L,{flush:"sync"}),St(a,W,{flush:"sync"}),Hu()&&Wp(N),{x:$n(d),y:$n(h),strategy:$n(f),placement:$n(m),middlewareData:$n(p),isPositioned:$n(b),floatingStyles:y,update:k}}function GR(t,e,r){let n=Re(r?.value),a=ie(()=>t.value!==void 0);return[ie(()=>a.value?t.value:n.value),function(s){return a.value||(n.value=s),e?.(s)}]}function S2(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function A2(){let t=[],e={addEventListener(r,n,a,s){return r.addEventListener(n,a,s),e.add(()=>r.removeEventListener(n,a,s))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);e.add(()=>cancelAnimationFrame(n))},nextFrame(...r){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...r)})},setTimeout(...r){let n=setTimeout(...r);e.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return S2(()=>{n.current&&r[0]()}),e.add(()=>{n.current=!1})},style(r,n,a){let s=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:a}),this.add(()=>{Object.assign(r.style,{[n]:s})})},group(r){let n=A2();return r(n),this.add(()=>n.dispose())},add(r){return t.push(r),()=>{let n=t.indexOf(r);if(n>=0)for(let a of t.splice(n,1))a()}},dispose(){for(let r of t.splice(0))r()}};return e}var j3;let Zb=Symbol("headlessui.useid"),YR=0;const Yo=(j3=sk)!=null?j3:function(){return Gt(Zb,()=>`${++YR}`)()};function Zte(t){jn(Zb,t)}function Ct(t){var e;if(t==null||t.value==null)return null;let r=(e=t.value.$el)!=null?e:t.value;return r instanceof Node?r:null}function vn(t,e,...r){if(t in e){let a=e[t];return typeof a=="function"?a(...r):a}let n=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,vn),n}var KR=Object.defineProperty,QR=(t,e,r)=>e in t?KR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,z3=(t,e,r)=>(QR(t,typeof e!="symbol"?e+"":e,r),r);let XR=class{constructor(){z3(this,"current",this.detect()),z3(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},x1=new XR;function Ko(t){if(x1.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let e=Ct(t);if(e)return e.ownerDocument}return document}let Jh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Fi=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(Fi||{}),Wb=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(Wb||{}),JR=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(JR||{});function Gb(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(Jh)).sort((e,r)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var C2=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(C2||{});function O2(t,e=0){var r;return t===((r=Ko(t))==null?void 0:r.body)?!1:vn(e,{0(){return t.matches(Jh)},1(){let n=t;for(;n!==null;){if(n.matches(Jh))return!0;n=n.parentElement}return!1}})}function Gte(t){let e=Ko(t);bn(()=>{e&&!O2(e.activeElement,0)&&Zi(t)})}var eI=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(eI||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Zi(t){t?.focus({preventScroll:!0})}let tI=["textarea","input"].join(",");function rI(t){var e,r;return(r=(e=t?.matches)==null?void 0:e.call(t,tI))!=null?r:!1}function Yb(t,e=r=>r){return t.slice().sort((r,n)=>{let a=e(r),s=e(n);if(a===null||s===null)return 0;let i=a.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Yte(t,e){return W0(Gb(),e,{relativeTo:t})}function W0(t,e,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){var s;let i=(s=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t?.ownerDocument)!=null?s:document,o=Array.isArray(t)?r?Yb(t):t:Gb(t);a.length>0&&o.length>1&&(o=o.filter(m=>!a.includes(m))),n=n??i.activeElement;let l=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,o.indexOf(n))-1;if(e&4)return Math.max(0,o.indexOf(n))+1;if(e&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{},d=0,h=o.length,f;do{if(d>=h||d+h<=0)return 0;let m=u+d;if(e&16)m=(m+h)%h;else{if(m<0)return 3;if(m>=h)return 1}f=o[m],f?.focus(c),d+=l}while(f!==i.activeElement);return e&6&&rI(f)&&f.select(),2}function Kb(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function nI(){return/Android/gi.test(window.navigator.userAgent)}function aI(){return Kb()||nI()}function xc(t,e,r){x1.isServer||Yn(n=>{document.addEventListener(t,e,r),n(()=>document.removeEventListener(t,e,r))})}function Qb(t,e,r){x1.isServer||Yn(n=>{window.addEventListener(t,e,r),n(()=>window.removeEventListener(t,e,r))})}function Xb(t,e,r=ie(()=>!0)){function n(s,i){if(!r.value||s.defaultPrevented)return;let o=i(s);if(o===null||!o.getRootNode().contains(o))return;let l=(function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]})(t);for(let u of l){if(u===null)continue;let c=u instanceof HTMLElement?u:Ct(u);if(c!=null&&c.contains(o)||s.composed&&s.composedPath().includes(c))return}return!O2(o,C2.Loose)&&o.tabIndex!==-1&&s.preventDefault(),e(s,o)}let a=Re(null);xc("pointerdown",s=>{var i,o;r.value&&(a.value=((o=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:o[0])||s.target)},!0),xc("mousedown",s=>{var i,o;r.value&&(a.value=((o=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:o[0])||s.target)},!0),xc("click",s=>{aI()||a.value&&(n(s,()=>a.value),a.value=null)},!0),xc("touchend",s=>n(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Qb("blur",s=>n(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function U3(t,e){if(t)return t;let r=e??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function sI(t,e){let r=Re(U3(t.value.type,t.value.as));return hr(()=>{r.value=U3(t.value.type,t.value.as)}),Yn(()=>{var n;r.value||Ct(e)&&Ct(e)instanceof HTMLButtonElement&&!((n=Ct(e))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function q3(t){return[t.screenX,t.screenY]}function iI(){let t=Re([-1,-1]);return{wasMoved(e){let r=q3(e);return t.value[0]===r[0]&&t.value[1]===r[1]?!1:(t.value=r,!0)},update(e){t.value=q3(e)}}}var Cu=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Cu||{}),oI=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(oI||{});function Kn({visible:t=!0,features:e=0,ourProps:r,theirProps:n,...a}){var s;let i=ev(n,r),o=Object.assign(a,{props:i});if(t||e&2&&i.static)return Of(o);if(e&1){let l=(s=i.unmount)==null||s?0:1;return vn(l,{0(){return null},1(){return Of({...a,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Of(o)}function Of({props:t,attrs:e,slots:r,slot:n,name:a}){var s,i;let{as:o,...l}=tv(t,["unmount","static"]),u=(s=r.default)==null?void 0:s.call(r,n),c={};if(n){let d=!1,h=[];for(let[f,m]of Object.entries(n))typeof m=="boolean"&&(d=!0),m===!0&&h.push(f);d&&(c["data-headlessui-state"]=h.join(" "))}if(o==="template"){if(u=Jb(u??[]),Object.keys(l).length>0||Object.keys(e).length>0){let[d,...h]=u??[];if(!uI(d)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(e)).map(p=>p.trim()).filter((p,b,y)=>y.indexOf(p)===b).sort((p,b)=>p.localeCompare(b)).map(p=>` - ${p}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(` `)].join(` `));let f=ev((i=d.props)!=null?i:{},l,c),m=Zs(d,f,!0);for(let p in f)p.startsWith("on")&&(m.props||(m.props={}),m.props[p]=f[p]);return m}return Array.isArray(u)&&u.length===1?u[0]:u}return Tr(o,Object.assign({},l,c),{default:()=>u})}function Jb(t){return t.flatMap(e=>e.type===Vt?Jb(e.children):[e])}function ev(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},r={};for(let n of t)for(let a in n)a.startsWith("on")&&typeof n[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(n[a])):e[a]=n[a];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(e,{[n](a,...s){let i=r[n];for(let o of i){if(a instanceof Event&&a.defaultPrevented)return;o(a,...s)}}});return e}function lI(t){let e=Object.assign({},t);for(let r in e)e[r]===void 0&&delete e[r];return e}function tv(t,e=[]){let r=Object.assign({},t);for(let n of e)n in r&&delete r[n];return r}function uI(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}var Ou=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(Ou||{});let Dd=Ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:e,attrs:r}){return()=>{var n;let{features:a,...s}=t,i={"aria-hidden":(a&2)===2?!0:(n=s["aria-hidden"])!=null?n:void 0,hidden:(a&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return Kn({ourProps:i,theirProps:s,slot:{},attrs:r,slots:e,name:"Hidden"})}}}),rv=Symbol("Context");var js=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(js||{});function nv(){return Gt(rv,null)}function cI(t){jn(rv,t)}var Rr=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(Rr||{});function dI(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}let To=[];dI(()=>{function t(e){e.target instanceof HTMLElement&&e.target!==document.body&&To[0]!==e.target&&(To.unshift(e.target),To=To.filter(r=>r!=null&&r.isConnected),To.splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function fI(t){throw new Error("Unexpected object: "+t)}var pn=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(pn||{});function hI(t,e){let r=e.resolveItems();if(r.length<=0)return null;let n=e.resolveActiveIndex(),a=n??-1;switch(t.focus){case 0:{for(let s=0;s=0;--s)if(!e.resolveDisabled(r[s],s,r))return s;return n}case 2:{for(let s=a+1;s=0;--s)if(!e.resolveDisabled(r[s],s,r))return s;return n}case 4:{for(let s=0;s{t=t??window,t.addEventListener(e,r,n),a(()=>t.removeEventListener(e,r,n))})}var R0=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(R0||{});function pI(){let t=Re(0);return Qb("keydown",e=>{e.key==="Tab"&&(t.value=e.shiftKey?1:0)}),t}function lv(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let e=new Set;for(let r of t.value){let n=Ct(r);n instanceof HTMLElement&&e.add(n)}return e}var uv=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(uv||{});let y0=Object.assign(Ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:Re(new Set)}},inheritAttrs:!1,setup(t,{attrs:e,slots:r,expose:n}){let a=Re(null);n({el:a,$el:a});let s=ie(()=>Ko(a)),i=Re(!1);hr(()=>i.value=!0),qn(()=>i.value=!1),gI({ownerDocument:s},ie(()=>i.value&&!!(t.features&16)));let o=bI({ownerDocument:s,container:a,initialFocus:ie(()=>t.initialFocus)},ie(()=>i.value&&!!(t.features&2)));vI({ownerDocument:s,container:a,containers:t.containers,previousActiveElement:o},ie(()=>i.value&&!!(t.features&8)));let l=pI();function u(f){let m=Ct(a);m&&(p=>p())(()=>{vn(l.value,{[R0.Forwards]:()=>{W0(m,Fi.First,{skipElements:[f.relatedTarget]})},[R0.Backwards]:()=>{W0(m,Fi.Last,{skipElements:[f.relatedTarget]})}})})}let c=Re(!1);function d(f){f.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function h(f){if(!i.value)return;let m=lv(t.containers);Ct(a)instanceof HTMLElement&&m.add(Ct(a));let p=f.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(cv(m,p)||(c.value?W0(Ct(a),vn(l.value,{[R0.Forwards]:()=>Fi.Next,[R0.Backwards]:()=>Fi.Previous})|Fi.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Zi(f.target)))}return()=>{let f={},m={ref:a,onKeydown:d,onFocusout:h},{features:p,initialFocus:b,containers:y,...x}=t;return Tr(Vt,[!!(p&4)&&Tr(Dd,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:Ou.Focusable}),Kn({ourProps:m,theirProps:{...e,...x},slot:f,attrs:e,slots:r,name:"FocusTrap"}),!!(p&4)&&Tr(Dd,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:Ou.Focusable})])}}}),{features:uv});function mI(t){let e=Re(To.slice());return St([t],([r],[n])=>{n===!0&&r===!1?S2(()=>{e.value.splice(0)}):n===!1&&r===!0&&(e.value=To.slice())},{flush:"post"}),()=>{var r;return(r=e.value.find(n=>n!=null&&n.isConnected))!=null?r:null}}function gI({ownerDocument:t},e){let r=mI(e);hr(()=>{Yn(()=>{var n,a;e.value||((n=t.value)==null?void 0:n.activeElement)===((a=t.value)==null?void 0:a.body)&&Zi(r())},{flush:"post"})}),qn(()=>{e.value&&Zi(r())})}function bI({ownerDocument:t,container:e,initialFocus:r},n){let a=Re(null),s=Re(!1);return hr(()=>s.value=!0),qn(()=>s.value=!1),hr(()=>{St([e,r,n],(i,o)=>{if(i.every((u,c)=>o?.[c]===u)||!n.value)return;let l=Ct(e);l&&S2(()=>{var u,c;if(!s.value)return;let d=Ct(r),h=(u=t.value)==null?void 0:u.activeElement;if(d){if(d===h){a.value=h;return}}else if(l.contains(h)){a.value=h;return}d?Zi(d):W0(l,Fi.First|Fi.NoScroll)===Wb.Error&&console.warn("There are no focusable elements inside the "),a.value=(c=t.value)==null?void 0:c.activeElement})},{immediate:!0,flush:"post"})}),a}function vI({ownerDocument:t,container:e,containers:r,previousActiveElement:n},a){var s;ov((s=t.value)==null?void 0:s.defaultView,"focus",i=>{if(!a.value)return;let o=lv(r);Ct(e)instanceof HTMLElement&&o.add(Ct(e));let l=n.value;if(!l)return;let u=i.target;u&&u instanceof HTMLElement?cv(o,u)?(n.value=u,Zi(u)):(i.preventDefault(),i.stopPropagation(),Zi(l)):Zi(n.value)},!0)}function cv(t,e){for(let r of t)if(r.contains(e))return!0;return!1}function yI(t){let e=an(t.getSnapshot());return qn(t.subscribe(()=>{e.value=t.getSnapshot()})),e}function wI(t,e){let r=t(),n=new Set;return{getSnapshot(){return r},subscribe(a){return n.add(a),()=>n.delete(a)},dispatch(a,...s){let i=e[a].call(r,...s);i&&(r=i,n.forEach(o=>o()))}}}function _I(){let t;return{before({doc:e}){var r;let n=e.documentElement;t=((r=e.defaultView)!=null?r:window).innerWidth-n.clientWidth},after({doc:e,d:r}){let n=e.documentElement,a=n.clientWidth-n.offsetWidth,s=t-a;r.style(n,"paddingRight",`${s}px`)}}}function EI(){return Kb()?{before({doc:t,d:e,meta:r}){function n(a){return r.containers.flatMap(s=>s()).some(s=>s.contains(a))}e.microTask(()=>{var a;if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let o=A2();o.style(t.documentElement,"scrollBehavior","auto"),e.add(()=>e.microTask(()=>o.dispose()))}let s=(a=window.scrollY)!=null?a:window.pageYOffset,i=null;e.addEventListener(t,"click",o=>{if(o.target instanceof HTMLElement)try{let l=o.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=t.querySelector(u);c&&!n(c)&&(i=c)}catch{}},!0),e.addEventListener(t,"touchstart",o=>{if(o.target instanceof HTMLElement)if(n(o.target)){let l=o.target;for(;l.parentElement&&n(l.parentElement);)l=l.parentElement;e.style(l,"overscrollBehavior","contain")}else e.style(o.target,"touchAction","none")}),e.addEventListener(t,"touchmove",o=>{if(o.target instanceof HTMLElement){if(o.target.tagName==="INPUT")return;if(n(o.target)){let l=o.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&o.preventDefault()}else o.preventDefault()}},{passive:!1}),e.add(()=>{var o;let l=(o=window.scrollY)!=null?o:window.pageYOffset;s!==l&&window.scrollTo(0,s),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function xI(){return{before({doc:t,d:e}){e.style(t.documentElement,"overflow","hidden")}}}function TI(t){let e={};for(let r of t)Object.assign(e,r(e));return e}let ko=wI(()=>new Map,{PUSH(t,e){var r;let n=(r=this.get(t))!=null?r:{doc:t,count:0,d:A2(),meta:new Set};return n.count++,n.meta.add(e),this.set(t,n),this},POP(t,e){let r=this.get(t);return r&&(r.count--,r.meta.delete(e)),this},SCROLL_PREVENT({doc:t,d:e,meta:r}){let n={doc:t,d:e,meta:TI(r)},a=[EI(),_I(),xI()];a.forEach(({before:s})=>s?.(n)),a.forEach(({after:s})=>s?.(n))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});ko.subscribe(()=>{let t=ko.getSnapshot(),e=new Map;for(let[r]of t)e.set(r,r.documentElement.style.overflow);for(let r of t.values()){let n=e.get(r.doc)==="hidden",a=r.count!==0;(a&&!n||!a&&n)&&ko.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&ko.dispatch("TEARDOWN",r)}});function kI(t,e,r){let n=yI(ko),a=ie(()=>{let s=t.value?n.value.get(t.value):void 0;return s?s.count>0:!1});return St([t,e],([s,i],[o],l)=>{if(!s||!i)return;ko.dispatch("PUSH",s,r);let u=!1;l(()=>{u||(ko.dispatch("POP",o??s,r),u=!0)})},{immediate:!0}),a}let Mf=new Map,w0=new Map;function V3(t,e=Re(!0)){Yn(r=>{var n;if(!e.value)return;let a=Ct(t);if(!a)return;r(function(){var i;if(!a)return;let o=(i=w0.get(a))!=null?i:1;if(o===1?w0.delete(a):w0.set(a,o-1),o!==1)return;let l=Mf.get(a);l&&(l["aria-hidden"]===null?a.removeAttribute("aria-hidden"):a.setAttribute("aria-hidden",l["aria-hidden"]),a.inert=l.inert,Mf.delete(a))});let s=(n=w0.get(a))!=null?n:0;w0.set(a,s+1),s===0&&(Mf.set(a,{"aria-hidden":a.getAttribute("aria-hidden"),inert:a.inert}),a.setAttribute("aria-hidden","true"),a.inert=!0)})}function SI({defaultContainers:t=[],portals:e,mainTreeNodeRef:r}={}){let n=Re(null),a=Ko(n);function s(){var i,o,l;let u=[];for(let c of t)c!==null&&(c instanceof HTMLElement?u.push(c):"value"in c&&c.value instanceof HTMLElement&&u.push(c.value));if(e!=null&&e.value)for(let c of e.value)u.push(c);for(let c of(i=a?.querySelectorAll("html > *, body > *"))!=null?i:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(c.contains(Ct(n))||c.contains((l=(o=Ct(n))==null?void 0:o.getRootNode())==null?void 0:l.host)||u.some(d=>c.contains(d))||u.push(c));return u}return{resolveContainers:s,contains(i){return s().some(o=>o.contains(i))},mainTreeNodeRef:n,MainTreeNode(){return r!=null?null:Tr(Dd,{features:Ou.Hidden,ref:n})}}}let dv=Symbol("ForcePortalRootContext");function AI(){return Gt(dv,!1)}let Z3=Ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:e,attrs:r}){return jn(dv,t.force),()=>{let{force:n,...a}=t;return Kn({theirProps:a,ourProps:{},slot:{},slots:e,attrs:r,name:"ForcePortalRoot"})}}}),fv=Symbol("StackContext");var ep=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(ep||{});function CI(){return Gt(fv,()=>{})}function OI({type:t,enabled:e,element:r,onUpdate:n}){let a=CI();function s(...i){n?.(...i),a(...i)}hr(()=>{St(e,(i,o)=>{i?s(0,t,r):o===!0&&s(1,t,r)},{immediate:!0,flush:"sync"})}),qn(()=>{e.value&&s(1,t,r)}),jn(fv,s)}let MI=Symbol("DescriptionContext");function NI({slot:t=Re({}),name:e="Description",props:r={}}={}){let n=Re([]);function a(s){return n.value.push(s),()=>{let i=n.value.indexOf(s);i!==-1&&n.value.splice(i,1)}}return jn(MI,{register:a,slot:t,name:e,props:r}),ie(()=>n.value.length>0?n.value.join(" "):void 0)}function RI(t){let e=Ko(t);if(!e){if(t===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${t}`)}let r=e.getElementById("headlessui-portal-root");if(r)return r;let n=e.createElement("div");return n.setAttribute("id","headlessui-portal-root"),e.body.appendChild(n)}const tp=new WeakMap;function II(t){var e;return(e=tp.get(t))!=null?e:0}function W3(t,e){let r=e(II(t));return r<=0?tp.delete(t):tp.set(t,r),r}let LI=Ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:r}){let n=Re(null),a=ie(()=>Ko(n)),s=AI(),i=Gt(hv,null),o=Re(s===!0||i==null?RI(n.value):i.resolveTarget());o.value&&W3(o.value,h=>h+1);let l=Re(!1);hr(()=>{l.value=!0}),Yn(()=>{s||i!=null&&(o.value=i.resolveTarget())});let u=Gt(rp,null),c=!1,d=Nn();return St(n,()=>{if(c||!u)return;let h=Ct(n);h&&(qn(u.register(h),d),c=!0)}),qn(()=>{var h,f;let m=(h=a.value)==null?void 0:h.getElementById("headlessui-portal-root");!m||o.value!==m||W3(o.value,p=>p-1)||o.value.children.length>0||(f=o.value.parentElement)==null||f.removeChild(o.value)}),()=>{if(!l.value||o.value===null)return null;let h={ref:n,"data-headlessui-portal":""};return Tr(N7,{to:o.value},Kn({ourProps:h,theirProps:t,slot:{},attrs:r,slots:e,name:"Portal"}))}}}),rp=Symbol("PortalParentContext");function PI(){let t=Gt(rp,null),e=Re([]);function r(s){return e.value.push(s),t&&t.register(s),()=>n(s)}function n(s){let i=e.value.indexOf(s);i!==-1&&e.value.splice(i,1),t&&t.unregister(s)}let a={register:r,unregister:n,portals:e};return[e,Ve({name:"PortalWrapper",setup(s,{slots:i}){return jn(rp,a),()=>{var o;return(o=i.default)==null?void 0:o.call(i)}}})]}let hv=Symbol("PortalGroupContext"),DI=Ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:e,slots:r}){let n=Oa({resolveTarget(){return t.target}});return jn(hv,n),()=>{let{target:a,...s}=t;return Kn({theirProps:s,ourProps:{},slot:{},attrs:e,slots:r,name:"PortalGroup"})}}});var $I=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))($I||{});let np=Symbol("DialogContext");function M2(t){let e=Gt(np,null);if(e===null){let r=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,M2),r}return e}let Tc="DC8F892D-2EBD-447C-A4C8-A03058436FF4",BI=Ve({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Tc},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:t=>!0},setup(t,{emit:e,attrs:r,slots:n,expose:a}){var s,i;let o=(s=t.id)!=null?s:`headlessui-dialog-${Yo()}`,l=Re(!1);hr(()=>{l.value=!0});let u=!1,c=ie(()=>t.role==="dialog"||t.role==="alertdialog"?t.role:(u||(u=!0,console.warn(`Invalid role [${c}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),d=Re(0),h=nv(),f=ie(()=>t.open===Tc&&h!==null?(h.value&js.Open)===js.Open:t.open),m=Re(null),p=ie(()=>Ko(m));if(a({el:m,$el:m}),!(t.open!==Tc||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof f.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${f.value===Tc?void 0:t.open}`);let b=ie(()=>l.value&&f.value?0:1),y=ie(()=>b.value===0),x=ie(()=>d.value>1),k=Gt(np,null)!==null,[N,L]=PI(),{resolveContainers:W,mainTreeNodeRef:z,MainTreeNode:ne}=SI({portals:N,defaultContainers:[ie(()=>{var ze;return(ze=De.panelRef.value)!=null?ze:m.value})]}),K=ie(()=>x.value?"parent":"leaf"),ge=ie(()=>h!==null?(h.value&js.Closing)===js.Closing:!1),le=ie(()=>k||ge.value?!1:y.value),ee=ie(()=>{var ze,et,At;return(At=Array.from((et=(ze=p.value)==null?void 0:ze.querySelectorAll("body > *"))!=null?et:[]).find(Qt=>Qt.id==="headlessui-portal-root"?!1:Qt.contains(Ct(z))&&Qt instanceof HTMLElement))!=null?At:null});V3(ee,le);let Ne=ie(()=>x.value?!0:y.value),Be=ie(()=>{var ze,et,At;return(At=Array.from((et=(ze=p.value)==null?void 0:ze.querySelectorAll("[data-headlessui-portal]"))!=null?et:[]).find(Qt=>Qt.contains(Ct(z))&&Qt instanceof HTMLElement))!=null?At:null});V3(Be,Ne),OI({type:"Dialog",enabled:ie(()=>b.value===0),element:m,onUpdate:(ze,et)=>{if(et==="Dialog")return vn(ze,{[ep.Add]:()=>d.value+=1,[ep.Remove]:()=>d.value-=1})}});let Qe=NI({name:"DialogDescription",slot:ie(()=>({open:f.value}))}),be=Re(null),De={titleId:be,panelRef:Re(null),dialogState:b,setTitleId(ze){be.value!==ze&&(be.value=ze)},close(){e("close",!1)}};jn(np,De);let Ae=ie(()=>!(!y.value||x.value));Xb(W,(ze,et)=>{ze.preventDefault(),De.close(),bn(()=>et?.focus())},Ae);let Je=ie(()=>!(x.value||b.value!==0));ov((i=p.value)==null?void 0:i.defaultView,"keydown",ze=>{Je.value&&(ze.defaultPrevented||ze.key===Rr.Escape&&(ze.preventDefault(),ze.stopPropagation(),De.close()))});let Mt=ie(()=>!(ge.value||b.value!==0||k));return kI(p,Mt,ze=>{var et;return{containers:[...(et=ze.containers)!=null?et:[],W]}}),Yn(ze=>{if(b.value!==0)return;let et=Ct(m);if(!et)return;let At=new ResizeObserver(Qt=>{for(let br of Qt){let Nt=br.target.getBoundingClientRect();Nt.x===0&&Nt.y===0&&Nt.width===0&&Nt.height===0&&De.close()}});At.observe(et),ze(()=>At.disconnect())}),()=>{let{open:ze,initialFocus:et,...At}=t,Qt={...r,ref:m,id:o,role:c.value,"aria-modal":b.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":Qe.value},br={open:b.value===0};return Tr(Z3,{force:!0},()=>[Tr(LI,()=>Tr(DI,{target:m.value},()=>Tr(Z3,{force:!1},()=>Tr(y0,{initialFocus:et,containers:W,features:y.value?vn(K.value,{parent:y0.features.RestoreFocus,leaf:y0.features.All&~y0.features.FocusLock}):y0.features.None},()=>Tr(L,{},()=>Kn({ourProps:Qt,theirProps:{...At,...r},slot:br,attrs:r,slots:n,visible:b.value===0,features:Cu.RenderStrategy|Cu.Static,name:"Dialog"})))))),Tr(ne)])}}}),HI=Ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(t,{attrs:e,slots:r,expose:n}){var a;let s=(a=t.id)!=null?a:`headlessui-dialog-panel-${Yo()}`,i=M2("DialogPanel");n({el:i.panelRef,$el:i.panelRef});function o(l){l.stopPropagation()}return()=>{let{...l}=t,u={id:s,ref:i.panelRef,onClick:o};return Kn({ourProps:u,theirProps:l,slot:{open:i.dialogState.value===0},attrs:e,slots:r,name:"DialogPanel"})}}}),FI=Ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(t,{attrs:e,slots:r}){var n;let a=(n=t.id)!=null?n:`headlessui-dialog-title-${Yo()}`,s=M2("DialogTitle");return hr(()=>{s.setTitleId(a),qn(()=>s.setTitleId(null))}),()=>{let{...i}=t;return Kn({ourProps:{id:a},theirProps:i,slot:{open:s.dialogState.value===0},attrs:e,slots:r,name:"DialogTitle"})}}}),G3=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Y3(t){var e,r;let n=(e=t.innerText)!=null?e:"",a=t.cloneNode(!0);if(!(a instanceof HTMLElement))return n;let s=!1;for(let o of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))o.remove(),s=!0;let i=s?(r=a.innerText)!=null?r:"":n;return G3.test(i)&&(i=i.replace(G3,"")),i}function jI(t){let e=t.getAttribute("aria-label");if(typeof e=="string")return e.trim();let r=t.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(a=>{let s=document.getElementById(a);if(s){let i=s.getAttribute("aria-label");return typeof i=="string"?i.trim():Y3(s).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Y3(t).trim()}function zI(t){let e=Re(""),r=Re("");return()=>{let n=Ct(t);if(!n)return"";let a=n.innerText;if(e.value===a)return r.value;let s=jI(n).trim().toLowerCase();return e.value=a,r.value=s,s}}function UI(t,e){return t===e}var qI=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(qI||{}),VI=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(VI||{}),ZI=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(ZI||{});function WI(t){requestAnimationFrame(()=>requestAnimationFrame(t))}let pv=Symbol("ListboxContext");function Wu(t){let e=Gt(pv,null);if(e===null){let r=new Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Wu),r}return e}let GI=Ve({name:"Listbox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>UI},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:e,attrs:r,emit:n}){let a=Re(1),s=Re(null),i=Re(null),o=Re(null),l=Re([]),u=Re(""),c=Re(null),d=Re(1);function h(k=N=>N){let N=c.value!==null?l.value[c.value]:null,L=Yb(k(l.value.slice()),z=>Ct(z.dataRef.domRef)),W=N?L.indexOf(N):null;return W===-1&&(W=null),{options:L,activeOptionIndex:W}}let f=ie(()=>t.multiple?1:0),[m,p]=GR(ie(()=>t.modelValue),k=>n("update:modelValue",k),ie(()=>t.defaultValue)),b=ie(()=>m.value===void 0?vn(f.value,{1:[],0:void 0}):m.value),y={listboxState:a,value:b,mode:f,compare(k,N){if(typeof t.by=="string"){let L=t.by;return k?.[L]===N?.[L]}return t.by(k,N)},orientation:ie(()=>t.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:i,optionsRef:o,disabled:ie(()=>t.disabled),options:l,searchQuery:u,activeOptionIndex:c,activationTrigger:d,closeListbox(){t.disabled||a.value!==1&&(a.value=1,c.value=null)},openListbox(){t.disabled||a.value!==0&&(a.value=0)},goToOption(k,N,L){if(t.disabled||a.value===1)return;let W=h(),z=hI(k===pn.Specific?{focus:pn.Specific,id:N}:{focus:k},{resolveItems:()=>W.options,resolveActiveIndex:()=>W.activeOptionIndex,resolveId:ne=>ne.id,resolveDisabled:ne=>ne.dataRef.disabled});u.value="",c.value=z,d.value=L??1,l.value=W.options},search(k){if(t.disabled||a.value===1)return;let N=u.value!==""?0:1;u.value+=k.toLowerCase();let L=(c.value!==null?l.value.slice(c.value+N).concat(l.value.slice(0,c.value+N)):l.value).find(z=>z.dataRef.textValue.startsWith(u.value)&&!z.dataRef.disabled),W=L?l.value.indexOf(L):-1;W===-1||W===c.value||(c.value=W,d.value=1)},clearSearch(){t.disabled||a.value!==1&&u.value!==""&&(u.value="")},registerOption(k,N){let L=h(W=>[...W,{id:k,dataRef:N}]);l.value=L.options,c.value=L.activeOptionIndex},unregisterOption(k){let N=h(L=>{let W=L.findIndex(z=>z.id===k);return W!==-1&&L.splice(W,1),L});l.value=N.options,c.value=N.activeOptionIndex,d.value=1},theirOnChange(k){t.disabled||p(k)},select(k){t.disabled||p(vn(f.value,{0:()=>k,1:()=>{let N=vt(y.value.value).slice(),L=vt(k),W=N.findIndex(z=>y.compare(L,vt(z)));return W===-1?N.push(L):N.splice(W,1),N}}))}};Xb([i,o],(k,N)=>{var L;y.closeListbox(),O2(N,C2.Loose)||(k.preventDefault(),(L=Ct(i))==null||L.focus())},ie(()=>a.value===0)),jn(pv,y),cI(ie(()=>vn(a.value,{0:js.Open,1:js.Closed})));let x=ie(()=>{var k;return(k=Ct(i))==null?void 0:k.closest("form")});return hr(()=>{St([x],()=>{if(!x.value||t.defaultValue===void 0)return;function k(){y.theirOnChange(t.defaultValue)}return x.value.addEventListener("reset",k),()=>{var N;(N=x.value)==null||N.removeEventListener("reset",k)}},{immediate:!0})}),()=>{let{name:k,modelValue:N,disabled:L,form:W,...z}=t,ne={open:a.value===0,disabled:L,value:b.value};return Tr(Vt,[...k!=null&&b.value!=null?av({[k]:b.value}).map(([K,ge])=>Tr(Dd,lI({features:Ou.Hidden,key:K,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:W,disabled:L,name:K,value:ge}))):[],Kn({ourProps:{},theirProps:{...r,...tv(z,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:ne,slots:e,attrs:r,name:"Listbox"})])}}}),Qte=Ve({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(t,{attrs:e,slots:r}){var n;let a=(n=t.id)!=null?n:`headlessui-listbox-label-${Yo()}`,s=Wu("ListboxLabel");function i(){var o;(o=Ct(s.buttonRef))==null||o.focus({preventScroll:!0})}return()=>{let o={open:s.listboxState.value===0,disabled:s.disabled.value},{...l}=t,u={id:a,ref:s.labelRef,onClick:i};return Kn({ourProps:u,theirProps:l,slot:o,attrs:e,slots:r,name:"ListboxLabel"})}}}),YI=Ve({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(t,{attrs:e,slots:r,expose:n}){var a;let s=(a=t.id)!=null?a:`headlessui-listbox-button-${Yo()}`,i=Wu("ListboxButton");n({el:i.buttonRef,$el:i.buttonRef});function o(d){switch(d.key){case Rr.Space:case Rr.Enter:case Rr.ArrowDown:d.preventDefault(),i.openListbox(),bn(()=>{var h;(h=Ct(i.optionsRef))==null||h.focus({preventScroll:!0}),i.value.value||i.goToOption(pn.First)});break;case Rr.ArrowUp:d.preventDefault(),i.openListbox(),bn(()=>{var h;(h=Ct(i.optionsRef))==null||h.focus({preventScroll:!0}),i.value.value||i.goToOption(pn.Last)});break}}function l(d){switch(d.key){case Rr.Space:d.preventDefault();break}}function u(d){i.disabled.value||(i.listboxState.value===0?(i.closeListbox(),bn(()=>{var h;return(h=Ct(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(d.preventDefault(),i.openListbox(),WI(()=>{var h;return(h=Ct(i.optionsRef))==null?void 0:h.focus({preventScroll:!0})})))}let c=sI(ie(()=>({as:t.as,type:e.type})),i.buttonRef);return()=>{var d,h;let f={open:i.listboxState.value===0,disabled:i.disabled.value,value:i.value.value},{...m}=t,p={ref:i.buttonRef,id:s,type:c.value,"aria-haspopup":"listbox","aria-controls":(d=Ct(i.optionsRef))==null?void 0:d.id,"aria-expanded":i.listboxState.value===0,"aria-labelledby":i.labelRef.value?[(h=Ct(i.labelRef))==null?void 0:h.id,s].join(" "):void 0,disabled:i.disabled.value===!0?!0:void 0,onKeydown:o,onKeyup:l,onClick:u};return Kn({ourProps:p,theirProps:m,slot:f,attrs:e,slots:r,name:"ListboxButton"})}}}),KI=Ve({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(t,{attrs:e,slots:r,expose:n}){var a;let s=(a=t.id)!=null?a:`headlessui-listbox-options-${Yo()}`,i=Wu("ListboxOptions"),o=Re(null);n({el:i.optionsRef,$el:i.optionsRef});function l(d){switch(o.value&&clearTimeout(o.value),d.key){case Rr.Space:if(i.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),i.search(d.key);case Rr.Enter:if(d.preventDefault(),d.stopPropagation(),i.activeOptionIndex.value!==null){let h=i.options.value[i.activeOptionIndex.value];i.select(h.dataRef.value)}i.mode.value===0&&(i.closeListbox(),bn(()=>{var h;return(h=Ct(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})}));break;case vn(i.orientation.value,{vertical:Rr.ArrowDown,horizontal:Rr.ArrowRight}):return d.preventDefault(),d.stopPropagation(),i.goToOption(pn.Next);case vn(i.orientation.value,{vertical:Rr.ArrowUp,horizontal:Rr.ArrowLeft}):return d.preventDefault(),d.stopPropagation(),i.goToOption(pn.Previous);case Rr.Home:case Rr.PageUp:return d.preventDefault(),d.stopPropagation(),i.goToOption(pn.First);case Rr.End:case Rr.PageDown:return d.preventDefault(),d.stopPropagation(),i.goToOption(pn.Last);case Rr.Escape:d.preventDefault(),d.stopPropagation(),i.closeListbox(),bn(()=>{var h;return(h=Ct(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case Rr.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(i.search(d.key),o.value=setTimeout(()=>i.clearSearch(),350));break}}let u=nv(),c=ie(()=>u!==null?(u.value&js.Open)===js.Open:i.listboxState.value===0);return()=>{var d,h;let f={open:i.listboxState.value===0},{...m}=t,p={"aria-activedescendant":i.activeOptionIndex.value===null||(d=i.options.value[i.activeOptionIndex.value])==null?void 0:d.id,"aria-multiselectable":i.mode.value===1?!0:void 0,"aria-labelledby":(h=Ct(i.buttonRef))==null?void 0:h.id,"aria-orientation":i.orientation.value,id:s,onKeydown:l,role:"listbox",tabIndex:0,ref:i.optionsRef};return Kn({ourProps:p,theirProps:m,slot:f,attrs:e,slots:r,features:Cu.RenderStrategy|Cu.Static,visible:c.value,name:"ListboxOptions"})}}}),QI=Ve({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(t,{slots:e,attrs:r,expose:n}){var a;let s=(a=t.id)!=null?a:`headlessui-listbox-option-${Yo()}`,i=Wu("ListboxOption"),o=Re(null);n({el:o,$el:o});let l=ie(()=>i.activeOptionIndex.value!==null?i.options.value[i.activeOptionIndex.value].id===s:!1),u=ie(()=>vn(i.mode.value,{0:()=>i.compare(vt(i.value.value),vt(t.value)),1:()=>vt(i.value.value).some(k=>i.compare(vt(k),vt(t.value)))})),c=ie(()=>vn(i.mode.value,{1:()=>{var k;let N=vt(i.value.value);return((k=i.options.value.find(L=>N.some(W=>i.compare(vt(W),vt(L.dataRef.value)))))==null?void 0:k.id)===s},0:()=>u.value})),d=zI(o),h=ie(()=>({disabled:t.disabled,value:t.value,get textValue(){return d()},domRef:o}));hr(()=>i.registerOption(s,h)),qn(()=>i.unregisterOption(s)),hr(()=>{St([i.listboxState,u],()=>{i.listboxState.value===0&&u.value&&vn(i.mode.value,{1:()=>{c.value&&i.goToOption(pn.Specific,s)},0:()=>{i.goToOption(pn.Specific,s)}})},{immediate:!0})}),Yn(()=>{i.listboxState.value===0&&l.value&&i.activationTrigger.value!==0&&bn(()=>{var k,N;return(N=(k=Ct(o))==null?void 0:k.scrollIntoView)==null?void 0:N.call(k,{block:"nearest"})})});function f(k){if(t.disabled)return k.preventDefault();i.select(t.value),i.mode.value===0&&(i.closeListbox(),bn(()=>{var N;return(N=Ct(i.buttonRef))==null?void 0:N.focus({preventScroll:!0})}))}function m(){if(t.disabled)return i.goToOption(pn.Nothing);i.goToOption(pn.Specific,s)}let p=iI();function b(k){p.update(k)}function y(k){p.wasMoved(k)&&(t.disabled||l.value||i.goToOption(pn.Specific,s,0))}function x(k){p.wasMoved(k)&&(t.disabled||l.value&&i.goToOption(pn.Nothing))}return()=>{let{disabled:k}=t,N={active:l.value,selected:u.value,disabled:k},{value:L,disabled:W,...z}=t,ne={id:s,ref:o,role:"option",tabIndex:k===!0?void 0:-1,"aria-disabled":k===!0?!0:void 0,"aria-selected":u.value,disabled:void 0,onClick:f,onFocus:m,onPointerenter:b,onMouseenter:b,onPointermove:y,onMousemove:y,onPointerleave:x,onMouseleave:x};return Kn({ourProps:ne,theirProps:z,slot:N,attrs:r,slots:e,name:"ListboxOption"})}}});const XI={class:"option-label"},JI=Ve({__name:"HeaderListbox",props:{options:{},modelValue:{},static:{type:Boolean},buttonName:{},buttonClass:{}},emits:["update:modelValue"],setup(t){const e=Re(null),r=Re(null),n=ie(()=>r.value?.children?.[0]||r.value),{floatingStyles:a}=WR(n,e,{placement:"bottom-start",whileElementsMounted:jR,middleware:[zR(5),qR(),UR()]});return(s,i)=>(A(),ot(U(GI),{as:"div",modelValue:s.modelValue,"onUpdate:modelValue":i[0]||(i[0]=o=>s.$emit("update:modelValue",o))},{default:tr(({open:o})=>[C("div",{ref_key:"buttonWrapper",ref:r,class:Zt({"button-wrapper":!!s.$slots.default})},[bt(U(YI),{as:"button",class:Zt(["header-item-link header-group-link",s.buttonClass])},{default:tr(()=>[Ws(kr(s.buttonName)+" ",1),bt(U(KM),{style:Mn({transform:o?"rotate(180deg)":"rotate(0deg)"})},null,8,["style"])]),_:2},1032,["class"])],2),(A(),ot(N7,{disabled:s.static,to:"#app"},[o?(A(),I("div",{key:0,ref_key:"dropdownRef",ref:e,class:"floating",style:Mn(U(a))},[bt(U(KI),{class:"dropdown",static:""},{default:tr(()=>[(A(!0),I(Vt,null,e0(s.options,l=>(A(),ot(U(QI),{key:l.id,as:"template",disabled:l.disabled,value:l},{default:tr(({active:u,selected:c})=>[C("li",{class:Zt(["option",{active:u,selected:c}])},[C("span",XI,kr(l.label),1)],2)]),_:2},1032,["disabled","value"]))),128))]),_:1})],4)):Ke("",!0)],8,["disabled"]))]),_:1},8,["modelValue"]))}}),Qo=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},mv=Qo(JI,[["__scopeId","data-v-d0411a45"]]),eL={key:0,class:"header-group"},tL={class:"header-group-label"},rL={class:"header-group-items"},nL={key:0,class:"header-group-item"},aL=["href","onClick"],sL={key:1,class:"header-group-item"},iL=["href"],oL=Ve({__name:"HeaderItemGroup",props:{group:{},isEditable:{type:Boolean},isMobile:{type:Boolean},resolveInternalLinks:{type:Function},linkIsActive:{type:Function}},emits:["navigate"],setup(t,{emit:e}){const r=t,n=e,a=ie(()=>r.group.children.filter(o=>o.show||r.isEditable).filter(o=>o.type==="guide"||o.type==="reference"||o.type==="link").map(o=>({id:o.uid,label:o.title||ra(o.type)}))),s=ie(()=>{const o=r.group.children.find(l=>r.linkIsActive(l));return o?{id:o.uid,label:o.title||ra(o.type)}:{id:"null",label:"null"}}),i=({id:o})=>{const l=r.group.children.find(u=>u.uid===o);(l?.type==="reference"||l?.type==="guide")&&n("navigate",l.uid,l.type),l?.type==="link"&&window.open(l.link,"_blank","noopener noreferrer")};return(o,l)=>o.isMobile?(A(),I("div",eL,[C("div",tL,kr(o.group.title||ra(o.group.type)),1),C("ul",rL,[(A(!0),I(Vt,null,e0(o.group.children,u=>(A(),I(Vt,{key:u.uid},[(u.type==="guide"||u.type==="reference")&&(u.show||o.isEditable)?(A(),I("li",nL,[C("a",{class:Zt(["header-item-link",{"header-item-active":o.linkIsActive(u),"header-item-ghost":!u.show}]),href:o.resolveInternalLinks(u),onClick:ls(c=>o.$emit("navigate",u.uid,u.type),["prevent"])},kr(u.title||ra(u.type)),11,aL)])):u.type==="link"&&u.show?(A(),I("li",sL,[C("a",{class:"header-item-link",href:u.link||"#",rel:"noopener noreferrer",target:"_blank"},kr(u.title||ra(u.type)),9,iL)])):Ke("",!0)],64))),128))])])):(A(),ot(mv,{key:1,buttonClass:[o.linkIsActive(o.group)&&"header-item-active"],buttonName:o.group.title||ra(o.group.type),modelValue:s.value,options:a.value,static:"","onUpdate:modelValue":i},null,8,["buttonClass","buttonName","modelValue","options"]))}}),lL=["href"],uL=Ve({__name:"HeaderItemLink",props:{link:{}},setup(t){return(e,r)=>e.link.show?(A(),I("a",{key:0,class:Zt(["header-item-link",{"header-item-link__cta":e.link.isButton}]),href:e.link.link||"#",rel:"noopener noreferrer",target:"_blank"},kr(e.link.title),11,lL)):Ke("",!0)}}),cL=["alt","src"],dL={key:1,class:"header-name"},fL=Ve({__name:"HeaderItemMeta",props:{logo:{},projectName:{},primaryVersionUid:{}},emits:["navigate"],setup(t,{emit:e}){const r=e;return(n,a)=>n.logo?(A(),I("button",{key:0,class:"header-item-logo",type:"button",onClick:a[0]||(a[0]=s=>r("navigate",n.primaryVersionUid,"version"))},[C("img",{alt:n.projectName,class:"header-item-logo-image",src:n.logo},null,8,cL)])):n.projectName?(A(),I("span",dL,kr(n.projectName),1)):Ke("",!0)}}),hL={},pL={class:"header-item-spacer"};function mL(t,e){return A(),I("span",pL)}const gL=Qo(hL,[["render",mL]]);function gv(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;etypeof t=="boolean"?`${t}`:t===0?"0":t,bL=t=>{const e=function(){for(var a=arguments.length,s=new Array(a),i=0;i{const l=Object.fromEntries(Object.entries(o||{}).filter(u=>{let[c]=u;return!["class","className"].includes(c)}));return e(s.map(u=>u(l)),o?.class,o?.className)}},cva:a=>s=>{var i;if(a?.variants==null)return e(a?.base,s?.class,s?.className);const{variants:o,defaultVariants:l}=a,u=Object.keys(o).map(h=>{const f=s?.[h],m=l?.[h],p=K3(f)||K3(m);return o[h][p]}),c={...l,...s&&Object.entries(s).reduce((h,f)=>{let[m,p]=f;return typeof p>"u"?h:{...h,[m]:p}},{})},d=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((h,f)=>{let{class:m,className:p,...b}=f;return Object.entries(b).every(y=>{let[x,k]=y;const N=c[x];return Array.isArray(k)?k.includes(N):N===k})?[...h,m,p]:h},[]);return e(a?.base,u,d,s?.class,s?.className)},cx:e}},N2="-",vL=t=>{const e=wL(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const o=i.split(N2);return o[0]===""&&o.length!==1&&o.shift(),bv(o,e)||yL(i)},getConflictingClassGroupIds:(i,o)=>{const l=r[i]||[];return o&&n[i]?[...l,...n[i]]:l}}},bv=(t,e)=>{if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),a=n?bv(t.slice(1),n):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(N2);return e.validators.find(({validator:i})=>i(s))?.classGroupId},Q3=/^\[(.+)\]$/,yL=t=>{if(Q3.test(t)){const e=Q3.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wL=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return EL(Object.entries(t.classGroups),r).forEach(([s,i])=>{ap(i,n,s,e)}),n},ap=(t,e,r,n)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:X3(e,a);s.classGroupId=r;return}if(typeof a=="function"){if(_L(a)){ap(a(n),e,r,n);return}e.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,i])=>{ap(i,X3(e,s),r,n)})})},X3=(t,e)=>{let r=t;return e.split(N2).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},_L=t=>t.isThemeGetter,EL=(t,e)=>e?t.map(([r,n])=>{const a=n.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,o])=>[e+i,o])):s);return[r,a]}):t,xL=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const a=(s,i)=>{r.set(s,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return a(s,i),i},set(s,i){r.has(s)?r.set(s,i):a(s,i)}}},vv="!",TL=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,a=e[0],s=e.length,i=o=>{const l=[];let u=0,c=0,d;for(let b=0;bc?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:p}};return r?o=>r({className:o,parseClassName:i}):i},kL=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},SL=t=>({cache:xL(t.cacheSize),parseClassName:TL(t),...vL(t)}),AL=/\s+/,CL=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=e,s=[],i=t.trim().split(AL);let o="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=r(u);let m=!!f,p=n(m?h.substring(0,f):h);if(!p){if(!m){o=u+(o.length>0?" "+o:o);continue}if(p=n(h),!p){o=u+(o.length>0?" "+o:o);continue}m=!1}const b=kL(c).join(":"),y=d?b+vv:b,x=y+p;if(s.includes(x))continue;s.push(x);const k=a(p,m);for(let N=0;N0?" "+o:o)}return o};function OL(){let t=0,e,r,n="";for(;t{if(typeof t=="string")return t;let e,r="";for(let n=0;nd(c),t());return r=SL(u),n=r.cache.get,a=r.cache.set,s=o,o(l)}function o(l){const u=n(l);if(u)return u;const c=CL(l,r);return a(l,c),c}return function(){return s(OL.apply(null,arguments))}}const nr=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},wv=/^\[(?:([a-z-]+):)?(.+)\]$/i,ML=/^\d+\/\d+$/,NL=new Set(["px","full","screen"]),RL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,IL=/\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$/,LL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,PL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Os=t=>Rl(t)||NL.has(t)||ML.test(t),ci=t=>a0(t,"length",qL),Rl=t=>!!t&&!Number.isNaN(Number(t)),Rf=t=>a0(t,"number",Rl),_0=t=>!!t&&Number.isInteger(Number(t)),$L=t=>t.endsWith("%")&&Rl(t.slice(0,-1)),_t=t=>wv.test(t),di=t=>RL.test(t),BL=new Set(["length","size","percentage"]),HL=t=>a0(t,BL,_v),FL=t=>a0(t,"position",_v),jL=new Set(["image","url"]),zL=t=>a0(t,jL,ZL),UL=t=>a0(t,"",VL),E0=()=>!0,a0=(t,e,r)=>{const n=wv.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},qL=t=>IL.test(t)&&!LL.test(t),_v=()=>!1,VL=t=>PL.test(t),ZL=t=>DL.test(t),eg=()=>{const t=nr("colors"),e=nr("spacing"),r=nr("blur"),n=nr("brightness"),a=nr("borderColor"),s=nr("borderRadius"),i=nr("borderSpacing"),o=nr("borderWidth"),l=nr("contrast"),u=nr("grayscale"),c=nr("hueRotate"),d=nr("invert"),h=nr("gap"),f=nr("gradientColorStops"),m=nr("gradientColorStopPositions"),p=nr("inset"),b=nr("margin"),y=nr("opacity"),x=nr("padding"),k=nr("saturate"),N=nr("scale"),L=nr("sepia"),W=nr("skew"),z=nr("space"),ne=nr("translate"),K=()=>["auto","contain","none"],ge=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",_t,e],ee=()=>[_t,e],Ne=()=>["",Os,ci],Be=()=>["auto",Rl,_t],Qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],be=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>["start","end","center","between","around","evenly","stretch"],Je=()=>["","0",_t],Mt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ze=()=>[Rl,_t];return{cacheSize:500,separator:":",theme:{colors:[E0],spacing:[Os,ci],blur:["none","",di,_t],brightness:ze(),borderColor:[t],borderRadius:["none","","full",di,_t],borderSpacing:ee(),borderWidth:Ne(),contrast:ze(),grayscale:Je(),hueRotate:ze(),invert:Je(),gap:ee(),gradientColorStops:[t],gradientColorStopPositions:[$L,ci],inset:le(),margin:le(),opacity:ze(),padding:ee(),saturate:ze(),scale:ze(),sepia:Je(),skew:ze(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",_t]}],container:["container"],columns:[{columns:[di]}],"break-after":[{"break-after":Mt()}],"break-before":[{"break-before":Mt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Qe(),_t]}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_0,_t]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_t]}],grow:[{grow:Je()}],shrink:[{shrink:Je()}],order:[{order:["first","last","none",_0,_t]}],"grid-cols":[{"grid-cols":[E0]}],"col-start-end":[{col:["auto",{span:["full",_0,_t]},_t]}],"col-start":[{"col-start":Be()}],"col-end":[{"col-end":Be()}],"grid-rows":[{"grid-rows":[E0]}],"row-start-end":[{row:["auto",{span:[_0,_t]},_t]}],"row-start":[{"row-start":Be()}],"row-end":[{"row-end":Be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_t]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_t,e]}],"min-w":[{"min-w":[_t,e,"min","max","fit"]}],"max-w":[{"max-w":[_t,e,"none","full","min","max","fit","prose",{screen:[di]},di]}],h:[{h:[_t,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_t,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_t,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_t,e,"auto","min","max","fit"]}],"font-size":[{text:["base",di,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rf]}],"font-family":[{font:[E0]}],"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:["tighter","tight","normal","wide","wider","widest",_t]}],"line-clamp":[{"line-clamp":["none",Rl,Rf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Os,_t]}],"list-image":[{"list-image":["none",_t]}],"list-style-type":[{list:["none","disc","decimal",_t]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Os,ci]}],"underline-offset":[{"underline-offset":["auto",Os,_t]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_t]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Qe(),FL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",HL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zL]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...be(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:be()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...be()]}],"outline-offset":[{"outline-offset":[Os,_t]}],"outline-w":[{outline:[Os,ci]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Os,ci]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",di,UL]}],"shadow-color":[{shadow:[E0]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",di,_t]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[k]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_t]}],duration:[{duration:ze()}],ease:[{ease:["linear","in","out","in-out",_t]}],delay:[{delay:ze()}],animate:[{animate:["none","spin","ping","pulse","bounce",_t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[_0,_t]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[W]}],"skew-y":[{"skew-y":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_t]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_t]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"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",_t]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Os,ci,Rf]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},WL=(t,{cacheSize:e,prefix:r,separator:n,experimentalParseClassName:a,extend:s={},override:i={}})=>{I0(t,"cacheSize",e),I0(t,"prefix",r),I0(t,"separator",n),I0(t,"experimentalParseClassName",a);for(const o in i)GL(t[o],i[o]);for(const o in s)YL(t[o],s[o]);return t},I0=(t,e,r)=>{r!==void 0&&(t[e]=r)},GL=(t,e)=>{if(e)for(const r in e)I0(t,r,e[r])},YL=(t,e)=>{if(e)for(const r in e){const n=e[r];n!==void 0&&(t[r]=(t[r]||[]).concat(n))}},KL=(t,...e)=>typeof t=="function"?J3(eg,t,...e):J3(()=>WL(eg(),t),...e),QL=KL({extend:{classGroups:{"font-size":["text-3xs","text-xxs"],"font-weight":["font-sidebar","font-sidebar-active"]}}}),{cva:Kl,cx:$d}=bL({hooks:{onComplete:t=>QL(t)}});function La(){const t=hk(),e=ie(()=>{const{class:a,...s}=t;return{class:a||"",rest:s}});function r(...a){return{class:$d(...a,e.value.class),...e.value.rest}}function n(...a){return{class:$d(...a,e.value.class)}}return{cx:r,classCx:n,otherAttrs:ie(()=>e.value.rest)}}const Ev={solid:["scalar-button-solid","bg-b-btn text-c-btn shadow-sm focus-visible:border-c-btn active:bg-b-btn active:shadow-none hover:bg-h-btn outline-offset-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-b-1 text-c-1 hover:bg-b-2 shadow"],ghost:["scalar-button-ghost","bg-transparent text-c-3 active:text-c-1 hover:text-c-1"],danger:["scalar-button-danger","bg-c-danger text-white active:brightness-90 hover:brightness-90"]},XL=Kl({base:"scalar-button flex cursor-pointer items-center justify-center rounded font-medium -outline-offset-1",variants:{disabled:{true:"bg-b-2 text-color-3 shadow-none"},fullWidth:{true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:Ev},compoundVariants:[{disabled:!0,variant:["solid","outlined","ghost","danger"],class:"bg-b-2 text-c-3 shadow-none hover:bg-b-[_] cursor-not-allowed active:bg-b-[_] hover:text-c-[_] active:text-c-[_]"}]}),JL={key:0,class:"circular-loader"};function eP(){return Oa({isValid:!1,isInvalid:!1,isLoading:!1,startLoading(){this.isLoading=!0},stopLoading(){this.isLoading=!1},validate(t=800,e){this.isInvalid=!1,this.isValid=!0;const r=e?t-300:t;return new Promise(n=>setTimeout(e?()=>this.clear().then(()=>n(!0)):()=>n(!0),r))},invalidate(t=1100,e){this.isValid=!1,this.isInvalid=!0;const r=e?t-300:t;return new Promise(n=>setTimeout(e?()=>this.clear().then(()=>n(!0)):()=>n(!0),r))},clear(t=300){return this.isValid=!1,this.isInvalid=!1,this.isLoading=!1,new Promise(e=>{setTimeout(()=>{e(!0)},t)})}})}const tP=Ve({inheritAttrs:!1,__name:"ScalarLoading",props:{loadingState:{},size:{}},setup(t){const{cx:e}=La(),r=Kl({variants:{size:{xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6","2xl":"size-8","3xl":"size-10",full:"size-full"}},defaultVariants:{size:"full"}});return(n,a)=>n.loadingState?(A(),I("div",Xd(pr({key:0},U(e)("loader-wrapper",U(r)({size:n.size})))),[(A(),I("svg",{class:Zt(["svg-loader",{"icon-is-valid":n.loadingState.isValid,"icon-is-invalid":n.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[a[0]||(a[0]=qo('',5)),n.loadingState.isLoading?(A(),I("g",JL,[C("circle",{class:Zt(["loader-path",{"loader-path-off":n.loadingState.isValid||n.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"3"},null,2)])):Ke("",!0)],2))],16)):Ke("",!0)}}),T1=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},R2=T1(tP,[["__scopeId","data-v-f525638b"]]),rP=["aria-disabled","type"],nP={key:3,class:"centered"},tg=Ve({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(t){const{cx:e}=La();return(r,n)=>(A(),I("button",pr({"aria-disabled":r.disabled||void 0,type:r.type},U(e)(U(XL)({fullWidth:r.fullWidth,disabled:r.disabled,size:r.size,variant:r.variant}),{relative:r.loading?.isLoading})),[r.$slots.icon?(A(),I("div",{key:0,class:Zt(["mr-2 h-4 w-4",{invisible:r.loading?.isLoading}])},[Rt(r.$slots,"icon")],2)):Ke("",!0),r.loading?(A(),I("span",{key:1,class:Zt({invisible:r.loading?.isLoading})},[Rt(r.$slots,"default")],2)):Rt(r.$slots,"default",{key:2}),r.loading?.isLoading?(A(),I("div",nP,[bt(U(R2),{loadingState:r.loading,size:"xl"},null,8,["loadingState"])])):Ke("",!0)],16,rP))}});function Xte(){}var aP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sP(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function iP(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}function rg(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function oP(t){return t.join(" ").trim()}const lP=/[ \t\n\f\r]/g;function I2(t){return typeof t=="object"?t.type==="text"?ng(t.value):!1:ng(t)}function ng(t){return t.replace(lP,"")===""}class Gu{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}Gu.prototype.normal={};Gu.prototype.property={};Gu.prototype.space=void 0;function xv(t,e){const r={},n={};for(const a of t)Object.assign(r,a.property),Object.assign(n,a.normal);return new Gu(r,n,e)}function Mu(t){return t.toLowerCase()}class Rn{constructor(e,r){this.attribute=r,this.property=e}}Rn.prototype.attribute="";Rn.prototype.booleanish=!1;Rn.prototype.boolean=!1;Rn.prototype.commaOrSpaceSeparated=!1;Rn.prototype.commaSeparated=!1;Rn.prototype.defined=!1;Rn.prototype.mustUseProperty=!1;Rn.prototype.number=!1;Rn.prototype.overloadedBoolean=!1;Rn.prototype.property="";Rn.prototype.spaceSeparated=!1;Rn.prototype.space=void 0;let uP=0;const yt=Xo(),xr=Xo(),Tv=Xo(),ye=Xo(),Jt=Xo(),Il=Xo(),Pn=Xo();function Xo(){return 2**++uP}const sp=Object.freeze(Object.defineProperty({__proto__:null,boolean:yt,booleanish:xr,commaOrSpaceSeparated:Pn,commaSeparated:Il,number:ye,overloadedBoolean:Tv,spaceSeparated:Jt},Symbol.toStringTag,{value:"Module"})),If=Object.keys(sp);class L2 extends Rn{constructor(e,r,n,a){let s=-1;if(super(e,r),ag(this,"space",a),typeof n=="number")for(;++s4&&r.slice(0,4)==="data"&&hP.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(sg,mP);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!sg.test(s)){let i=s.replace(fP,pP);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}a=L2}return new a(n,e)}function pP(t){return"-"+t.toLowerCase()}function mP(t){return t.charAt(1).toUpperCase()}const k1=xv([kv,cP,Cv,Ov,Mv],"html"),Yu=xv([kv,dP,Cv,Ov,Mv],"svg");function ig(t){const e=[],r=String(t||"");let n=r.indexOf(","),a=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);const i=r.slice(a,n).trim();(i||!s)&&e.push(i),a=n+1,n=r.indexOf(",",a)}return e}function gP(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const og=/[#.]/g;function bP(t,e){const r=t||"",n={};let a=0,s,i;for(;a-1&&s<=e.length){let i=0;for(;;){let o=r[i];if(o===void 0){const l=ug(e,r[i-1]);o=l===-1?e.length+1:l+1,r[i]=o}if(o>s)return{line:i+1,column:s-(i>0?r[i-1]:0)+1,offset:s};i++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length1?r[s.line-2]:0)+s.column-1;if(i=55296&&t<=57343}function LP(t){return t>=56320&&t<=57343}function PP(t,e){return(t-55296)*1024+9216+e}function Pv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Dv(t){return t>=64976&&t<=65007||IP.has(t)}var te;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(te||(te={}));const DP=65536;class $P{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,r){const{line:n,col:a,offset:s}=this,i=a+r,o=s+r;return{code:e,startLine:n,endLine:n,startCol:i,endCol:i,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(LP(r))return this.pos++,this._addGap(),PP(e,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(te.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,r){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,r){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;const n=this.html.charCodeAt(r);return n===M.CARRIAGE_RETURN?M.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;let e=this.html.charCodeAt(this.pos);return e===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):e===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Lv(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===M.LINE_FEED||e===M.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Pv(e)?this._err(te.controlCharacterInInputStream):Dv(e)&&this._err(te.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;r--)if(t.attrs[r].name===e)return t.attrs[r].value;return null}const BP=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),HP=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function FP(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=HP.get(t))!==null&&e!==void 0?e:t}var Ur;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ur||(Ur={}));const jP=32;var zi;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(zi||(zi={}));function op(t){return t>=Ur.ZERO&&t<=Ur.NINE}function zP(t){return t>=Ur.UPPER_A&&t<=Ur.UPPER_F||t>=Ur.LOWER_A&&t<=Ur.LOWER_F}function UP(t){return t>=Ur.UPPER_A&&t<=Ur.UPPER_Z||t>=Ur.LOWER_A&&t<=Ur.LOWER_Z||op(t)}function qP(t){return t===Ur.EQUALS||UP(t)}var zr;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(zr||(zr={}));var Hs;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Hs||(Hs={}));class VP{constructor(e,r,n){this.decodeTree=e,this.emitCodePoint=r,this.errors=n,this.state=zr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Hs.Strict}startEntity(e){this.decodeMode=e,this.state=zr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,r){switch(this.state){case zr.EntityStart:return e.charCodeAt(r)===Ur.NUM?(this.state=zr.NumericStart,this.consumed+=1,this.stateNumericStart(e,r+1)):(this.state=zr.NamedEntity,this.stateNamedEntity(e,r));case zr.NumericStart:return this.stateNumericStart(e,r);case zr.NumericDecimal:return this.stateNumericDecimal(e,r);case zr.NumericHex:return this.stateNumericHex(e,r);case zr.NamedEntity:return this.stateNamedEntity(e,r)}}stateNumericStart(e,r){return r>=e.length?-1:(e.charCodeAt(r)|jP)===Ur.LOWER_X?(this.state=zr.NumericHex,this.consumed+=1,this.stateNumericHex(e,r+1)):(this.state=zr.NumericDecimal,this.stateNumericDecimal(e,r))}addToNumericResult(e,r,n,a){if(r!==n){const s=n-r;this.result=this.result*Math.pow(a,s)+Number.parseInt(e.substr(r,s),a),this.consumed+=s}}stateNumericHex(e,r){const n=r;for(;r>14;for(;r>14,s!==0){if(i===Ur.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Hs.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:r,decodeTree:n}=this,a=(n[r]&zi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[e]&~zi.VALUE_LENGTH:a[e+1],n),r===3&&this.emitCodePoint(a[e+2],n),n}end(){var e;switch(this.state){case zr.NamedEntity:return this.result!==0&&(this.decodeMode!==Hs.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case zr.NumericDecimal:return this.emitNumericEntity(0,2);case zr.NumericHex:return this.emitNumericEntity(0,3);case zr.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case zr.EntityStart:return 0}}}function ZP(t,e,r,n){const a=(e&zi.BRANCH_LENGTH)>>7,s=e&zi.JUMP_TABLE;if(a===0)return s!==0&&n===s?r:-1;if(s){const l=n-s;return l<0||l>=a?-1:t[r+l]-1}let i=r,o=i+a-1;for(;i<=o;){const l=i+o>>>1,u=t[l];if(un)o=l-1;else return t[l+a]}return-1}var de;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(de||(de={}));var Ro;(function(t){t.TYPE="type",t.ACTION="proxy.php?url=https%3A%2F%2Fdocs.teachfloor.com%2Faction",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(Ro||(Ro={}));var na;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(na||(na={}));var X;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(X||(X={}));var g;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(g||(g={}));const WP=new Map([[X.A,g.A],[X.ADDRESS,g.ADDRESS],[X.ANNOTATION_XML,g.ANNOTATION_XML],[X.APPLET,g.APPLET],[X.AREA,g.AREA],[X.ARTICLE,g.ARTICLE],[X.ASIDE,g.ASIDE],[X.B,g.B],[X.BASE,g.BASE],[X.BASEFONT,g.BASEFONT],[X.BGSOUND,g.BGSOUND],[X.BIG,g.BIG],[X.BLOCKQUOTE,g.BLOCKQUOTE],[X.BODY,g.BODY],[X.BR,g.BR],[X.BUTTON,g.BUTTON],[X.CAPTION,g.CAPTION],[X.CENTER,g.CENTER],[X.CODE,g.CODE],[X.COL,g.COL],[X.COLGROUP,g.COLGROUP],[X.DD,g.DD],[X.DESC,g.DESC],[X.DETAILS,g.DETAILS],[X.DIALOG,g.DIALOG],[X.DIR,g.DIR],[X.DIV,g.DIV],[X.DL,g.DL],[X.DT,g.DT],[X.EM,g.EM],[X.EMBED,g.EMBED],[X.FIELDSET,g.FIELDSET],[X.FIGCAPTION,g.FIGCAPTION],[X.FIGURE,g.FIGURE],[X.FONT,g.FONT],[X.FOOTER,g.FOOTER],[X.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[X.FORM,g.FORM],[X.FRAME,g.FRAME],[X.FRAMESET,g.FRAMESET],[X.H1,g.H1],[X.H2,g.H2],[X.H3,g.H3],[X.H4,g.H4],[X.H5,g.H5],[X.H6,g.H6],[X.HEAD,g.HEAD],[X.HEADER,g.HEADER],[X.HGROUP,g.HGROUP],[X.HR,g.HR],[X.HTML,g.HTML],[X.I,g.I],[X.IMG,g.IMG],[X.IMAGE,g.IMAGE],[X.INPUT,g.INPUT],[X.IFRAME,g.IFRAME],[X.KEYGEN,g.KEYGEN],[X.LABEL,g.LABEL],[X.LI,g.LI],[X.LINK,g.LINK],[X.LISTING,g.LISTING],[X.MAIN,g.MAIN],[X.MALIGNMARK,g.MALIGNMARK],[X.MARQUEE,g.MARQUEE],[X.MATH,g.MATH],[X.MENU,g.MENU],[X.META,g.META],[X.MGLYPH,g.MGLYPH],[X.MI,g.MI],[X.MO,g.MO],[X.MN,g.MN],[X.MS,g.MS],[X.MTEXT,g.MTEXT],[X.NAV,g.NAV],[X.NOBR,g.NOBR],[X.NOFRAMES,g.NOFRAMES],[X.NOEMBED,g.NOEMBED],[X.NOSCRIPT,g.NOSCRIPT],[X.OBJECT,g.OBJECT],[X.OL,g.OL],[X.OPTGROUP,g.OPTGROUP],[X.OPTION,g.OPTION],[X.P,g.P],[X.PARAM,g.PARAM],[X.PLAINTEXT,g.PLAINTEXT],[X.PRE,g.PRE],[X.RB,g.RB],[X.RP,g.RP],[X.RT,g.RT],[X.RTC,g.RTC],[X.RUBY,g.RUBY],[X.S,g.S],[X.SCRIPT,g.SCRIPT],[X.SEARCH,g.SEARCH],[X.SECTION,g.SECTION],[X.SELECT,g.SELECT],[X.SOURCE,g.SOURCE],[X.SMALL,g.SMALL],[X.SPAN,g.SPAN],[X.STRIKE,g.STRIKE],[X.STRONG,g.STRONG],[X.STYLE,g.STYLE],[X.SUB,g.SUB],[X.SUMMARY,g.SUMMARY],[X.SUP,g.SUP],[X.TABLE,g.TABLE],[X.TBODY,g.TBODY],[X.TEMPLATE,g.TEMPLATE],[X.TEXTAREA,g.TEXTAREA],[X.TFOOT,g.TFOOT],[X.TD,g.TD],[X.TH,g.TH],[X.THEAD,g.THEAD],[X.TITLE,g.TITLE],[X.TR,g.TR],[X.TRACK,g.TRACK],[X.TT,g.TT],[X.U,g.U],[X.UL,g.UL],[X.SVG,g.SVG],[X.VAR,g.VAR],[X.WBR,g.WBR],[X.XMP,g.XMP]]);function S1(t){var e;return(e=WP.get(t))!==null&&e!==void 0?e:g.UNKNOWN}const fe=g,GP={[de.HTML]:new Set([fe.ADDRESS,fe.APPLET,fe.AREA,fe.ARTICLE,fe.ASIDE,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BLOCKQUOTE,fe.BODY,fe.BR,fe.BUTTON,fe.CAPTION,fe.CENTER,fe.COL,fe.COLGROUP,fe.DD,fe.DETAILS,fe.DIR,fe.DIV,fe.DL,fe.DT,fe.EMBED,fe.FIELDSET,fe.FIGCAPTION,fe.FIGURE,fe.FOOTER,fe.FORM,fe.FRAME,fe.FRAMESET,fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6,fe.HEAD,fe.HEADER,fe.HGROUP,fe.HR,fe.HTML,fe.IFRAME,fe.IMG,fe.INPUT,fe.LI,fe.LINK,fe.LISTING,fe.MAIN,fe.MARQUEE,fe.MENU,fe.META,fe.NAV,fe.NOEMBED,fe.NOFRAMES,fe.NOSCRIPT,fe.OBJECT,fe.OL,fe.P,fe.PARAM,fe.PLAINTEXT,fe.PRE,fe.SCRIPT,fe.SECTION,fe.SELECT,fe.SOURCE,fe.STYLE,fe.SUMMARY,fe.TABLE,fe.TBODY,fe.TD,fe.TEMPLATE,fe.TEXTAREA,fe.TFOOT,fe.TH,fe.THEAD,fe.TITLE,fe.TR,fe.TRACK,fe.UL,fe.WBR,fe.XMP]),[de.MATHML]:new Set([fe.MI,fe.MO,fe.MN,fe.MS,fe.MTEXT,fe.ANNOTATION_XML]),[de.SVG]:new Set([fe.TITLE,fe.FOREIGN_OBJECT,fe.DESC]),[de.XLINK]:new Set,[de.XML]:new Set,[de.XMLNS]:new Set},lp=new Set([fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6]);X.STYLE,X.SCRIPT,X.XMP,X.IFRAME,X.NOEMBED,X.NOFRAMES,X.PLAINTEXT;var P;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(P||(P={}));const Cn={DATA:P.DATA,RCDATA:P.RCDATA,RAWTEXT:P.RAWTEXT,SCRIPT_DATA:P.SCRIPT_DATA,PLAINTEXT:P.PLAINTEXT,CDATA_SECTION:P.CDATA_SECTION};function YP(t){return t>=M.DIGIT_0&&t<=M.DIGIT_9}function L0(t){return t>=M.LATIN_CAPITAL_A&&t<=M.LATIN_CAPITAL_Z}function KP(t){return t>=M.LATIN_SMALL_A&&t<=M.LATIN_SMALL_Z}function Li(t){return KP(t)||L0(t)}function fg(t){return Li(t)||YP(t)}function kc(t){return t+32}function Bv(t){return t===M.SPACE||t===M.LINE_FEED||t===M.TABULATION||t===M.FORM_FEED}function hg(t){return Bv(t)||t===M.SOLIDUS||t===M.GREATER_THAN_SIGN}function QP(t){return t===M.NULL?te.nullCharacterReference:t>1114111?te.characterReferenceOutsideUnicodeRange:Lv(t)?te.surrogateCharacterReference:Dv(t)?te.noncharacterCharacterReference:Pv(t)||t===M.CARRIAGE_RETURN?te.controlCharacterReference:null}class XP{constructor(e,r){this.options=e,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=P.DATA,this.returnState=P.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new $P(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new VP(BP,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(te.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(te.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=QP(n);a&&this._err(a,1)}}:void 0)}_err(e,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(e,r))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,r,n){this.active=!0,this.preprocessor.write(e,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let r=0;r0&&this._err(te.endTagWithAttributes),e.selfClosing&&this._err(te.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Dt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Dt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Dt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Dt.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,r)}_emitCodePoint(e){const r=Bv(e)?Dt.WHITESPACE_CHARACTER:e===M.NULL?Dt.NULL_CHARACTER:Dt.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Dt.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=P.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Hs.Attribute:Hs.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===P.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case P.DATA:{this._stateData(e);break}case P.RCDATA:{this._stateRcdata(e);break}case P.RAWTEXT:{this._stateRawtext(e);break}case P.SCRIPT_DATA:{this._stateScriptData(e);break}case P.PLAINTEXT:{this._statePlaintext(e);break}case P.TAG_OPEN:{this._stateTagOpen(e);break}case P.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case P.TAG_NAME:{this._stateTagName(e);break}case P.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case P.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case P.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case P.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case P.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case P.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case P.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case P.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case P.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case P.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case P.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case P.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case P.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case P.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case P.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case P.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case P.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case P.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case P.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case P.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case P.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case P.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case P.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case P.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case P.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case P.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case P.BOGUS_COMMENT:{this._stateBogusComment(e);break}case P.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case P.COMMENT_START:{this._stateCommentStart(e);break}case P.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case P.COMMENT:{this._stateComment(e);break}case P.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case P.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case P.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case P.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case P.COMMENT_END:{this._stateCommentEnd(e);break}case P.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case P.DOCTYPE:{this._stateDoctype(e);break}case P.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case P.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case P.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case P.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case P.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case P.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case P.CDATA_SECTION:{this._stateCdataSection(e);break}case P.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case P.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case P.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case P.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case M.LESS_THAN_SIGN:{this.state=P.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(te.unexpectedNullCharacter),this._emitCodePoint(e);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=P.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(sr);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case M.LESS_THAN_SIGN:{this.state=P.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(sr);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case M.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(sr);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case M.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(sr);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Li(e))this._createStartTagToken(),this.state=P.TAG_NAME,this._stateTagName(e);else switch(e){case M.EXCLAMATION_MARK:{this.state=P.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=P.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(te.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=P.BOGUS_COMMENT,this._stateBogusComment(e);break}case M.EOF:{this._err(te.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(te.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=P.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Li(e))this._createEndTagToken(),this.state=P.TAG_NAME,this._stateTagName(e);else switch(e){case M.GREATER_THAN_SIGN:{this._err(te.missingEndTagName),this.state=P.DATA;break}case M.EOF:{this._err(te.eofBeforeTagName),this._emitChars("");break}case M.NULL:{this._err(te.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars(sr);break}case M.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===M.SOLIDUS?this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Li(e)?(this._emitChars("<"),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Li(e)?(this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break}case M.NULL:{this._err(te.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(sr);break}case M.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===M.SOLIDUS?(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Tn.SCRIPT,!1)&&hg(this.preprocessor.peek(Tn.SCRIPT.length))){this._emitCodePoint(e);for(let r=0;r0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,r){const n=this._indexOf(e);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(e,r,n){const a=this._indexOf(e)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(e,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==de.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(e){for(;this.stackTop>=e;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(e,r){const n=this._indexOfTagNames(e,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(nD,de.HTML)}clearBackToTableBodyContext(){this.clearBackTo(rD,de.HTML)}clearBackToTableRowContext(){this.clearBackTo(tD,de.HTML)}remove(e){const r=this._indexOf(e);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const r=this._indexOf(e)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(e,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case de.HTML:{if(a===e)return!0;if(r.has(a))return!1;break}case de.SVG:{if(gg.has(a))return!1;break}case de.MATHML:{if(mg.has(a))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Bd)}hasInListItemScope(e){return this.hasInDynamicScope(e,JP)}hasInButtonScope(e){return this.hasInDynamicScope(e,eD)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const r=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case de.HTML:{if(lp.has(r))return!0;if(Bd.has(r))return!1;break}case de.SVG:{if(gg.has(r))return!1;break}case de.MATHML:{if(mg.has(r))return!1;break}}}return!0}hasInTableScope(e){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===de.HTML)switch(this.tagIDs[r]){case e:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===de.HTML)switch(this.tagIDs[e]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(e){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===de.HTML)switch(this.tagIDs[r]){case e:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Hv.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&pg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&pg.has(this.currentTagId);)this.pop()}}const Lf=3;var us;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(us||(us={}));const bg={type:us.Marker};class iD{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,r){const n=[],a=r.length,s=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let o=0;o[i.name,i.value]));let s=0;for(let i=0;ia.get(l.name)===l.value)&&(s+=1,s>=Lf&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(bg)}pushElement(e,r){this._ensureNoahArkCondition(e),this.entries.unshift({type:us.Element,element:e,token:r})}insertElementAfterBookmark(e,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:us.Element,element:e,token:r})}removeEntry(e){const r=this.entries.indexOf(e);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const e=this.entries.indexOf(bg);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const r=this.entries.find(n=>n.type===us.Marker||this.treeAdapter.getTagName(n.element)===e);return r&&r.type===us.Element?r:null}getElementEntry(e){return this.entries.find(r=>r.type===us.Element&&r.element===e)}}const Pi={createDocument(){return{nodeName:"#document",mode:na.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,r){return{nodeName:t,tagName:t,attrs:r,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,r){const n=t.childNodes.indexOf(r);t.childNodes.splice(n,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,r,n){const a=t.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=e,a.publicId=r,a.systemId=n;else{const s={nodeName:"#documentType",name:e,publicId:r,systemId:n,parentNode:null};Pi.appendChild(t,s)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const r=t.childNodes[t.childNodes.length-1];if(Pi.isTextNode(r)){r.value+=e;return}}Pi.appendChild(t,Pi.createTextNode(e))},insertTextBefore(t,e,r){const n=t.childNodes[t.childNodes.indexOf(r)-1];n&&Pi.isTextNode(n)?n.value+=e:Pi.insertBefore(t,Pi.createTextNode(e),r)},adoptAttributes(t,e){const r=new Set(t.attrs.map(n=>n.name));for(let n=0;nt.startsWith(r))}function fD(t){return t.name===Fv&&t.publicId===null&&(t.systemId===null||t.systemId===oD)}function hD(t){if(t.name!==Fv)return na.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===lD)return na.QUIRKS;let{publicId:r}=t;if(r!==null){if(r=r.toLowerCase(),cD.has(r))return na.QUIRKS;let n=e===null?uD:jv;if(vg(r,n))return na.QUIRKS;if(n=e===null?zv:dD,vg(r,n))return na.LIMITED_QUIRKS}return na.NO_QUIRKS}const yg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},pD="definitionurl",mD="definitionURL",gD=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),bD=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:de.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:de.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:de.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:de.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:de.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:de.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:de.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:de.XML}],["xml:space",{prefix:"xml",name:"space",namespace:de.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:de.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:de.XMLNS}]]),vD=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),yD=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function wD(t){const e=t.tagID;return e===g.FONT&&t.attrs.some(({name:n})=>n===Ro.COLOR||n===Ro.SIZE||n===Ro.FACE)||yD.has(e)}function Uv(t){for(let e=0;e0&&this._setContextModes(e,r)}onItemPop(e,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,e,this.openElements.current),r){let s,i;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,i=this.fragmentContextID):{current:s,currentTagId:i}=this.openElements,this._setContextModes(s,i)}}_setContextModes(e,r){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===de.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,e)}_switchToTextParsing(e,r){this._insertElement(e,de.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=F.TEXT}switchToPlaintextParsing(){this.insertionMode=F.TEXT,this.originalInsertionMode=F.IN_BODY,this.tokenizer.state=Cn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===X.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==de.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=Cn.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=Cn.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=Cn.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=Cn.PLAINTEXT;break}}}_setDocumentType(e){const r=e.name||"",n=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),e.location){const i=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));i&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_attachElementToTree(e,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,e)}}_appendElement(e,r){const n=this.treeAdapter.createElement(e.tagName,r,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,r){const n=this.treeAdapter.createElement(e.tagName,r,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,r){const n=this.treeAdapter.createElement(e,de.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(e){const r=this.treeAdapter.createElement(e.tagName,de.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(X.HTML,de.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,g.HTML)}_appendCommentNode(e,r){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,e.chars,n):this.treeAdapter.insertText(r,e.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(r),s=n?a.lastIndexOf(n):a.length,i=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:l,endCol:u,endOffset:c}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,r){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(e,r){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(e),s=r.type===Dt.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,e.tagID===g.SVG&&this.treeAdapter.getTagName(r)===X.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===de.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===g.MGLYPH||e.tagID===g.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,de.HTML)}_processToken(e){switch(e.type){case Dt.CHARACTER:{this.onCharacter(e);break}case Dt.NULL_CHARACTER:{this.onNullCharacter(e);break}case Dt.COMMENT:{this.onComment(e);break}case Dt.DOCTYPE:{this.onDoctype(e);break}case Dt.START_TAG:{this._processStartTag(e);break}case Dt.END_TAG:{this.onEndTag(e);break}case Dt.EOF:{this.onEof(e);break}case Dt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,r,n){const a=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return TD(e,a,s,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===us.Marker||this.openElements.contains(a.element)),n=r===-1?e-1:r-1;for(let a=n;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=F.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case g.TR:{this.insertionMode=F.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=F.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=F.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=F.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=F.IN_TABLE;return}case g.BODY:{this.insertionMode=F.IN_BODY;return}case g.FRAMESET:{this.insertionMode=F.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(e);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?F.AFTER_HEAD:F.BEFORE_HEAD;return}case g.TD:case g.TH:{if(e>0){this.insertionMode=F.IN_CELL;return}break}case g.HEAD:{if(e>0){this.insertionMode=F.IN_HEAD;return}break}}this.insertionMode=F.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let r=e-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===g.TEMPLATE)break;if(n===g.TABLE){this.insertionMode=F.IN_SELECT_IN_TABLE;return}}this.insertionMode=F.IN_SELECT}_isElementCausesFosterParenting(e){return Vv.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const r=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===de.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case g.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,e,r.beforeElement):this.treeAdapter.appendChild(r.parent,e)}_isSpecialElement(e,r){const n=this.treeAdapter.getNamespaceURI(e);return GP[n].has(r)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){aB(this,e);return}switch(this.insertionMode){case F.INITIAL:{x0(this,e);break}case F.BEFORE_HTML:{G0(this,e);break}case F.BEFORE_HEAD:{Y0(this,e);break}case F.IN_HEAD:{K0(this,e);break}case F.IN_HEAD_NO_SCRIPT:{Q0(this,e);break}case F.AFTER_HEAD:{X0(this,e);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:{Gv(this,e);break}case F.TEXT:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{Pf(this,e);break}case F.IN_TABLE_TEXT:{ey(this,e);break}case F.IN_COLUMN_GROUP:{Hd(this,e);break}case F.AFTER_BODY:{Fd(this,e);break}case F.AFTER_AFTER_BODY:{Gc(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nB(this,e);return}switch(this.insertionMode){case F.INITIAL:{x0(this,e);break}case F.BEFORE_HTML:{G0(this,e);break}case F.BEFORE_HEAD:{Y0(this,e);break}case F.IN_HEAD:{K0(this,e);break}case F.IN_HEAD_NO_SCRIPT:{Q0(this,e);break}case F.AFTER_HEAD:{X0(this,e);break}case F.TEXT:{this._insertCharacters(e);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{Pf(this,e);break}case F.IN_COLUMN_GROUP:{Hd(this,e);break}case F.AFTER_BODY:{Fd(this,e);break}case F.AFTER_AFTER_BODY:{Gc(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){up(this,e);return}switch(this.insertionMode){case F.INITIAL:case F.BEFORE_HTML:case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_TEMPLATE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{up(this,e);break}case F.IN_TABLE_TEXT:{T0(this,e);break}case F.AFTER_BODY:{PD(this,e);break}case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{DD(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case F.INITIAL:{$D(this,e);break}case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:{this._err(e,te.misplacedDoctype);break}case F.IN_TABLE_TEXT:{T0(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,te.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?sB(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case F.INITIAL:{x0(this,e);break}case F.BEFORE_HTML:{BD(this,e);break}case F.BEFORE_HEAD:{FD(this,e);break}case F.IN_HEAD:{Pa(this,e);break}case F.IN_HEAD_NO_SCRIPT:{UD(this,e);break}case F.AFTER_HEAD:{VD(this,e);break}case F.IN_BODY:{on(this,e);break}case F.IN_TABLE:{Ql(this,e);break}case F.IN_TABLE_TEXT:{T0(this,e);break}case F.IN_CAPTION:{j$(this,e);break}case F.IN_COLUMN_GROUP:{F2(this,e);break}case F.IN_TABLE_BODY:{O1(this,e);break}case F.IN_ROW:{M1(this,e);break}case F.IN_CELL:{q$(this,e);break}case F.IN_SELECT:{ny(this,e);break}case F.IN_SELECT_IN_TABLE:{Z$(this,e);break}case F.IN_TEMPLATE:{G$(this,e);break}case F.AFTER_BODY:{K$(this,e);break}case F.IN_FRAMESET:{Q$(this,e);break}case F.AFTER_FRAMESET:{J$(this,e);break}case F.AFTER_AFTER_BODY:{tB(this,e);break}case F.AFTER_AFTER_FRAMESET:{rB(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?iB(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case F.INITIAL:{x0(this,e);break}case F.BEFORE_HTML:{HD(this,e);break}case F.BEFORE_HEAD:{jD(this,e);break}case F.IN_HEAD:{zD(this,e);break}case F.IN_HEAD_NO_SCRIPT:{qD(this,e);break}case F.AFTER_HEAD:{ZD(this,e);break}case F.IN_BODY:{C1(this,e);break}case F.TEXT:{N$(this,e);break}case F.IN_TABLE:{Nu(this,e);break}case F.IN_TABLE_TEXT:{T0(this,e);break}case F.IN_CAPTION:{z$(this,e);break}case F.IN_COLUMN_GROUP:{U$(this,e);break}case F.IN_TABLE_BODY:{cp(this,e);break}case F.IN_ROW:{ry(this,e);break}case F.IN_CELL:{V$(this,e);break}case F.IN_SELECT:{ay(this,e);break}case F.IN_SELECT_IN_TABLE:{W$(this,e);break}case F.IN_TEMPLATE:{Y$(this,e);break}case F.AFTER_BODY:{iy(this,e);break}case F.IN_FRAMESET:{X$(this,e);break}case F.AFTER_FRAMESET:{eB(this,e);break}case F.AFTER_AFTER_BODY:{Gc(this,e);break}}}onEof(e){switch(this.insertionMode){case F.INITIAL:{x0(this,e);break}case F.BEFORE_HTML:{G0(this,e);break}case F.BEFORE_HEAD:{Y0(this,e);break}case F.IN_HEAD:{K0(this,e);break}case F.IN_HEAD_NO_SCRIPT:{Q0(this,e);break}case F.AFTER_HEAD:{X0(this,e);break}case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{Xv(this,e);break}case F.TEXT:{R$(this,e);break}case F.IN_TABLE_TEXT:{T0(this,e);break}case F.IN_TEMPLATE:{sy(this,e);break}case F.AFTER_BODY:case F.IN_FRAMESET:case F.AFTER_FRAMESET:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{H2(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===M.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.TEXT:case F.IN_COLUMN_GROUP:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{this._insertCharacters(e);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:case F.AFTER_BODY:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{Wv(this,e);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{Pf(this,e);break}case F.IN_TABLE_TEXT:{Jv(this,e);break}}}};function OD(t,e){let r=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return r?t.openElements.contains(r.element)?t.openElements.hasInScope(e.tagID)||(r=null):(t.activeFormattingElements.removeEntry(r),r=null):Qv(t,e),r}function MD(t,e){let r=null,n=t.openElements.stackTop;for(;n>=0;n--){const a=t.openElements.items[n];if(a===e.element)break;t._isSpecialElement(a,t.openElements.tagIDs[n])&&(r=a)}return r||(t.openElements.shortenToLength(Math.max(n,0)),t.activeFormattingElements.removeEntry(e)),r}function ND(t,e,r){let n=e,a=t.openElements.getCommonAncestor(e);for(let s=0,i=a;i!==r;s++,i=a){a=t.openElements.getCommonAncestor(i);const o=t.activeFormattingElements.getElementEntry(i),l=o&&s>=AD;!o||l?(l&&t.activeFormattingElements.removeEntry(o),t.openElements.remove(i)):(i=RD(t,o),n===e&&(t.activeFormattingElements.bookmark=o),t.treeAdapter.detachNode(n),t.treeAdapter.appendChild(i,n),n=i)}return n}function RD(t,e){const r=t.treeAdapter.getNamespaceURI(e.element),n=t.treeAdapter.createElement(e.token.tagName,r,e.token.attrs);return t.openElements.replace(e.element,n),e.element=n,n}function ID(t,e,r){const n=t.treeAdapter.getTagName(e),a=S1(n);if(t._isElementCausesFosterParenting(a))t._fosterParentElement(r);else{const s=t.treeAdapter.getNamespaceURI(e);a===g.TEMPLATE&&s===de.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,r)}}function LD(t,e,r){const n=t.treeAdapter.getNamespaceURI(r.element),{token:a}=r,s=t.treeAdapter.createElement(a.tagName,n,a.attrs);t._adoptNodes(e,s),t.treeAdapter.appendChild(e,s),t.activeFormattingElements.insertElementAfterBookmark(s,a),t.activeFormattingElements.removeEntry(r),t.openElements.remove(r.element),t.openElements.insertAfter(e,s,a.tagID)}function B2(t,e){for(let r=0;r=r;n--)t._setEndLocation(t.openElements.items[n],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const n=t.openElements.items[0],a=t.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(t._setEndLocation(n,e),t.openElements.stackTop>=1)){const s=t.openElements.items[1],i=t.treeAdapter.getNodeSourceCodeLocation(s);i&&!i.endTag&&t._setEndLocation(s,e)}}}}function $D(t,e){t._setDocumentType(e);const r=e.forceQuirks?na.QUIRKS:hD(e);fD(e)||t._err(e,te.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,r),t.insertionMode=F.BEFORE_HTML}function x0(t,e){t._err(e,te.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,na.QUIRKS),t.insertionMode=F.BEFORE_HTML,t._processToken(e)}function BD(t,e){e.tagID===g.HTML?(t._insertElement(e,de.HTML),t.insertionMode=F.BEFORE_HEAD):G0(t,e)}function HD(t,e){const r=e.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&G0(t,e)}function G0(t,e){t._insertFakeRootElement(),t.insertionMode=F.BEFORE_HEAD,t._processToken(e)}function FD(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.HEAD:{t._insertElement(e,de.HTML),t.headElement=t.openElements.current,t.insertionMode=F.IN_HEAD;break}default:Y0(t,e)}}function jD(t,e){const r=e.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?Y0(t,e):t._err(e,te.endTagWithoutMatchingOpenElement)}function Y0(t,e){t._insertFakeElement(X.HEAD,g.HEAD),t.headElement=t.openElements.current,t.insertionMode=F.IN_HEAD,t._processToken(e)}function Pa(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{t._appendElement(e,de.HTML),e.ackSelfClosing=!0;break}case g.TITLE:{t._switchToTextParsing(e,Cn.RCDATA);break}case g.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,Cn.RAWTEXT):(t._insertElement(e,de.HTML),t.insertionMode=F.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{t._switchToTextParsing(e,Cn.RAWTEXT);break}case g.SCRIPT:{t._switchToTextParsing(e,Cn.SCRIPT_DATA);break}case g.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=F.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(F.IN_TEMPLATE);break}case g.HEAD:{t._err(e,te.misplacedStartTagForHeadElement);break}default:K0(t,e)}}function zD(t,e){switch(e.tagID){case g.HEAD:{t.openElements.pop(),t.insertionMode=F.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{K0(t,e);break}case g.TEMPLATE:{Jo(t,e);break}default:t._err(e,te.endTagWithoutMatchingOpenElement)}}function Jo(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==g.TEMPLATE&&t._err(e,te.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(g.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,te.endTagWithoutMatchingOpenElement)}function K0(t,e){t.openElements.pop(),t.insertionMode=F.AFTER_HEAD,t._processToken(e)}function UD(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{Pa(t,e);break}case g.NOSCRIPT:{t._err(e,te.nestedNoscriptInHead);break}default:Q0(t,e)}}function qD(t,e){switch(e.tagID){case g.NOSCRIPT:{t.openElements.pop(),t.insertionMode=F.IN_HEAD;break}case g.BR:{Q0(t,e);break}default:t._err(e,te.endTagWithoutMatchingOpenElement)}}function Q0(t,e){const r=e.type===Dt.EOF?te.openElementsLeftAfterEof:te.disallowedContentInNoscriptInHead;t._err(e,r),t.openElements.pop(),t.insertionMode=F.IN_HEAD,t._processToken(e)}function VD(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.BODY:{t._insertElement(e,de.HTML),t.framesetOk=!1,t.insertionMode=F.IN_BODY;break}case g.FRAMESET:{t._insertElement(e,de.HTML),t.insertionMode=F.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{t._err(e,te.abandonedHeadElementChild),t.openElements.push(t.headElement,g.HEAD),Pa(t,e),t.openElements.remove(t.headElement);break}case g.HEAD:{t._err(e,te.misplacedStartTagForHeadElement);break}default:X0(t,e)}}function ZD(t,e){switch(e.tagID){case g.BODY:case g.HTML:case g.BR:{X0(t,e);break}case g.TEMPLATE:{Jo(t,e);break}default:t._err(e,te.endTagWithoutMatchingOpenElement)}}function X0(t,e){t._insertFakeElement(X.BODY,g.BODY),t.insertionMode=F.IN_BODY,A1(t,e)}function A1(t,e){switch(e.type){case Dt.CHARACTER:{Gv(t,e);break}case Dt.WHITESPACE_CHARACTER:{Wv(t,e);break}case Dt.COMMENT:{up(t,e);break}case Dt.START_TAG:{on(t,e);break}case Dt.END_TAG:{C1(t,e);break}case Dt.EOF:{Xv(t,e);break}}}function Wv(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function Gv(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function WD(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function GD(t,e){const r=t.openElements.tryPeekProperlyNestedBodyElement();r&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(r,e.attrs))}function YD(t,e){const r=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&r&&(t.treeAdapter.detachNode(r),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,de.HTML),t.insertionMode=F.IN_FRAMESET)}function KD(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,de.HTML)}function QD(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t.openElements.currentTagId!==void 0&&lp.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,de.HTML)}function XD(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,de.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function JD(t,e){const r=t.openElements.tmplCount>0;(!t.formElement||r)&&(t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,de.HTML),r||(t.formElement=t.openElements.current))}function e$(t,e){t.framesetOk=!1;const r=e.tagID;for(let n=t.openElements.stackTop;n>=0;n--){const a=t.openElements.tagIDs[n];if(r===g.LI&&a===g.LI||(r===g.DD||r===g.DT)&&(a===g.DD||a===g.DT)){t.openElements.generateImpliedEndTagsWithExclusion(a),t.openElements.popUntilTagNamePopped(a);break}if(a!==g.ADDRESS&&a!==g.DIV&&a!==g.P&&t._isSpecialElement(t.openElements.items[n],a))break}t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,de.HTML)}function t$(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,de.HTML),t.tokenizer.state=Cn.PLAINTEXT}function r$(t,e){t.openElements.hasInScope(g.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(g.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML),t.framesetOk=!1}function n$(t,e){const r=t.activeFormattingElements.getElementEntryInScopeWithTagName(X.A);r&&(B2(t,e),t.openElements.remove(r.element),t.activeFormattingElements.removeEntry(r)),t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function a$(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function s$(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(g.NOBR)&&(B2(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,de.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function i$(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function o$(t,e){t.treeAdapter.getDocumentMode(t.document)!==na.QUIRKS&&t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,de.HTML),t.framesetOk=!1,t.insertionMode=F.IN_TABLE}function Yv(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,de.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function Kv(t){const e=$v(t,Ro.TYPE);return e!=null&&e.toLowerCase()===kD}function l$(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,de.HTML),Kv(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function u$(t,e){t._appendElement(e,de.HTML),e.ackSelfClosing=!0}function c$(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._appendElement(e,de.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function d$(t,e){e.tagName=X.IMG,e.tagID=g.IMG,Yv(t,e)}function f$(t,e){t._insertElement(e,de.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Cn.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=F.TEXT}function h$(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Cn.RAWTEXT)}function p$(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Cn.RAWTEXT)}function _g(t,e){t._switchToTextParsing(e,Cn.RAWTEXT)}function m$(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===F.IN_TABLE||t.insertionMode===F.IN_CAPTION||t.insertionMode===F.IN_TABLE_BODY||t.insertionMode===F.IN_ROW||t.insertionMode===F.IN_CELL?F.IN_SELECT_IN_TABLE:F.IN_SELECT}function g$(t,e){t.openElements.currentTagId===g.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML)}function b$(t,e){t.openElements.hasInScope(g.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,de.HTML)}function v$(t,e){t.openElements.hasInScope(g.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(g.RTC),t._insertElement(e,de.HTML)}function y$(t,e){t._reconstructActiveFormattingElements(),Uv(e),$2(e),e.selfClosing?t._appendElement(e,de.MATHML):t._insertElement(e,de.MATHML),e.ackSelfClosing=!0}function w$(t,e){t._reconstructActiveFormattingElements(),qv(e),$2(e),e.selfClosing?t._appendElement(e,de.SVG):t._insertElement(e,de.SVG),e.ackSelfClosing=!0}function Eg(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,de.HTML)}function on(t,e){switch(e.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{a$(t,e);break}case g.A:{n$(t,e);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{QD(t,e);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{KD(t,e);break}case g.LI:case g.DD:case g.DT:{e$(t,e);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{Yv(t,e);break}case g.HR:{c$(t,e);break}case g.RB:case g.RTC:{b$(t,e);break}case g.RT:case g.RP:{v$(t,e);break}case g.PRE:case g.LISTING:{XD(t,e);break}case g.XMP:{h$(t,e);break}case g.SVG:{w$(t,e);break}case g.HTML:{WD(t,e);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{Pa(t,e);break}case g.BODY:{GD(t,e);break}case g.FORM:{JD(t,e);break}case g.NOBR:{s$(t,e);break}case g.MATH:{y$(t,e);break}case g.TABLE:{o$(t,e);break}case g.INPUT:{l$(t,e);break}case g.PARAM:case g.TRACK:case g.SOURCE:{u$(t,e);break}case g.IMAGE:{d$(t,e);break}case g.BUTTON:{r$(t,e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{i$(t,e);break}case g.IFRAME:{p$(t,e);break}case g.SELECT:{m$(t,e);break}case g.OPTION:case g.OPTGROUP:{g$(t,e);break}case g.NOEMBED:case g.NOFRAMES:{_g(t,e);break}case g.FRAMESET:{YD(t,e);break}case g.TEXTAREA:{f$(t,e);break}case g.NOSCRIPT:{t.options.scriptingEnabled?_g(t,e):Eg(t,e);break}case g.PLAINTEXT:{t$(t,e);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:Eg(t,e)}}function _$(t,e){if(t.openElements.hasInScope(g.BODY)&&(t.insertionMode=F.AFTER_BODY,t.options.sourceCodeLocationInfo)){const r=t.openElements.tryPeekProperlyNestedBodyElement();r&&t._setEndLocation(r,e)}}function E$(t,e){t.openElements.hasInScope(g.BODY)&&(t.insertionMode=F.AFTER_BODY,iy(t,e))}function x$(t,e){const r=e.tagID;t.openElements.hasInScope(r)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(r))}function T$(t){const e=t.openElements.tmplCount>0,{formElement:r}=t;e||(t.formElement=null),(r||e)&&t.openElements.hasInScope(g.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(g.FORM):r&&t.openElements.remove(r))}function k$(t){t.openElements.hasInButtonScope(g.P)||t._insertFakeElement(X.P,g.P),t._closePElement()}function S$(t){t.openElements.hasInListItemScope(g.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(g.LI),t.openElements.popUntilTagNamePopped(g.LI))}function A$(t,e){const r=e.tagID;t.openElements.hasInScope(r)&&(t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.popUntilTagNamePopped(r))}function C$(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function O$(t,e){const r=e.tagID;t.openElements.hasInScope(r)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(r),t.activeFormattingElements.clearToLastMarker())}function M$(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(X.BR,g.BR),t.openElements.pop(),t.framesetOk=!1}function Qv(t,e){const r=e.tagName,n=e.tagID;for(let a=t.openElements.stackTop;a>0;a--){const s=t.openElements.items[a],i=t.openElements.tagIDs[a];if(n===i&&(n!==g.UNKNOWN||t.treeAdapter.getTagName(s)===r)){t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.stackTop>=a&&t.openElements.shortenToLength(a);break}if(t._isSpecialElement(s,i))break}}function C1(t,e){switch(e.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{B2(t,e);break}case g.P:{k$(t);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{x$(t,e);break}case g.LI:{S$(t);break}case g.DD:case g.DT:{A$(t,e);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{C$(t);break}case g.BR:{M$(t);break}case g.BODY:{_$(t,e);break}case g.HTML:{E$(t,e);break}case g.FORM:{T$(t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{O$(t,e);break}case g.TEMPLATE:{Jo(t,e);break}default:Qv(t,e)}}function Xv(t,e){t.tmplInsertionModeStack.length>0?sy(t,e):H2(t,e)}function N$(t,e){var r;e.tagID===g.SCRIPT&&((r=t.scriptHandler)===null||r===void 0||r.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function R$(t,e){t._err(e,te.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function Pf(t,e){if(t.openElements.currentTagId!==void 0&&Vv.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=F.IN_TABLE_TEXT,e.type){case Dt.CHARACTER:{ey(t,e);break}case Dt.WHITESPACE_CHARACTER:{Jv(t,e);break}}else Ku(t,e)}function I$(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,de.HTML),t.insertionMode=F.IN_CAPTION}function L$(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,de.HTML),t.insertionMode=F.IN_COLUMN_GROUP}function P$(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(X.COLGROUP,g.COLGROUP),t.insertionMode=F.IN_COLUMN_GROUP,F2(t,e)}function D$(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,de.HTML),t.insertionMode=F.IN_TABLE_BODY}function $$(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(X.TBODY,g.TBODY),t.insertionMode=F.IN_TABLE_BODY,O1(t,e)}function B$(t,e){t.openElements.hasInTableScope(g.TABLE)&&(t.openElements.popUntilTagNamePopped(g.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function H$(t,e){Kv(e)?t._appendElement(e,de.HTML):Ku(t,e),e.ackSelfClosing=!0}function F$(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,de.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Ql(t,e){switch(e.tagID){case g.TD:case g.TH:case g.TR:{$$(t,e);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{Pa(t,e);break}case g.COL:{P$(t,e);break}case g.FORM:{F$(t,e);break}case g.TABLE:{B$(t,e);break}case g.TBODY:case g.TFOOT:case g.THEAD:{D$(t,e);break}case g.INPUT:{H$(t,e);break}case g.CAPTION:{I$(t,e);break}case g.COLGROUP:{L$(t,e);break}default:Ku(t,e)}}function Nu(t,e){switch(e.tagID){case g.TABLE:{t.openElements.hasInTableScope(g.TABLE)&&(t.openElements.popUntilTagNamePopped(g.TABLE),t._resetInsertionMode());break}case g.TEMPLATE:{Jo(t,e);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Ku(t,e)}}function Ku(t,e){const r=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,A1(t,e),t.fosterParentingEnabled=r}function Jv(t,e){t.pendingCharacterTokens.push(e)}function ey(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function T0(t,e){let r=0;if(t.hasNonWhitespacePendingCharacterToken)for(;r0&&t.openElements.currentTagId===g.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===g.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===g.OPTGROUP&&t.openElements.pop();break}case g.OPTION:{t.openElements.currentTagId===g.OPTION&&t.openElements.pop();break}case g.SELECT:{t.openElements.hasInSelectScope(g.SELECT)&&(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode());break}case g.TEMPLATE:{Jo(t,e);break}}}function Z$(t,e){const r=e.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode(),t._processStartTag(e)):ny(t,e)}function W$(t,e){const r=e.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?t.openElements.hasInTableScope(r)&&(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode(),t.onEndTag(e)):ay(t,e)}function G$(t,e){switch(e.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{Pa(t,e);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{t.tmplInsertionModeStack[0]=F.IN_TABLE,t.insertionMode=F.IN_TABLE,Ql(t,e);break}case g.COL:{t.tmplInsertionModeStack[0]=F.IN_COLUMN_GROUP,t.insertionMode=F.IN_COLUMN_GROUP,F2(t,e);break}case g.TR:{t.tmplInsertionModeStack[0]=F.IN_TABLE_BODY,t.insertionMode=F.IN_TABLE_BODY,O1(t,e);break}case g.TD:case g.TH:{t.tmplInsertionModeStack[0]=F.IN_ROW,t.insertionMode=F.IN_ROW,M1(t,e);break}default:t.tmplInsertionModeStack[0]=F.IN_BODY,t.insertionMode=F.IN_BODY,on(t,e)}}function Y$(t,e){e.tagID===g.TEMPLATE&&Jo(t,e)}function sy(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(g.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):H2(t,e)}function K$(t,e){e.tagID===g.HTML?on(t,e):Fd(t,e)}function iy(t,e){var r;if(e.tagID===g.HTML){if(t.fragmentContext||(t.insertionMode=F.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===g.HTML){t._setEndLocation(t.openElements.items[0],e);const n=t.openElements.items[1];n&&!(!((r=t.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&t._setEndLocation(n,e)}}else Fd(t,e)}function Fd(t,e){t.insertionMode=F.IN_BODY,A1(t,e)}function Q$(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.FRAMESET:{t._insertElement(e,de.HTML);break}case g.FRAME:{t._appendElement(e,de.HTML),e.ackSelfClosing=!0;break}case g.NOFRAMES:{Pa(t,e);break}}}function X$(t,e){e.tagID===g.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==g.FRAMESET&&(t.insertionMode=F.AFTER_FRAMESET))}function J$(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.NOFRAMES:{Pa(t,e);break}}}function eB(t,e){e.tagID===g.HTML&&(t.insertionMode=F.AFTER_AFTER_FRAMESET)}function tB(t,e){e.tagID===g.HTML?on(t,e):Gc(t,e)}function Gc(t,e){t.insertionMode=F.IN_BODY,A1(t,e)}function rB(t,e){switch(e.tagID){case g.HTML:{on(t,e);break}case g.NOFRAMES:{Pa(t,e);break}}}function nB(t,e){e.chars=sr,t._insertCharacters(e)}function aB(t,e){t._insertCharacters(e),t.framesetOk=!1}function oy(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==de.HTML&&t.openElements.currentTagId!==void 0&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function sB(t,e){if(wD(e))oy(t),t._startTagOutsideForeignContent(e);else{const r=t._getAdjustedCurrentElement(),n=t.treeAdapter.getNamespaceURI(r);n===de.MATHML?Uv(e):n===de.SVG&&(_D(e),qv(e)),$2(e),e.selfClosing?t._appendElement(e,n):t._insertElement(e,n),e.ackSelfClosing=!0}}function iB(t,e){if(e.tagID===g.P||e.tagID===g.BR){oy(t),t._endTagOutsideForeignContent(e);return}for(let r=t.openElements.stackTop;r>0;r--){const n=t.openElements.items[r];if(t.treeAdapter.getNamespaceURI(n)===de.HTML){t._endTagOutsideForeignContent(e);break}const a=t.treeAdapter.getTagName(n);if(a.toLowerCase()===e.tagName){e.tagName=a,t.openElements.shortenToLength(r);break}}}X.AREA,X.BASE,X.BASEFONT,X.BGSOUND,X.BR,X.COL,X.EMBED,X.FRAME,X.HR,X.IMG,X.INPUT,X.KEYGEN,X.LINK,X.META,X.PARAM,X.SOURCE,X.TRACK,X.WBR;function oB(t,e){return Zv.parse(t,e)}function lB(t,e,r){typeof t=="string"&&(r=e,e=t,t=null);const n=Zv.getFragmentParser(t,r);return n.tokenizer.write(e,!0),n.getFragment()}const uB=/["&'<>`]/g,cB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dB=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,fB=/[|\\{}()[\]^$+*?.]/g,xg=new WeakMap;function hB(t,e){if(t=t.replace(e.subset?pB(e.subset):uB,n),e.subset||e.escapeOnly)return t;return t.replace(cB,r).replace(dB,n);function r(a,s,i){return e.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(s+2),e)}function n(a,s,i){return e.format(a.charCodeAt(0),i.charCodeAt(s+1),e)}}function pB(t){let e=xg.get(t);return e||(e=mB(t),xg.set(t,e)),e}function mB(t){const e=[];let r=-1;for(;++r",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:"€"},_B=["cent","copy","divide","gt","lt","not","para","times"],ly={}.hasOwnProperty,dp={};let Sc;for(Sc in Df)ly.call(Df,Sc)&&(dp[Df[Sc]]=Sc);const EB=/[^\dA-Za-z]/;function xB(t,e,r,n){const a=String.fromCharCode(t);if(ly.call(dp,a)){const s=dp[a],i="&"+s;return r&&wB.includes(s)&&!_B.includes(s)&&(!n||e&&e!==61&&EB.test(String.fromCharCode(e)))?i:i+";"}return""}function TB(t,e,r){let n=bB(t,e,r.omitOptionalSemicolons),a;if((r.useNamedReferences||r.useShortestReferences)&&(a=xB(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!a)&&r.useShortestReferences){const s=yB(t,e,r.omitOptionalSemicolons);s.length|^->||--!>|"],AB=["<",">"];function CB(t,e,r,n){return n.settings.bogusComments?"":"";function a(s){return Ll(s,Object.assign({},n.settings.characterReferences,{subset:AB}))}}function OB(t,e,r,n){return""}function Tg(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(e);for(;a!==-1;)n++,a=r.indexOf(e,a+e.length);return n}const Hr=cy(1),uy=cy(-1),MB=[];function cy(t){return e;function e(r,n,a){const s=r?r.children:MB;let i=(n||0)+t,o=s[i];if(!a)for(;o&&I2(o);)i+=t,o=s[i];return o}}const NB={}.hasOwnProperty;function dy(t){return e;function e(r,n,a){return NB.call(t,r.tagName)&&t[r.tagName](r,n,a)}}const j2=dy({body:IB,caption:$f,colgroup:$f,dd:$B,dt:DB,head:$f,html:RB,li:PB,optgroup:BB,option:HB,p:LB,rp:kg,rt:kg,tbody:jB,td:Sg,tfoot:zB,th:Sg,thead:FB,tr:UB});function $f(t,e,r){const n=Hr(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&I2(n.value.charAt(0)))}function RB(t,e,r){const n=Hr(r,e);return!n||n.type!=="comment"}function IB(t,e,r){const n=Hr(r,e);return!n||n.type!=="comment"}function LB(t,e,r){const n=Hr(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function PB(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&n.tagName==="li"}function DB(t,e,r){const n=Hr(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function $B(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function kg(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function BB(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function HB(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function FB(t,e,r){const n=Hr(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function jB(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function zB(t,e,r){return!Hr(r,e)}function UB(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function Sg(t,e,r){const n=Hr(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const qB=dy({body:WB,colgroup:GB,head:ZB,html:VB,tbody:YB});function VB(t){const e=Hr(t,-1);return!e||e.type!=="comment"}function ZB(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function WB(t){const e=Hr(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&I2(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function GB(t,e,r){const n=uy(r,e),a=Hr(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&j2(n,r.children.indexOf(n),r)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function YB(t,e,r){const n=uy(r,e),a=Hr(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&j2(n,r.children.indexOf(n),r)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Ac={name:[[` \f\r &/=>`.split(""),` \f\r "&'/=>\``.split("")],[`\0 \f\r "&'/<=>`.split(""),`\0 \f\r "&'/<=>\``.split("")]],unquoted:[[` \f\r &>`.split(""),`\0 \f\r "&'<=>\``.split("")],[`\0 \f\r "&'<=>\``.split(""),`\0 \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function KB(t,e,r,n){const a=n.schema,s=a.space==="svg"?!1:n.settings.omitOptionalTags;let i=a.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const o=[];let l;a.space==="html"&&t.tagName==="svg"&&(n.schema=Yu);const u=QB(n,t.properties),c=n.all(a.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=a,c&&(i=!1),(u||!s||!qB(t,e,r))&&(o.push("<",t.tagName,u?" "+u:""),i&&(a.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!i&&(!s||!j2(t,e,r))&&o.push(""),o.join("")}function QB(t,e){const r=[];let n=-1,a;if(e){for(a in e)if(e[a]!==null&&e[a]!==void 0){const s=XB(t,a,e[a]);s&&r.push(s)}}for(;++nTg(r,t.alternative)&&(i=t.alternative),o=i+Ll(r,Object.assign({},t.settings.characterReferences,{subset:(i==="'"?Ac.single:Ac.double)[a][s],attribute:!0}))+i),l+(o&&"="+o))}const JB=["<","&"];function fy(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:Ll(t.value,Object.assign({},n.settings.characterReferences,{subset:JB}))}function eH(t,e,r,n){return n.settings.allowDangerousHtml?t.value:fy(t,e,r,n)}function tH(t,e,r,n){return n.all(t)}const rH=NP("type",{invalid:nH,unknown:aH,handlers:{comment:CB,doctype:OB,element:KB,raw:eH,root:tH,text:fy}});function nH(t){throw new Error("Expected node, not `"+t+"`")}function aH(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const sH={},iH={},oH=[];function lH(t,e){const r=e||sH,n=r.quote||'"',a=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:uH,all:cH,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||RP,characterReferences:r.characterReferences||iH,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Yu:k1,quote:n,alternative:a}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function uH(t,e,r){return rH(t,e,r,this)}function cH(t){const e=[],r=t&&t.children||oH;let n=-1;for(;++n"u"||t.call(u,h)},i=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return Bf=function l(){var u,c,d,h,f,m,p=arguments[0],b=1,y=arguments.length,x=!1;for(typeof p=="boolean"&&(x=p,p=arguments[1]||{},b=2),(p==null||typeof p!="object"&&typeof p!="function")&&(p={});bi.length;let l;o&&i.push(a);try{l=t.apply(this,i)}catch(u){const c=u;if(o&&r)throw c;return a(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,a):l instanceof Error?a(l):s(l))}function a(i,...o){r||(r=!0,e(i,...o))}function s(i){a(null,i)}}class wn extends Error{constructor(e,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",s={},i=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof e=="string"?a=e:!s.cause&&e&&(i=!0,a=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?s.ruleId=n:(s.source=n.slice(0,l),s.ruleId=n.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=fH(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}wn.prototype.file="";wn.prototype.name="";wn.prototype.reason="";wn.prototype.message="";wn.prototype.stack="";wn.prototype.column=void 0;wn.prototype.line=void 0;wn.prototype.ancestors=void 0;wn.prototype.cause=void 0;wn.prototype.fatal=void 0;wn.prototype.place=void 0;wn.prototype.ruleId=void 0;wn.prototype.source=void 0;const is={basename:bH,dirname:vH,extname:yH,join:wH,sep:"/"};function bH(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Qu(t);let r=0,n=-1,a=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;a--;)if(t.codePointAt(a)===47){if(s){r=a+1;break}}else n<0&&(s=!0,n=a+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let i=-1,o=e.length-1;for(;a--;)if(t.codePointAt(a)===47){if(s){r=a+1;break}}else i<0&&(s=!0,i=a+1),o>-1&&(t.codePointAt(a)===e.codePointAt(o--)?o<0&&(n=a):(o=-1,n=i));return r===n?n=i:n<0&&(n=t.length),t.slice(r,n)}function vH(t){if(Qu(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function yH(t){Qu(t);let e=t.length,r=-1,n=0,a=-1,s=0,i;for(;e--;){const o=t.codePointAt(e);if(o===47){if(i){n=e+1;break}continue}r<0&&(i=!0,r=e+1),o===46?a<0?a=e:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||r<0||s===0||s===1&&a===r-1&&a===n+1?"":t.slice(a,r)}function wH(...t){let e=-1,r;for(;++e0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function EH(t,e){let r="",n=0,a=-1,s=0,i=-1,o,l;for(;++i<=t.length;){if(i2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),a=i,s=0;continue}}else if(r.length>0){r="",n=0,a=i,s=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(a+1,i):r=t.slice(a+1,i),n=i-a-1;a=i,s=0}else o===46&&s>-1?s++:s=-1}return r}function Qu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const xH={cwd:TH};function TH(){return"/"}function pp(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function kH(t){if(typeof t=="string")t=new URL(t);else if(!pp(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return SH(t)}function SH(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r0){let[f,...m]=c;const p=n[h][1];hp(p)&&hp(f)&&(f=Hf(!0,p,f)),n[h]=[u,f,...m]}}}}const MH=new z2().freeze();function Uf(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function qf(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Vf(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rg(t){if(!hp(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ig(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Cc(t){return NH(t)?t:new mp(t)}function NH(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function RH(t){return typeof t=="string"||IH(t)}function IH(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const LH={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before ``",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `