@vuebro/runtime 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +10 -10
- package/dist/assets/{MultiView-Dsld-pl0.js → MultiView-Gi_5oH4O.js} +1 -1
- package/dist/assets/{NotFoundView-BuLyKdgl.js → NotFoundView-CPdPVs5_.js} +1 -1
- package/dist/assets/{SingleView-yylbPPzP.js → SingleView-CxcnGccL.js} +1 -1
- package/dist/assets/compiler-sfc-DUpFnHsr.js +183 -0
- package/dist/assets/index-wkYbpwJe.js +415 -0
- package/dist/assets/vue.esm-browser.prod-3.5.16.js +12 -0
- package/dist/index.html +2 -2
- package/package.json +20 -20
- package/dist/assets/compiler-sfc-BpcYqFg-.js +0 -183
- package/dist/assets/index-BuxVArEL.js +0 -413
- package/dist/assets/vue.esm-browser.prod-3.5.14.js +0 -12
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MultiView-Gi_5oH4O.js","./sucrase-DTaNgZ3p.js","./compiler-sfc-DUpFnHsr.js","./SingleView-CxcnGccL.js","./NotFoundView-CPdPVs5_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Ll=Object.defineProperty;var Dl=(e,t,r)=>t in e?Ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ne=(e,t,r)=>Dl(e,typeof t!="symbol"?t+"":t,r);import{toValue as ve,isRef as It,hasInjectionContext as ql,inject as Vl,ref as Je,watchEffect as Ul,getCurrentInstance as Co,onBeforeUnmount as Hl,onDeactivated as Wl,onActivated as Kl,reactive as it,unref as tc,getCurrentScope as Bl,onScopeDispose as Gl,onMounted as jo,nextTick as Po,watch as Ye,computed as de,shallowRef as Xe,readonly as Jl,isReactive as Xl,defineComponent as rc,onUnmounted as Yl,h as ii,resolveComponent as Ql,createBlock as si,openBlock as ai,withCtx as Zl,resolveDynamicComponent as eu,defineAsyncComponent as tu,createApp as ru}from"vue";import{g as dn,r as nu,t as ci}from"./sucrase-DTaNgZ3p.js";import{useRoute as ou,createRouter as iu,createWebHistory as su}from"vue-router";import{p as au,c as cu,a as lu,b as uu}from"./compiler-sfc-DUpFnHsr.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();const fu="modulepreload",du=function(e,t){return new URL(e,t).href},li={},Ge=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let s=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const a=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=s(r.map(l=>{if(l=du(l,n),l in li)return;li[l]=!0;const p=l.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(!!n)for(let m=a.length-1;m>=0;m--){const d=a[m];if(d.href===l&&(!p||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":fu,p||(g.as="script"),g.crossOrigin="",g.href=l,u&&g.setAttribute("nonce",u),document.head.appendChild(g),p)return new Promise((m,d)=>{g.addEventListener("load",m),g.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function io(e,t={},r){for(const n in e){const o=e[n],i=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?io(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const pu={run:e=>e()},hu=()=>pu,nc=typeof console.createTask<"u"?console.createTask:hu;function mu(e,t){const r=t.shift(),n=nc(r);return e.reduce((o,i)=>o.then(()=>n.run(()=>i(...t))),Promise.resolve())}function gu(e,t){const r=t.shift(),n=nc(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function Sn(e,t){for(const r of[...e])r(t)}class yu{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!n.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,o=(...i)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...i));return n=this.hook(t,o),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const o of n)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=io(t),n=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of n.splice(0,n.length))o()}}removeHooks(t){const r=io(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(mu,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(gu,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Sn(this._before,o);const i=t(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&o&&Sn(this._after,o)}):(this._after&&o&&Sn(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function bu(){return new yu}const vu=new Set(["link","style","script","noscript"]),$u=new Set(["title","titleTemplate","script","style","noscript"]),ui=new Set(["base","meta","link","style","script","noscript"]),wu=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),ku=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),_u=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),xu=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Oo=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Su=["name","property","http-equiv"];function oc(e){const t=e.split(":");return t.length?Oo.has(t[1]):!1}function so(e){const{props:t,tag:r}=e;if(ku.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of Su)if(t[n]!==void 0)return`${r}:${t[n]}`}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if($u.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function fi(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`}function Jr(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let o;if(t&&(o=t(r,e)),Array.isArray(o))return o.map(i=>Jr(i,t));if((o==null?void 0:o.constructor)===Object){const i={};for(const s of Object.keys(o))i[s]=Jr(o[s],t,s);return i}return o}function Eu(e,t){const r=e==="style"?new Map:new Set;function n(o){const i=o.trim();if(i)if(e==="style"){const[s,...a]=i.split(":").map(c=>c.trim());s&&a.length&&r.set(s,a.join(":"))}else i.split(" ").filter(Boolean).forEach(s=>r.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(o=>n(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,i])=>{i&&i!=="false"&&(e==="style"?r.set(o.trim(),i):n(o))}),r}function ic(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=Eu(r,n);return}if(_u.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let s=t.type;if(t.type||(s="application/json"),!(s!=null&&s.endsWith("json"))&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),i=r.startsWith("data-");o==="true"||o===""?e.props[r]=i?o:!0:!n&&i&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function Cu(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=ic({tag:e,props:{}},r);return n.key&&vu.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(o=>({...n,props:{...n.props,content:o}})):n}function ju(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,i)=>{for(let s=0;s<t.length;s++)i=t[s](o,i);return i};e=r(void 0,e);const n=[];return e=Jr(e,r),Object.entries(e||{}).forEach(([o,i])=>{if(i!==void 0)for(const s of Array.isArray(i)?i:[i])n.push(Cu(o,s))}),n.flat()}const di=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,pi={base:-10,title:10},Pu={critical:-8,high:-1,low:2},hi={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}},Ou=/@import/,wt=e=>e===""||e===!0;function Ru(e,t){var i;if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=Pu[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:hi;if(t.tag in pi)r=pi[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(r=hi.meta[s])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?wt(t.props.async)?r=o.script.async:t.props.src&&!wt(t.props.defer)&&!wt(t.props.async)&&t.props.type!=="module"&&!((i=t.props.type)!=null&&i.endsWith("json"))?r=o.script.sync:wt(t.props.defer)&&t.props.src&&!wt(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&Ou.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function mi(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function Au(e={}){var a;const t=bu();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,i=[],s={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:c=>mi(s,c),push(c,u){const l={...u||{}};delete l.head;const p=l._index??s._entryCount++,b={_i:p,input:c,options:l},v={_poll(g=!1){s.dirty=!0,!g&&i.push(p),t.callHook("entries:updated",s)},dispose(){n.delete(p)&&v._poll(!0)},patch(g){(!l.mode||l.mode==="server"&&r||l.mode==="client"&&!r)&&(b.input=g,n.set(p,b),v._poll())}};return v.patch(c),v},async resolveTags(){var v;const c={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",c);i.length;){const g=i.shift(),m=n.get(g);if(m){const d={tags:ju(m.input,e.propResolvers||[]).map(h=>Object.assign(h,m.options)),entry:m};await t.callHook("entries:normalize",d),m._tags=d.tags.map((h,f)=>(h._w=Ru(s,h),h._p=(m._i<<10)+f,h._d=so(h),h))}}let u=!1;c.entries.flatMap(g=>(g._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(di).reduce((g,m)=>{const d=String(m._d||m._p);if(!g.has(d))return g.set(d,m);const h=g.get(d);if(((m==null?void 0:m.tagDuplicateStrategy)||(xu.has(m.tag)?"merge":null)||(m.key&&m.key===h.key?"merge":null))==="merge"){const y={...h.props};Object.entries(m.props).forEach(([$,k])=>y[$]=$==="style"?new Map([...h.props.style||new Map,...k]):$==="class"?new Set([...h.props.class||new Set,...k]):k),g.set(d,{...m,props:y})}else m._p>>10===h._p>>10&&m.tag==="meta"&&oc(d)?(g.set(d,Object.assign([...Array.isArray(h)?h:[h],m],m)),u=!0):(m._w===h._w?m._p>h._p:(m==null?void 0:m._w)<(h==null?void 0:h._w))&&g.set(d,m);return g},c.tagMap);const l=c.tagMap.get("title"),p=c.tagMap.get("titleTemplate");if(s._title=l==null?void 0:l.textContent,p){const g=p==null?void 0:p.textContent;if(s._titleTemplate=g,g){let m=typeof g=="function"?g(l==null?void 0:l.textContent):g;typeof m=="string"&&!s.plugins.has("template-params")&&(m=m.replace("%s",(l==null?void 0:l.textContent)||"")),l?m===null?c.tagMap.delete("title"):c.tagMap.set("title",{...l,textContent:m}):(p.tag="title",p.textContent=m)}}c.tags=Array.from(c.tagMap.values()),u&&(c.tags=c.tags.flat().sort(di)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const b=[];for(const g of c.tags){const{innerHTML:m,tag:d,props:h}=g;if(wu.has(d)&&!(Object.keys(h).length===0&&!g.innerHTML&&!g.textContent)&&!(d==="meta"&&!h.content&&!h["http-equiv"]&&!h.charset)){if(d==="script"&&m){if((v=h.type)!=null&&v.endsWith("json")){const f=typeof m=="string"?m:JSON.stringify(m);g.innerHTML=f.replace(/</g,"\\u003C")}else typeof m=="string"&&(g.innerHTML=m.replace(new RegExp(`</${d}`,"g"),`<\\/${d}`));g._d=so(g)}b.push(g)}}return b}};return((e==null?void 0:e.plugins)||[]).forEach(c=>mi(s,c)),s.hooks.callHook("init",s),(a=e.init)==null||a.forEach(c=>c&&s.push(c)),s}async function sc(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var v;const i=new Map,s=new Promise(g=>{e.resolveTags().then(m=>{g(m.map(d=>{const h=i.get(d._d)||0,f={tag:d,id:(h?`${d._d}:${h}`:d._d)||fi(d),shouldRender:!0};return d._d&&oc(d._d)&&i.set(d._d,h+1),f}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const g of["body","head"]){const m=(v=r[g])==null?void 0:v.children;for(const d of m){const h=d.tagName.toLowerCase();if(!ui.has(h))continue;const f=ic({tag:h,props:{}},{innerHTML:d.innerHTML,...d.getAttributeNames().reduce((y,$)=>(y[$]=d.getAttribute($),y),{})||{}});if(f.key=d.getAttribute("data-hid")||void 0,f._d=so(f)||fi(f),a.elMap.has(f._d)){let y=1,$=f._d;for(;a.elMap.has($);)$=`${f._d}:${y++}`;a.elMap.set($,d)}else a.elMap.set(f._d,d)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(g,m,d){const h=`${g}:${m}`;a.sideEffects[h]=d,delete a.pendingSideEffects[h]}function u({id:g,$el:m,tag:d}){const h=d.tag.endsWith("Attrs");a.elMap.set(g,m),h||(d.textContent&&d.textContent!==m.textContent&&(m.textContent=d.textContent),d.innerHTML&&d.innerHTML!==m.innerHTML&&(m.innerHTML=d.innerHTML),c(g,"el",()=>{m==null||m.remove(),a.elMap.delete(g)}));for(const f in d.props){if(!Object.prototype.hasOwnProperty.call(d.props,f))continue;const y=d.props[f];if(f.startsWith("on")&&typeof y=="function"){const k=m==null?void 0:m.dataset;if(k&&k[`${f}fired`]){const w=f.slice(0,-5);y.call(m,new Event(w.substring(2)))}m.getAttribute(`data-${f}`)!==""&&((d.tag==="bodyAttrs"?r.defaultView:m).addEventListener(f.substring(2),y.bind(m)),m.setAttribute(`data-${f}`,""));continue}const $=`attr:${f}`;if(f==="class"){if(!y)continue;for(const k of y)h&&c(g,`${$}:${k}`,()=>m.classList.remove(k)),!m.classList.contains(k)&&m.classList.add(k)}else if(f==="style"){if(!y)continue;for(const[k,w]of y)c(g,`${$}:${k}`,()=>{m.style.removeProperty(k)}),m.style.setProperty(k,w)}else y!==!1&&y!==null&&(m.getAttribute(f)!==y&&m.setAttribute(f,y===!0?"":String(y)),h&&c(g,$,()=>m.removeAttribute(f)))}}const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},b=await s;for(const g of b){const{tag:m,shouldRender:d,id:h}=g;if(d){if(m.tag==="title"){r.title=m.textContent,c("title","",()=>r.title=a.title);continue}g.$el=g.$el||a.elMap.get(h),g.$el?u(g):ui.has(m.tag)&&l.push(g)}}for(const g of l){const m=g.tag.tagPosition||"head";g.$el=r.createElement(g.tag.tag),u(g),p[m]=p[m]||r.createDocumentFragment(),p[m].appendChild(g.$el)}for(const g of b)await e.hooks.callHook("dom:renderTag",g,r,c);p.head&&r.head.appendChild(p.head),p.bodyOpen&&r.body.insertBefore(p.bodyOpen,r.body.firstChild),p.bodyClose&&r.body.appendChild(p.bodyClose);for(const g in a.pendingSideEffects)a.pendingSideEffects[g]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:b}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Tu(e={}){var n,o,i;const t=((n=e.domOptions)==null?void 0:n.render)||sc;e.document=e.document||(typeof window<"u"?document:void 0);const r=((i=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:i.innerHTML)||!1;return Au({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function Nu(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}const Ft={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"])},Iu={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"},ac={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Ve(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?Ve(e):`${Ve(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Ve(e)} ${t}`}},charset:{}};function Ve(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return r===-1?t:Ft.META.has(t.slice(0,r))||Ft.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function cc(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function ao(e){return Array.isArray(e)?e.map(ao):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[Ve(t),ao(r)]))}function lc(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:o,resolve:i}=t;return Object.entries(e).map(([s,a])=>{if(i){const u=i({key:s,value:a});if(u!==void 0)return u}const c=typeof a=="object"?lc(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${s}${n}${c}`}).join(r)}function gi(e,t){const r=cc(t),n=Ve(e),o=uc(n);if(!Oo.has(n))return[{[o]:n,...r}];const i=Object.fromEntries(Object.entries(r).map(([s,a])=>[`${e}${s==="url"?"":`${s[0].toUpperCase()}${s.slice(1)}`}`,a]));return Xr(i||{}).sort((s,a)=>{var c,u;return(((c=s[o])==null?void 0:c.length)||0)-(((u=a[o])==null?void 0:u.length)||0)})}function uc(e){var n;if(((n=ac[e])==null?void 0:n.metaKey)==="http-equiv"||Ft.HTTP_EQUIV.has(e))return"http-equiv";const t=Ve(e),r=t.indexOf(":");return r===-1?"name":Ft.OG.has(t.slice(0,r))?"property":"name"}function Mu(e){return Iu[e]||Ve(e)}function Fu(e,t){var r;return t==="refresh"?`${e.seconds};url=${e.url}`:lc(ao(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:o})=>n===null?"":typeof n=="boolean"?o:void 0,...(r=ac[t])==null?void 0:r.unpack})}function Xr(e){const t=[],r={};for(const[o,i]of Object.entries(e)){if(Array.isArray(i)){if(o==="themeColor"){i.forEach(s=>{typeof s=="object"&&s!==null&&t.push({name:"theme-color",...s})});continue}for(const s of i)if(typeof s=="object"&&s!==null){const a=[],c=[];for(const[u,l]of Object.entries(s)){const p=`${o}${u==="url"?"":`:${u}`}`,b=Xr({[p]:l});(u==="url"?a:c).push(...b)}t.push(...a,...c)}else t.push(...typeof s=="string"?Xr({[o]:s}):gi(o,s));continue}if(typeof i=="object"&&i)if(Ft.MEDIA.has(o)){const s=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),c=s==="twitter"?"name":"property";i.url&&t.push({[c]:`${s}:${a}`,content:i.url}),i.secureUrl&&t.push({[c]:`${s}:${a}:secure_url`,content:i.secureUrl});for(const[u,l]of Object.entries(i))u!=="url"&&u!=="secureUrl"&&t.push({[c]:`${s}:${a}:${u}`,content:l})}else Oo.has(Ve(o))?t.push(...gi(o,i)):r[o]=cc(i);else r[o]=i}const n=Object.entries(r).map(([o,i])=>{if(o==="charset")return{charset:i===null?"_null":i};const s=uc(o),a=Mu(o),c=i===null?"_null":typeof i=="object"?Fu(i,o):typeof i=="number"?i.toString():i;return s==="http-equiv"?{"http-equiv":a,content:c}:{[s]:a,content:c}});return[...t,...n].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const zu={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(Xr(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},Lu=(e,t)=>It(t)?ve(t):t,fc="usehead";function Du(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(fc,e)}}.install}function dc(){if(ql()){const e=Vl(fc);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function pc(e,t={}){const r=t.head||dc();return r.ssr?r.push(e||{},t):qu(r,e,t)}function qu(e,t,r={}){const n=Je(!1);let o;return Ul(()=>{const s=n.value?{}:Jr(t,Lu);o?o.patch(s):o=e.push(s,r)}),Co()&&(Hl(()=>{o.dispose()}),Wl(()=>{n.value=!0}),Kl(()=>{n.value=!1})),o}function Vu(e={},t={}){(t.head||dc()).use(zu);const{title:n,titleTemplate:o,...i}=e;return pc({title:n,titleTemplate:o,_flatMeta:i},t)}function Uu(e={}){const t=Tu({domOptions:{render:Nu(()=>sc(t),r=>setTimeout(r,0))},...e});return t.install=Du(t),t}const qr="default",co="preflights",Hu="shortcuts",hc="imports",Wu={[hc]:-200,[co]:-100,[Hu]:-10,[qr]:0},mc=/[\\:]?[\s'"`;{}]+/g;function Ku(e){return e.split(mc)}const Bu={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ku(e)}};function ae(e=[]){return Array.isArray(e)?e:[e]}function Me(e){return Array.from(new Set(e))}function yi(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function ce(e){return typeof e=="string"}class gc extends Set{constructor(r){super();Ne(this,"_map",new Map);if(r)for(const n of r)this.add(n)}add(r){return this._map.set(r,(this._map.get(r)??0)+1),super.add(r)}delete(r){return this._map.has(r)?(this._map.delete(r),super.delete(r)):!1}clear(){this._map.clear(),super.clear()}getCount(r){return this._map.get(r)??0}setCount(r,n){return this._map.set(r,n),super.add(r)}}function En(e){return e instanceof gc}function zt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function pt(e){const t=e.length;let r=-1,n,o="";const i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="�";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}const Cn=pt;function Gu(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}const Ju=/^\[(.+?)~?="(.*)"\]$/,Xu=/[\w\u00A0-\uFFFF%-?]/;function Yu(e){return e.match(Ju)}function lo(e=""){return Xu.test(e)}function Qu(e){return typeof e=="function"?{match:e}:e}function bi(e){return e.length===3}function Vr(e){return e!=null}function Zu(){}class ef{constructor(){Ne(this,"_map",new Map)}get(t,r){const n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}}class tf extends Map{getFallback(t,r){const n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){const r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){const r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}}function Yr(e){return ce(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function vi(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Yr(t)):[e]:[Yr(e)]}function rf(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function jn(e){return e==null?"":rf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Bt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function pn(e,t,r=!1){const n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];const i={...n};return Bt(n)&&Bt(o)&&Object.keys(o).forEach(s=>{Bt(n[s])&&Bt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=pn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Ur(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Ur(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ur(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Ur(n):n;return r}return e}function nf(e){return ce(e[0])}function of(e){return ce(e[0])}const Gt={};function sf(e=["-",":"]){const t=e.join("|");return Gt[t]||(Gt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Gt[t].lastIndex=0,Gt[t]}function af(e,t=["-",":"],r=5){const n=sf(t);let o,i=e.toString();const s=new Set,a=new Map;do o=!1,i=i.replace(n,(u,l,p,b,v)=>{var d;if(!t.includes(p))return u;o=!0,s.add(l+p);const g=v+l.length+p.length+1,m={length:u.length,items:[]};a.set(v,m);for(const h of[...b.matchAll(/\S+/g)]){const f=g+h.index;let y=(d=a.get(f))==null?void 0:d.items;y?a.delete(f):y=[{offset:f,length:h[0].length,className:h[0]}];for(const $ of y)$.className=$.className==="~"?l:$.className.replace(/^(!?)(.*)/,`$1${l}${p}$2`),m.items.push($)}return"$".repeat(u.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let u=0;for(const[l,p]of a)c+=e.slice(u,l),c+=p.items.map(b=>b.className).join(" "),u=l+p.length;c+=e.slice(u)}else{c=e;for(const[u,l]of a)c.overwrite(u,u+l.length,l.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function cf(e,t=["-",":"],r=5){const n=af(e,t,r);return typeof e=="string"?n.expanded:e}const $i=new Set;function yc(e){$i.has(e)||(console.warn("[unocss]",e),$i.add(e))}function bc(e){return ae(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const wi="_uno_resolved";async function lf(e){var n;let t=typeof e=="function"?await e():await e;if(wi in t)return t;t={...t},Object.defineProperty(t,wi,{value:!0,enumerable:!1});const r=t.shortcuts?bc(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){const o=i=>{i[2]||(i[2]={});const s=i[2];s.prefix==null&&t.prefix&&(s.prefix=ae(t.prefix)),s.layer==null&&t.layer&&(s.layer=t.layer)};r==null||r.forEach(o),(n=t.rules)==null||n.forEach(o)}return t}async function vc(e){const t=await lf(e);if(!t.presets)return[t];const r=(await Promise.all((t.presets||[]).flatMap(ae).flatMap(vc))).flat();return[t,...r]}function uf(e){var c,u;if(e.length===0)return{};const t=[],r=[];let n=!1;const o=[],i=[],s=[];for(const l of e){if(l.pipeline===!1){n=!0;break}else(c=l.pipeline)!=null&&c.include&&t.push(l.pipeline.include),(u=l.pipeline)!=null&&u.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}const a={pipeline:n?!1:{include:Me(_i(...t)),exclude:Me(_i(...r))}};return o.length&&(a.filesystem=Me(o.flat())),i.length&&(a.inline=Me(i.flat())),s.length&&(a.plain=Me(s.flat())),a}async function ki(e={},t={}){var w,_;const r=Object.assign({},t,e),n=yi((await Promise.all((r.presets||[]).flatMap(ae).flatMap(vc))).flat(),(S,j)=>S.name===j.name),o=[...n.filter(S=>S.enforce==="pre"),...n.filter(S=>!S.enforce),...n.filter(S=>S.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Wu,...i.map(S=>S.layers));function c(S){return Me(i.flatMap(j=>ae(j[S]||[])))}const u=c("extractors");let l=(w=s.find(S=>S.extractorDefault!==void 0))==null?void 0:w.extractorDefault;l===void 0&&(l=Bu),l&&!u.includes(l)&&u.unshift(l),u.sort((S,j)=>(S.order||0)-(j.order||0));const p=c("rules"),b={},v=p.length,g=p.filter(S=>{var N;return nf(S)?(ae(((N=S[2])==null?void 0:N.prefix)||"").forEach(z=>{b[z+S[0]]=S}),!1):!0}).reverse();let m=ff(i.map(S=>S.theme));const d=c("extendTheme");for(const S of d)m=S(m)||m;const h={templates:Me(i.flatMap(S=>{var j;return ae((j=S.autocomplete)==null?void 0:j.templates)})),extractors:i.flatMap(S=>{var j;return ae((j=S.autocomplete)==null?void 0:j.extractors)}).sort((S,j)=>(S.order||0)-(j.order||0)),shorthands:df(i.map(S=>{var j;return((j=S.autocomplete)==null?void 0:j.shorthands)||{}}))};let f=c("separators");f.length||(f=[":","-"]);const y=c("content"),$=uf(y),k={mergeSelectors:!0,warn:!0,sortLayers:S=>S,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rules:p,rulesSize:v,rulesDynamic:g,rulesStaticMap:b,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:h,variants:c("variants").map(Qu).sort((S,j)=>(S.order||0)-(j.order||0)),shortcuts:bc(c("shortcuts")).reverse(),extractors:u,safelist:c("safelist"),separators:f,details:r.details??r.envMode==="dev",content:$,transformers:yi(c("transformers"),(S,j)=>S.name===j.name)};for(const S of i)(_=S==null?void 0:S.configResolved)==null||_.call(S,k);return k}function ff(e){return e.map(t=>t?Ur(t):{}).reduce((t,r)=>pn(t,r),{})}function df(e){return e.reduce((t,r)=>{const n={};for(const o in r){const i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function _i(...e){return e.flatMap(pf)}function pf(e){return Array.isArray(e)?e:e?[e]:[]}const hf="66.1.3",Ee={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"};class Ro{constructor(t={},r={}){Ne(this,"version",hf);Ne(this,"events",Gu());Ne(this,"config");Ne(this,"cache",new Map);Ne(this,"blocked",new Set);Ne(this,"parentOrders",new Map);Ne(this,"activatedRules",new Set);this.userConfig=t,this.defaults=r}static async create(t={},r={}){const n=new Ro(t,r);return n.config=await ki(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await ki(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){var i;const o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(const s of this.config.extractors){const a=await((i=s.extract)==null?void 0:i.call(s,o));if(a)if(En(a)&&En(n))for(const c of a)n.setCount(c,n.getCount(c)+a.getCount(c));else for(const c of a)n.add(c)}return n}makeContext(t,r){const n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ee,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;const n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(const c of this.config.preprocess)o=c(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}const i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}const s=async c=>{var b;const u=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(u.variants=[...c[3]]);const l=await this.expandShortcut(u.currentSelector,u);return l?await this.stringifyShortcuts(u.variantMatch,u,l[0],l[1]):(b=await this.parseUtil(u.variantMatch,u))==null?void 0:b.map(v=>this.stringifyUtil(v,u)).filter(Vr)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a!=null&&a.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){const{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,u=ce(t)?await this.applyExtractors(t,n,c?new gc:new Set):Array.isArray(t)?new Set(t):t;if(s){const _={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(_):S).forEach(S=>{const j=S.trim();j&&!u.has(j)&&u.add(j)})}const l=a?"":`
|
|
3
|
+
`,p=new Set([qr]),b=c?new Map:new Set,v=new Map;let g={};const m=Array.from(u).map(async _=>{var j;if(b.has(_))return;const S=await this.parseToken(_);if(S!=null){b instanceof Map?b.set(_,{data:S,count:En(u)?u.getCount(_):-1}):b.add(_);for(const N of S){const z=N[3]||"",V=(j=N[4])==null?void 0:j.layer;v.has(z)||v.set(z,[]),v.get(z).push(N),V&&p.add(V)}}});await Promise.all(m),await(async()=>{if(!i)return;const _={generator:this,theme:this.config.theme},S=new Set([]);this.config.preflights.forEach(({layer:j=co})=>{p.add(j),S.add(j)}),g=Object.fromEntries(await Promise.all(Array.from(S).map(async j=>{const z=(await Promise.all(this.config.preflights.filter(V=>(V.layer||co)===j).map(async V=>await V.getCSS(_)))).filter(Boolean).join(l);return[j,z]})))})();const d=this.config.sortLayers(Array.from(p).sort((_,S)=>(this.config.layers[_]??0)-(this.config.layers[S]??0)||_.localeCompare(S))),h={},f=this.config.outputToCssLayers,y=_=>{var j;let S=_;return typeof f=="object"&&(S=(j=f.cssLayerName)==null?void 0:j.call(f,_)),S===null?null:S??_},$=(_=qr)=>{if(h[_])return h[_];let S=Array.from(v).sort((z,V)=>{var q;return(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(V[0])??0)||((q=z[0])==null?void 0:q.localeCompare(V[0]||""))||0}).map(([z,V])=>{const q=V.length,G=V.filter(D=>{var X;return(((X=D[4])==null?void 0:X.layer)||qr)===_}).sort((D,X)=>{var I,O,M,R,x,E,T;return D[0]-X[0]||(((I=D[4])==null?void 0:I.sort)||0)-(((O=X[4])==null?void 0:O.sort)||0)||((x=(M=D[5])==null?void 0:M.currentSelector)==null?void 0:x.localeCompare(((R=X[5])==null?void 0:R.currentSelector)??""))||((E=D[1])==null?void 0:E.localeCompare(X[1]||""))||((T=D[2])==null?void 0:T.localeCompare(X[2]||""))||0}).map(([,D,X,,I,,O])=>[[[(D&&yf(D,o))??"",(I==null?void 0:I.sort)??0]],X,!!(O??(I==null?void 0:I.noMerge))]);if(!G.length)return;const se=G.reverse().map(([D,X,I],O)=>{if(!I&&this.config.mergeSelectors)for(let R=O+1;R<q;R++){const x=G[R];if(x&&!x[2]&&(D&&x[0]||D==null&&x[0]==null)&&x[1]===X)return D&&x[0]&&x[0].push(...D),null}const M=D?Me(D.sort((R,x)=>{var E;return R[1]-x[1]||((E=R[0])==null?void 0:E.localeCompare(x[0]||""))||0}).map(R=>R[0]).filter(Boolean)):[];return M.length?`${M.join(`,${l}`)}{${X}}`:X}).filter(Boolean),K=Array.from(new Set(se)).reverse().join(l);if(!z)return K;const J=z.split(" $$ ");return`${J.join("{")}{${l}${K}${l}${"}".repeat(J.length)}`}).filter(Boolean).join(l);i&&(S=[g[_],S].filter(Boolean).join(l));let j;f&&S&&(j=y(_),j!==null&&(S=`@layer ${j}{${l}${S}${l}}`));const N=a?"":`/* layer: ${_}${j&&j!==_?`, alias: ${j}`:""} */${l}`;return h[_]=S?N+S:""},k=(_=d,S)=>{const j=_.filter(N=>!(S!=null&&S.includes(N)));return[f&&j.length>0?`@layer ${j.map(y).filter(Vr).join(", ")};`:void 0,...j.map(N=>$(N)||"")].filter(Boolean).join(l)};return{get css(){return k()},layers:d,matched:b,getLayers:k,getLayer:$,setLayer:async(_,S)=>{const j=await S($(_));return h[_]=j,j}}}async matchVariants(t,r){const n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0;const[,,a,c]=i;for(;s;){s=!1;const u=i[1];for(const l of this.config.variants){if(!l.multiPass&&c.has(l))continue;let p=await l.match(u,n);if(p){if(ce(p)){if(p===u)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(l.multiPass)throw new Error("multiPass can not be used together with array return variants");const b=p.map(v=>{const g=v.matcher??u,m=[v,...a],d=new Set(c);return d.add(l),[i[0],g,m,d]});return(await Promise.all(b.map(v=>o(v)))).flat()}}i[1]=p.matcher??u,a.unshift(p),c.add(l),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){const i=r.slice().sort((u,l)=>(u.order||0)-(l.order||0)).reduceRight((u,l)=>p=>{var m,d;const b=((m=l.body)==null?void 0:m.call(l,p.entries))||p.entries,v=Array.isArray(l.parent)?l.parent:[l.parent,void 0],g=(d=l.selector)==null?void 0:d.call(l,p.selector,b);return(l.handle??bf)({...p,entries:b,selector:g||p.selector,parent:v[0]||p.parent,parentOrder:v[1]||p.parentOrder,layer:l.layer||p.layer,sort:l.sort||p.sort},u)},u=>u)({prefix:"",selector:wc(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);const c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(c);return c}constructCustomCSS(t,r,n){const o=Yr(r);if(ce(o))return o;const{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${jn(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){const i=ce(t)?await this.matchVariants(t):[t],s=async([c,u,l])=>{var v;this.config.details&&(r.rules=r.rules??[]);const p=this.config.rulesStaticMap[u];if(p&&p[1]&&(n||!((v=p[2])!=null&&v.internal))){this.config.details&&r.rules.push(p);const g=this.config.rules.indexOf(p),m=vi(p[1]).filter(h=>h.length),d=p[2];if(m.length)return r.generator.activatedRules.add(p),m.map(h=>ce(h)?[g,h,d]:[g,c,h,d,l])}r.variantHandlers=l;const{rulesDynamic:b}=this.config;for(const g of b){const[m,d,h]=g;if(h!=null&&h.internal&&!n)continue;let f=u;if(h!=null&&h.prefix){const w=ae(h.prefix);if(o){const _=ae(o);if(!w.some(S=>_.includes(S)))continue}else{const _=w.find(S=>u.startsWith(S));if(_==null)continue;f=u.slice(_.length)}}const y=f.match(m);if(!y)continue;let $=await d(y,r);if(!$)continue;if(this.config.details&&r.rules.push(g),typeof $!="string")if(Symbol.asyncIterator in $){const w=[];for await(const _ of $)_&&w.push(_);$=w}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(Vr));const k=vi($).filter(w=>w.length);if(k.length){r.generator.activatedRules.add(g);const w=this.config.rules.indexOf(g);return k.map(_=>{if(ce(_))return[w,_,h];let S=l,j=h;for(const N of _)N[0]===Ee.variants?typeof N[1]=="function"?S=N[1](S)||S:S=[...ae(N[1]),...S]:N[0]===Ee.parent?S=[{parent:N[1]},...S]:N[0]===Ee.selector?S=[{selector:N[1]},...S]:N[0]===Ee.layer?S=[{layer:N[1]},...S]:N[0]===Ee.sort?j={...j,sort:N[1]}:N[0]===Ee.noMerge&&(j={...j,noMerge:N[1]});return[w,c,_,j,S]})}}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(bi(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];const{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),u=jn(o);if(!u)return;const{layer:l,sort:p,...b}=t[3]??{},v={...b,layer:s??l,sort:a??p};return[t[0],n,u,i,v,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){var u;if(n===0)return;const o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Zu;let i,s,a,c;for(const l of this.config.shortcuts){let p=t;if((u=l[2])!=null&&u.prefix){const v=ae(l[2].prefix).find(g=>t.startsWith(g));if(v==null)continue;p=t.slice(v.length)}if(of(l)){if(l[0]===p){i=i||l[2],s=l[1],o(l);break}}else{const b=p.match(l[0]);if(b&&(s=l[1](b,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=Me(ae(s).filter(ce).map(l=>cf(l.trim()).split(/\s+/g)).flat()),c=ae(s).filter(l=>!ce(l)).map(l=>({handles:[],value:l}))),!s){const l=ce(t)?await this.matchVariants(t):[t];for(const p of l){const[b,v,g]=p;if(b!==v){const m=await this.expandShortcut(v,r,n-1);m&&(a=m[0].filter(ce).map(d=>b.replace(v,d)),c=m[0].filter(d=>!ce(d)).map(d=>({handles:[...d.handles,...g],value:d.value})))}}}if(!(!(a!=null&&a.length)&&!(c!=null&&c.length)))return[[await Promise.all(ae(a).map(async l=>{var p;return((p=await this.expandShortcut(l,r,n-1))==null?void 0:p[0])||[l]})),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var l;const i=new tf,s=(await Promise.all(Me(n).map(async p=>{const b=ce(p)?await this.parseUtil(p,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Yr(p.value),void 0,p.handles]];return!b&&this.config.warn&&yc(`unmatched utility "${p}" in shortcut "${t[1]}"`),b||[]}))).flat(1).filter(Boolean).sort((p,b)=>p[0]-b[0]),[a,,c]=t,u=[];for(const p of s){if(bi(p)){u.push([p[0],void 0,p[1],void 0,p[2],r,void 0]);continue}const{selector:b,entries:v,parent:g,sort:m,noMerge:d,layer:h}=this.applyVariants(p,[...p[4],...c],a);i.getFallback(h??o.layer,new ef).getFallback(b,g,[[],p[0]])[0].push([v,!!(d??((l=p[3])==null?void 0:l.noMerge)),m??0])}return u.concat(i.flatMap((p,b)=>p.map(([v,g],m,d)=>{const h=(y,$,k)=>{const w=Math.max(...k.map(S=>S[1])),_=k.map(S=>S[0]);return(y?[_.flat(1)]:_).map(S=>{const j=jn(S);if(j)return[g,m,j,d,{...o,noMerge:$,sort:w,layer:b},r,void 0]})};return[[v.filter(([,y])=>y).map(([y,,$])=>[y,$]),!0],[v.filter(([,y])=>!y).map(([y,,$])=>[y,$]),!1]].map(([y,$])=>[...h(!1,$,y.filter(([k])=>k.some(w=>w[0]===Ee.shortcutsNoMerge))),...h(!0,$,y.filter(([k])=>k.every(w=>w[0]!==Ee.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):ce(r)?r===t:r.test(t))}getBlocked(t){const r=this.config.blocklist.find(n=>{const o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):ce(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}}async function mf(e,t){return await Ro.create(e,t)}const $c=/\s\$\$\s+/g;function gf(e){return $c.test(e)}function yf(e,t){return gf(e)?e.replace($c,t?` ${t} `:" "):t?`${t} ${e}`:e}const xi=/^\[(.+?)(~?=)"(.*)"\]$/;function wc(e){return xi.test(e)?e.replace(xi,(t,r,n,o)=>`[${Cn(r)}${n}"${Cn(o)}"]`):`.${Cn(e)}`}function bf(e,t){return t(e)}var vf={};function $f(e,t){return{name:e,getImportUrl(r){const n=r.map(o=>{const{name:i,weights:s,italic:a}=o,c=i.toLowerCase().replace(/\s/g,"-");if(!(s!=null&&s.length))return`${c}${a?":i":""}`;let u=s.map(p=>p.toString());return!u.some(p=>p.endsWith("i"))&&a&&(u=u.map(p=>p+="i")),`${c}:${u.join(",")}`});return`${t}/css?family=${n.join("|")}&display=swap`}}}const wf=$f("bunny","https://fonts.bunny.net"),kf=_f("fontshare","https://api.fontshare.com");function _f(e,t){return{name:e,getImportUrl(r){const n=r.map(o=>{var s;let i=o.name.replace(/\s+/g,"-").toLocaleLowerCase();return(s=o.weights)!=null&&s.length?i+=`@${o.weights.flatMap(a=>o.italic?Number(a)+1:a).sort().join()}`:i+=`@${o.italic?2:1}`,`f[]=${i}`}).join("&");return`${t}/v2/css?${n}&display=swap`}}}function xf(e,t){const r=new Map,n=new Map;return{name:e,async getPreflight(o){return(await Promise.all(o.map(async s=>{const a=[],c=s.name.toLowerCase().replace(/\s+/g,"-");let u=r.get(c);if(!u){const b=`https://api.fontsource.org/v1/fonts/${c}`;try{u=await(await Ge(async()=>{const{$fetch:v}=await Promise.resolve().then(()=>fo);return{$fetch:v}},void 0,import.meta.url)).$fetch(b),r.set(c,u)}catch{throw new Error(`Failed to fetch font: ${s.name}`)}}const{subsets:l,weights:p}=u;if(u.variable){let b=n.get(c);const v=`https://api.fontsource.org/v1/variable/${c}`;try{b=await(await Ge(async()=>{const{$fetch:m}=await Promise.resolve().then(()=>fo);return{$fetch:m}},void 0,import.meta.url)).$fetch(v),n.set(c,b)}catch{throw new Error(`Failed to fetch font variable: ${s.name}`)}const g=pn(b.axes,s.variable??{});for(const m of l){const d=`${t}/fontsource/fonts/${u.id}:vf@latest/${m}-${s.italic?"wght-italic":"wght-normal"}.woff2`,h={family:`${u.family}`,display:"swap",style:s.italic?"italic":"normal",weight:400,src:[{url:d,format:"woff2-variations"}],variable:{wght:g.wght??void 0,wdth:g.wdth??void 0,slnt:g.slnt??void 0},unicodeRange:u.unicodeRange[m],comment:`${u.id}-${m}-wght-normal`};a.push(Si(h))}}else{const b=s.weights&&s.weights.length>0?s.weights:p;for(const v of l)for(const g of b){const m=`${t}/fontsource/fonts/${u.id}@latest/${v}-${g}-${s.italic?"italic":"normal"}`,d={family:u.family,display:"swap",style:s.italic?"italic":"normal",weight:Number(g),src:[{url:`${m}.woff2`,format:"woff2"}],unicodeRange:u.unicodeRange[v],comment:`${u.id}-${v}-${g}${s.italic?"-italic":"-normal"}`};a.push(Si(d))}}return a}))).flat().join(`
|
|
4
|
+
|
|
5
|
+
`)}}}const Sf=xf("fontsource","https://cdn.jsdelivr.net");function Si(e){const{family:t,style:r,display:n,weight:o,variable:i,src:s,unicodeRange:a,comment:c,spacer:u=`
|
|
6
|
+
`}=e,{wght:l,wdth:p,slnt:b}=i??{};let v="@font-face {";return v+=`${u}font-family: '${t}';`,v+=`${u}font-style: ${b?`oblique ${Number(b.max)*-1}deg ${Number(b.min)*-1}deg`:r};`,v+=`${u}font-display: ${n};`,v+=`${u}font-weight: ${l?Ef(l):o};`,p&&(v+=`${u}font-stretch: ${p.min}% ${p.max}%;`),v+=`${u}src: ${s.map(({url:g,format:m})=>`url(${g}) format('${m}')`).join(", ")};`,a&&(v+=`${u}unicode-range: ${a};`),c&&(v=`/* ${c} */
|
|
7
|
+
${v}`),`${v}
|
|
8
|
+
}`}function Ef(e){return e?e.min===e.max?`${e.min}`:`${e.min} ${e.max}`:"400"}function Cf(e,t){return{name:e,getImportUrl(r){const n=i=>{const s=i.map(c=>c[0]),a=i.map(c=>c[1]);return`${s.join(";")};${a.join(";")}`},o=r.map(i=>{var a;let s=i.name.replace(/\s+/g,"+");return(a=i.weights)!=null&&a.length&&(s+=i.italic?`:ital,wght@${n(i.weights.map(c=>[`0,${c}`,`1,${c}`]))}`:`:wght@${i.weights.join(";")}`),`family=${s}`}).join("&");return`${t}/css2?${o}&display=swap`}}}const jf=Cf("google","https://fonts.googleapis.com"),Pf={name:"none",getPreflight(){return""},getFontName(e){return e.name}},Of={google:jf,bunny:wf,fontshare:kf,fontsource:Sf,none:Pf};function Ei(e){return typeof e=="string"?Of[e]:e}function Rf(e,t){if(typeof e!="string")return e.provider=Ei(e.provider||t),e.weights&&(e.weights=[...new Set(e.weights.sort((o,i)=>o.toString().localeCompare(i.toString(),"en",{numeric:!0})))]),e;const[r,n=""]=e.split(":");return{name:r,weights:[...new Set(n.split(/[,;]\s*/).filter(Boolean).sort((o,i)=>o.localeCompare(i,"en",{numeric:!0})))],provider:Ei(t)}}function Af(e){return(t={})=>{const{provider:r="google",extendTheme:n=!0,inlineImports:o=!0,themeKey:i="fontFamily",customFetch:s=e,timeouts:a={}}=t,c=ae(t.processors||[]),u=Object.fromEntries(Object.entries(t.fonts||{}).map(([h,f])=>[h,ae(f).map(y=>Rf(y,r))])),l=Object.values(u).flatMap(h=>h),p={};async function b(h){if(a===!1)return s(h);const{warning:f=1e3,failure:y=2e3}=a;let $=!1;const k=setTimeout(()=>{console.warn(`[unocss] Fetching web fonts: ${h}`),$=!0},f);return await Promise.race([s(h),new Promise((w,_)=>{setTimeout(()=>_(new Error("[unocss] Fetch web fonts timeout.")),y)})]).then(w=>($&&console.info("[unocss] Web fonts fetched."),w)).finally(()=>clearTimeout(k))}async function v(h){return o?(p[h]||(p[h]=b(h).catch(f=>{if(console.error(`[unocss] Failed to fetch web fonts: ${h}`),console.error(f),typeof process<"u"&&vf.CI)throw f})),await p[h]):`@import url('${h}');`}const g=Array.from(new Set(l.map(h=>h.provider)));async function m(h,f){var k;const y=[];for(const w of f){const _=h.filter(S=>S.provider.name===w.name);if(w.getImportUrl){const S=w.getImportUrl(_);S&&y.push(await v(S))}y.push(await((k=w.getPreflight)==null?void 0:k.call(w,_)))}return y.filter(Boolean).join(`
|
|
9
|
+
`)}const d={name:"@unocss/preset-web-fonts",preflights:[{async getCSS(){var f,y;let h;for(const $ of c){const k=await((f=$.getCSS)==null?void 0:f.call($,l,g,m));if(k){h=k;break}}h||(h=await m(l,g));for(const $ of c)h=await((y=$.transformCSS)==null?void 0:y.call($,h))||h;return h},layer:o?void 0:hc}]};return n&&(d.extendTheme=h=>{h[i]||(h[i]={});const f=Object.fromEntries(Object.entries(u).map(([y,$])=>[y,$.map(k=>{var w,_;return((_=(w=k.provider).getFontName)==null?void 0:_.call(w,k))??`"${k.name}"`})]));for(const y of Object.keys(f))typeof h[i][y]=="string"?h[i][y]=f[y].map($=>`${$},`).join("")+h[i][y]:h[i][y]=f[y].join(",")}),d}}const Tf="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",Nf=async e=>(await Ge(async()=>{const{$fetch:t}=await Promise.resolve().then(()=>fo);return{$fetch:t}},void 0,import.meta.url)).$fetch(e,{headers:{"User-Agent":Tf},retry:3}),If=Af(Nf);function Mf(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function Ci(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ji(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Pi=["Webkit","Moz","ms"];function Ff(e){const t={};function r(n){const o=t[n];if(o)return o;let i=Mf(n);if(i!=="filter"&&i in e)return t[n]=ji(i);i=Ci(i);for(let s=0;s<Pi.length;s++){const a=`${Pi[s]}${i}`;if(a in e)return t[n]=ji(Ci(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function zf(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Lf(e={}){var q,G,se;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,r=window.document,n=()=>r.documentElement,o=t.__unocss||{},i=Object.assign({},e,o.runtime),s=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(s.postprocess=ae(s.postprocess)).unshift(Ff(r.createElement("div").style)),(q=i.configResolved)==null||q.call(i,o,s);const c=await mf(o,s),u=K=>i.inject?i.inject(K):n().prepend(K),l=()=>i.rootElement?i.rootElement():r.body,p=new Map;let b=!0;const v=new Set;let g,m,d=[];const h=()=>new Promise(K=>{d.push(K),m!=null&&clearTimeout(m),m=setTimeout(()=>$().then(()=>{const J=d;d=[],J.forEach(D=>D())}),0)});function f(K,J=!1){if(K.nodeType!==1)return;const D=K;D.hasAttribute(a)&&D.removeAttribute(a),J&&D.querySelectorAll(`[${a}]`).forEach(X=>{X.removeAttribute(a)})}function y(K,J){let D=p.get(K);if(!D)if(D=r.createElement("style"),D.setAttribute("data-unocss-runtime-layer",K),p.set(K,D),J==null)u(D);else{const X=y(J),I=X.parentNode;I?I.insertBefore(D,X.nextSibling):u(D)}return D}async function $(){const K=[...v],J=await c.generate(K);return J.layers.reduce((X,I)=>(y(I,X).innerHTML=J.getLayer(I)??"",I),void 0),K.filter(X=>!J.matched.has(X)).forEach(X=>v.delete(X)),{...J,getStyleElement:X=>p.get(X),getStyleElements:()=>p}}async function k(K){const J=v.size;await c.applyExtractors(K,void 0,v),J!==v.size&&await h()}async function w(K=l()){const J=K&&K.outerHTML;J&&(await k(`${J} ${zf(J)}`),f(n()),f(K,!0))}const _=new MutationObserver(K=>{b||K.forEach(async J=>{if(J.target.nodeType!==1)return;const D=J.target;for(const X of p)if(D===X[1])return;if(J.type==="childList")J.addedNodes.forEach(async X=>{if(X.nodeType!==1)return;const I=X;g&&!g(I)||(await k(I.outerHTML),f(I))});else{if(g&&!g(D))return;if(J.attributeName!==a){const X=Array.from(D.attributes).map(O=>O.value?`${O.name}="${O.value}"`:O.name).join(" "),I=`<${D.tagName.toLowerCase()} ${X}>`;await k(I)}f(D)}})});let S=!1;function j(){var J,D;if(S)return;const K=(J=i.observer)!=null&&J.target?i.observer.target():l();K&&(_.observe(K,{childList:!0,subtree:!0,attributes:!0,attributeFilter:(D=i.observer)==null?void 0:D.attributeFilter}),S=!0)}function N(){i.bypassDefined&&Df(c.blocked),w(),j()}function z(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",N):N()}const V=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract(K){ce(K)||(K.forEach(J=>v.add(J)),K=""),await k(K)},extractAll:w,inspect(K){g=K},toggleObserver(K){K===void 0?b=!b:b=!!K,!S&&!b&&z()},update:$,presets:((G=t.__unocss_runtime)==null?void 0:G.presets)??{}};((se=i.ready)==null?void 0:se.call(i,V))!==!1&&(b=!1,z())}function Df(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const r=document.styleSheets[t];let n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(o=>{var i;return((i=o.selectorText)==null?void 0:i.split(/,/g))||[]}).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),e.add(o))})}catch{continue}}return e}function Ao(e){return Bl()?(Gl(e),!0):!1}function Oi(e){if(!It(e))return it(e);const t=new Proxy({},{get(r,n,o){return tc(Reflect.get(e.value,n,o))},set(r,n,o){return It(e.value[n])&&!It(o)?e.value[n].value=o:e.value[n]=o,!0},deleteProperty(r,n){return Reflect.deleteProperty(e.value,n)},has(r,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return it(t)}const kc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qf=e=>e!=null,Vf=Object.prototype.toString,Uf=e=>Vf.call(e)==="[object Object]",Ue=()=>{};function _c(e,t){function r(...n){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(i)})}return r}function Hf(e,t={}){let r,n,o=Ue;const i=c=>{clearTimeout(c),o(),o=Ue};let s;return c=>{const u=ve(e),l=ve(t.maxWait);return r&&i(r),u<=0||l!==void 0&&l<=0?(n&&(i(n),n=null),Promise.resolve(c())):new Promise((p,b)=>{o=t.rejectOnCancel?b:p,s=c,l&&!n&&(n=setTimeout(()=>{r&&i(r),n=null,p(s())},l)),r=setTimeout(()=>{n&&i(n),n=null,p(c())},u)})}}function Wf(...e){let t=0,r,n=!0,o=Ue,i,s,a,c,u;!It(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[s,a=!0,c=!0,u=!1]=e;const l=()=>{r&&(clearTimeout(r),r=void 0,o(),o=Ue)};return b=>{const v=ve(s),g=Date.now()-t,m=()=>i=b();return l(),v<=0?(t=Date.now(),m()):(g>v&&(c||!n)?(t=Date.now(),m()):a&&(i=new Promise((d,h)=>{o=u?h:d,r=setTimeout(()=>{t=Date.now(),n=!0,d(m()),l()},Math.max(0,v-g))})),!c&&!r&&(r=setTimeout(()=>n=!0,v)),n=!1,i)}}function Hr(e){return Array.isArray(e)?e:[e]}function Kf(e){return Co()}function Bf(e,t=200,r={}){return _c(Hf(t,r),e)}function Gf(e,t=200,r=!1,n=!0,o=!1){return _c(Wf(t,r,n,o),e)}function xc(e,t=!0,r){Kf()?jo(e,r):t?e():Po(e)}function Jf(e,t,r){return Ye(e,t,{...r,immediate:!0})}const To=kc?window:void 0,Xf=kc?window.document:void 0;function Mt(e){var t;const r=ve(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Ri(...e){const t=[],r=()=>{t.forEach(a=>a()),t.length=0},n=(a,c,u,l)=>(a.addEventListener(c,u,l),()=>a.removeEventListener(c,u,l)),o=de(()=>{const a=Hr(ve(e[0])).filter(c=>c!=null);return a.every(c=>typeof c!="string")?a:void 0}),i=Jf(()=>{var a,c;return[(c=(a=o.value)==null?void 0:a.map(u=>Mt(u)))!=null?c:[To].filter(u=>u!=null),Hr(ve(o.value?e[1]:e[0])),Hr(tc(o.value?e[2]:e[1])),ve(o.value?e[3]:e[2])]},([a,c,u,l])=>{if(r(),!(a!=null&&a.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=Uf(l)?{...l}:l;t.push(...a.flatMap(b=>c.flatMap(v=>u.map(g=>n(b,v,g,p)))))},{flush:"post"}),s=()=>{i(),r()};return Ao(r),s}function Yf(){const e=Xe(!1),t=Co();return t&&jo(()=>{e.value=!0},t),e}function Qf(e){const t=Yf();return de(()=>(t.value,!!e()))}function w$(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:i=0,window:s=To,immediate:a=!0}=r,c=Qf(()=>s&&"IntersectionObserver"in s),u=de(()=>{const g=ve(e);return Hr(g).map(Mt).filter(qf)});let l=Ue;const p=Xe(a),b=c.value?Ye(()=>[u.value,Mt(n),p.value],([g,m])=>{if(l(),!p.value||!g.length)return;const d=new IntersectionObserver(t,{root:Mt(m),rootMargin:o,threshold:i});g.forEach(h=>h&&d.observe(h)),l=()=>{d.disconnect(),l=Ue}},{immediate:a,flush:"post"}):Ue,v=()=>{l(),b(),p.value=!1};return Ao(v),{isSupported:c,isActive:p,pause(){l(),p.value=!1},resume(){p.value=!0},stop:v}}const Ai=1;function k$(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=Ue,onScroll:i=Ue,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:c="auto",window:u=To,onError:l=_=>{console.error(_)}}=t,p=Xe(0),b=Xe(0),v=de({get(){return p.value},set(_){m(_,void 0)}}),g=de({get(){return b.value},set(_){m(void 0,_)}});function m(_,S){var j,N,z,V;if(!u)return;const q=ve(e);if(!q)return;(z=q instanceof Document?u.document.body:q)==null||z.scrollTo({top:(j=ve(S))!=null?j:g.value,left:(N=ve(_))!=null?N:v.value,behavior:ve(c)});const G=((V=q==null?void 0:q.document)==null?void 0:V.documentElement)||(q==null?void 0:q.documentElement)||q;v!=null&&(p.value=G.scrollLeft),g!=null&&(b.value=G.scrollTop)}const d=Xe(!1),h=it({left:!0,right:!1,top:!0,bottom:!1}),f=it({left:!1,right:!1,top:!1,bottom:!1}),y=_=>{d.value&&(d.value=!1,f.left=!1,f.right=!1,f.top=!1,f.bottom=!1,o(_))},$=Bf(y,r+n),k=_=>{var S;if(!u)return;const j=((S=_==null?void 0:_.document)==null?void 0:S.documentElement)||(_==null?void 0:_.documentElement)||Mt(_),{display:N,flexDirection:z,direction:V}=getComputedStyle(j),q=V==="rtl"?-1:1,G=j.scrollLeft;f.left=G<p.value,f.right=G>p.value;const se=Math.abs(G*q)<=(s.left||0),K=Math.abs(G*q)+j.clientWidth>=j.scrollWidth-(s.right||0)-Ai;N==="flex"&&z==="row-reverse"?(h.left=K,h.right=se):(h.left=se,h.right=K),p.value=G;let J=j.scrollTop;_===u.document&&!J&&(J=u.document.body.scrollTop),f.top=J<b.value,f.bottom=J>b.value;const D=Math.abs(J)<=(s.top||0),X=Math.abs(J)+j.clientHeight>=j.scrollHeight-(s.bottom||0)-Ai;N==="flex"&&z==="column-reverse"?(h.top=X,h.bottom=D):(h.top=D,h.bottom=X),b.value=J},w=_=>{var S;if(!u)return;const j=(S=_.target.documentElement)!=null?S:_.target;k(j),d.value=!0,$(_),i(_)};return Ri(e,"scroll",r?Gf(w,r,!0,!1):w,a),xc(()=>{try{const _=ve(e);if(!_)return;k(_)}catch(_){l(_)}}),Ri(e,"scrollend",y,a),{x:v,y:g,isScrolling:d,arrivedState:h,directions:f,measure(){const _=ve(e);u&&_&&k(_)}}}let Zf=0;function ed(e,t={}){const r=Xe(!1),{document:n=Xf,immediate:o=!0,manual:i=!1,id:s=`vueuse_styletag_${++Zf}`}=t,a=Xe(e);let c=()=>{};const u=()=>{if(!n)return;const p=n.getElementById(s)||n.createElement("style");p.isConnected||(p.id=s,t.nonce&&(p.nonce=t.nonce),t.media&&(p.media=t.media),n.head.appendChild(p)),!r.value&&(c=Ye(a,b=>{p.textContent=b},{immediate:!0}),r.value=!0)},l=()=>{!n||!r.value||(c(),n.head.removeChild(n.getElementById(s)),r.value=!1)};return o&&!i&&xc(u),i||Ao(l),{id:s,css:a,unload:l,load:u,isLoaded:Jl(r)}}const ye=[];for(let e=0;e<256;++e)ye.push((e+256).toString(16).slice(1));function td(e,t=0){return(ye[e[t+0]]+ye[e[t+1]]+ye[e[t+2]]+ye[e[t+3]]+"-"+ye[e[t+4]]+ye[e[t+5]]+"-"+ye[e[t+6]]+ye[e[t+7]]+"-"+ye[e[t+8]]+ye[e[t+9]]+"-"+ye[e[t+10]]+ye[e[t+11]]+ye[e[t+12]]+ye[e[t+13]]+ye[e[t+14]]+ye[e[t+15]]).toLowerCase()}let Pn;const rd=new Uint8Array(16);function nd(){if(!Pn){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Pn=crypto.getRandomValues.bind(crypto)}return Pn(rd)}const od=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ti={randomUUID:od};function No(e,t,r){var o;if(Ti.randomUUID&&!t&&!e)return Ti.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??nd();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[r+i]=n[i];return t}return td(n)}const id=(e,{branch:t="branch",children:r="children",id:n="id",index:o="index",next:i="next",parent:s="parent",prev:a="prev",siblings:c="siblings"}={})=>{const u={[t]:{get(){var g;const v=[this];for(;(g=v[0])!=null&&g[s];)v.unshift(v[0][s]);return v}},[o]:{get(){return this[c].findIndex(v=>this[n]===v[n])}},[i]:{get(){return this[c][this[o]+1]}},[a]:{get(){return this[c][this[o]-1]}}},l=(v,g={})=>v.value.flatMap(m=>(Object.defineProperties(m,{...u,[s]:g,[c]:v}),[m,...l({configurable:!0,value:m[r]??[]},{configurable:!0,value:m})])),p=de(()=>l({value:Xl(e)?e:it(e)})),b=Oi(de(()=>Object.fromEntries(p.value.map(v=>[v[n],v]))));return{add:v=>{const g=b[v];if(g){const m=g[r],d=g[o],h=g[c],f=No();switch(!0){case!!g[s]:h.splice(d+1,0,{[n]:f});break;case!!m:m.unshift({[n]:f});break;default:h.splice(d+1,0,{[n]:f});break}return f}},arrLeaves:Oi(p),down:v=>{const g=b[v];if(g){const m=g[o],d=m+1,h=g[c];m<h.length-1&&h[m]&&h[d]&&([h[m],h[d]]=[h[d],h[m]])}},leaves:p,left:v=>{const g=b[v];if(g){const m=g[s];if(m!=null&&m[s]){const d=m[r]??[];return m[c].splice(m[o]+1,0,...d.splice(g[o],1)),m[n]}}},objLeaves:b,remove:v=>{const g=b[v];if(g){const m=g[s];if(m){const[d]=p.value,h=g[i],f=g[a],y=(h==null?void 0:h[n])??(f==null?void 0:f[n])??m[n]??(d==null?void 0:d[n]);return g[c].splice(g[o],1),y}}},right:v=>{const g=b[v];if(g){const m=g[a];if(m){const d=m[r]??[],h=m[n],f=g[c];return m[r]=[...d,...f.splice(g[o],1)],h}}},up:v=>{const g=b[v];if(g){const m=g[o],d=m-1,h=g[c];m&&h[m]&&h[d]&&([h[d],h[m]]=[h[m],h[d]])}}}};var Jt={exports:{}},On={},ze={},Ze={},Rn={},An={},Tn={},Ni;function Qr(){return Ni||(Ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(f){if(super(),!e.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce((y,$)=>`${y}${$}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce((y,$)=>($ instanceof r&&(y[$.str]=(y[$.str]||0)+1),y),{})}}e._Code=n,e.nil=new n("");function o(h,...f){const y=[h[0]];let $=0;for(;$<f.length;)a(y,f[$]),y.push(h[++$]);return new n(y)}e._=o;const i=new n("+");function s(h,...f){const y=[v(h[0])];let $=0;for(;$<f.length;)y.push(i),a(y,f[$]),y.push(i,v(h[++$]));return c(y),new n(y)}e.str=s;function a(h,f){f instanceof n?h.push(...f._items):f instanceof r?h.push(f):h.push(p(f))}e.addCodeArg=a;function c(h){let f=1;for(;f<h.length-1;){if(h[f]===i){const y=u(h[f-1],h[f+1]);if(y!==void 0){h.splice(f-1,3,y);continue}h[f++]="+"}f++}}function u(h,f){if(f==='""')return h;if(h==='""')return f;if(typeof h=="string")return f instanceof r||h[h.length-1]!=='"'?void 0:typeof f!="string"?`${h.slice(0,-1)}${f}"`:f[0]==='"'?h.slice(0,-1)+f.slice(1):void 0;if(typeof f=="string"&&f[0]==='"'&&!(h instanceof r))return`"${h}${f.slice(1)}`}function l(h,f){return f.emptyStr()?h:h.emptyStr()?f:s`${h}${f}`}e.strConcat=l;function p(h){return typeof h=="number"||typeof h=="boolean"||h===null?h:v(Array.isArray(h)?h.join(","):h)}function b(h){return new n(v(h))}e.stringify=b;function v(h){return JSON.stringify(h).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function g(h){return typeof h=="string"&&e.IDENTIFIER.test(h)?new n(`.${h}`):o`[${h}]`}e.getProperty=g;function m(h){if(typeof h=="string"&&e.IDENTIFIER.test(h))return new n(`${h}`);throw new Error(`CodeGen: invalid export name: ${h}, use explicit $id name mapping`)}e.getEsmExportName=m;function d(h){return new n(h.toString())}e.regexpCode=d}(Tn)),Tn}var Nn={},Ii;function Mi(){return Ii||(Ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Qr();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,this._parent=l}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const l=this._names[u]||this._nameGroup(u);return`${u}${l.index++}`}_nameGroup(u){var l,p;if(!((p=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||p===void 0)&&p.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=o;class i extends t.Name{constructor(u,l){super(l),this.prefix=u}setValue(u,{property:l,itemIndex:p}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(l)}[${p}]`}}e.ValueScopeName=i;const s=(0,t._)`\n`;class a extends o{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:t.nil}}get(){return this._scope}name(u){return new i(u,this._newName(u))}value(u,l){var p;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(u),{prefix:v}=b,g=(p=l.key)!==null&&p!==void 0?p:l.ref;let m=this._values[v];if(m){const f=m.get(g);if(f)return f}else m=this._values[v]=new Map;m.set(g,b);const d=this._scope[v]||(this._scope[v]=[]),h=d.length;return d[h]=l.ref,b.setValue(l,{property:v,itemIndex:h}),b}getValue(u,l){const p=this._values[u];if(p)return p.get(l)}scopeRefs(u,l=this._values){return this._reduceValues(l,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${u}${p.scopePath}`})}scopeCode(u=this._values,l,p){return this._reduceValues(u,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},l,p)}_reduceValues(u,l,p={},b){let v=t.nil;for(const g in u){const m=u[g];if(!m)continue;const d=p[g]=p[g]||new Map;m.forEach(h=>{if(d.has(h))return;d.set(h,n.Started);let f=l(h);if(f){const y=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${y} ${h} = ${f};${this.opts._n}`}else if(f=b==null?void 0:b(h))v=(0,t._)`${v}${f}${this.opts._n}`;else throw new r(h);d.set(h,n.Completed)})}return v}}e.ValueScope=a}(Nn)),Nn}var Fi;function ee(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Qr(),r=Mi();var n=Qr();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=Mi();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(x,E){return this}}class s extends i{constructor(x,E,T){super(),this.varKind=x,this.name=E,this.rhs=T}render({es5:x,_n:E}){const T=x?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${U};`+E}optimizeNames(x,E){if(x[this.name.str])return this.rhs&&(this.rhs=G(this.rhs,x,E)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(x,E,T){super(),this.lhs=x,this.rhs=E,this.sideEffects=T}render({_n:x}){return`${this.lhs} = ${this.rhs};`+x}optimizeNames(x,E){if(!(this.lhs instanceof t.Name&&!x[this.lhs.str]&&!this.sideEffects))return this.rhs=G(this.rhs,x,E),this}get names(){const x=this.lhs instanceof t.Name?{}:{...this.lhs.names};return q(x,this.rhs)}}class c extends a{constructor(x,E,T,U){super(x,T,U),this.op=E}render({_n:x}){return`${this.lhs} ${this.op}= ${this.rhs};`+x}}class u extends i{constructor(x){super(),this.label=x,this.names={}}render({_n:x}){return`${this.label}:`+x}}class l extends i{constructor(x){super(),this.label=x,this.names={}}render({_n:x}){return`break${this.label?` ${this.label}`:""};`+x}}class p extends i{constructor(x){super(),this.error=x}render({_n:x}){return`throw ${this.error};`+x}get names(){return this.error.names}}class b extends i{constructor(x){super(),this.code=x}render({_n:x}){return`${this.code};`+x}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(x,E){return this.code=G(this.code,x,E),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends i{constructor(x=[]){super(),this.nodes=x}render(x){return this.nodes.reduce((E,T)=>E+T.render(x),"")}optimizeNodes(){const{nodes:x}=this;let E=x.length;for(;E--;){const T=x[E].optimizeNodes();Array.isArray(T)?x.splice(E,1,...T):T?x[E]=T:x.splice(E,1)}return x.length>0?this:void 0}optimizeNames(x,E){const{nodes:T}=this;let U=T.length;for(;U--;){const W=T[U];W.optimizeNames(x,E)||(se(x,W.names),T.splice(U,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((x,E)=>V(x,E.names),{})}}class g extends v{render(x){return"{"+x._n+super.render(x)+"}"+x._n}}class m extends v{}class d extends g{}d.kind="else";class h extends g{constructor(x,E){super(E),this.condition=x}render(x){let E=`if(${this.condition})`+super.render(x);return this.else&&(E+="else "+this.else.render(x)),E}optimizeNodes(){super.optimizeNodes();const x=this.condition;if(x===!0)return this.nodes;let E=this.else;if(E){const T=E.optimizeNodes();E=this.else=Array.isArray(T)?new d(T):T}if(E)return x===!1?E instanceof h?E:E.nodes:this.nodes.length?this:new h(K(x),E instanceof h?[E]:E.nodes);if(!(x===!1||!this.nodes.length))return this}optimizeNames(x,E){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(x,E),!!(super.optimizeNames(x,E)||this.else))return this.condition=G(this.condition,x,E),this}get names(){const x=super.names;return q(x,this.condition),this.else&&V(x,this.else.names),x}}h.kind="if";class f extends g{}f.kind="for";class y extends f{constructor(x){super(),this.iteration=x}render(x){return`for(${this.iteration})`+super.render(x)}optimizeNames(x,E){if(super.optimizeNames(x,E))return this.iteration=G(this.iteration,x,E),this}get names(){return V(super.names,this.iteration.names)}}class $ extends f{constructor(x,E,T,U){super(),this.varKind=x,this.name=E,this.from=T,this.to=U}render(x){const E=x.es5?r.varKinds.var:this.varKind,{name:T,from:U,to:W}=this;return`for(${E} ${T}=${U}; ${T}<${W}; ${T}++)`+super.render(x)}get names(){const x=q(super.names,this.from);return q(x,this.to)}}class k extends f{constructor(x,E,T,U){super(),this.loop=x,this.varKind=E,this.name=T,this.iterable=U}render(x){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(x)}optimizeNames(x,E){if(super.optimizeNames(x,E))return this.iterable=G(this.iterable,x,E),this}get names(){return V(super.names,this.iterable.names)}}class w extends g{constructor(x,E,T){super(),this.name=x,this.args=E,this.async=T}render(x){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(x)}}w.kind="func";class _ extends v{render(x){return"return "+super.render(x)}}_.kind="return";class S extends g{render(x){let E="try"+super.render(x);return this.catch&&(E+=this.catch.render(x)),this.finally&&(E+=this.finally.render(x)),E}optimizeNodes(){var x,E;return super.optimizeNodes(),(x=this.catch)===null||x===void 0||x.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(x,E){var T,U;return super.optimizeNames(x,E),(T=this.catch)===null||T===void 0||T.optimizeNames(x,E),(U=this.finally)===null||U===void 0||U.optimizeNames(x,E),this}get names(){const x=super.names;return this.catch&&V(x,this.catch.names),this.finally&&V(x,this.finally.names),x}}class j extends g{constructor(x){super(),this.error=x}render(x){return`catch(${this.error})`+super.render(x)}}j.kind="catch";class N extends g{render(x){return"finally"+super.render(x)}}N.kind="finally";class z{constructor(x,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
|
|
10
|
+
`:""},this._extScope=x,this._scope=new r.Scope({parent:x}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(x){return this._scope.name(x)}scopeName(x){return this._extScope.name(x)}scopeValue(x,E){const T=this._extScope.value(x,E);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(x,E){return this._extScope.getValue(x,E)}scopeRefs(x){return this._extScope.scopeRefs(x,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(x,E,T,U){const W=this._scope.toName(E);return T!==void 0&&U&&(this._constants[W.str]=T),this._leafNode(new s(x,W,T)),W}const(x,E,T){return this._def(r.varKinds.const,x,E,T)}let(x,E,T){return this._def(r.varKinds.let,x,E,T)}var(x,E,T){return this._def(r.varKinds.var,x,E,T)}assign(x,E,T){return this._leafNode(new a(x,E,T))}add(x,E){return this._leafNode(new c(x,e.operators.ADD,E))}code(x){return typeof x=="function"?x():x!==t.nil&&this._leafNode(new b(x)),this}object(...x){const E=["{"];for(const[T,U]of x)E.length>1&&E.push(","),E.push(T),(T!==U||this.opts.es5)&&(E.push(":"),(0,t.addCodeArg)(E,U));return E.push("}"),new t._Code(E)}if(x,E,T){if(this._blockNode(new h(x)),E&&T)this.code(E).else().code(T).endIf();else if(E)this.code(E).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(x){return this._elseNode(new h(x))}else(){return this._elseNode(new d)}endIf(){return this._endBlockNode(h,d)}_for(x,E){return this._blockNode(x),E&&this.code(E).endFor(),this}for(x,E){return this._for(new y(x),E)}forRange(x,E,T,U,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const oe=this._scope.toName(x);return this._for(new $(W,oe,E,T),()=>U(oe))}forOf(x,E,T,U=r.varKinds.const){const W=this._scope.toName(x);if(this.opts.es5){const oe=E instanceof t.Name?E:this.var("_arr",E);return this.forRange("_i",0,(0,t._)`${oe}.length`,re=>{this.var(W,(0,t._)`${oe}[${re}]`),T(W)})}return this._for(new k("of",U,W,E),()=>T(W))}forIn(x,E,T,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(x,(0,t._)`Object.keys(${E})`,T);const W=this._scope.toName(x);return this._for(new k("in",U,W,E),()=>T(W))}endFor(){return this._endBlockNode(f)}label(x){return this._leafNode(new u(x))}break(x){return this._leafNode(new l(x))}return(x){const E=new _;if(this._blockNode(E),this.code(x),E.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(x,E,T){if(!E&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new S;if(this._blockNode(U),this.code(x),E){const W=this.name("e");this._currNode=U.catch=new j(W),E(W)}return T&&(this._currNode=U.finally=new N,this.code(T)),this._endBlockNode(j,N)}throw(x){return this._leafNode(new p(x))}block(x,E){return this._blockStarts.push(this._nodes.length),x&&this.code(x).endBlock(E),this}endBlock(x){const E=this._blockStarts.pop();if(E===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-E;if(T<0||x!==void 0&&T!==x)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${x} expected`);return this._nodes.length=E,this}func(x,E=t.nil,T,U){return this._blockNode(new w(x,E,T)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(x=1){for(;x-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(x){return this._currNode.nodes.push(x),this}_blockNode(x){this._currNode.nodes.push(x),this._nodes.push(x)}_endBlockNode(x,E){const T=this._currNode;if(T instanceof x||E&&T instanceof E)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${E?`${x.kind}/${E.kind}`:x.kind}"`)}_elseNode(x){const E=this._currNode;if(!(E instanceof h))throw new Error('CodeGen: "else" without "if"');return this._currNode=E.else=x,this}get _root(){return this._nodes[0]}get _currNode(){const x=this._nodes;return x[x.length-1]}set _currNode(x){const E=this._nodes;E[E.length-1]=x}}e.CodeGen=z;function V(R,x){for(const E in x)R[E]=(R[E]||0)+(x[E]||0);return R}function q(R,x){return x instanceof t._CodeOrName?V(R,x.names):R}function G(R,x,E){if(R instanceof t.Name)return T(R);if(!U(R))return R;return new t._Code(R._items.reduce((W,oe)=>(oe instanceof t.Name&&(oe=T(oe)),oe instanceof t._Code?W.push(...oe._items):W.push(oe),W),[]));function T(W){const oe=E[W.str];return oe===void 0||x[W.str]!==1?W:(delete x[W.str],oe)}function U(W){return W instanceof t._Code&&W._items.some(oe=>oe instanceof t.Name&&x[oe.str]===1&&E[oe.str]!==void 0)}}function se(R,x){for(const E in x)R[E]=(R[E]||0)-(x[E]||0)}function K(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${M(R)}`}e.not=K;const J=O(e.operators.AND);function D(...R){return R.reduce(J)}e.and=D;const X=O(e.operators.OR);function I(...R){return R.reduce(X)}e.or=I;function O(R){return(x,E)=>x===t.nil?E:E===t.nil?x:(0,t._)`${M(x)} ${R} ${M(E)}`}function M(R){return R instanceof t.Name?R:(0,t._)`(${R})`}}(An)),An}var Y={},zi;function ne(){if(zi)return Y;zi=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;const e=ee(),t=Qr();function r(k){const w={};for(const _ of k)w[_]=!0;return w}Y.toHash=r;function n(k,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(o(k,w),!i(w,k.self.RULES.all))}Y.alwaysValidSchema=n;function o(k,w=k.schema){const{opts:_,self:S}=k;if(!_.strictSchema||typeof w=="boolean")return;const j=S.RULES.keywords;for(const N in w)j[N]||$(k,`unknown keyword: "${N}"`)}Y.checkUnknownRules=o;function i(k,w){if(typeof k=="boolean")return!k;for(const _ in k)if(w[_])return!0;return!1}Y.schemaHasRules=i;function s(k,w){if(typeof k=="boolean")return!k;for(const _ in k)if(_!=="$ref"&&w.all[_])return!0;return!1}Y.schemaHasRulesButRef=s;function a({topSchemaRef:k,schemaPath:w},_,S,j){if(!j){if(typeof _=="number"||typeof _=="boolean")return _;if(typeof _=="string")return(0,e._)`${_}`}return(0,e._)`${k}${w}${(0,e.getProperty)(S)}`}Y.schemaRefOrVal=a;function c(k){return p(decodeURIComponent(k))}Y.unescapeFragment=c;function u(k){return encodeURIComponent(l(k))}Y.escapeFragment=u;function l(k){return typeof k=="number"?`${k}`:k.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=l;function p(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=p;function b(k,w){if(Array.isArray(k))for(const _ of k)w(_);else w(k)}Y.eachItem=b;function v({mergeNames:k,mergeToName:w,mergeValues:_,resultToName:S}){return(j,N,z,V)=>{const q=z===void 0?N:z instanceof e.Name?(N instanceof e.Name?k(j,N,z):w(j,N,z),z):N instanceof e.Name?(w(j,z,N),N):_(N,z);return V===e.Name&&!(q instanceof e.Name)?S(j,q):q}}Y.mergeEvaluated={props:v({mergeNames:(k,w,_)=>k.if((0,e._)`${_} !== true && ${w} !== undefined`,()=>{k.if((0,e._)`${w} === true`,()=>k.assign(_,!0),()=>k.assign(_,(0,e._)`${_} || {}`).code((0,e._)`Object.assign(${_}, ${w})`))}),mergeToName:(k,w,_)=>k.if((0,e._)`${_} !== true`,()=>{w===!0?k.assign(_,!0):(k.assign(_,(0,e._)`${_} || {}`),m(k,_,w))}),mergeValues:(k,w)=>k===!0?!0:{...k,...w},resultToName:g}),items:v({mergeNames:(k,w,_)=>k.if((0,e._)`${_} !== true && ${w} !== undefined`,()=>k.assign(_,(0,e._)`${w} === true ? true : ${_} > ${w} ? ${_} : ${w}`)),mergeToName:(k,w,_)=>k.if((0,e._)`${_} !== true`,()=>k.assign(_,w===!0?!0:(0,e._)`${_} > ${w} ? ${_} : ${w}`)),mergeValues:(k,w)=>k===!0?!0:Math.max(k,w),resultToName:(k,w)=>k.var("items",w)})};function g(k,w){if(w===!0)return k.var("props",!0);const _=k.var("props",(0,e._)`{}`);return w!==void 0&&m(k,_,w),_}Y.evaluatedPropsToName=g;function m(k,w,_){Object.keys(_).forEach(S=>k.assign((0,e._)`${w}${(0,e.getProperty)(S)}`,!0))}Y.setEvaluated=m;const d={};function h(k,w){return k.scopeValue("func",{ref:w,code:d[w.code]||(d[w.code]=new t._Code(w.code))})}Y.useFunc=h;var f;(function(k){k[k.Num=0]="Num",k[k.Str=1]="Str"})(f||(Y.Type=f={}));function y(k,w,_){if(k instanceof e.Name){const S=w===f.Num;return _?S?(0,e._)`"[" + ${k} + "]"`:(0,e._)`"['" + ${k} + "']"`:S?(0,e._)`"/" + ${k}`:(0,e._)`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return _?(0,e.getProperty)(k).toString():"/"+l(k)}Y.getErrorPath=y;function $(k,w,_=k.opts.strictSchema){if(_){if(w=`strict mode: ${w}`,_===!0)throw new Error(w);k.self.logger.warn(w)}}return Y.checkStrictMode=$,Y}var Xt={},Li;function Qe(){if(Li)return Xt;Li=1,Object.defineProperty(Xt,"__esModule",{value:!0});const e=ee(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Xt.default=t,Xt}var Di;function hn(){return Di||(Di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ee(),r=ne(),n=Qe();e.keywordError={message:({keyword:d})=>(0,t.str)`must pass "${d}" keyword validation`},e.keyword$DataError={message:({keyword:d,schemaType:h})=>h?(0,t.str)`"${d}" keyword must be ${h} ($data)`:(0,t.str)`"${d}" keyword is invalid ($data)`};function o(d,h=e.keywordError,f,y){const{it:$}=d,{gen:k,compositeRule:w,allErrors:_}=$,S=p(d,h,f);y??(w||_)?c(k,S):u($,(0,t._)`[${S}]`)}e.reportError=o;function i(d,h=e.keywordError,f){const{it:y}=d,{gen:$,compositeRule:k,allErrors:w}=y,_=p(d,h,f);c($,_),k||w||u(y,n.default.vErrors)}e.reportExtraError=i;function s(d,h){d.assign(n.default.errors,h),d.if((0,t._)`${n.default.vErrors} !== null`,()=>d.if(h,()=>d.assign((0,t._)`${n.default.vErrors}.length`,h),()=>d.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:d,keyword:h,schemaValue:f,data:y,errsCount:$,it:k}){if($===void 0)throw new Error("ajv implementation error");const w=d.name("err");d.forRange("i",$,n.default.errors,_=>{d.const(w,(0,t._)`${n.default.vErrors}[${_}]`),d.if((0,t._)`${w}.instancePath === undefined`,()=>d.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(n.default.instancePath,k.errorPath))),d.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${k.errSchemaPath}/${h}`),k.opts.verbose&&(d.assign((0,t._)`${w}.schema`,f),d.assign((0,t._)`${w}.data`,y))})}e.extendErrors=a;function c(d,h){const f=d.const("err",h);d.if((0,t._)`${n.default.vErrors} === null`,()=>d.assign(n.default.vErrors,(0,t._)`[${f}]`),(0,t._)`${n.default.vErrors}.push(${f})`),d.code((0,t._)`${n.default.errors}++`)}function u(d,h){const{gen:f,validateName:y,schemaEnv:$}=d;$.$async?f.throw((0,t._)`new ${d.ValidationError}(${h})`):(f.assign((0,t._)`${y}.errors`,h),f.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(d,h,f){const{createErrors:y}=d.it;return y===!1?(0,t._)`{}`:b(d,h,f)}function b(d,h,f={}){const{gen:y,it:$}=d,k=[v($,f),g(d,f)];return m(d,h,k),y.object(...k)}function v({errorPath:d},{instancePath:h}){const f=h?(0,t.str)`${d}${(0,r.getErrorPath)(h,r.Type.Str)}`:d;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,f)]}function g({keyword:d,it:{errSchemaPath:h}},{schemaPath:f,parentSchema:y}){let $=y?h:(0,t.str)`${h}/${d}`;return f&&($=(0,t.str)`${$}${(0,r.getErrorPath)(f,r.Type.Str)}`),[l.schemaPath,$]}function m(d,{params:h,message:f},y){const{keyword:$,data:k,schemaValue:w,it:_}=d,{opts:S,propertyName:j,topSchemaRef:N,schemaPath:z}=_;y.push([l.keyword,$],[l.params,typeof h=="function"?h(d):h||(0,t._)`{}`]),S.messages&&y.push([l.message,typeof f=="function"?f(d):f]),S.verbose&&y.push([l.schema,w],[l.parentSchema,(0,t._)`${N}${z}`],[n.default.data,k]),j&&y.push([l.propertyName,j])}}(Rn)),Rn}var qi;function sd(){if(qi)return Ze;qi=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.boolOrEmptySchema=Ze.topBoolOrEmptySchema=void 0;const e=hn(),t=ee(),r=Qe(),n={message:"boolean schema is false"};function o(a){const{gen:c,schema:u,validateName:l}=a;u===!1?s(a,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${l}.errors`,null),c.return(!0))}Ze.topBoolOrEmptySchema=o;function i(a,c){const{gen:u,schema:l}=a;l===!1?(u.var(c,!1),s(a)):u.var(c,!0)}Ze.boolOrEmptySchema=i;function s(a,c){const{gen:u,data:l}=a,p={gen:u,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(p,n,void 0,c)}return Ze}var ge={},et={},Vi;function Sc(){if(Vi)return et;Vi=1,Object.defineProperty(et,"__esModule",{value:!0}),et.getRules=et.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}et.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return et.getRules=n,et}var Le={},Ui;function Ec(){if(Ui)return Le;Ui=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.shouldUseRule=Le.shouldUseGroup=Le.schemaHasRulesForType=void 0;function e({schema:n,self:o},i){const s=o.RULES.types[i];return s&&s!==!0&&t(n,s)}Le.schemaHasRulesForType=e;function t(n,o){return o.rules.some(i=>r(n,i))}Le.shouldUseGroup=t;function r(n,o){var i;return n[o.keyword]!==void 0||((i=o.definition.implements)===null||i===void 0?void 0:i.some(s=>n[s]!==void 0))}return Le.shouldUseRule=r,Le}var Hi;function Zr(){if(Hi)return ge;Hi=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.reportTypeError=ge.checkDataTypes=ge.checkDataType=ge.coerceAndCheckDataType=ge.getJSONTypes=ge.getSchemaTypes=ge.DataType=void 0;const e=Sc(),t=Ec(),r=hn(),n=ee(),o=ne();var i;(function(f){f[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong"})(i||(ge.DataType=i={}));function s(f){const y=a(f.type);if(y.includes("null")){if(f.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!y.length&&f.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');f.nullable===!0&&y.push("null")}return y}ge.getSchemaTypes=s;function a(f){const y=Array.isArray(f)?f:f?[f]:[];if(y.every(e.isJSONType))return y;throw new Error("type must be JSONType or JSONType[]: "+y.join(","))}ge.getJSONTypes=a;function c(f,y){const{gen:$,data:k,opts:w}=f,_=l(y,w.coerceTypes),S=y.length>0&&!(_.length===0&&y.length===1&&(0,t.schemaHasRulesForType)(f,y[0]));if(S){const j=g(y,k,w.strictNumbers,i.Wrong);$.if(j,()=>{_.length?p(f,y,_):d(f)})}return S}ge.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function l(f,y){return y?f.filter($=>u.has($)||y==="array"&&$==="array"):[]}function p(f,y,$){const{gen:k,data:w,opts:_}=f,S=k.let("dataType",(0,n._)`typeof ${w}`),j=k.let("coerced",(0,n._)`undefined`);_.coerceTypes==="array"&&k.if((0,n._)`${S} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>k.assign(w,(0,n._)`${w}[0]`).assign(S,(0,n._)`typeof ${w}`).if(g(y,w,_.strictNumbers),()=>k.assign(j,w))),k.if((0,n._)`${j} !== undefined`);for(const z of $)(u.has(z)||z==="array"&&_.coerceTypes==="array")&&N(z);k.else(),d(f),k.endIf(),k.if((0,n._)`${j} !== undefined`,()=>{k.assign(w,j),b(f,j)});function N(z){switch(z){case"string":k.elseIf((0,n._)`${S} == "number" || ${S} == "boolean"`).assign(j,(0,n._)`"" + ${w}`).elseIf((0,n._)`${w} === null`).assign(j,(0,n._)`""`);return;case"number":k.elseIf((0,n._)`${S} == "boolean" || ${w} === null
|
|
11
|
+
|| (${S} == "string" && ${w} && ${w} == +${w})`).assign(j,(0,n._)`+${w}`);return;case"integer":k.elseIf((0,n._)`${S} === "boolean" || ${w} === null
|
|
12
|
+
|| (${S} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(j,(0,n._)`+${w}`);return;case"boolean":k.elseIf((0,n._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(j,!1).elseIf((0,n._)`${w} === "true" || ${w} === 1`).assign(j,!0);return;case"null":k.elseIf((0,n._)`${w} === "" || ${w} === 0 || ${w} === false`),k.assign(j,null);return;case"array":k.elseIf((0,n._)`${S} === "string" || ${S} === "number"
|
|
13
|
+
|| ${S} === "boolean" || ${w} === null`).assign(j,(0,n._)`[${w}]`)}}}function b({gen:f,parentData:y,parentDataProperty:$},k){f.if((0,n._)`${y} !== undefined`,()=>f.assign((0,n._)`${y}[${$}]`,k))}function v(f,y,$,k=i.Correct){const w=k===i.Correct?n.operators.EQ:n.operators.NEQ;let _;switch(f){case"null":return(0,n._)`${y} ${w} null`;case"array":_=(0,n._)`Array.isArray(${y})`;break;case"object":_=(0,n._)`${y} && typeof ${y} == "object" && !Array.isArray(${y})`;break;case"integer":_=S((0,n._)`!(${y} % 1) && !isNaN(${y})`);break;case"number":_=S();break;default:return(0,n._)`typeof ${y} ${w} ${f}`}return k===i.Correct?_:(0,n.not)(_);function S(j=n.nil){return(0,n.and)((0,n._)`typeof ${y} == "number"`,j,$?(0,n._)`isFinite(${y})`:n.nil)}}ge.checkDataType=v;function g(f,y,$,k){if(f.length===1)return v(f[0],y,$,k);let w;const _=(0,o.toHash)(f);if(_.array&&_.object){const S=(0,n._)`typeof ${y} != "object"`;w=_.null?S:(0,n._)`!${y} || ${S}`,delete _.null,delete _.array,delete _.object}else w=n.nil;_.number&&delete _.integer;for(const S in _)w=(0,n.and)(w,v(S,y,$,k));return w}ge.checkDataTypes=g;const m={message:({schema:f})=>`must be ${f}`,params:({schema:f,schemaValue:y})=>typeof f=="string"?(0,n._)`{type: ${f}}`:(0,n._)`{type: ${y}}`};function d(f){const y=h(f);(0,r.reportError)(y,m)}ge.reportTypeError=d;function h(f){const{gen:y,data:$,schema:k}=f,w=(0,o.schemaRefOrVal)(f,k,"type");return{gen:y,keyword:"type",data:$,schema:k.type,schemaCode:w,schemaValue:w,parentSchema:k,params:{},it:f}}return ge}var kt={},Wi;function ad(){if(Wi)return kt;Wi=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.assignDefaults=void 0;const e=ee(),t=ne();function r(o,i){const{properties:s,items:a}=o.schema;if(i==="object"&&s)for(const c in s)n(o,c,s[c].default);else i==="array"&&Array.isArray(a)&&a.forEach((c,u)=>n(o,u,c.default))}kt.assignDefaults=r;function n(o,i,s){const{gen:a,compositeRule:c,data:u,opts:l}=o;if(s===void 0)return;const p=(0,e._)`${u}${(0,e.getProperty)(i)}`;if(c){(0,t.checkStrictMode)(o,`default is ignored for: ${p}`);return}let b=(0,e._)`${p} === undefined`;l.useDefaults==="empty"&&(b=(0,e._)`${b} || ${p} === null || ${p} === ""`),a.if(b,(0,e._)`${p} = ${(0,e.stringify)(s)}`)}return kt}var je={},ie={},Ki;function Ae(){if(Ki)return ie;Ki=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.validateUnion=ie.validateArray=ie.usePattern=ie.callValidateCode=ie.schemaProperties=ie.allSchemaProperties=ie.noPropertyInData=ie.propertyInData=ie.isOwnProperty=ie.hasPropFunc=ie.reportMissingProp=ie.checkMissingProp=ie.checkReportMissingProp=void 0;const e=ee(),t=ne(),r=Qe(),n=ne();function o(f,y){const{gen:$,data:k,it:w}=f;$.if(l($,k,y,w.opts.ownProperties),()=>{f.setParams({missingProperty:(0,e._)`${y}`},!0),f.error()})}ie.checkReportMissingProp=o;function i({gen:f,data:y,it:{opts:$}},k,w){return(0,e.or)(...k.map(_=>(0,e.and)(l(f,y,_,$.ownProperties),(0,e._)`${w} = ${_}`)))}ie.checkMissingProp=i;function s(f,y){f.setParams({missingProperty:y},!0),f.error()}ie.reportMissingProp=s;function a(f){return f.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ie.hasPropFunc=a;function c(f,y,$){return(0,e._)`${a(f)}.call(${y}, ${$})`}ie.isOwnProperty=c;function u(f,y,$,k){const w=(0,e._)`${y}${(0,e.getProperty)($)} !== undefined`;return k?(0,e._)`${w} && ${c(f,y,$)}`:w}ie.propertyInData=u;function l(f,y,$,k){const w=(0,e._)`${y}${(0,e.getProperty)($)} === undefined`;return k?(0,e.or)(w,(0,e.not)(c(f,y,$))):w}ie.noPropertyInData=l;function p(f){return f?Object.keys(f).filter(y=>y!=="__proto__"):[]}ie.allSchemaProperties=p;function b(f,y){return p(y).filter($=>!(0,t.alwaysValidSchema)(f,y[$]))}ie.schemaProperties=b;function v({schemaCode:f,data:y,it:{gen:$,topSchemaRef:k,schemaPath:w,errorPath:_},it:S},j,N,z){const V=z?(0,e._)`${f}, ${y}, ${k}${w}`:y,q=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,_)],[r.default.parentData,S.parentData],[r.default.parentDataProperty,S.parentDataProperty],[r.default.rootData,r.default.rootData]];S.opts.dynamicRef&&q.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const G=(0,e._)`${V}, ${$.object(...q)}`;return N!==e.nil?(0,e._)`${j}.call(${N}, ${G})`:(0,e._)`${j}(${G})`}ie.callValidateCode=v;const g=(0,e._)`new RegExp`;function m({gen:f,it:{opts:y}},$){const k=y.unicodeRegExp?"u":"",{regExp:w}=y.code,_=w($,k);return f.scopeValue("pattern",{key:_.toString(),ref:_,code:(0,e._)`${w.code==="new RegExp"?g:(0,n.useFunc)(f,w)}(${$}, ${k})`})}ie.usePattern=m;function d(f){const{gen:y,data:$,keyword:k,it:w}=f,_=y.name("valid");if(w.allErrors){const j=y.let("valid",!0);return S(()=>y.assign(j,!1)),j}return y.var(_,!0),S(()=>y.break()),_;function S(j){const N=y.const("len",(0,e._)`${$}.length`);y.forRange("i",0,N,z=>{f.subschema({keyword:k,dataProp:z,dataPropType:t.Type.Num},_),y.if((0,e.not)(_),j)})}}ie.validateArray=d;function h(f){const{gen:y,schema:$,keyword:k,it:w}=f;if(!Array.isArray($))throw new Error("ajv implementation error");if($.some(N=>(0,t.alwaysValidSchema)(w,N))&&!w.opts.unevaluated)return;const S=y.let("valid",!1),j=y.name("_valid");y.block(()=>$.forEach((N,z)=>{const V=f.subschema({keyword:k,schemaProp:z,compositeRule:!0},j);y.assign(S,(0,e._)`${S} || ${j}`),f.mergeValidEvaluated(V,j)||y.if((0,e.not)(S))})),f.result(S,()=>f.reset(),()=>f.error(!0))}return ie.validateUnion=h,ie}var Bi;function cd(){if(Bi)return je;Bi=1,Object.defineProperty(je,"__esModule",{value:!0}),je.validateKeywordUsage=je.validSchemaType=je.funcKeywordCode=je.macroKeywordCode=void 0;const e=ee(),t=Qe(),r=Ae(),n=hn();function o(b,v){const{gen:g,keyword:m,schema:d,parentSchema:h,it:f}=b,y=v.macro.call(f.self,d,h,f),$=u(g,m,y);f.opts.validateSchema!==!1&&f.self.validateSchema(y,!0);const k=g.name("valid");b.subschema({schema:y,schemaPath:e.nil,errSchemaPath:`${f.errSchemaPath}/${m}`,topSchemaRef:$,compositeRule:!0},k),b.pass(k,()=>b.error(!0))}je.macroKeywordCode=o;function i(b,v){var g;const{gen:m,keyword:d,schema:h,parentSchema:f,$data:y,it:$}=b;c($,v);const k=!y&&v.compile?v.compile.call($.self,h,f,$):v.validate,w=u(m,d,k),_=m.let("valid");b.block$data(_,S),b.ok((g=v.valid)!==null&&g!==void 0?g:_);function S(){if(v.errors===!1)z(),v.modifying&&s(b),V(()=>b.error());else{const q=v.async?j():N();v.modifying&&s(b),V(()=>a(b,q))}}function j(){const q=m.let("ruleErrs",null);return m.try(()=>z((0,e._)`await `),G=>m.assign(_,!1).if((0,e._)`${G} instanceof ${$.ValidationError}`,()=>m.assign(q,(0,e._)`${G}.errors`),()=>m.throw(G))),q}function N(){const q=(0,e._)`${w}.errors`;return m.assign(q,null),z(e.nil),q}function z(q=v.async?(0,e._)`await `:e.nil){const G=$.opts.passContext?t.default.this:t.default.self,se=!("compile"in v&&!y||v.schema===!1);m.assign(_,(0,e._)`${q}${(0,r.callValidateCode)(b,w,G,se)}`,v.modifying)}function V(q){var G;m.if((0,e.not)((G=v.valid)!==null&&G!==void 0?G:_),q)}}je.funcKeywordCode=i;function s(b){const{gen:v,data:g,it:m}=b;v.if(m.parentData,()=>v.assign(g,(0,e._)`${m.parentData}[${m.parentDataProperty}]`))}function a(b,v){const{gen:g}=b;g.if((0,e._)`Array.isArray(${v})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${v} : ${t.default.vErrors}.concat(${v})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(b)},()=>b.error())}function c({schemaEnv:b},v){if(v.async&&!b.$async)throw new Error("async keyword in sync schema")}function u(b,v,g){if(g===void 0)throw new Error(`keyword "${v}" failed to compile`);return b.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function l(b,v,g=!1){return!v.length||v.some(m=>m==="array"?Array.isArray(b):m==="object"?b&&typeof b=="object"&&!Array.isArray(b):typeof b==m||g&&typeof b>"u")}je.validSchemaType=l;function p({schema:b,opts:v,self:g,errSchemaPath:m},d,h){if(Array.isArray(d.keyword)?!d.keyword.includes(h):d.keyword!==h)throw new Error("ajv implementation error");const f=d.dependencies;if(f!=null&&f.some(y=>!Object.prototype.hasOwnProperty.call(b,y)))throw new Error(`parent schema must have dependencies of ${h}: ${f.join(",")}`);if(d.validateSchema&&!d.validateSchema(b[h])){const $=`keyword "${h}" value is invalid at path "${m}": `+g.errorsText(d.validateSchema.errors);if(v.validateSchema==="log")g.logger.error($);else throw new Error($)}}return je.validateKeywordUsage=p,je}var De={},Gi;function ld(){if(Gi)return De;Gi=1,Object.defineProperty(De,"__esModule",{value:!0}),De.extendSubschemaMode=De.extendSubschemaData=De.getSubschema=void 0;const e=ee(),t=ne();function r(i,{keyword:s,schemaProp:a,schema:c,schemaPath:u,errSchemaPath:l,topSchemaRef:p}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const b=i.schema[s];return a===void 0?{schema:b,schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${i.errSchemaPath}/${s}`}:{schema:b[a],schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${s}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(u===void 0||l===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:p,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}De.getSubschema=r;function n(i,s,{dataProp:a,dataPropType:c,data:u,dataTypes:l,propertyName:p}){if(u!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:b}=s;if(a!==void 0){const{errorPath:g,dataPathArr:m,opts:d}=s,h=b.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);v(h),i.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(a,c,d.jsPropertySyntax)}`,i.parentDataProperty=(0,e._)`${a}`,i.dataPathArr=[...m,i.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:b.let("data",u,!0);v(g),p!==void 0&&(i.propertyName=p)}l&&(i.dataTypes=l);function v(g){i.data=g,i.dataLevel=s.dataLevel+1,i.dataTypes=[],s.definedProperties=new Set,i.parentData=s.data,i.dataNames=[...s.dataNames,g]}}De.extendSubschemaData=n;function o(i,{jtdDiscriminator:s,jtdMetadata:a,compositeRule:c,createErrors:u,allErrors:l}){c!==void 0&&(i.compositeRule=c),u!==void 0&&(i.createErrors=u),l!==void 0&&(i.allErrors=l),i.jtdDiscriminator=s,i.jtdMetadata=a}return De.extendSubschemaMode=o,De}var be={},In,Ji;function Cc(){return Ji||(Ji=1,In=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),In}var Mn={exports:{}},Xi;function ud(){if(Xi)return Mn.exports;Xi=1;var e=Mn.exports=function(n,o,i){typeof o=="function"&&(i=o,o={}),i=o.cb||i;var s=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};t(o,s,a,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,o,i,s,a,c,u,l,p,b){if(s&&typeof s=="object"&&!Array.isArray(s)){o(s,a,c,u,l,p,b);for(var v in s){var g=s[v];if(Array.isArray(g)){if(v in e.arrayKeywords)for(var m=0;m<g.length;m++)t(n,o,i,g[m],a+"/"+v+"/"+m,c,a,v,s,m)}else if(v in e.propsKeywords){if(g&&typeof g=="object")for(var d in g)t(n,o,i,g[d],a+"/"+v+"/"+r(d),c,a,v,s,d)}else(v in e.keywords||n.allKeys&&!(v in e.skipKeywords))&&t(n,o,i,g,a+"/"+v,c,a,v,s)}i(s,a,c,u,l,p,b)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Mn.exports}var Yi;function mn(){if(Yi)return be;Yi=1,Object.defineProperty(be,"__esModule",{value:!0}),be.getSchemaRefs=be.resolveUrl=be.normalizeId=be._getFullPath=be.getFullPath=be.inlineRef=void 0;const e=ne(),t=Cc(),r=ud(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(m,d=!0){return typeof m=="boolean"?!0:d===!0?!s(m):d?a(m)<=d:!1}be.inlineRef=o;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(m){for(const d in m){if(i.has(d))return!0;const h=m[d];if(Array.isArray(h)&&h.some(s)||typeof h=="object"&&s(h))return!0}return!1}function a(m){let d=0;for(const h in m){if(h==="$ref")return 1/0;if(d++,!n.has(h)&&(typeof m[h]=="object"&&(0,e.eachItem)(m[h],f=>d+=a(f)),d===1/0))return 1/0}return d}function c(m,d="",h){h!==!1&&(d=p(d));const f=m.parse(d);return u(m,f)}be.getFullPath=c;function u(m,d){return m.serialize(d).split("#")[0]+"#"}be._getFullPath=u;const l=/#\/?$/;function p(m){return m?m.replace(l,""):""}be.normalizeId=p;function b(m,d,h){return h=p(h),m.resolve(d,h)}be.resolveUrl=b;const v=/^[a-z_][-a-z0-9._]*$/i;function g(m,d){if(typeof m=="boolean")return{};const{schemaId:h,uriResolver:f}=this.opts,y=p(m[h]||d),$={"":y},k=c(f,y,!1),w={},_=new Set;return r(m,{allKeys:!0},(N,z,V,q)=>{if(q===void 0)return;const G=k+z;let se=$[q];typeof N[h]=="string"&&(se=K.call(this,N[h])),J.call(this,N.$anchor),J.call(this,N.$dynamicAnchor),$[z]=se;function K(D){const X=this.opts.uriResolver.resolve;if(D=p(se?X(se,D):D),_.has(D))throw j(D);_.add(D);let I=this.refs[D];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?S(N,I.schema,D):D!==p(G)&&(D[0]==="#"?(S(N,w[D],D),w[D]=N):this.refs[D]=G),D}function J(D){if(typeof D=="string"){if(!v.test(D))throw new Error(`invalid anchor "${D}"`);K.call(this,`#${D}`)}}}),w;function S(N,z,V){if(z!==void 0&&!t(N,z))throw j(V)}function j(N){return new Error(`reference "${N}" resolves to more than one schema`)}}return be.getSchemaRefs=g,be}var Qi;function gn(){if(Qi)return ze;Qi=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.getData=ze.KeywordCxt=ze.validateFunctionCode=void 0;const e=sd(),t=Zr(),r=Ec(),n=Zr(),o=ad(),i=cd(),s=ld(),a=ee(),c=Qe(),u=mn(),l=ne(),p=hn();function b(P){if(k(P)&&(_(P),$(P))){d(P);return}v(P,()=>(0,e.topBoolOrEmptySchema)(P))}ze.validateFunctionCode=b;function v({gen:P,validateName:A,schema:F,schemaEnv:L,opts:H},Q){H.code.es5?P.func(A,(0,a._)`${c.default.data}, ${c.default.valCxt}`,L.$async,()=>{P.code((0,a._)`"use strict"; ${f(F,H)}`),m(P,H),P.code(Q)}):P.func(A,(0,a._)`${c.default.data}, ${g(H)}`,L.$async,()=>P.code(f(F,H)).code(Q))}function g(P){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${P.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function m(P,A){P.if(c.default.valCxt,()=>{P.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),P.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),P.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),P.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),A.dynamicRef&&P.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{P.var(c.default.instancePath,(0,a._)`""`),P.var(c.default.parentData,(0,a._)`undefined`),P.var(c.default.parentDataProperty,(0,a._)`undefined`),P.var(c.default.rootData,c.default.data),A.dynamicRef&&P.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function d(P){const{schema:A,opts:F,gen:L}=P;v(P,()=>{F.$comment&&A.$comment&&q(P),N(P),L.let(c.default.vErrors,null),L.let(c.default.errors,0),F.unevaluated&&h(P),S(P),G(P)})}function h(P){const{gen:A,validateName:F}=P;P.evaluated=A.const("evaluated",(0,a._)`${F}.evaluated`),A.if((0,a._)`${P.evaluated}.dynamicProps`,()=>A.assign((0,a._)`${P.evaluated}.props`,(0,a._)`undefined`)),A.if((0,a._)`${P.evaluated}.dynamicItems`,()=>A.assign((0,a._)`${P.evaluated}.items`,(0,a._)`undefined`))}function f(P,A){const F=typeof P=="object"&&P[A.schemaId];return F&&(A.code.source||A.code.process)?(0,a._)`/*# sourceURL=${F} */`:a.nil}function y(P,A){if(k(P)&&(_(P),$(P))){w(P,A);return}(0,e.boolOrEmptySchema)(P,A)}function $({schema:P,self:A}){if(typeof P=="boolean")return!P;for(const F in P)if(A.RULES.all[F])return!0;return!1}function k(P){return typeof P.schema!="boolean"}function w(P,A){const{schema:F,gen:L,opts:H}=P;H.$comment&&F.$comment&&q(P),z(P),V(P);const Q=L.const("_errs",c.default.errors);S(P,Q),L.var(A,(0,a._)`${Q} === ${c.default.errors}`)}function _(P){(0,l.checkUnknownRules)(P),j(P)}function S(P,A){if(P.opts.jtd)return K(P,[],!1,A);const F=(0,t.getSchemaTypes)(P.schema),L=(0,t.coerceAndCheckDataType)(P,F);K(P,F,!L,A)}function j(P){const{schema:A,errSchemaPath:F,opts:L,self:H}=P;A.$ref&&L.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(A,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${F}"`)}function N(P){const{schema:A,opts:F}=P;A.default!==void 0&&F.useDefaults&&F.strictSchema&&(0,l.checkStrictMode)(P,"default is ignored in the schema root")}function z(P){const A=P.schema[P.opts.schemaId];A&&(P.baseId=(0,u.resolveUrl)(P.opts.uriResolver,P.baseId,A))}function V(P){if(P.schema.$async&&!P.schemaEnv.$async)throw new Error("async schema in sync schema")}function q({gen:P,schemaEnv:A,schema:F,errSchemaPath:L,opts:H}){const Q=F.$comment;if(H.$comment===!0)P.code((0,a._)`${c.default.self}.logger.log(${Q})`);else if(typeof H.$comment=="function"){const he=(0,a.str)`${L}/$comment`,Ce=P.scopeValue("root",{ref:A.root});P.code((0,a._)`${c.default.self}.opts.$comment(${Q}, ${he}, ${Ce}.schema)`)}}function G(P){const{gen:A,schemaEnv:F,validateName:L,ValidationError:H,opts:Q}=P;F.$async?A.if((0,a._)`${c.default.errors} === 0`,()=>A.return(c.default.data),()=>A.throw((0,a._)`new ${H}(${c.default.vErrors})`)):(A.assign((0,a._)`${L}.errors`,c.default.vErrors),Q.unevaluated&&se(P),A.return((0,a._)`${c.default.errors} === 0`))}function se({gen:P,evaluated:A,props:F,items:L}){F instanceof a.Name&&P.assign((0,a._)`${A}.props`,F),L instanceof a.Name&&P.assign((0,a._)`${A}.items`,L)}function K(P,A,F,L){const{gen:H,schema:Q,data:he,allErrors:Ce,opts:$e,self:we}=P,{RULES:me}=we;if(Q.$ref&&($e.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(Q,me))){H.block(()=>U(P,"$ref",me.all.$ref.definition));return}$e.jtd||D(P,A),H.block(()=>{for(const Se of me.rules)at(Se);at(me.post)});function at(Se){(0,r.shouldUseGroup)(Q,Se)&&(Se.type?(H.if((0,n.checkDataType)(Se.type,he,$e.strictNumbers)),J(P,Se),A.length===1&&A[0]===Se.type&&F&&(H.else(),(0,n.reportTypeError)(P)),H.endIf()):J(P,Se),Ce||H.if((0,a._)`${c.default.errors} === ${L||0}`))}}function J(P,A){const{gen:F,schema:L,opts:{useDefaults:H}}=P;H&&(0,o.assignDefaults)(P,A.type),F.block(()=>{for(const Q of A.rules)(0,r.shouldUseRule)(L,Q)&&U(P,Q.keyword,Q.definition,A.type)})}function D(P,A){P.schemaEnv.meta||!P.opts.strictTypes||(X(P,A),P.opts.allowUnionTypes||I(P,A),O(P,P.dataTypes))}function X(P,A){if(A.length){if(!P.dataTypes.length){P.dataTypes=A;return}A.forEach(F=>{R(P.dataTypes,F)||E(P,`type "${F}" not allowed by context "${P.dataTypes.join(",")}"`)}),x(P,A)}}function I(P,A){A.length>1&&!(A.length===2&&A.includes("null"))&&E(P,"use allowUnionTypes to allow union type keyword")}function O(P,A){const F=P.self.RULES.all;for(const L in F){const H=F[L];if(typeof H=="object"&&(0,r.shouldUseRule)(P.schema,H)){const{type:Q}=H.definition;Q.length&&!Q.some(he=>M(A,he))&&E(P,`missing type "${Q.join(",")}" for keyword "${L}"`)}}}function M(P,A){return P.includes(A)||A==="number"&&P.includes("integer")}function R(P,A){return P.includes(A)||A==="integer"&&P.includes("number")}function x(P,A){const F=[];for(const L of P.dataTypes)R(A,L)?F.push(L):A.includes("integer")&&L==="number"&&F.push("integer");P.dataTypes=F}function E(P,A){const F=P.schemaEnv.baseId+P.errSchemaPath;A+=` at "${F}" (strictTypes)`,(0,l.checkStrictMode)(P,A,P.opts.strictTypes)}class T{constructor(A,F,L){if((0,i.validateKeywordUsage)(A,F,L),this.gen=A.gen,this.allErrors=A.allErrors,this.keyword=L,this.data=A.data,this.schema=A.schema[L],this.$data=F.$data&&A.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(A,this.schema,L,this.$data),this.schemaType=F.schemaType,this.parentSchema=A.schema,this.params={},this.it=A,this.def=F,this.$data)this.schemaCode=A.gen.const("vSchema",re(this.$data,A));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,F.schemaType,F.allowUndefined))throw new Error(`${L} value must be ${JSON.stringify(F.schemaType)}`);("code"in F?F.trackErrors:F.errors!==!1)&&(this.errsCount=A.gen.const("_errs",c.default.errors))}result(A,F,L){this.failResult((0,a.not)(A),F,L)}failResult(A,F,L){this.gen.if(A),L?L():this.error(),F?(this.gen.else(),F(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(A,F){this.failResult((0,a.not)(A),void 0,F)}fail(A){if(A===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(A),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(A){if(!this.$data)return this.fail(A);const{schemaCode:F}=this;this.fail((0,a._)`${F} !== undefined && (${(0,a.or)(this.invalid$data(),A)})`)}error(A,F,L){if(F){this.setParams(F),this._error(A,L),this.setParams({});return}this._error(A,L)}_error(A,F){(A?p.reportExtraError:p.reportError)(this,this.def.error,F)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(A){this.allErrors||this.gen.if(A)}setParams(A,F){F?Object.assign(this.params,A):this.params=A}block$data(A,F,L=a.nil){this.gen.block(()=>{this.check$data(A,L),F()})}check$data(A=a.nil,F=a.nil){if(!this.$data)return;const{gen:L,schemaCode:H,schemaType:Q,def:he}=this;L.if((0,a.or)((0,a._)`${H} === undefined`,F)),A!==a.nil&&L.assign(A,!0),(Q.length||he.validateSchema)&&(L.elseIf(this.invalid$data()),this.$dataError(),A!==a.nil&&L.assign(A,!1)),L.else()}invalid$data(){const{gen:A,schemaCode:F,schemaType:L,def:H,it:Q}=this;return(0,a.or)(he(),Ce());function he(){if(L.length){if(!(F instanceof a.Name))throw new Error("ajv implementation error");const $e=Array.isArray(L)?L:[L];return(0,a._)`${(0,n.checkDataTypes)($e,F,Q.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function Ce(){if(H.validateSchema){const $e=A.scopeValue("validate$data",{ref:H.validateSchema});return(0,a._)`!${$e}(${F})`}return a.nil}}subschema(A,F){const L=(0,s.getSubschema)(this.it,A);(0,s.extendSubschemaData)(L,this.it,A),(0,s.extendSubschemaMode)(L,A);const H={...this.it,...L,items:void 0,props:void 0};return y(H,F),H}mergeEvaluated(A,F){const{it:L,gen:H}=this;L.opts.unevaluated&&(L.props!==!0&&A.props!==void 0&&(L.props=l.mergeEvaluated.props(H,A.props,L.props,F)),L.items!==!0&&A.items!==void 0&&(L.items=l.mergeEvaluated.items(H,A.items,L.items,F)))}mergeValidEvaluated(A,F){const{it:L,gen:H}=this;if(L.opts.unevaluated&&(L.props!==!0||L.items!==!0))return H.if(F,()=>this.mergeEvaluated(A,a.Name)),!0}}ze.KeywordCxt=T;function U(P,A,F,L){const H=new T(P,F,A);"code"in F?F.code(H,L):H.$data&&F.validate?(0,i.funcKeywordCode)(H,F):"macro"in F?(0,i.macroKeywordCode)(H,F):(F.compile||F.validate)&&(0,i.funcKeywordCode)(H,F)}const W=/^\/(?:[^~]|~0|~1)*$/,oe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(P,{dataLevel:A,dataNames:F,dataPathArr:L}){let H,Q;if(P==="")return c.default.rootData;if(P[0]==="/"){if(!W.test(P))throw new Error(`Invalid JSON-pointer: ${P}`);H=P,Q=c.default.rootData}else{const we=oe.exec(P);if(!we)throw new Error(`Invalid JSON-pointer: ${P}`);const me=+we[1];if(H=we[2],H==="#"){if(me>=A)throw new Error($e("property/index",me));return L[A-me]}if(me>A)throw new Error($e("data",me));if(Q=F[A-me],!H)return Q}let he=Q;const Ce=H.split("/");for(const we of Ce)we&&(Q=(0,a._)`${Q}${(0,a.getProperty)((0,l.unescapeJsonPointer)(we))}`,he=(0,a._)`${he} && ${Q}`);return he;function $e(we,me){return`Cannot access ${we} ${me} levels up, current level is ${A}`}}return ze.getData=re,ze}var Yt={},Zi;function Io(){if(Zi)return Yt;Zi=1,Object.defineProperty(Yt,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Yt.default=e,Yt}var Qt={},es;function yn(){if(es)return Qt;es=1,Object.defineProperty(Qt,"__esModule",{value:!0});const e=mn();class t extends Error{constructor(n,o,i,s){super(s||`can't resolve reference ${i} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,i),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Qt.default=t,Qt}var _e={},ts;function Mo(){if(ts)return _e;ts=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.resolveSchema=_e.getCompilingSchema=_e.resolveRef=_e.compileSchema=_e.SchemaEnv=void 0;const e=ee(),t=Io(),r=Qe(),n=mn(),o=ne(),i=gn();class s{constructor(h){var f;this.refs={},this.dynamicAnchors={};let y;typeof h.schema=="object"&&(y=h.schema),this.schema=h.schema,this.schemaId=h.schemaId,this.root=h.root||this,this.baseId=(f=h.baseId)!==null&&f!==void 0?f:(0,n.normalizeId)(y==null?void 0:y[h.schemaId||"$id"]),this.schemaPath=h.schemaPath,this.localRefs=h.localRefs,this.meta=h.meta,this.$async=y==null?void 0:y.$async,this.refs={}}}_e.SchemaEnv=s;function a(d){const h=l.call(this,d);if(h)return h;const f=(0,n.getFullPath)(this.opts.uriResolver,d.root.baseId),{es5:y,lines:$}=this.opts.code,{ownProperties:k}=this.opts,w=new e.CodeGen(this.scope,{es5:y,lines:$,ownProperties:k});let _;d.$async&&(_=w.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const S=w.scopeName("validate");d.validateName=S;const j={gen:w,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:w.scopeValue("schema",this.opts.code.source===!0?{ref:d.schema,code:(0,e.stringify)(d.schema)}:{ref:d.schema}),validateName:S,ValidationError:_,schema:d.schema,schemaEnv:d,rootId:f,baseId:d.baseId||f,schemaPath:e.nil,errSchemaPath:d.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let N;try{this._compilations.add(d),(0,i.validateFunctionCode)(j),w.optimize(this.opts.code.optimize);const z=w.toString();N=`${w.scopeRefs(r.default.scope)}return ${z}`,this.opts.code.process&&(N=this.opts.code.process(N,d));const q=new Function(`${r.default.self}`,`${r.default.scope}`,N)(this,this.scope.get());if(this.scope.value(S,{ref:q}),q.errors=null,q.schema=d.schema,q.schemaEnv=d,d.$async&&(q.$async=!0),this.opts.code.source===!0&&(q.source={validateName:S,validateCode:z,scopeValues:w._values}),this.opts.unevaluated){const{props:G,items:se}=j;q.evaluated={props:G instanceof e.Name?void 0:G,items:se instanceof e.Name?void 0:se,dynamicProps:G instanceof e.Name,dynamicItems:se instanceof e.Name},q.source&&(q.source.evaluated=(0,e.stringify)(q.evaluated))}return d.validate=q,d}catch(z){throw delete d.validate,delete d.validateName,N&&this.logger.error("Error compiling schema, function code:",N),z}finally{this._compilations.delete(d)}}_e.compileSchema=a;function c(d,h,f){var y;f=(0,n.resolveUrl)(this.opts.uriResolver,h,f);const $=d.refs[f];if($)return $;let k=b.call(this,d,f);if(k===void 0){const w=(y=d.localRefs)===null||y===void 0?void 0:y[f],{schemaId:_}=this.opts;w&&(k=new s({schema:w,schemaId:_,root:d,baseId:h}))}if(k!==void 0)return d.refs[f]=u.call(this,k)}_e.resolveRef=c;function u(d){return(0,n.inlineRef)(d.schema,this.opts.inlineRefs)?d.schema:d.validate?d:a.call(this,d)}function l(d){for(const h of this._compilations)if(p(h,d))return h}_e.getCompilingSchema=l;function p(d,h){return d.schema===h.schema&&d.root===h.root&&d.baseId===h.baseId}function b(d,h){let f;for(;typeof(f=this.refs[h])=="string";)h=f;return f||this.schemas[h]||v.call(this,d,h)}function v(d,h){const f=this.opts.uriResolver.parse(h),y=(0,n._getFullPath)(this.opts.uriResolver,f);let $=(0,n.getFullPath)(this.opts.uriResolver,d.baseId,void 0);if(Object.keys(d.schema).length>0&&y===$)return m.call(this,f,d);const k=(0,n.normalizeId)(y),w=this.refs[k]||this.schemas[k];if(typeof w=="string"){const _=v.call(this,d,w);return typeof(_==null?void 0:_.schema)!="object"?void 0:m.call(this,f,_)}if(typeof(w==null?void 0:w.schema)=="object"){if(w.validate||a.call(this,w),k===(0,n.normalizeId)(h)){const{schema:_}=w,{schemaId:S}=this.opts,j=_[S];return j&&($=(0,n.resolveUrl)(this.opts.uriResolver,$,j)),new s({schema:_,schemaId:S,root:d,baseId:$})}return m.call(this,f,w)}}_e.resolveSchema=v;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(d,{baseId:h,schema:f,root:y}){var $;if((($=d.fragment)===null||$===void 0?void 0:$[0])!=="/")return;for(const _ of d.fragment.slice(1).split("/")){if(typeof f=="boolean")return;const S=f[(0,o.unescapeFragment)(_)];if(S===void 0)return;f=S;const j=typeof f=="object"&&f[this.opts.schemaId];!g.has(_)&&j&&(h=(0,n.resolveUrl)(this.opts.uriResolver,h,j))}let k;if(typeof f!="boolean"&&f.$ref&&!(0,o.schemaHasRulesButRef)(f,this.RULES)){const _=(0,n.resolveUrl)(this.opts.uriResolver,h,f.$ref);k=v.call(this,y,_)}const{schemaId:w}=this.opts;if(k=k||new s({schema:f,schemaId:w,root:y,baseId:h}),k.schema!==k.root.schema)return k}return _e}const fd="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",dd="Meta-schema for $data reference (JSON AnySchema extension proposal)",pd="object",hd=["$data"],md={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},gd=!1,yd={$id:fd,description:dd,type:pd,required:hd,properties:md,additionalProperties:gd};var Zt={},_t={exports:{}},Fn,rs;function bd(){return rs||(rs=1,Fn={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),Fn}var zn,ns;function vd(){if(ns)return zn;ns=1;const{HEX:e}=bd(),t=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function r(m){if(a(m,".")<3)return{host:m,isIPV4:!1};const d=m.match(t)||[],[h]=d;return h?{host:s(h,"."),isIPV4:!0}:{host:m,isIPV4:!1}}function n(m,d=!1){let h="",f=!0;for(const y of m){if(e[y]===void 0)return;y!=="0"&&f===!0&&(f=!1),f||(h+=y)}return d&&h.length===0&&(h="0"),h}function o(m){let d=0;const h={error:!1,address:"",zone:""},f=[],y=[];let $=!1,k=!1,w=!1;function _(){if(y.length){if($===!1){const S=n(y);if(S!==void 0)f.push(S);else return h.error=!0,!1}y.length=0}return!0}for(let S=0;S<m.length;S++){const j=m[S];if(!(j==="["||j==="]"))if(j===":"){if(k===!0&&(w=!0),!_())break;if(d++,f.push(":"),d>7){h.error=!0;break}S-1>=0&&m[S-1]===":"&&(k=!0);continue}else if(j==="%"){if(!_())break;$=!0}else{y.push(j);continue}}return y.length&&($?h.zone=y.join(""):w?f.push(y.join("")):f.push(n(y))),h.address=f.join(""),h}function i(m){if(a(m,":")<2)return{host:m,isIPV6:!1};const d=o(m);if(d.error)return{host:m,isIPV6:!1};{let h=d.address,f=d.address;return d.zone&&(h+="%"+d.zone,f+="%25"+d.zone),{host:h,escapedHost:f,isIPV6:!0}}}function s(m,d){let h="",f=!0;const y=m.length;for(let $=0;$<y;$++){const k=m[$];k==="0"&&f?($+1<=y&&m[$+1]===d||$+1===y)&&(h+=k,f=!1):(k===d?f=!0:f=!1,h+=k)}return h}function a(m,d){let h=0;for(let f=0;f<m.length;f++)m[f]===d&&h++;return h}const c=/^\.\.?\//u,u=/^\/\.(?:\/|$)/u,l=/^\/\.\.(?:\/|$)/u,p=/^\/?(?:.|\n)*?(?=\/|$)/u;function b(m){const d=[];for(;m.length;)if(m.match(c))m=m.replace(c,"");else if(m.match(u))m=m.replace(u,"/");else if(m.match(l))m=m.replace(l,"/"),d.pop();else if(m==="."||m==="..")m="";else{const h=m.match(p);if(h){const f=h[0];m=m.slice(f.length),d.push(f)}else throw new Error("Unexpected dot segment condition")}return d.join("")}function v(m,d){const h=d!==!0?escape:unescape;return m.scheme!==void 0&&(m.scheme=h(m.scheme)),m.userinfo!==void 0&&(m.userinfo=h(m.userinfo)),m.host!==void 0&&(m.host=h(m.host)),m.path!==void 0&&(m.path=h(m.path)),m.query!==void 0&&(m.query=h(m.query)),m.fragment!==void 0&&(m.fragment=h(m.fragment)),m}function g(m){const d=[];if(m.userinfo!==void 0&&(d.push(m.userinfo),d.push("@")),m.host!==void 0){let h=unescape(m.host);const f=r(h);if(f.isIPV4)h=f.host;else{const y=i(f.host);y.isIPV6===!0?h=`[${y.escapedHost}]`:h=m.host}d.push(h)}return(typeof m.port=="number"||typeof m.port=="string")&&(d.push(":"),d.push(String(m.port))),d.length?d.join(""):void 0}return zn={recomposeAuthority:g,normalizeComponentEncoding:v,removeDotSegments:b,normalizeIPv4:r,normalizeIPv6:i,stringArrayToHexStripped:n},zn}var Ln,os;function $d(){if(os)return Ln;os=1;const e=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(f){return typeof f.secure=="boolean"?f.secure:String(f.scheme).toLowerCase()==="wss"}function n(f){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f}function o(f){const y=String(f.scheme).toLowerCase()==="https";return(f.port===(y?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}function i(f){return f.secure=r(f),f.resourceName=(f.path||"/")+(f.query?"?"+f.query:""),f.path=void 0,f.query=void 0,f}function s(f){if((f.port===(r(f)?443:80)||f.port==="")&&(f.port=void 0),typeof f.secure=="boolean"&&(f.scheme=f.secure?"wss":"ws",f.secure=void 0),f.resourceName){const[y,$]=f.resourceName.split("?");f.path=y&&y!=="/"?y:void 0,f.query=$,f.resourceName=void 0}return f.fragment=void 0,f}function a(f,y){if(!f.path)return f.error="URN can not be parsed",f;const $=f.path.match(t);if($){const k=y.scheme||f.scheme||"urn";f.nid=$[1].toLowerCase(),f.nss=$[2];const w=`${k}:${y.nid||f.nid}`,_=h[w];f.path=void 0,_&&(f=_.parse(f,y))}else f.error=f.error||"URN can not be parsed.";return f}function c(f,y){const $=y.scheme||f.scheme||"urn",k=f.nid.toLowerCase(),w=`${$}:${y.nid||k}`,_=h[w];_&&(f=_.serialize(f,y));const S=f,j=f.nss;return S.path=`${k||y.nid}:${j}`,y.skipEscape=!0,S}function u(f,y){const $=f;return $.uuid=$.nss,$.nss=void 0,!y.tolerant&&(!$.uuid||!e.test($.uuid))&&($.error=$.error||"UUID is not valid."),$}function l(f){const y=f;return y.nss=(f.uuid||"").toLowerCase(),y}const p={scheme:"http",domainHost:!0,parse:n,serialize:o},b={scheme:"https",domainHost:p.domainHost,parse:n,serialize:o},v={scheme:"ws",domainHost:!0,parse:i,serialize:s},g={scheme:"wss",domainHost:v.domainHost,parse:v.parse,serialize:v.serialize},h={http:p,https:b,ws:v,wss:g,urn:{scheme:"urn",parse:a,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:u,serialize:l,skipNormalize:!0}};return Ln=h,Ln}var is;function wd(){if(is)return _t.exports;is=1;const{normalizeIPv6:e,normalizeIPv4:t,removeDotSegments:r,recomposeAuthority:n,normalizeComponentEncoding:o}=vd(),i=$d();function s(d,h){return typeof d=="string"?d=l(g(d,h),h):typeof d=="object"&&(d=g(l(d,h),h)),d}function a(d,h,f){const y=Object.assign({scheme:"null"},f),$=c(g(d,y),g(h,y),y,!0);return l($,{...y,skipEscape:!0})}function c(d,h,f,y){const $={};return y||(d=g(l(d,f),f),h=g(l(h,f),f)),f=f||{},!f.tolerant&&h.scheme?($.scheme=h.scheme,$.userinfo=h.userinfo,$.host=h.host,$.port=h.port,$.path=r(h.path||""),$.query=h.query):(h.userinfo!==void 0||h.host!==void 0||h.port!==void 0?($.userinfo=h.userinfo,$.host=h.host,$.port=h.port,$.path=r(h.path||""),$.query=h.query):(h.path?(h.path.charAt(0)==="/"?$.path=r(h.path):((d.userinfo!==void 0||d.host!==void 0||d.port!==void 0)&&!d.path?$.path="/"+h.path:d.path?$.path=d.path.slice(0,d.path.lastIndexOf("/")+1)+h.path:$.path=h.path,$.path=r($.path)),$.query=h.query):($.path=d.path,h.query!==void 0?$.query=h.query:$.query=d.query),$.userinfo=d.userinfo,$.host=d.host,$.port=d.port),$.scheme=d.scheme),$.fragment=h.fragment,$}function u(d,h,f){return typeof d=="string"?(d=unescape(d),d=l(o(g(d,f),!0),{...f,skipEscape:!0})):typeof d=="object"&&(d=l(o(d,!0),{...f,skipEscape:!0})),typeof h=="string"?(h=unescape(h),h=l(o(g(h,f),!0),{...f,skipEscape:!0})):typeof h=="object"&&(h=l(o(h,!0),{...f,skipEscape:!0})),d.toLowerCase()===h.toLowerCase()}function l(d,h){const f={host:d.host,scheme:d.scheme,userinfo:d.userinfo,port:d.port,path:d.path,query:d.query,nid:d.nid,nss:d.nss,uuid:d.uuid,fragment:d.fragment,reference:d.reference,resourceName:d.resourceName,secure:d.secure,error:""},y=Object.assign({},h),$=[],k=i[(y.scheme||f.scheme||"").toLowerCase()];k&&k.serialize&&k.serialize(f,y),f.path!==void 0&&(y.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),y.reference!=="suffix"&&f.scheme&&$.push(f.scheme,":");const w=n(f);if(w!==void 0&&(y.reference!=="suffix"&&$.push("//"),$.push(w),f.path&&f.path.charAt(0)!=="/"&&$.push("/")),f.path!==void 0){let _=f.path;!y.absolutePath&&(!k||!k.absolutePath)&&(_=r(_)),w===void 0&&(_=_.replace(/^\/\//u,"/%2F")),$.push(_)}return f.query!==void 0&&$.push("?",f.query),f.fragment!==void 0&&$.push("#",f.fragment),$.join("")}const p=Array.from({length:127},(d,h)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(h)));function b(d){let h=0;for(let f=0,y=d.length;f<y;++f)if(h=d.charCodeAt(f),h>126||p[h])return!0;return!1}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(d,h){const f=Object.assign({},h),y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},$=d.indexOf("%")!==-1;let k=!1;f.reference==="suffix"&&(d=(f.scheme?f.scheme+":":"")+"//"+d);const w=d.match(v);if(w){if(y.scheme=w[1],y.userinfo=w[3],y.host=w[4],y.port=parseInt(w[5],10),y.path=w[6]||"",y.query=w[7],y.fragment=w[8],isNaN(y.port)&&(y.port=w[5]),y.host){const S=t(y.host);if(S.isIPV4===!1){const j=e(S.host);y.host=j.host.toLowerCase(),k=j.isIPV6}else y.host=S.host,k=!0}y.scheme===void 0&&y.userinfo===void 0&&y.host===void 0&&y.port===void 0&&y.query===void 0&&!y.path?y.reference="same-document":y.scheme===void 0?y.reference="relative":y.fragment===void 0?y.reference="absolute":y.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==y.reference&&(y.error=y.error||"URI is not a "+f.reference+" reference.");const _=i[(f.scheme||y.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!_||!_.unicodeSupport)&&y.host&&(f.domainHost||_&&_.domainHost)&&k===!1&&b(y.host))try{y.host=URL.domainToASCII(y.host.toLowerCase())}catch(S){y.error=y.error||"Host's domain name can not be converted to ASCII: "+S}(!_||_&&!_.skipNormalize)&&($&&y.scheme!==void 0&&(y.scheme=unescape(y.scheme)),$&&y.host!==void 0&&(y.host=unescape(y.host)),y.path&&(y.path=escape(unescape(y.path))),y.fragment&&(y.fragment=encodeURI(decodeURIComponent(y.fragment)))),_&&_.parse&&_.parse(y,f)}else y.error=y.error||"URI can not be parsed.";return y}const m={SCHEMES:i,normalize:s,resolve:a,resolveComponents:c,equal:u,serialize:l,parse:g};return _t.exports=m,_t.exports.default=m,_t.exports.fastUri=m,_t.exports}var ss;function kd(){if(ss)return Zt;ss=1,Object.defineProperty(Zt,"__esModule",{value:!0});const e=wd();return e.code='require("ajv/dist/runtime/uri").default',Zt.default=e,Zt}var as;function _d(){return as||(as=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=gn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ee();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Io(),o=yn(),i=Sc(),s=Mo(),a=ee(),c=mn(),u=Zr(),l=ne(),p=yd,b=kd(),v=(I,O)=>new RegExp(I,O);v.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),d={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},h={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},f=200;function y(I){var O,M,R,x,E,T,U,W,oe,re,P,A,F,L,H,Q,he,Ce,$e,we,me,at,Se,kn,_n;const $t=I.strict,xn=(O=I.code)===null||O===void 0?void 0:O.optimize,ni=xn===!0||xn===void 0?1:xn||0,oi=(R=(M=I.code)===null||M===void 0?void 0:M.regExp)!==null&&R!==void 0?R:v,zl=(x=I.uriResolver)!==null&&x!==void 0?x:b.default;return{strictSchema:(T=(E=I.strictSchema)!==null&&E!==void 0?E:$t)!==null&&T!==void 0?T:!0,strictNumbers:(W=(U=I.strictNumbers)!==null&&U!==void 0?U:$t)!==null&&W!==void 0?W:!0,strictTypes:(re=(oe=I.strictTypes)!==null&&oe!==void 0?oe:$t)!==null&&re!==void 0?re:"log",strictTuples:(A=(P=I.strictTuples)!==null&&P!==void 0?P:$t)!==null&&A!==void 0?A:"log",strictRequired:(L=(F=I.strictRequired)!==null&&F!==void 0?F:$t)!==null&&L!==void 0?L:!1,code:I.code?{...I.code,optimize:ni,regExp:oi}:{optimize:ni,regExp:oi},loopRequired:(H=I.loopRequired)!==null&&H!==void 0?H:f,loopEnum:(Q=I.loopEnum)!==null&&Q!==void 0?Q:f,meta:(he=I.meta)!==null&&he!==void 0?he:!0,messages:(Ce=I.messages)!==null&&Ce!==void 0?Ce:!0,inlineRefs:($e=I.inlineRefs)!==null&&$e!==void 0?$e:!0,schemaId:(we=I.schemaId)!==null&&we!==void 0?we:"$id",addUsedSchema:(me=I.addUsedSchema)!==null&&me!==void 0?me:!0,validateSchema:(at=I.validateSchema)!==null&&at!==void 0?at:!0,validateFormats:(Se=I.validateFormats)!==null&&Se!==void 0?Se:!0,unicodeRegExp:(kn=I.unicodeRegExp)!==null&&kn!==void 0?kn:!0,int32range:(_n=I.int32range)!==null&&_n!==void 0?_n:!0,uriResolver:zl}}class ${constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,...y(O)};const{es5:M,lines:R}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:M,lines:R}),this.logger=V(O.logger);const x=O.validateFormats;O.validateFormats=!1,this.RULES=(0,i.getRules)(),k.call(this,d,O,"NOT SUPPORTED"),k.call(this,h,O,"DEPRECATED","warn"),this._metaOpts=N.call(this),O.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&j.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),_.call(this),O.validateFormats=x}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:M,schemaId:R}=this.opts;let x=p;R==="id"&&(x={...p},x.id=x.$id,delete x.$id),M&&O&&this.addMetaSchema(x,x[R],!1)}defaultMeta(){const{meta:O,schemaId:M}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[M]||O:void 0}validate(O,M){let R;if(typeof O=="string"){if(R=this.getSchema(O),!R)throw new Error(`no schema with key or ref "${O}"`)}else R=this.compile(O);const x=R(M);return"$async"in R||(this.errors=R.errors),x}compile(O,M){const R=this._addSchema(O,M);return R.validate||this._compileSchemaEnv(R)}compileAsync(O,M){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:R}=this.opts;return x.call(this,O,M);async function x(re,P){await E.call(this,re.$schema);const A=this._addSchema(re,P);return A.validate||T.call(this,A)}async function E(re){re&&!this.getSchema(re)&&await x.call(this,{$ref:re},!0)}async function T(re){try{return this._compileSchemaEnv(re)}catch(P){if(!(P instanceof o.default))throw P;return U.call(this,P),await W.call(this,P.missingSchema),T.call(this,re)}}function U({missingSchema:re,missingRef:P}){if(this.refs[re])throw new Error(`AnySchema ${re} is loaded but ${P} cannot be resolved`)}async function W(re){const P=await oe.call(this,re);this.refs[re]||await E.call(this,P.$schema),this.refs[re]||this.addSchema(P,re,M)}async function oe(re){const P=this._loading[re];if(P)return P;try{return await(this._loading[re]=R(re))}finally{delete this._loading[re]}}}addSchema(O,M,R,x=this.opts.validateSchema){if(Array.isArray(O)){for(const T of O)this.addSchema(T,void 0,R,x);return this}let E;if(typeof O=="object"){const{schemaId:T}=this.opts;if(E=O[T],E!==void 0&&typeof E!="string")throw new Error(`schema ${T} must be string`)}return M=(0,c.normalizeId)(M||E),this._checkUnique(M),this.schemas[M]=this._addSchema(O,R,M,x,!0),this}addMetaSchema(O,M,R=this.opts.validateSchema){return this.addSchema(O,M,!0,R),this}validateSchema(O,M){if(typeof O=="boolean")return!0;let R;if(R=O.$schema,R!==void 0&&typeof R!="string")throw new Error("$schema must be a string");if(R=R||this.opts.defaultMeta||this.defaultMeta(),!R)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const x=this.validate(R,O);if(!x&&M){const E="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(E);else throw new Error(E)}return x}getSchema(O){let M;for(;typeof(M=w.call(this,O))=="string";)O=M;if(M===void 0){const{schemaId:R}=this.opts,x=new s.SchemaEnv({schema:{},schemaId:R});if(M=s.resolveSchema.call(this,x,O),!M)return;this.refs[O]=M}return M.validate||this._compileSchemaEnv(M)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const M=w.call(this,O);return typeof M=="object"&&this._cache.delete(M.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{const M=O;this._cache.delete(M);let R=O[this.opts.schemaId];return R&&(R=(0,c.normalizeId)(R),delete this.schemas[R],delete this.refs[R]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(const M of O)this.addKeyword(M);return this}addKeyword(O,M){let R;if(typeof O=="string")R=O,typeof M=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),M.keyword=R);else if(typeof O=="object"&&M===void 0){if(M=O,R=M.keyword,Array.isArray(R)&&!R.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(G.call(this,R,M),!M)return(0,l.eachItem)(R,E=>se.call(this,E)),this;J.call(this,M);const x={...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)};return(0,l.eachItem)(R,x.type.length===0?E=>se.call(this,E,x):E=>x.type.forEach(T=>se.call(this,E,x,T))),this}getKeyword(O){const M=this.RULES.all[O];return typeof M=="object"?M.definition:!!M}removeKeyword(O){const{RULES:M}=this;delete M.keywords[O],delete M.all[O];for(const R of M.rules){const x=R.rules.findIndex(E=>E.keyword===O);x>=0&&R.rules.splice(x,1)}return this}addFormat(O,M){return typeof M=="string"&&(M=new RegExp(M)),this.formats[O]=M,this}errorsText(O=this.errors,{separator:M=", ",dataVar:R="data"}={}){return!O||O.length===0?"No errors":O.map(x=>`${R}${x.instancePath} ${x.message}`).reduce((x,E)=>x+M+E)}$dataMetaSchema(O,M){const R=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const x of M){const E=x.split("/").slice(1);let T=O;for(const U of E)T=T[U];for(const U in R){const W=R[U];if(typeof W!="object")continue;const{$data:oe}=W.definition,re=T[U];oe&&re&&(T[U]=X(re))}}return O}_removeAllSchemas(O,M){for(const R in O){const x=O[R];(!M||M.test(R))&&(typeof x=="string"?delete O[R]:x&&!x.meta&&(this._cache.delete(x.schema),delete O[R]))}}_addSchema(O,M,R,x=this.opts.validateSchema,E=this.opts.addUsedSchema){let T;const{schemaId:U}=this.opts;if(typeof O=="object")T=O[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(O);if(W!==void 0)return W;R=(0,c.normalizeId)(T||R);const oe=c.getSchemaRefs.call(this,O,R);return W=new s.SchemaEnv({schema:O,schemaId:U,meta:M,baseId:R,localRefs:oe}),this._cache.set(W.schema,W),E&&!R.startsWith("#")&&(R&&this._checkUnique(R),this.refs[R]=W),x&&this.validateSchema(O,!0),W}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):s.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){const M=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,O)}finally{this.opts=M}}}$.ValidationError=n.default,$.MissingRefError=o.default,e.default=$;function k(I,O,M,R="error"){for(const x in I){const E=x;E in O&&this.logger[R](`${M}: option ${x}. ${I[E]}`)}}function w(I){return I=(0,c.normalizeId)(I),this.schemas[I]||this.refs[I]}function _(){const I=this.opts.schemas;if(I)if(Array.isArray(I))this.addSchema(I);else for(const O in I)this.addSchema(I[O],O)}function S(){for(const I in this.opts.formats){const O=this.opts.formats[I];O&&this.addFormat(I,O)}}function j(I){if(Array.isArray(I)){this.addVocabulary(I);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const O in I){const M=I[O];M.keyword||(M.keyword=O),this.addKeyword(M)}}function N(){const I={...this.opts};for(const O of g)delete I[O];return I}const z={log(){},warn(){},error(){}};function V(I){if(I===!1)return z;if(I===void 0)return console;if(I.log&&I.warn&&I.error)return I;throw new Error("logger must implement log, warn and error methods")}const q=/^[a-z_$][a-z0-9_$:-]*$/i;function G(I,O){const{RULES:M}=this;if((0,l.eachItem)(I,R=>{if(M.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!q.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!O&&O.$data&&!("code"in O||"validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function se(I,O,M){var R;const x=O==null?void 0:O.post;if(M&&x)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:E}=this;let T=x?E.post:E.rules.find(({type:W})=>W===M);if(T||(T={type:M,rules:[]},E.rules.push(T)),E.keywords[I]=!0,!O)return;const U={keyword:I,definition:{...O,type:(0,u.getJSONTypes)(O.type),schemaType:(0,u.getJSONTypes)(O.schemaType)}};O.before?K.call(this,T,U,O.before):T.rules.push(U),E.all[I]=U,(R=O.implements)===null||R===void 0||R.forEach(W=>this.addKeyword(W))}function K(I,O,M){const R=I.rules.findIndex(x=>x.keyword===M);R>=0?I.rules.splice(R,0,O):(I.rules.push(O),this.logger.warn(`rule ${M} is not defined`))}function J(I){let{metaSchema:O}=I;O!==void 0&&(I.$data&&this.opts.$data&&(O=X(O)),I.validateSchema=this.compile(O,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function X(I){return{anyOf:[I,D]}}}(On)),On}var er={},tr={},rr={},cs;function xd(){if(cs)return rr;cs=1,Object.defineProperty(rr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return rr.default=e,rr}var We={},ls;function Sd(){if(ls)return We;ls=1,Object.defineProperty(We,"__esModule",{value:!0}),We.callRef=We.getValidate=void 0;const e=yn(),t=Ae(),r=ee(),n=Qe(),o=Mo(),i=ne(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:l,schema:p,it:b}=u,{baseId:v,schemaEnv:g,validateName:m,opts:d,self:h}=b,{root:f}=g;if((p==="#"||p==="#/")&&v===f.baseId)return $();const y=o.resolveRef.call(h,f,v,p);if(y===void 0)throw new e.default(b.opts.uriResolver,v,p);if(y instanceof o.SchemaEnv)return k(y);return w(y);function $(){if(g===f)return c(u,m,g,g.$async);const _=l.scopeValue("root",{ref:f});return c(u,(0,r._)`${_}.validate`,f,f.$async)}function k(_){const S=a(u,_);c(u,S,_,_.$async)}function w(_){const S=l.scopeValue("schema",d.code.source===!0?{ref:_,code:(0,r.stringify)(_)}:{ref:_}),j=l.name("valid"),N=u.subschema({schema:_,dataTypes:[],schemaPath:r.nil,topSchemaRef:S,errSchemaPath:p},j);u.mergeEvaluated(N),u.ok(j)}}};function a(u,l){const{gen:p}=u;return l.validate?p.scopeValue("validate",{ref:l.validate}):(0,r._)`${p.scopeValue("wrapper",{ref:l})}.validate`}We.getValidate=a;function c(u,l,p,b){const{gen:v,it:g}=u,{allErrors:m,schemaEnv:d,opts:h}=g,f=h.passContext?n.default.this:r.nil;b?y():$();function y(){if(!d.$async)throw new Error("async schema referenced by sync schema");const _=v.let("valid");v.try(()=>{v.code((0,r._)`await ${(0,t.callValidateCode)(u,l,f)}`),w(l),m||v.assign(_,!0)},S=>{v.if((0,r._)`!(${S} instanceof ${g.ValidationError})`,()=>v.throw(S)),k(S),m||v.assign(_,!1)}),u.ok(_)}function $(){u.result((0,t.callValidateCode)(u,l,f),()=>w(l),()=>k(l))}function k(_){const S=(0,r._)`${_}.errors`;v.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${S} : ${n.default.vErrors}.concat(${S})`),v.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function w(_){var S;if(!g.opts.unevaluated)return;const j=(S=p==null?void 0:p.validate)===null||S===void 0?void 0:S.evaluated;if(g.props!==!0)if(j&&!j.dynamicProps)j.props!==void 0&&(g.props=i.mergeEvaluated.props(v,j.props,g.props));else{const N=v.var("props",(0,r._)`${_}.evaluated.props`);g.props=i.mergeEvaluated.props(v,N,g.props,r.Name)}if(g.items!==!0)if(j&&!j.dynamicItems)j.items!==void 0&&(g.items=i.mergeEvaluated.items(v,j.items,g.items));else{const N=v.var("items",(0,r._)`${_}.evaluated.items`);g.items=i.mergeEvaluated.items(v,N,g.items,r.Name)}}}return We.callRef=c,We.default=s,We}var us;function Ed(){if(us)return tr;us=1,Object.defineProperty(tr,"__esModule",{value:!0});const e=xd(),t=Sd(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return tr.default=r,tr}var nr={},or={},fs;function Cd(){if(fs)return or;fs=1,Object.defineProperty(or,"__esModule",{value:!0});const e=ee(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:i,schemaCode:s})=>(0,e.str)`must be ${r[i].okStr} ${s}`,params:({keyword:i,schemaCode:s})=>(0,e._)`{comparison: ${r[i].okStr}, limit: ${s}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{keyword:s,data:a,schemaCode:c}=i;i.fail$data((0,e._)`${a} ${r[s].fail} ${c} || isNaN(${a})`)}};return or.default=o,or}var ir={},ds;function jd(){if(ds)return ir;ds=1,Object.defineProperty(ir,"__esModule",{value:!0});const e=ee(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:o,data:i,schemaCode:s,it:a}=n,c=a.opts.multipleOfPrecision,u=o.let("res"),l=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${s} === 0 || (${u} = ${i}/${s}, ${l}))`)}};return ir.default=r,ir}var sr={},ar={},ps;function Pd(){if(ps)return ar;ps=1,Object.defineProperty(ar,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,i;for(;o<r;)n++,i=t.charCodeAt(o++),i>=55296&&i<=56319&&o<r&&(i=t.charCodeAt(o),(i&64512)===56320&&o++);return n}return ar.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ar}var hs;function Od(){if(hs)return sr;hs=1,Object.defineProperty(sr,"__esModule",{value:!0});const e=ee(),t=ne(),r=Pd(),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:s}){const a=i==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:s,data:a,schemaCode:c,it:u}=i,l=s==="maxLength"?e.operators.GT:e.operators.LT,p=u.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(i.gen,r.default)}(${a})`;i.fail$data((0,e._)`${p} ${l} ${c}`)}};return sr.default=o,sr}var cr={},ms;function Rd(){if(ms)return cr;ms=1,Object.defineProperty(cr,"__esModule",{value:!0});const e=Ae(),t=ee(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,t._)`{pattern: ${o}}`},code(o){const{data:i,$data:s,schema:a,schemaCode:c,it:u}=o,l=u.opts.unicodeRegExp?"u":"",p=s?(0,t._)`(new RegExp(${c}, ${l}))`:(0,e.usePattern)(o,a);o.fail$data((0,t._)`!${p}.test(${i})`)}};return cr.default=n,cr}var lr={},gs;function Ad(){if(gs)return lr;gs=1,Object.defineProperty(lr,"__esModule",{value:!0});const e=ee(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const i=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${o} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:i,schemaCode:s}=n,a=o==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${i}).length ${a} ${s}`)}};return lr.default=r,lr}var ur={},ys;function Td(){if(ys)return ur;ys=1,Object.defineProperty(ur,"__esModule",{value:!0});const e=Ae(),t=ee(),r=ne(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,t.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,t._)`{missingProperty: ${i}}`},code(i){const{gen:s,schema:a,schemaCode:c,data:u,$data:l,it:p}=i,{opts:b}=p;if(!l&&a.length===0)return;const v=a.length>=b.loopRequired;if(p.allErrors?g():m(),b.strictRequired){const f=i.parentSchema.properties,{definedProperties:y}=i.it;for(const $ of a)if((f==null?void 0:f[$])===void 0&&!y.has($)){const k=p.schemaEnv.baseId+p.errSchemaPath,w=`required property "${$}" is not defined at "${k}" (strictRequired)`;(0,r.checkStrictMode)(p,w,p.opts.strictRequired)}}function g(){if(v||l)i.block$data(t.nil,d);else for(const f of a)(0,e.checkReportMissingProp)(i,f)}function m(){const f=s.let("missing");if(v||l){const y=s.let("valid",!0);i.block$data(y,()=>h(f,y)),i.ok(y)}else s.if((0,e.checkMissingProp)(i,a,f)),(0,e.reportMissingProp)(i,f),s.else()}function d(){s.forOf("prop",c,f=>{i.setParams({missingProperty:f}),s.if((0,e.noPropertyInData)(s,u,f,b.ownProperties),()=>i.error())})}function h(f,y){i.setParams({missingProperty:f}),s.forOf(f,c,()=>{s.assign(y,(0,e.propertyInData)(s,u,f,b.ownProperties)),s.if((0,t.not)(y),()=>{i.error(),s.break()})},t.nil)}}};return ur.default=o,ur}var fr={},bs;function Nd(){if(bs)return fr;bs=1,Object.defineProperty(fr,"__esModule",{value:!0});const e=ee(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const i=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${o} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:i,schemaCode:s}=n,a=o==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${i}.length ${a} ${s}`)}};return fr.default=r,fr}var dr={},pr={},vs;function Fo(){if(vs)return pr;vs=1,Object.defineProperty(pr,"__esModule",{value:!0});const e=Cc();return e.code='require("ajv/dist/runtime/equal").default',pr.default=e,pr}var $s;function Id(){if($s)return dr;$s=1,Object.defineProperty(dr,"__esModule",{value:!0});const e=Zr(),t=ee(),r=ne(),n=Fo(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:c,$data:u,schema:l,parentSchema:p,schemaCode:b,it:v}=s;if(!u&&!l)return;const g=a.let("valid"),m=p.items?(0,e.getSchemaTypes)(p.items):[];s.block$data(g,d,(0,t._)`${b} === false`),s.ok(g);function d(){const $=a.let("i",(0,t._)`${c}.length`),k=a.let("j");s.setParams({i:$,j:k}),a.assign(g,!0),a.if((0,t._)`${$} > 1`,()=>(h()?f:y)($,k))}function h(){return m.length>0&&!m.some($=>$==="object"||$==="array")}function f($,k){const w=a.name("item"),_=(0,e.checkDataTypes)(m,w,v.opts.strictNumbers,e.DataType.Wrong),S=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${$}--;`,()=>{a.let(w,(0,t._)`${c}[${$}]`),a.if(_,(0,t._)`continue`),m.length>1&&a.if((0,t._)`typeof ${w} == "string"`,(0,t._)`${w} += "_"`),a.if((0,t._)`typeof ${S}[${w}] == "number"`,()=>{a.assign(k,(0,t._)`${S}[${w}]`),s.error(),a.assign(g,!1).break()}).code((0,t._)`${S}[${w}] = ${$}`)})}function y($,k){const w=(0,r.useFunc)(a,n.default),_=a.name("outer");a.label(_).for((0,t._)`;${$}--;`,()=>a.for((0,t._)`${k} = ${$}; ${k}--;`,()=>a.if((0,t._)`${w}(${c}[${$}], ${c}[${k}])`,()=>{s.error(),a.assign(g,!1).break(_)})))}}};return dr.default=i,dr}var hr={},ws;function Md(){if(ws)return hr;ws=1,Object.defineProperty(hr,"__esModule",{value:!0});const e=ee(),t=ne(),r=Fo(),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,e._)`{allowedValue: ${i}}`},code(i){const{gen:s,data:a,$data:c,schemaCode:u,schema:l}=i;c||l&&typeof l=="object"?i.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${u})`):i.fail((0,e._)`${l} !== ${a}`)}};return hr.default=o,hr}var mr={},ks;function Fd(){if(ks)return mr;ks=1,Object.defineProperty(mr,"__esModule",{value:!0});const e=ee(),t=ne(),r=Fo(),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,e._)`{allowedValues: ${i}}`},code(i){const{gen:s,data:a,$data:c,schema:u,schemaCode:l,it:p}=i;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const b=u.length>=p.opts.loopEnum;let v;const g=()=>v??(v=(0,t.useFunc)(s,r.default));let m;if(b||c)m=s.let("valid"),i.block$data(m,d);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const f=s.const("vSchema",l);m=(0,e.or)(...u.map((y,$)=>h(f,$)))}i.pass(m);function d(){s.assign(m,!1),s.forOf("v",l,f=>s.if((0,e._)`${g()}(${a}, ${f})`,()=>s.assign(m,!0).break()))}function h(f,y){const $=u[y];return typeof $=="object"&&$!==null?(0,e._)`${g()}(${a}, ${f}[${y}])`:(0,e._)`${a} === ${$}`}}};return mr.default=o,mr}var _s;function zd(){if(_s)return nr;_s=1,Object.defineProperty(nr,"__esModule",{value:!0});const e=Cd(),t=jd(),r=Od(),n=Rd(),o=Ad(),i=Td(),s=Nd(),a=Id(),c=Md(),u=Fd(),l=[e.default,t.default,r.default,n.default,o.default,i.default,s.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return nr.default=l,nr}var gr={},ct={},xs;function jc(){if(xs)return ct;xs=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.validateAdditionalItems=void 0;const e=ee(),t=ne(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{parentSchema:s,it:a}=i,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(i,c)}};function o(i,s){const{gen:a,schema:c,data:u,keyword:l,it:p}=i;p.items=!0;const b=a.const("len",(0,e._)`${u}.length`);if(c===!1)i.setParams({len:s.length}),i.pass((0,e._)`${b} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const g=a.var("valid",(0,e._)`${b} <= ${s.length}`);a.if((0,e.not)(g),()=>v(g)),i.ok(g)}function v(g){a.forRange("i",s.length,b,m=>{i.subschema({keyword:l,dataProp:m,dataPropType:t.Type.Num},g),p.allErrors||a.if((0,e.not)(g),()=>a.break())})}}return ct.validateAdditionalItems=o,ct.default=n,ct}var yr={},lt={},Ss;function Pc(){if(Ss)return lt;Ss=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.validateTuple=void 0;const e=ee(),t=ne(),r=Ae(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:s,it:a}=i;if(Array.isArray(s))return o(i,"additionalItems",s);a.items=!0,!(0,t.alwaysValidSchema)(a,s)&&i.ok((0,r.validateArray)(i))}};function o(i,s,a=i.schema){const{gen:c,parentSchema:u,data:l,keyword:p,it:b}=i;m(u),b.opts.unevaluated&&a.length&&b.items!==!0&&(b.items=t.mergeEvaluated.items(c,a.length,b.items));const v=c.name("valid"),g=c.const("len",(0,e._)`${l}.length`);a.forEach((d,h)=>{(0,t.alwaysValidSchema)(b,d)||(c.if((0,e._)`${g} > ${h}`,()=>i.subschema({keyword:p,schemaProp:h,dataProp:h},v)),i.ok(v))});function m(d){const{opts:h,errSchemaPath:f}=b,y=a.length,$=y===d.minItems&&(y===d.maxItems||d[s]===!1);if(h.strictTuples&&!$){const k=`"${p}" is ${y}-tuple, but minItems or maxItems/${s} are not specified or different at path "${f}"`;(0,t.checkStrictMode)(b,k,h.strictTuples)}}}return lt.validateTuple=o,lt.default=n,lt}var Es;function Ld(){if(Es)return yr;Es=1,Object.defineProperty(yr,"__esModule",{value:!0});const e=Pc(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return yr.default=t,yr}var br={},Cs;function Dd(){if(Cs)return br;Cs=1,Object.defineProperty(br,"__esModule",{value:!0});const e=ee(),t=ne(),r=Ae(),n=jc(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:a,parentSchema:c,it:u}=s,{prefixItems:l}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,a)&&(l?(0,n.validateAdditionalItems)(s,l):s.ok((0,r.validateArray)(s)))}};return br.default=i,br}var vr={},js;function qd(){if(js)return vr;js=1,Object.defineProperty(vr,"__esModule",{value:!0});const e=ee(),t=ne(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:o,max:i}})=>i===void 0?(0,e.str)`must contain at least ${o} valid item(s)`:(0,e.str)`must contain at least ${o} and no more than ${i} valid item(s)`,params:({params:{min:o,max:i}})=>i===void 0?(0,e._)`{minContains: ${o}}`:(0,e._)`{minContains: ${o}, maxContains: ${i}}`},code(o){const{gen:i,schema:s,parentSchema:a,data:c,it:u}=o;let l,p;const{minContains:b,maxContains:v}=a;u.opts.next?(l=b===void 0?1:b,p=v):l=1;const g=i.const("len",(0,e._)`${c}.length`);if(o.setParams({min:l,max:p}),p===void 0&&l===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&l>p){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,t.alwaysValidSchema)(u,s)){let y=(0,e._)`${g} >= ${l}`;p!==void 0&&(y=(0,e._)`${y} && ${g} <= ${p}`),o.pass(y);return}u.items=!0;const m=i.name("valid");p===void 0&&l===1?h(m,()=>i.if(m,()=>i.break())):l===0?(i.let(m,!0),p!==void 0&&i.if((0,e._)`${c}.length > 0`,d)):(i.let(m,!1),d()),o.result(m,()=>o.reset());function d(){const y=i.name("_valid"),$=i.let("count",0);h(y,()=>i.if(y,()=>f($)))}function h(y,$){i.forRange("i",0,g,k=>{o.subschema({keyword:"contains",dataProp:k,dataPropType:t.Type.Num,compositeRule:!0},y),$()})}function f(y){i.code((0,e._)`${y}++`),p===void 0?i.if((0,e._)`${y} >= ${l}`,()=>i.assign(m,!0).break()):(i.if((0,e._)`${y} > ${p}`,()=>i.assign(m,!1).break()),l===1?i.assign(m,!0):i.if((0,e._)`${y} >= ${l}`,()=>i.assign(m,!0)))}}};return vr.default=n,vr}var Dn={},Ps;function Vd(){return Ps||(Ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ee(),r=ne(),n=Ae();e.error={message:({params:{property:c,depsCount:u,deps:l}})=>{const p=u===1?"property":"properties";return(0,t.str)`must have ${p} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:l,missingProperty:p}})=>(0,t._)`{property: ${c},
|
|
14
|
+
missingProperty: ${p},
|
|
15
|
+
depsCount: ${u},
|
|
16
|
+
deps: ${l}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,l]=i(c);s(c,u),a(c,l)}};function i({schema:c}){const u={},l={};for(const p in c){if(p==="__proto__")continue;const b=Array.isArray(c[p])?u:l;b[p]=c[p]}return[u,l]}function s(c,u=c.schema){const{gen:l,data:p,it:b}=c;if(Object.keys(u).length===0)return;const v=l.let("missing");for(const g in u){const m=u[g];if(m.length===0)continue;const d=(0,n.propertyInData)(l,p,g,b.opts.ownProperties);c.setParams({property:g,depsCount:m.length,deps:m.join(", ")}),b.allErrors?l.if(d,()=>{for(const h of m)(0,n.checkReportMissingProp)(c,h)}):(l.if((0,t._)`${d} && (${(0,n.checkMissingProp)(c,m,v)})`),(0,n.reportMissingProp)(c,v),l.else())}}e.validatePropertyDeps=s;function a(c,u=c.schema){const{gen:l,data:p,keyword:b,it:v}=c,g=l.name("valid");for(const m in u)(0,r.alwaysValidSchema)(v,u[m])||(l.if((0,n.propertyInData)(l,p,m,v.opts.ownProperties),()=>{const d=c.subschema({keyword:b,schemaProp:m},g);c.mergeValidEvaluated(d,g)},()=>l.var(g,!0)),c.ok(g))}e.validateSchemaDeps=a,e.default=o}(Dn)),Dn}var $r={},Os;function Ud(){if(Os)return $r;Os=1,Object.defineProperty($r,"__esModule",{value:!0});const e=ee(),t=ne(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:i,schema:s,data:a,it:c}=o;if((0,t.alwaysValidSchema)(c,s))return;const u=i.name("valid");i.forIn("key",a,l=>{o.setParams({propertyName:l}),o.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},u),i.if((0,e.not)(u),()=>{o.error(!0),c.allErrors||i.break()})}),o.ok(u)}};return $r.default=n,$r}var wr={},Rs;function Oc(){if(Rs)return wr;Rs=1,Object.defineProperty(wr,"__esModule",{value:!0});const e=Ae(),t=ee(),r=Qe(),n=ne(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:a,schema:c,parentSchema:u,data:l,errsCount:p,it:b}=s;if(!p)throw new Error("ajv implementation error");const{allErrors:v,opts:g}=b;if(b.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(b,c))return;const m=(0,e.allSchemaProperties)(u.properties),d=(0,e.allSchemaProperties)(u.patternProperties);h(),s.ok((0,t._)`${p} === ${r.default.errors}`);function h(){a.forIn("key",l,w=>{!m.length&&!d.length?$(w):a.if(f(w),()=>$(w))})}function f(w){let _;if(m.length>8){const S=(0,n.schemaRefOrVal)(b,u.properties,"properties");_=(0,e.isOwnProperty)(a,S,w)}else m.length?_=(0,t.or)(...m.map(S=>(0,t._)`${w} === ${S}`)):_=t.nil;return d.length&&(_=(0,t.or)(_,...d.map(S=>(0,t._)`${(0,e.usePattern)(s,S)}.test(${w})`))),(0,t.not)(_)}function y(w){a.code((0,t._)`delete ${l}[${w}]`)}function $(w){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){y(w);return}if(c===!1){s.setParams({additionalProperty:w}),s.error(),v||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(b,c)){const _=a.name("valid");g.removeAdditional==="failing"?(k(w,_,!1),a.if((0,t.not)(_),()=>{s.reset(),y(w)})):(k(w,_),v||a.if((0,t.not)(_),()=>a.break()))}}function k(w,_,S){const j={keyword:"additionalProperties",dataProp:w,dataPropType:n.Type.Str};S===!1&&Object.assign(j,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(j,_)}}};return wr.default=i,wr}var kr={},As;function Hd(){if(As)return kr;As=1,Object.defineProperty(kr,"__esModule",{value:!0});const e=gn(),t=Ae(),r=ne(),n=Oc(),o={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:s,schema:a,parentSchema:c,data:u,it:l}=i;l.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(l,n.default,"additionalProperties"));const p=(0,t.allSchemaProperties)(a);for(const d of p)l.definedProperties.add(d);l.opts.unevaluated&&p.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(s,(0,r.toHash)(p),l.props));const b=p.filter(d=>!(0,r.alwaysValidSchema)(l,a[d]));if(b.length===0)return;const v=s.name("valid");for(const d of b)g(d)?m(d):(s.if((0,t.propertyInData)(s,u,d,l.opts.ownProperties)),m(d),l.allErrors||s.else().var(v,!0),s.endIf()),i.it.definedProperties.add(d),i.ok(v);function g(d){return l.opts.useDefaults&&!l.compositeRule&&a[d].default!==void 0}function m(d){i.subschema({keyword:"properties",schemaProp:d,dataProp:d},v)}}};return kr.default=o,kr}var _r={},Ts;function Wd(){if(Ts)return _r;Ts=1,Object.defineProperty(_r,"__esModule",{value:!0});const e=Ae(),t=ee(),r=ne(),n=ne(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:s,schema:a,data:c,parentSchema:u,it:l}=i,{opts:p}=l,b=(0,e.allSchemaProperties)(a),v=b.filter($=>(0,r.alwaysValidSchema)(l,a[$]));if(b.length===0||v.length===b.length&&(!l.opts.unevaluated||l.props===!0))return;const g=p.strictSchema&&!p.allowMatchingProperties&&u.properties,m=s.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(s,l.props));const{props:d}=l;h();function h(){for(const $ of b)g&&f($),l.allErrors?y($):(s.var(m,!0),y($),s.if(m))}function f($){for(const k in g)new RegExp($).test(k)&&(0,r.checkStrictMode)(l,`property ${k} matches pattern ${$} (use allowMatchingProperties)`)}function y($){s.forIn("key",c,k=>{s.if((0,t._)`${(0,e.usePattern)(i,$)}.test(${k})`,()=>{const w=v.includes($);w||i.subschema({keyword:"patternProperties",schemaProp:$,dataProp:k,dataPropType:n.Type.Str},m),l.opts.unevaluated&&d!==!0?s.assign((0,t._)`${d}[${k}]`,!0):!w&&!l.allErrors&&s.if((0,t.not)(m),()=>s.break())})})}}};return _r.default=o,_r}var xr={},Ns;function Kd(){if(Ns)return xr;Ns=1,Object.defineProperty(xr,"__esModule",{value:!0});const e=ne(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:i}=r;if((0,e.alwaysValidSchema)(i,o)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return xr.default=t,xr}var Sr={},Is;function Bd(){if(Is)return Sr;Is=1,Object.defineProperty(Sr,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ae().validateUnion,error:{message:"must match a schema in anyOf"}};return Sr.default=t,Sr}var Er={},Ms;function Gd(){if(Ms)return Er;Ms=1,Object.defineProperty(Er,"__esModule",{value:!0});const e=ee(),t=ne(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:i,schema:s,parentSchema:a,it:c}=o;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const u=s,l=i.let("valid",!1),p=i.let("passing",null),b=i.name("_valid");o.setParams({passing:p}),i.block(v),o.result(l,()=>o.reset(),()=>o.error(!0));function v(){u.forEach((g,m)=>{let d;(0,t.alwaysValidSchema)(c,g)?i.var(b,!0):d=o.subschema({keyword:"oneOf",schemaProp:m,compositeRule:!0},b),m>0&&i.if((0,e._)`${b} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${m}]`).else(),i.if(b,()=>{i.assign(l,!0),i.assign(p,m),d&&o.mergeEvaluated(d,e.Name)})})}}};return Er.default=n,Er}var Cr={},Fs;function Jd(){if(Fs)return Cr;Fs=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=ne(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const s=n.name("valid");o.forEach((a,c)=>{if((0,e.alwaysValidSchema)(i,a))return;const u=r.subschema({keyword:"allOf",schemaProp:c},s);r.ok(s),r.mergeEvaluated(u)})}};return Cr.default=t,Cr}var jr={},zs;function Xd(){if(zs)return jr;zs=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=ee(),t=ne(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,e.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,e._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:s,parentSchema:a,it:c}=i;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=o(c,"then"),l=o(c,"else");if(!u&&!l)return;const p=s.let("valid",!0),b=s.name("_valid");if(v(),i.reset(),u&&l){const m=s.let("ifClause");i.setParams({ifClause:m}),s.if(b,g("then",m),g("else",m))}else u?s.if(b,g("then")):s.if((0,e.not)(b),g("else"));i.pass(p,()=>i.error(!0));function v(){const m=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},b);i.mergeEvaluated(m)}function g(m,d){return()=>{const h=i.subschema({keyword:m},b);s.assign(p,b),i.mergeValidEvaluated(h,p),d?s.assign(d,(0,e._)`${m}`):i.setParams({ifClause:m})}}}};function o(i,s){const a=i.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(i,a)}return jr.default=n,jr}var Pr={},Ls;function Yd(){if(Ls)return Pr;Ls=1,Object.defineProperty(Pr,"__esModule",{value:!0});const e=ne(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return Pr.default=t,Pr}var Ds;function Qd(){if(Ds)return gr;Ds=1,Object.defineProperty(gr,"__esModule",{value:!0});const e=jc(),t=Ld(),r=Pc(),n=Dd(),o=qd(),i=Vd(),s=Ud(),a=Oc(),c=Hd(),u=Wd(),l=Kd(),p=Bd(),b=Gd(),v=Jd(),g=Xd(),m=Yd();function d(h=!1){const f=[l.default,p.default,b.default,v.default,g.default,m.default,s.default,a.default,i.default,c.default,u.default];return h?f.push(t.default,n.default):f.push(e.default,r.default),f.push(o.default),f}return gr.default=d,gr}var Or={},Rr={},qs;function Zd(){if(qs)return Rr;qs=1,Object.defineProperty(Rr,"__esModule",{value:!0});const e=ee(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,o){const{gen:i,data:s,$data:a,schema:c,schemaCode:u,it:l}=n,{opts:p,errSchemaPath:b,schemaEnv:v,self:g}=l;if(!p.validateFormats)return;a?m():d();function m(){const h=i.scopeValue("formats",{ref:g.formats,code:p.code.formats}),f=i.const("fDef",(0,e._)`${h}[${u}]`),y=i.let("fType"),$=i.let("format");i.if((0,e._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>i.assign(y,(0,e._)`${f}.type || "string"`).assign($,(0,e._)`${f}.validate`),()=>i.assign(y,(0,e._)`"string"`).assign($,f)),n.fail$data((0,e.or)(k(),w()));function k(){return p.strictSchema===!1?e.nil:(0,e._)`${u} && !${$}`}function w(){const _=v.$async?(0,e._)`(${f}.async ? await ${$}(${s}) : ${$}(${s}))`:(0,e._)`${$}(${s})`,S=(0,e._)`(typeof ${$} == "function" ? ${_} : ${$}.test(${s}))`;return(0,e._)`${$} && ${$} !== true && ${y} === ${o} && !${S}`}}function d(){const h=g.formats[c];if(!h){k();return}if(h===!0)return;const[f,y,$]=w(h);f===o&&n.pass(_());function k(){if(p.strictSchema===!1){g.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${c}" ignored in schema at path "${b}"`}}function w(S){const j=S instanceof RegExp?(0,e.regexpCode)(S):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,N=i.scopeValue("formats",{key:c,ref:S,code:j});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,e._)`${N}.validate`]:["string",S,N]}function _(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${$}(${s})`}return typeof y=="function"?(0,e._)`${$}(${s})`:(0,e._)`${$}.test(${s})`}}}};return Rr.default=r,Rr}var Vs;function ep(){if(Vs)return Or;Vs=1,Object.defineProperty(Or,"__esModule",{value:!0});const t=[Zd().default];return Or.default=t,Or}var tt={},Us;function tp(){return Us||(Us=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.contentVocabulary=tt.metadataVocabulary=void 0,tt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],tt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),tt}var Hs;function rp(){if(Hs)return er;Hs=1,Object.defineProperty(er,"__esModule",{value:!0});const e=Ed(),t=zd(),r=Qd(),n=ep(),o=tp(),i=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return er.default=i,er}var Ar={},xt={},Ws;function np(){if(Ws)return xt;Ws=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(xt.DiscrError=e={})),xt}var Ks;function op(){if(Ks)return Ar;Ks=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=ee(),t=np(),r=Mo(),n=yn(),o=ne(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:u}})=>(0,e._)`{error: ${a}, tag: ${u}, tagValue: ${c}}`},code(a){const{gen:c,data:u,schema:l,parentSchema:p,it:b}=a,{oneOf:v}=p;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=l.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const m=c.let("valid",!1),d=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);c.if((0,e._)`typeof ${d} == "string"`,()=>h(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:d,tagName:g})),a.ok(m);function h(){const $=y();c.if(!1);for(const k in $)c.elseIf((0,e._)`${d} === ${k}`),c.assign(m,f($[k]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:d,tagName:g}),c.endIf()}function f($){const k=c.name("valid"),w=a.subschema({keyword:"oneOf",schemaProp:$},k);return a.mergeEvaluated(w,e.Name),k}function y(){var $;const k={},w=S(p);let _=!0;for(let z=0;z<v.length;z++){let V=v[z];if(V!=null&&V.$ref&&!(0,o.schemaHasRulesButRef)(V,b.self.RULES)){const G=V.$ref;if(V=r.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,G),V instanceof r.SchemaEnv&&(V=V.schema),V===void 0)throw new n.default(b.opts.uriResolver,b.baseId,G)}const q=($=V==null?void 0:V.properties)===null||$===void 0?void 0:$[g];if(typeof q!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);_=_&&(w||S(V)),j(q,z)}if(!_)throw new Error(`discriminator: "${g}" must be required`);return k;function S({required:z}){return Array.isArray(z)&&z.includes(g)}function j(z,V){if(z.const)N(z.const,V);else if(z.enum)for(const q of z.enum)N(q,V);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function N(z,V){if(typeof z!="string"||z in k)throw new Error(`discriminator: "${g}" values must be unique strings`);k[z]=V}}}};return Ar.default=s,Ar}const ip="http://json-schema.org/draft-07/schema#",sp="http://json-schema.org/draft-07/schema#",ap="Core schema meta-schema",cp={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},lp=["object","boolean"],up={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},fp={$schema:ip,$id:sp,title:ap,definitions:cp,type:lp,properties:up,default:!0};var Bs;function dp(){return Bs||(Bs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=_d(),n=rp(),o=op(),i=fp,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(g,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=gn();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=ee();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=Io();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var b=yn();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})}(Jt,Jt.exports)),Jt.exports}var pp=dp();const hp=dn(pp);var Tr={exports:{}},Gs;function mp(){return Gs||(Gs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={},n={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:l=>{var p;const b=(p=l==null?void 0:l.max)!==null&&p!==void 0?p:2;return()=>Math.floor(Math.random()*b)},seq:l=>{var p;const b=(p=l==null?void 0:l.name)!==null&&p!==void 0?p:"";return r[b]||(r[b]=0),()=>r[b]++}},o=Object.assign(i,{DEFAULTS:n});function i(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(l,p,b){if(!b.opts.useDefaults||b.compositeRule)return()=>!0;const v={};for(const m in l)v[m]=s(l[m]);const g=b.opts.useDefaults==="empty";return m=>{for(const d in l)(m[d]===void 0||g&&(m[d]===null||m[d]===""))&&(m[d]=v[d]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function s(l){return typeof l=="object"?a(l):c(l)}function a({func:l,args:p}){const b=n[l];return u(l,b),b(p)}function c(l=""){const p=n[l];return u(l,p),p()}function u(l,p){if(!p)throw new Error(`invalid "dynamicDefaults" keyword property value: ${l}`)}t.default=o,e.exports=o}(Tr,Tr.exports)),Tr.exports}var gp=mp();const Rc=dn(gp),yp={$id:"urn:jsonschema:credentials",additionalProperties:{properties:{accessKeyId:{default:null,nullable:!0,type:"string"},Bucket:{default:null,nullable:!0,type:"string"},endpoint:{default:null,nullable:!0,type:"string"},region:{default:null,nullable:!0,type:"string"},secretAccessKey:{default:null,nullable:!0,type:"string"}},type:"object"},type:"object"},bp={$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},vp={$id:"urn:jsonschema:importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},type:"object"}},type:"object"},$p={$id:"urn:jsonschema:page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{changefreq:{default:null,enum:["always","hourly","daily","weekly","monthly","yearly","never",null],nullable:!0,type:"string"},children:{default:[],items:{type:"object"},type:"array"},class:{default:["prose","max-w-none"],description:"Классы",items:{type:"string"},type:"array"},description:{default:null,nullable:!0,type:"string"},enabled:{default:!0,type:"boolean"},flat:{default:!0,type:"boolean"},header:{type:"string"},icon:{type:"string"},id:{type:"string"},images:{default:[],items:{properties:{alt:{type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},keywords:{default:[],items:{type:"string"},type:"array"},lastmod:{default:null,nullable:!0,type:"string"},loc:{default:null,nullable:!0,type:"string"},name:{default:null,nullable:!0,type:"string"},priority:{default:null,maximum:1,minimum:0,nullable:!0,type:"number"},type:{default:null,enum:["article","book","profile","website","music.song","music.album","music.playlist","music.radio_station","video.movie","video.episode","video.tv_show","video.other",null],nullable:!0,type:"string"}},type:"object"};Rc.DEFAULTS.uuid=()=>()=>No();const wp={get(){return this.children.filter(({enabled:e})=>e)}},kp={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},_p={get(){return this.$siblings[this.$index+1]}},xp={get(){return this.$siblings[this.$index-1]}},Sp={get(){return this.siblings.filter(({enabled:e})=>e)}},zo=new hp({code:{esm:!0},coerceTypes:!0,keywords:[Rc()],removeAdditional:!0,schemas:[yp,bp,$p,vp],useDefaults:!0}),Ep=e=>{window.console.error(e)},Cp=async e=>(await fetch(e)).text(),jp=e=>Object.fromEntries(e.map(t=>[t.toLowerCase().replaceAll(" ","_"),t])),Pp={get(){return this.icon&&`i-${this.icon}`}},Js=it({}),en=it([]),Op={get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replaceAll(" ","_")}},Rp={get(){return["",void 0].includes(this.header)?this.name:this.header}},Ap={get(){var e;return(e=this.path)==null?void 0:e.replace(/^\/?/,"/").replace(/\/?$/,"/")}};zo.getSchema("urn:jsonschema:credentials");const qn=zo.getSchema("urn:jsonschema:data"),Vn=zo.getSchema("urn:jsonschema:importmap"),{leaves:Lt,objLeaves:Tp}=id(en);Ye(Js,async e=>{await(Vn==null?void 0:Vn(e))||(Js.imports={})});Ye(Lt,async e=>{await(qn==null?void 0:qn(e))?e.forEach(t=>{Object.defineProperties(t,{$children:wp,$index:kp,$next:_p,$prev:xp,$siblings:Sp,i:Pp,path:Op,title:Rp,to:Ap})}):(en.length=0,en.push({}))});const Ac=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Np(e={}){const t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;let o;return{name:"attributify",match(i,{generator:s}){var b,v;const a=Yu(i);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;const u=a[2],[,l="",p=u]=u.match(Ac)||[];if(p==="~"||n&&p==="true"||!p)return`${l}${c}`;if(o==null){const g=(v=(b=s==null?void 0:s.config)==null?void 0:b.separators)==null?void 0:v.join("|");g?o=new RegExp(`^(.*\\](?:${g}))(\\[[^\\]]+?\\])$`):o=!1}if(o){const[,g,m]=u.match(o)||[];if(m)return`${g}${l}${c}-${m}`}if(l&&p.match(/^[\d.]+$/)){const g=l.split(/([^:]*:)/g).filter(Boolean),m=g.pop()+p,d=g.join("");return[{matcher:`${l}${c}-${p}`},{matcher:`${d}${c}-${m}`}]}return`${l}${c}-${p}`}}}const Ip=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Mp=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,Xs=/[\s'"`;>]+/;function Fp(e){return{name:"attributify",extract:({content:t,cursor:r})=>{const n=t.matchAll(Ip);let o,i=0;for(const f of n){const[,y,$]=f,k=f.index+y.length;if(r>k&&r<=k+$.length){i=k,o=$;break}}if(!o)return null;const s=o.matchAll(Mp);let a=0,c,u;for(const f of s){const[y,$,k]=f,w=i+f.index;if(r>w&&r<=w+y.length){a=w,c=$,u=k==null?void 0:k.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;const l=!!(e!=null&&e.prefix)&&c.startsWith(e.prefix);if(e!=null&&e.prefixedOnly&&!l)return null;const p=l?c.slice(e.prefix.length):c;if(u===void 0)return{extracted:p,resolveReplacement(f){const y=l?e.prefix.length:0;return{start:a+y,end:a+c.length,replacement:f}}};const b=a+c.length+2;let v=Xs.exec(u),g=0,m;for(;v;){const[f]=v;if(r>b+g&&r<=b+g+v.index){m=u.slice(g,g+v.index);break}g+=v.index+f.length,v=Xs.exec(u.slice(g))}m===void 0&&(m=u.slice(g));const[,d="",h]=m.match(Ac)||[];return{extracted:`${d}${p}-${h}`,transformSuggestions(f){return f.filter(y=>y.startsWith(`${d}${p}-`)).map(y=>d+y.slice(d.length+p.length+1))},resolveReplacement(f){return{start:g+b,end:g+b+m.length,replacement:d+f.slice(d.length+p.length+1)}}}}}}const zp=["v-bind:",":"],Ys=/[\s'"`;]+/g,Un=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Lp=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Tc=["placeholder","fill","opacity","stroke-opacity"];function Dp(e){const t=(e==null?void 0:e.ignoreAttributes)??Tc,r=(e==null?void 0:e.nonValuedAttribute)??!0,n=(e==null?void 0:e.trueToNonValued)??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Un)).flatMap(i=>Array.from((i[1]||"").matchAll(Lp))).flatMap(([,i,...s])=>{const a=s.filter(Boolean).join("");if(t.includes(i))return[];for(const c of zp)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(lo(i)&&r!==!1){const c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(Ys).filter(lo):Un.test(a)?(Un.lastIndex=0,this.extract({code:a})):e!=null&&e.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(Ys).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}const qp=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??Tc;const t=[Np(e)],r=[Dp(e)],n=[Fp(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},Vp=Object.freeze({left:0,top:0,width:16,height:16}),tn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Nc=Object.freeze({...Vp,...tn}),Up=Object.freeze({...Nc,body:"",hidden:!1}),Hp=Object.freeze({width:null,height:null}),Ic=Object.freeze({...Hp,...tn});function Wp(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Qs(e,t){const r=Wp(e,t);for(const n in Up)n in tn?n in e&&!(n in r)&&(r[n]=tn[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Kp(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(r[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=n[s]&&n[s].parent,c=a&&i(a);c&&(o[s]=[a].concat(c))}return o[s]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),o}function Zs(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Qs(n[a]||o[a],i)}return s(t),r.forEach(s),Qs(e,i)}function Bp(e,t){if(e.icons[t])return Zs(e,t,[]);const r=Kp(e,[t])[t];return r?Zs(e,t,r):null}const Gp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Jp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function rn(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(Gp);if(n===null||!n.length)return e;const o=[];let i=n.shift(),s=Jp.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*r)/r)}else o.push(i);if(i=n.shift(),i===void 0)return o.join("");s=!s}}function Xp(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),i=e.indexOf("</"+t);if(o===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;r+=e.slice(o+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function Yp(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Qp(e,t,r){const n=Xp(e);return Yp(n.defs,t+n.content+r)}const Lo=e=>e==="unset"||e==="undefined"||e==="none";function Zp(e,t){const r={...Nc,...e},n={...Ic,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(m=>{const d=[],h=m.hFlip,f=m.vFlip;let y=m.rotate;h?f?y+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):f&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let $;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:$=o.height/2+o.top,d.unshift("rotate(90 "+$.toString()+" "+$.toString()+")");break;case 2:d.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:$=o.width/2+o.left,d.unshift("rotate(-90 "+$.toString()+" "+$.toString()+")");break}y%2===1&&(o.left!==o.top&&($=o.left,o.left=o.top,o.top=$),o.width!==o.height&&($=o.width,o.width=o.height,o.height=$)),d.length&&(i=Qp(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,c=o.width,u=o.height;let l,p;s===null?(p=a===null?"1em":a==="auto"?u:a,l=rn(p,c/u)):(l=s==="auto"?c:s,p=a===null?rn(l,u/c):a==="auto"?u:a);const b={},v=(m,d)=>{Lo(d)||(b[m]=d.toString())};v("width",l),v("height",p);const g=[o.left,o.top,c,u];return b.viewBox=g.join(" "),{attributes:b,viewBox:g,body:i}}function eh(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ea(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),eh(t)}function th(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const rh=/\swidth\s*=\s*["']([\w.]+)["']/,nh=/\sheight\s*=\s*["']([\w.]+)["']/,Hn=/<svg\s+/;function oh(e,t,r){const n=e.slice(0,e.indexOf(">")),o=(i,s)=>{const a=s.exec(n),c=a!=null,u=t[i];return!u&&!Lo(u)&&(typeof r=="number"?r>0&&(t[i]=rn((a==null?void 0:a[1])??"1em",r)):a&&(t[i]=a[1])),c};return[o("width",rh),o("height",nh)]}async function Mc(e,t,r,n,o,i){const{scale:s,addXmlNs:a=!1}=n??{},{additionalProps:c={},iconCustomizer:u}=(n==null?void 0:n.customizations)??{},l=await(o==null?void 0:o())??{};await(u==null?void 0:u(t,r,l)),Object.keys(c).forEach(m=>{const d=c[m];d!=null&&(l[m]=d)}),i==null||i(l);const[p,b]=oh(e,l,s);a&&(!e.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const v=Object.keys(l).map(m=>m==="width"&&p||m==="height"&&b?null:`${m}="${l[m]}"`).filter(m=>m!=null);if(v.length&&(e=e.replace(Hn,`<svg ${v.join(" ")} `)),n){const{defaultStyle:m,defaultClass:d}=n;d&&!e.includes("class=")&&(e=e.replace(Hn,`<svg class="${d}" `)),m&&!e.includes("style=")&&(e=e.replace(Hn,`<svg style="${m}" `))}const g=n==null?void 0:n.usedProps;return g&&(Object.keys(c).forEach(m=>{const d=l[m];d!=null&&(g[m]=d)}),typeof l.width<"u"&&l.width!==null&&(g.width=l.width),typeof l.height<"u"&&l.height!==null&&(g.height=l.height)),e}var Nr={exports:{}},Wn,ta;function ih(){if(ta)return Wn;ta=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,i=n*365.25;Wn=function(l,p){p=p||{};var b=typeof l;if(b==="string"&&l.length>0)return s(l);if(b==="number"&&isFinite(l))return p.long?c(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function s(l){if(l=String(l),!(l.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(p){var b=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return b*i;case"weeks":case"week":case"w":return b*o;case"days":case"day":case"d":return b*n;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function a(l){var p=Math.abs(l);return p>=n?Math.round(l/n)+"d":p>=r?Math.round(l/r)+"h":p>=t?Math.round(l/t)+"m":p>=e?Math.round(l/e)+"s":l+"ms"}function c(l){var p=Math.abs(l);return p>=n?u(l,p,n,"day"):p>=r?u(l,p,r,"hour"):p>=t?u(l,p,t,"minute"):p>=e?u(l,p,e,"second"):l+" ms"}function u(l,p,b,v){var g=p>=b*1.5;return Math.round(l/b)+" "+v+(g?"s":"")}return Wn}var Kn,ra;function sh(){if(ra)return Kn;ra=1;function e(t){n.debug=n,n.default=n,n.coerce=u,n.disable=a,n.enable=i,n.enabled=c,n.humanize=ih(),n.destroy=l,Object.keys(t).forEach(p=>{n[p]=t[p]}),n.names=[],n.skips=[],n.formatters={};function r(p){let b=0;for(let v=0;v<p.length;v++)b=(b<<5)-b+p.charCodeAt(v),b|=0;return n.colors[Math.abs(b)%n.colors.length]}n.selectColor=r;function n(p){let b,v=null,g,m;function d(...h){if(!d.enabled)return;const f=d,y=Number(new Date),$=y-(b||y);f.diff=$,f.prev=b,f.curr=y,b=y,h[0]=n.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let k=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(_,S)=>{if(_==="%%")return"%";k++;const j=n.formatters[S];if(typeof j=="function"){const N=h[k];_=j.call(f,N),h.splice(k,1),k--}return _}),n.formatArgs.call(f,h),(f.log||n.log).apply(f,h)}return d.namespace=p,d.useColors=n.useColors(),d.color=n.selectColor(p),d.extend=o,d.destroy=n.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(g!==n.namespaces&&(g=n.namespaces,m=n.enabled(p)),m),set:h=>{v=h}}),typeof n.init=="function"&&n.init(d),d}function o(p,b){const v=n(this.namespace+(typeof b>"u"?":":b)+p);return v.log=this.log,v}function i(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];const b=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const v of b)v[0]==="-"?n.skips.push(v.slice(1)):n.names.push(v)}function s(p,b){let v=0,g=0,m=-1,d=0;for(;v<p.length;)if(g<b.length&&(b[g]===p[v]||b[g]==="*"))b[g]==="*"?(m=g,d=v,g++):(v++,g++);else if(m!==-1)g=m+1,d++,v=d;else return!1;for(;g<b.length&&b[g]==="*";)g++;return g===b.length}function a(){const p=[...n.names,...n.skips.map(b=>"-"+b)].join(",");return n.enable(""),p}function c(p){for(const b of n.skips)if(s(p,b))return!1;for(const b of n.names)if(s(p,b))return!0;return!1}function u(p){return p instanceof Error?p.stack||p.message:p}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Kn=e,Kn}var na;function ah(){return na||(na=1,function(e,t){var r={};t.formatArgs=o,t.save=i,t.load=s,t.useColors=n,t.storage=a(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;u.splice(1,0,l,"color: inherit");let p=0,b=0;u[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(p++,v==="%c"&&(b=p))}),u.splice(b,0,l)}t.log=console.debug||console.log||(()=>{});function i(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function s(){let u;try{u=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=r.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=sh()(t);const{formatters:c}=e.exports;c.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Nr,Nr.exports)),Nr.exports}var ch=ah();const Fc=dn(ch),lh=Fc("@iconify-loader:custom");async function oa(e,t,r,n){var i;let o;lh(`${t}:${r}`);try{if(typeof e=="function")o=await e(r);else{const s=e[r];o=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${r}" in "${t}":`,s);return}if(o){const s=o.indexOf("<svg");s>0&&(o=o.slice(s));const{transform:a}=(n==null?void 0:n.customizations)??{};return o=typeof a=="function"?await a(o,t,r):o,o.startsWith("<svg")?await Mc(((i=n==null?void 0:n.customizations)==null?void 0:i.trimCustomSvg)===!0?th(o):o,t,r,n,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),o)}}const uh=Fc("@iconify-loader:icon");async function zc(e,t,r,n){let o;const{customize:i}=(n==null?void 0:n.customizations)??{};for(const s of r)if(o=Bp(e,s),o){uh(`${t}:${s}`);let a={...Ic};typeof i=="function"&&(o=Object.assign({},o),a=i(a,o,`${t}:${s}`)??a);const{attributes:{width:c,height:u,...l},body:p}=Zp(o,a),b=n==null?void 0:n.scale;return await Mc(`<svg >${p}</svg>`,t,s,n,()=>({...l}),v=>{const g=(m,d)=>{const h=v[m];let f;if(!Lo(h)){if(h)return;typeof b=="number"?b&&(f=rn(d??"1em",b)):f=d}f?v[m]=f:delete v[m]};g("width",c),g("height",u)})}}const Lc=async(e,t,r)=>{var o;const n=(o=r==null?void 0:r.customCollections)==null?void 0:o[e];if(n)if(typeof n=="function"){let i;try{i=await n(t)}catch(s){console.warn(`Failed to load custom icon "${t}" in "${e}":`,s);return}if(i){if(typeof i=="string")return await oa(()=>i,e,t,r);if("icons"in i){const s=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await zc(i,e,s,r)}}}else return await oa(n,e,t,r)},fh=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,dh=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ph=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function hh(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){mh(e);return}return t}function mh(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function gh(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!ph.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(fh.test(e)||dh.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,hh)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const yh=/#/g,bh=/&/g,vh=/\//g,$h=/=/g,Do=/\+/g,wh=/%5e/gi,kh=/%60/gi,_h=/%7c/gi,xh=/%20/gi;function Sh(e){return encodeURI(""+e).replace(_h,"|")}function uo(e){return Sh(typeof e=="string"?e:JSON.stringify(e)).replace(Do,"%2B").replace(xh,"+").replace(yh,"%23").replace(bh,"%26").replace(kh,"`").replace(wh,"^").replace(vh,"%2F")}function Bn(e){return uo(e).replace($h,"%3D")}function Dc(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Eh(e){return Dc(e.replace(Do," "))}function Ch(e){return Dc(e.replace(Do," "))}function jh(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const o=Eh(n[1]);if(o==="__proto__"||o==="constructor")continue;const i=Ch(n[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function Ph(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${Bn(e)}=${uo(r)}`).join("&"):`${Bn(e)}=${uo(t)}`:Bn(e)}function Oh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Ph(t,e[t])).filter(Boolean).join("&")}const Rh=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Ah=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Th=/^([/\\]\s*){2,}[^/\\]/,Nh=/^\.?\//;function qc(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Rh.test(e):Ah.test(e)||(t.acceptRelative?Th.test(e):!1)}function Ih(e="",t){return e.endsWith("/")}function Mh(e="",t){return(Ih(e)?e.slice(0,-1):e)||"/"}function Fh(e="",t){return e.endsWith("/")?e:e+"/"}function zh(e,t){if(Dh(t)||qc(e))return e;const r=Mh(t);return e.startsWith(r)?e:Vh(r,e)}function Lh(e,t){const r=Uh(e),n={...jh(r.search),...t};return r.search=Oh(n),Hh(r)}function Dh(e){return!e||e==="/"}function qh(e){return e&&e!=="/"}function Vh(e,...t){let r=e||"";for(const n of t.filter(o=>qh(o)))if(r){const o=n.replace(Nh,"");r=Fh(r)+o}else r=n;return r}const Vc=Symbol.for("ufo:protocolRelative");function Uh(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,p,b=""]=r;return{protocol:p.toLowerCase(),pathname:b,href:p+b,auth:"",host:"",search:"",hash:""}}if(!qc(e,{acceptRelative:!0}))return ia(e);const[,n="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:l}=ia(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:c,search:u,hash:l,[Vc]:!n}}function ia(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Hh(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Vc]?(e.protocol||"")+"//":"")+o+i+t+r+n}class Uc extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function Hc(e){var c,u,l,p,b;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",r=((l=e.request)==null?void 0:l.method)||((p=e.options)==null?void 0:p.method)||"GET",n=((b=e.request)==null?void 0:b.url)||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${o}: ${i}${t?` ${t}`:""}`,a=new Uc(s,e.error?{cause:e.error}:void 0);for(const v of["request","options","response"])Object.defineProperty(a,v,{get(){return e[v]}});for(const[v,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,v,{get(){return e.response&&e.response[g]}});return a}const Wh=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function sa(e="GET"){return Wh.has(e.toUpperCase())}function Kh(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Bh=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Gh=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Jh(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Gh.test(t)?"json":Bh.has(t)||t.startsWith("text/")?"text":"blob"}function Xh(e,t,r,n){const o=Yh((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,n);let i;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(i={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:i,params:i,headers:o}}function Yh(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,i]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,i);return n}async function Ir(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const Qh=new Set([408,409,425,429,500,502,503,504]),Zh=new Set([101,204,205,304]);function qo(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function o(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let l;typeof a.options.retry=="number"?l=a.options.retry:l=sa(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):Qh.has(p))){const b=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return b>0&&await new Promise(v=>setTimeout(v,b)),i(a.request,{...a.options,retry:l-1})}}const u=Hc(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){const l={request:c,options:Xh(c,u,e.defaults,r),response:void 0,error:void 0};l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&await Ir(l,l.options.onRequest),typeof l.request=="string"&&(l.options.baseURL&&(l.request=zh(l.request,l.options.baseURL)),l.options.query&&(l.request=Lh(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&sa(l.options.method)&&(Kh(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new r(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let p;if(!l.options.signal&&l.options.timeout){const v=new n;p=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,v.abort(g)},l.options.timeout),l.options.signal=v.signal}try{l.response=await t(l.request,l.options)}catch(v){return l.error=v,l.options.onRequestError&&await Ir(l,l.options.onRequestError),await o(l)}finally{p&&clearTimeout(p)}if((l.response.body||l.response._bodyInit)&&!Zh.has(l.response.status)&&l.options.method!=="HEAD"){const v=(l.options.parseResponse?"json":l.options.responseType)||Jh(l.response.headers.get("content-type")||"");switch(v){case"json":{const g=await l.response.text(),m=l.options.parseResponse||gh;l.response._data=m(g);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[v]()}}return l.options.onResponse&&await Ir(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await Ir(l,l.options.onResponseError),await o(l)):l.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>t(...a),s.create=(a={},c={})=>qo({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),s}const nn=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Wc=nn.fetch?(...e)=>nn.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Kc=nn.Headers,Bc=nn.AbortController,Gc=qo({fetch:Wc,Headers:Kc,AbortController:Bc}),Jc=Gc,fo=Object.freeze(Object.defineProperty({__proto__:null,$fetch:Jc,AbortController:Bc,FetchError:Uc,Headers:Kc,createFetch:qo,createFetchError:Hc,fetch:Wc,ofetch:Gc},Symbol.toStringTag,{value:"Module"}));var aa={};const Xc=["academicons","akar-icons","ant-design","arcticons","aws","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-cyber","streamline-emojis","streamline-flex","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],em=3;function tm(e){return(t={})=>{const{scale:r=1,mode:n="auto",prefix:o="i-",warn:i=!1,iconifyCollectionsNames:s,collections:a,extraProperties:c={},customizations:u={},autoInstall:l=!1,collectionsNodeResolvePath:p,layer:b="icons",unit:v,processor:g}=t,m=rm(),d={addXmlNs:!0,scale:r,customCollections:a,autoInstall:l,cwd:p,warn:void 0,customizations:{...u,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(f,y,$){var k;await((k=u.iconCustomizer)==null?void 0:k.call(u,f,y,$)),v&&($.width||($.width=`${r}${v}`),$.height||($.height=`${r}${v}`))}}};let h;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:ea,parseIconWithLoader:ca},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async f=>{let[y,$,k=n]=f;h=h||await e(t);const w={},_=await ca($,h,{...d,usedProps:w},s);if(!_){i&&!m.isESLint&&yc(`failed to load icon "${y}"`);return}let S;const j=`url("data:image/svg+xml;utf8,${ea(_.svg)}")`;return k==="auto"&&(k=_.svg.includes("currentColor")?"mask":"bg"),k==="mask"?S={"--un-icon":j,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...w}:S={background:`${j} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...w},g==null||g(S,{..._,icon:_.name,mode:k}),S},{layer:b,prefix:o}]]}}}function Yc(e,t,r=new Map){function n(o){if(Xc.includes(o))return r.has(o)||r.set(o,e(`${t}@iconify-json/${o}/icons.json`)),r.get(o)}return async(o,i,s)=>{let a=await Lc(o,i,s);if(a)return a;const c=await n(o);if(c){const u=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await zc(c,o,u,s)}return a}}function rm(){const e=typeof process<"u"&&process.stdout,t=e&&!!aa.VSCODE_CWD,r=e&&!!aa.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}async function ca(e,t,r={},n=[]){let o="",i="",s;const a=new Set([...Xc,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([o,i]=e.split(":"),!a.has(o))return;s=await t(o,i,r)}else{const c=e.split(/-/g);for(let u=em;u>=1&&(o=c.slice(0,u).join("-"),!(!!a.has(o)&&(i=c.slice(u).join("-"),s=await t(o,i,r),s)));u--);}if(s)return{collection:o,name:i,svg:s}}function nm(e){return Yc(Jc,e)}const om=tm(async e=>{const t=e==null?void 0:e.customFetch,r=e==null?void 0:e.cdn;return t&&r?Yc(t,r):r?nm(r):Lc}),po="__TAGIFY__",im=/<([\w:-]+)/g;function sm(e){const{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(im)).filter(({1:o})=>{for(const i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${po}${o}`)}}}function am(e){const{extraProperties:t}=e,r=`${po}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;const o=n.slice(r.length),i={matcher:o,selector:s=>s.slice(po.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}const cm=(e={})=>{const{defaultExtractor:t=!0}=e,r=[am(e)],n=[sm(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}};var lm=nu();class on{constructor(t){this.bits=t instanceof on?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class Dt{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new Dt(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;const i=new Dt(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const r=this.content.replace(t,"");if(r.length){if(r!==this.content){const n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}function um(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const fm=um();class dm{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=lm.encode(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+fm(this.toString())}}function pm(e){const t=e.split(`
|
|
17
|
+
`),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";const o=n.reduce((i,s)=>{const a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function hm(e,t){const r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}const mm=Object.prototype.toString;function gm(e){return mm.call(e)==="[object Object]"}function la(e){const t=e.split(`
|
|
18
|
+
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){const u=i+s>>1;o<r[u]?s=u:i=u+1}const a=i-1,c=o-r[a];return{line:a,column:c}}}const ym=/\w/;class bm{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){const i=r.length-1;let s=r.indexOf(`
|
|
19
|
+
`,0),a=-1;for(;s>=0&&i>s;){const u=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
|
|
20
|
+
`,s+1)}const c=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.advance(r.slice(a+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,n,o,i){let s=r.start,a=!0,c=!1;for(;s<r.end;){if(n[s]===`
|
|
21
|
+
`)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0,c=!1;else{if(this.hires||a||i.has(s)){const u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?ym.test(n[s])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}o.column+=1,this.generatedCodeColumn+=1,a=!1}s+=1}this.pending=null}advance(t){if(!t)return;const r=t.split(`
|
|
22
|
+
`);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}}const St=`
|
|
23
|
+
`,ut={insertLeft:!1,insertRight:!1,storeName:!1};class Vo{constructor(t,r={}){const n=new Dt(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new on},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){const t=new Vo(this.original,{filename:this.filename,offset:this.offset});let r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;const o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new on(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const r=0,n=Object.keys(this.storedNames),o=new bm(t.hires),i=la(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{const a=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?hm(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new dm(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=pm(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){const n=/^[^\r\n]/gm;if(gm(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};const o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(l=>{for(let p=l[0];p<l[1];p+=1)o[p]=!0});let i=r.indentStart!==!1;const s=u=>i?`${t}${u}`:(i=!0,u);this.intro=this.intro.replace(n,s);let a=0,c=this.firstChunk;for(;c;){const u=c.end;if(c.edited)o[a]||(c.content=c.content.replace(n,s),c.content.length&&(i=c.content[c.content.length-1]===`
|
|
24
|
+
`));else for(a=c.start;a<u;){if(!o[a]){const l=this.original[a];l===`
|
|
25
|
+
`?i=!0:l!=="\r"&&i&&(i=!1,a===c.start||(this._splitChunk(c,a),c=c.next),c.prependRight(t))}a+=1}a=c.end,c=c.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return ut.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ut.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return ut.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ut.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(t=t+this.offset,r=r+this.offset,n=n+this.offset,n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);const o=this.byStart[t],i=this.byEnd[r],s=o.previous,a=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;const u=c?c.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(t=t+this.offset,r=r+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(ut.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ut.storeName=!0),o={storeName:!0});const i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){const u=this.original.slice(t,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}const a=this.byStart[t],c=this.byEnd[r];if(a){let u=a;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}a.edit(n,i,!s)}else{const u=new Dt(t,r,"").edit(n,i);c.next=u,u.previous=c}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(St);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(St),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(St),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(St),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(St),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length-this.offset){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(n+=o.intro);const s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);const a=i===o?t-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(a,c),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(t,r){const n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk;const n=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(t,r){if(t.edited&&t.content.length){const o=la(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} – "${t.original}")`)}const n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{const o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{const o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let a;const c=[];for(;a=i.exec(s);)c.push(a);return c}if(t.global)o(t,this.original).forEach(s=>{if(s.index!=null){const a=n(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a)}});else{const i=this.original.match(t);if(i&&i.index!=null){const s=n(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s)}}return this}_replaceString(t,r){const{original:n}=this,o=n.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,r),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){const{original:n}=this,o=t.length;for(let i=n.indexOf(t);i!==-1;i=n.indexOf(t,i+o))n.slice(i,i+o)!==r&&this.overwrite(i,i+o,r);return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}}function Uo(e,t,r){if(e==="")return;const n=e.length;let o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function Vt(e,t,r,n){if(e===""||(ce(n)&&(n=[n]),n.length===0))return;const o=e.length;let i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(const a of n){const c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function sn(e,t,r){r=r??10;const n=[];let o=0;for(;e!=="";){if(++o>r)return;const i=Vt(e,"(",")",t);if(!i)return;const[s,a]=i;n.push(s),e=a}if(n.length>0)return n}const Ho=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Qc=["%alpha","<alpha-value>"],Zc=new RegExp(Qc.map(e=>zt(e)).join("|"),"g");function dt(e=""){const t=vm(e);if(t==null||t===!1)return;const{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Ho.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ho(e,t){if(typeof e=="string")return e.replace(Zc,`${t??1}`);const{components:r}=e;let{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Ho.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function vm(e){if(!e)return;let t=$m(e);if(t!=null||(t=wm(e),t!=null)||(t=km(e),t!=null)||(t=xm(e),t!=null)||(t=Sm(e),t!=null))return t}function $m(e){const[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:const r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:const n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function wm(e){const t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function km(e){const t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;const[,r,n]=t,o=sn(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}const _m=new RegExp(`^(${Ho.join("|")})\\((.+)\\)$`,"i");function xm(e){const t=e.match(_m);if(!t)return;const[,r,n]=t,o=el(`${r} ${n}`);if(o){const{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Sm(e){const t=e.match(/^color\((.+)\)$/);if(!t)return;const r=el(t[1]);if(r){const{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function el(e){const t=sn(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){const i=t.splice(r-2);t.push(i.join(" ")),--r}const n=sn(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};const o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}const Em=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Cm(e){return e.includes("theme(")&&e.includes(")")}function jm(e,t,r=!0){const n=Array.from(e.toString().matchAll(Em));if(!n.length)return e;const o=new Vo(e);for(const i of n){const s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");const a=Pm(s,t,r);a&&o.overwrite(i.index,i.index+i[0].length,a)}return o.toString()}function Pm(e,t,r=!0){const[n,o]=e.split("/");let s=n.trim().split(".").reduce((a,c)=>a==null?void 0:a[c],t);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){const a=dt(s);a&&(s=ho(a,o))}return s}else if(r)throw new Error(`theme of "${e}" did not found`)}function ua(e){var n;const t=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",r=e.slice(t.length);if(r==="px"){const o=Number.parseFloat(t)-.1;return Number.isNaN(o)?e:`${o}${r}`}return`calc(${e} - 0.1px)`}function Om(e){const t=function(n){var i;const o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(const s of o){const a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(const n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}function He(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${zt(e)}(?:${o.generator.config.separators.join("|")})`));const i=n.match(r);if(i){const s=n.slice(i[0].length),a=ae(t).map(c=>({matcher:s,handle:(u,l)=>l({...u,...c(u)})}));return a.length===1?a[0]:a}},autocomplete:`${e}:`}}function ke(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${zt(e)}(?:${o.generator.config.separators.join("|")})`));const i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function Ut(e,t,r){if(t.startsWith(`${e}[`)){const[n,o]=Uo(t.slice(e.length),"[","]")??[];if(n&&o){for(const i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function Te(e,t,r){for(const n of ae(e))if(t.startsWith(n)){const o=Ut(n,t,r);if(o){const[i="",s=o[1]]=Te("/",o[1],r)??[];return[o[0],s,i]}for(const i of r.filter(s=>s!=="/")){const s=t.indexOf(i,n.length);if(s!==-1){const a=t.indexOf("/",n.length),c=a===-1||s<=a;return[t.slice(n.length,c?s:a),t.slice(s+i.length),c?"":t.slice(a+1,s)]}}}}function fa(e){var t;return{"h1,h2,h3,h4,h5,h6":{color:"var(--un-prose-headings)","font-weight":"600","line-height":1.25},a:{color:"var(--un-prose-links)","text-decoration":"underline","font-weight":"500"},"a code":{color:"var(--un-prose-links)"},"p,ul,ol,pre":{margin:"1em 0","line-height":1.75},blockquote:{margin:"1em 0","padding-left":"1em","font-style":"italic","border-left":".25em solid var(--un-prose-borders)"},h1:{margin:"1rem 0","font-size":"2.25em"},h2:{margin:"1.75em 0 .5em","font-size":"1.75em"},h3:{margin:"1.5em 0 .5em","font-size":"1.375em"},h4:{margin:"1em 0","font-size":"1.125em"},"img,video":{"max-width":"100%"},"figure,picture":{margin:"1em 0"},figcaption:{color:"var(--un-prose-captions)","font-size":".875em"},code:{color:"var(--un-prose-code)","font-size":".875em","font-weight":600,"font-family":(t=e.fontFamily)==null?void 0:t.mono},":not(pre) > code::before,:not(pre) > code::after":{content:'"`"'},pre:{padding:"1.25rem 1.5rem","overflow-x":"auto","border-radius":".375rem"},"pre,code":{"white-space":"pre","word-spacing":"normal","word-break":"normal","word-wrap":"normal","-moz-tab-size":4,"-o-tab-size":4,"tab-size":4,"-webkit-hyphens":"none","-moz-hyphens":"none",hyphens:"none",background:"transparent"},"pre code":{"font-weight":"inherit"},"ol,ul":{"padding-left":"1.25em"},ol:{"list-style-type":"decimal"},'ol[type="A"]':{"list-style-type":"upper-alpha"},'ol[type="a"]':{"list-style-type":"lower-alpha"},'ol[type="A" s]':{"list-style-type":"upper-alpha"},'ol[type="a" s]':{"list-style-type":"lower-alpha"},'ol[type="I"]':{"list-style-type":"upper-roman"},'ol[type="i"]':{"list-style-type":"lower-roman"},'ol[type="I" s]':{"list-style-type":"upper-roman"},'ol[type="i" s]':{"list-style-type":"lower-roman"},'ol[type="1"]':{"list-style-type":"decimal"},ul:{"list-style-type":"disc"},"ol > li::marker,ul > li::marker,summary::marker":{color:"var(--un-prose-lists)"},hr:{margin:"2em 0",border:"1px solid var(--un-prose-hr)"},table:{display:"block",margin:"1em 0","border-collapse":"collapse","overflow-x":"auto"},"tr:nth-child(2n)":{background:"var(--un-prose-bg-soft)"},"td,th":{border:"1px solid var(--un-prose-borders)",padding:".625em 1em"},abbr:{cursor:"help"},kbd:{color:"var(--un-prose-code)",border:"1px solid",padding:".25rem .5rem","font-size":".875em","border-radius":".25rem"},details:{margin:"1em 0",padding:"1.25rem 1.5rem",background:"var(--un-prose-bg-soft)"},summary:{cursor:"pointer","font-weight":"600"}}}const Rm=[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"]];function Am(e){for(const[t,...r]of Rm)if(t===e)return r.length>0?r:[t]}function da(e){let t="";const{escapedSelector:r,selectorName:n,preflights:o,compatibility:i,important:s}=e,a=(i==null?void 0:i.noColonNot)||(i==null?void 0:i.noColonWhere);for(const c in o){const u=o[c],l=`:not(:where(.not-${n},.not-${n} *))`,p=c.split(",").map(b=>{const v=b.match(/:[():\-\w]+$/g);if(v){const g=v[0];return b=b.replace(g,""),r.map(m=>a?`${m} ${b}${g}`:`${m} :where(${b})${l}${g}`).join(",")}return null}).filter(b=>b);p.length?t+=p.join(","):t+=r.map(b=>a?c.split(",").map(v=>`${b} ${v}`).join(","):`${b} :where(${c})${l}`).join(","),t+="{";for(const b in u){const v=u[b];t+=`${b}:${v}${s?" !important":""};`}t+="}"}return t}function Tm(e,t){const{compatibility:r,selectorName:n,important:o=!1}=t,i=typeof(t==null?void 0:t.cssExtend)=="function"?t.cssExtend(e.theme):t==null?void 0:t.cssExtend;let s=Array.from(t.escapedSelectors);return!s[s.length-1].startsWith(".")&&!(r!=null&&r.noColonIs)&&(s=[`:is(${s[s.length-1]},.${t.selectorName})`]),typeof o=="string"&&(s=s.map(a=>r!=null&&r.noColonIs?`${o} ${a}`:`:is(${o}) ${a}`)),da(i?{escapedSelector:s,selectorName:n,preflights:pn(fa(e.theme),i),compatibility:r,important:o===!0}:{escapedSelector:s,selectorName:n,preflights:fa(e.theme),compatibility:r,important:o===!0})}const Nm=e=>{var a,c;e!=null&&e.className&&console.warn('[unocss:preset-typography] "className" is deprecated. Please use "selectorName" instead.');const t=new Set,r=(e==null?void 0:e.selectorName)||(e==null?void 0:e.className)||"prose",n=new RegExp(`^${r}$`),o=new RegExp(`^${r}-([-\\w]+)$`),i=new RegExp(`^${r}-invert$`),s=((a=e==null?void 0:e.compatibility)==null?void 0:a.noColonNot)||((c=e==null?void 0:e.compatibility)==null?void 0:c.noColonWhere);return{name:"@unocss/preset-typography",enforce:"post",layers:{typography:-20},rules:[[n,(u,{rawSelector:l})=>(t.add(wc(l)),{color:"var(--un-prose-body)","max-width":"65ch"}),{layer:"typography"}],[o,([,u],{theme:l})=>{var m;const p=(m=l.colors)==null?void 0:m[u];if(p==null)return;const b=typeof p=="object"?p:{},v={body:700,headings:900,links:900,lists:400,hr:200,captions:500,code:900,borders:200,"bg-soft":100,"invert-body":200,"invert-headings":100,"invert-links":100,"invert-lists":500,"invert-hr":700,"invert-captions":400,"invert-code":100,"invert-borders":700,"invert-bg-soft":800},g={};for(const d in v){const h=v[d],f=b[h]??p;let y=!1;for(const $ of Qc)if(f.includes($)){y=!0,g[`--un-prose-${d}-opacity`]=1,g[`--un-prose-${d}`]=f.replace($,`var(--un-prose-${d}-opacity)`);break}y||(g[`--un-prose-${d}`]=f)}return g},{layer:"typography"}],[i,()=>({"--un-prose-body":"var(--un-prose-invert-body)","--un-prose-headings":"var(--un-prose-invert-headings)","--un-prose-links":"var(--un-prose-invert-links)","--un-prose-lists":"var(--un-prose-invert-lists)","--un-prose-hr":"var(--un-prose-invert-hr)","--un-prose-captions":"var(--un-prose-invert-captions)","--un-prose-code":"var(--un-prose-invert-code)","--un-prose-borders":"var(--un-prose-invert-borders)","--un-prose-bg-soft":"var(--un-prose-invert-bg-soft)"}),{layer:"typography"}]],variants:[{name:"typography element modifiers",match:u=>{var l;if(u.startsWith(`${r}-`)){const p=new RegExp(`^${r}-(\\w+)[:-].+$`),b=(l=u.match(p))==null?void 0:l[1];if(b){const v=Am(b);if(v!=null&&v.length)return{matcher:u.slice(r.length+b.length+2),selector:g=>{const m=`:not(:where(.not-${r},.not-${r} *))`;return s?v.map(h=>`${g} ${h}`).join(","):`${g} :is(:where(${v})${m})`}}}}}}],preflights:[{layer:"typography",getCSS:u=>{if(t.size>0)return Tm(u,{escapedSelectors:t,...e,selectorName:r})}}]}};function Im(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Mm(e,t,r,n){for(const o of Array.from(e.matchAll(r)))if(o!=null){const i=o[0],s=`${n}${Im(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function Fm(e,t){for(const[r,n]of t.entries())e=e.replaceAll(r,n);return e}const zm=/\/\/#\s*sourceMappingURL=.*\n?/g;function Lm(e){return e.includes("sourceMappingURL=")?e.replace(zm,""):e}const Dm=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,qm=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Vm=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Um(e){const t=[];for(const o of e.matchAll(qm))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(const o of e.matchAll(Dm))t.push(o[0]);const r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Mm(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(mc).forEach(o=>{o.includes(n)&&(o=Fm(o,r)),lo(o)&&!Vm.test(o)&&t.push(o)}),t}function Hm(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Um(Lm(e))}}}const Wm="@unocss/preset-wind4",mo="$$mini-no-negative",bn={transparent:"transparent",current:"currentColor"},xe={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-inline"],y:["-block"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},pa={...xe,x:["-inset-inline"],y:["-inset-block"],s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Gn={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},tl={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Km=["x","y","z"],ha=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],Oe=Object.assign({},...ha.map(e=>({[e.replace(/ /,"-")]:e})),...ha.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),fe=["inherit","initial","revert","revert-layer","unset"],Wo=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,rl=/^(var)\s*\((.+)\)(.*)/,Ht=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Bm=/^(-?\d*(?:\.\d+)?)$/,nl=/^(px|[sld]?v[wh])$/i,ol={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Ko=/^\[(color|image|length|size|position|quoted|string|number|family):/i,Gm=/,(?![^()]*\))/g,Jm=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function Re(e){return+e.toFixed(10)}function Xm(e){const t=e.match(Ht);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${Re(o)}${n}`}function Ym(e){if(e==="auto"||e==="a")return"auto"}function Qm(e){if(!e)return;if(nl.test(e))return`${ol[e]}${e}`;const t=e.match(Ht);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${Re(o)}${n}`:`${Re(o/4)}rem`}function Zm(e){if(nl.test(e))return`${ol[e]}${e}`;const t=e.match(Ht);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${Re(o)}${n}`:`${Re(o)}px`}function il(e){if(!Bm.test(e))return;const t=Number.parseFloat(e);if(!Number.isNaN(t))return Re(t)}function e0(e){e.endsWith("%")&&(e=e.slice(0,-1));const t=il(e);if(t!=null)return`${t}%`}function t0(e){if(!e)return;if(e==="full")return"100%";const[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${Re(n*100)}%`}function st(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n;const o=e.match(Ko);if(!o)r=e.slice(1,-1);else{if(!t)n=o[1];else if(o[1]!==t)return;r=e.slice(o[0].length,-1)}if(!r||r==='=""')return;if(r.startsWith("--")){const[s,a]=r.slice(2).split(",");r=`var(--${pt(s)}${a?`, ${a}`:""})`}let i=0;for(const s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{const a=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(a.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function r0(e){return st(e)}function n0(e){return st(e,"color")}function o0(e){return st(e,"length")||st(e,"size")}function i0(e){return st(e,"position")}function s0(e){return st(e,"family")}function a0(e){return st(e,"number")}function c0(e){if(e.startsWith("var("))return e;const t=e.match(/^(?:\$|--)([^\s'"`;{}]+)$/);if(t){const[r,n]=t[1].split(",");return`var(--${pt(r)}${n?`, ${n}`:""})`}}function l0(e){const t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${Re(o)}${n}`:`${Re(o)}ms`}function u0(e){const t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${Re(o)}${n}`:`${Re(o)}deg`}function f0(e){if(fe.includes(e))return e}function d0(e){if(e.split(",").every(t=>Jm.includes(t)))return e}function p0(e){if(["top","left","right","bottom","center"].includes(e))return e}function h0(e){if(e==="none")return"none"}const m0={__proto__:null,auto:Ym,bracket:r0,bracketOfColor:n0,bracketOfFamily:s0,bracketOfLength:o0,bracketOfNumber:a0,bracketOfPosition:i0,cssvar:c0,degree:u0,fraction:t0,global:f0,none:h0,number:il,numberWithUnit:Xm,percent:e0,position:p0,properties:d0,px:Zm,rem:Qm,time:l0},g0=Om(m0),C=g0;function Fe(e,t){const r=C.number(e)??t;if(r!=null){let n=Number(r);return String(r).endsWith("%")&&(n=Number(String(r).slice(0,-1))/100),n}}function le(e){function t(n){const o=n.match(Ht);if(o){const[,i,s]=o,a=Number.parseFloat(i);if(!Number.isNaN(a))return[a,s]}return[void 0,void 0]}function r(n){var s;let o,i;if((s=n.spacing)!=null&&s.DEFAULT){const[a,c]=t(n.spacing.DEFAULT);a!=null&&c!=null&&(o=a,i=c)}return Object.entries(n.spacing??{}).reduce((a,[c,u])=>{const[l,p]=t(u);return l!=null&&p!=null&&p===i?a[c]=l/o:a[c]=u,a},{})}return([n,o,i],{theme:s})=>{if(i!=null&&o!=null){const a=r(s);let c;const u=i.startsWith("-");if(u&&(i=i.slice(1)),c=Fe(i,a[i]),c!=null)return Number.isNaN(c)?(te("spacing",i),xe[o].map(l=>[`${e}${l}`,u?`calc(var(--spacing-${i} * -1)`:`var(--spacing-${i})`])):(te("spacing"),xe[o].map(l=>[`${e}${l}`,`calc(var(--spacing) * ${u?"-":""}${c})`]));if(c=C.bracket.cssvar.global.auto.fraction.rem(u?`-${i}`:i),c!=null)return xe[o].map(l=>[`${e}${l}`,c])}}}function y0(e,t){const[r,n]=Vt(e,"[","]",["/",":"])??[];if(r!=null){const o=(r.match(Ko)??[])[1];if(o==null||o===t)return[r,n]}}function vn(e,t){const r=y0(e,"color");if(!r)return;const[n,o]=r,i=n.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[s]=i;if(!s)return;let{no:a,keys:c,color:u}=b0(t,i)??{};if(!u){const l=C.bracketOfColor(n),p=l||n;if(C.numberWithUnit(p))return;/^#[\da-f]+$/i.test(p)?u=p:/^hex-[\da-fA-F]+$/.test(p)?u=`#${p.slice(4)}`:n.startsWith("$")&&(u=C.cssvar(n)),u=u||l}return{opacity:o,name:s,no:a,color:u??bn[s],alpha:C.bracket.cssvar.percent(o??""),keys:c,get cssColor(){return dt(this.color)}}}function b0(e,t){let r,n,o;const i=Bo(e,"colors",t);if(typeof i=="object"?"DEFAULT"in i&&(r=i.DEFAULT,n="DEFAULT",o=[...t,n]):typeof i=="string"&&(r=i,o=t,n=t.at(-1)),!!r)return{color:r,no:n,keys:o}}function Bo(e,t,r){const n=e[t];function o(i,s){if(!(!i||typeof i!="object")){if(s.length===0)return i;for(let a=s.length;a>0;a--){const c=s.slice(0,a).join("-");if(c in i){const u=i[c];return a===s.length?u:o(u,s.slice(a))}}}}return o(n,r)}function sl(e,t,r,n){if(!e)return;const{color:o,keys:i,alpha:s}=e,a=(n==null?void 0:n.generator.config.envMode)==="dev"&&o?` /* ${o} */`:"",c={};if(o){const u=[c];if(Object.values(bn).includes(o))c[t]=o;else{const l=`--un-${r}-opacity`,p=i?ue("colors",i):o;s||(c[l]=s),c[t]=`color-mix(in oklch, ${p} ${s??`var(${l})`}, transparent)${a}`,u.push(B(l,{syntax:"<percentage>",initialValue:"100%"})),i&&te("colors",i),n!=null&&n.theme&&Xo(o,n.theme)}return u}}function pe(e,t){return([,r],n)=>{const o=vn(r??"",n.theme);if(o)return sl(o,e,t,n)}}function Go(e,t){const r=[];e=ae(e);for(let n=0;n<e.length;n++){const o=sn(e[n]," ",6);if(!o||o.length<3)return e;let i=!1;const s=o.indexOf("inset");s!==-1&&(o.splice(s,1),i=!0);let a="";const c=o.at(-1);if(dt(o.at(0))){const u=dt(o.shift());u&&(a=`, ${ho(u)}`)}else if(dt(c)){const u=dt(o.pop());u&&(a=`, ${ho(u)}`)}else c&&rl.test(c)&&(a=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${t}${a})`)}return r}function Jo(e,t){var r;return e!=null&&!!((r=vn(e,t))!=null&&r.color)}const ma=/[a-z]+/gi,Jn=new WeakMap;function $n({theme:e,generator:t},r="breakpoint"){var i,s;const n=((s=(i=t==null?void 0:t.userConfig)==null?void 0:i.theme)==null?void 0:s[r])||e[r];if(!n)return;if(Jn.has(e))return Jn.get(e);const o=Object.entries(n).sort((a,c)=>Number.parseInt(a[1].replace(ma,""))-Number.parseInt(c[1].replace(ma,""))).map(([a,c])=>({point:a,size:c}));return Jn.set(e,o),o}function Z(e,t){return fe.map(r=>[`${e}-${r}`,{[t??e]:r}])}function B(e,t={}){const{syntax:r="*",inherits:n=!1,initialValue:o}=t,i={[Ee.shortcutsNoMerge]:!0,[Ee.noMerge]:!0,[Ee.variants]:()=>[{parent:"",layer:"properties",selector:()=>`@property ${e}`}],syntax:JSON.stringify(r),inherits:n?"true":"false"};return o!=null&&(i["initial-value"]=o),i}function Wt(e){return e!=null&&Wo.test(e)}function v0(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),Wo.test(e)||Ht.test(e)}function $0(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}function al(e,t=!1){return t?e.trim():e.trim().replace(/\s+/g," ").replace(/\/\*[\s\S]*?\*\//g,"")}const ht=new Set([]);function te(e,t="DEFAULT"){const r=`${e}:${ae(t).join("-")}`;ht.has(r)||ht.add(r)}function ue(e,t){return`var(--${e}-${ae(t).join("-")})`}function Xo(e,t){var r;if(e.startsWith("var(")){const n=(r=e.match(/var\(--([\w-]+)(?:,.*)?\)/))==null?void 0:r[1];if(n){const[o,...i]=n.split("-"),s=Bo(t,o,i);s!=null&&(te(o,i),Xo(s,t))}}}function w0({important:e}){if(e==null||e===!1)return[];const t=r=>r.startsWith(":is(")&&r.endsWith(")")?r:r.includes("::")?r.replace(/(.*?)((?:\s\*)?::.*)/,":is($1)$2"):`:is(${r})`;return[e===!0?r=>{r.layer!=="properties"&&r.entries.forEach(n=>{n[1]!=null&&!String(n[1]).endsWith("!important")&&(n[1]+=" !important")})}:r=>{r.selector.startsWith(e)||(r.selector=`${e} ${t(r.selector)}`)}]}function k0({variablePrefix:e}){return e!=="un-"?[r=>{r.entries.forEach(n=>{n[0]=n[0].replace(/^--un-/,`--${e}`),typeof n[1]=="string"&&(n[1]=n[1].replace(/var\(--un-/g,`var(--${e}`))})}]:[]}function _0(e){return[w0,k0].flatMap(t=>t(e))}const x0={name:"aria",match(e,t){var n;const r=Te("aria-",e,t.generator.config.separators);if(r){const[o,i]=r,s=C.bracket(o)??((n=t.theme.aria)==null?void 0:n[o])??"";if(s)return{matcher:i,selector:a=>`${a}[aria-${s}]`}}},multiPass:!0,autocomplete:"aria-$aria"};function Mr(e){return{name:`${e}-aria`,match(t,r){var o;const n=Te(`${e}-aria-`,t,r.generator.config.separators);if(n){const[i,s]=n,a=C.bracket(i)??((o=r.theme.aria)==null?void 0:o[i])??"";if(a)return{matcher:`${e}-[[aria-${a}]]:${s}`}}}}}const S0=[Mr("group"),Mr("peer"),Mr("parent"),Mr("previous")],ga=/(max|min)-\[([^\]]*)\]:/;function E0(){const e={};return{name:"breakpoints",match(t,r){if(ga.test(t)){const o=t.match(ga);return{matcher:t.replace(o[0],""),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}const n=($n(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(const[o,i,s]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));const a=t.match(e[o]);if(!a)continue;const[,c]=a,u=t.slice(c.length);if(u==="container")continue;const l=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),p=c.startsWith("at-")||c.startsWith("~");let b=3e3;return l?(b-=s+1,{matcher:u,handle:(v,g)=>g({...v,parent:`${v.parent?`${v.parent} $$ `:""}@media (max-width: ${ua(i)})`,parentOrder:b})}):(b+=s+1,p&&s<n.length-1?{matcher:u,handle:(v,g)=>g({...v,parent:`${v.parent?`${v.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${ua(n[s+1][1])})`,parentOrder:b})}:{matcher:u,handle:(v,g)=>g({...v,parent:`${v.parent?`${v.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:b})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoint:"}}const C0=[He("*",e=>({selector:`${e.selector} > *`}))];function Et(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;const o=n.generator.config.separators;let i=Ut(`${e}-`,r,o);if(!i){for(const a of o)if(r.startsWith(`${e}${a}`)){i=["",r.slice(e.length+a.length)];break}if(!i)return}let s=C.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:a=>`${a}${t}${s}`}},multiPass:!0}}const j0=[Et("all"," "),Et("children",">"),Et("next","+"),Et("sibling","+"),Et("siblings","~")],P0=[He("svg",e=>({selector:`${e.selector} svg`}))],O0={name:"@",match(e,t){var n;if(e.startsWith("@container"))return;const r=Te("@",e,t.generator.config.separators);if(r){const[o,i,s]=r,a=C.bracket(o);let c;if(a?c=C.numberWithUnit(a):c=((n=t.theme.container)==null?void 0:n[o])??"",c){let u=1e3+Object.keys(t.theme.container??{}).indexOf(o);return s&&(u+=1e3),{matcher:i,handle:(l,p)=>p({...l,parent:`${l.parent?`${l.parent} $$ `:""}@container${s?` ${s} `:" "}(min-width: ${c})`,parentOrder:u})}}}},multiPass:!0};function R0(e={}){if((e==null?void 0:e.dark)==="class"||typeof e.dark=="object"){const{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[He("dark",n=>({prefix:`${t} $$ ${n.prefix}`})),He("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[ke("dark","@media (prefers-color-scheme: dark)"),ke("light","@media (prefers-color-scheme: light)")]}const A0=[He(".dark",e=>({prefix:`.dark $$ ${e.prefix}`})),He(".light",e=>({prefix:`.light $$ ${e.prefix}`})),ke("@dark","@media (prefers-color-scheme: dark)"),ke("@light","@media (prefers-color-scheme: light)"),ke("not-dark","@media not (prefers-color-scheme: dark)")],T0={name:"data",match(e,t){var n;const r=Te("data-",e,t.generator.config.separators);if(r){const[o,i]=r,s=C.bracket(o)??((n=t.theme.data)==null?void 0:n[o])??"";if(s)return{matcher:i,selector:a=>`${a}[data-${s}]`}}},multiPass:!0};function Fr(e){return{name:`${e}-data`,match(t,r){var o;const n=Te(`${e}-data-`,t,r.generator.config.separators);if(n){const[i,s,a]=n,c=C.bracket(i)??((o=r.theme.data)==null?void 0:o[i])??"";if(c)return{matcher:`${e}-[[data-${c}]]${a?`/${a}`:""}:${s}`}}}}}const N0=[Fr("group"),Fr("peer"),Fr("parent"),Fr("previous")],I0=[He("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),He("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function M0(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n;const o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),i)}}}}const F0=ke("noscript","@media (scripting: none)"),z0={name:"scripting",match(e,t){const r=Te(["script-","scripting-"],e,t.generator.config.separators);if(r){const[n,o]=r;if(["none","initial-only","enabled"].includes(n))return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (scripting: ${n})`})}}},multiPass:!0,autocomplete:["(scripting|script)-(none|initial-only|enabled)"]},L0=ke("print","@media print"),D0={name:"media",match(e,t){var n;const r=Te("media-",e,t.generator.config.separators);if(r){const[o,i]=r;let s=C.bracket(o)??"";if(s===""&&(s=((n=t.theme.media)==null?void 0:n[o])??""),s)return{matcher:i,handle:(a,c)=>c({...a,parent:`${a.parent?`${a.parent} $$ `:""}@media ${s}`})}}},multiPass:!0,autocomplete:"media-$media"},q0=[ke("contrast-more","@media (prefers-contrast: more)"),ke("contrast-less","@media (prefers-contrast: less)")],V0=[ke("motion-reduce","@media (prefers-reduced-motion: reduce)"),ke("motion-safe","@media (prefers-reduced-motion: no-preference)")],U0=[ke("landscape","@media (orientation: landscape)"),ke("portrait","@media (orientation: portrait)")],H0=[ke("forced-colors","@media (forced-colors: active)")],W0={name:"selector",match(e,t){const r=Ut("selector-",e,t.generator.config.separators);if(r){const[n,o]=r,i=C.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},K0={name:"layer",match(e,t){const r=Te("layer-",e,t.generator.config.separators);if(r){const[n,o]=r,i=C.bracket(n)??n;if(i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},B0={name:"uno-layer",match(e,t){const r=Te("uno-layer-",e,t.generator.config.separators);if(r){const[n,o]=r,i=C.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},G0={name:"scope",match(e,t){const r=Ut("scope-",e,t.generator.config.separators);if(r){const[n,o]=r,i=C.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},J0={name:"variables",match(e,t){if(!e.startsWith("["))return;const[r,n]=Uo(e,"[","]")??[];if(!(r&&n))return;let o;for(const a of t.generator.config.separators)if(n.startsWith(a)){o=n.slice(a.length);break}if(o==null)return;const i=C.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(a,c){const u=s?{parent:`${a.parent?`${a.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,a.selector)};return c({...a,...u})}}},multiPass:!0},X0={name:"theme-variables",match(e,t){if(Cm(e))return{matcher:e,handle(r,n){return n({...r,entries:JSON.parse(jm(JSON.stringify(r.entries),t.theme))})}}}},Y0=[He("@hover",e=>({parent:`${e.parent?`${e.parent} $$ `:""}@media (hover: hover) and (pointer: fine)`,selector:`${e.selector||""}:hover`}))],cl=/^-?[0-9.]+(?:[a-z]+|%)?$/,ll=/-?[0-9.]+(?:[a-z]+|%)?/,Q0=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Z0(e){const t=e.match(Wo)||e.match(rl);if(t){const[r,n]=Vt(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}const eg=/\b(hue-rotate)\s*(\(.*)/;function tg(e){const t=e.match(eg);if(t){const[r,n]=Vt(t[2],"(",")"," ")??[];if(r){const o=cl.test(r.slice(1,-1))?r.replace(ll,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${t[1]}${o}${n?` ${n}`:""}`}}}const rg={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===mo))return;let r=!1;return t.forEach(n=>{var a;if(ae(n[2]).includes(mo))return;const o=(a=n[1])==null?void 0:a.toString();if(!o||o==="0"||Q0.some(c=>c.test(n[0])))return;const i=Z0(o);if(i){n[1]=i,r=!0;return}const s=tg(o);if(s){n[1]=s,r=!0;return}cl.test(o)&&(n[1]=o.replace(ll,c=>c.startsWith("-")?c.slice(1):`-${c}`),r=!0)}),r?t:[]}}}},ng=(e,{theme:t})=>{const r=e.match(/^(.*)\b(placeholder-)(.+)$/);if(r){const[,n="",o,i]=r;if(Jo(i,t)||og(i))return{matcher:`${n}placeholder-$ ${o}${i}`}}};function og(e){const t=e.match(/^op(?:acity)?-?(.+)$/);return t&&t[1]!=null?C.bracket.percent(t[1])!=null:!1}const ul="__pseudo_placeholder__",yt=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${ul})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),fl=Object.keys(yt),bt=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),dl=Object.keys(bt),ig=["not","is","where","has"],pl=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),go=Object.entries(yt).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),yo=Object.entries(bt).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),rt=ig.join("|"),ya=Object.keys(pl).sort((e,t)=>t.length-e.length).join("|");function sg(e,t,r){const n=new RegExp(`^(${zt(t)}:)(\\S+)${zt(r)}\\1`);let o,i,s,a;const c=p=>{var f;const b=Ut(`${e}-`,p,[]);if(!b)return;const[v,g]=b,m=C.bracket(v);if(m==null)return;const d=((f=g.split(o,1))==null?void 0:f[0])??"",h=`${t}${pt(d)}`;return[d,p.slice(p.length-(g.length-d.length-1)),m.includes("&")?m.replace(/&/g,h):`${h}${m}`]},u=p=>{const b=p.match(i)||p.match(s);if(!b)return;const[v,g,m]=b,d=b[3]??"";let h=yt[m]||bt[m]||`:${m}`;return g&&(h=`:${g}(${h})`),[d,p.slice(v.length),`${t}${pt(d)}${h}`,m]},l=p=>{const b=p.match(a);if(!b)return;const[v,g,m]=b,d=b[3]??"",h=`:${g}(${m})`;return[d,p.slice(v.length),`${t}${pt(d)}${h}`]};return{name:`pseudo:${e}`,match(p,b){if(o&&i&&s||(o=new RegExp(`(?:${b.generator.config.separators.join("|")})`),i=new RegExp(`^${e}-(?:(?:(${rt})-)?(${go}))(?:(/[\\w-]+))?(?:${b.generator.config.separators.join("|")})`),s=new RegExp(`^${e}-(?:(?:(${rt})-)?(${yo}))(?:(/[\\w-]+))?(?:${b.generator.config.separators.filter(f=>f!=="-").join("|")})`),a=new RegExp(`^${e}-(?:(${rt})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${b.generator.config.separators.filter(f=>f!=="-").join("|")})`)),!p.startsWith(e))return;const v=c(p)||u(p)||l(p);if(!v)return;const[g,m,d,h=""]=v;return{matcher:m,handle:(f,y)=>y({...f,prefix:`${d}${r}${f.prefix}`.replace(n,"$1$2:"),sort:fl.indexOf(h)??dl.indexOf(h)})}},multiPass:!0}}const ag=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],ba=Object.entries(yt).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),va=Object.entries(bt).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function cg(){let e,t,r;return[{name:"pseudo",match(n,o){e&&t||(e=new RegExp(`^(${ba})(?:-(\\[\\w+\\]))?(?:${o.generator.config.separators.join("|")})`),t=new RegExp(`^(${va})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));const i=n.match(e)||n.match(t);if(i){let s=yt[i[1]]||bt[i[1]]||`:${i[1]}`;if(i[2]){const c=C.bracket(i[2]);c&&(s=s.replace(ul,c))}let a=fl.indexOf(i[1]);return a===-1&&(a=dl.indexOf(i[1])),a===-1&&(a=void 0),{matcher:n.slice(i[0].length),handle:(c,u)=>{const l=s.includes("::")&&!ag.includes(s)?{pseudo:`${c.pseudo}${s}`}:{selector:`${c.selector}${s}`};return u({...c,...l,sort:a,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${ba}|${va}):`},{name:"pseudo:multi",match(n,o){r||(r=new RegExp(`^(${ya})(?:${o.generator.config.separators.join("|")})`));const i=n.match(r);if(i)return pl[i[1]].map(a=>({matcher:n.slice(i[0].length),handle:(c,u)=>u({...c,pseudo:`${c.pseudo}${a}`})}))},multiPass:!1,autocomplete:`(${ya}):`}]}function lg(){let e,t,r;return{match(n,o){e&&t||(e=new RegExp(`^(${rt})-(${go})(?:${o.generator.config.separators.join("|")})`),t=new RegExp(`^(${rt})-(${yo})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${rt})-(\\[.+\\])(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));const i=n.match(e)||n.match(t)||n.match(r);if(i){const s=i[1],c=Uo(i[2],"[","]")?C.bracket(i[2]):yt[i[2]]||bt[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:u=>`${u}:${s}(${c})`}}},multiPass:!0,autocomplete:`(${rt})-(${go}|${yo}):`}}function ug(e={}){const t=!!(e!=null&&e.attributifyPseudo);let r=(e==null?void 0:e.prefix)??"";r=(Array.isArray(r)?r:[r]).filter(Boolean)[0]??"";const n=(o,i)=>sg(o,t?`[${r}${o}=""]`:`.${r}${o}`,i);return[n("group"," "),n("peer","~"),n("parent",">"),n("previous","+"),n("group-aria"," "),n("peer-aria","~"),n("parent-aria",">"),n("previous-aria","+")]}const fg=/(part-\[(.+)\]:)(.+)/,dg={match(e){const t=e.match(fg);if(t){const r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0},pg={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,r)=>r({...t,parent:"@starting-style"})}}},hg={name:"supports",match(e,t){var n;const r=Te("supports-",e,t.generator.config.separators);if(r){const[o,i]=r;let s=C.bracket(o)??"";if(s===""&&(s=((n=t.theme.supports)==null?void 0:n[o])??""),s)return{matcher:i,handle:(a,c)=>c({...a,parent:`${a.parent?`${a.parent} $$ `:""}@supports ${s}`})}}},multiPass:!0};function mg(e){return[x0,T0,K0,W0,B0,rg,pg,M0(),hg,F0,z0,L0,D0,...q0,...V0,...U0,...H0,E0(),...j0,...P0,ng,...cg(),lg(),...ug(e),dg,...R0(e),...A0,...I0,G0,...C0,O0,J0,...N0,...S0,X0,...Y0].flat()}const hl={black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},light:{50:"oklch(99.4% 0 0)",100:"oklch(99.11% 0 0)",200:"oklch(98.51% 0 0)",300:"oklch(98.16% 0.0017 247.84)",400:"oklch(97.31% 0 0)",500:"oklch(96.12% 0 0)",600:"oklch(96.32% 0.0034 247.86)",700:"oklch(94.17% 0.0052 247.88)",800:"oklch(91.09% 0.007 247.9)",900:"oklch(90.72% 0.0051 228.82)",950:"oklch(89.23% 0.006 239.83)"},dark:{50:"oklch(40.91% 0 0)",100:"oklch(35.62% 0 0)",200:"oklch(31.71% 0 0)",300:"oklch(29.72% 0 0)",400:"oklch(25.2% 0 0)",500:"oklch(23.93% 0 0)",600:"oklch(22.73% 0.0038 286.09)",700:"oklch(22.21% 0 0)",800:"oklch(20.9% 0 0)",900:"oklch(16.84% 0 0)",950:"oklch(13.44% 0 0)"}};Object.values(hl).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400])});const gg={keyframes:{pulse:"{0%, 100% {opacity:1} 50% {opacity:.5}}",bounce:"{0%, 100% {transform:translateY(-25%);animation-timing-function:cubic-bezier(0.8,0,1,1)} 50% {transform:translateY(0);animation-timing-function:cubic-bezier(0,0,0.2,1)}}",spin:"{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}",ping:"{0%{transform:scale(1);opacity:1}75%,100%{transform:scale(2);opacity:0}}","bounce-alt":"{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}",flash:"{from,50%,to{opacity:1}25%,75%{opacity:0}}","pulse-alt":"{from{transform:scale3d(1,1,1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scale3d(1,1,1)}}","rubber-band":"{from{transform:scale3d(1,1,1)}30%{transform:scale3d(1.25,0.75,1)}40%{transform:scale3d(0.75,1.25,1)}50%{transform:scale3d(1.15,0.85,1)}65%{transform:scale3d(0.95,1.05,1)}75%{transform:scale3d(1.05,0.95,1)}to{transform:scale3d(1,1,1)}}","shake-x":"{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}","shake-y":"{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}","head-shake":"{0%{transform:translateX(0)}6.5%{transform:translateX(-6px) rotateY(-9deg)}18.5%{transform:translateX(5px) rotateY(7deg)}31.5%{transform:translateX(-3px) rotateY(-5deg)}43.5%{transform:translateX(2px) rotateY(3deg)}50%{transform:translateX(0)}}",swing:"{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0deg)}}",tada:"{from{transform:scale3d(1,1,1)}10%,20%{transform:scale3d(0.9,0.9,0.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scale3d(1,1,1)}}",wobble:"{from{transform:translate3d(0,0,0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translate3d(0,0,0)}}",jello:"{from,11.1%,to{transform:translate3d(0,0,0)}22.2%{transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{transform:skewX(6.25deg) skewY(6.25deg)}44.4%{transform:skewX(-3.125deg)skewY(-3.125deg)}55.5%{transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{transform:skewX(-0.78125deg) skewY(-0.78125deg)}77.7%{transform:skewX(0.390625deg) skewY(0.390625deg)}88.8%{transform:skewX(-0.1953125deg) skewY(-0.1953125deg)}}","heart-beat":"{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}",hinge:"{0%{transform-origin:top left;animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);transform-origin:top left;animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);transform-origin:top left;animation-timing-function:ease-in-out}to{transform:translate3d(0,700px,0);opacity:0}}","jack-in-the-box":"{from{opacity:0;transform-origin:center bottom;transform:scale(0.1) rotate(30deg)}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{transform:scale(1)}}","light-speed-in-left":"{from{opacity:0;transform:translate3d(-100%,0,0) skewX(-30deg)}60%{opacity:1;transform:skewX(20deg)}80%{transform:skewX(-5deg)}to{transform:translate3d(0,0,0)}}","light-speed-in-right":"{from{opacity:0;transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;transform:skewX(20deg)}80%{transform:skewX(-5deg)}to{transform:translate3d(0,0,0)}}","light-speed-out-left":"{from{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0) skewX(30deg)}}","light-speed-out-right":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) skewX(30deg)}}",flip:"{from{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(0.95,0.95,0.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}to{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}}","flip-in-x":"{from{transform:perspective(400px) rotate3d(1,0,0,90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotate3d(1,0,0,-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{transform:perspective(400px)}}","flip-in-y":"{from{transform:perspective(400px) rotate3d(0,1,0,90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotate3d(0,1,0,-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{transform:perspective(400px)}}","flip-out-x":"{from{transform:perspective(400px)}30%{transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}","flip-out-y":"{from{transform:perspective(400px)}30%{transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}","rotate-in":"{from{transform-origin:center;transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform-origin:center;transform:translate3d(0,0,0);opacity:1}}","rotate-in-down-left":"{from{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform-origin:left bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-in-down-right":"{from{transform-origin:right bottom;transform:rotate3d(0,0,1,45deg);opacity:0}to{transform-origin:right bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-in-up-left":"{from{transform-origin:left top;transform:rotate3d(0,0,1,45deg);opacity:0}to{transform-origin:left top;transform:translate3d(0,0,0);opacity:1}}","rotate-in-up-right":"{from{transform-origin:right bottom;transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform-origin:right bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-out":"{from{transform-origin:center;opacity:1}to{transform-origin:center;transform:rotate3d(0,0,1,200deg);opacity:0}}","rotate-out-down-left":"{from{transform-origin:left bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,45deg);opacity:0}}","rotate-out-down-right":"{from{transform-origin:right bottom;opacity:1}to{transform-origin:right bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}}","rotate-out-up-left":"{from{transform-origin:left bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}}","rotate-out-up-right":"{from{transform-origin:right bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,90deg);opacity:0}}","roll-in":"{from{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translate3d(0,0,0)}}","roll-out":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}","zoom-in":"{from{opacity:0;transform:scale3d(0.3,0.3,0.3)}50%{opacity:1}}","zoom-in-down":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-left":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-right":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-up":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-out":"{from{opacity:1}50%{opacity:0;transform:scale3d(0.3,0.3,0.3)}to{opacity:0}}","zoom-out-down":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,2000px,0);transform-origin:center bottom;animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-out-left":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(0.1) translate3d(-2000px,0,0);transform-origin:left center}}","zoom-out-right":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(0.1) translate3d(2000px,0,0);transform-origin:right center}}","zoom-out-up":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-2000px,0);transform-origin:center bottom;animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","bounce-in":"{from,20%,40%,60%,80%,to{animation-timing-function:ease-in-out}0%{opacity:0;transform:scale3d(0.3,0.3,0.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(0.9,0.9,0.9)}60%{transform:scale3d(1.03,1.03,1.03);opacity:1}80%{transform:scale3d(0.97,0.97,0.97)}to{opacity:1;transform:scale3d(1,1,1)}}","bounce-in-down":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:translate3d(0,0,0)}}","bounce-in-left":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:translate3d(0,0,0)}}","bounce-in-right":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:translate3d(0,0,0)}}","bounce-in-up":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translate3d(0,0,0)}}","bounce-out":"{20%{transform:scale3d(0.9,0.9,0.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(0.3,0.3,0.3)}}","bounce-out-down":"{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}","bounce-out-left":"{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}","bounce-out-right":"{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}","bounce-out-up":"{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}","slide-in-down":"{from{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-left":"{from{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-right":"{from{transform:translate3d(100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-up":"{from{transform:translate3d(0,100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-out-down":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}","slide-out-left":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}","slide-out-right":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}","slide-out-up":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}","fade-in":"{from{opacity:0}to{opacity:1}}","fade-in-down":"{from{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-down-big":"{from{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-left":"{from{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-left-big":"{from{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-right":"{from{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-right-big":"{from{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-up":"{from{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-up-big":"{from{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-top-left":"{from{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-top-right":"{from{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-bottom-left":"{from{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-bottom-right":"{from{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-out":"{from{opacity:1}to{opacity:0}}","fade-out-down":"{from{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}","fade-out-down-big":"{from{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}","fade-out-left":"{from{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}","fade-out-left-big":"{from{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}","fade-out-right":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}","fade-out-right-big":"{from{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}","fade-out-up":"{from{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}","fade-out-up-big":"{from{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}","fade-out-top-left":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}","fade-out-top-right":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}","fade-out-bottom-left":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}","fade-out-bottom-right":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(100%,100%,0)}}","back-in-up":"{0%{opacity:0.7;transform:translateY(1200px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-down":"{0%{opacity:0.7;transform:translateY(-1200px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-right":"{0%{opacity:0.7;transform:translateX(2000px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-left":"{0%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}80%{opacity:0.7;transform:translateX(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-out-up":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}","back-out-down":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateY(700px) scale(0.7)}}","back-out-right":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}","back-out-left":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"},durations:{pulse:"2s","heart-beat":"1.3s","bounce-in":"0.75s","bounce-out":"0.75s","flip-out-x":"0.75s","flip-out-y":"0.75s",hinge:"2s"},timingFns:{pulse:"cubic-bezier(0.4,0,.6,1)",ping:"cubic-bezier(0,0,.2,1)","head-shake":"ease-in-out","heart-beat":"ease-in-out","pulse-alt":"ease-in-out","light-speed-in-left":"ease-out","light-speed-in-right":"ease-out","light-speed-out-left":"ease-in","light-speed-out-right":"ease-in"},properties:{"bounce-alt":{"transform-origin":"center bottom"},jello:{"transform-origin":"center"},swing:{"transform-origin":"top center"},flip:{"backface-visibility":"visible"},"flip-in-x":{"backface-visibility":"visible !important"},"flip-in-y":{"backface-visibility":"visible !important"},"flip-out-x":{"backface-visibility":"visible !important"},"flip-out-y":{"backface-visibility":"visible !important"},"rotate-in":{"transform-origin":"center"},"rotate-in-down-left":{"transform-origin":"left bottom"},"rotate-in-down-right":{"transform-origin":"right bottom"},"rotate-in-up-left":{"transform-origin":"left bottom"},"rotate-in-up-right":{"transform-origin":"right bottom"},"rotate-out":{"transform-origin":"center"},"rotate-out-down-left":{"transform-origin":"left bottom"},"rotate-out-down-right":{"transform-origin":"right bottom"},"rotate-out-up-left":{"transform-origin":"left bottom"},"rotate-out-up-right":{"transform-origin":"right bottom"},hinge:{"transform-origin":"top left"},"zoom-out-down":{"transform-origin":"center bottom"},"zoom-out-left":{"transform-origin":"left center"},"zoom-out-right":{"transform-origin":"right center"},"zoom-out-up":{"transform-origin":"center bottom"}},counts:{spin:"infinite",ping:"infinite",pulse:"infinite","pulse-alt":"infinite",bounce:"infinite","bounce-alt":"infinite"},category:{pulse:"Attention Seekers",bounce:"Attention Seekers",spin:"Attention Seekers",ping:"Attention Seekers","bounce-alt":"Attention Seekers",flash:"Attention Seekers","pulse-alt":"Attention Seekers","rubber-band":"Attention Seekers","shake-x":"Attention Seekers","shake-y":"Attention Seekers","head-shake":"Attention Seekers",swing:"Attention Seekers",tada:"Attention Seekers",wobble:"Attention Seekers",jello:"Attention Seekers","heart-beat":"Attention Seekers",hinge:"Specials","jack-in-the-box":"Specials","light-speed-in-left":"Lightspeed","light-speed-in-right":"Lightspeed","light-speed-out-left":"Lightspeed","light-speed-out-right":"Lightspeed",flip:"Flippers","flip-in-x":"Flippers","flip-in-y":"Flippers","flip-out-x":"Flippers","flip-out-y":"Flippers","rotate-in":"Rotating Entrances","rotate-in-down-left":"Rotating Entrances","rotate-in-down-right":"Rotating Entrances","rotate-in-up-left":"Rotating Entrances","rotate-in-up-right":"Rotating Entrances","rotate-out":"Rotating Exits","rotate-out-down-left":"Rotating Exits","rotate-out-down-right":"Rotating Exits","rotate-out-up-left":"Rotating Exits","rotate-out-up-right":"Rotating Exits","roll-in":"Specials","roll-out":"Specials","zoom-in":"Zooming Entrances","zoom-in-down":"Zooming Entrances","zoom-in-left":"Zooming Entrances","zoom-in-right":"Zooming Entrances","zoom-in-up":"Zooming Entrances","zoom-out":"Zooming Exits","zoom-out-down":"Zooming Exits","zoom-out-left":"Zooming Exits","zoom-out-right":"Zooming Exits","zoom-out-up":"Zooming Exits","bounce-in":"Bouncing Entrances","bounce-in-down":"Bouncing Entrances","bounce-in-left":"Bouncing Entrances","bounce-in-right":"Bouncing Entrances","bounce-in-up":"Bouncing Entrances","bounce-out":"Bouncing Exits","bounce-out-down":"Bouncing Exits","bounce-out-left":"Bouncing Exits","bounce-out-right":"Bouncing Exits","bounce-out-up":"Bouncing Exits","slide-in-down":"Sliding Entrances","slide-in-left":"Sliding Entrances","slide-in-right":"Sliding Entrances","slide-in-up":"Sliding Entrances","slide-out-down":"Sliding Exits","slide-out-left":"Sliding Exits","slide-out-right":"Sliding Exits","slide-out-up":"Sliding Exits","fade-in":"Fading Entrances","fade-in-down":"Fading Entrances","fade-in-down-big":"Fading Entrances","fade-in-left":"Fading Entrances","fade-in-left-big":"Fading Entrances","fade-in-right":"Fading Entrances","fade-in-right-big":"Fading Entrances","fade-in-up":"Fading Entrances","fade-in-up-big":"Fading Entrances","fade-in-top-left":"Fading Entrances","fade-in-top-right":"Fading Entrances","fade-in-bottom-left":"Fading Entrances","fade-in-bottom-right":"Fading Entrances","fade-out":"Fading Exits","fade-out-down":"Fading Exits","fade-out-down-big":"Fading Exits","fade-out-left":"Fading Exits","fade-out-left-big":"Fading Exits","fade-out-right":"Fading Exits","fade-out-right-big":"Fading Exits","fade-out-up":"Fading Exits","fade-out-up-big":"Fading Exits","fade-out-top-left":"Fading Exits","fade-out-top-right":"Fading Exits","fade-out-bottom-left":"Fading Exits","fade-out-bottom-right":"Fading Exits","back-in-up":"Back Entrances","back-in-down":"Back Entrances","back-in-right":"Back Entrances","back-in-left":"Back Entrances","back-out-up":"Back Exits","back-out-down":"Back Exits","back-out-right":"Back Exits","back-out-left":"Back Exits"}},yg={busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},bg={DEFAULT:"8px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},vg={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},$g={xs:{fontSize:"0.75rem",lineHeight:"1rem"},sm:{fontSize:"0.875rem",lineHeight:"1.25rem"},base:{fontSize:"1rem",lineHeight:"1.5rem"},lg:{fontSize:"1.125rem",lineHeight:"1.75rem"},xl:{fontSize:"1.25rem",lineHeight:"1.75rem"},"2xl":{fontSize:"1.5rem",lineHeight:"2rem"},"3xl":{fontSize:"1.875rem",lineHeight:"2.25rem"},"4xl":{fontSize:"2.25rem",lineHeight:"2.5rem"},"5xl":{fontSize:"3rem",lineHeight:"1"},"6xl":{fontSize:"3.75rem",lineHeight:"1"},"7xl":{fontSize:"4.5rem",lineHeight:"1"},"8xl":{fontSize:"6rem",lineHeight:"1"},"9xl":{fontSize:"8rem",lineHeight:"1"}},wg={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},kg={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},_g={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},xg={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Sg={portrait:"(orientation: portrait)",landscape:"(orientation: landscape)",os_dark:"(prefers-color-scheme: dark)",os_light:"(prefers-color-scheme: light)",motion_ok:"(prefers-reduced-motion: no-preference)",motion_not_ok:"(prefers-reduced-motion: reduce)",high_contrast:"(prefers-contrast: high)",low_contrast:"(prefers-contrast: low)",opacity_ok:"(prefers-reduced-transparency: no-preference)",opacity_not_ok:"(prefers-reduced-transparency: reduce)",use_data_ok:"(prefers-reduced-data: no-preference)",use_data_not_ok:"(prefers-reduced-data: reduce)",touch:"(hover: none) and (pointer: coarse)",stylus:"(hover: none) and (pointer: fine)",pointer:"(hover) and (pointer: coarse)",mouse:"(hover) and (pointer: fine)",hd_color:"(dynamic-range: high)"},Eg={DEFAULT:"0.25rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Cg={DEFAULT:"0.25rem",none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","4xl":"2rem"},jg={DEFAULT:["0 1px 3px 0 rgb(0 0 0 / 0.1)","0 1px 2px -1px rgb(0 0 0 / 0.1)"],"2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:["0 1px 3px 0 rgb(0 0 0 / 0.1)","0 1px 2px -1px rgb(0 0 0 / 0.1)"],md:["0 4px 6px -1px rgb(0 0 0 / 0.1)","0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["0 10px 15px -3px rgb(0 0 0 / 0.1)","0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["0 20px 25px -5px rgb(0 0 0 / 0.1)","0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",none:"0 0 rgb(0 0 0 / 0)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Pg={DEFAULT:"inset 0 1px 1px rgb(0 0 0 / 0.05)","2xs":"inset 0 1px rgb(0 0 0 / 0.05)",xs:"inset 0 1px 1px rgb(0 0 0 / 0.05)",sm:"inset 0 2px 4px rgb(0 0 0 / 0.05)"},Og={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],xs:"0 1px 1px rgb(0 0 0 / 0.05)",sm:"0 1px 2px rgb(0 0 0 / 0.15)",md:"0 3px 3px rgb(0 0 0 / 0.12)",lg:"0 4px 4px rgb(0 0 0 / 0.15)",xl:"0 9px 7px rgb(0 0 0 / 0.1)","2xl":"0 25px 25px rgb(0 0 0 / 0.15)"},Rg={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},Ag={dramatic:"100px",near:"300px",normal:"500px",midrange:"800px",distant:"1200px"},Tg={transition:{duration:"150ms",timingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},font:{family:"var(--font-sans)",featureSettings:"var(--font-sans--font-feature-settings)",variationSettings:"var(--font-sans--font-variation-settings)"},monoFont:{family:"var(--font-mono)",featureSettings:"var(--font-mono--font-feature-settings)",variationSettings:"var(--font-mono--font-variation-settings)"}},Ng={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},ml={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},Ig={...ml},Mg={grid:"(display: grid)"},Fg={linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)",DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)"},zg={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke","--un-gradient-from","--un-gradient-via","--un-gradient-to"].join(","),opacity:"opacity",shadow:"box-shadow",transform:["transform","translate","scale","rotate"].join(","),get DEFAULT(){return[this.colors,this.opacity,this.shadow,this.transform,"filter","-webkit-backdrop-filter","backdrop-filter"].join(",")}},Lg={font:vg,colors:hl,spacing:Eg,breakpoint:ml,verticalBreakpoint:Ig,text:$g,fontWeight:wg,tracking:kg,leading:_g,textStrokeWidth:xg,radius:Cg,shadow:jg,insetShadow:Pg,dropShadow:Og,textShadow:Rg,ease:Fg,animation:gg,blur:bg,perspective:Ag,property:zg,default:Tg,container:Ng,aria:yg,media:Sg,supports:Mg},Dg=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]],qg=/@media \(min-width: (.+)\)/,Vg=[[/^__container$/,(e,t)=>{var u,l,p,b,v,g,m;const{theme:r,variantHandlers:n}=t,o=(u=r.containers)==null?void 0:u.padding;let i;ce(o)?i=o:i=o==null?void 0:o.DEFAULT;const s=(l=r.containers)==null?void 0:l.maxWidth;let a;for(const d of n){const h=(b=(p=d.handle)==null?void 0:p.call(d,{},f=>f))==null?void 0:b.parent;if(ce(h)){const f=(v=h.match(qg))==null?void 0:v[1];if(f){const $=(g=($n(t)??[]).find(k=>k.size===f))==null?void 0:g.point;s?$&&(a=s==null?void 0:s[$]):a=f,$&&!ce(o)&&(i=(o==null?void 0:o[$])??i)}}}const c={"max-width":a};return n.length||(c.width="100%"),(m=r.containers)!=null&&m.center&&(c["margin-left"]="auto",c["margin-right"]="auto"),o&&(c["padding-left"]=i,c["padding-right"]=i),c},{internal:!0}]],Ug=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{let r=($n(t)??[]).map(o=>o.point);if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}const n=r.map(o=>`${o}:__container`);return e||n.unshift("__container"),n}]],Hg=[...Ug],$a={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(fe.map(e=>[e,e]))},Wg=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":$a[e]??C.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys($a).join("|")})`,"(vertical|align|v)-<percentage>"]}]],wa=["center","left","right","justify","start","end"],Kg=[...wa.map(e=>[`text-${e}`,{"text-align":e}]),...[...fe,...wa].map(e=>[`text-align-${e}`,{"text-align":e}])],Bg=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t})=>{var n,o;const r=(o=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:o[e];if(r)return[`@keyframes ${e}${r}`,{animation:e}]},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t})=>{var n,o,i,s,a,c,u,l,p,b;const r=(o=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:o[e];if(r){const v=((s=(i=t.animation)==null?void 0:i.durations)==null?void 0:s[e])??"1s",g=((c=(a=t.animation)==null?void 0:a.timingFns)==null?void 0:c[e])??"linear",m=((l=(u=t.animation)==null?void 0:u.counts)==null?void 0:l[e])??1,d=(b=(p=t.animation)==null?void 0:p.properties)==null?void 0:b[e];return[`@keyframes ${e}${r}`,{animation:`${e} ${v} ${g} ${m}`,...d}]}return{animation:C.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>({"animation-name":C.bracket.cssvar(e)??e})],[/^animate-duration-(.+)$/,([,e],{theme:t})=>{var r;return{"animation-duration":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??C.bracket.cssvar.time(e)}},{autocomplete:["animate-duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>{var r;return{"animation-delay":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??C.bracket.cssvar.time(e)}},{autocomplete:["animate-delay"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"animation-timing-function":((r=t.ease)==null?void 0:r[e||"DEFAULT"])??C.bracket.cssvar(e)}},{autocomplete:["animate-ease","animate-ease-$ease"]}],[/^animate-(fill-mode-|fill-|mode-)?(.+)$/,([,e,t])=>["none","forwards","backwards","both",e?fe:[]].includes(t)?{"animation-fill-mode":t}:void 0,{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(direction-)?(.+)$/,([,e,t])=>["normal","reverse","alternate","alternate-reverse",e?fe:[]].includes(t)?{"animation-direction":t}:void 0,{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/,([,e])=>({"animation-iteration-count":C.bracket.cssvar(e)??e.replace(/-/g,",")}),{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(play-state-|play-|state-)?(.+)$/,([,e,t])=>["paused","running",e?fe:[]].includes(t)?{"animation-play-state":t}:void 0,{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)","animate-(paused|running|inherit|initial|revert|revert-layer|unset)"]}],["animate-none",{animation:"none"}],...Z("animate","animation")],gl={"gradient-position":B("--un-gradient-position"),"gradient-from":B("--un-gradient-from",{syntax:"<color>",initialValue:"#0000"}),"gradient-via":B("--un-gradient-via",{syntax:"<color>",initialValue:"#0000"}),"gradient-to":B("--un-gradient-to",{syntax:"<color>",initialValue:"#0000"}),"gradient-stops":B("--un-gradient-stops"),"gradient-via-stops":B("--un-gradient-via-stops"),"gradient-from-position":B("--un-gradient-from-position",{syntax:"<length-percentage>",initialValue:"0%"}),"gradient-via-position":B("--un-gradient-via-position",{syntax:"<length-percentage>",initialValue:"50%"}),"gradient-to-position":B("--un-gradient-to-position",{syntax:"<length-percentage>",initialValue:"100%"})};function ka(e){let t="in oklab";if(e)if(e.startsWith("[")&&e.endsWith("]"))t=e.slice(1,-1);else switch(e){case"longer":case"shorter":case"increasing":case"decreasing":t=`in oklch ${e} hue`;break;default:t=`in ${e}`}return t}function Gg(){return function*([,e,t],{theme:r}){const n={},o=vn(t,r);if(o){const{color:i,keys:s,alpha:a}=o;if(i){if(Object.values(bn).includes(i))n[`--un-gradient-${e}`]=i;else{n[`--un-${e}-opacity`]=a;const c=s?ue("colors",s):i;n[`--un-gradient-${e}`]=`color-mix(in oklab, ${c} var(--un-${e}-opacity), transparent)`,yield B(`--un-${e}-opacity`,{syntax:"<percentage>",initialValue:"100%"})}s&&te("colors",s),r&&Xo(i,r)}}else n[`--un-gradient-${e}`]=C.bracket.cssvar(t);if(n[`--un-gradient-${e}`]){switch(e){case"from":yield{...n,"--un-gradient-stops":"var(--un-gradient-via-stops, var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-to) var(--un-gradient-to-position))"};break;case"via":yield{...n,"--un-gradient-via-stops":"var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-via) var(--un-gradient-via-position), var(--un-gradient-to) var(--un-gradient-to-position)","--un-gradient-stops":"var(--un-gradient-via-stops)"};break;case"to":yield{...n,"--un-gradient-stops":"var(--un-gradient-via-stops, var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-to) var(--un-gradient-to-position))"};break;case"stops":yield{...n};break}for(const i of Object.values(gl))yield i}}}function Jg(){return function*([,e,t]){yield{[`--un-gradient-${e}-position`]:`${C.bracket.cssvar.percent(t)}`};for(const r of Object.values(gl))yield r}}const Xg=[[/^bg-(linear|radial|conic)-([^/]+)(?:\/(.+))?$/,([,e,t,r])=>{let n;if(C.number(t)!=null?n=`${C.number(t)}deg ${ka(r)};`:n=C.bracket(t),n)return{"--un-gradient-position":n,"background-image":`${e}-gradient(var(--un-gradient-stops))`}},{autocomplete:["bg-(linear|radial|conic)","(from|to|via)-$colors","(from|to|via)-(op|opacity)","(from|to|via)-(op|opacity)-<percent>"]}],[/^(from|via|to|stops)-(.+)$/,Gg()],[/^(from|via|to)-op(?:acity)?-?(.+)$/,([,e,t])=>({[`--un-${e}-opacity`]:C.bracket.percent(t)})],[/^(from|via|to)-([\d.]+%)$/,Jg()],[/^bg-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-(linear|radial|conic)(?:-to-([rltb]{1,2}))?(?:\/(.+))?$/,([,e,t,r])=>({"--un-gradient-position":`${t in Oe?`to ${Oe[t]} `:" "}${ka(r)}`,"background-image":`${e}-gradient(var(--un-gradient-stops))`}),{autocomplete:`bg-gradient-to-(${Object.keys(Oe).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],...Z("box-decoration","box-decoration-break"),["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-clip":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-clip":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-clip":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-clip":"text"}],...fe.map(e=>[`bg-clip-${e}`,{"-webkit-background-clip":e,"background-clip":e}]),[/^bg-([-\w]{3,})$/,([,e])=>({"background-position":Oe[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],...Z("bg-repeat","background-repeat"),["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}],...Z("bg-origin","background-origin")],_a=[[/^outline-(?:width-|size-)?(.+)$/,yl,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,Yg,{autocomplete:"outline-$colors"}],[/^outline-op(?:acity)?-?(.+)$/,([,e])=>({"--un-outline-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"outline-(op|opacity)-<percent>"}],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":C.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline-offset-none",{"outline-offset":"0"}],[/^outline$/,function*(){yield{"outline-style":"var(--un-outline-style)","outline-width":"1px"},yield B("--un-outline-style",{initialValue:"solid"})}],[/^outline-hidden$/,function*(e,{symbols:t}){yield{"outline-style":"none"},yield{[t.parent]:"@media (forced-colors: active)",outline:"2px solid transparent","outline-offset":"2px"}}],["outline-none",{"--un-outline-style":"none","outline-style":"none"}],...["auto","dashed","dotted","double","solid","groove","ridge","inset","outset",...fe].map(e=>[`outline-${e}`,{"--un-outline-style":e,"outline-style":e}])];function*yl([,e]){const t=C.bracket.cssvar.global.px(e);t!=null&&(yield{"outline-style":"var(--un-outline-style)","outline-width":t},yield B("--un-outline-style",{initialValue:"solid"}))}function*Yg(e,t){if(Wt(C.bracket(e[1])))yield*yl(e);else{const r=pe("outline-color","outline")(e,t);if(r)for(const n of r)yield n}}const Qg=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Zg(e){const t=C.bracket(e);return t&&C.properties(t)?t:C.properties.auto.cssvar.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}const xa=[[/^will-change-(.+)/,([,e])=>({"will-change":Zg(e)})]],Xn={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},ey=[[/^list-(.+?)(?:-(outside|inside))?$/,([,e,t])=>{const r=Xn[e];if(r)return t?{"list-style-position":t,"list-style-type":r}:{"list-style-type":r}},{autocomplete:[`list-(${Object.keys(Xn).join("|")})`,`list-(${Object.keys(Xn).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}],[/^list-image-(.+)$/,([,e])=>{if(/^\[url\(.+\)\]$/.test(e))return{"list-style-image":C.bracket(e)}}],["list-image-none",{"list-style-image":"none"}],...Z("list","list-style-type")],ty=[[/^accent-(.+)$/,pe("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":C.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],ry=[[/^caret-(.+)$/,pe("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":C.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],ny=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],oy=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],...Z("overscroll","overscroll-behavior"),["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],...Z("overscroll-x","overscroll-behavior-x"),["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}],...Z("overscroll-y","overscroll-behavior-y")],iy=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}],...Z("scroll","scroll-behavior")],nt=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...fe],sy=[[/^(?:border|b)()(?:-(.+))?$/,Pe,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Pe],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Pe],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Pe],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Pe],[/^(?:border|b)-()(?:width|size)-(.+)$/,Pe,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Pe],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Pe],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Pe],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Pe],[/^(?:border|b)-()(?:color-)?(.+)$/,Ct,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Ct],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Ct],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Ct],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Ct],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,jt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,jt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,jt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,jt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,jt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Pt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$radius","(rounded|rd)","(rounded|rd)-$radius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Pt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Pt],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Pt],[/^(?:border|b)-(?:style-)?()(.+)$/,Ot,{autocomplete:["(border|b)-style",`(border|b)-(${nt.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${nt.join("|")})`,`(border|b)-<directions>-style-(${nt.join("|")})`,`(border|b)-style-(${nt.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Ot],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Ot],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Ot],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Ot]];function ay(e){return([,t],r)=>{const n=vn(t,r.theme),o=sl(n,`border${e}-color`,`border${e}`,r);if(o){const i=o[0];return n!=null&&n.color&&!Object.values(bn).includes(n.color)&&!n.alpha&&e&&e!==""&&(i[`--un-border${e}-opacity`]="var(--un-border-opacity)"),o}}}function Pe([,e="",t="1"]){const r=C.bracket.cssvar.global.px(t);if(e in xe&&r!=null)return xe[e].map(n=>[`border${n}-width`,r])}function Ct([,e="",t],r){if(e in xe){if(Wt(C.bracket(t)))return Pe(["",e,t]);if(Jo(t,r.theme)){const n=xe[e].map(o=>ay(o)(["",t],r)).filter(Vr);return[n.map(o=>o[0]).reduce((o,i)=>(Object.assign(o,i),o),{}),...n.flatMap(o=>o.slice(1))]}}}function jt([,e="",t]){const r=C.bracket.percent.cssvar(t);if(e in xe&&r!=null)return xe[e].map(n=>[`--un-border${n}-opacity`,r])}function Pt([,e="",t="DEFAULT"],{theme:r}){var n;if(e in Gn){if(t==="full")return Gn[e].map(i=>[`border${i}-radius`,"calc(infinity * 1px)"]);const o=((n=r.radius)==null?void 0:n[t])??C.bracket.cssvar.global.fraction.rem(t);if(o!=null){const i=r.radius&&t in r.radius;return i&&te("radius",t),Gn[e].map(s=>[`border${s}-radius`,i?ue("radius",t):o])}}}function Ot([,e="",t]){if(nt.includes(t)&&e in xe)return[["--un-border-style",t],...xe[e].map(r=>[`border${r}-style`,t])]}const cy=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:C.bracket.percent.cssvar(e)})]],ly=/^\[url\(.+\)\]$/,uy=/^\[(?:length|size):.+\]$/,fy=/^\[position:.+\]$/,dy=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,py=/^\[image:.+\]$/,hy=[[/^bg-(.+)$/,(...e)=>{const t=e[0][1];if(ly.test(t))return{"--un-url":C.bracket(t),"background-image":"var(--un-url)"};if(uy.test(t)&&C.bracketOfLength(t)!=null)return{"background-size":C.bracketOfLength(t).split(" ").map(r=>C.fraction.auto.px.cssvar(r)??r).join(" ")};if((v0(t)||fy.test(t))&&C.bracketOfPosition(t)!=null)return{"background-position":C.bracketOfPosition(t).split(" ").map(r=>C.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(dy.test(t)||py.test(t)){const r=C.bracket(t);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:C.cssvar(r))??r}}return pe("background-color","bg")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],my=[[/^(?:color-)?scheme-(.+)$/,([,e])=>({"color-scheme":e.split("-").join(" ")})]],gy=[[/^columns-(.+)$/,([,e])=>({columns:C.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],...Z("break-before"),["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],...Z("break-inside"),["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}],...Z("break-after")],Sa=["solid","double","dotted","dashed","wavy",...fe],yy=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,bl,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,by,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e])=>({"text-underline-offset":C.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Sa.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Sa.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function bl([,e]){return{"text-decoration-thickness":C.bracket.cssvar.global.px(e)}}function by(e,t){if(Wt(C.bracket(e[1])))return bl(e);const r=pe("text-decoration-color","line")(e,t);if(r){const n=r[0];return n["-webkit-text-decoration-color"]=n["text-decoration-color"],r}}const vy=[[/^pa?()-?(.+)$/,le("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,le("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,le("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,le("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,le("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,le("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],$y=[[/^ma?()-?(.+)$/,le("margin")],[/^m-?xy()()$/,le("margin")],[/^m-?([xy])(?:-?(.+))?$/,le("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,le("margin")],[/^m-(block|inline)(?:-(.+))?$/,le("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,le("margin")]],wy=[[/^space-([xy])-(.+)$/,ky,{autocomplete:["space-(x|y)","space-(x|y)-reverse","space-(x|y)-$spacing"]}],[/^space-([xy])-reverse$/,function*([,e],{symbols:t}){yield{[t.selector]:ot,[`--un-space-${e}-reverse`]:"1"},yield B(`--un-space-${e}-reverse`,{initialValue:0})}]];function ot(e){const t=">:not(:last-child)";return e.includes(t)?e:`${e}${t}`}function*ky([,e,t],{theme:r,symbols:n}){var s;let o;const i=Fe(t);if(i!=null?(te("spacing"),o=`calc(var(--spacing) * ${i})`):o=((s=r.spacing)==null?void 0:s[t])??C.bracket.cssvar.auto.fraction.rem(t||"1"),o!=null){const a=xe[e==="x"?"inline":"block"].map((c,u)=>{const l=`margin${c}`,p=` calc(${o} * ${u===0?`var(--un-space-${e}-reverse)`:`calc(1 - var(--un-space-${e}-reverse))`})`;return[l,p]});a&&(yield{[n.selector]:ot,[`--un-space-${e}-reverse`]:"0",...Object.fromEntries(a)},yield B(`--un-space-${e}-reverse`,{initialValue:0}))}}const _y=[[/^divide-(.+)$/,function*(e,t){const r=pe("border-color","divide")(e,t);r&&(yield{[t.symbols.selector]:ot,...r[0]},yield r[1])},{autocomplete:"divide-$colors"}],[/^divide-op(?:acity)?-?(.+)$/,function*([,e],{symbols:t}){yield{[t.selector]:ot,"--un-divide-opacity":C.bracket.percent(e)}},{autocomplete:["divide-(op|opacity)","divide-(op|opacity)-<percent>"]}],[/^divide-?([xy])$/,Ea,{autocomplete:["divide-(x|y)","divide-(x|y)-reverse"]}],[/^divide-?([xy])-?(.+)$/,Ea],[/^divide-?([xy])-reverse$/,function*([,e],{symbols:t}){yield{[t.selector]:ot,[`--un-divide-${e}-reverse`]:"1"},yield B(`--un-divide-${e}-reverse`,{initialValue:0})}],[new RegExp(`^divide-(${nt.join("|")})$`),function*([,e],{symbols:t}){yield{[t.selector]:ot,"border-style":e}},{autocomplete:nt.map(e=>`divide-${e}`)}]];function*Ea([,e,t],{symbols:r}){let n=C.bracket.cssvar.px(t||"1");if(n!=null){n==="0"&&(n="0px");const i={x:["-left","-right"],y:["-top","-bottom"]}[e].map(s=>{const a=s.endsWith("left")||s.endsWith("top")?`calc(${n} * var(--un-divide-${e}-reverse))`:`calc(${n} * calc(1 - var(--un-divide-${e}-reverse)))`;return[[`border${s}-width`,a],[`border${s}-style`,"var(--un-border-style)"]]});i&&(yield{[r.selector]:ot,[`--un-divide-${e}-reverse`]:0,...Object.fromEntries(i.flat())},yield B(`--un-divide-${e}-reverse`,{initialValue:0}),yield B("--un-border-style",{initialValue:"solid"}))}}const vl=["blur","brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"],bo=vl.map(e=>B(`--un-${e}`)),an=vl.map(e=>`var(--un-${e},)`).join(" "),$l=["backdrop-blur","backdrop-brightness","backdrop-contrast","backdrop-grayscale","backdrop-hue-rotate","backdrop-invert","backdrop-opacity","backdrop-saturate","backdrop-sepia"],xy=$l.map(e=>B(`--un-${e}`)),cn=$l.map(e=>`var(--un-${e},)`).join(" ");function Yn(e){let t=C.bracket.cssvar(e||"");if(t!=null||(t=e?C.percent(e):"100%",t!=null&&Number.parseFloat(t.slice(0,-1))<=100))return t}function qe(e,t){return([,r,n],{theme:o})=>{const i=t(n,o)??(n==="none"?"0":"");if(i!=="")return r?[{[`--un-${r}${e}`]:`${e}(${i})`,"-webkit-backdrop-filter":cn,"backdrop-filter":cn},...xy]:[{[`--un-${e}`]:`${e}(${i})`,filter:an},...bo]}}function Sy([,e],{theme:t}){var n;let r=(n=t.dropShadow)==null?void 0:n[e||"DEFAULT"];if(r!=null)return[{"--un-drop-shadow":`drop-shadow(${Go(r,"--un-drop-shadow-color").join(") drop-shadow(")})`,filter:an},...bo];if(r=C.bracket.cssvar(e)??(e==="none"?"":void 0),r!=null)return[{"--un-drop-shadow":r&&`drop-shadow(${r})`,filter:an},...bo]}const Ey=[[/^(?:(backdrop-)|filter-)?blur(?:-(.+))?$/,qe("blur",(e,t)=>{var r;return((r=t.blur)==null?void 0:r[e||"DEFAULT"])||C.bracket.cssvar.px(e)}),{autocomplete:["(backdrop|filter)-blur-$blur","blur-$blur","filter-blur"]}],[/^(?:(backdrop-)|filter-)?brightness-(.+)$/,qe("brightness",e=>C.bracket.cssvar.percent(e)),{autocomplete:["(backdrop|filter)-brightness-<percent>","brightness-<percent>"]}],[/^(?:(backdrop-)|filter-)?contrast-(.+)$/,qe("contrast",e=>C.bracket.cssvar.percent(e)),{autocomplete:["(backdrop|filter)-contrast-<percent>","contrast-<percent>"]}],[/^(?:filter-)?drop-shadow(?:-(.+))?$/,Sy,{autocomplete:["filter-drop","filter-drop-shadow","filter-drop-shadow-color","drop-shadow","drop-shadow-color","filter-drop-shadow-$dropShadow","drop-shadow-$dropShadow","filter-drop-shadow-color-$colors","drop-shadow-color-$colors","filter-drop-shadow-color-(op|opacity)","drop-shadow-color-(op|opacity)","filter-drop-shadow-color-(op|opacity)-<percent>","drop-shadow-color-(op|opacity)-<percent>"]}],[/^(?:filter-)?drop-shadow-color-(.+)$/,pe("--un-drop-shadow-color","drop-shadow")],[/^(?:filter-)?drop-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-drop-shadow-opacity":C.bracket.percent(e)})],[/^(?:(backdrop-)|filter-)?grayscale(?:-(.+))?$/,qe("grayscale",Yn),{autocomplete:["(backdrop|filter)-grayscale","(backdrop|filter)-grayscale-<percent>","grayscale-<percent>"]}],[/^(?:(backdrop-)|filter-)?hue-rotate-(.+)$/,qe("hue-rotate",e=>C.bracket.cssvar.degree(e))],[/^(?:(backdrop-)|filter-)?invert(?:-(.+))?$/,qe("invert",Yn),{autocomplete:["(backdrop|filter)-invert","(backdrop|filter)-invert-<percent>","invert-<percent>"]}],[/^(backdrop-)op(?:acity)?-(.+)$/,qe("opacity",e=>C.bracket.cssvar.percent(e)),{autocomplete:["backdrop-(op|opacity)","backdrop-(op|opacity)-<percent>"]}],[/^(?:(backdrop-)|filter-)?saturate-(.+)$/,qe("saturate",e=>C.bracket.cssvar.percent(e)),{autocomplete:["(backdrop|filter)-saturate","(backdrop|filter)-saturate-<percent>","saturate-<percent>"]}],[/^(?:(backdrop-)|filter-)?sepia(?:-(.+))?$/,qe("sepia",Yn),{autocomplete:["(backdrop|filter)-sepia","(backdrop|filter)-sepia-<percent>","sepia-<percent>"]}],["filter",{filter:an}],["backdrop-filter",{"-webkit-backdrop-filter":cn,"backdrop-filter":cn}],["filter-none",{filter:"none"}],["backdrop-filter-none",{"-webkit-backdrop-filter":"none","backdrop-filter":"none"}],...fe.map(e=>[`filter-${e}`,{filter:e}]),...fe.map(e=>[`backdrop-filter-${e}`,{"-webkit-backdrop-filter":e,"backdrop-filter":e}])],Cy=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:C.bracket(e)!=null?C.bracket(e).split(" ").map(t=>C.cssvar.fraction(t)??t).join(" "):C.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":C.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":C.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e])=>{const t=Fe(e);return t!=null?(te("spacing"),{"flex-basis":`calc(var(--spacing) * ${t})`}):{"flex-basis":C.bracket.cssvar.auto.fraction.rem(e)}},{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]],Ca={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Qn([,e="",t]){const r=Fe(t);return r!=null?(te("spacing"),{[`${Ca[e]}gap`]:`calc(var(--spacing) * ${r})`}):{[`${Ca[e]}gap`]:C.bracket.cssvar.global.rem(t)}}const jy=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Qn,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Qn,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Qn,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function Ie(e){return e.replace("col","column")}function Py(e){switch(e){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return C.bracket.cssvar.auto.rem(e)}const Oy=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>({[`grid-${Ie(e)}`]:C.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${Ie(e)}`]:"1/-1"};const r=C.bracket.number(t);if(r!=null)return{[`grid-${Ie(e)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${Ie(e)}-start`]:C.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${Ie(e)}-end`]:C.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t])=>({[`grid-auto-${Ie(e)}`]:Py(t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":C.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":Ie(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t])=>({[`grid-template-${Ie(e)}`]:C.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${Ie(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${Ie(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":C.cssvar(t)??t.split("-").map(r=>`"${C.bracket(r)}"`).join(" ")}:{"grid-area":C.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]],zr=["auto","hidden","clip","visible","scroll","overlay",...fe],Ry=[[/^(?:overflow|of)-(.+)$/,([,e])=>zr.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${zr.join("|")})`,`(overflow|of)-(x|y)-(${zr.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>zr.includes(t)?{[`overflow-${e}`]:t}:void 0]],Ay=[[/^line-clamp-(\d+)$/,([,e])=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e}),{autocomplete:["line-clamp","line-clamp-(1|2|3|4|5|6|none)"]}],["line-clamp-none",{overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"unset"}]],Ty=[[/^\$ placeholder-(.+)$/,pe("color","placeholder"),{autocomplete:"placeholder-$colors"}],[/^\$ placeholder-op(?:acity)?-?(.+)$/,([,e])=>({"--un-placeholder-opacity":C.bracket.percent(e)}),{autocomplete:["placeholder-(op|opacity)","placeholder-(op|opacity)-<percent>"]}]],Ny=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>fe.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],wl=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],...Z("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],...Z("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],...Z("justify-self")],Iy=[[/^order-(.+)$/,([,e])=>({order:C.bracket.cssvar.number(e)})],["order-first",{order:"calc(-infinity)"}],["order-last",{order:"calc(infinity)"}],["order-none",{order:"0"}]],kl=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],...Z("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],...Z("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],...Z("self","align-self")],_l=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],...Z("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],...Z("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],...Z("place-self")],My=[...wl,...kl,..._l].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function vo(e){const t=Fe(e);return t!=null?(te("spacing"),`calc(var(--spacing) * ${t})`):C.bracket.cssvar.global.auto.fraction.rem(e)}function Rt([,e,t]){const r=vo(t);if(r!=null&&e in pa)return pa[e].map(n=>[n.slice(1),r])}const Fy=[[/^(?:position-|pos-)?inset-(.+)$/,([,e])=>({inset:vo(e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,Rt],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Rt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Rt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Rt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Rt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t])=>({[e]:vo(t)})]],zy=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...Z("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...Z("clear")],Ly=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":C.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e])=>({"z-index":C.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],Dy=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...Z("box","box-sizing")],qy=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]],$o={shadow:B("--un-shadow",{initialValue:"0 0 #0000"}),shadowColor:B("--un-shadow-color"),insetShadow:B("--un-inset-shadow",{initialValue:"0 0 #0000"}),insetShadowColor:B("--un-inset-shadow-color"),ringColor:B("--un-ring-color"),ringShadow:B("--un-ring-shadow",{initialValue:"0 0 #0000"}),insetRingColor:B("--un-inset-ring-color"),insetRingShadow:B("--un-inset-ring-shadow",{initialValue:"0 0 #0000"}),ringInset:B("--un-ring-inset"),ringOffsetWidth:B("--un-ring-offset-width",{syntax:"<length>",initialValue:"0px"}),ringOffsetColor:B("--un-ring-offset-color"),ringOffsetShadow:B("--un-ring-offset-shadow",{initialValue:"0 0 #0000"})},Vy=[[/^shadow(?:-(.+))?$/,ja("shadow"),{autocomplete:["shadow-$colors","shadow-$shadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],[/^inset-shadow(?:-(.+))?$/,ja("insetShadow"),{autocomplete:["inset-shadow-$colors","inset-shadow-$insetShadow"]}],[/^inset-shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-inset-shadow-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}]];function ja(e){return(t,r)=>{var c;const[,n]=t,{theme:o}=r,i=(c=o[e])==null?void 0:c[n||"DEFAULT"],s=n?C.bracket.cssvar(n):void 0,a=$0(e);return(i!=null||s!=null)&&!Jo(s,o)?[{"--un-shadow":Go(i||s,`--un-${a}-color`).join(","),"box-shadow":"var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"},...Object.values($o)]:pe(`--un-${a}-color`,a)(t,r)}}const Uy=[[/^ring(?:-(.+))?$/,([,e])=>{const t=C.bracket.px(e||"1");if(t!=null)return[{"--un-ring-shadow":`var(--un-ring-inset,) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color, currentColor)`,"box-shadow":"var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"},...Object.values($o)]}],[/^ring-(.+)$/,pe("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^inset-ring(?:-(.+))?$/,([,e])=>{const t=C.bracket.px(e||"1");if(t!=null)return[{"--un-inset-ring-shadow":`inset 0 0 0 ${t} var(--un-inset-ring-color, currentColor)`,"box-shadow":"var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"},...Object.values($o)]}],[/^inset-ring-(.+)$/,pe("--un-inset-ring-color","inset-ring"),{autocomplete:"inset-ring-$colors"}],[/^inset-ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-inset-ring-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"inset-ring-(op|opacity)-<percent>"}],[/^ring-offset(?:-(.+))?$/,([,e])=>{const t=C.bracket.px(e||"1");if(t!=null)return{"--un-ring-offset-width":t,"--un-ring-offset-shadow":"var(--un-ring-inset,) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)"}},{autocomplete:"ring-offset-$colors"}],[/^ring-offset-(.+)$/,pe("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e])=>({"--un-ring-offset-width":C.bracket.cssvar.px(e)})],["ring-inset",{"--un-ring-inset":"inset"}]],Hy=[[/^snap-(x|y|both)$/,function*([,e]){yield{"scroll-snap-type":`${e} var(--un-scroll-snap-strictness)`},yield B("--un-scroll-snap-strictness",{initialValue:"proximity"})},{autocomplete:"snap-(x|y|both)"}],[/^snap-(mandatory|proximity)$/,function*([,e]){yield{"--un-scroll-snap-strictness":e},yield B("--un-scroll-snap-strictness",{initialValue:"proximity"})},{autocomplete:"snap-(mandatory|proximity)"}],["snap-none",{"scroll-snap-type":"none"}],["snap-start",{"scroll-snap-align":"start"}],["snap-end",{"scroll-snap-align":"end"}],["snap-center",{"scroll-snap-align":"center"}],["snap-align-none",{"scroll-snap-align":"none"}],["snap-normal",{"scroll-snap-stop":"normal"}],["snap-always",{"scroll-snap-stop":"always"}],[/^scroll-ma?()-?(.+)$/,le("scroll-margin"),{autocomplete:["scroll-(m|p|ma|pa|block|inline)","scroll-(m|p|ma|pa|block|inline)-$spacing","scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)","scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)-$spacing"]}],[/^scroll-m-?([xy])-?(.+)$/,le("scroll-margin")],[/^scroll-m-?([rltb])-?(.+)$/,le("scroll-margin")],[/^scroll-m-(block|inline)-(.+)$/,le("scroll-margin")],[/^scroll-m-?([bi][se])-?(.+)$/,le("scroll-margin")],[/^scroll-pa?()-?(.+)$/,le("scroll-padding")],[/^scroll-p-?([xy])-?(.+)$/,le("scroll-padding")],[/^scroll-p-?([rltb])-?(.+)$/,le("scroll-padding")],[/^scroll-p-(block|inline)-(.+)$/,le("scroll-padding")],[/^scroll-p-?([bi][se])-?(.+)$/,le("scroll-padding")]],Wy={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ft(e,t){return`${e||""}${Wy[t]}`}function Lr(e,t,r){var i;let n;const o=["container","spacing"];for(const s of o)if((i=e[s])!=null&&i[r]){te(s,r),n=ue(s,r);break}if(!n)switch(r){case"fit":case"max":case"min":n=`${r}-content`;break;case"screen":n=t==="w"?"100vw":"100vh";break}return!n&&C.number(r)!=null&&(te("spacing"),n=`calc(var(--spacing) * ${C.number(r)})`),n??C.bracket.cssvar.global.auto.none.fraction.rem(r)}const Ky=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:r})=>({[ft(e,"w")]:Lr(r,"w",t),[ft(e,"h")]:Lr(r,"h",t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ft(e,t)]:Lr(n,t,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[ft(e,t)]:Lr(n,t,r)}),{autocomplete:["(w|h)-<num>","(w|h)-(full|screen|fit|max|min)","(max|min)-(w|h)-<num>","(max|min)-(w|h)-(full|screen|fit|max|min)","(block|inline)-<num>","(block|inline)-(full|screen|fit|max|min)","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-<num>","(max|min)-(w|h|block|inline)-(full|screen|fit|max|min)"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[ft(e,t)]:Pa(n,r,"verticalBreakpoint")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[ft(e,t)]:Pa(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$breakpoint","(min|max)-h-screen-$breakpoint","w-screen-$breakpoint","(min|max)-w-screen-$breakpoint"]}]];function Pa(e,t,r="breakpoint"){var o;const n=$n(e,r);if(n)return(o=n.find(i=>i.point===t))==null?void 0:o.size}function By(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return C.bracket.cssvar.global.auto.number(e)}const Gy=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":By(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]],Jy=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","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"],Zn=["size","layout","paint","style"],Xy=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:C.bracket.cssvar.global(e)})]],Yy=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...Z("backface","backface-visibility")],Qy=[[/^cursor-(.+)$/,([,e])=>({cursor:C.bracket.cssvar.global(e)})],...Jy.map(e=>[`cursor-${e}`,{cursor:e}])],Zy=[[/^contain-(.*)$/,([,e])=>C.bracket(e)!=null?{contain:C.bracket(e).split(" ").map(t=>C.cssvar.fraction(t)??t).join(" ")}:Zn.includes(e)?[{"--un-contain-size":e,contain:Zn.map(t=>`var(--un-contain-${t})`).join(" ")},...Zn.map(t=>B(`--un-contain-${t}`))]:void 0],["contain-strict",{contain:"strict"}],["contain-content",{contain:"content"}],["contain-none",{contain:"none"}]],eb=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...Z("pointer-events")],tb=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...Z("resize")],rb=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...Z("select","user-select")],nb=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...fe].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],ob=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":C.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...Z("content-visibility")],ib=[[/^content-(.+)$/,([,e])=>{if(C.bracket.cssvar(e)!=null)return[{"--un-content":C.bracket.cssvar(e),content:"var(--un-content)"},B("--un-content",{initialValue:'""'})]}],["content-empty",{content:'""'}],["content-none",{content:"none"}]],sb=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],ab=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],cb=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],lb=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],["uppercase",{"text-transform":"uppercase"}],["lowercase",{"text-transform":"lowercase"}],["capitalize",{"text-transform":"capitalize"}],["normal-case",{"text-transform":"none"}],...Z("case","text-transform")],ub=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],fb=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],db=[...["manual","auto","none",...fe].map(e=>[`hyphens-${e}`,{"-webkit-hyphens":e,"-ms-hyphens":e,hyphens:e}])],pb=[["write-vertical-right",{"writing-mode":"vertical-rl"}],["write-vertical-left",{"writing-mode":"vertical-lr"}],["write-normal",{"writing-mode":"horizontal-tb"}],...Z("write","writing-mode")],hb=[["write-orient-mixed",{"text-orientation":"mixed"}],["write-orient-sideways",{"text-orientation":"sideways"}],["write-orient-upright",{"text-orientation":"upright"}],...Z("write-orient","text-orientation")],mb=[["sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":0}],["not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"}]],gb=[["isolate",{isolation:"isolate"}],["isolate-auto",{isolation:"auto"}],["isolation-auto",{isolation:"auto"}]],yb=[["object-cover",{"object-fit":"cover"}],["object-contain",{"object-fit":"contain"}],["object-fill",{"object-fit":"fill"}],["object-scale-down",{"object-fit":"scale-down"}],["object-none",{"object-fit":"none"}],[/^object-(.+)$/,([,e])=>{if(Oe[e])return{"object-position":Oe[e]};if(C.bracketOfPosition(e)!=null)return{"object-position":C.bracketOfPosition(e).split(" ").map(t=>C.position.fraction.auto.px.cssvar(t)??t).join(" ")}},{autocomplete:`object-(${Object.keys(Oe).join("|")})`}]],bb=[["bg-blend-multiply",{"background-blend-mode":"multiply"}],["bg-blend-screen",{"background-blend-mode":"screen"}],["bg-blend-overlay",{"background-blend-mode":"overlay"}],["bg-blend-darken",{"background-blend-mode":"darken"}],["bg-blend-lighten",{"background-blend-mode":"lighten"}],["bg-blend-color-dodge",{"background-blend-mode":"color-dodge"}],["bg-blend-color-burn",{"background-blend-mode":"color-burn"}],["bg-blend-hard-light",{"background-blend-mode":"hard-light"}],["bg-blend-soft-light",{"background-blend-mode":"soft-light"}],["bg-blend-difference",{"background-blend-mode":"difference"}],["bg-blend-exclusion",{"background-blend-mode":"exclusion"}],["bg-blend-hue",{"background-blend-mode":"hue"}],["bg-blend-saturation",{"background-blend-mode":"saturation"}],["bg-blend-color",{"background-blend-mode":"color"}],["bg-blend-luminosity",{"background-blend-mode":"luminosity"}],["bg-blend-normal",{"background-blend-mode":"normal"}],...Z("bg-blend","background-blend")],vb=[["mix-blend-multiply",{"mix-blend-mode":"multiply"}],["mix-blend-screen",{"mix-blend-mode":"screen"}],["mix-blend-overlay",{"mix-blend-mode":"overlay"}],["mix-blend-darken",{"mix-blend-mode":"darken"}],["mix-blend-lighten",{"mix-blend-mode":"lighten"}],["mix-blend-color-dodge",{"mix-blend-mode":"color-dodge"}],["mix-blend-color-burn",{"mix-blend-mode":"color-burn"}],["mix-blend-hard-light",{"mix-blend-mode":"hard-light"}],["mix-blend-soft-light",{"mix-blend-mode":"soft-light"}],["mix-blend-difference",{"mix-blend-mode":"difference"}],["mix-blend-exclusion",{"mix-blend-mode":"exclusion"}],["mix-blend-hue",{"mix-blend-mode":"hue"}],["mix-blend-saturation",{"mix-blend-mode":"saturation"}],["mix-blend-color",{"mix-blend-mode":"color"}],["mix-blend-luminosity",{"mix-blend-mode":"luminosity"}],["mix-blend-plus-lighter",{"mix-blend-mode":"plus-lighter"}],["mix-blend-normal",{"mix-blend-mode":"normal"}],...Z("mix-blend")],$b=[["min-h-dvh",{"min-height":"100dvh"}],["min-h-svh",{"min-height":"100svh"}],["min-h-lvh",{"min-height":"100lvh"}],["h-dvh",{height:"100dvh"}],["h-svh",{height:"100svh"}],["h-lvh",{height:"100lvh"}],["max-h-dvh",{"max-height":"100dvh"}],["max-h-svh",{"max-height":"100svh"}],["max-h-lvh",{"max-height":"100lvh"}]],wb=[["forced-color-adjust-auto",{"forced-color-adjust":"auto"}],["forced-color-adjust-none",{"forced-color-adjust":"none"}]],kb=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]],_b=[[/^fill-(.+)$/,pe("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,xl],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":C.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e])=>({"stroke-dashoffset":C.bracket.cssvar.px.numberWithUnit(e)})],[/^stroke-(.+)$/,xb,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function xl([,e]){return{"stroke-width":C.bracket.cssvar.fraction.px.number(e)}}function xb(e,t){return Wt(C.bracket(e[1]))?xl(e):pe("stroke","stroke")(e,t)}const Sb=[["inline-table",{display:"inline-table"}],["table",{display:"table"}],["table-caption",{display:"table-caption"}],["table-cell",{display:"table-cell"}],["table-column",{display:"table-column"}],["table-column-group",{display:"table-column-group"}],["table-footer-group",{display:"table-footer-group"}],["table-header-group",{display:"table-header-group"}],["table-row",{display:"table-row"}],["table-row-group",{display:"table-row-group"}],["border-collapse",{"border-collapse":"collapse"}],["border-separate",{"border-collapse":"separate"}],[/^border-spacing-(.+)$/,function*([,e],{theme:t}){const r=Oa(e,t);if(r!=null){yield{"--un-border-spacing-x":r,"--un-border-spacing-y":r,"border-spacing":"var(--un-border-spacing-x) var(--un-border-spacing-y)"};for(const n of["x","y"])yield B(`--un-border-spacing-${n}`,{syntax:"<length>",initialValue:"0"})}},{autocomplete:["border-spacing","border-spacing-$spacing"]}],[/^border-spacing-([xy])-(.+)$/,function*([,e,t],{theme:r}){const n=Oa(t,r);if(n!=null){yield{[`--un-border-spacing-${e}`]:n,"border-spacing":"var(--un-border-spacing-x) var(--un-border-spacing-y)"};for(const o of["x","y"])yield B(`--un-border-spacing-${o}`,{syntax:"<length>",initialValue:"0"})}},{autocomplete:["border-spacing-(x|y)","border-spacing-(x|y)-$spacing"]}],["caption-top",{"caption-side":"top"}],["caption-bottom",{"caption-side":"bottom"}],["table-auto",{"table-layout":"auto"}],["table-fixed",{"table-layout":"fixed"}],["table-empty-cells-visible",{"empty-cells":"show"}],["table-empty-cells-hidden",{"empty-cells":"hide"}]];function Oa(e,t){var n;let r=(n=t.spacing)==null?void 0:n[e];if(!r){const o=Fe(e);o!=null?(te("spacing"),r=`calc(var(--spacing) * ${o})`):r=C.bracket.cssvar.global.auto.fraction.rem(e)}return r}const eo="var(--un-pan-x) var(--un-pan-y) var(--un-pinch-zoom)",to=["pan-x","pan-y","pinch-zoom"].map(e=>B(`--un-${e}`)),Eb=[[/^touch-pan-(x|left|right)$/,function*([,e]){yield{"--un-pan-x":`pan-${e}`,"touch-action":eo};for(const t of to)yield t},{autocomplete:["touch-pan","touch-pan-(x|left|right|y|up|down)"]}],[/^touch-pan-(y|up|down)$/,function*([,e]){yield{"--un-pan-y":`pan-${e}`,"touch-action":eo};for(const t of to)yield t}],[/^touch-pinch-zoom$/,function*(){yield{"--un-pinch-zoom":"pinch-zoom","touch-action":eo};for(const e of to)yield e}],["touch-auto",{"touch-action":"auto"}],["touch-manipulation",{"touch-action":"manipulation"}],["touch-none",{"touch-action":"none"}],...Z("touch","touch-action")],Dr=["translate","rotate","scale"],Yo=["var(--un-rotate-x)","var(--un-rotate-y)","var(--un-rotate-z)","var(--un-skew-x)","var(--un-skew-y)"].join(" "),Qo=Yo,Cb=["translateZ(0)",Yo].join(" "),jb=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":Oe[e]??C.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(Oe).join("|")})`,`origin-(${Object.keys(Oe).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e],{theme:t})=>{var n;let r;if((n=t.perspective)!=null&&n[e]?(te("perspective",e),r=ue("perspective",e)):r=C.bracket.cssvar.px.numberWithUnit(e),r!=null)return{perspective:r}},{autocomplete:["transform-perspective-<num>","perspective-<num>","perspective-$perspective"]}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{const t=C.bracket.cssvar(e)??(e.length>=3?Oe[e]:void 0);if(t!=null)return{"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Ra],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ra],[/^(?:transform-)?rotate-()(.+)$/,Ta],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Ta],[/^(?:transform-)?skew-()(.+)$/,Na],[/^(?:transform-)?skew-([xy])-(.+)$/,Na,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Aa],[/^(?:transform-)?scale-([xyz])-(.+)$/,Aa,{autocomplete:[`transform-(${Dr.join("|")})-<percent>`,`transform-(${Dr.join("|")})-(x|y|z)-<percent>`,`(${Dr.join("|")})-<percent>`,`(${Dr.join("|")})-(x|y|z)-<percent>`]}],["transform-3d",{"transform-style":"preserve-3d"}],["transform-flat",{"transform-style":"flat"}],[/^transform-(border|content|fill|stroke|view)$/,([,e])=>({"transform-box":`${e}-box`})],["transform",{transform:Qo}],["transform-cpu",{transform:Yo}],["transform-gpu",{transform:Cb}],["transform-none",{transform:"none"}],...Z("transform")];function Ra([,e,t]){const r=Fe(t)??C.bracket.cssvar.none.fraction.rem(t);if(r!=null)return r==="none"?{translate:"none"}:(te("spacing"),[[...Zo(e,typeof r=="number"?`calc(var(--spacing) * ${r})`:r,"translate"),["translate",`var(--un-translate-x) var(--un-translate-y)${e==="z"?" var(--un-translate-z)":""}`,mo]],...["x","y","z"].map(n=>B(`--un-translate-${n}`,{initialValue:0}))])}function Aa([,e,t]){const r=C.bracket.cssvar.none.fraction.percent(t);if(r!=null)return r==="none"?{scale:"none"}:[[...Zo(e,r,"scale"),["scale",`var(--un-scale-x) var(--un-scale-y)${e==="z"?" var(--un-scale-z)":""}`]],...["x","y","z"].map(n=>B(`--un-scale-${n}`,{initialValue:1}))]}function Ta([,e="",t]){const r=C.bracket.cssvar.none.degree(t);if(r!=null)return r==="none"?{rotate:"none"}:e?[[...Zo(e,r.endsWith("deg")?`rotate${e.toUpperCase()}(${r})`:r,"rotate"),["transform",Qo]],...["x","y","z"].map(n=>B(`--un-rotate-${n}`,{initialValue:`rotate${n.toUpperCase()}(0)`})),...["x","y"].map(n=>B(`--un-skew-${n}`,{initialValue:`skew${n.toUpperCase()}(0)`}))]:{rotate:C.bracket.cssvar.degree(t)}}function Na([,e,t]){const r=C.bracket.cssvar.degree(t),n=tl[e];if(r!=null&&n)return[[...n.map(o=>[`--un-skew${o}`,r.endsWith("deg")?`skew${o.slice(1).toUpperCase()}(${r})`:r]),["transform",Qo]],...["x","y","z"].map(o=>B(`--un-rotate-${o}`,{initialValue:`rotate${o.toUpperCase()}(0)`})),...["x","y"].map(o=>B(`--un-skew-${o}`,{initialValue:`skew${o.toUpperCase()}(0)`}))]}function Zo(e,t,r){const n=t.split(Gm);return e||!e&&n.length===1?tl[e].map(o=>[`--un-${r}${o}`,t]):n.map((o,i)=>[`--un-${r}-${Km[i]}`,o])}function Ia(e,t){let r;if(C.cssvar(e)!=null)r=C.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));const n=e.split(",").map(o=>{var i;return((i=t.property)==null?void 0:i[o])??C.properties(o)});n.every(Boolean)&&(r=n.join(","))}return r}const Pb=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o;te("default",["transition","timingFunction"]),te("default",["transition","duration"]);const n={"transition-property":(o=r.property)==null?void 0:o.DEFAULT,"transition-timing-function":`var(--un-ease, ${ue("defaults",["transition","timingFunction"])})`,"transition-duration":`var(--un-duration, ${ue("defaults",["transition","duration"])})`};if(!e&&!t)return{...n};if(e!=null){const i=Ia(e,r);if(i)return{"--un-duration":t&&C.time(t),...n,"transition-property":i}}else if(t!=null)return{"--un-duration":C.time(t),...n}}],[/^(?:transition-)?duration-(.+)$/,([,e])=>({"--un-duration":C.bracket.cssvar.time(e),"transition-duration":C.bracket.cssvar.time(e)})],[/^(?:transition-)?delay-(.+)$/,([,e])=>({"transition-delay":C.bracket.cssvar.time(e)})],[/^(?:transition-)?ease(?:-(.+))?$/,([,e="DEFAULT"],{theme:t})=>{var n;let r;return(n=t.ease)!=null&&n[e]?(te("ease",e),r=ue("ease",e)):r=C.bracket.cssvar(e),[{"--un-ease":r,"transition-timing-function":r},B("--un-ease")]},{autocomplete:["transition-ease-(linear|in|out|in-out)","ease-(linear|in|out|in-out)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{const r=C.global(e)||Ia(e,t);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...fe].join("|")})`]}],["transition-none",{transition:"none"}],...Z("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]],Ob=[[/^text-(.+)$/,Mb,{autocomplete:"text-$text"}],[/^(?:text|font)-size-(.+)$/,Sl,{autocomplete:"text-size-$text"}],[/^text-(?:color-)?(.+)$/,Fb,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,pe("color","text")],[/^(?:text|color|c)-(.+)$/,([,e])=>fe.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${fe.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^fw-?([^-]+)$/,([,e],{theme:t})=>{var n;let r;return(n=t.fontWeight)!=null&&n[e]?(te("fontWeight",e),r=ue("fontWeight",e)):r=C.bracket.cssvar.global.number(e),{"--un-font-weight":r,"font-weight":r}},{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>{var n;let r;if((n=t.leading)!=null&&n[e]?(te("leading",e),r=ue("leading",e)):Fe(e)?(te("spacing"),r=`calc(var(--spacing) * ${Fe(e)})`):r=C.bracket.cssvar.global.rem(e),r!=null)return[{"--un-leading":r,"line-height":r},B("--un-leading")]},{autocomplete:"(leading|lh|line-height)-$leading"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":C.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var n;let r;return(n=t.tracking)!=null&&n[e]?(te("tracking",e),r=ue("tracking",e)):r=C.bracket.cssvar.global.rem(e),{"--un-tracking":r,"letter-spacing":r}},{autocomplete:"tracking-$tracking"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var n;const r=(n=t.tracking)!=null&&n[e]?ue("tracking",e):C.bracket.cssvar.global.rem(e);return{"--un-word-spacing":r,"word-spacing":r}},{autocomplete:"word-spacing-$spacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":C.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>{var n,o;let r;if((n=t.font)!=null&&n[e])return te("font",e),r=ue("font",e),{"font-family":r};if((o=t.fontWeight)!=null&&o[e])return te("fontWeight",e),r=ue("fontWeight",e),{"--un-font-weight":r,"font-weight":r};if(r=C.number(e),r!=null)return{"--un-font-weight":r,"font-weight":r};if(r=C.bracketOfFamily(e),r!=null&&C.number(r)==null)return r=C.cssvar(r)??r,{"font-family":r};if(r=C.bracketOfNumber(e),r!=null)return r=C.cssvar.number(r),{"--un-font-weight":r,"font-weight":r};if(r=C.bracket(e),r!=null&&C.number(r)!=null){const i=C.number(r);return{"--un-font-weight":i,"font-weight":i}}if(r=C.bracket.cssvar.global(e),r!=null)return{"font-family":r}},{autocomplete:["font-$font","font-$fontWeight"]}]],Rb=[[/^tab(?:-(.+))?$/,([,e])=>{const t=C.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Ab=[[/^indent-(.+)$/,([,e])=>{let t=Fe(e);if(t!=null)return te("spacing"),{"text-indent":`calc(var(--spacing) * ${t})`};if(t=C.bracket.cssvar.auto.global.rem(e),t!=null)return{"text-indent":t}}]],Tb=[[/^text-stroke(?:-(.+))?$/,([,e="DEFAULT"],{theme:t})=>{var r,n;return(r=t.textStrokeWidth)!=null&&r[e]&&te("textStrokeWidth",e),{"-webkit-text-stroke-width":(n=t.textStrokeWidth)!=null&&n[e]?ue("textStrokeWidth",e):C.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,pe("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Ma=/op(?:acity)?-/,Nb=[[/^text-shadow(?:-(.+))?$/,(e,t)=>{var i;const[r,n="DEFAULT"]=e,o=(i=t.theme.textShadow)==null?void 0:i[n];return o!=null?{"--un-text-shadow":Go(o,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:Ma.test(n)?{"--un-text-shadow-opacity":C.bracket.percent.cssvar(n.replace(Ma,""))}:pe("--un-text-shadow-color","text-shadow")(e,t)??{"text-shadow":C.bracket.cssvar.global(n)}},{autocomplete:["text-shadow-$textShadow","text-shadow(-color)?-$colors","text-shadow(-color)?-(op|opacity)-<percent>"]}],[/^text-shadow-color-(.+)$/,pe("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":C.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]],Ke=[B("--un-ordinal"),B("--un-slashed-zero"),B("--un-numeric-figure"),B("--un-numeric-spacing"),B("--un-numeric-fraction")],Be={"font-variant-numeric":"var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)"},Ib=[["ordinal",[{"--un-ordinal":"ordinal",...Be},...Ke]],["slashed-zero",[{"--un-slashed-zero":"slashed-zero",...Be},...Ke]],["lining-nums",[{"--un-numeric-figure":"lining-nums",...Be},...Ke]],["oldstyle-nums",[{"--un-numeric-figure":"oldstyle-nums",...Be},...Ke]],["proportional-nums",[{"--un-numeric-spacing":"proportional-nums",...Be},...Ke]],["tabular-nums",[{"--un-numeric-spacing":"tabular-nums",...Be},...Ke]],["diagonal-fractions",[{"--un-numeric-fraction":"diagonal-fractions",...Be},...Ke]],["stacked-fractions",[{"--un-numeric-fraction":"stacked-fractions",...Be},...Ke]],["normal-nums",[{"font-variant-numeric":"normal"}]]];function Mb([,e="base"],{theme:t}){var c,u;const r=zb(e,"length");if(!r)return;const[n,o]=r,i=(c=t.text)==null?void 0:c[n];let s;if(o&&((u=t.leading)!=null&&u[o]?(te("leading",o),s=ue("leading",o)):s=C.bracket.cssvar.global.rem(o)),i)return te("text",[n,"fontSize"]),te("text",[n,"lineHeight"]),i.letterSpacing&&te("text",[n,"letterSpacing"]),{"font-size":ue("text",[n,"fontSize"]),"line-height":s??`var(--un-leading, ${ue("text",[n,"lineHeight"])})`,"letter-spacing":i.letterSpacing?ue("text",[n,"letterSpacing"]):void 0};const a=C.bracketOfLength.rem(n);return s&&a?{"font-size":a,"line-height":s}:{"font-size":C.bracketOfLength.rem(e)}}function Sl([,e],{theme:t}){var r;if(((r=t.text)==null?void 0:r[e])!=null)return te("text",[e,"fontSize"]),te("text",[e,"lineHeight"]),{"font-size":ue("text",[e,"fontSize"]),"line-height":`var(--un-leading, ${ue("text",[e,"lineHeight"])})`};{const n=C.bracket.cssvar.global.rem(e);if(n)return{"font-size":n}}}function Fb(e,t){return Wt(C.bracket(e[1]))?Sl(e,t):pe("color","text")(e,t)}function zb(e,t){const[r,n]=Vt(e,"[","]",["/",":"])??[];if(r!=null){const o=(r.match(Ko)??[])[1];if(o==null||o===t)return[r,n]}}const Lb={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space","bg-blend":"background-blend-mode","bg-clip":"-webkit-background-clip","bg-image":"background-image","bg-origin":"background-origin","bg-position":"background-position","bg-repeat":"background-repeat","bg-size":"background-size","mix-blend":"mix-blend-mode",object:"object-fit","object-position":"object-position",write:"writing-mode","write-orient":"text-orientation"},Db=[[/^(.+?)-(\$.+)$/,([,e,t])=>{const r=Lb[e];if(r)return{[r]:C.cssvar(t)}}]],qb=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;const[r,...n]=t.split(":"),o=n.join(":");if(!Ub(t)&&/^[a-z-_]+$/i.test(r)&&Vb(o)){const i=C.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function Vb(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){const n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Ub(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}const Hb=[[/^view-transition-([\w-]+)$/,([,e])=>({"view-transition-name":e})]],Wb=[Ob,Rb,Ab,Tb,Nb,$y,vy,Kg,Wg,Qg,_a,xa,ey,ty,ry,ny,oy,_a,iy,xa,sy,hy,cy,my,Vg,Dg,yy,Cy,jy,Oy,Ky,Gy,Xy,Yy,Qy,Zy,eb,tb,rb,nb,ob,ib,sb,ab,cb,lb,ub,fb,Uy,Vy,jb,Pb,Db,qb,kl,Dy,My,zy,Fy,wl,Iy,_l,Ny,Ly,Ry,_b,Bg,Xg,db,pb,hb,wb,mb,gb,yb,bb,vb,$b,gy,Ey,Ay,Ty,Hy,Sb,Eb,Ib,Hb,wy,_y,kb,qy].flat(),Kb=`
|
|
26
|
+
/*
|
|
27
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
28
|
+
2. Remove default margins and padding
|
|
29
|
+
3. Reset all borders.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
*,
|
|
33
|
+
::after,
|
|
34
|
+
::before,
|
|
35
|
+
::backdrop,
|
|
36
|
+
::file-selector-button {
|
|
37
|
+
box-sizing: border-box; /* 1 */
|
|
38
|
+
margin: 0; /* 2 */
|
|
39
|
+
padding: 0; /* 2 */
|
|
40
|
+
border: 0 solid; /* 3 */
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
45
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
46
|
+
3. Use a more readable tab size.
|
|
47
|
+
4. Use the user's configured \`sans\` font-family by default.
|
|
48
|
+
5. Use the user's configured \`sans\` font-feature-settings by default.
|
|
49
|
+
6. Use the user's configured \`sans\` font-variation-settings by default.
|
|
50
|
+
7. Disable tap highlights on iOS.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
html,
|
|
54
|
+
:host {
|
|
55
|
+
line-height: 1.5; /* 1 */
|
|
56
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
57
|
+
tab-size: 4; /* 3 */
|
|
58
|
+
font-family: var(
|
|
59
|
+
--defaults-font-family,
|
|
60
|
+
ui-sans-serif,
|
|
61
|
+
system-ui,
|
|
62
|
+
sans-serif,
|
|
63
|
+
'Apple Color Emoji',
|
|
64
|
+
'Segoe UI Emoji',
|
|
65
|
+
'Segoe UI Symbol',
|
|
66
|
+
'Noto Color Emoji'
|
|
67
|
+
); /* 4 */
|
|
68
|
+
font-feature-settings: var(--defaults-font-featureSettings, normal); /* 5 */
|
|
69
|
+
font-variation-settings: var(--defaults-font-variationSettings, normal); /* 6 */
|
|
70
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
1. Add the correct height in Firefox.
|
|
75
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
76
|
+
3. Reset the default border style to a 1px solid border.
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
hr {
|
|
80
|
+
height: 0; /* 1 */
|
|
81
|
+
color: inherit; /* 2 */
|
|
82
|
+
border-top-width: 1px; /* 3 */
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
abbr:where([title]) {
|
|
90
|
+
-webkit-text-decoration: underline dotted;
|
|
91
|
+
text-decoration: underline dotted;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/*
|
|
95
|
+
Remove the default font size and weight for headings.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
h1,
|
|
99
|
+
h2,
|
|
100
|
+
h3,
|
|
101
|
+
h4,
|
|
102
|
+
h5,
|
|
103
|
+
h6 {
|
|
104
|
+
font-size: inherit;
|
|
105
|
+
font-weight: inherit;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/*
|
|
109
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
a {
|
|
113
|
+
color: inherit;
|
|
114
|
+
-webkit-text-decoration: inherit;
|
|
115
|
+
text-decoration: inherit;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/*
|
|
119
|
+
Add the correct font weight in Edge and Safari.
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
b,
|
|
123
|
+
strong {
|
|
124
|
+
font-weight: bolder;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/*
|
|
128
|
+
1. Use the user's configured \`mono\` font-family by default.
|
|
129
|
+
2. Use the user's configured \`mono\` font-feature-settings by default.
|
|
130
|
+
3. Use the user's configured \`mono\` font-variation-settings by default.
|
|
131
|
+
4. Correct the odd \`em\` font sizing in all browsers.
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
code,
|
|
135
|
+
kbd,
|
|
136
|
+
samp,
|
|
137
|
+
pre {
|
|
138
|
+
font-family: var(
|
|
139
|
+
--defaults-monoFont-family,
|
|
140
|
+
ui-monospace,
|
|
141
|
+
SFMono-Regular,
|
|
142
|
+
Menlo,
|
|
143
|
+
Monaco,
|
|
144
|
+
Consolas,
|
|
145
|
+
'Liberation Mono',
|
|
146
|
+
'Courier New',
|
|
147
|
+
monospace
|
|
148
|
+
); /* 1 */
|
|
149
|
+
font-feature-settings: var(--defaults-monoFont-featureSettings, normal); /* 2 */
|
|
150
|
+
font-variation-settings: var(--defaults-monoFont-variationSettings, normal); /* 3 */
|
|
151
|
+
font-size: 1em; /* 4 */
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/*
|
|
155
|
+
Add the correct font size in all browsers.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
small {
|
|
159
|
+
font-size: 80%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/*
|
|
163
|
+
Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
sub,
|
|
167
|
+
sup {
|
|
168
|
+
font-size: 75%;
|
|
169
|
+
line-height: 0;
|
|
170
|
+
position: relative;
|
|
171
|
+
vertical-align: baseline;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
sub {
|
|
175
|
+
bottom: -0.25em;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
sup {
|
|
179
|
+
top: -0.5em;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/*
|
|
183
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
184
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
185
|
+
3. Remove gaps between table borders by default.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
table {
|
|
189
|
+
text-indent: 0; /* 1 */
|
|
190
|
+
border-color: inherit; /* 2 */
|
|
191
|
+
border-collapse: collapse; /* 3 */
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/*
|
|
195
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
:-moz-focusring {
|
|
199
|
+
outline: auto;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/*
|
|
203
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
progress {
|
|
207
|
+
vertical-align: baseline;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/*
|
|
211
|
+
Add the correct display in Chrome and Safari.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
summary {
|
|
215
|
+
display: list-item;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
Make lists unstyled by default.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
ol,
|
|
223
|
+
ul,
|
|
224
|
+
menu {
|
|
225
|
+
list-style: none;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/*
|
|
229
|
+
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
230
|
+
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
231
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
img,
|
|
235
|
+
svg,
|
|
236
|
+
video,
|
|
237
|
+
canvas,
|
|
238
|
+
audio,
|
|
239
|
+
iframe,
|
|
240
|
+
embed,
|
|
241
|
+
object {
|
|
242
|
+
display: block; /* 1 */
|
|
243
|
+
vertical-align: middle; /* 2 */
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/*
|
|
247
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
img,
|
|
251
|
+
video {
|
|
252
|
+
max-width: 100%;
|
|
253
|
+
height: auto;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/*
|
|
257
|
+
1. Inherit font styles in all browsers.
|
|
258
|
+
2. Remove border radius in all browsers.
|
|
259
|
+
3. Remove background color in all browsers.
|
|
260
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
button,
|
|
264
|
+
input,
|
|
265
|
+
select,
|
|
266
|
+
optgroup,
|
|
267
|
+
textarea,
|
|
268
|
+
::file-selector-button {
|
|
269
|
+
font: inherit; /* 1 */
|
|
270
|
+
font-feature-settings: inherit; /* 1 */
|
|
271
|
+
font-variation-settings: inherit; /* 1 */
|
|
272
|
+
letter-spacing: inherit; /* 1 */
|
|
273
|
+
color: inherit; /* 1 */
|
|
274
|
+
border-radius: 0; /* 2 */
|
|
275
|
+
background-color: transparent; /* 3 */
|
|
276
|
+
opacity: 1; /* 4 */
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/*
|
|
280
|
+
Restore default font weight.
|
|
281
|
+
*/
|
|
282
|
+
|
|
283
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
284
|
+
font-weight: bolder;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/*
|
|
288
|
+
Restore indentation.
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
292
|
+
padding-inline-start: 20px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/*
|
|
296
|
+
Restore space after button.
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
::file-selector-button {
|
|
300
|
+
margin-inline-end: 4px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/*
|
|
304
|
+
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
::placeholder {
|
|
308
|
+
opacity: 1;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/*
|
|
312
|
+
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
|
313
|
+
crash when using \`color-mix(…)\` with \`currentcolor\`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
|
317
|
+
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
|
318
|
+
::placeholder {
|
|
319
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/*
|
|
324
|
+
Prevent resizing textareas horizontally by default.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
textarea {
|
|
328
|
+
resize: vertical;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/*
|
|
332
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
::-webkit-search-decoration {
|
|
336
|
+
-webkit-appearance: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/*
|
|
340
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
|
341
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
::-webkit-date-and-time-value {
|
|
345
|
+
min-height: 1lh; /* 1 */
|
|
346
|
+
text-align: inherit; /* 2 */
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/*
|
|
350
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`.
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
::-webkit-datetime-edit {
|
|
354
|
+
display: inline-flex;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/*
|
|
358
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
362
|
+
padding: 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
::-webkit-datetime-edit,
|
|
366
|
+
::-webkit-datetime-edit-year-field,
|
|
367
|
+
::-webkit-datetime-edit-month-field,
|
|
368
|
+
::-webkit-datetime-edit-day-field,
|
|
369
|
+
::-webkit-datetime-edit-hour-field,
|
|
370
|
+
::-webkit-datetime-edit-minute-field,
|
|
371
|
+
::-webkit-datetime-edit-second-field,
|
|
372
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
373
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
374
|
+
padding-block: 0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/*
|
|
378
|
+
Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
:-moz-ui-invalid {
|
|
382
|
+
box-shadow: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/*
|
|
386
|
+
Correct the inability to style the border radius in iOS Safari.
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
button,
|
|
390
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
|
391
|
+
::file-selector-button {
|
|
392
|
+
appearance: button;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/*
|
|
396
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
397
|
+
*/
|
|
398
|
+
|
|
399
|
+
::-webkit-inner-spin-button,
|
|
400
|
+
::-webkit-outer-spin-button {
|
|
401
|
+
height: auto;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/*
|
|
405
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
406
|
+
*/
|
|
407
|
+
|
|
408
|
+
[hidden]:where(:not([hidden='until-found'])) {
|
|
409
|
+
display: none !important;
|
|
410
|
+
}
|
|
411
|
+
`;function Bb(e){var t;if(((t=e.preflights)==null?void 0:t.reset)!==!1)return{getCSS:({generator:r})=>(te("font","sans"),te("font","mono"),te("default",["font","family"]),te("default",["monoFont","family"]),al(Kb,r.config.envMode==="dev")),layer:"base"}}const Gb=["spacing","breakpoint","verticalBreakpoint","shadow","insetShadow","dropShadow","textShadow","animation","property","aria","media","supports"];function Jb(e,t){const r=new Map([["--spacing",e.spacing.DEFAULT]]),n=i=>i.replace(Zc,"1");function o(i,s){for(const a in i)Array.isArray(i[a])?r.set(`--${s}-${a}`,n(i[a].join(","))):typeof i[a]=="object"?o(i[a],`${s}-${a}`):r.set(`--${s}-${a}`,n(i[a]))}for(const i in e)t.includes(i)&&o(e[i],i);return r}function Xb(e){return{layer:"theme",getCSS(t){const{theme:r,generator:n}=t,o=e.preflights.theme;if(o.mode===!1)return;let i;const s=a=>{if(o.process)for(const l of a)for(const p of ae(o.process))p(l,t);const c=a.map(([l,p])=>l&&p?`${l}: ${p};`:void 0).filter(Boolean);if(c.length===0)return;const u=c.join(`
|
|
412
|
+
`);return al(`
|
|
413
|
+
:root, :host {
|
|
414
|
+
${u}
|
|
415
|
+
}`,n.config.envMode==="dev")};if(o.mode==="on-demand"){if(ht.size===0)return;i=Array.from(ht).map(a=>{const[c,u]=a.split(":"),l=Bo(r,c,u.split("-"));if(l)return[`--${c}${`${c==="spacing"&&u==="DEFAULT"?"":`-${u}`}`}`,l]}).filter(Boolean)}else{const a=Object.keys(r).filter(c=>!Gb.includes(c));i=Array.from(Jb(r,a))}return s(i)}}}const Yb=e=>[Bb(e),Xb(e)].filter(Boolean),Qb={position:["relative","absolute","fixed","sticky","static"],globalKeyword:fe},Zb=(e={})=>{var r,n,o,i,s,a;e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.variablePrefix=e.variablePrefix??"un-",e.important=e.important??!1;const t=typeof((r=e.preflights)==null?void 0:r.theme)=="boolean"||typeof((n=e.preflights)==null?void 0:n.theme)=="string"?{mode:e.preflights.theme??"on-demand"}:{mode:((i=(o=e.preflights)==null?void 0:o.theme)==null?void 0:i.mode)??"on-demand",...(s=e.preflights)==null?void 0:s.theme};return e.preflights={reset:((a=e.preflights)==null?void 0:a.reset)??!0,theme:t},{name:Wm,rules:Wb,shortcuts:Hg,theme:Lg,layers:{properties:-200,theme:-150,base:-100},preflights:Yb(e),variants:mg(e),prefix:e.prefix,postprocess:_0(e),extractorDefault:e.arbitraryVariants===!1?void 0:Hm(),autocomplete:{shorthands:Qb},options:e,configResolved(){ht.clear()},meta:{themeDeps:ht}}},Fa={presets:[Zb({preflights:{reset:!0}}),Nm(),om({cdn:"https://cdn.jsdelivr.net/npm/"}),cm(),qp()]},El=/^[a-z0-9]+(-[a-z0-9]+)*$/,Kt=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:n,prefix:c,name:a};return t&&!Wr(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!Wr(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:i};return t&&!Wr(a,r)?null:a}return null},Wr=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Cl=Object.freeze({left:0,top:0,width:16,height:16}),ln=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vt=Object.freeze({...Cl,...ln}),wo=Object.freeze({...vt,body:"",hidden:!1});function ev(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function za(e,t){const r=ev(e,t);for(const n in wo)n in ln?n in e&&!(n in r)&&(r[n]=ln[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function tv(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(r[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=n[s]&&n[s].parent,c=a&&i(a);c&&(o[s]=[a].concat(c))}return o[s]}return Object.keys(r).concat(Object.keys(n)).forEach(i),o}function rv(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=za(n[a]||o[a],i)}return s(t),r.forEach(s),za(e,i)}function jl(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=tv(e);for(const o in n){const i=n[o];i&&(t(o,rv(e,o,i)),r.push(o))}return r}const nv={provider:"",aliases:{},not_found:{},...Cl};function ro(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Pl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ro(e,nv))return null;const r=t.icons;for(const o in r){const i=r[o];if(!o||typeof i.body!="string"||!ro(i,wo))return null}const n=t.aliases||Object.create(null);for(const o in n){const i=n[o],s=i.parent;if(!o||typeof s!="string"||!r[s]&&!n[s]||!ro(i,wo))return null}return t}const La=Object.create(null);function ov(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function mt(e,t){const r=La[e]||(La[e]=Object.create(null));return r[t]||(r[t]=ov(e,t))}function Ol(e,t){return Pl(t)?jl(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function iv(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let qt=!1;function Rl(e){return typeof e=="boolean"&&(qt=e),qt}function wn(e){const t=typeof e=="string"?Kt(e,!0,qt):e;if(t){const r=mt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function sv(e,t){const r=Kt(e,!0,qt);if(!r)return!1;const n=mt(r.provider,r.prefix);return t?iv(n,r.name,t):(n.missing.add(r.name),!0)}function av(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),qt&&!t&&!e.prefix){let o=!1;return Pl(e)&&(e.prefix="",jl(e,(i,s)=>{sv(i,s)&&(o=!0)})),o}const r=e.prefix;if(!Wr({prefix:r,name:"a"}))return!1;const n=mt(t,r);return!!Ol(n,e)}function cv(e){return!!wn(e)}function lv(e){const t=wn(e);return t&&{...vt,...t}}const Al=Object.freeze({width:null,height:null}),Tl=Object.freeze({...Al,...ln}),uv=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fv=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Da(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(uv);if(n===null||!n.length)return e;const o=[];let i=n.shift(),s=fv.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*r)/r)}else o.push(i);if(i=n.shift(),i===void 0)return o.join("");s=!s}}function dv(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),i=e.indexOf("</"+t);if(o===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;r+=e.slice(o+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function pv(e,t){return e?"<defs>"+e+"</defs>"+t:t}function hv(e,t,r){const n=dv(e);return pv(n.defs,t+n.content+r)}const mv=e=>e==="unset"||e==="undefined"||e==="none";function gv(e,t){const r={...vt,...e},n={...Tl,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(m=>{const d=[],h=m.hFlip,f=m.vFlip;let y=m.rotate;h?f?y+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):f&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let $;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:$=o.height/2+o.top,d.unshift("rotate(90 "+$.toString()+" "+$.toString()+")");break;case 2:d.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:$=o.width/2+o.left,d.unshift("rotate(-90 "+$.toString()+" "+$.toString()+")");break}y%2===1&&(o.left!==o.top&&($=o.left,o.left=o.top,o.top=$),o.width!==o.height&&($=o.width,o.width=o.height,o.height=$)),d.length&&(i=hv(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,c=o.width,u=o.height;let l,p;s===null?(p=a===null?"1em":a==="auto"?u:a,l=Da(p,c/u)):(l=s==="auto"?c:s,p=a===null?Da(l,u/c):a==="auto"?u:a);const b={},v=(m,d)=>{mv(d)||(b[m]=d.toString())};v("width",l),v("height",p);const g=[o.left,o.top,c,u];return b.viewBox=g.join(" "),{attributes:b,viewBox:g,body:i}}const yv=/\sid="(\S+)"/g,bv="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let vv=0;function $v(e,t=bv){const r=[];let n;for(;n=yv.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(i=>{const s=typeof t=="function"?t(i):t+(vv++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ko=Object.create(null);function wv(e,t){ko[e]=t}function _o(e){return ko[e]||ko[""]}function ei(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ti=Object.create(null),At=["https://api.simplesvg.com","https://api.unisvg.com"],Kr=[];for(;At.length>0;)At.length===1||Math.random()>.5?Kr.push(At.shift()):Kr.push(At.pop());ti[""]=ei({resources:["https://api.iconify.design"].concat(Kr)});function kv(e,t){const r=ei(t);return r===null?!1:(ti[e]=r,!0)}function ri(e){return ti[e]}const _v=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let qa=_v();function xv(e,t){const r=ri(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";n=r.maxURL-o-r.path.length-i.length}return n}function Sv(e){return e===404}const Ev=(e,t,r)=>{const n=[],o=xv(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(n.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=c.length),s.icons.push(c)}),n.push(s),n};function Cv(e){if(typeof e=="string"){const t=ri(e);if(t)return t.path}return"/"}const jv=(e,t,r)=>{if(!qa){r("abort",424);return}let n=Cv(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let o=503;qa(e+n).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{r(Sv(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?r("abort",i):r("next",o)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",o)})},Pv={prepare:Ev,send:jv};function Ov(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const i=o.provider,s=o.prefix,a=o.name,c=r[i]||(r[i]=Object.create(null)),u=c[s]||(c[s]=mt(i,s));let l;a in u.icons?l=t.loaded:s===""||u.missing.has(a)?l=t.missing:l=t.pending;const p={provider:i,prefix:s,name:a};l.push(p)}),t}function Nl(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function Rv(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])s.loaded.push({provider:n,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:n,prefix:o,name:u});else return r=!0,!0;return!1}),s.pending.length!==a&&(r||Nl([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let Av=0;function Tv(e,t,r){const n=Av++,o=Nl.bind(null,r,n);if(!t.pending.length)return o;const i={id:n,icons:t,callback:e,abort:o};return r.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function Nv(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const i=typeof o=="string"?Kt(o,t,r):o;i&&n.push(i)}),n}var Iv={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mv(e,t,r,n){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let w=e.resources.slice(0);for(s=[];w.length>1;){const _=Math.floor(Math.random()*w.length);s.push(w[_]),w=w.slice(0,_).concat(w.slice(_+1))}s=s.concat(w)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let c="pending",u=0,l,p=null,b=[],v=[];typeof n=="function"&&v.push(n);function g(){p&&(clearTimeout(p),p=null)}function m(){c==="pending"&&(c="aborted"),g(),b.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),b=[]}function d(w,_){_&&(v=[]),typeof w=="function"&&v.push(w)}function h(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:b.length,subscribe:d,abort:m}}function f(){c="failed",v.forEach(w=>{w(void 0,l)})}function y(){b.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),b=[]}function $(w,_,S){const j=_!=="success";switch(b=b.filter(N=>N!==w),c){case"pending":break;case"failed":if(j||!e.dataAfterTimeout)return;break;default:return}if(_==="abort"){l=S,f();return}if(j){l=S,b.length||(s.length?k():f());return}if(g(),y(),!e.random){const N=e.resources.indexOf(w.resource);N!==-1&&N!==e.index&&(e.index=N)}c="completed",v.forEach(N=>{N(S)})}function k(){if(c!=="pending")return;g();const w=s.shift();if(w===void 0){if(b.length){p=setTimeout(()=>{g(),c==="pending"&&(y(),f())},e.timeout);return}f();return}const _={status:"pending",resource:w,callback:(S,j)=>{$(_,S,j)}};b.push(_),u++,p=setTimeout(k,e.rotate),r(w,t,_.callback)}return setTimeout(k),h}function Il(e){const t={...Iv,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,c,u){const l=Mv(t,a,c,(p,b)=>{n(),u&&u(p,b)});return r.push(l),l}function i(a){return r.find(c=>a(c))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Va(){}const no=Object.create(null);function Fv(e){if(!no[e]){const t=ri(e);if(!t)return;const r=Il(t),n={config:t,redundancy:r};no[e]=n}return no[e]}function zv(e,t,r){let n,o;if(typeof e=="string"){const i=_o(e);if(!i)return r(void 0,424),Va;o=i.send;const s=Fv(e);s&&(n=s.redundancy)}else{const i=ei(e);if(i){n=Il(i);const s=e.resources?e.resources[0]:"",a=_o(s);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Va):n.query(t,o,r)().abort}function Ua(){}function Lv(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Rv(e)}))}function Dv(e){const t=[],r=[];return e.forEach(n=>{(n.match(El)?t:r).push(n)}),{valid:t,invalid:r}}function Tt(e,t,r){function n(){const o=e.pendingIcons;t.forEach(i=>{o&&o.delete(i),e.icons[i]||e.missing.add(i)})}if(r&&typeof r=="object")try{if(!Ol(e,r).length){n();return}}catch(o){console.error(o)}n(),Lv(e)}function Ha(e,t){e instanceof Promise?e.then(r=>{t(r)}).catch(()=>{t(null)}):t(e)}function qv(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const i=e.loadIcon;if(e.loadIcons&&(o.length>1||!i)){Ha(e.loadIcons(o,n,r),l=>{Tt(e,o,l)});return}if(i){o.forEach(l=>{const p=i(l,n,r);Ha(p,b=>{const v=b?{prefix:n,icons:{[l]:b}}:null;Tt(e,[l],v)})});return}const{valid:s,invalid:a}=Dv(o);if(a.length&&Tt(e,a,null),!s.length)return;const c=n.match(El)?_o(r):null;if(!c){Tt(e,s,null);return}c.prepare(r,n,s).forEach(l=>{zv(r,l,p=>{Tt(e,l.icons,p)})})}))}const Ml=(e,t)=>{const r=Nv(e,!0,Rl()),n=Ov(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,Ua)}),()=>{c=!1}}const o=Object.create(null),i=[];let s,a;return n.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===a&&u===s)return;s=u,a=l,i.push(mt(u,l));const p=o[u]||(o[u]=Object.create(null));p[l]||(p[l]=[])}),n.pending.forEach(c=>{const{provider:u,prefix:l,name:p}=c,b=mt(u,l),v=b.pendingIcons||(b.pendingIcons=new Set);v.has(p)||(v.add(p),o[u][l].push(p))}),i.forEach(c=>{const u=o[c.provider][c.prefix];u.length&&qv(c,u)}),t?Tv(t,n,i):Ua},Vv=e=>new Promise((t,r)=>{const n=typeof e=="string"?Kt(e,!0):e;if(!n){r(e);return}Ml([n||e],o=>{if(o.length&&n){const i=wn(n);if(i){t({...vt,...i});return}}r(e)})});function Uv(e,t){const r={...e};for(const n in t){const o=t[n],i=typeof o;n in Al?(o===null||o&&(i==="string"||i==="number"))&&(r[n]=o):i===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const Hv=/[\s,]+/;function Wv(e,t){t.split(Hv).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Kv(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/o,i%1===0?n(i):0)}}return t}function Bv(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function Gv(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Jv(e){return"data:image/svg+xml,"+Gv(e)}function Xv(e){return'url("'+Jv(e)+'")'}const Wa={...Tl,inline:!1},Yv={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Qv={display:"inline-block"},xo={backgroundColor:"currentColor"},Fl={backgroundColor:"transparent"},Ka={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ba={webkitMask:xo,mask:xo,background:Fl};for(const e in Ba){const t=Ba[e];for(const r in Ka)t[e+r]=Ka[r]}const Br={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Br[e+"-flip"]=t,Br[e.slice(0,1)+"-flip"]=t,Br[e+"Flip"]=t});function Ga(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ja=(e,t)=>{const r=Uv(Wa,t),n={...Yv},o=t.mode||"svg",i={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const d=t[m];if(d!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":r[m]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&Wv(r,d);break;case"color":i.color=d;break;case"rotate":typeof d=="string"?r[m]=Kv(d):typeof d=="number"&&(r[m]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete n["aria-hidden"];break;default:{const h=Br[m];h?(d===!0||d==="true"||d===1)&&(r[h]=!0):Wa[m]===void 0&&(n[m]=d)}}}const c=gv(e,r),u=c.attributes;if(r.inline&&(i.verticalAlign="-0.125em"),o==="svg"){n.style={...i,...a},Object.assign(n,u);let m=0,d=t.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),n.innerHTML=$v(c.body,d?()=>d+"ID"+m++:"iconifyVue"),ii("svg",n)}const{body:l,width:p,height:b}=e,v=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),g=Bv(l,{...u,width:p+"",height:b+""});return n.style={...i,"--svg":Xv(g),width:Ga(u.width),height:Ga(u.height),...Qv,...v?xo:Fl,...a},ii("span",n)};Rl(!0);wv("",Pv);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!av(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;kv(r,o)||console.error(n)}catch{console.error(n)}}}}const Zv={...vt,body:""};rc((e,{emit:t})=>{const r=Je(null);function n(){var u,l;r.value&&((l=(u=r.value).abort)==null||l.call(u),r.value=null)}const o=Je(!!e.ssr),i=Je(""),s=Xe(null);function a(){const u=e.icon;if(typeof u=="object"&&u!==null&&typeof u.body=="string")return i.value="",{data:u};let l;if(typeof u!="string"||(l=Kt(u,!1,!0))===null)return null;let p=wn(l);if(!p){const g=r.value;return(!g||g.name!==u)&&(p===null?r.value={name:u}:r.value={name:u,abort:Ml([l],c)}),null}n(),i.value!==u&&(i.value=u,Po(()=>{t("load",u)}));const b=e.customise;if(b){p=Object.assign({},p);const g=b(p.body,l.name,l.prefix,l.provider);typeof g=="string"&&(p.body=g)}const v=["iconify"];return l.prefix!==""&&v.push("iconify--"+l.prefix),l.provider!==""&&v.push("iconify--"+l.provider),{data:p,classes:v}}function c(){var l;const u=a();u?u.data!==((l=s.value)==null?void 0:l.data)&&(s.value=u):s.value=null}return o.value?c():jo(()=>{o.value=!0,c()}),Ye(()=>e.icon,c),Yl(n),()=>{const u=s.value;if(!u)return Ja(Zv,e);let l=e;return u.classes&&(l={...e,class:u.classes.join(" ")}),Ja({...vt,...u.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const e$=rc({__name:"App",setup(e,{expose:t}){t();const r=ou(),n=de(()=>Lt.value.find(({id:c})=>c===r.name)),o=Je(""),i=Je(""),s=de(()=>{var c;return((c=n.value)==null?void 0:c.to)&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`});Ye(n,async c=>{let u="/favicon.ico";if(c!=null&&c.icon){const l=cv(c.icon)?lv(c.icon):await Vv(c.icon);if(l){const{body:p,height:b,left:v,top:g,width:m}=l;u=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${v.toString()} ${g.toString()} ${m.toString()} ${b.toString()}">${p}</svg>`}}o.value=u}),pc({link:[[o,"icon","icon"],[s,"canonical"]].map(([c,u,l])=>({href:c,key:l,rel:u})),script:[{id:"application/ld+json",innerHTML:i,type:"application/ld+json"}]}),Vu({description:de(()=>{var c;return(c=n.value)==null?void 0:c.description}),keywords:de(()=>{var c;return(c=n.value)==null?void 0:c.keywords.join()}),ogDescription:de(()=>{var c;return(c=n.value)==null?void 0:c.description}),ogImage:de(()=>{var c;return((c=n.value)==null?void 0:c.images.filter(({url:u})=>u).map(({alt:u="",url:l})=>({alt:u,url:`${window.location.origin}/${l}`})))??[]}),ogTitle:de(()=>{var c;return(c=n.value)==null?void 0:c.title}),ogType:de(()=>{var c;return(c=n.value)==null?void 0:c.type}),ogUrl:s,title:de(()=>{var c;return(c=n.value)==null?void 0:c.title})}),Ye(()=>{var c;return(c=n.value)==null?void 0:c.jsonld},async c=>{i.value=JSON.stringify(await c)||'{"@context":"https://schema.org"}'});const a={route:r,a:n,favicon:o,jsonld:i,ogUrl:s,get pages(){return Lt}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),t$=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function r$(e,t,r,n,o,i){const s=Ql("router-view");return ai(),si(s,null,{default:Zl(({Component:a})=>{var c;return[(ai(),si(eu(a),{id:(c=n.pages[0])==null?void 0:c.id},null,8,["id"]))]}),_:1})}const n$=t$(e$,[["render",r$],["__file","App.vue"]]);var oo,Xa;function o$(){if(Xa)return oo;Xa=1;function e(s,a){for(;s.length<a;)s="0"+s;return s}function t(s,a){var c,u,l;if(a.length===0)return s;for(c=0,l=a.length;c<l;c++)u=a.charCodeAt(c),s=(s<<5)-s+u,s|=0;return s<0?s*-2:s}function r(s,a,c){return Object.keys(a).sort().reduce(u,s);function u(l,p){return n(l,a[p],p,c)}}function n(s,a,c,u){var l=t(t(t(s,c),o(a)),typeof a);if(a===null)return t(l,"null");if(a===void 0)return t(l,"undefined");if(typeof a=="object"||typeof a=="function"){if(u.indexOf(a)!==-1)return t(l,"[Circular]"+c);u.push(a);var p=r(l,a,u);if(!("valueOf"in a)||typeof a.valueOf!="function")return p;try{return t(p,String(a.valueOf()))}catch(b){return t(p,"[valueOf exception]"+(b.stack||b.message))}}return t(l,a.toString())}function o(s){return Object.prototype.toString.call(s)}function i(s){return e(n(0,s,"",[]).toString(16),8)}return oo=i,oo}var i$=o$();const s$=dn(i$),Gr=async e=>{try{const t=await fetch(e);return t.ok?t:new Response("")}catch{return new Response("")}},Nt=e=>{e.forEach(t=>{console.log(t)})},a$=async(e,{filename:t},{content:r,module:n,scoped:o=!1,src:i})=>{const{code:s,errors:a}=await uu({filename:t,id:e,modules:!!n,scoped:o,source:i?await(await Gr(i)).text():r});Nt(a),ed(s,o?{id:e}:void 0)},Ya=e=>Ge(()=>import(`data:text/javascript;base64,${btoa(Array.from(new TextEncoder().encode(e),t=>String.fromCodePoint(t)).join(""))}`),[],import.meta.url),c$=async e=>{const{descriptor:t,errors:r}=au(await(await Gr(e)).text(),{filename:e}),n={expressionPlugins:[]},o=["script","scriptSetup"],i=await Promise.all(o.map(async p=>{var g,m;const{lang:b="js",src:v}=t[p]??{};return/[jt]sx$/.test(b)&&((g=n.expressionPlugins)==null||g.push("jsx")),/tsx?$/.test(b)&&((m=n.expressionPlugins)==null||m.push("typescript")),v&&await(await Gr(v)).text()})),s=`data-v-${s$(e)}`,a="preserve",c={},u=t.styles.some(({scoped:p})=>p),{expressionPlugins:l}=n;if(Nt(r),u&&(c.__scopeId=s),t.script||t.scriptSetup){o.forEach((g,m)=>{const d=t[g];d&&i[m]!==void 0&&(d.content=i[m])});const{bindings:p,content:b,warnings:v=[]}=cu(t,{id:s,inlineTemplate:!1});Nt(v),p&&(n.bindingMetadata=p),Object.assign(c,(await Ya(l.length?ci(b,{jsxRuntime:a,transforms:l}).code:b)).default)}if(t.template){const{code:p,errors:b,tips:v}=lu({ast:t.template.ast,compilerOptions:n,filename:t.filename,id:s,scoped:u,slotted:t.slotted,source:t.template.src?await(await Gr(t.template.src)).text():t.template.content,vapor:t.vapor});Nt(b),Nt(v),Object.assign(c,await Ya(l.length?ci(p,{jsxRuntime:a,transforms:l}).code:p))}return t.styles.forEach(p=>{a$(s,t,p)}),c};let So;const{pathname:l$}=new URL(document.baseURI),gt=iu({history:su(l$),routes:[],scrollBehavior:(e,t,r)=>So&&So(e,t,r)}),Qa=de(()=>Lt.value.find(({id:e})=>e===gt.currentRoute.value.name)),u$="smooth",Za=Je(!0),un=new Map,f$=()=>{let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),reject:t,resolve:e}},ec=Je(!0),Eo=de(()=>{var e;return gt.currentRoute.value.path==="/"?(e=Qa.value)==null?void 0:e.$children[0]:Qa.value}),d$=de(()=>{var e;return((e=Eo.value)==null?void 0:e.siblings)??[]}),_$=de(()=>d$.value.filter(({enabled:e})=>e)),x$=({id:e=No()})=>(un.set(e,f$()),tu(async()=>c$(`./pages/${e}.vue`))),S$=({id:e}={})=>{var t;e&&((t=un.get(e))==null||t.resolve(void 0))},p$=({extractAll:e,toggleObserver:t})=>{So=async({name:r})=>{var n,o;if(r){Za.value=!0,t(!1);const[{promise:i}={}]=un.values();await i,await Promise.all([...un.values()].map(({promise:a})=>a)),await e(),t(!0);const s=ec.value&&{behavior:u$,...(o=(n=Eo.value)==null?void 0:n.parent)!=null&&o.flat&&Eo.value.index?{el:`#${String(r)}`}:{left:0,top:0}};return Za.value=!1,ec.value=!0,s}else return!1}};gt.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const fn=ru(n$),h$={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};fn.use(Uu());const m$=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();en.push(t),await Po(),Lt.value.forEach(({flat:r,id:n,loc:o,parent:i,path:s},a,c)=>{if(Object.defineProperties(c[a],{jsonld:h$}),s!==void 0){const u=o==null?void 0:o.replaceAll(" ","_").replace(/^\/?/,"/").replace(/\/?$/,"/");gt.addRoute({...u&&o?{alias:u}:{undefined:void 0},children:[{component:(i==null?void 0:i.flat)??r?()=>Ge(()=>import("./MultiView-Gi_5oH4O.js"),__vite__mapDeps([0,1,2]),import.meta.url):()=>Ge(()=>import("./SingleView-CxcnGccL.js"),__vite__mapDeps([3,1,2]),import.meta.url),name:n,path:""}],component:()=>Ge(()=>import("./SingleView-CxcnGccL.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:s.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),fn.provide("pages",Tp),gt.addRoute({component:()=>Ge(()=>import("./NotFoundView-CPdPVs5_.js"),__vite__mapDeps([4,1,2]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json"),t=jp(await(e.ok?e:new Response("[]")).json());Fa.presets.push(If({customFetch:Cp,fonts:t})),await Lf({defaults:Fa,ready:async r=>{const{toggleObserver:n}=r;return p$(r),await m$,fn.use(gt),fn.mount("#app"),n(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch(Ep);window.console.info("👊","VueBro","ver.: 0.3.4","https://github.com/vuebro");export{_$ as $,t$ as _,k$ as a,Za as b,Lt as c,Ep as d,Tp as e,pc as f,x$ as m,un as p,S$ as r,ec as s,Eo as t,w$ as u,No as v};
|