@vuebro/runtime 1.1.6 → 1.1.7
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 +4 -4
- package/dist/assets/{NotFoundView-D1A6sLhp.js → NotFoundView-CJkxnZFz.js} +1 -1
- package/dist/assets/{PageView-CoMJpC9g.js → PageView-9Jti-a9O.js} +1 -1
- package/dist/assets/{RootView-CtCY7Km2.js → RootView-BlcOarGZ.js} +1 -1
- package/dist/assets/{index-Ch-YzBxy.js → index-jnIwSqo7.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +4 -4
package/dist/.vite/manifest.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "sucrase"
|
|
9
9
|
},
|
|
10
10
|
"index.html": {
|
|
11
|
-
"file": "assets/index-
|
|
11
|
+
"file": "assets/index-jnIwSqo7.js",
|
|
12
12
|
"name": "index",
|
|
13
13
|
"src": "index.html",
|
|
14
14
|
"isEntry": true,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"src/views/NotFoundView.vue": {
|
|
29
|
-
"file": "assets/NotFoundView-
|
|
29
|
+
"file": "assets/NotFoundView-CJkxnZFz.js",
|
|
30
30
|
"name": "NotFoundView",
|
|
31
31
|
"src": "src/views/NotFoundView.vue",
|
|
32
32
|
"isDynamicEntry": true,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"src/views/PageView.vue": {
|
|
40
|
-
"file": "assets/PageView-
|
|
40
|
+
"file": "assets/PageView-9Jti-a9O.js",
|
|
41
41
|
"name": "PageView",
|
|
42
42
|
"src": "src/views/PageView.vue",
|
|
43
43
|
"isDynamicEntry": true,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
"src/views/RootView.vue": {
|
|
51
|
-
"file": "assets/RootView-
|
|
51
|
+
"file": "assets/RootView-BlcOarGZ.js",
|
|
52
52
|
"name": "RootView",
|
|
53
53
|
"src": "src/views/RootView.vue",
|
|
54
54
|
"isDynamicEntry": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as d,ref as c,onBeforeUnmount as a,watchEffect as p,createElementBlock as u,openBlock as f,Fragment as m,createVNode as _,createElementVNode as i,withCtx as y}from"vue";import{f as h,_ as A}from"./index-
|
|
1
|
+
import{defineComponent as d,ref as c,onBeforeUnmount as a,watchEffect as p,createElementBlock as u,openBlock as f,Fragment as m,createVNode as _,createElementVNode as i,withCtx as y}from"vue";import{f as h,_ as A}from"./index-jnIwSqo7.js";import"./sucrase-B167QcXN.js";import"vue-router";import"./compiler-sfc-CHbDt8t7.js";function l(n,e){const t=n.type,r=t==="html"?"htmlAttrs":t==="body"?"bodyAttrs":t;if(typeof r!="string"||!(r in e))return;const o=n.props||{};if(n.children){const s="children";o.children=Array.isArray(n.children)?n.children[0][s]:n[s]}Array.isArray(e[r])?e[r].push(o):r==="title"?e.title=o.children:e[r]=o}function v(n){const e={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const t of n)if(typeof t.type=="symbol"&&Array.isArray(t.children))for(const r of t.children)l(r,e);else l(t,e);return e}const N=d({name:"Head",setup(n,{slots:e}){const t=c({}),r=h(t);return a(()=>{r.dispose()}),()=>(p(()=>{e.default&&r.patch(v(e.default()))}),null)}}),b=d({__name:"NotFoundView",setup(n,{expose:e}){e();const t={get Head(){return N}};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});function x(n,e,t,r,o,s){return f(),u(m,null,[_(r.Head,null,{default:y(()=>e[0]||(e[0]=[i("title",null,"Page Not Found",-1)])),_:1,__:[0]}),e[1]||(e[1]=i("div",{class:"absolute inset-0 grid place-items-center"},[i("div",{class:"text-center"},[i("div",{class:"text-9xl"},"404"),i("p",null,"Oops. Nothing here...")])],-1))],64)}const O=A(b,[["render",x],["__file","NotFoundView.vue"]]);export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as P,ref as E,computed as i,watch as B,onUnmounted as C,createElementBlock as S,openBlock as g,Fragment as O,renderList as j,normalizeClass as R,createBlock as $,resolveDynamicComponent as z}from"vue";import{t as l,u as V,p as w,m as D,a as F,b as L,r as T,c as U,d as X,s as Y,e as q,_ as A}from"./index-
|
|
1
|
+
import{defineComponent as P,ref as E,computed as i,watch as B,onUnmounted as C,createElementBlock as S,openBlock as g,Fragment as O,renderList as j,normalizeClass as R,createBlock as $,resolveDynamicComponent as z}from"vue";import{t as l,u as V,p as w,m as D,a as F,b as L,r as T,c as U,d as X,s as Y,e as q,_ as A}from"./index-jnIwSqo7.js";import{useRoute as G,useRouter as H}from"vue-router";import"./sucrase-B167QcXN.js";import"./compiler-sfc-CHbDt8t7.js";const I=P({__name:"PageView",setup(x,{expose:b}){b();const d=E([]),t=G(),f=H(),p=i(()=>l.value?.siblings??[]),e=[],m=i(()=>p.value.filter(({enabled:o})=>o)),v=()=>{e.forEach(o=>{o()}),e.length=0},u=i(()=>l.value===void 0||l.value.parent?.flat?m.value:[l.value]),n=i(()=>new Map(u.value.map(({id:o=V()})=>[o,!1]))),_=E(new Map(n.value)),y=i(()=>{const[[o,s]=[]]=w;return w.clear(),o&&s&&w.set(o,s),Object.fromEntries(u.value.map(r=>[r.id,D(r)]))});B(d,o=>{v(),setTimeout(()=>{o.forEach(s=>{const{stop:r}=F(s,([{isIntersecting:a,target:{id:c}={}}={}]=[])=>{_.value=new Map(n.value),c&&a!==void 0&&n.value.set(c,a)},{threshold:.1});e.push(r)})})},{deep:!0}),L(window,{behavior:"smooth",onStop:()=>{if(!U.value){const{scrollX:o,scrollY:s}=window,[r]=u.value,[a]=X.value;if(a&&r){const{$children:[{id:c}={}]=[]}=a,M=!Math.floor(o)&&!Math.floor(s)&&r.id===c?a.id:[...n.value.entries()].find(([,h])=>h)?.[0]??[..._.value.entries()].find(([,h])=>h)?.[0]??r.id;M!==t.name&&(Y.value=!1,f.push({name:M}).catch(q))}}}}),C(v);const k={refs:d,route:t,router:f,siblings:p,stops:e,$siblings:m,clearStops:v,these:u,intersecting:n,$intersecting:_,templates:y,get uid(){return V},get resolve(){return T},get that(){return l}};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),J=["id","role"];function K(x,b,d,t,f,p){return g(!0),S(O,null,j(t.these,e=>(g(),S("div",{id:e.id??t.uid(),key:e.id??t.uid(),ref_for:!0,ref:"refs",class:R(e.class),role:e.id===t.that?.id?"main":"section","un-cloak":""},[(g(),$(z(t.templates[e.id]),{id:e.id,"un-cloak":"",onVnodeMounted:m=>t.resolve(e)},null,8,["id","onVnodeMounted"]))],10,J))),128)}const oe=A(I,[["render",K],["__file","PageView.vue"]]);export{oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as s,computed as a,createElementBlock as d,createCommentVNode as l,openBlock as n,normalizeClass as c,createBlock as _,resolveDynamicComponent as m}from"vue";import{d as u,m as p,r as f,u as v,_ as h}from"./index-
|
|
1
|
+
import{defineComponent as s,computed as a,createElementBlock as d,createCommentVNode as l,openBlock as n,normalizeClass as c,createBlock as _,resolveDynamicComponent as m}from"vue";import{d as u,m as p,r as f,u as v,_ as h}from"./index-jnIwSqo7.js";import"./sucrase-B167QcXN.js";import"vue-router";import"./compiler-sfc-CHbDt8t7.js";const k=s({__name:"RootView",setup(i,{expose:o}){o();const[t]=u.value,e=a(()=>t&&p(t)),r={the:t,is:e,get uid(){return v},get resolve(){return f}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),V=["id"];function x(i,o,t,e,r,C){return e.the?.enabled?(n(),d("div",{key:0,id:e.the?.id??e.uid(),class:c(e.the?.class),"un-cloak":""},[(n(),_(m(e.is),{id:e.the?.id,"un-cloak":"",onVnodeMounted:o[0]||(o[0]=b=>e.resolve(e.the))},null,8,["id"]))],10,V)):l("",!0)}const S=h(k,[["render",x],["__file","RootView.vue"]]);export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-9Jti-a9O.js","./sucrase-B167QcXN.js","./compiler-sfc-CHbDt8t7.js","./RootView-BlcOarGZ.js","./NotFoundView-CJkxnZFz.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{toValue as xe,isRef as lr,hasInjectionContext as Rd,inject as Od,ref as ct,watchEffect as Td,getCurrentInstance as oi,onBeforeUnmount as Nd,onDeactivated as Ad,onActivated as Id,reactive as ut,unref as qu,getCurrentScope as Md,onScopeDispose as zd,onMounted as si,nextTick as ii,watch as Ge,computed as ke,shallowRef as lt,readonly as qd,isReactive as Fd,defineComponent as Fu,onUnmounted as Dd,h as Ri,resolveComponent as Ld,createBlock as Oi,openBlock as Ti,withCtx as Vd,resolveDynamicComponent as Ud,defineAsyncComponent as Hd,createApp as Kd}from"vue";import{g as yr,e as Wd,t as Ni}from"./sucrase-B167QcXN.js";import{useRoute as Bd,createRouter as Gd,createWebHistory as Jd}from"vue-router";import{p as Xd,c as Yd,a as Qd,b as Zd}from"./compiler-sfc-CHbDt8t7.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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const ep="modulepreload",tp=function(e,t){return new URL(e,t).href},Ai={},Et=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let f=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");o=f(r.map(l=>{if(l=tp(l,n),l in Ai)return;Ai[l]=!0;const p=l.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(!!n)for(let g=i.length-1;g>=0;g--){const d=i[g];if(d.href===l&&(!p||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":ep,p||(v.as="script"),v.crossOrigin="",v.href=l,c&&v.setAttribute("nonce",c),document.head.appendChild(v),p)return new Promise((g,d)=>{v.addEventListener("load",g),v.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function Is(e,t={},r){for(const n in e){const o=e[n],s=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?Is(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const rp={run:e=>e()},np=()=>rp,Du=typeof console.createTask<"u"?console.createTask:np;function op(e,t){const r=t.shift(),n=Du(r);return e.reduce((o,s)=>o.then(()=>n.run(()=>s(...t))),Promise.resolve())}function sp(e,t){const r=t.shift(),n=Du(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function Go(e,t){for(const r of[...e])r(t)}class ip{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 s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!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=(...s)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...s));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=Is(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=Is(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(op,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(sp,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Go(this._before,o);const s=t(r in this._hooks?[...this._hooks[r]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&o&&Go(this._after,o)}):(this._after&&o&&Go(this._after,o),s)}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 ap(){return new ip}const cp=new Set(["link","style","script","noscript"]),lp=new Set(["title","titleTemplate","script","style","noscript"]),Ii=new Set(["base","meta","link","style","script","noscript"]),up=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),fp=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),dp=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),pp=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ai=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),hp=["name","property","http-equiv"],mp=new Set(["viewport","description","keywords","robots"]);function Lu(e){const t=e.split(":");return t.length?ai.has(t[1]):!1}function Ms(e){const{props:t,tag:r}=e;if(fp.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 hp)if(t[n]!==void 0){const o=t[n],s=o.includes(":"),i=mp.has(o),c=!(s||i)&&e.key?`:key:${e.key}`:"";return`${r}:${o}${c}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(lp.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function Mi(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 lo(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(s=>lo(s,t));if(o?.constructor===Object){const s={};for(const i of Object.keys(o))s[i]=lo(o[i],t,i);return s}return o}function gp(e,t){const r=e==="style"?new Map:new Set;function n(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(c=>c.trim());i&&a.length&&r.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>r.add(i))}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,s])=>{s&&s!=="false"&&(e==="style"?r.set(o.trim(),s):n(o))}),r}function Vu(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]=gp(r,n);return}if(dp.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),s=r.startsWith("data-");o==="true"||o===""?e.props[r]=s?o:!0:!n&&s&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function yp(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Vu({tag:e,props:{}},r);return n.key&&cp.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 bp(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,s)=>{for(let i=0;i<t.length;i++)s=t[i](o,s);return s};e=r(void 0,e);const n=[];return e=lo(e,r),Object.entries(e||{}).forEach(([o,s])=>{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])n.push(yp(o,i))}),n.flat()}const zi=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,qi={base:-10,title:10},vp={critical:-8,high:-1,low:2},Fi={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}},$p=/@import/,Bt=e=>e===""||e===!0;function wp(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=vp[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Fi;if(t.tag in qi)r=qi[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=Fi.meta[s])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?Bt(t.props.async)?r=o.script.async:t.props.src&&!Bt(t.props.defer)&&!Bt(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?r=o.script.sync:Bt(t.props.defer)&&t.props.src&&!Bt(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&$p.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function Di(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 _p(e={}){const t=ap();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,s=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:a=>Di(i,a),push(a,c){const f={...c||{}};delete f.head;const l=f._index??i._entryCount++,p={_i:l,input:a,options:f},b={_poll(y=!1){i.dirty=!0,!y&&s.add(l),t.callHook("entries:updated",i)},dispose(){n.delete(l)&&i.invalidate()},patch(y){(!f.mode||f.mode==="server"&&r||f.mode==="client"&&!r)&&(p.input=y,n.set(l,p),b._poll())}};return b.patch(a),b},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);s.size;){const b=s.values().next().value;s.delete(b);const y=n.get(b);if(y){const v={tags:bp(y.input,e.propResolvers||[]).map(g=>Object.assign(g,y.options)),entry:y};await t.callHook("entries:normalize",v),y._tags=v.tags.map((g,d)=>(g._w=wp(i,g),g._p=(y._i<<10)+d,g._d=Ms(g),g))}}let c=!1;a.entries.flatMap(b=>(b._tags||[]).map(y=>({...y,props:{...y.props}}))).sort(zi).reduce((b,y)=>{const v=String(y._d||y._p);if(!b.has(v))return b.set(v,y);const g=b.get(v);if((y?.tagDuplicateStrategy||(pp.has(y.tag)?"merge":null)||(y.key&&y.key===g.key?"merge":null))==="merge"){const m={...g.props};Object.entries(y.props).forEach(([u,h])=>m[u]=u==="style"?new Map([...g.props.style||new Map,...h]):u==="class"?new Set([...g.props.class||new Set,...h]):h),b.set(v,{...y,props:m})}else y._p>>10===g._p>>10&&y.tag==="meta"&&Lu(v)?(b.set(v,Object.assign([...Array.isArray(g)?g:[g],y],y)),c=!0):(y._w===g._w?y._p>g._p:y?._w<g?._w)&&b.set(v,y);return b},a.tagMap);const f=a.tagMap.get("title"),l=a.tagMap.get("titleTemplate");if(i._title=f?.textContent,l){const b=l?.textContent;if(i._titleTemplate=b,b){let y=typeof b=="function"?b(f?.textContent):b;typeof y=="string"&&!i.plugins.has("template-params")&&(y=y.replace("%s",f?.textContent||"")),f?y===null?a.tagMap.delete("title"):a.tagMap.set("title",{...f,textContent:y}):(l.tag="title",l.textContent=y)}}a.tags=Array.from(a.tagMap.values()),c&&(a.tags=a.tags.flat().sort(zi)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const p=[];for(const b of a.tags){const{innerHTML:y,tag:v,props:g}=b;if(up.has(v)&&!(Object.keys(g).length===0&&!b.innerHTML&&!b.textContent)&&!(v==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(v==="script"&&y){if(g.type?.endsWith("json")){const d=typeof y=="string"?y:JSON.stringify(y);b.innerHTML=d.replace(/</g,"\\u003C")}else typeof y=="string"&&(b.innerHTML=y.replace(new RegExp(`</${v}`,"g"),`<\\/${v}`));b._d=Ms(b)}p.push(b)}}return p},invalidate(){for(const a of n.values())s.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>Di(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}async function Uu(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=>{const s=new Map,i=new Promise(y=>{e.resolveTags().then(v=>{y(v.map(g=>{const d=s.get(g._d)||0,m={tag:g,id:(d?`${g._d}:${d}`:g._d)||Mi(g),shouldRender:!0};return g._d&&Lu(g._d)&&s.set(g._d,d+1),m}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const y of["body","head"]){const v=r[y]?.children;for(const g of v){const d=g.tagName.toLowerCase();if(!Ii.has(d))continue;const m=Vu({tag:d,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((u,h)=>(u[h]=g.getAttribute(h),u),{})||{}});if(m.key=g.getAttribute("data-hid")||void 0,m._d=Ms(m)||Mi(m),a.elMap.has(m._d)){let u=1,h=m._d;for(;a.elMap.has(h);)h=`${m._d}:${u++}`;a.elMap.set(h,g)}else a.elMap.set(m._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(y,v,g){const d=`${y}:${v}`;a.sideEffects[d]=g,delete a.pendingSideEffects[d]}function f({id:y,$el:v,tag:g}){const d=g.tag.endsWith("Attrs");a.elMap.set(y,v),d||(g.textContent&&g.textContent!==v.textContent&&(v.textContent=g.textContent),g.innerHTML&&g.innerHTML!==v.innerHTML&&(v.innerHTML=g.innerHTML),c(y,"el",()=>{v?.remove(),a.elMap.delete(y)}));for(const m in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,m))continue;const u=g.props[m];if(m.startsWith("on")&&typeof u=="function"){const _=v?.dataset;if(_&&_[`${m}fired`]){const $=m.slice(0,-5);u.call(v,new Event($.substring(2)))}v.getAttribute(`data-${m}`)!==""&&((g.tag==="bodyAttrs"?r.defaultView:v).addEventListener(m.substring(2),u.bind(v)),v.setAttribute(`data-${m}`,""));continue}const h=`attr:${m}`;if(m==="class"){if(!u)continue;for(const _ of u)d&&c(y,`${h}:${_}`,()=>v.classList.remove(_)),!v.classList.contains(_)&&v.classList.add(_)}else if(m==="style"){if(!u)continue;for(const[_,$]of u)c(y,`${h}:${_}`,()=>{v.style.removeProperty(_)}),v.style.setProperty(_,$)}else u!==!1&&u!==null&&(v.getAttribute(m)!==u&&v.setAttribute(m,u===!0?"":String(u)),d&&c(y,h,()=>v.removeAttribute(m)))}}const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},b=await i;for(const y of b){const{tag:v,shouldRender:g,id:d}=y;if(g){if(v.tag==="title"){r.title=v.textContent,c("title","",()=>r.title=a.title);continue}y.$el=y.$el||a.elMap.get(d),y.$el?f(y):Ii.has(v.tag)&&l.push(y)}}for(const y of l){const v=y.tag.tagPosition||"head";y.$el=r.createElement(y.tag.tag),f(y),p[v]=p[v]||r.createDocumentFragment(),p[v].appendChild(y.$el)}for(const y of b)await e.hooks.callHook("dom:renderTag",y,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 y in a.pendingSideEffects)a.pendingSideEffects[y]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:b}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function kp(e={}){const t=e.domOptions?.render||Uu;e.document=e.document||(typeof window<"u"?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return _p({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function Sp(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}const fr={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"])},Ep={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"},Hu={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${rt(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"?rt(e):`${rt(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${rt(e)} ${t}`}},charset:{}};function rt(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return r===-1?t:fr.META.has(t.slice(0,r))||fr.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Ku(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function zs(e){return Array.isArray(e)?e.map(zs):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[rt(t),zs(r)]))}function Wu(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:o,resolve:s}=t;return Object.entries(e).map(([i,a])=>{if(s){const f=s({key:i,value:a});if(f!==void 0)return f}const c=typeof a=="object"?Wu(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${n}${c}`}).join(r)}function Li(e,t){const r=Ku(t),n=rt(e),o=Bu(n);if(!ai.has(n))return[{[o]:n,...r}];const s=Object.fromEntries(Object.entries(r).map(([i,a])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,a]));return uo(s||{}).sort((i,a)=>(i[o]?.length||0)-(a[o]?.length||0))}function Bu(e){if(Hu[e]?.metaKey==="http-equiv"||fr.HTTP_EQUIV.has(e))return"http-equiv";const t=rt(e),r=t.indexOf(":");return r===-1?"name":fr.OG.has(t.slice(0,r))?"property":"name"}function xp(e){return Ep[e]||rt(e)}function Pp(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:Wu(zs(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:r,key:n})=>r===null?"":typeof r=="boolean"?n:void 0,...Hu[t]?.unpack})}function uo(e){const t=[],r={};for(const[o,s]of Object.entries(e)){if(Array.isArray(s)){if(o==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const a=[],c=[];for(const[f,l]of Object.entries(i)){const p=`${o}${f==="url"?"":`:${f}`}`,b=uo({[p]:l});(f==="url"?a:c).push(...b)}t.push(...a,...c)}else t.push(...typeof i=="string"?uo({[o]:i}):Li(o,i));continue}if(typeof s=="object"&&s)if(fr.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),c=i==="twitter"?"name":"property";s.url&&t.push({[c]:`${i}:${a}`,content:s.url}),s.secureUrl&&t.push({[c]:`${i}:${a}:secure_url`,content:s.secureUrl});for(const[f,l]of Object.entries(s))f!=="url"&&f!=="secureUrl"&&t.push({[c]:`${i}:${a}:${f}`,content:l})}else ai.has(rt(o))?t.push(...Li(o,s)):r[o]=Ku(s);else r[o]=s}const n=Object.entries(r).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=Bu(o),a=xp(o),c=s===null?"_null":typeof s=="object"?Pp(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:c}:{[i]:a,content:c}});return[...t,...n].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Cp={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(uo(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},jp=(e,t)=>lr(t)?xe(t):t,Gu="usehead";function Rp(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(Gu,e)}}.install}function Ju(){if(Rd()){const e=Od(Gu);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 Xu(e,t={}){const r=t.head||Ju();return r.ssr?r.push(e||{},t):Op(r,e,t)}function Op(e,t,r={}){const n=ct(!1);let o;return Td(()=>{const i=n.value?{}:lo(t,jp);o?o.patch(i):o=e.push(i,r)}),oi()&&(Nd(()=>{o.dispose()}),Ad(()=>{n.value=!0}),Id(()=>{n.value=!1})),o}function Tp(e={},t={}){(t.head||Ju()).use(Cp);const{title:n,titleTemplate:o,...s}=e;return Xu({title:n,titleTemplate:o,_flatMeta:s},t)}function Np(e={}){const t=kp({domOptions:{render:Sp(()=>Uu(t),r=>setTimeout(r,0))},...e});return t.install=Rp(t),t}const to="default",qs="preflights",Ap="shortcuts",Yu="imports",Ip={[Yu]:-200,[qs]:-100,[Ap]:-10,[to]:0},Qu=/[\\:]?[\s'"`;{}]+/g;function Mp(e){return e.split(Qu)}const zp={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Mp(e)}};function ge(e=[]){return Array.isArray(e)?e:[e]}function Be(e){return Array.from(new Set(e))}function Vi(e,t){return e.reduce((r,n)=>(r.findIndex(s=>t(n,s))===-1&&r.push(n),r),[])}function ve(e){return typeof e=="string"}class Zu extends Set{_map=new Map;constructor(t){if(super(),t)for(const r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}}function Jo(e){return e instanceof Zu}function dr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(e){const t=e.length;let r=-1,n,o="";const s=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&&s===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 Xo=zt;function qp(){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 Fp=/^\[(.+?)~?="(.*)"\]$/,Dp=/[\w\u00A0-\uFFFF%-?]/;function Lp(e){return e.match(Fp)}function Fs(e=""){return Dp.test(e)}function Vp(e){return typeof e=="function"?{match:e}:e}function Ui(e){return e.length===3}function ro(e){return e!=null}function Up(){}class Hp{_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){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.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,s])=>t(s,r,o)))}}class Kp 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 fo(e){return ve(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Wp(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>fo(t)):[e]:[fo(e)]}function Bp(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 Yo(e){return e==null?"":Bp(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function kr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function jo(e,t,r=!1){const n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];const s={...n};return kr(n)&&kr(o)&&Object.keys(o).forEach(i=>{kr(n[i])&&kr(o[i])||Array.isArray(n[i])&&Array.isArray(o[i])?s[i]=jo(n[i],o[i],r):Object.assign(s,{[i]:o[i]})}),s}function no(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"?no(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:no(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?no(n):n;return r}return e}function Gp(e){return ve(e[0])}function Jp(e){return ve(e[0])}const Sr={};function Xp(e=["-",":"]){const t=e.join("|");return Sr[t]||(Sr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Sr[t].lastIndex=0,Sr[t]}function Yp(e,t=["-",":"],r=5){const n=Xp(t);let o,s=e.toString();const i=new Set,a=new Map;do o=!1,s=s.replace(n,(f,l,p,b,y)=>{if(!t.includes(p))return f;o=!0,i.add(l+p);const v=y+l.length+p.length+1,g={length:f.length,items:[]};a.set(y,g);for(const d of[...b.matchAll(/\S+/g)]){const m=v+d.index;let u=a.get(m)?.items;u?a.delete(m):u=[{offset:m,length:d[0].length,className:d[0]}];for(const h of u)h.className=h.className==="~"?l:h.className.replace(/^(!?)(.*)/,`$1${l}${p}$2`),g.items.push(h)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(const[l,p]of a)c+=e.slice(f,l),c+=p.items.map(b=>b.className).join(" "),f=l+p.length;c+=e.slice(f)}else{c=e;for(const[f,l]of a)c.overwrite(f,f+l.length,l.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(i),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Qp(e,t=["-",":"],r=5){const n=Yp(e,t,r);return typeof e=="string"?n.expanded:e}const Hi=new Set;function ef(e){Hi.has(e)||(console.warn("[unocss]",e),Hi.add(e))}function tf(e){return ge(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const Ki="_uno_resolved";async function Zp(e){let t=typeof e=="function"?await e():await e;if(Ki in t)return t;t={...t},Object.defineProperty(t,Ki,{value:!0,enumerable:!1});const r=t.shortcuts?tf(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){const n=o=>{o[2]||(o[2]={});const s=o[2];s.prefix==null&&t.prefix&&(s.prefix=ge(t.prefix)),s.layer==null&&t.layer&&(s.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function rf(e){const t=await Zp(e);if(!t.presets)return[t];const r=(await Promise.all((t.presets||[]).flatMap(ge).flatMap(rf))).flat();return[t,...r]}function eh(e){if(e.length===0)return{};const t=[],r=[];let n=!1;const o=[],s=[];for(const a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&s.push(a.inline)}const i={pipeline:n?!1:{include:Be(Bi(...t)),exclude:Be(Bi(...r))}};return o.length&&(i.filesystem=Be(o.flat())),s.length&&(i.inline=Be(s.flat())),i}async function Wi(e={},t={}){const r=Object.assign({},t,e),n=Vi((await Promise.all((r.presets||[]).flatMap(ge).flatMap(rf))).flat(),($,k)=>$.name===k.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],s=[...o,r],i=[...s].reverse(),a=Object.assign({},Ip,...s.map($=>$.layers));function c($){return Be(s.flatMap(k=>ge(k[$]||[])))}const f=c("extractors");let l=i.find($=>$.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=zp),l&&!f.includes(l)&&f.unshift(l),f.sort(($,k)=>($.order||0)-(k.order||0));const p=c("rules"),b={},y=p.length,v=p.filter($=>Gp($)?(ge($[2]?.prefix||"").forEach(S=>{b[S+$[0]]=$}),!1):!0).reverse(),g={templates:Be(s.flatMap($=>ge($.autocomplete?.templates))),extractors:s.flatMap($=>ge($.autocomplete?.extractors)).sort(($,k)=>($.order||0)-(k.order||0)),shorthands:rh(s.map($=>$.autocomplete?.shorthands||{}))};let d=c("separators");d.length||(d=[":","-"]);const m=c("content"),u=eh(m),h={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:th(s.map($=>$.theme)),rules:p,rulesSize:y,rulesDynamic:v,rulesStaticMap:b,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:g,variants:c("variants").map(Vp).sort(($,k)=>($.order||0)-(k.order||0)),shortcuts:tf(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:d,details:r.details??r.envMode==="dev",content:u,transformers:Vi(c("transformers"),($,k)=>$.name===k.name)},_=c("extendTheme");for(const $ of _)h.theme=$(h.theme,h)||h.theme;for(const $ of s)$?.configResolved?.(h);return h}function th(e){return e.map(t=>t?no(t):{}).reduce((t,r)=>jo(t,r),{})}function rh(e){return e.reduce((t,r)=>{const n={};for(const o in r){const s=r[o];Array.isArray(s)?n[o]=`(${s.join("|")})`:n[o]=s}return{...t,...n}},{})}function Bi(...e){return e.flatMap(nh)}function nh(e){return Array.isArray(e)?e:e?[e]:[]}const oh="66.3.3",Pe={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 ci{constructor(t={},r={}){this.userConfig=t,this.defaults=r}version=oh;events=qp();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){const n=new ci(t,r);return n.config=await Wi(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 Wi(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){const o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(const s of this.config.extractors){const i=await s.extract?.(o);if(i)if(Jo(i)&&Jo(n))for(const a of i)n.setCount(a,n.getCount(a)+i.getCount(a));else for(const a of i)n.add(a)}return n}makeContext(t,r){const n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Pe,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);const o=this.config.preprocess.reduce((c,f)=>f(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}const s=await this.matchVariants(t,o);if(s.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}const i=async c=>{const f=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const l=await this.expandShortcut(f.currentSelector,f);return l?await this.stringifyShortcuts(f.variantMatch,f,l[0],l[1]):(await this.parseUtil(f.variantMatch,f))?.map(b=>this.stringifyUtil(b,f)).filter(ro)},a=(await Promise.all(s.map(c=>i(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){const{id:n,scope:o,preflights:s=!0,safelist:i=!0,minify:a=!1,extendedInfo:c=!1}=r,f=ve(t)?await this.applyExtractors(t,n,c?new Zu:new Set):Array.isArray(t)?new Set(t):t;if(i){const S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(P=>typeof P=="function"?P(S):P).forEach(P=>{const O=P.trim();O&&!f.has(O)&&f.add(O)})}const l=a?"":`
|
|
3
3
|
`,p=new Set([to]),b=c?new Map:new Set,y=new Map;let v={};const g=Array.from(f).map(async S=>{if(b.has(S))return;const P=await this.parseToken(S);if(P!=null){b instanceof Map?b.set(S,{data:P,count:Jo(f)?f.getCount(S):-1}):b.add(S);for(const O of P){const q=O[3]||"",M=O[4]?.layer;y.has(q)||y.set(q,[]),y.get(q).push(O),M&&p.add(M)}}});await Promise.all(g),await(async()=>{if(!s)return;const S={generator:this,theme:this.config.theme},P=new Set([]);this.config.preflights.forEach(({layer:O=qs})=>{p.add(O),P.add(O)}),v=Object.fromEntries(await Promise.all(Array.from(P).map(async O=>{const M=(await Promise.all(this.config.preflights.filter(L=>(L.layer||qs)===O).map(async L=>await L.getCSS(S)))).filter(Boolean).join(l);return[O,M]})))})();const d=this.config.sortLayers(Array.from(p).sort((S,P)=>(this.config.layers[S]??0)-(this.config.layers[P]??0)||S.localeCompare(P))),m={},u=this.config.outputToCssLayers,h=S=>{let P=S;return typeof u=="object"&&(P=u.cssLayerName?.(S)),P===null?null:P??S},_=(S=to)=>{if(m[S])return m[S];let P=Array.from(y).sort((M,L)=>(this.parentOrders.get(M[0])??0)-(this.parentOrders.get(L[0])??0)||M[0]?.localeCompare(L[0]||"")||0).map(([M,L])=>{const D=L.length,V=L.filter(B=>(B[4]?.layer||to)===S).sort((B,ee)=>B[0]-ee[0]||(B[4]?.sort||0)-(ee[4]?.sort||0)||B[5]?.currentSelector?.localeCompare(ee[5]?.currentSelector??"")||B[1]?.localeCompare(ee[1]||"")||B[2]?.localeCompare(ee[2]||"")||0).map(([,B,ee,,z,,C])=>[[[(B&&ah(B,o))??"",z?.sort??0]],ee,!!(C??z?.noMerge)]);if(!V.length)return;const W=V.reverse().map(([B,ee,z],C)=>{if(!z&&this.config.mergeSelectors)for(let R=C+1;R<D;R++){const w=V[R];if(w&&!w[2]&&(B&&w[0]||B==null&&w[0]==null)&&w[1]===ee)return B&&w[0]&&w[0].push(...B),null}const A=B?Be(B.sort((R,w)=>R[1]-w[1]||R[0]?.localeCompare(w[0]||"")||0).map(R=>R[0]).filter(Boolean)):[];return A.length?`${A.join(`,${l}`)}{${ee}}`:ee}).filter(Boolean),Q=Array.from(new Set(W)).reverse().join(l);if(!M)return Q;const Z=M.split(" $$ ");return`${Z.join("{")}{${l}${Q}${l}${"}".repeat(Z.length)}`}).filter(Boolean).join(l);s&&(P=[v[S],P].filter(Boolean).join(l));let O;u&&P&&(O=h(S),O!==null&&(P=`@layer ${O}{${l}${P}${l}}`));const q=a?"":`/* layer: ${S}${O&&O!==S?`, alias: ${O}`:""} */${l}`;return m[S]=P?q+P:""},$=(S=d,P)=>{const O=S.filter(q=>!P?.includes(q));return[u&&O.length>0?`@layer ${O.map(h).filter(ro).join(", ")};`:void 0,...O.map(q=>_(q)||"")].filter(Boolean).join(l)};return{get css(){return $()},layers:d,matched:b,getLayers:$,getLayer:_,setLayer:async(S,P)=>{const O=await P(_(S));return m[S]=O,O}}}async matchVariants(t,r){const n={rawSelector:t,theme:this.config.theme,generator:this},o=async s=>{let i=!0;const[,,a,c]=s;for(;i;){i=!1;const f=s[1];for(const l of this.config.variants){if(!l.multiPass&&c.has(l))continue;let p=await l.match(f,n);if(p){if(ve(p)){if(p===f)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(y=>{const v=y.matcher??f,g=[y,...a],d=new Set(c);return d.add(l),[s[0],v,g,d]});return(await Promise.all(b.map(y=>o(y)))).flat()}}s[1]=p.matcher??f,a.unshift(p),c.add(l),i=!0;break}}if(!i)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[s]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){const s=r.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>p=>{const b=l.body?.(p.entries)||p.entries,y=Array.isArray(l.parent)?l.parent:[l.parent,void 0],v=l.selector?.(p.selector,b);return(l.handle??ch)({...p,entries:b,selector:v||p.selector,parent:y[0]||p.parent,parentOrder:y[1]||p.parentOrder,layer:l.layer||p.layer,sort:l.sort||p.sort},f)},f=>f)({prefix:"",selector:of(n),pseudo:"",entries:t[2]}),{parent:i,parentOrder:a}=s;i!=null&&a!=null&&this.parentOrders.set(i,a);const c={selector:[s.prefix,s.selector,s.pseudo].join(""),entries:s.entries,parent:i,layer:s.layer,sort:s.sort,noMerge:s.noMerge};for(const f of this.config.postprocess)f(c);return c}constructCustomCSS(t,r,n){const o=fo(r);if(ve(o))return o;const{selector:s,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${s}{${Yo(i)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){const s=ve(t)?await this.matchVariants(t):[t],i=async([c,f,l])=>{this.config.details&&(r.rules=r.rules??[]);const p={...r,variantHandlers:l},b=this.config.rulesStaticMap[f];if(b&&b[1]&&(n||!b[2]?.internal))return this.resolveCSSResult(c,b[1],b,p);for(const y of this.config.rulesDynamic){const[v,g,d]=y;if(d?.internal&&!n)continue;let m=f;if(d?.prefix){const $=ge(d.prefix);if(o){const k=ge(o);if(!$.some(S=>k.includes(S)))continue}else{const k=$.find(S=>f.startsWith(S));if(k==null)continue;m=f.slice(k.length)}}const u=m.match(v);if(!u)continue;let h=await g(u,p);if(!h)continue;if(typeof h!="string")if(Symbol.asyncIterator in h){const $=[];for await(const k of h)k&&$.push(k);h=$}else Symbol.iterator in h&&!Array.isArray(h)&&(h=Array.from(h).filter(ro));const _=this.resolveCSSResult(c,h,y,p);if(_)return _}},a=(await Promise.all(s.map(c=>i(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{const s=Wp(r).filter(i=>i.length);if(s.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);const i=o.generator.config.rules.indexOf(n),a=n[2];return s.map(c=>{if(ve(c))return[i,c,a];let f=o.variantHandlers,l=a;for(const p of c)p[0]===Pe.variants?typeof p[1]=="function"?f=p[1](f)||f:f=[...ge(p[1]),...f]:p[0]===Pe.parent?f=[{parent:p[1]},...f]:p[0]===Pe.selector?f=[{selector:p[1]},...f]:p[0]===Pe.layer?f=[{layer:p[1]},...f]:p[0]===Pe.sort?l={...l,sort:p[1]}:p[0]===Pe.noMerge&&(l={...l,noMerge:p[1]});return[i,t,c,l,f]})}};stringifyUtil(t,r){if(!t)return;if(Ui(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:s,layer:i,sort:a,noMerge:c}=this.applyVariants(t),f=Yo(o);if(!f)return;const{layer:l,sort:p,...b}=t[3]??{},y={...b,layer:i??l,sort:a??p};return[t[0],n,f,s,y,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;const o=this.config.details?f=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(f)}:Up;let s,i,a,c;for(const f of this.config.shortcuts){let l=t;if(f[2]?.prefix){const b=ge(f[2].prefix).find(y=>t.startsWith(y));if(b==null)continue;l=t.slice(b.length)}if(Jp(f)){if(f[0]===l){s=s||f[2],i=f[1],o(f);break}}else{const p=l.match(f[0]);if(p&&(i=f[1](p,r)),i){s=s||f[2],o(f);break}}}if(i&&(a=Be(ge(i).filter(ve).map(f=>Qp(f.trim()).split(/\s+/g)).flat()),c=ge(i).filter(f=>!ve(f)).map(f=>({handles:[],value:f}))),!i){const f=ve(t)?await this.matchVariants(t):[t];for(const l of f){const[p,b,y]=l;if(p!==b){const v=await this.expandShortcut(b,r,n-1);v&&(a=v[0].filter(ve).map(g=>p.replace(b,g)),c=v[0].filter(g=>!ve(g)).map(g=>({handles:[...g.handles,...y],value:g.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(ge(a).map(async f=>(await this.expandShortcut(f,r,n-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),s]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){const s=new Kp,i=(await Promise.all(Be(n).map(async l=>{const p=ve(l)?await this.parseUtil(l,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",fo(l.value),void 0,l.handles]];return!p&&this.config.warn&&ef(`unmatched utility "${l}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((l,p)=>l[0]-p[0]),[a,,c]=t,f=[];for(const l of i){if(Ui(l)){f.push([l[0],void 0,l[1],void 0,l[2],r,void 0]);continue}const{selector:p,entries:b,parent:y,sort:v,noMerge:g,layer:d}=this.applyVariants(l,[...l[4],...c],a);s.getFallback(d??o.layer,new Hp).getFallback(p,y,[[],l[0]])[0].push([b,!!(g??l[3]?.noMerge),v??0])}return f.concat(s.flatMap((l,p)=>l.map(([b,y],v,g)=>{const d=(u,h,_)=>{const $=Math.max(..._.map(S=>S[1])),k=_.map(S=>S[0]);return(u?[k.flat(1)]:k).map(S=>{const P=Yo(S);if(P)return[y,v,P,g,{...o,noMerge:h,sort:$,layer:p},r,void 0]})};return[[b.filter(([,u])=>u).map(([u,,h])=>[u,h]),!0],[b.filter(([,u])=>!u).map(([u,,h])=>[u,h]),!1]].map(([u,h])=>[...d(!1,h,u.filter(([_])=>_.some($=>$[0]===Pe.shortcutsNoMerge))),...d(!0,h,u.filter(([_])=>_.every($=>$[0]!==Pe.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):ve(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):ve(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}}async function sh(e,t){return await ci.create(e,t)}const nf=/\s\$\$\s+/g;function ih(e){return nf.test(e)}function ah(e,t){return ih(e)?e.replace(nf,t?` ${t} `:" "):t?`${t} ${e}`:e}const Gi=/^\[(.+?)(~?=)"(.*)"\]$/;function of(e){return Gi.test(e)?e.replace(Gi,(t,r,n,o)=>`[${Xo(r)}${n}"${Xo(o)}"]`):`.${Xo(e)}`}function ch(e,t){return t(e)}var lh={};function uh(e,t){return{name:e,getImportUrl(r){const n=r.map(o=>{const{name:s,weights:i,italic:a}=o,c=s.toLowerCase().replace(/\s/g,"-");if(!i?.length)return`${c}${a?":i":""}`;let f=i.map(p=>p.toString());return!f.some(p=>p.endsWith("i"))&&a&&(f=f.map(p=>p+="i")),`${c}:${f.join(",")}`});return`${t}/css?family=${n.join("|")}&display=swap`}}}const fh=uh("bunny","https://fonts.bunny.net");function dh(e,t){return{name:e,getImportUrl(r){const n=s=>{const i=s.map(c=>c[0]),a=s.map(c=>c[1]);return`${i.join(";")};${a.join(";")}`},o=r.map(s=>{let i=s.name.replace(/\s+/g,"+");return s.weights?.length&&(i+=s.italic?`:ital,wght@${n(s.weights.map(a=>[`0,${a}`,`1,${a}`]))}`:`:wght@${s.weights.join(";")}`),`family=${i}`}).join("&");return`${t}/css2?${o}&display=swap`}}}const ph=dh("coollabs","https://api.fonts.coollabs.io"),hh=mh("fontshare","https://api.fontshare.com");function mh(e,t){return{name:e,getImportUrl(r){const n=r.map(o=>{let s=o.name.replace(/\s+/g,"-").toLocaleLowerCase();return o.weights?.length?s+=`@${o.weights.flatMap(i=>o.italic?Number(i)+1:i).sort().join()}`:s+=`@${o.italic?2:1}`,`f[]=${s}`}).join("&");return`${t}/v2/css?${n}&display=swap`}}}function gh(e,t){const r=new Map,n=new Map;return{name:e,async getPreflight(o){return(await Promise.all(o.map(async i=>{const a=[],c=i.name.toLowerCase().replace(/\s+/g,"-");let f=r.get(c);if(!f){const d=`https://api.fontsource.org/v1/fonts/${c}`;try{f=await(await Et(async()=>{const{$fetch:m}=await Promise.resolve().then(()=>Vs);return{$fetch:m}},void 0,import.meta.url)).$fetch(d),r.set(c,f)}catch{throw new Error(`Failed to fetch font: ${i.name}`)}}const{weights:l,unicodeRange:p,variants:b,family:y}=f,v=f.subsets.filter(d=>i.subsets?i.subsets.includes(d):!0),g=i.italic?"italic":"normal";if(f.variable&&!i.preferStatic){let d=n.get(c);const m=`https://api.fontsource.org/v1/variable/${c}`;try{d=await(await Et(async()=>{const{$fetch:h}=await Promise.resolve().then(()=>Vs);return{$fetch:h}},void 0,import.meta.url)).$fetch(m),n.set(c,d)}catch{throw new Error(`Failed to fetch font variable: ${i.name}`)}const u=jo(d.axes,i.variable??{});for(const h of v)if(p[h]){const _=`${t}/fontsource/fonts/${f.id}:vf@latest/${h}-wght-${g}.woff2`,$={family:y,display:"swap",style:g,weight:400,src:[{url:_,format:"woff2-variations"}],variable:{wght:u.wght??void 0,wdth:u.wdth??void 0,slnt:u.slnt??void 0},unicodeRange:p[h],comment:`${f.id}-${h}-wght-normal`};a.push(Qo($))}else Object.entries(p).filter(([_])=>!f.subsets.includes(_)).forEach(([_,$])=>{const k=`${t}/fontsource/fonts/${f.id}:vf@latest/${_.slice(1,-1)}-wght-${g}.woff2`,S={family:y,display:"swap",style:g,weight:400,src:[{url:k,format:"woff2-variations"}],variable:{wght:u.wght??void 0,wdth:u.wdth??void 0,slnt:u.slnt??void 0},unicodeRange:$,comment:`${f.id}-${_}-wght-normal`};a.push(Qo(S))})}else{const d=i.weights&&i.weights.length>0?i.weights:l;for(const m of v)for(const u of d){const h=b[u][g][m].url,_={family:y,display:"swap",style:g,weight:Number(u),src:[{url:h.woff2,format:"woff2"}],unicodeRange:p[m],comment:`${f.id}-${m}-${u}-${g}`};a.push(Qo(_))}}return a}))).flat().join(`
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import{toValue as xe,isRef as lr,hasInjectionContext as Rd,inject as Od,ref as c
|
|
|
6
6
|
`}=e,{wght:l,wdth:p,slnt:b}=s??{};let y="@font-face {";return y+=`${f}font-family: '${t}';`,y+=`${f}font-style: ${b?`oblique ${Number(b.max)*-1}deg ${Number(b.min)*-1}deg`:r};`,y+=`${f}font-display: ${n};`,y+=`${f}font-weight: ${l?bh(l):o};`,p&&(y+=`${f}font-stretch: ${p.min}% ${p.max}%;`),y+=`${f}src: ${i.map(({url:v,format:g})=>`url(${v}) format('${g}')`).join(", ")};`,a&&(y+=`${f}unicode-range: ${a};`),c&&(y=`/* ${c} */
|
|
7
7
|
${y}`),`${y}
|
|
8
8
|
}`}function bh(e){return e?e.min===e.max?`${e.min}`:`${e.min} ${e.max}`:"400"}function vh(e,t){return{name:e,getImportUrl(r){const n=s=>{const i=s.map(c=>c[0]),a=s.map(c=>c[1]);return`${i.join(";")};${a.join(";")}`},o=r.map(s=>{let i=s.name.replace(/\s+/g,"+");return s.weights?.length&&(i+=s.italic?`:ital,wght@${n(s.weights.map(a=>[`0,${a}`,`1,${a}`]))}`:`:wght@${s.weights.join(";")}`),`family=${i}`}).join("&");return`${t}/css2?${o}&display=swap`}}}const $h=vh("google","https://fonts.googleapis.com"),wh={name:"none",getPreflight(){return""},getFontName(e){return e.name}},_h={google:$h,bunny:fh,fontshare:hh,fontsource:yh,coollabs:ph,none:wh};function Ji(e){return typeof e=="string"?_h[e]:e}function kh(e,t){if(typeof e!="string")return e.provider=Ji(e.provider||t),e.weights&&(e.weights=[...new Set(e.weights.sort((o,s)=>o.toString().localeCompare(s.toString(),"en",{numeric:!0})))]),e;const[r,n=""]=e.split(":");return{name:r,weights:[...new Set(n.split(/[,;]\s*/).filter(Boolean).sort((o,s)=>o.localeCompare(s,"en",{numeric:!0})))],provider:Ji(t)}}function Sh(e){return(t={})=>{const{provider:r="google",extendTheme:n=!0,inlineImports:o=!0,customFetch:s=e,timeouts:i={}}=t,a="fonts",c=o?a:Yu,f=ge(t.processors||[]),l=Object.fromEntries(Object.entries(t.fonts||{}).map(([u,h])=>[u,ge(h).map(_=>kh(_,r))])),p=Object.values(l).flatMap(u=>u),b={};async function y(u){if(i===!1)return s(u);const{warning:h=1e3,failure:_=2e3}=i;let $=!1;const k=setTimeout(()=>{console.warn(`[unocss] Fetching web fonts: ${u}`),$=!0},h);return await Promise.race([s(u),new Promise((S,P)=>{setTimeout(()=>P(new Error("[unocss] Fetch web fonts timeout.")),_)})]).then(S=>($&&console.info("[unocss] Web fonts fetched."),S)).finally(()=>clearTimeout(k))}async function v(u){return o?(b[u]||(b[u]=y(u).catch(h=>{if(console.error(`[unocss] Failed to fetch web fonts: ${u}`),console.error(h),typeof process<"u"&&lh.CI)throw h})),await b[u]):`@import url('${u}');`}const g=Array.from(new Set(p.map(u=>u.provider)));async function d(u,h){const _=[];for(const k of h){const S=u.filter(P=>P.provider.name===k.name);if(k.getImportUrl){const P=k.getImportUrl(S);P&&_.push(await v(P))}_.push(await k.getPreflight?.(S))}return _.filter(Boolean).join(`
|
|
9
|
-
`)}const m={name:"@unocss/preset-web-fonts",preflights:[{async getCSS(){let u;for(const h of f){const _=await h.getCSS?.(p,g,d);if(_){u=_;break}}u||(u=await d(p,g));for(const h of f)u=await h.transformCSS?.(u)||u;return u},layer:c}],layers:{[a]:-200}};return n&&(m.extendTheme=(u,h)=>{const _=h.presets.some(S=>S.name==="@unocss/preset-wind4"),$=t.themeKey??(_?"font":"fontFamily");u[$]||(u[$]={});const k=Object.fromEntries(Object.entries(l).map(([S,P])=>[S,P.map(O=>O.provider.getFontName?.(O)??`"${O.name}"`)]));for(const S of Object.keys(k))typeof u[$][S]=="string"?u[$][S]=k[S].map(P=>`${P},`).join("")+u[$][S]:u[$][S]=k[S].join(",")}),m}}const Eh="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",xh=async e=>(await Et(async()=>{const{$fetch:t}=await Promise.resolve().then(()=>Vs);return{$fetch:t}},void 0,import.meta.url)).$fetch(e,{headers:{"User-Agent":Eh},retry:3}),Ph=Sh(xh);function Ch(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function Xi(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yi(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Qi=["Webkit","Moz","ms"];function jh(e){const t={};function r(n){const o=t[n];if(o)return o;let s=Ch(n);if(s!=="filter"&&s in e)return t[n]=Yi(s);s=Xi(s);for(let i=0;i<Qi.length;i++){const a=`${Qi[i]}${s}`;if(a in e)return t[n]=Yi(Xi(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Rh(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Oh(e={}){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||{},s=Object.assign({},e,o.runtime),i=s.defaults||{},a=s.cloakAttribute??"un-cloak";s.autoPrefix&&(i.postprocess=ge(i.postprocess)).unshift(jh(r.createElement("div").style)),s.configResolved?.(o,i);const c=await sh(o,i),f=D=>s.inject?s.inject(D):n().prepend(D),l=()=>s.rootElement?s.rootElement():r.body,p=new Map;let b=!0;const y=new Set;let v,g,d=[];const m=()=>new Promise(D=>{d.push(D),g!=null&&clearTimeout(g),g=setTimeout(()=>_().then(()=>{const V=d;d=[],V.forEach(W=>W())}),0)});function u(D,V=!1){if(D.nodeType!==1)return;const W=D;W.hasAttribute(a)&&W.removeAttribute(a),V&&W.querySelectorAll(`[${a}]`).forEach(Q=>{Q.removeAttribute(a)})}function h(D,V){let W=p.get(D);if(!W)if(W=r.createElement("style"),W.setAttribute("data-unocss-runtime-layer",D),p.set(D,W),V==null)f(W);else{const Q=h(V),Z=Q.parentNode;Z?Z.insertBefore(W,Q.nextSibling):f(W)}return W}async function _(){const D=[...y],V=await c.generate(D);return V.layers.reduce((Q,Z)=>(h(Z,Q).innerHTML=V.getLayer(Z)??"",Z),void 0),D.filter(Q=>!V.matched.has(Q)).forEach(Q=>y.delete(Q)),{...V,getStyleElement:Q=>p.get(Q),getStyleElements:()=>p}}async function $(D){const V=y.size;await c.applyExtractors(D,void 0,y),V!==y.size&&await m()}async function k(D=l()){const V=D&&D.outerHTML;V&&(await $(`${V} ${Rh(V)}`),u(n()),u(D,!0))}const S=new MutationObserver(D=>{b||D.forEach(async V=>{if(V.target.nodeType!==1)return;const W=V.target;for(const Q of p)if(W===Q[1])return;if(V.type==="childList")V.addedNodes.forEach(async Q=>{if(Q.nodeType!==1)return;const Z=Q;v&&!v(Z)||(await $(Z.outerHTML),u(Z))});else{if(v&&!v(W))return;if(V.attributeName!==a){const Q=Array.from(W.attributes).map(B=>B.value?`${B.name}="${B.value}"`:B.name).join(" "),Z=`<${W.tagName.toLowerCase()} ${Q}>`;await $(Z)}u(W)}})});let P=!1;function O(){if(P)return;const D=s.observer?.target?s.observer.target():l();D&&(S.observe(D,{childList:!0,subtree:!0,attributes:!0,attributeFilter:s.observer?.attributeFilter}),P=!0)}function q(){s.bypassDefined&&Th(c.blocked),k(),O()}function M(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",q):q()}const L=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract(D){ve(D)||(D.forEach(V=>y.add(V)),D=""),await $(D)},extractAll:k,inspect(D){v=D},toggleObserver(D){D===void 0?b=!b:b=!!D,!P&&!b&&M()},update:_,presets:t.__unocss_runtime?.presets??{}};s.ready?.(L)!==!1&&(b=!1,M())}function Th(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=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),e.add(o))})}catch{continue}}return e}function Ro(e){return Md()?(zd(e),!0):!1}function Zi(e){if(!lr(e))return ut(e);const t=new Proxy({},{get(r,n,o){return qu(Reflect.get(e.value,n,o))},set(r,n,o){return lr(e.value[n])&&!lr(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 ut(t)}const sf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const af=e=>e!=null,Nh=Object.prototype.toString,Ah=e=>Nh.call(e)==="[object Object]",nt=()=>{};function cf(e,t){function r(...n){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(s)})}return r}function Ih(e,t={}){let r,n,o=nt;const s=c=>{clearTimeout(c),o(),o=nt};let i;return c=>{const f=xe(e),l=xe(t.maxWait);return r&&s(r),f<=0||l!==void 0&&l<=0?(n&&(s(n),n=void 0),Promise.resolve(c())):new Promise((p,b)=>{o=t.rejectOnCancel?b:p,i=c,l&&!n&&(n=setTimeout(()=>{r&&s(r),n=void 0,p(i())},l)),r=setTimeout(()=>{n&&s(n),n=void 0,p(c())},f)})}}function Mh(...e){let t=0,r,n=!0,o=nt,s,i,a,c,f;!lr(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:c=!0,rejectOnCancel:f=!1}=e[0]:[i,a=!0,c=!0,f=!1]=e;const l=()=>{r&&(clearTimeout(r),r=void 0,o(),o=nt)};return b=>{const y=xe(i),v=Date.now()-t,g=()=>s=b();return l(),y<=0?(t=Date.now(),g()):(v>y&&(c||!n)?(t=Date.now(),g()):a&&(s=new Promise((d,m)=>{o=f?m:d,r=setTimeout(()=>{t=Date.now(),n=!0,d(g()),l()},Math.max(0,y-v))})),!c&&!r&&(r=setTimeout(()=>n=!0,y)),n=!1,s)}}function ur(e){return Array.isArray(e)?e:[e]}function zh(e){return oi()}function qh(e,t=200,r={}){return cf(Ih(t,r),e)}function Fh(e,t=200,r=!1,n=!0,o=!1){return cf(Mh(t,r,n,o),e)}function lf(e,t=!0,r){zh()?si(e,r):t?e():ii(e)}function Dh(e,t,r){return Ge(e,t,{...r,immediate:!0})}const Oo=sf?window:void 0,Lh=sf?window.document:void 0;function qt(e){var t;const r=xe(e);return(t=r?.$el)!=null?t:r}function ea(...e){const t=[],r=()=>{t.forEach(a=>a()),t.length=0},n=(a,c,f,l)=>(a.addEventListener(c,f,l),()=>a.removeEventListener(c,f,l)),o=ke(()=>{const a=ur(xe(e[0])).filter(c=>c!=null);return a.every(c=>typeof c!="string")?a:void 0}),s=Dh(()=>{var a,c;return[(c=(a=o.value)==null?void 0:a.map(f=>qt(f)))!=null?c:[Oo].filter(f=>f!=null),ur(xe(o.value?e[1]:e[0])),ur(qu(o.value?e[2]:e[1])),xe(o.value?e[3]:e[2])]},([a,c,f,l])=>{if(r(),!a?.length||!c?.length||!f?.length)return;const p=Ah(l)?{...l}:l;t.push(...a.flatMap(b=>c.flatMap(y=>f.map(v=>n(b,y,v,p)))))},{flush:"post"}),i=()=>{s(),r()};return Ro(r),i}function Vh(){const e=lt(!1),t=oi();return t&&si(()=>{e.value=!0},t),e}function uf(e){const t=Vh();return ke(()=>(t.value,!!e()))}function Uh(e,t,r={}){const{window:n=Oo,...o}=r;let s;const i=uf(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},c=ke(()=>{const b=xe(e),y=ur(b).map(qt).filter(af);return new Set(y)}),f=Ge(()=>c.value,b=>{a(),i.value&&b.size&&(s=new MutationObserver(t),b.forEach(y=>s.observe(y,o)))},{immediate:!0,flush:"post"}),l=()=>s?.takeRecords(),p=()=>{f(),a()};return Ro(p),{isSupported:i,stop:p,takeRecords:l}}function Pk(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:s=0,window:i=Oo,immediate:a=!0}=r,c=uf(()=>i&&"IntersectionObserver"in i),f=ke(()=>{const v=xe(e);return ur(v).map(qt).filter(af)});let l=nt;const p=lt(a),b=c.value?Ge(()=>[f.value,qt(n),p.value],([v,g])=>{if(l(),!p.value||!v.length)return;const d=new IntersectionObserver(t,{root:qt(g),rootMargin:o,threshold:s});v.forEach(m=>m&&d.observe(m)),l=()=>{d.disconnect(),l=nt}},{immediate:a,flush:"post"}):nt,y=()=>{l(),b(),p.value=!1};return Ro(y),{isSupported:c,isActive:p,pause(){l(),p.value=!1},resume(){p.value=!0},stop:y}}const ta=1;function Ck(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=nt,onScroll:s=nt,offset:i={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:f="auto",window:l=Oo,onError:p=O=>{console.error(O)}}=t,b=typeof a=="boolean"?{mutation:a}:a,y=lt(0),v=lt(0),g=ke({get(){return y.value},set(O){m(O,void 0)}}),d=ke({get(){return v.value},set(O){m(void 0,O)}});function m(O,q){var M,L,D,V;if(!l)return;const W=xe(e);if(!W)return;(D=W instanceof Document?l.document.body:W)==null||D.scrollTo({top:(M=xe(q))!=null?M:d.value,left:(L=xe(O))!=null?L:g.value,behavior:xe(f)});const Q=((V=W?.document)==null?void 0:V.documentElement)||W?.documentElement||W;g!=null&&(y.value=Q.scrollLeft),d!=null&&(v.value=Q.scrollTop)}const u=lt(!1),h=ut({left:!0,right:!1,top:!0,bottom:!1}),_=ut({left:!1,right:!1,top:!1,bottom:!1}),$=O=>{u.value&&(u.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,o(O))},k=qh($,r+n),S=O=>{var q;if(!l)return;const M=((q=O?.document)==null?void 0:q.documentElement)||O?.documentElement||qt(O),{display:L,flexDirection:D,direction:V}=getComputedStyle(M),W=V==="rtl"?-1:1,Q=M.scrollLeft;_.left=Q<y.value,_.right=Q>y.value;const Z=Math.abs(Q*W)<=(i.left||0),B=Math.abs(Q*W)+M.clientWidth>=M.scrollWidth-(i.right||0)-ta;L==="flex"&&D==="row-reverse"?(h.left=B,h.right=Z):(h.left=Z,h.right=B),y.value=Q;let ee=M.scrollTop;O===l.document&&!ee&&(ee=l.document.body.scrollTop),_.top=ee<v.value,_.bottom=ee>v.value;const z=Math.abs(ee)<=(i.top||0),C=Math.abs(ee)+M.clientHeight>=M.scrollHeight-(i.bottom||0)-ta;L==="flex"&&D==="column-reverse"?(h.top=C,h.bottom=z):(h.top=z,h.bottom=C),v.value=ee},P=O=>{var q;if(!l)return;const M=(q=O.target.documentElement)!=null?q:O.target;S(M),u.value=!0,k(O),s(O)};return ea(e,"scroll",r?Fh(P,r,!0,!1):P,c),lf(()=>{try{const O=xe(e);if(!O)return;S(O)}catch(O){p(O)}}),b?.mutation&&e!=null&&e!==l&&e!==document&&Uh(e,()=>{const O=xe(e);O&&S(O)},{attributes:!0,childList:!0,subtree:!0}),ea(e,"scrollend",$,c),{x:g,y:d,isScrolling:u,arrivedState:h,directions:_,measure(){const O=xe(e);l&&O&&S(O)}}}let Hh=0;function Kh(e,t={}){const r=lt(!1),{document:n=Lh,immediate:o=!0,manual:s=!1,id:i=`vueuse_styletag_${++Hh}`}=t,a=lt(e);let c=()=>{};const f=()=>{if(!n)return;const p=n.getElementById(i)||n.createElement("style");p.isConnected||(p.id=i,t.nonce&&(p.nonce=t.nonce),t.media&&(p.media=t.media),n.head.appendChild(p)),!r.value&&(c=Ge(a,b=>{p.textContent=b},{immediate:!0}),r.value=!0)},l=()=>{!n||!r.value||(c(),n.head.removeChild(n.getElementById(i)),r.value=!1)};return o&&!s&&lf(f),s||Ro(l),{id:i,css:a,unload:l,load:f,isLoaded:qd(r)}}const Wh=(e,{branch:t="branch",children:r="children",id:n="id",index:o="index",next:s="next",parent:i="parent",prev:a="prev",siblings:c="siblings"}={})=>{const f={[t]:{get(){const y=[this];for(;y[0]?.[i];)y.unshift(y[0][i]);return y}},[o]:{get(){return this[c].findIndex(y=>this[n]===y[n])}},[s]:{get(){return this[c][this[o]+1]}},[a]:{get(){return this[c][this[o]-1]}}},l=(y,v={})=>y.value.flatMap(g=>(Object.defineProperties(g,{...f,[i]:v,[c]:y}),[g,...l({configurable:!0,value:g[r]??[]},{configurable:!0,value:g})])),p=ke(()=>l({value:Fd(e)?e:ut(e)})),b=Zi(ke(()=>Object.fromEntries(p.value.map(y=>[y[n],y]))));return{add:y=>{const v=b[y];if(v){const g=v[r],d=v[o],m=v[c],u=Math.random().toString(36).slice(2);switch(!0){case!!v[i]:m.splice(d+1,0,{[n]:u});break;case!!g:g.unshift({[n]:u});break;default:m.splice(d+1,0,{[n]:u});break}return u}},arrLeaves:Zi(p),down:y=>{const v=b[y];if(v){const g=v[o],d=g+1,m=v[c];g<m.length-1&&m[g]&&m[d]&&([m[g],m[d]]=[m[d],m[g]])}},leaves:p,left:y=>{const v=b[y];if(v){const g=v[i];if(g?.[i]){const d=g[r]??[];return g[c].splice(g[o]+1,0,...d.splice(v[o],1)),g[n]}}},objLeaves:b,remove:y=>{const v=b[y];if(v){const g=v[i];if(g){const[d]=p.value,m=v[s],u=v[a],h=m?.[n]??u?.[n]??g[n]??d?.[n];return v[c].splice(v[o],1),h}}},right:y=>{const v=b[y];if(v){const g=v[a];if(g){const d=g[r]??[],m=g[n],u=v[c];return g[r]=[...d,...u.splice(v[o],1)],m}}},up:y=>{const v=b[y];if(v){const g=v[o],d=g-1,m=v[c];g&&m[g]&&m[d]&&([m[d],m[g]]=[m[g],m[d]])}}}};var Er={exports:{}},Zo={},Je={},gt={},es={},ts={},rs={},ra;function po(){return ra||(ra=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(u){if(super(),!e.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((h,_)=>`${h}${_}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((h,_)=>(_ instanceof r&&(h[_.str]=(h[_.str]||0)+1),h),{})}}e._Code=n,e.nil=new n("");function o(m,...u){const h=[m[0]];let _=0;for(;_<u.length;)a(h,u[_]),h.push(m[++_]);return new n(h)}e._=o;const s=new n("+");function i(m,...u){const h=[y(m[0])];let _=0;for(;_<u.length;)h.push(s),a(h,u[_]),h.push(s,y(m[++_]));return c(h),new n(h)}e.str=i;function a(m,u){u instanceof n?m.push(...u._items):u instanceof r?m.push(u):m.push(p(u))}e.addCodeArg=a;function c(m){let u=1;for(;u<m.length-1;){if(m[u]===s){const h=f(m[u-1],m[u+1]);if(h!==void 0){m.splice(u-1,3,h);continue}m[u++]="+"}u++}}function f(m,u){if(u==='""')return m;if(m==='""')return u;if(typeof m=="string")return u instanceof r||m[m.length-1]!=='"'?void 0:typeof u!="string"?`${m.slice(0,-1)}${u}"`:u[0]==='"'?m.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(m instanceof r))return`"${m}${u.slice(1)}`}function l(m,u){return u.emptyStr()?m:m.emptyStr()?u:i`${m}${u}`}e.strConcat=l;function p(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:y(Array.isArray(m)?m.join(","):m)}function b(m){return new n(y(m))}e.stringify=b;function y(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function v(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):o`[${m}]`}e.getProperty=v;function g(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=g;function d(m){return new n(m.toString())}e.regexpCode=d}(rs)),rs}var ns={},na;function oa(){return na||(na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=po();class r extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.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:f,parent:l}={}){this._names={},this._prefixes=f,this._parent=l}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const l=this._names[f]||this._nameGroup(f);return`${f}${l.index++}`}_nameGroup(f){var l,p;if(!((p=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||p===void 0)&&p.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=o;class s extends t.Name{constructor(f,l){super(l),this.prefix=f}setValue(f,{property:l,itemIndex:p}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(l)}[${p}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class a extends o{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?i:t.nil}}get(){return this._scope}name(f){return new s(f,this._newName(f))}value(f,l){var p;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(f),{prefix:y}=b,v=(p=l.key)!==null&&p!==void 0?p:l.ref;let g=this._values[y];if(g){const u=g.get(v);if(u)return u}else g=this._values[y]=new Map;g.set(v,b);const d=this._scope[y]||(this._scope[y]=[]),m=d.length;return d[m]=l.ref,b.setValue(l,{property:y,itemIndex:m}),b}getValue(f,l){const p=this._values[f];if(p)return p.get(l)}scopeRefs(f,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._)`${f}${p.scopePath}`})}scopeCode(f=this._values,l,p){return this._reduceValues(f,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},l,p)}_reduceValues(f,l,p={},b){let y=t.nil;for(const v in f){const g=f[v];if(!g)continue;const d=p[v]=p[v]||new Map;g.forEach(m=>{if(d.has(m))return;d.set(m,n.Started);let u=l(m);if(u){const h=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${h} ${m} = ${u};${this.opts._n}`}else if(u=b?.(m))y=(0,t._)`${y}${u}${this.opts._n}`;else throw new r(m);d.set(m,n.Completed)})}return y}}e.ValueScope=a}(ns)),ns}var sa;function ie(){return sa||(sa=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=po(),r=oa();var n=po();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=oa();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 s{optimizeNodes(){return this}optimizeNames(w,E){return this}}class i extends s{constructor(w,E,T){super(),this.varKind=w,this.name=E,this.rhs=T}render({es5:w,_n:E}){const T=w?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${U};`+E}optimizeNames(w,E){if(w[this.name.str])return this.rhs&&(this.rhs=V(this.rhs,w,E)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(w,E,T){super(),this.lhs=w,this.rhs=E,this.sideEffects=T}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,E){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=V(this.rhs,w,E),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return D(w,this.rhs)}}class c extends a{constructor(w,E,T,U){super(w,T,U),this.op=E}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class f extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class l extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class p extends s{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class b extends s{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,E){return this.code=V(this.code,w,E),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends s{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((E,T)=>E+T.render(w),"")}optimizeNodes(){const{nodes:w}=this;let E=w.length;for(;E--;){const T=w[E].optimizeNodes();Array.isArray(T)?w.splice(E,1,...T):T?w[E]=T:w.splice(E,1)}return w.length>0?this:void 0}optimizeNames(w,E){const{nodes:T}=this;let U=T.length;for(;U--;){const K=T[U];K.optimizeNames(w,E)||(W(w,K.names),T.splice(U,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((w,E)=>L(w,E.names),{})}}class v extends y{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class g extends y{}class d extends v{}d.kind="else";class m extends v{constructor(w,E){super(E),this.condition=w}render(w){let E=`if(${this.condition})`+super.render(w);return this.else&&(E+="else "+this.else.render(w)),E}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!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 w===!1?E instanceof m?E:E.nodes:this.nodes.length?this:new m(Q(w),E instanceof m?[E]:E.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,E){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(w,E),!!(super.optimizeNames(w,E)||this.else))return this.condition=V(this.condition,w,E),this}get names(){const w=super.names;return D(w,this.condition),this.else&&L(w,this.else.names),w}}m.kind="if";class u extends v{}u.kind="for";class h extends u{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iteration=V(this.iteration,w,E),this}get names(){return L(super.names,this.iteration.names)}}class _ extends u{constructor(w,E,T,U){super(),this.varKind=w,this.name=E,this.from=T,this.to=U}render(w){const E=w.es5?r.varKinds.var:this.varKind,{name:T,from:U,to:K}=this;return`for(${E} ${T}=${U}; ${T}<${K}; ${T}++)`+super.render(w)}get names(){const w=D(super.names,this.from);return D(w,this.to)}}class $ extends u{constructor(w,E,T,U){super(),this.loop=w,this.varKind=E,this.name=T,this.iterable=U}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iterable=V(this.iterable,w,E),this}get names(){return L(super.names,this.iterable.names)}}class k extends v{constructor(w,E,T){super(),this.name=w,this.args=E,this.async=T}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class S extends y{render(w){return"return "+super.render(w)}}S.kind="return";class P extends v{render(w){let E="try"+super.render(w);return this.catch&&(E+=this.catch.render(w)),this.finally&&(E+=this.finally.render(w)),E}optimizeNodes(){var w,E;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(w,E){var T,U;return super.optimizeNames(w,E),(T=this.catch)===null||T===void 0||T.optimizeNames(w,E),(U=this.finally)===null||U===void 0||U.optimizeNames(w,E),this}get names(){const w=super.names;return this.catch&&L(w,this.catch.names),this.finally&&L(w,this.finally.names),w}}class O extends v{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}O.kind="catch";class q extends v{render(w){return"finally"+super.render(w)}}q.kind="finally";class M{constructor(w,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
|
|
9
|
+
`)}const m={name:"@unocss/preset-web-fonts",preflights:[{async getCSS(){let u;for(const h of f){const _=await h.getCSS?.(p,g,d);if(_){u=_;break}}u||(u=await d(p,g));for(const h of f)u=await h.transformCSS?.(u)||u;return u},layer:c}],layers:{[a]:-200}};return n&&(m.extendTheme=(u,h)=>{const _=h.presets.some(S=>S.name==="@unocss/preset-wind4"),$=t.themeKey??(_?"font":"fontFamily");u[$]||(u[$]={});const k=Object.fromEntries(Object.entries(l).map(([S,P])=>[S,P.map(O=>O.provider.getFontName?.(O)??`"${O.name}"`)]));for(const S of Object.keys(k))typeof u[$][S]=="string"?u[$][S]=k[S].map(P=>`${P},`).join("")+u[$][S]:u[$][S]=k[S].join(",")}),m}}const Eh="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",xh=async e=>(await Et(async()=>{const{$fetch:t}=await Promise.resolve().then(()=>Vs);return{$fetch:t}},void 0,import.meta.url)).$fetch(e,{headers:{"User-Agent":Eh},retry:3}),Ph=Sh(xh);function Ch(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function Xi(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yi(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Qi=["Webkit","Moz","ms"];function jh(e){const t={};function r(n){const o=t[n];if(o)return o;let s=Ch(n);if(s!=="filter"&&s in e)return t[n]=Yi(s);s=Xi(s);for(let i=0;i<Qi.length;i++){const a=`${Qi[i]}${s}`;if(a in e)return t[n]=Yi(Xi(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Rh(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Oh(e={}){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||{},s=Object.assign({},e,o.runtime),i=s.defaults||{},a=s.cloakAttribute??"un-cloak";s.autoPrefix&&(i.postprocess=ge(i.postprocess)).unshift(jh(r.createElement("div").style)),s.configResolved?.(o,i);const c=await sh(o,i),f=D=>s.inject?s.inject(D):n().prepend(D),l=()=>s.rootElement?s.rootElement():r.body,p=new Map;let b=!0;const y=new Set;let v,g,d=[];const m=()=>new Promise(D=>{d.push(D),g!=null&&clearTimeout(g),g=setTimeout(()=>_().then(()=>{const V=d;d=[],V.forEach(W=>W())}),0)});function u(D,V=!1){if(D.nodeType!==1)return;const W=D;W.hasAttribute(a)&&W.removeAttribute(a),V&&W.querySelectorAll(`[${a}]`).forEach(Q=>{Q.removeAttribute(a)})}function h(D,V){let W=p.get(D);if(!W)if(W=r.createElement("style"),W.setAttribute("data-unocss-runtime-layer",D),p.set(D,W),V==null)f(W);else{const Q=h(V),Z=Q.parentNode;Z?Z.insertBefore(W,Q.nextSibling):f(W)}return W}async function _(){const D=[...y],V=await c.generate(D);return V.layers.reduce((Q,Z)=>(h(Z,Q).innerHTML=V.getLayer(Z)??"",Z),void 0),D.filter(Q=>!V.matched.has(Q)).forEach(Q=>y.delete(Q)),{...V,getStyleElement:Q=>p.get(Q),getStyleElements:()=>p}}async function $(D){const V=y.size;await c.applyExtractors(D,void 0,y),V!==y.size&&await m()}async function k(D=l()){const V=D&&D.outerHTML;V&&(await $(`${V} ${Rh(V)}`),u(n()),u(D,!0))}const S=new MutationObserver(D=>{b||D.forEach(async V=>{if(V.target.nodeType!==1)return;const W=V.target;for(const Q of p)if(W===Q[1])return;if(V.type==="childList")V.addedNodes.forEach(async Q=>{if(Q.nodeType!==1)return;const Z=Q;v&&!v(Z)||(await $(Z.outerHTML),u(Z))});else{if(v&&!v(W))return;if(V.attributeName!==a){const Q=Array.from(W.attributes).map(B=>B.value?`${B.name}="${B.value}"`:B.name).join(" "),Z=`<${W.tagName.toLowerCase()} ${Q}>`;await $(Z)}u(W)}})});let P=!1;function O(){if(P)return;const D=s.observer?.target?s.observer.target():l();D&&(S.observe(D,{childList:!0,subtree:!0,attributes:!0,attributeFilter:s.observer?.attributeFilter}),P=!0)}function q(){s.bypassDefined&&Th(c.blocked),k(),O()}function M(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",q):q()}const L=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract(D){ve(D)||(D.forEach(V=>y.add(V)),D=""),await $(D)},extractAll:k,inspect(D){v=D},toggleObserver(D){D===void 0?b=!b:b=!!D,!P&&!b&&M()},update:_,presets:t.__unocss_runtime?.presets??{}};s.ready?.(L)!==!1&&(b=!1,M())}function Th(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=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),e.add(o))})}catch{continue}}return e}function Ro(e){return Md()?(zd(e),!0):!1}function Zi(e){if(!lr(e))return ut(e);const t=new Proxy({},{get(r,n,o){return qu(Reflect.get(e.value,n,o))},set(r,n,o){return lr(e.value[n])&&!lr(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 ut(t)}const sf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const af=e=>e!=null,Nh=Object.prototype.toString,Ah=e=>Nh.call(e)==="[object Object]",nt=()=>{};function cf(e,t){function r(...n){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(s)})}return r}function Ih(e,t={}){let r,n,o=nt;const s=c=>{clearTimeout(c),o(),o=nt};let i;return c=>{const f=xe(e),l=xe(t.maxWait);return r&&s(r),f<=0||l!==void 0&&l<=0?(n&&(s(n),n=void 0),Promise.resolve(c())):new Promise((p,b)=>{o=t.rejectOnCancel?b:p,i=c,l&&!n&&(n=setTimeout(()=>{r&&s(r),n=void 0,p(i())},l)),r=setTimeout(()=>{n&&s(n),n=void 0,p(c())},f)})}}function Mh(...e){let t=0,r,n=!0,o=nt,s,i,a,c,f;!lr(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:c=!0,rejectOnCancel:f=!1}=e[0]:[i,a=!0,c=!0,f=!1]=e;const l=()=>{r&&(clearTimeout(r),r=void 0,o(),o=nt)};return b=>{const y=xe(i),v=Date.now()-t,g=()=>s=b();return l(),y<=0?(t=Date.now(),g()):(v>y&&(c||!n)?(t=Date.now(),g()):a&&(s=new Promise((d,m)=>{o=f?m:d,r=setTimeout(()=>{t=Date.now(),n=!0,d(g()),l()},Math.max(0,y-v))})),!c&&!r&&(r=setTimeout(()=>n=!0,y)),n=!1,s)}}function ur(e){return Array.isArray(e)?e:[e]}function zh(e){return oi()}function qh(e,t=200,r={}){return cf(Ih(t,r),e)}function Fh(e,t=200,r=!1,n=!0,o=!1){return cf(Mh(t,r,n,o),e)}function lf(e,t=!0,r){zh()?si(e,r):t?e():ii(e)}function Dh(e,t,r){return Ge(e,t,{...r,immediate:!0})}const Oo=sf?window:void 0,Lh=sf?window.document:void 0;function qt(e){var t;const r=xe(e);return(t=r?.$el)!=null?t:r}function ea(...e){const t=[],r=()=>{t.forEach(a=>a()),t.length=0},n=(a,c,f,l)=>(a.addEventListener(c,f,l),()=>a.removeEventListener(c,f,l)),o=ke(()=>{const a=ur(xe(e[0])).filter(c=>c!=null);return a.every(c=>typeof c!="string")?a:void 0}),s=Dh(()=>{var a,c;return[(c=(a=o.value)==null?void 0:a.map(f=>qt(f)))!=null?c:[Oo].filter(f=>f!=null),ur(xe(o.value?e[1]:e[0])),ur(qu(o.value?e[2]:e[1])),xe(o.value?e[3]:e[2])]},([a,c,f,l])=>{if(r(),!a?.length||!c?.length||!f?.length)return;const p=Ah(l)?{...l}:l;t.push(...a.flatMap(b=>c.flatMap(y=>f.map(v=>n(b,y,v,p)))))},{flush:"post"}),i=()=>{s(),r()};return Ro(r),i}function Vh(){const e=lt(!1),t=oi();return t&&si(()=>{e.value=!0},t),e}function uf(e){const t=Vh();return ke(()=>(t.value,!!e()))}function Uh(e,t,r={}){const{window:n=Oo,...o}=r;let s;const i=uf(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},c=ke(()=>{const b=xe(e),y=ur(b).map(qt).filter(af);return new Set(y)}),f=Ge(()=>c.value,b=>{a(),i.value&&b.size&&(s=new MutationObserver(t),b.forEach(y=>s.observe(y,o)))},{immediate:!0,flush:"post"}),l=()=>s?.takeRecords(),p=()=>{f(),a()};return Ro(p),{isSupported:i,stop:p,takeRecords:l}}function Pk(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:s=0,window:i=Oo,immediate:a=!0}=r,c=uf(()=>i&&"IntersectionObserver"in i),f=ke(()=>{const v=xe(e);return ur(v).map(qt).filter(af)});let l=nt;const p=lt(a),b=c.value?Ge(()=>[f.value,qt(n),p.value],([v,g])=>{if(l(),!p.value||!v.length)return;const d=new IntersectionObserver(t,{root:qt(g),rootMargin:o,threshold:s});v.forEach(m=>m&&d.observe(m)),l=()=>{d.disconnect(),l=nt}},{immediate:a,flush:"post"}):nt,y=()=>{l(),b(),p.value=!1};return Ro(y),{isSupported:c,isActive:p,pause(){l(),p.value=!1},resume(){p.value=!0},stop:y}}const ta=1;function Ck(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=nt,onScroll:s=nt,offset:i={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:f="auto",window:l=Oo,onError:p=O=>{console.error(O)}}=t,b=typeof a=="boolean"?{mutation:a}:a,y=lt(0),v=lt(0),g=ke({get(){return y.value},set(O){m(O,void 0)}}),d=ke({get(){return v.value},set(O){m(void 0,O)}});function m(O,q){var M,L,D,V;if(!l)return;const W=xe(e);if(!W)return;(D=W instanceof Document?l.document.body:W)==null||D.scrollTo({top:(M=xe(q))!=null?M:d.value,left:(L=xe(O))!=null?L:g.value,behavior:xe(f)});const Q=((V=W?.document)==null?void 0:V.documentElement)||W?.documentElement||W;g!=null&&(y.value=Q.scrollLeft),d!=null&&(v.value=Q.scrollTop)}const u=lt(!1),h=ut({left:!0,right:!1,top:!0,bottom:!1}),_=ut({left:!1,right:!1,top:!1,bottom:!1}),$=O=>{u.value&&(u.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,o(O))},k=qh($,r+n),S=O=>{var q;if(!l)return;const M=((q=O?.document)==null?void 0:q.documentElement)||O?.documentElement||qt(O),{display:L,flexDirection:D,direction:V}=getComputedStyle(M),W=V==="rtl"?-1:1,Q=M.scrollLeft;_.left=Q<y.value,_.right=Q>y.value;const Z=Math.abs(Q*W)<=(i.left||0),B=Math.abs(Q*W)+M.clientWidth>=M.scrollWidth-(i.right||0)-ta;L==="flex"&&D==="row-reverse"?(h.left=B,h.right=Z):(h.left=Z,h.right=B),y.value=Q;let ee=M.scrollTop;O===l.document&&!ee&&(ee=l.document.body.scrollTop),_.top=ee<v.value,_.bottom=ee>v.value;const z=Math.abs(ee)<=(i.top||0),C=Math.abs(ee)+M.clientHeight>=M.scrollHeight-(i.bottom||0)-ta;L==="flex"&&D==="column-reverse"?(h.top=C,h.bottom=z):(h.top=z,h.bottom=C),v.value=ee},P=O=>{var q;if(!l)return;const M=(q=O.target.documentElement)!=null?q:O.target;S(M),u.value=!0,k(O),s(O)};return ea(e,"scroll",r?Fh(P,r,!0,!1):P,c),lf(()=>{try{const O=xe(e);if(!O)return;S(O)}catch(O){p(O)}}),b?.mutation&&e!=null&&e!==l&&e!==document&&Uh(e,()=>{const O=xe(e);O&&S(O)},{attributes:!0,childList:!0,subtree:!0}),ea(e,"scrollend",$,c),{x:g,y:d,isScrolling:u,arrivedState:h,directions:_,measure(){const O=xe(e);l&&O&&S(O)}}}let Hh=0;function Kh(e,t={}){const r=lt(!1),{document:n=Lh,immediate:o=!0,manual:s=!1,id:i=`vueuse_styletag_${++Hh}`}=t,a=lt(e);let c=()=>{};const f=()=>{if(!n)return;const p=n.getElementById(i)||n.createElement("style");p.isConnected||(p.id=i,t.nonce&&(p.nonce=t.nonce),t.media&&(p.media=t.media),n.head.appendChild(p)),!r.value&&(c=Ge(a,b=>{p.textContent=b},{immediate:!0}),r.value=!0)},l=()=>{!n||!r.value||(c(),n.head.removeChild(n.getElementById(i)),r.value=!1)};return o&&!s&&lf(f),s||Ro(l),{id:i,css:a,unload:l,load:f,isLoaded:qd(r)}}const Wh=(e,{branch:t="branch",children:r="children",id:n="id",index:o="index",next:s="next",parent:i="parent",prev:a="prev",siblings:c="siblings"}={})=>{const f={[t]:{get(){const y=[this];for(;y[0]?.[i];)y.unshift(y[0][i]);return y}},[o]:{get(){return this[c].findIndex(y=>this[n]===y[n])}},[s]:{get(){return this[c][this[o]+1]}},[a]:{get(){return this[c][this[o]-1]}}},l=(y,v={})=>y.value.flatMap(g=>(Object.defineProperties(g,{...f,[i]:v,[c]:y}),[g,...l({configurable:!0,value:g[r]??[]},{configurable:!0,value:g})])),p=ke(()=>l({value:Fd(e)?e:ut(e)})),b=Zi(ke(()=>Object.fromEntries(p.value.map(y=>[y[n],y]))));return{add:y=>{const v=b[y];if(v){const g=v[r],d=URL.createObjectURL(new Blob),m=d.split("/").pop()??crypto.randomUUID(),u=v[o],h=v[c];switch(URL.revokeObjectURL(d),!0){case!!v[i]:h.splice(u+1,0,{[n]:m});break;case!!g:g.unshift({[n]:m});break;default:h.splice(u+1,0,{[n]:m});break}return m}},arrLeaves:Zi(p),down:y=>{const v=b[y];if(v){const g=v[o],d=g+1,m=v[c];g<m.length-1&&m[g]&&m[d]&&([m[g],m[d]]=[m[d],m[g]])}},leaves:p,left:y=>{const v=b[y];if(v){const g=v[i];if(g?.[i]){const d=g[r]??[];return g[c].splice(g[o]+1,0,...d.splice(v[o],1)),g[n]}}},objLeaves:b,remove:y=>{const v=b[y];if(v){const g=v[i];if(g){const[d]=p.value,m=v[s],u=v[a],h=m?.[n]??u?.[n]??g[n]??d?.[n];return v[c].splice(v[o],1),h}}},right:y=>{const v=b[y];if(v){const g=v[a];if(g){const d=g[r]??[],m=g[n],u=v[c];return g[r]=[...d,...u.splice(v[o],1)],m}}},up:y=>{const v=b[y];if(v){const g=v[o],d=g-1,m=v[c];g&&m[g]&&m[d]&&([m[d],m[g]]=[m[g],m[d]])}}}};var Er={exports:{}},Zo={},Je={},gt={},es={},ts={},rs={},ra;function po(){return ra||(ra=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(u){if(super(),!e.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((h,_)=>`${h}${_}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((h,_)=>(_ instanceof r&&(h[_.str]=(h[_.str]||0)+1),h),{})}}e._Code=n,e.nil=new n("");function o(m,...u){const h=[m[0]];let _=0;for(;_<u.length;)a(h,u[_]),h.push(m[++_]);return new n(h)}e._=o;const s=new n("+");function i(m,...u){const h=[y(m[0])];let _=0;for(;_<u.length;)h.push(s),a(h,u[_]),h.push(s,y(m[++_]));return c(h),new n(h)}e.str=i;function a(m,u){u instanceof n?m.push(...u._items):u instanceof r?m.push(u):m.push(p(u))}e.addCodeArg=a;function c(m){let u=1;for(;u<m.length-1;){if(m[u]===s){const h=f(m[u-1],m[u+1]);if(h!==void 0){m.splice(u-1,3,h);continue}m[u++]="+"}u++}}function f(m,u){if(u==='""')return m;if(m==='""')return u;if(typeof m=="string")return u instanceof r||m[m.length-1]!=='"'?void 0:typeof u!="string"?`${m.slice(0,-1)}${u}"`:u[0]==='"'?m.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(m instanceof r))return`"${m}${u.slice(1)}`}function l(m,u){return u.emptyStr()?m:m.emptyStr()?u:i`${m}${u}`}e.strConcat=l;function p(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:y(Array.isArray(m)?m.join(","):m)}function b(m){return new n(y(m))}e.stringify=b;function y(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function v(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):o`[${m}]`}e.getProperty=v;function g(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=g;function d(m){return new n(m.toString())}e.regexpCode=d}(rs)),rs}var ns={},na;function oa(){return na||(na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=po();class r extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.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:f,parent:l}={}){this._names={},this._prefixes=f,this._parent=l}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const l=this._names[f]||this._nameGroup(f);return`${f}${l.index++}`}_nameGroup(f){var l,p;if(!((p=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||p===void 0)&&p.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=o;class s extends t.Name{constructor(f,l){super(l),this.prefix=f}setValue(f,{property:l,itemIndex:p}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(l)}[${p}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class a extends o{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?i:t.nil}}get(){return this._scope}name(f){return new s(f,this._newName(f))}value(f,l){var p;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(f),{prefix:y}=b,v=(p=l.key)!==null&&p!==void 0?p:l.ref;let g=this._values[y];if(g){const u=g.get(v);if(u)return u}else g=this._values[y]=new Map;g.set(v,b);const d=this._scope[y]||(this._scope[y]=[]),m=d.length;return d[m]=l.ref,b.setValue(l,{property:y,itemIndex:m}),b}getValue(f,l){const p=this._values[f];if(p)return p.get(l)}scopeRefs(f,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._)`${f}${p.scopePath}`})}scopeCode(f=this._values,l,p){return this._reduceValues(f,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},l,p)}_reduceValues(f,l,p={},b){let y=t.nil;for(const v in f){const g=f[v];if(!g)continue;const d=p[v]=p[v]||new Map;g.forEach(m=>{if(d.has(m))return;d.set(m,n.Started);let u=l(m);if(u){const h=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${h} ${m} = ${u};${this.opts._n}`}else if(u=b?.(m))y=(0,t._)`${y}${u}${this.opts._n}`;else throw new r(m);d.set(m,n.Completed)})}return y}}e.ValueScope=a}(ns)),ns}var sa;function ie(){return sa||(sa=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=po(),r=oa();var n=po();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=oa();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 s{optimizeNodes(){return this}optimizeNames(w,E){return this}}class i extends s{constructor(w,E,T){super(),this.varKind=w,this.name=E,this.rhs=T}render({es5:w,_n:E}){const T=w?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${U};`+E}optimizeNames(w,E){if(w[this.name.str])return this.rhs&&(this.rhs=V(this.rhs,w,E)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(w,E,T){super(),this.lhs=w,this.rhs=E,this.sideEffects=T}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,E){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=V(this.rhs,w,E),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return D(w,this.rhs)}}class c extends a{constructor(w,E,T,U){super(w,T,U),this.op=E}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class f extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class l extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class p extends s{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class b extends s{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,E){return this.code=V(this.code,w,E),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends s{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((E,T)=>E+T.render(w),"")}optimizeNodes(){const{nodes:w}=this;let E=w.length;for(;E--;){const T=w[E].optimizeNodes();Array.isArray(T)?w.splice(E,1,...T):T?w[E]=T:w.splice(E,1)}return w.length>0?this:void 0}optimizeNames(w,E){const{nodes:T}=this;let U=T.length;for(;U--;){const K=T[U];K.optimizeNames(w,E)||(W(w,K.names),T.splice(U,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((w,E)=>L(w,E.names),{})}}class v extends y{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class g extends y{}class d extends v{}d.kind="else";class m extends v{constructor(w,E){super(E),this.condition=w}render(w){let E=`if(${this.condition})`+super.render(w);return this.else&&(E+="else "+this.else.render(w)),E}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!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 w===!1?E instanceof m?E:E.nodes:this.nodes.length?this:new m(Q(w),E instanceof m?[E]:E.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,E){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(w,E),!!(super.optimizeNames(w,E)||this.else))return this.condition=V(this.condition,w,E),this}get names(){const w=super.names;return D(w,this.condition),this.else&&L(w,this.else.names),w}}m.kind="if";class u extends v{}u.kind="for";class h extends u{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iteration=V(this.iteration,w,E),this}get names(){return L(super.names,this.iteration.names)}}class _ extends u{constructor(w,E,T,U){super(),this.varKind=w,this.name=E,this.from=T,this.to=U}render(w){const E=w.es5?r.varKinds.var:this.varKind,{name:T,from:U,to:K}=this;return`for(${E} ${T}=${U}; ${T}<${K}; ${T}++)`+super.render(w)}get names(){const w=D(super.names,this.from);return D(w,this.to)}}class $ extends u{constructor(w,E,T,U){super(),this.loop=w,this.varKind=E,this.name=T,this.iterable=U}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iterable=V(this.iterable,w,E),this}get names(){return L(super.names,this.iterable.names)}}class k extends v{constructor(w,E,T){super(),this.name=w,this.args=E,this.async=T}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class S extends y{render(w){return"return "+super.render(w)}}S.kind="return";class P extends v{render(w){let E="try"+super.render(w);return this.catch&&(E+=this.catch.render(w)),this.finally&&(E+=this.finally.render(w)),E}optimizeNodes(){var w,E;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(w,E){var T,U;return super.optimizeNames(w,E),(T=this.catch)===null||T===void 0||T.optimizeNames(w,E),(U=this.finally)===null||U===void 0||U.optimizeNames(w,E),this}get names(){const w=super.names;return this.catch&&L(w,this.catch.names),this.finally&&L(w,this.finally.names),w}}class O extends v{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}O.kind="catch";class q extends v{render(w){return"finally"+super.render(w)}}q.kind="finally";class M{constructor(w,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
|
|
10
10
|
`:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,E){const T=this._extScope.value(w,E);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(w,E){return this._extScope.getValue(w,E)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,E,T,U){const K=this._scope.toName(E);return T!==void 0&&U&&(this._constants[K.str]=T),this._leafNode(new i(w,K,T)),K}const(w,E,T){return this._def(r.varKinds.const,w,E,T)}let(w,E,T){return this._def(r.varKinds.let,w,E,T)}var(w,E,T){return this._def(r.varKinds.var,w,E,T)}assign(w,E,T){return this._leafNode(new a(w,E,T))}add(w,E){return this._leafNode(new c(w,e.operators.ADD,E))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new b(w)),this}object(...w){const E=["{"];for(const[T,U]of w)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(w,E,T){if(this._blockNode(new m(w)),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(w){return this._elseNode(new m(w))}else(){return this._elseNode(new d)}endIf(){return this._endBlockNode(m,d)}_for(w,E){return this._blockNode(w),E&&this.code(E).endFor(),this}for(w,E){return this._for(new h(w),E)}forRange(w,E,T,U,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const X=this._scope.toName(w);return this._for(new _(K,X,E,T),()=>U(X))}forOf(w,E,T,U=r.varKinds.const){const K=this._scope.toName(w);if(this.opts.es5){const X=E instanceof t.Name?E:this.var("_arr",E);return this.forRange("_i",0,(0,t._)`${X}.length`,J=>{this.var(K,(0,t._)`${X}[${J}]`),T(K)})}return this._for(new $("of",U,K,E),()=>T(K))}forIn(w,E,T,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${E})`,T);const K=this._scope.toName(w);return this._for(new $("in",U,K,E),()=>T(K))}endFor(){return this._endBlockNode(u)}label(w){return this._leafNode(new f(w))}break(w){return this._leafNode(new l(w))}return(w){const E=new S;if(this._blockNode(E),this.code(w),E.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(w,E,T){if(!E&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new P;if(this._blockNode(U),this.code(w),E){const K=this.name("e");this._currNode=U.catch=new O(K),E(K)}return T&&(this._currNode=U.finally=new q,this.code(T)),this._endBlockNode(O,q)}throw(w){return this._leafNode(new p(w))}block(w,E){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(E),this}endBlock(w){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||w!==void 0&&T!==w)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${w} expected`);return this._nodes.length=E,this}func(w,E=t.nil,T,U){return this._blockNode(new k(w,E,T)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,E){const T=this._currNode;if(T instanceof w||E&&T instanceof E)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${E?`${w.kind}/${E.kind}`:w.kind}"`)}_elseNode(w){const E=this._currNode;if(!(E instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=E.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const E=this._nodes;E[E.length-1]=w}}e.CodeGen=M;function L(R,w){for(const E in w)R[E]=(R[E]||0)+(w[E]||0);return R}function D(R,w){return w instanceof t._CodeOrName?L(R,w.names):R}function V(R,w,E){if(R instanceof t.Name)return T(R);if(!U(R))return R;return new t._Code(R._items.reduce((K,X)=>(X instanceof t.Name&&(X=T(X)),X instanceof t._Code?K.push(...X._items):K.push(X),K),[]));function T(K){const X=E[K.str];return X===void 0||w[K.str]!==1?K:(delete w[K.str],X)}function U(K){return K instanceof t._Code&&K._items.some(X=>X instanceof t.Name&&w[X.str]===1&&E[X.str]!==void 0)}}function W(R,w){for(const E in w)R[E]=(R[E]||0)-(w[E]||0)}function Q(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${A(R)}`}e.not=Q;const Z=C(e.operators.AND);function B(...R){return R.reduce(Z)}e.and=B;const ee=C(e.operators.OR);function z(...R){return R.reduce(ee)}e.or=z;function C(R){return(w,E)=>w===t.nil?E:E===t.nil?w:(0,t._)`${A(w)} ${R} ${A(E)}`}function A(R){return R instanceof t.Name?R:(0,t._)`(${R})`}}(ts)),ts}var te={},ia;function le(){if(ia)return te;ia=1,Object.defineProperty(te,"__esModule",{value:!0}),te.checkStrictMode=te.getErrorPath=te.Type=te.useFunc=te.setEvaluated=te.evaluatedPropsToName=te.mergeEvaluated=te.eachItem=te.unescapeJsonPointer=te.escapeJsonPointer=te.escapeFragment=te.unescapeFragment=te.schemaRefOrVal=te.schemaHasRulesButRef=te.schemaHasRules=te.checkUnknownRules=te.alwaysValidSchema=te.toHash=void 0;const e=ie(),t=po();function r($){const k={};for(const S of $)k[S]=!0;return k}te.toHash=r;function n($,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o($,k),!s(k,$.self.RULES.all))}te.alwaysValidSchema=n;function o($,k=$.schema){const{opts:S,self:P}=$;if(!S.strictSchema||typeof k=="boolean")return;const O=P.RULES.keywords;for(const q in k)O[q]||_($,`unknown keyword: "${q}"`)}te.checkUnknownRules=o;function s($,k){if(typeof $=="boolean")return!$;for(const S in $)if(k[S])return!0;return!1}te.schemaHasRules=s;function i($,k){if(typeof $=="boolean")return!$;for(const S in $)if(S!=="$ref"&&k.all[S])return!0;return!1}te.schemaHasRulesButRef=i;function a({topSchemaRef:$,schemaPath:k},S,P,O){if(!O){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${$}${k}${(0,e.getProperty)(P)}`}te.schemaRefOrVal=a;function c($){return p(decodeURIComponent($))}te.unescapeFragment=c;function f($){return encodeURIComponent(l($))}te.escapeFragment=f;function l($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}te.escapeJsonPointer=l;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}te.unescapeJsonPointer=p;function b($,k){if(Array.isArray($))for(const S of $)k(S);else k($)}te.eachItem=b;function y({mergeNames:$,mergeToName:k,mergeValues:S,resultToName:P}){return(O,q,M,L)=>{const D=M===void 0?q:M instanceof e.Name?(q instanceof e.Name?$(O,q,M):k(O,q,M),M):q instanceof e.Name?(k(O,M,q),q):S(q,M);return L===e.Name&&!(D instanceof e.Name)?P(O,D):D}}te.mergeEvaluated={props:y({mergeNames:($,k,S)=>$.if((0,e._)`${S} !== true && ${k} !== undefined`,()=>{$.if((0,e._)`${k} === true`,()=>$.assign(S,!0),()=>$.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${k})`))}),mergeToName:($,k,S)=>$.if((0,e._)`${S} !== true`,()=>{k===!0?$.assign(S,!0):($.assign(S,(0,e._)`${S} || {}`),g($,S,k))}),mergeValues:($,k)=>$===!0?!0:{...$,...k},resultToName:v}),items:y({mergeNames:($,k,S)=>$.if((0,e._)`${S} !== true && ${k} !== undefined`,()=>$.assign(S,(0,e._)`${k} === true ? true : ${S} > ${k} ? ${S} : ${k}`)),mergeToName:($,k,S)=>$.if((0,e._)`${S} !== true`,()=>$.assign(S,k===!0?!0:(0,e._)`${S} > ${k} ? ${S} : ${k}`)),mergeValues:($,k)=>$===!0?!0:Math.max($,k),resultToName:($,k)=>$.var("items",k)})};function v($,k){if(k===!0)return $.var("props",!0);const S=$.var("props",(0,e._)`{}`);return k!==void 0&&g($,S,k),S}te.evaluatedPropsToName=v;function g($,k,S){Object.keys(S).forEach(P=>$.assign((0,e._)`${k}${(0,e.getProperty)(P)}`,!0))}te.setEvaluated=g;const d={};function m($,k){return $.scopeValue("func",{ref:k,code:d[k.code]||(d[k.code]=new t._Code(k.code))})}te.useFunc=m;var u;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(u||(te.Type=u={}));function h($,k,S){if($ instanceof e.Name){const P=k===u.Num;return S?P?(0,e._)`"[" + ${$} + "]"`:(0,e._)`"['" + ${$} + "']"`:P?(0,e._)`"/" + ${$}`:(0,e._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)($).toString():"/"+l($)}te.getErrorPath=h;function _($,k,S=$.opts.strictSchema){if(S){if(k=`strict mode: ${k}`,S===!0)throw new Error(k);$.self.logger.warn(k)}}return te.checkStrictMode=_,te}var xr={},aa;function ft(){if(aa)return xr;aa=1,Object.defineProperty(xr,"__esModule",{value:!0});const e=ie(),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 xr.default=t,xr}var ca;function To(){return ca||(ca=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=ie(),r=le(),n=ft();e.keywordError={message:({keyword:d})=>(0,t.str)`must pass "${d}" keyword validation`},e.keyword$DataError={message:({keyword:d,schemaType:m})=>m?(0,t.str)`"${d}" keyword must be ${m} ($data)`:(0,t.str)`"${d}" keyword is invalid ($data)`};function o(d,m=e.keywordError,u,h){const{it:_}=d,{gen:$,compositeRule:k,allErrors:S}=_,P=p(d,m,u);h??(k||S)?c($,P):f(_,(0,t._)`[${P}]`)}e.reportError=o;function s(d,m=e.keywordError,u){const{it:h}=d,{gen:_,compositeRule:$,allErrors:k}=h,S=p(d,m,u);c(_,S),$||k||f(h,n.default.vErrors)}e.reportExtraError=s;function i(d,m){d.assign(n.default.errors,m),d.if((0,t._)`${n.default.vErrors} !== null`,()=>d.if(m,()=>d.assign((0,t._)`${n.default.vErrors}.length`,m),()=>d.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function a({gen:d,keyword:m,schemaValue:u,data:h,errsCount:_,it:$}){if(_===void 0)throw new Error("ajv implementation error");const k=d.name("err");d.forRange("i",_,n.default.errors,S=>{d.const(k,(0,t._)`${n.default.vErrors}[${S}]`),d.if((0,t._)`${k}.instancePath === undefined`,()=>d.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,$.errorPath))),d.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${$.errSchemaPath}/${m}`),$.opts.verbose&&(d.assign((0,t._)`${k}.schema`,u),d.assign((0,t._)`${k}.data`,h))})}e.extendErrors=a;function c(d,m){const u=d.const("err",m);d.if((0,t._)`${n.default.vErrors} === null`,()=>d.assign(n.default.vErrors,(0,t._)`[${u}]`),(0,t._)`${n.default.vErrors}.push(${u})`),d.code((0,t._)`${n.default.errors}++`)}function f(d,m){const{gen:u,validateName:h,schemaEnv:_}=d;_.$async?u.throw((0,t._)`new ${d.ValidationError}(${m})`):(u.assign((0,t._)`${h}.errors`,m),u.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,m,u){const{createErrors:h}=d.it;return h===!1?(0,t._)`{}`:b(d,m,u)}function b(d,m,u={}){const{gen:h,it:_}=d,$=[y(_,u),v(d,u)];return g(d,m,$),h.object(...$)}function y({errorPath:d},{instancePath:m}){const u=m?(0,t.str)`${d}${(0,r.getErrorPath)(m,r.Type.Str)}`:d;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,u)]}function v({keyword:d,it:{errSchemaPath:m}},{schemaPath:u,parentSchema:h}){let _=h?m:(0,t.str)`${m}/${d}`;return u&&(_=(0,t.str)`${_}${(0,r.getErrorPath)(u,r.Type.Str)}`),[l.schemaPath,_]}function g(d,{params:m,message:u},h){const{keyword:_,data:$,schemaValue:k,it:S}=d,{opts:P,propertyName:O,topSchemaRef:q,schemaPath:M}=S;h.push([l.keyword,_],[l.params,typeof m=="function"?m(d):m||(0,t._)`{}`]),P.messages&&h.push([l.message,typeof u=="function"?u(d):u]),P.verbose&&h.push([l.schema,k],[l.parentSchema,(0,t._)`${q}${M}`],[n.default.data,$]),O&&h.push([l.propertyName,O])}}(es)),es}var la;function Bh(){if(la)return gt;la=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.boolOrEmptySchema=gt.topBoolOrEmptySchema=void 0;const e=To(),t=ie(),r=ft(),n={message:"boolean schema is false"};function o(a){const{gen:c,schema:f,validateName:l}=a;f===!1?i(a,!1):typeof f=="object"&&f.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${l}.errors`,null),c.return(!0))}gt.topBoolOrEmptySchema=o;function s(a,c){const{gen:f,schema:l}=a;l===!1?(f.var(c,!1),i(a)):f.var(c,!0)}gt.boolOrEmptySchema=s;function i(a,c){const{gen:f,data:l}=a,p={gen:f,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(p,n,void 0,c)}return gt}var Se={},yt={},ua;function ff(){if(ua)return yt;ua=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.getRules=yt.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)}yt.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 yt.getRules=n,yt}var Xe={},fa;function df(){if(fa)return Xe;fa=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.shouldUseRule=Xe.shouldUseGroup=Xe.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const i=o.RULES.types[s];return i&&i!==!0&&t(n,i)}Xe.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}Xe.shouldUseGroup=t;function r(n,o){var s;return n[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(i=>n[i]!==void 0))}return Xe.shouldUseRule=r,Xe}var da;function ho(){if(da)return Se;da=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.reportTypeError=Se.checkDataTypes=Se.checkDataType=Se.coerceAndCheckDataType=Se.getJSONTypes=Se.getSchemaTypes=Se.DataType=void 0;const e=ff(),t=df(),r=To(),n=ie(),o=le();var s;(function(u){u[u.Correct=0]="Correct",u[u.Wrong=1]="Wrong"})(s||(Se.DataType=s={}));function i(u){const h=a(u.type);if(h.includes("null")){if(u.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!h.length&&u.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');u.nullable===!0&&h.push("null")}return h}Se.getSchemaTypes=i;function a(u){const h=Array.isArray(u)?u:u?[u]:[];if(h.every(e.isJSONType))return h;throw new Error("type must be JSONType or JSONType[]: "+h.join(","))}Se.getJSONTypes=a;function c(u,h){const{gen:_,data:$,opts:k}=u,S=l(h,k.coerceTypes),P=h.length>0&&!(S.length===0&&h.length===1&&(0,t.schemaHasRulesForType)(u,h[0]));if(P){const O=v(h,$,k.strictNumbers,s.Wrong);_.if(O,()=>{S.length?p(u,h,S):d(u)})}return P}Se.coerceAndCheckDataType=c;const f=new Set(["string","number","integer","boolean","null"]);function l(u,h){return h?u.filter(_=>f.has(_)||h==="array"&&_==="array"):[]}function p(u,h,_){const{gen:$,data:k,opts:S}=u,P=$.let("dataType",(0,n._)`typeof ${k}`),O=$.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&$.if((0,n._)`${P} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>$.assign(k,(0,n._)`${k}[0]`).assign(P,(0,n._)`typeof ${k}`).if(v(h,k,S.strictNumbers),()=>$.assign(O,k))),$.if((0,n._)`${O} !== undefined`);for(const M of _)(f.has(M)||M==="array"&&S.coerceTypes==="array")&&q(M);$.else(),d(u),$.endIf(),$.if((0,n._)`${O} !== undefined`,()=>{$.assign(k,O),b(u,O)});function q(M){switch(M){case"string":$.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(O,(0,n._)`"" + ${k}`).elseIf((0,n._)`${k} === null`).assign(O,(0,n._)`""`);return;case"number":$.elseIf((0,n._)`${P} == "boolean" || ${k} === null
|
|
11
11
|
|| (${P} == "string" && ${k} && ${k} == +${k})`).assign(O,(0,n._)`+${k}`);return;case"integer":$.elseIf((0,n._)`${P} === "boolean" || ${k} === null
|
|
12
12
|
|| (${P} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(O,(0,n._)`+${k}`);return;case"boolean":$.elseIf((0,n._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(O,!1).elseIf((0,n._)`${k} === "true" || ${k} === 1`).assign(O,!0);return;case"null":$.elseIf((0,n._)`${k} === "" || ${k} === 0 || ${k} === false`),$.assign(O,null);return;case"array":$.elseIf((0,n._)`${P} === "string" || ${P} === "number"
|
|
@@ -20,7 +20,7 @@ ${y}`),`${y}
|
|
|
20
20
|
|| ${P} === "boolean" || ${k} === null`).assign(O,(0,n._)`[${k}]`)}}}function b({gen:u,parentData:h,parentDataProperty:_},$){u.if((0,n._)`${h} !== undefined`,()=>u.assign((0,n._)`${h}[${_}]`,$))}function y(u,h,_,$=s.Correct){const k=$===s.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(u){case"null":return(0,n._)`${h} ${k} null`;case"array":S=(0,n._)`Array.isArray(${h})`;break;case"object":S=(0,n._)`${h} && typeof ${h} == "object" && !Array.isArray(${h})`;break;case"integer":S=P((0,n._)`!(${h} % 1) && !isNaN(${h})`);break;case"number":S=P();break;default:return(0,n._)`typeof ${h} ${k} ${u}`}return $===s.Correct?S:(0,n.not)(S);function P(O=n.nil){return(0,n.and)((0,n._)`typeof ${h} == "number"`,O,_?(0,n._)`isFinite(${h})`:n.nil)}}Ee.checkDataType=y;function v(u,h,_,$){if(u.length===1)return y(u[0],h,_,$);let k;const S=(0,o.toHash)(u);if(S.array&&S.object){const P=(0,n._)`typeof ${h} != "object"`;k=S.null?P:(0,n._)`!${h} || ${P}`,delete S.null,delete S.array,delete S.object}else k=n.nil;S.number&&delete S.integer;for(const P in S)k=(0,n.and)(k,y(P,h,_,$));return k}Ee.checkDataTypes=v;const g={message:({schema:u})=>`must be ${u}`,params:({schema:u,schemaValue:h})=>typeof u=="string"?(0,n._)`{type: ${u}}`:(0,n._)`{type: ${h}}`};function d(u){const h=m(u);(0,r.reportError)(h,g)}Ee.reportTypeError=d;function m(u){const{gen:h,data:_,schema:$}=u,k=(0,o.schemaRefOrVal)(u,$,"type");return{gen:h,keyword:"type",data:_,schema:$.type,schemaCode:k,schemaValue:k,parentSchema:$,params:{},it:u}}return Ee}var Yt={},Cc;function n0(){if(Cc)return Yt;Cc=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.assignDefaults=void 0;const e=oe(),t=ue();function r(o,s){const{properties:i,items:a}=o.schema;if(s==="object"&&i)for(const c in i)n(o,c,i[c].default);else s==="array"&&Array.isArray(a)&&a.forEach((c,f)=>n(o,f,c.default))}Yt.assignDefaults=r;function n(o,s,i){const{gen:a,compositeRule:c,data:f,opts:l}=o;if(i===void 0)return;const p=(0,e._)`${f}${(0,e.getProperty)(s)}`;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)(i)}`)}return Yt}var De={},he={},jc;function Ke(){if(jc)return he;jc=1,Object.defineProperty(he,"__esModule",{value:!0}),he.validateUnion=he.validateArray=he.usePattern=he.callValidateCode=he.schemaProperties=he.allSchemaProperties=he.noPropertyInData=he.propertyInData=he.isOwnProperty=he.hasPropFunc=he.reportMissingProp=he.checkMissingProp=he.checkReportMissingProp=void 0;const e=oe(),t=ue(),r=dt(),n=ue();function o(u,h){const{gen:_,data:$,it:k}=u;_.if(l(_,$,h,k.opts.ownProperties),()=>{u.setParams({missingProperty:(0,e._)`${h}`},!0),u.error()})}he.checkReportMissingProp=o;function s({gen:u,data:h,it:{opts:_}},$,k){return(0,e.or)(...$.map(S=>(0,e.and)(l(u,h,S,_.ownProperties),(0,e._)`${k} = ${S}`)))}he.checkMissingProp=s;function i(u,h){u.setParams({missingProperty:h},!0),u.error()}he.reportMissingProp=i;function a(u){return u.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}he.hasPropFunc=a;function c(u,h,_){return(0,e._)`${a(u)}.call(${h}, ${_})`}he.isOwnProperty=c;function f(u,h,_,$){const k=(0,e._)`${h}${(0,e.getProperty)(_)} !== undefined`;return $?(0,e._)`${k} && ${c(u,h,_)}`:k}he.propertyInData=f;function l(u,h,_,$){const k=(0,e._)`${h}${(0,e.getProperty)(_)} === undefined`;return $?(0,e.or)(k,(0,e.not)(c(u,h,_))):k}he.noPropertyInData=l;function p(u){return u?Object.keys(u).filter(h=>h!=="__proto__"):[]}he.allSchemaProperties=p;function b(u,h){return p(h).filter(_=>!(0,t.alwaysValidSchema)(u,h[_]))}he.schemaProperties=b;function y({schemaCode:u,data:h,it:{gen:_,topSchemaRef:$,schemaPath:k,errorPath:S},it:P},O,q,M){const L=M?(0,e._)`${u}, ${h}, ${$}${k}`:h,D=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&D.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const V=(0,e._)`${L}, ${_.object(...D)}`;return q!==e.nil?(0,e._)`${O}.call(${q}, ${V})`:(0,e._)`${O}(${V})`}he.callValidateCode=y;const v=(0,e._)`new RegExp`;function g({gen:u,it:{opts:h}},_){const $=h.unicodeRegExp?"u":"",{regExp:k}=h.code,S=k(_,$);return u.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${k.code==="new RegExp"?v:(0,n.useFunc)(u,k)}(${_}, ${$})`})}he.usePattern=g;function d(u){const{gen:h,data:_,keyword:$,it:k}=u,S=h.name("valid");if(k.allErrors){const O=h.let("valid",!0);return P(()=>h.assign(O,!1)),O}return h.var(S,!0),P(()=>h.break()),S;function P(O){const q=h.const("len",(0,e._)`${_}.length`);h.forRange("i",0,q,M=>{u.subschema({keyword:$,dataProp:M,dataPropType:t.Type.Num},S),h.if((0,e.not)(S),O)})}}he.validateArray=d;function m(u){const{gen:h,schema:_,keyword:$,it:k}=u;if(!Array.isArray(_))throw new Error("ajv implementation error");if(_.some(q=>(0,t.alwaysValidSchema)(k,q))&&!k.opts.unevaluated)return;const P=h.let("valid",!1),O=h.name("_valid");h.block(()=>_.forEach((q,M)=>{const L=u.subschema({keyword:$,schemaProp:M,compositeRule:!0},O);h.assign(P,(0,e._)`${P} || ${O}`),u.mergeValidEvaluated(L,O)||h.if((0,e.not)(P))})),u.result(P,()=>u.reset(),()=>u.error(!0))}return he.validateUnion=m,he}var Rc;function o0(){if(Rc)return De;Rc=1,Object.defineProperty(De,"__esModule",{value:!0}),De.validateKeywordUsage=De.validSchemaType=De.funcKeywordCode=De.macroKeywordCode=void 0;const e=oe(),t=dt(),r=Ke(),n=zo();function o(b,y){const{gen:v,keyword:g,schema:d,parentSchema:m,it:u}=b,h=y.macro.call(u.self,d,m,u),_=f(v,g,h);u.opts.validateSchema!==!1&&u.self.validateSchema(h,!0);const $=v.name("valid");b.subschema({schema:h,schemaPath:e.nil,errSchemaPath:`${u.errSchemaPath}/${g}`,topSchemaRef:_,compositeRule:!0},$),b.pass($,()=>b.error(!0))}De.macroKeywordCode=o;function s(b,y){var v;const{gen:g,keyword:d,schema:m,parentSchema:u,$data:h,it:_}=b;c(_,y);const $=!h&&y.compile?y.compile.call(_.self,m,u,_):y.validate,k=f(g,d,$),S=g.let("valid");b.block$data(S,P),b.ok((v=y.valid)!==null&&v!==void 0?v:S);function P(){if(y.errors===!1)M(),y.modifying&&i(b),L(()=>b.error());else{const D=y.async?O():q();y.modifying&&i(b),L(()=>a(b,D))}}function O(){const D=g.let("ruleErrs",null);return g.try(()=>M((0,e._)`await `),V=>g.assign(S,!1).if((0,e._)`${V} instanceof ${_.ValidationError}`,()=>g.assign(D,(0,e._)`${V}.errors`),()=>g.throw(V))),D}function q(){const D=(0,e._)`${k}.errors`;return g.assign(D,null),M(e.nil),D}function M(D=y.async?(0,e._)`await `:e.nil){const V=_.opts.passContext?t.default.this:t.default.self,W=!("compile"in y&&!h||y.schema===!1);g.assign(S,(0,e._)`${D}${(0,r.callValidateCode)(b,k,V,W)}`,y.modifying)}function L(D){var V;g.if((0,e.not)((V=y.valid)!==null&&V!==void 0?V:S),D)}}De.funcKeywordCode=s;function i(b){const{gen:y,data:v,it:g}=b;y.if(g.parentData,()=>y.assign(v,(0,e._)`${g.parentData}[${g.parentDataProperty}]`))}function a(b,y){const{gen:v}=b;v.if((0,e._)`Array.isArray(${y})`,()=>{v.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(b)},()=>b.error())}function c({schemaEnv:b},y){if(y.async&&!b.$async)throw new Error("async keyword in sync schema")}function f(b,y,v){if(v===void 0)throw new Error(`keyword "${y}" failed to compile`);return b.scopeValue("keyword",typeof v=="function"?{ref:v}:{ref:v,code:(0,e.stringify)(v)})}function l(b,y,v=!1){return!y.length||y.some(g=>g==="array"?Array.isArray(b):g==="object"?b&&typeof b=="object"&&!Array.isArray(b):typeof b==g||v&&typeof b>"u")}De.validSchemaType=l;function p({schema:b,opts:y,self:v,errSchemaPath:g},d,m){if(Array.isArray(d.keyword)?!d.keyword.includes(m):d.keyword!==m)throw new Error("ajv implementation error");const u=d.dependencies;if(u?.some(h=>!Object.prototype.hasOwnProperty.call(b,h)))throw new Error(`parent schema must have dependencies of ${m}: ${u.join(",")}`);if(d.validateSchema&&!d.validateSchema(b[m])){const _=`keyword "${m}" value is invalid at path "${g}": `+v.errorsText(d.validateSchema.errors);if(y.validateSchema==="log")v.logger.error(_);else throw new Error(_)}}return De.validateKeywordUsage=p,De}var et={},Oc;function s0(){if(Oc)return et;Oc=1,Object.defineProperty(et,"__esModule",{value:!0}),et.extendSubschemaMode=et.extendSubschemaData=et.getSubschema=void 0;const e=oe(),t=ue();function r(s,{keyword:i,schemaProp:a,schema:c,schemaPath:f,errSchemaPath:l,topSchemaRef:p}){if(i!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const b=s.schema[i];return a===void 0?{schema:b,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${s.errSchemaPath}/${i}`}:{schema:b[a],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${i}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(f===void 0||l===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:f,topSchemaRef:p,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}et.getSubschema=r;function n(s,i,{dataProp:a,dataPropType:c,data:f,dataTypes:l,propertyName:p}){if(f!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:b}=i;if(a!==void 0){const{errorPath:v,dataPathArr:g,opts:d}=i,m=b.let("data",(0,e._)`${i.data}${(0,e.getProperty)(a)}`,!0);y(m),s.errorPath=(0,e.str)`${v}${(0,t.getErrorPath)(a,c,d.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${a}`,s.dataPathArr=[...g,s.parentDataProperty]}if(f!==void 0){const v=f instanceof e.Name?f:b.let("data",f,!0);y(v),p!==void 0&&(s.propertyName=p)}l&&(s.dataTypes=l);function y(v){s.data=v,s.dataLevel=i.dataLevel+1,s.dataTypes=[],i.definedProperties=new Set,s.parentData=i.data,s.dataNames=[...i.dataNames,v]}}et.extendSubschemaData=n;function o(s,{jtdDiscriminator:i,jtdMetadata:a,compositeRule:c,createErrors:f,allErrors:l}){c!==void 0&&(s.compositeRule=c),f!==void 0&&(s.createErrors=f),l!==void 0&&(s.allErrors=l),s.jtdDiscriminator=i,s.jtdMetadata=a}return et.extendSubschemaMode=o,et}var je={},ys={exports:{}},Tc;function i0(){if(Tc)return ys.exports;Tc=1;var e=ys.exports=function(n,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var i=typeof s=="function"?s:s.pre||function(){},a=s.post||function(){};t(o,i,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,s,i,a,c,f,l,p,b){if(i&&typeof i=="object"&&!Array.isArray(i)){o(i,a,c,f,l,p,b);for(var y in i){var v=i[y];if(Array.isArray(v)){if(y in e.arrayKeywords)for(var g=0;g<v.length;g++)t(n,o,s,v[g],a+"/"+y+"/"+g,c,a,y,i,g)}else if(y in e.propsKeywords){if(v&&typeof v=="object")for(var d in v)t(n,o,s,v[d],a+"/"+y+"/"+r(d),c,a,y,i,d)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,o,s,v,a+"/"+y,c,a,y,i)}s(i,a,c,f,l,p,b)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return ys.exports}var Nc;function qo(){if(Nc)return je;Nc=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;const e=ue(),t=No(),r=i0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(g,d=!0){return typeof g=="boolean"?!0:d===!0?!i(g):d?a(g)<=d:!1}je.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(g){for(const d in g){if(s.has(d))return!0;const m=g[d];if(Array.isArray(m)&&m.some(i)||typeof m=="object"&&i(m))return!0}return!1}function a(g){let d=0;for(const m in g){if(m==="$ref")return 1/0;if(d++,!n.has(m)&&(typeof g[m]=="object"&&(0,e.eachItem)(g[m],u=>d+=a(u)),d===1/0))return 1/0}return d}function c(g,d="",m){m!==!1&&(d=p(d));const u=g.parse(d);return f(g,u)}je.getFullPath=c;function f(g,d){return g.serialize(d).split("#")[0]+"#"}je._getFullPath=f;const l=/#\/?$/;function p(g){return g?g.replace(l,""):""}je.normalizeId=p;function b(g,d,m){return m=p(m),g.resolve(d,m)}je.resolveUrl=b;const y=/^[a-z_][-a-z0-9._]*$/i;function v(g,d){if(typeof g=="boolean")return{};const{schemaId:m,uriResolver:u}=this.opts,h=p(g[m]||d),_={"":h},$=c(u,h,!1),k={},S=new Set;return r(g,{allKeys:!0},(q,M,L,D)=>{if(D===void 0)return;const V=$+M;let W=_[D];typeof q[m]=="string"&&(W=Q.call(this,q[m])),Z.call(this,q.$anchor),Z.call(this,q.$dynamicAnchor),_[M]=W;function Q(B){const ee=this.opts.uriResolver.resolve;if(B=p(W?ee(W,B):B),S.has(B))throw O(B);S.add(B);let z=this.refs[B];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(q,z.schema,B):B!==p(V)&&(B[0]==="#"?(P(q,k[B],B),k[B]=q):this.refs[B]=V),B}function Z(B){if(typeof B=="string"){if(!y.test(B))throw new Error(`invalid anchor "${B}"`);Q.call(this,`#${B}`)}}}),k;function P(q,M,L){if(M!==void 0&&!t(q,M))throw O(L)}function O(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return je.getSchemaRefs=v,je}var Ac;function Fo(){if(Ac)return Qe;Ac=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.getData=Qe.KeywordCxt=Qe.validateFunctionCode=void 0;const e=r0(),t=go(),r=bf(),n=go(),o=n0(),s=o0(),i=s0(),a=oe(),c=dt(),f=qo(),l=ue(),p=zo();function b(x){if($(x)&&(S(x),_(x))){d(x);return}y(x,()=>(0,e.topBoolOrEmptySchema)(x))}Qe.validateFunctionCode=b;function y({gen:x,validateName:j,schema:N,schemaEnv:F,opts:H},G){H.code.es5?x.func(j,(0,a._)`${c.default.data}, ${c.default.valCxt}`,F.$async,()=>{x.code((0,a._)`"use strict"; ${u(N,H)}`),g(x,H),x.code(G)}):x.func(j,(0,a._)`${c.default.data}, ${v(H)}`,F.$async,()=>x.code(u(N,H)).code(G))}function v(x){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${x.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function g(x,j){x.if(c.default.valCxt,()=>{x.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),x.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),x.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),x.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),j.dynamicRef&&x.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{x.var(c.default.instancePath,(0,a._)`""`),x.var(c.default.parentData,(0,a._)`undefined`),x.var(c.default.parentDataProperty,(0,a._)`undefined`),x.var(c.default.rootData,c.default.data),j.dynamicRef&&x.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function d(x){const{schema:j,opts:N,gen:F}=x;y(x,()=>{N.$comment&&j.$comment&&D(x),q(x),F.let(c.default.vErrors,null),F.let(c.default.errors,0),N.unevaluated&&m(x),P(x),V(x)})}function m(x){const{gen:j,validateName:N}=x;x.evaluated=j.const("evaluated",(0,a._)`${N}.evaluated`),j.if((0,a._)`${x.evaluated}.dynamicProps`,()=>j.assign((0,a._)`${x.evaluated}.props`,(0,a._)`undefined`)),j.if((0,a._)`${x.evaluated}.dynamicItems`,()=>j.assign((0,a._)`${x.evaluated}.items`,(0,a._)`undefined`))}function u(x,j){const N=typeof x=="object"&&x[j.schemaId];return N&&(j.code.source||j.code.process)?(0,a._)`/*# sourceURL=${N} */`:a.nil}function h(x,j){if($(x)&&(S(x),_(x))){k(x,j);return}(0,e.boolOrEmptySchema)(x,j)}function _({schema:x,self:j}){if(typeof x=="boolean")return!x;for(const N in x)if(j.RULES.all[N])return!0;return!1}function $(x){return typeof x.schema!="boolean"}function k(x,j){const{schema:N,gen:F,opts:H}=x;H.$comment&&N.$comment&&D(x),M(x),L(x);const G=F.const("_errs",c.default.errors);P(x,G),F.var(j,(0,a._)`${G} === ${c.default.errors}`)}function S(x){(0,l.checkUnknownRules)(x),O(x)}function P(x,j){if(x.opts.jtd)return Q(x,[],!1,j);const N=(0,t.getSchemaTypes)(x.schema),F=(0,t.coerceAndCheckDataType)(x,N);Q(x,N,!F,j)}function O(x){const{schema:j,errSchemaPath:N,opts:F,self:H}=x;j.$ref&&F.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(j,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${N}"`)}function q(x){const{schema:j,opts:N}=x;j.default!==void 0&&N.useDefaults&&N.strictSchema&&(0,l.checkStrictMode)(x,"default is ignored in the schema root")}function M(x){const j=x.schema[x.opts.schemaId];j&&(x.baseId=(0,f.resolveUrl)(x.opts.uriResolver,x.baseId,j))}function L(x){if(x.schema.$async&&!x.schemaEnv.$async)throw new Error("async schema in sync schema")}function D({gen:x,schemaEnv:j,schema:N,errSchemaPath:F,opts:H}){const G=N.$comment;if(H.$comment===!0)x.code((0,a._)`${c.default.self}.logger.log(${G})`);else if(typeof H.$comment=="function"){const ae=(0,a.str)`${F}/$comment`,ye=x.scopeValue("root",{ref:j.root});x.code((0,a._)`${c.default.self}.opts.$comment(${G}, ${ae}, ${ye}.schema)`)}}function V(x){const{gen:j,schemaEnv:N,validateName:F,ValidationError:H,opts:G}=x;N.$async?j.if((0,a._)`${c.default.errors} === 0`,()=>j.return(c.default.data),()=>j.throw((0,a._)`new ${H}(${c.default.vErrors})`)):(j.assign((0,a._)`${F}.errors`,c.default.vErrors),G.unevaluated&&W(x),j.return((0,a._)`${c.default.errors} === 0`))}function W({gen:x,evaluated:j,props:N,items:F}){N instanceof a.Name&&x.assign((0,a._)`${j}.props`,N),F instanceof a.Name&&x.assign((0,a._)`${j}.items`,F)}function Q(x,j,N,F){const{gen:H,schema:G,data:ae,allErrors:ye,opts:fe,self:de}=x,{RULES:ce}=de;if(G.$ref&&(fe.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(G,ce))){H.block(()=>U(x,"$ref",ce.all.$ref.definition));return}fe.jtd||B(x,j),H.block(()=>{for(const me of ce.rules)Te(me);Te(ce.post)});function Te(me){(0,r.shouldUseGroup)(G,me)&&(me.type?(H.if((0,n.checkDataType)(me.type,ae,fe.strictNumbers)),Z(x,me),j.length===1&&j[0]===me.type&&N&&(H.else(),(0,n.reportTypeError)(x)),H.endIf()):Z(x,me),ye||H.if((0,a._)`${c.default.errors} === ${F||0}`))}}function Z(x,j){const{gen:N,schema:F,opts:{useDefaults:H}}=x;H&&(0,o.assignDefaults)(x,j.type),N.block(()=>{for(const G of j.rules)(0,r.shouldUseRule)(F,G)&&U(x,G.keyword,G.definition,j.type)})}function B(x,j){x.schemaEnv.meta||!x.opts.strictTypes||(ee(x,j),x.opts.allowUnionTypes||z(x,j),C(x,x.dataTypes))}function ee(x,j){if(j.length){if(!x.dataTypes.length){x.dataTypes=j;return}j.forEach(N=>{R(x.dataTypes,N)||E(x,`type "${N}" not allowed by context "${x.dataTypes.join(",")}"`)}),w(x,j)}}function z(x,j){j.length>1&&!(j.length===2&&j.includes("null"))&&E(x,"use allowUnionTypes to allow union type keyword")}function C(x,j){const N=x.self.RULES.all;for(const F in N){const H=N[F];if(typeof H=="object"&&(0,r.shouldUseRule)(x.schema,H)){const{type:G}=H.definition;G.length&&!G.some(ae=>A(j,ae))&&E(x,`missing type "${G.join(",")}" for keyword "${F}"`)}}}function A(x,j){return x.includes(j)||j==="number"&&x.includes("integer")}function R(x,j){return x.includes(j)||j==="integer"&&x.includes("number")}function w(x,j){const N=[];for(const F of x.dataTypes)R(j,F)?N.push(F):j.includes("integer")&&F==="number"&&N.push("integer");x.dataTypes=N}function E(x,j){const N=x.schemaEnv.baseId+x.errSchemaPath;j+=` at "${N}" (strictTypes)`,(0,l.checkStrictMode)(x,j,x.opts.strictTypes)}class T{constructor(j,N,F){if((0,s.validateKeywordUsage)(j,N,F),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=F,this.data=j.data,this.schema=j.schema[F],this.$data=N.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(j,this.schema,F,this.$data),this.schemaType=N.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=N,this.$data)this.schemaCode=j.gen.const("vSchema",J(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,N.schemaType,N.allowUndefined))throw new Error(`${F} value must be ${JSON.stringify(N.schemaType)}`);("code"in N?N.trackErrors:N.errors!==!1)&&(this.errsCount=j.gen.const("_errs",c.default.errors))}result(j,N,F){this.failResult((0,a.not)(j),N,F)}failResult(j,N,F){this.gen.if(j),F?F():this.error(),N?(this.gen.else(),N(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,N){this.failResult((0,a.not)(j),void 0,N)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:N}=this;this.fail((0,a._)`${N} !== undefined && (${(0,a.or)(this.invalid$data(),j)})`)}error(j,N,F){if(N){this.setParams(N),this._error(j,F),this.setParams({});return}this._error(j,F)}_error(j,N){(j?p.reportExtraError:p.reportError)(this,this.def.error,N)}$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(j){this.allErrors||this.gen.if(j)}setParams(j,N){N?Object.assign(this.params,j):this.params=j}block$data(j,N,F=a.nil){this.gen.block(()=>{this.check$data(j,F),N()})}check$data(j=a.nil,N=a.nil){if(!this.$data)return;const{gen:F,schemaCode:H,schemaType:G,def:ae}=this;F.if((0,a.or)((0,a._)`${H} === undefined`,N)),j!==a.nil&&F.assign(j,!0),(G.length||ae.validateSchema)&&(F.elseIf(this.invalid$data()),this.$dataError(),j!==a.nil&&F.assign(j,!1)),F.else()}invalid$data(){const{gen:j,schemaCode:N,schemaType:F,def:H,it:G}=this;return(0,a.or)(ae(),ye());function ae(){if(F.length){if(!(N instanceof a.Name))throw new Error("ajv implementation error");const fe=Array.isArray(F)?F:[F];return(0,a._)`${(0,n.checkDataTypes)(fe,N,G.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ye(){if(H.validateSchema){const fe=j.scopeValue("validate$data",{ref:H.validateSchema});return(0,a._)`!${fe}(${N})`}return a.nil}}subschema(j,N){const F=(0,i.getSubschema)(this.it,j);(0,i.extendSubschemaData)(F,this.it,j),(0,i.extendSubschemaMode)(F,j);const H={...this.it,...F,items:void 0,props:void 0};return h(H,N),H}mergeEvaluated(j,N){const{it:F,gen:H}=this;F.opts.unevaluated&&(F.props!==!0&&j.props!==void 0&&(F.props=l.mergeEvaluated.props(H,j.props,F.props,N)),F.items!==!0&&j.items!==void 0&&(F.items=l.mergeEvaluated.items(H,j.items,F.items,N)))}mergeValidEvaluated(j,N){const{it:F,gen:H}=this;if(F.opts.unevaluated&&(F.props!==!0||F.items!==!0))return H.if(N,()=>this.mergeEvaluated(j,a.Name)),!0}}Qe.KeywordCxt=T;function U(x,j,N,F){const H=new T(x,N,j);"code"in N?N.code(H,F):H.$data&&N.validate?(0,s.funcKeywordCode)(H,N):"macro"in N?(0,s.macroKeywordCode)(H,N):(N.compile||N.validate)&&(0,s.funcKeywordCode)(H,N)}const K=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function J(x,{dataLevel:j,dataNames:N,dataPathArr:F}){let H,G;if(x==="")return c.default.rootData;if(x[0]==="/"){if(!K.test(x))throw new Error(`Invalid JSON-pointer: ${x}`);H=x,G=c.default.rootData}else{const de=X.exec(x);if(!de)throw new Error(`Invalid JSON-pointer: ${x}`);const ce=+de[1];if(H=de[2],H==="#"){if(ce>=j)throw new Error(fe("property/index",ce));return F[j-ce]}if(ce>j)throw new Error(fe("data",ce));if(G=N[j-ce],!H)return G}let ae=G;const ye=H.split("/");for(const de of ye)de&&(G=(0,a._)`${G}${(0,a.getProperty)((0,l.unescapeJsonPointer)(de))}`,ae=(0,a._)`${ae} && ${G}`);return ae;function fe(de,ce){return`Cannot access ${de} ${ce} levels up, current level is ${j}`}}return Qe.getData=J,Qe}var pn={},Ic;function di(){if(Ic)return pn;Ic=1,Object.defineProperty(pn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return pn.default=e,pn}var hn={},Mc;function Do(){if(Mc)return hn;Mc=1,Object.defineProperty(hn,"__esModule",{value:!0});const e=qo();class t extends Error{constructor(n,o,s,i){super(i||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return hn.default=t,hn}var Ae={},zc;function pi(){if(zc)return Ae;zc=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.resolveSchema=Ae.getCompilingSchema=Ae.resolveRef=Ae.compileSchema=Ae.SchemaEnv=void 0;const e=oe(),t=di(),r=dt(),n=qo(),o=ue(),s=Fo();class i{constructor(m){var u;this.refs={},this.dynamicAnchors={};let h;typeof m.schema=="object"&&(h=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(u=m.baseId)!==null&&u!==void 0?u:(0,n.normalizeId)(h?.[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=h?.$async,this.refs={}}}Ae.SchemaEnv=i;function a(d){const m=l.call(this,d);if(m)return m;const u=(0,n.getFullPath)(this.opts.uriResolver,d.root.baseId),{es5:h,lines:_}=this.opts.code,{ownProperties:$}=this.opts,k=new e.CodeGen(this.scope,{es5:h,lines:_,ownProperties:$});let S;d.$async&&(S=k.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=k.scopeName("validate");d.validateName=P;const O={gen:k,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:k.scopeValue("schema",this.opts.code.source===!0?{ref:d.schema,code:(0,e.stringify)(d.schema)}:{ref:d.schema}),validateName:P,ValidationError:S,schema:d.schema,schemaEnv:d,rootId:u,baseId:d.baseId||u,schemaPath:e.nil,errSchemaPath:d.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(d),(0,s.validateFunctionCode)(O),k.optimize(this.opts.code.optimize);const M=k.toString();q=`${k.scopeRefs(r.default.scope)}return ${M}`,this.opts.code.process&&(q=this.opts.code.process(q,d));const D=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(P,{ref:D}),D.errors=null,D.schema=d.schema,D.schemaEnv=d,d.$async&&(D.$async=!0),this.opts.code.source===!0&&(D.source={validateName:P,validateCode:M,scopeValues:k._values}),this.opts.unevaluated){const{props:V,items:W}=O;D.evaluated={props:V instanceof e.Name?void 0:V,items:W instanceof e.Name?void 0:W,dynamicProps:V instanceof e.Name,dynamicItems:W instanceof e.Name},D.source&&(D.source.evaluated=(0,e.stringify)(D.evaluated))}return d.validate=D,d}catch(M){throw delete d.validate,delete d.validateName,q&&this.logger.error("Error compiling schema, function code:",q),M}finally{this._compilations.delete(d)}}Ae.compileSchema=a;function c(d,m,u){var h;u=(0,n.resolveUrl)(this.opts.uriResolver,m,u);const _=d.refs[u];if(_)return _;let $=b.call(this,d,u);if($===void 0){const k=(h=d.localRefs)===null||h===void 0?void 0:h[u],{schemaId:S}=this.opts;k&&($=new i({schema:k,schemaId:S,root:d,baseId:m}))}if($!==void 0)return d.refs[u]=f.call(this,$)}Ae.resolveRef=c;function f(d){return(0,n.inlineRef)(d.schema,this.opts.inlineRefs)?d.schema:d.validate?d:a.call(this,d)}function l(d){for(const m of this._compilations)if(p(m,d))return m}Ae.getCompilingSchema=l;function p(d,m){return d.schema===m.schema&&d.root===m.root&&d.baseId===m.baseId}function b(d,m){let u;for(;typeof(u=this.refs[m])=="string";)m=u;return u||this.schemas[m]||y.call(this,d,m)}function y(d,m){const u=this.opts.uriResolver.parse(m),h=(0,n._getFullPath)(this.opts.uriResolver,u);let _=(0,n.getFullPath)(this.opts.uriResolver,d.baseId,void 0);if(Object.keys(d.schema).length>0&&h===_)return g.call(this,u,d);const $=(0,n.normalizeId)(h),k=this.refs[$]||this.schemas[$];if(typeof k=="string"){const S=y.call(this,d,k);return typeof S?.schema!="object"?void 0:g.call(this,u,S)}if(typeof k?.schema=="object"){if(k.validate||a.call(this,k),$===(0,n.normalizeId)(m)){const{schema:S}=k,{schemaId:P}=this.opts,O=S[P];return O&&(_=(0,n.resolveUrl)(this.opts.uriResolver,_,O)),new i({schema:S,schemaId:P,root:d,baseId:_})}return g.call(this,u,k)}}Ae.resolveSchema=y;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(d,{baseId:m,schema:u,root:h}){var _;if(((_=d.fragment)===null||_===void 0?void 0:_[0])!=="/")return;for(const S of d.fragment.slice(1).split("/")){if(typeof u=="boolean")return;const P=u[(0,o.unescapeFragment)(S)];if(P===void 0)return;u=P;const O=typeof u=="object"&&u[this.opts.schemaId];!v.has(S)&&O&&(m=(0,n.resolveUrl)(this.opts.uriResolver,m,O))}let $;if(typeof u!="boolean"&&u.$ref&&!(0,o.schemaHasRulesButRef)(u,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,m,u.$ref);$=y.call(this,h,S)}const{schemaId:k}=this.opts;if($=$||new i({schema:u,schemaId:k,root:h,baseId:m}),$.schema!==$.root.schema)return $}return Ae}const a0="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",c0="Meta-schema for $data reference (JSON AnySchema extension proposal)",l0="object",u0=["$data"],f0={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},d0=!1,p0={$id:a0,description:c0,type:l0,required:u0,properties:f0,additionalProperties:d0};var mn={},qc;function h0(){if(qc)return mn;qc=1,Object.defineProperty(mn,"__esModule",{value:!0});const e=pf();return e.code='require("ajv/dist/runtime/uri").default',mn.default=e,mn}var Fc;function m0(){return Fc||(Fc=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=Fo();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=oe();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=di(),o=Do(),s=yf(),i=pi(),a=oe(),c=qo(),f=go(),l=ue(),p=p0,b=h0(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],g=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."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},u=200;function h(z){var C,A,R,w,E,T,U,K,X,J,x,j,N,F,H,G,ae,ye,fe,de,ce,Te,me,pt,ht;const qe=z.strict,mt=(C=z.code)===null||C===void 0?void 0:C.optimize,Kt=mt===!0||mt===void 0?1:mt||0,Wt=(R=(A=z.code)===null||A===void 0?void 0:A.regExp)!==null&&R!==void 0?R:y,Bo=(w=z.uriResolver)!==null&&w!==void 0?w:b.default;return{strictSchema:(T=(E=z.strictSchema)!==null&&E!==void 0?E:qe)!==null&&T!==void 0?T:!0,strictNumbers:(K=(U=z.strictNumbers)!==null&&U!==void 0?U:qe)!==null&&K!==void 0?K:!0,strictTypes:(J=(X=z.strictTypes)!==null&&X!==void 0?X:qe)!==null&&J!==void 0?J:"log",strictTuples:(j=(x=z.strictTuples)!==null&&x!==void 0?x:qe)!==null&&j!==void 0?j:"log",strictRequired:(F=(N=z.strictRequired)!==null&&N!==void 0?N:qe)!==null&&F!==void 0?F:!1,code:z.code?{...z.code,optimize:Kt,regExp:Wt}:{optimize:Kt,regExp:Wt},loopRequired:(H=z.loopRequired)!==null&&H!==void 0?H:u,loopEnum:(G=z.loopEnum)!==null&&G!==void 0?G:u,meta:(ae=z.meta)!==null&&ae!==void 0?ae:!0,messages:(ye=z.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(fe=z.inlineRefs)!==null&&fe!==void 0?fe:!0,schemaId:(de=z.schemaId)!==null&&de!==void 0?de:"$id",addUsedSchema:(ce=z.addUsedSchema)!==null&&ce!==void 0?ce:!0,validateSchema:(Te=z.validateSchema)!==null&&Te!==void 0?Te:!0,validateFormats:(me=z.validateFormats)!==null&&me!==void 0?me:!0,unicodeRegExp:(pt=z.unicodeRegExp)!==null&&pt!==void 0?pt:!0,int32range:(ht=z.int32range)!==null&&ht!==void 0?ht:!0,uriResolver:Bo}}class _{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,...h(C)};const{es5:A,lines:R}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:A,lines:R}),this.logger=L(C.logger);const w=C.validateFormats;C.validateFormats=!1,this.RULES=(0,s.getRules)(),$.call(this,d,C,"NOT SUPPORTED"),$.call(this,m,C,"DEPRECATED","warn"),this._metaOpts=q.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&O.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),S.call(this),C.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:A,schemaId:R}=this.opts;let w=p;R==="id"&&(w={...p},w.id=w.$id,delete w.$id),A&&C&&this.addMetaSchema(w,w[R],!1)}defaultMeta(){const{meta:C,schemaId:A}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[A]||C:void 0}validate(C,A){let R;if(typeof C=="string"){if(R=this.getSchema(C),!R)throw new Error(`no schema with key or ref "${C}"`)}else R=this.compile(C);const w=R(A);return"$async"in R||(this.errors=R.errors),w}compile(C,A){const R=this._addSchema(C,A);return R.validate||this._compileSchemaEnv(R)}compileAsync(C,A){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:R}=this.opts;return w.call(this,C,A);async function w(J,x){await E.call(this,J.$schema);const j=this._addSchema(J,x);return j.validate||T.call(this,j)}async function E(J){J&&!this.getSchema(J)&&await w.call(this,{$ref:J},!0)}async function T(J){try{return this._compileSchemaEnv(J)}catch(x){if(!(x instanceof o.default))throw x;return U.call(this,x),await K.call(this,x.missingSchema),T.call(this,J)}}function U({missingSchema:J,missingRef:x}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${x} cannot be resolved`)}async function K(J){const x=await X.call(this,J);this.refs[J]||await E.call(this,x.$schema),this.refs[J]||this.addSchema(x,J,A)}async function X(J){const x=this._loading[J];if(x)return x;try{return await(this._loading[J]=R(J))}finally{delete this._loading[J]}}}addSchema(C,A,R,w=this.opts.validateSchema){if(Array.isArray(C)){for(const T of C)this.addSchema(T,void 0,R,w);return this}let E;if(typeof C=="object"){const{schemaId:T}=this.opts;if(E=C[T],E!==void 0&&typeof E!="string")throw new Error(`schema ${T} must be string`)}return A=(0,c.normalizeId)(A||E),this._checkUnique(A),this.schemas[A]=this._addSchema(C,R,A,w,!0),this}addMetaSchema(C,A,R=this.opts.validateSchema){return this.addSchema(C,A,!0,R),this}validateSchema(C,A){if(typeof C=="boolean")return!0;let R;if(R=C.$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 w=this.validate(R,C);if(!w&&A){const E="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(E);else throw new Error(E)}return w}getSchema(C){let A;for(;typeof(A=k.call(this,C))=="string";)C=A;if(A===void 0){const{schemaId:R}=this.opts,w=new i.SchemaEnv({schema:{},schemaId:R});if(A=i.resolveSchema.call(this,w,C),!A)return;this.refs[C]=A}return A.validate||this._compileSchemaEnv(A)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const A=k.call(this,C);return typeof A=="object"&&this._cache.delete(A.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const A=C;this._cache.delete(A);let R=C[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(C){for(const A of C)this.addKeyword(A);return this}addKeyword(C,A){let R;if(typeof C=="string")R=C,typeof A=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),A.keyword=R);else if(typeof C=="object"&&A===void 0){if(A=C,R=A.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(V.call(this,R,A),!A)return(0,l.eachItem)(R,E=>W.call(this,E)),this;Z.call(this,A);const w={...A,type:(0,f.getJSONTypes)(A.type),schemaType:(0,f.getJSONTypes)(A.schemaType)};return(0,l.eachItem)(R,w.type.length===0?E=>W.call(this,E,w):E=>w.type.forEach(T=>W.call(this,E,w,T))),this}getKeyword(C){const A=this.RULES.all[C];return typeof A=="object"?A.definition:!!A}removeKeyword(C){const{RULES:A}=this;delete A.keywords[C],delete A.all[C];for(const R of A.rules){const w=R.rules.findIndex(E=>E.keyword===C);w>=0&&R.rules.splice(w,1)}return this}addFormat(C,A){return typeof A=="string"&&(A=new RegExp(A)),this.formats[C]=A,this}errorsText(C=this.errors,{separator:A=", ",dataVar:R="data"}={}){return!C||C.length===0?"No errors":C.map(w=>`${R}${w.instancePath} ${w.message}`).reduce((w,E)=>w+A+E)}$dataMetaSchema(C,A){const R=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const w of A){const E=w.split("/").slice(1);let T=C;for(const U of E)T=T[U];for(const U in R){const K=R[U];if(typeof K!="object")continue;const{$data:X}=K.definition,J=T[U];X&&J&&(T[U]=ee(J))}}return C}_removeAllSchemas(C,A){for(const R in C){const w=C[R];(!A||A.test(R))&&(typeof w=="string"?delete C[R]:w&&!w.meta&&(this._cache.delete(w.schema),delete C[R]))}}_addSchema(C,A,R,w=this.opts.validateSchema,E=this.opts.addUsedSchema){let T;const{schemaId:U}=this.opts;if(typeof C=="object")T=C[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(C);if(K!==void 0)return K;R=(0,c.normalizeId)(T||R);const X=c.getSchemaRefs.call(this,C,R);return K=new i.SchemaEnv({schema:C,schemaId:U,meta:A,baseId:R,localRefs:X}),this._cache.set(K.schema,K),E&&!R.startsWith("#")&&(R&&this._checkUnique(R),this.refs[R]=K),w&&this.validateSchema(C,!0),K}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):i.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const A=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,C)}finally{this.opts=A}}}_.ValidationError=n.default,_.MissingRefError=o.default,e.default=_;function $(z,C,A,R="error"){for(const w in z){const E=w;E in C&&this.logger[R](`${A}: option ${w}. ${z[E]}`)}}function k(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function S(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function O(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const A=z[C];A.keyword||(A.keyword=C),this.addKeyword(A)}}function q(){const z={...this.opts};for(const C of v)delete z[C];return z}const M={log(){},warn(){},error(){}};function L(z){if(z===!1)return M;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const D=/^[a-z_$][a-z0-9_$:-]*$/i;function V(z,C){const{RULES:A}=this;if((0,l.eachItem)(z,R=>{if(A.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!D.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function W(z,C,A){var R;const w=C?.post;if(A&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:E}=this;let T=w?E.post:E.rules.find(({type:K})=>K===A);if(T||(T={type:A,rules:[]},E.rules.push(T)),E.keywords[z]=!0,!C)return;const U={keyword:z,definition:{...C,type:(0,f.getJSONTypes)(C.type),schemaType:(0,f.getJSONTypes)(C.schemaType)}};C.before?Q.call(this,T,U,C.before):T.rules.push(U),E.all[z]=U,(R=C.implements)===null||R===void 0||R.forEach(K=>this.addKeyword(K))}function Q(z,C,A){const R=z.rules.findIndex(w=>w.keyword===A);R>=0?z.rules.splice(R,0,C):(z.rules.push(C),this.logger.warn(`rule ${A} is not defined`))}function Z(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ee(C)),z.validateSchema=this.compile(C,!0))}const B={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(z){return{anyOf:[z,B]}}}(ds)),ds}var gn={},yn={},bn={},Dc;function g0(){if(Dc)return bn;Dc=1,Object.defineProperty(bn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return bn.default=e,bn}var st={},Lc;function y0(){if(Lc)return st;Lc=1,Object.defineProperty(st,"__esModule",{value:!0}),st.callRef=st.getValidate=void 0;const e=Do(),t=Ke(),r=oe(),n=dt(),o=pi(),s=ue(),i={keyword:"$ref",schemaType:"string",code(f){const{gen:l,schema:p,it:b}=f,{baseId:y,schemaEnv:v,validateName:g,opts:d,self:m}=b,{root:u}=v;if((p==="#"||p==="#/")&&y===u.baseId)return _();const h=o.resolveRef.call(m,u,y,p);if(h===void 0)throw new e.default(b.opts.uriResolver,y,p);if(h instanceof o.SchemaEnv)return $(h);return k(h);function _(){if(v===u)return c(f,g,v,v.$async);const S=l.scopeValue("root",{ref:u});return c(f,(0,r._)`${S}.validate`,u,u.$async)}function $(S){const P=a(f,S);c(f,P,S,S.$async)}function k(S){const P=l.scopeValue("schema",d.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),O=l.name("valid"),q=f.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:p},O);f.mergeEvaluated(q),f.ok(O)}}};function a(f,l){const{gen:p}=f;return l.validate?p.scopeValue("validate",{ref:l.validate}):(0,r._)`${p.scopeValue("wrapper",{ref:l})}.validate`}st.getValidate=a;function c(f,l,p,b){const{gen:y,it:v}=f,{allErrors:g,schemaEnv:d,opts:m}=v,u=m.passContext?n.default.this:r.nil;b?h():_();function h(){if(!d.$async)throw new Error("async schema referenced by sync schema");const S=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(f,l,u)}`),k(l),g||y.assign(S,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${v.ValidationError})`,()=>y.throw(P)),$(P),g||y.assign(S,!1)}),f.ok(S)}function _(){f.result((0,t.callValidateCode)(f,l,u),()=>k(l),()=>$(l))}function $(S){const P=(0,r._)`${S}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function k(S){var P;if(!v.opts.unevaluated)return;const O=(P=p?.validate)===null||P===void 0?void 0:P.evaluated;if(v.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(v.props=s.mergeEvaluated.props(y,O.props,v.props));else{const q=y.var("props",(0,r._)`${S}.evaluated.props`);v.props=s.mergeEvaluated.props(y,q,v.props,r.Name)}if(v.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(v.items=s.mergeEvaluated.items(y,O.items,v.items));else{const q=y.var("items",(0,r._)`${S}.evaluated.items`);v.items=s.mergeEvaluated.items(y,q,v.items,r.Name)}}}return st.callRef=c,st.default=i,st}var Vc;function b0(){if(Vc)return yn;Vc=1,Object.defineProperty(yn,"__esModule",{value:!0});const e=g0(),t=y0(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return yn.default=r,yn}var vn={},$n={},Uc;function v0(){if(Uc)return $n;Uc=1,Object.defineProperty($n,"__esModule",{value:!0});const e=oe(),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:s,schemaCode:i})=>(0,e.str)`must be ${r[s].okStr} ${i}`,params:({keyword:s,schemaCode:i})=>(0,e._)`{comparison: ${r[s].okStr}, limit: ${i}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:i,data:a,schemaCode:c}=s;s.fail$data((0,e._)`${a} ${r[i].fail} ${c} || isNaN(${a})`)}};return $n.default=o,$n}var wn={},Hc;function $0(){if(Hc)return wn;Hc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=oe(),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:s,schemaCode:i,it:a}=n,c=a.opts.multipleOfPrecision,f=o.let("res"),l=c?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${c}`:(0,e._)`${f} !== parseInt(${f})`;n.fail$data((0,e._)`(${i} === 0 || (${f} = ${s}/${i}, ${l}))`)}};return wn.default=r,wn}var _n={},kn={},Kc;function w0(){if(Kc)return kn;Kc=1,Object.defineProperty(kn,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,s;for(;o<r;)n++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<r&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return n}return kn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',kn}var Wc;function _0(){if(Wc)return _n;Wc=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=oe(),t=ue(),r=w0(),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:i}){const a=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:i,data:a,schemaCode:c,it:f}=s,l=i==="maxLength"?e.operators.GT:e.operators.LT,p=f.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(s.gen,r.default)}(${a})`;s.fail$data((0,e._)`${p} ${l} ${c}`)}};return _n.default=o,_n}var Sn={},Bc;function k0(){if(Bc)return Sn;Bc=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=Ke(),t=oe(),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:s,$data:i,schema:a,schemaCode:c,it:f}=o,l=f.opts.unicodeRegExp?"u":"",p=i?(0,t._)`(new RegExp(${c}, ${l}))`:(0,e.usePattern)(o,a);o.fail$data((0,t._)`!${p}.test(${s})`)}};return Sn.default=n,Sn}var En={},Gc;function S0(){if(Gc)return En;Gc=1,Object.defineProperty(En,"__esModule",{value:!0});const e=oe(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:i}=n,a=o==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${s}).length ${a} ${i}`)}};return En.default=r,En}var xn={},Jc;function E0(){if(Jc)return xn;Jc=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=ue(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:i,schema:a,schemaCode:c,data:f,$data:l,it:p}=s,{opts:b}=p;if(!l&&a.length===0)return;const y=a.length>=b.loopRequired;if(p.allErrors?v():g(),b.strictRequired){const u=s.parentSchema.properties,{definedProperties:h}=s.it;for(const _ of a)if(u?.[_]===void 0&&!h.has(_)){const $=p.schemaEnv.baseId+p.errSchemaPath,k=`required property "${_}" is not defined at "${$}" (strictRequired)`;(0,r.checkStrictMode)(p,k,p.opts.strictRequired)}}function v(){if(y||l)s.block$data(t.nil,d);else for(const u of a)(0,e.checkReportMissingProp)(s,u)}function g(){const u=i.let("missing");if(y||l){const h=i.let("valid",!0);s.block$data(h,()=>m(u,h)),s.ok(h)}else i.if((0,e.checkMissingProp)(s,a,u)),(0,e.reportMissingProp)(s,u),i.else()}function d(){i.forOf("prop",c,u=>{s.setParams({missingProperty:u}),i.if((0,e.noPropertyInData)(i,f,u,b.ownProperties),()=>s.error())})}function m(u,h){s.setParams({missingProperty:u}),i.forOf(u,c,()=>{i.assign(h,(0,e.propertyInData)(i,f,u,b.ownProperties)),i.if((0,t.not)(h),()=>{s.error(),i.break()})},t.nil)}}};return xn.default=o,xn}var Pn={},Xc;function x0(){if(Xc)return Pn;Xc=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=oe(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:i}=n,a=o==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${s}.length ${a} ${i}`)}};return Pn.default=r,Pn}var Cn={},jn={},Yc;function hi(){if(Yc)return jn;Yc=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=No();return e.code='require("ajv/dist/runtime/equal").default',jn.default=e,jn}var Qc;function P0(){if(Qc)return Cn;Qc=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=go(),t=oe(),r=ue(),n=hi(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${i} are identical)`,params:({params:{i,j:a}})=>(0,t._)`{i: ${i}, j: ${a}}`},code(i){const{gen:a,data:c,$data:f,schema:l,parentSchema:p,schemaCode:b,it:y}=i;if(!f&&!l)return;const v=a.let("valid"),g=p.items?(0,e.getSchemaTypes)(p.items):[];i.block$data(v,d,(0,t._)`${b} === false`),i.ok(v);function d(){const _=a.let("i",(0,t._)`${c}.length`),$=a.let("j");i.setParams({i:_,j:$}),a.assign(v,!0),a.if((0,t._)`${_} > 1`,()=>(m()?u:h)(_,$))}function m(){return g.length>0&&!g.some(_=>_==="object"||_==="array")}function u(_,$){const k=a.name("item"),S=(0,e.checkDataTypes)(g,k,y.opts.strictNumbers,e.DataType.Wrong),P=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${_}--;`,()=>{a.let(k,(0,t._)`${c}[${_}]`),a.if(S,(0,t._)`continue`),g.length>1&&a.if((0,t._)`typeof ${k} == "string"`,(0,t._)`${k} += "_"`),a.if((0,t._)`typeof ${P}[${k}] == "number"`,()=>{a.assign($,(0,t._)`${P}[${k}]`),i.error(),a.assign(v,!1).break()}).code((0,t._)`${P}[${k}] = ${_}`)})}function h(_,$){const k=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,t._)`;${_}--;`,()=>a.for((0,t._)`${$} = ${_}; ${$}--;`,()=>a.if((0,t._)`${k}(${c}[${_}], ${c}[${$}])`,()=>{i.error(),a.assign(v,!1).break(S)})))}}};return Cn.default=s,Cn}var Rn={},Zc;function C0(){if(Zc)return Rn;Zc=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=oe(),t=ue(),r=hi(),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:i,data:a,$data:c,schemaCode:f,schema:l}=s;c||l&&typeof l=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(i,r.default)}(${a}, ${f})`):s.fail((0,e._)`${l} !== ${a}`)}};return Rn.default=o,Rn}var On={},el;function j0(){if(el)return On;el=1,Object.defineProperty(On,"__esModule",{value:!0});const e=oe(),t=ue(),r=hi(),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:i,data:a,$data:c,schema:f,schemaCode:l,it:p}=s;if(!c&&f.length===0)throw new Error("enum must have non-empty array");const b=f.length>=p.opts.loopEnum;let y;const v=()=>y??(y=(0,t.useFunc)(i,r.default));let g;if(b||c)g=i.let("valid"),s.block$data(g,d);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const u=i.const("vSchema",l);g=(0,e.or)(...f.map((h,_)=>m(u,_)))}s.pass(g);function d(){i.assign(g,!1),i.forOf("v",l,u=>i.if((0,e._)`${v()}(${a}, ${u})`,()=>i.assign(g,!0).break()))}function m(u,h){const _=f[h];return typeof _=="object"&&_!==null?(0,e._)`${v()}(${a}, ${u}[${h}])`:(0,e._)`${a} === ${_}`}}};return On.default=o,On}var tl;function R0(){if(tl)return vn;tl=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=v0(),t=$0(),r=_0(),n=k0(),o=S0(),s=E0(),i=x0(),a=P0(),c=C0(),f=j0(),l=[e.default,t.default,r.default,n.default,o.default,s.default,i.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,f.default];return vn.default=l,vn}var Tn={},Rt={},rl;function vf(){if(rl)return Rt;rl=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.validateAdditionalItems=void 0;const e=oe(),t=ue(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],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{parentSchema:i,it:a}=s,{items:c}=i;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(s,c)}};function o(s,i){const{gen:a,schema:c,data:f,keyword:l,it:p}=s;p.items=!0;const b=a.const("len",(0,e._)`${f}.length`);if(c===!1)s.setParams({len:i.length}),s.pass((0,e._)`${b} <= ${i.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const v=a.var("valid",(0,e._)`${b} <= ${i.length}`);a.if((0,e.not)(v),()=>y(v)),s.ok(v)}function y(v){a.forRange("i",i.length,b,g=>{s.subschema({keyword:l,dataProp:g,dataPropType:t.Type.Num},v),p.allErrors||a.if((0,e.not)(v),()=>a.break())})}}return Rt.validateAdditionalItems=o,Rt.default=n,Rt}var Nn={},Ot={},nl;function $f(){if(nl)return Ot;nl=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.validateTuple=void 0;const e=oe(),t=ue(),r=Ke(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:i,it:a}=s;if(Array.isArray(i))return o(s,"additionalItems",i);a.items=!0,!(0,t.alwaysValidSchema)(a,i)&&s.ok((0,r.validateArray)(s))}};function o(s,i,a=s.schema){const{gen:c,parentSchema:f,data:l,keyword:p,it:b}=s;g(f),b.opts.unevaluated&&a.length&&b.items!==!0&&(b.items=t.mergeEvaluated.items(c,a.length,b.items));const y=c.name("valid"),v=c.const("len",(0,e._)`${l}.length`);a.forEach((d,m)=>{(0,t.alwaysValidSchema)(b,d)||(c.if((0,e._)`${v} > ${m}`,()=>s.subschema({keyword:p,schemaProp:m,dataProp:m},y)),s.ok(y))});function g(d){const{opts:m,errSchemaPath:u}=b,h=a.length,_=h===d.minItems&&(h===d.maxItems||d[i]===!1);if(m.strictTuples&&!_){const $=`"${p}" is ${h}-tuple, but minItems or maxItems/${i} are not specified or different at path "${u}"`;(0,t.checkStrictMode)(b,$,m.strictTuples)}}}return Ot.validateTuple=o,Ot.default=n,Ot}var ol;function O0(){if(ol)return Nn;ol=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=$f(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Nn.default=t,Nn}var An={},sl;function T0(){if(sl)return An;sl=1,Object.defineProperty(An,"__esModule",{value:!0});const e=oe(),t=ue(),r=Ke(),n=vf(),s={keyword:"items",type:"array",schemaType:["object","boolean"],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{schema:a,parentSchema:c,it:f}=i,{prefixItems:l}=c;f.items=!0,!(0,t.alwaysValidSchema)(f,a)&&(l?(0,n.validateAdditionalItems)(i,l):i.ok((0,r.validateArray)(i)))}};return An.default=s,An}var In={},il;function N0(){if(il)return In;il=1,Object.defineProperty(In,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:o,max:s}})=>s===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 ${s} valid item(s)`,params:({params:{min:o,max:s}})=>s===void 0?(0,e._)`{minContains: ${o}}`:(0,e._)`{minContains: ${o}, maxContains: ${s}}`},code(o){const{gen:s,schema:i,parentSchema:a,data:c,it:f}=o;let l,p;const{minContains:b,maxContains:y}=a;f.opts.next?(l=b===void 0?1:b,p=y):l=1;const v=s.const("len",(0,e._)`${c}.length`);if(o.setParams({min:l,max:p}),p===void 0&&l===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&l>p){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,t.alwaysValidSchema)(f,i)){let h=(0,e._)`${v} >= ${l}`;p!==void 0&&(h=(0,e._)`${h} && ${v} <= ${p}`),o.pass(h);return}f.items=!0;const g=s.name("valid");p===void 0&&l===1?m(g,()=>s.if(g,()=>s.break())):l===0?(s.let(g,!0),p!==void 0&&s.if((0,e._)`${c}.length > 0`,d)):(s.let(g,!1),d()),o.result(g,()=>o.reset());function d(){const h=s.name("_valid"),_=s.let("count",0);m(h,()=>s.if(h,()=>u(_)))}function m(h,_){s.forRange("i",0,v,$=>{o.subschema({keyword:"contains",dataProp:$,dataPropType:t.Type.Num,compositeRule:!0},h),_()})}function u(h){s.code((0,e._)`${h}++`),p===void 0?s.if((0,e._)`${h} >= ${l}`,()=>s.assign(g,!0).break()):(s.if((0,e._)`${h} > ${p}`,()=>s.assign(g,!1).break()),l===1?s.assign(g,!0):s.if((0,e._)`${h} >= ${l}`,()=>s.assign(g,!0)))}}};return In.default=n,In}var bs={},al;function A0(){return al||(al=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=oe(),r=ue(),n=Ke();e.error={message:({params:{property:c,depsCount:f,deps:l}})=>{const p=f===1?"property":"properties";return(0,t.str)`must have ${p} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:f,deps:l,missingProperty:p}})=>(0,t._)`{property: ${c},
|
|
21
21
|
missingProperty: ${p},
|
|
22
22
|
depsCount: ${f},
|
|
23
|
-
deps: ${l}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[f,l]=s(c);i(c,f),a(c,l)}};function s({schema:c}){const f={},l={};for(const p in c){if(p==="__proto__")continue;const b=Array.isArray(c[p])?f:l;b[p]=c[p]}return[f,l]}function i(c,f=c.schema){const{gen:l,data:p,it:b}=c;if(Object.keys(f).length===0)return;const y=l.let("missing");for(const v in f){const g=f[v];if(g.length===0)continue;const d=(0,n.propertyInData)(l,p,v,b.opts.ownProperties);c.setParams({property:v,depsCount:g.length,deps:g.join(", ")}),b.allErrors?l.if(d,()=>{for(const m of g)(0,n.checkReportMissingProp)(c,m)}):(l.if((0,t._)`${d} && (${(0,n.checkMissingProp)(c,g,y)})`),(0,n.reportMissingProp)(c,y),l.else())}}e.validatePropertyDeps=i;function a(c,f=c.schema){const{gen:l,data:p,keyword:b,it:y}=c,v=l.name("valid");for(const g in f)(0,r.alwaysValidSchema)(y,f[g])||(l.if((0,n.propertyInData)(l,p,g,y.opts.ownProperties),()=>{const d=c.subschema({keyword:b,schemaProp:g},v);c.mergeValidEvaluated(d,v)},()=>l.var(v,!0)),c.ok(v))}e.validateSchemaDeps=a,e.default=o}(bs)),bs}var Mn={},cl;function I0(){if(cl)return Mn;cl=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=oe(),t=ue(),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:s,schema:i,data:a,it:c}=o;if((0,t.alwaysValidSchema)(c,i))return;const f=s.name("valid");s.forIn("key",a,l=>{o.setParams({propertyName:l}),o.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),c.allErrors||s.break()})}),o.ok(f)}};return Mn.default=n,Mn}var zn={},ll;function wf(){if(ll)return zn;ll=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=dt(),n=ue(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:a,schema:c,parentSchema:f,data:l,errsCount:p,it:b}=i;if(!p)throw new Error("ajv implementation error");const{allErrors:y,opts:v}=b;if(b.props=!0,v.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(b,c))return;const g=(0,e.allSchemaProperties)(f.properties),d=(0,e.allSchemaProperties)(f.patternProperties);m(),i.ok((0,t._)`${p} === ${r.default.errors}`);function m(){a.forIn("key",l,k=>{!g.length&&!d.length?_(k):a.if(u(k),()=>_(k))})}function u(k){let S;if(g.length>8){const P=(0,n.schemaRefOrVal)(b,f.properties,"properties");S=(0,e.isOwnProperty)(a,P,k)}else g.length?S=(0,t.or)(...g.map(P=>(0,t._)`${k} === ${P}`)):S=t.nil;return d.length&&(S=(0,t.or)(S,...d.map(P=>(0,t._)`${(0,e.usePattern)(i,P)}.test(${k})`))),(0,t.not)(S)}function h(k){a.code((0,t._)`delete ${l}[${k}]`)}function _(k){if(v.removeAdditional==="all"||v.removeAdditional&&c===!1){h(k);return}if(c===!1){i.setParams({additionalProperty:k}),i.error(),y||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(b,c)){const S=a.name("valid");v.removeAdditional==="failing"?($(k,S,!1),a.if((0,t.not)(S),()=>{i.reset(),h(k)})):($(k,S),y||a.if((0,t.not)(S),()=>a.break()))}}function $(k,S,P){const O={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};P===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(O,S)}}};return zn.default=s,zn}var qn={},ul;function M0(){if(ul)return qn;ul=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=Fo(),t=Ke(),r=ue(),n=wf(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,parentSchema:c,data:f,it:l}=s;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(i,(0,r.toHash)(p),l.props));const b=p.filter(d=>!(0,r.alwaysValidSchema)(l,a[d]));if(b.length===0)return;const y=i.name("valid");for(const d of b)v(d)?g(d):(i.if((0,t.propertyInData)(i,f,d,l.opts.ownProperties)),g(d),l.allErrors||i.else().var(y,!0),i.endIf()),s.it.definedProperties.add(d),s.ok(y);function v(d){return l.opts.useDefaults&&!l.compositeRule&&a[d].default!==void 0}function g(d){s.subschema({keyword:"properties",schemaProp:d,dataProp:d},y)}}};return qn.default=o,qn}var Fn={},fl;function z0(){if(fl)return Fn;fl=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=ue(),n=ue(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,data:c,parentSchema:f,it:l}=s,{opts:p}=l,b=(0,e.allSchemaProperties)(a),y=b.filter(_=>(0,r.alwaysValidSchema)(l,a[_]));if(b.length===0||y.length===b.length&&(!l.opts.unevaluated||l.props===!0))return;const v=p.strictSchema&&!p.allowMatchingProperties&&f.properties,g=i.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(i,l.props));const{props:d}=l;m();function m(){for(const _ of b)v&&u(_),l.allErrors?h(_):(i.var(g,!0),h(_),i.if(g))}function u(_){for(const $ in v)new RegExp(_).test($)&&(0,r.checkStrictMode)(l,`property ${$} matches pattern ${_} (use allowMatchingProperties)`)}function h(_){i.forIn("key",c,$=>{i.if((0,t._)`${(0,e.usePattern)(s,_)}.test(${$})`,()=>{const k=y.includes(_);k||s.subschema({keyword:"patternProperties",schemaProp:_,dataProp:$,dataPropType:n.Type.Str},g),l.opts.unevaluated&&d!==!0?i.assign((0,t._)`${d}[${$}]`,!0):!k&&!l.allErrors&&i.if((0,t.not)(g),()=>i.break())})})}}};return Fn.default=o,Fn}var Dn={},dl;function q0(){if(dl)return Dn;dl=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ue(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const i=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Dn.default=t,Dn}var Ln={},pl;function F0(){if(pl)return Ln;pl=1,Object.defineProperty(Ln,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ke().validateUnion,error:{message:"must match a schema in anyOf"}};return Ln.default=t,Ln}var Vn={},hl;function D0(){if(hl)return Vn;hl=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=oe(),t=ue(),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:s,schema:i,parentSchema:a,it:c}=o;if(!Array.isArray(i))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const f=i,l=s.let("valid",!1),p=s.let("passing",null),b=s.name("_valid");o.setParams({passing:p}),s.block(y),o.result(l,()=>o.reset(),()=>o.error(!0));function y(){f.forEach((v,g)=>{let d;(0,t.alwaysValidSchema)(c,v)?s.var(b,!0):d=o.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},b),g>0&&s.if((0,e._)`${b} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${g}]`).else(),s.if(b,()=>{s.assign(l,!0),s.assign(p,g),d&&o.mergeEvaluated(d,e.Name)})})}}};return Vn.default=n,Vn}var Un={},ml;function L0(){if(ml)return Un;ml=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=ue(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const i=n.name("valid");o.forEach((a,c)=>{if((0,e.alwaysValidSchema)(s,a))return;const f=r.subschema({keyword:"allOf",schemaProp:c},i);r.ok(i),r.mergeEvaluated(f)})}};return Un.default=t,Un}var Hn={},gl;function V0(){if(gl)return Hn;gl=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:i,parentSchema:a,it:c}=s;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const f=o(c,"then"),l=o(c,"else");if(!f&&!l)return;const p=i.let("valid",!0),b=i.name("_valid");if(y(),s.reset(),f&&l){const g=i.let("ifClause");s.setParams({ifClause:g}),i.if(b,v("then",g),v("else",g))}else f?i.if(b,v("then")):i.if((0,e.not)(b),v("else"));s.pass(p,()=>s.error(!0));function y(){const g=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},b);s.mergeEvaluated(g)}function v(g,d){return()=>{const m=s.subschema({keyword:g},b);i.assign(p,b),s.mergeValidEvaluated(m,p),d?i.assign(d,(0,e._)`${g}`):s.setParams({ifClause:g})}}}};function o(s,i){const a=s.schema[i];return a!==void 0&&!(0,t.alwaysValidSchema)(s,a)}return Hn.default=n,Hn}var Kn={},yl;function U0(){if(yl)return Kn;yl=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=ue(),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 Kn.default=t,Kn}var bl;function H0(){if(bl)return Tn;bl=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=vf(),t=O0(),r=$f(),n=T0(),o=N0(),s=A0(),i=I0(),a=wf(),c=M0(),f=z0(),l=q0(),p=F0(),b=D0(),y=L0(),v=V0(),g=U0();function d(m=!1){const u=[l.default,p.default,b.default,y.default,v.default,g.default,i.default,a.default,s.default,c.default,f.default];return m?u.push(t.default,n.default):u.push(e.default,r.default),u.push(o.default),u}return Tn.default=d,Tn}var Wn={},Bn={},vl;function K0(){if(vl)return Bn;vl=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=oe(),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:s,data:i,$data:a,schema:c,schemaCode:f,it:l}=n,{opts:p,errSchemaPath:b,schemaEnv:y,self:v}=l;if(!p.validateFormats)return;a?g():d();function g(){const m=s.scopeValue("formats",{ref:v.formats,code:p.code.formats}),u=s.const("fDef",(0,e._)`${m}[${f}]`),h=s.let("fType"),_=s.let("format");s.if((0,e._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`,()=>s.assign(h,(0,e._)`${u}.type || "string"`).assign(_,(0,e._)`${u}.validate`),()=>s.assign(h,(0,e._)`"string"`).assign(_,u)),n.fail$data((0,e.or)($(),k()));function $(){return p.strictSchema===!1?e.nil:(0,e._)`${f} && !${_}`}function k(){const S=y.$async?(0,e._)`(${u}.async ? await ${_}(${i}) : ${_}(${i}))`:(0,e._)`${_}(${i})`,P=(0,e._)`(typeof ${_} == "function" ? ${S} : ${_}.test(${i}))`;return(0,e._)`${_} && ${_} !== true && ${h} === ${o} && !${P}`}}function d(){const m=v.formats[c];if(!m){$();return}if(m===!0)return;const[u,h,_]=k(m);u===o&&n.pass(S());function $(){if(p.strictSchema===!1){v.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${b}"`}}function k(P){const O=P instanceof RegExp?(0,e.regexpCode)(P):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,q=s.scopeValue("formats",{key:c,ref:P,code:O});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${q}.validate`]:["string",P,q]}function S(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${_}(${i})`}return typeof h=="function"?(0,e._)`${_}(${i})`:(0,e._)`${_}.test(${i})`}}}};return Bn.default=r,Bn}var $l;function W0(){if($l)return Wn;$l=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t=[K0().default];return Wn.default=t,Wn}var wt={},wl;function B0(){return wl||(wl=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.contentVocabulary=wt.metadataVocabulary=void 0,wt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],wt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),wt}var _l;function G0(){if(_l)return gn;_l=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=b0(),t=R0(),r=H0(),n=W0(),o=B0(),s=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return gn.default=s,gn}var Gn={},Qt={},kl;function J0(){if(kl)return Qt;kl=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Qt.DiscrError=e={})),Qt}var Sl;function X0(){if(Sl)return Gn;Sl=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=oe(),t=J0(),r=pi(),n=Do(),o=ue(),i={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:f}})=>(0,e._)`{error: ${a}, tag: ${f}, tagValue: ${c}}`},code(a){const{gen:c,data:f,schema:l,parentSchema:p,it:b}=a,{oneOf:y}=p;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const v=l.propertyName;if(typeof v!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),d=c.const("tag",(0,e._)`${f}${(0,e.getProperty)(v)}`);c.if((0,e._)`typeof ${d} == "string"`,()=>m(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:d,tagName:v})),a.ok(g);function m(){const _=h();c.if(!1);for(const $ in _)c.elseIf((0,e._)`${d} === ${$}`),c.assign(g,u(_[$]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:d,tagName:v}),c.endIf()}function u(_){const $=c.name("valid"),k=a.subschema({keyword:"oneOf",schemaProp:_},$);return a.mergeEvaluated(k,e.Name),$}function h(){var _;const $={},k=P(p);let S=!0;for(let M=0;M<y.length;M++){let L=y[M];if(L?.$ref&&!(0,o.schemaHasRulesButRef)(L,b.self.RULES)){const V=L.$ref;if(L=r.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,V),L instanceof r.SchemaEnv&&(L=L.schema),L===void 0)throw new n.default(b.opts.uriResolver,b.baseId,V)}const D=(_=L?.properties)===null||_===void 0?void 0:_[v];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);S=S&&(k||P(L)),O(D,M)}if(!S)throw new Error(`discriminator: "${v}" must be required`);return $;function P({required:M}){return Array.isArray(M)&&M.includes(v)}function O(M,L){if(M.const)q(M.const,L);else if(M.enum)for(const D of M.enum)q(D,L);else throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`)}function q(M,L){if(typeof M!="string"||M in $)throw new Error(`discriminator: "${v}" values must be unique strings`);$[M]=L}}}};return Gn.default=i,Gn}const Y0="http://json-schema.org/draft-07/schema#",Q0="http://json-schema.org/draft-07/schema#",Z0="Core schema meta-schema",eg={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:[]}},tg=["object","boolean"],rg={$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:"#"}},ng={$schema:Y0,$id:Q0,title:Z0,definitions:eg,type:tg,properties:rg,default:!0};var El;function og(){return El||(El=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=m0(),n=G0(),o=X0(),s=ng,i=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(v,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 f=Fo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var l=oe();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=di();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var b=Do();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})}(fn,fn.exports)),fn.exports}var xl;function sg(){return xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=og(),r=oe(),n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${o[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${o[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:c,data:f,schemaCode:l,keyword:p,it:b}=a,{opts:y,self:v}=b;if(!y.validateFormats)return;const g=new t.KeywordCxt(b,v.RULES.all.format.definition,"format");g.$data?d():m();function d(){const h=c.scopeValue("formats",{ref:v.formats,code:y.code.formats}),_=c.const("fmt",(0,r._)`${h}[${g.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${_} != "object"`,(0,r._)`${_} instanceof RegExp`,(0,r._)`typeof ${_}.compare != "function"`,u(_)))}function m(){const h=g.schema,_=v.formats[h];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${p}": format "${h}" does not define "compare" function`);const $=c.scopeValue("formats",{key:h,ref:_,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(h)}`:void 0});a.fail$data(u($))}function u(h){return(0,r._)`${h}.compare(${f}, ${l}) ${o[p].fail} 0`}},dependencies:["format"]};const i=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=i}(fs)),fs}var Pl;function ig(){return Pl||(Pl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=t0(),n=sg(),o=oe(),s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),a=(f,l={keywords:!0})=>{if(Array.isArray(l))return c(f,l,r.fullFormats,s),f;const[p,b]=l.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,s],y=l.formats||r.formatNames;return c(f,y,p,b),l.keywords&&(0,n.default)(f),f};a.get=(f,l="full")=>{const b=(l==="fast"?r.fastFormats:r.fullFormats)[f];if(!b)throw new Error(`Unknown format "${f}"`);return b};function c(f,l,p,b){var y,v;(y=(v=f.opts.code).formats)!==null&&y!==void 0||(v.formats=(0,o._)`require("ajv-formats/dist/formats").${b}`);for(const g of l)f.addFormat(g,p[g])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a}(un,un.exports)),un.exports}var ag=ig();const cg=yr(ag);var Jn={exports:{}},Cl;function lg(){return Cl||(Cl=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?.max)!==null&&p!==void 0?p:2;return()=>Math.floor(Math.random()*b)},seq:l=>{var p;const b=(p=l?.name)!==null&&p!==void 0?p:"";return r[b]||(r[b]=0),()=>r[b]++}},o=Object.assign(s,{DEFAULTS:n});function s(){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 y={};for(const g in l)y[g]=i(l[g]);const v=b.opts.useDefaults==="empty";return g=>{for(const d in l)(g[d]===void 0||v&&(g[d]===null||g[d]===""))&&(g[d]=y[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 i(l){return typeof l=="object"?a(l):c(l)}function a({func:l,args:p}){const b=n[l];return f(l,b),b(p)}function c(l=""){const p=n[l];return f(l,p),p()}function f(l,p){if(!p)throw new Error(`invalid "dynamicDefaults" keyword property value: ${l}`)}t.default=o,e.exports=o}(Jn,Jn.exports)),Jn.exports}var ug=lg();const _f=yr(ug),fg={$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"},dg={$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},pg={$id:"urn:jsonschema:feed",additionalProperties:!1,definitions:{author:{additionalProperties:!1,minProperties:1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{avatar:{description:"The URL for an image for the author. It should be square and relatively large — such as 512 x 512 pixels — and should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},name:{description:"The author’s name.",type:"string"},url:{description:"The URL of a site owned by the author. It could be a blog, micro-blog, Twitter account, and so on. Ideally the linked-to page provides a way to contact the author, but that’s not required. The URL could be a mailto: link.",format:"uri",type:"string"}},title:"Author",type:"object"},extension:{additionalProperties:!1,patternProperties:{"^[^.]*$":{}},title:"Extension",type:"object"}},description:"JSON Feed Version 1.1",dynamicDefaults:{id:"uuid"},patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{author:{allOf:[{$ref:"#/definitions/author"}],description:"The feed author."},authors:{description:"One or more feed authors.",items:{$ref:"#/definitions/author"},type:"array"},description:{description:"Provides more detail, beyond the title, on what the feed is about. A feed reader may display this text.",type:"string"},expired:{description:"Whether or not the feed is finished — that is, whether or not it will ever update again. A feed for a temporary event, such as an instance of the Olympics, could expire. If the value is true, then it’s expired. Any other value, or the absence of expired, means the feed may continue to update.",type:"boolean"},favicon:{description:"The URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64 pixels (so that it can look good on retina displays). This image should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},feed_url:{description:"The URL of the feed, serves as the unique identifier for the feed. This should be considered required for feeds on the public web.",format:"uri",type:"string"},home_page_url:{description:"The URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page. If a feed is published on the public web, this should be considered as required.",format:"uri",type:"string"},hubs:{description:"Describes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed.",items:{additionalProperties:!1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{type:{description:"Describes the protocol used to talk with the hub, such as “rssCloud” or “WebSub.”",type:"string"},url:{format:"uri",type:"string"}},required:["type","url"],type:"object"},type:"array"},icon:{description:"The URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used. It should be square and relatively large — such as 512 x 512 pixels — so that it can be scaled-down and so that it can look good on retina displays. It should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},items:{default:[],items:{additionalProperties:!1,anyOf:[{required:["content_html"]},{required:["content_text"]}],patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{attachments:{description:"Lists related resources. Podcasts, for instance, would include an attachment that’s an audio or video file.",items:{additionalProperties:!1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{duration_in_seconds:{description:"How long it takes to listen to or watch, when played at normal speed.",type:"number"},mime_type:{description:"The type of the attachment, such as “audio/mpeg.”",type:"string"},size_in_bytes:{description:"How large the file is.",type:"number"},title:{description:"A name for the attachment. Important: if there are multiple attachments, and two or more have the exact same title (when title is present), then they are considered as alternate representations of the same thing. In this way a podcaster, for instance, might provide an audio recording in different formats.",type:"string"},url:{description:"The location of the attachment.",format:"uri",type:"string"}},required:["url","mime_type"],type:"object"},type:"array"},author:{allOf:[{$ref:"#/definitions/author"}],description:"The author of the item."},authors:{description:"The authors of the item.",items:{$ref:"#/definitions/author"},type:"array"},banner_image:{description:"The URL of an image to use as a banner. Some blogging systems (such as Medium) display a different banner image chosen to go with each post, but that image wouldn’t otherwise appear in the content_html. A feed reader with a detail view may choose to show this banner image at the top of the detail view, possibly with the title overlaid.",format:"uri",type:"string"},content_html:{description:"The HTML of the item.",type:"string"},content_text:{description:"The plain text of the item.",type:"string"},date_modified:{description:"The modification date in RFC 3339 format.",format:"date-time",type:"string"},date_published:{description:"The date in RFC 3339 format.",format:"date-time",type:"string"},external_url:{description:"The URL of a page elsewhere. This is especially useful for linkblogs. If url links to where you’re talking about a thing, then external_url links to the thing you’re talking about.",format:"uri",type:"string"},id:{description:"Unique for that item for that feed over time. If an item is ever updated, the id should be unchanged. New items should never use a previously-used id. Ideally, the id is the full URL of the resource described by the item, since URLs make great unique identifiers.",type:"string"},image:{description:"The URL of the main image for the item. This image may also appear in the content_html — if so, it’s a hint to the feed reader that this is the main, featured image. Feed readers may use the image as a preview (probably resized as a thumbnail and placed in a timeline).",format:"uri",type:"string"},language:{description:"The language for this item, using the format specified in RFC 5646. The value can be different than the primary language for the feed when a specific item is written in a different language than other items in the feed.",type:"string"},summary:{description:"A plain text sentence or two describing the item. This might be presented in a timeline, for instance, where a detail view would display all of content_html or content_text.",type:"string"},tags:{description:"Can have any plain text values you want. Tags tend to be just one word, but they may be anything. Note: they are not the equivalent of Twitter hashtags. Some blogging systems and other feed formats call these categories.",items:{type:"string"},type:"array"},title:{description:"Plain text. Microblog items in particular may omit titles.",type:"string"},url:{description:"The URL of the resource described by the item. It’s the permalink. This may be the same as the id.",format:"uri",type:"string"}},required:["id"],type:"object"},type:"array"},language:{description:"The primary language for the feed in the format specified in RFC 5646. The value is usually a 2-letter language tag from ISO 639-1, optionally followed by a region tag.",type:"string"},next_url:{description:"The URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often.",format:"uri",type:"string"},title:{description:"The name of the feed, which will often correspond to the name of the website (blog, for instance), though not necessarily.",type:"string"},user_comment:{description:"A description of the purpose of the feed. This is for the use of people looking at the raw JSON, and should be ignored by feed readers.",type:"string"},version:{description:"The URL of the version of the format the feed uses. This should appear at the very top.",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],format:"uri",type:"string"}},required:["version","title","items"],title:"JSON Feed",type:"object"},hg={$id:"urn:jsonschema:importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},description:"The Imports field",type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},description:"The Scopes field",type:"object"}},title:"JSON schema for Import Maps files",type:"object"},mg={$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"},kf=()=>Math.random().toString(36).slice(2);_f.DEFAULTS.uuid=()=>kf;const br=new e0({code:{esm:!0},coerceTypes:!0,keywords:[_f()],removeAdditional:!0,schemas:[fg,dg,mg,hg,pg],useDefaults:!0});cg(br);const gg={get(){return this.children.filter(({enabled:e})=>e)}},yg={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},bg={get(){return this.$siblings[this.$index+1]}},vg={get(){return this.$siblings[this.$index-1]}},$g={get(){return this.siblings.filter(({enabled:e})=>e)}},wg=e=>{window.console.error(e)},_g=async e=>(await fetch(e)).text(),kg=ut({}),Sg=e=>Object.fromEntries(e.map(t=>[t.toLowerCase().replaceAll(" ","_"),t])),Eg={get(){return this.icon&&`i-${this.icon}`}},xg=ut({}),yo=ut([]),Pg={get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replaceAll(" ","_")}},Cg={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},jg={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};br.getSchema("urn:jsonschema:credentials");const Rg=br.getSchema("urn:jsonschema:data"),Og=br.getSchema("urn:jsonschema:feed"),Tg=br.getSchema("urn:jsonschema:importmap"),{leaves:bo,objLeaves:Ds}=Wh(yo);Ge(kg,async e=>{await Og?.(e)});Ge(xg,async e=>{await Tg?.(e)});Ge(bo,async e=>{await Rg?.(e)?e.forEach(t=>{Object.defineProperties(t,{$children:gg,$index:yg,$next:bg,$prev:vg,$siblings:$g,i:Eg,path:Pg,title:Cg,to:jg})}):(yo.length=0,yo.push({}))});const Sf=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Ng(e={}){const t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;let o;return{name:"attributify",match(s,{generator:i}){const a=Lp(s);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;const f=a[2],[,l="",p=f]=f.match(Sf)||[];if(p==="~"||n&&p==="true"||!p)return`${l}${c}`;if(o==null){const b=i?.config?.separators?.join("|");b?o=new RegExp(`^(.*\\](?:${b}))(\\[[^\\]]+?\\])$`):o=!1}if(o){const[,b,y]=f.match(o)||[];if(y)return`${b}${l}${c}-${y}`}if(l&&p.match(/^[\d.]+$/)){const b=l.split(/([^:]*:)/g).filter(Boolean),y=b.pop()+p,v=b.join("");return[{matcher:`${l}${c}-${p}`},{matcher:`${v}${c}-${y}`}]}return`${l}${c}-${p}`}}}const Ag=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ig=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,jl=/[\s'"`;>]+/;function Mg(e){return{name:"attributify",extract:({content:t,cursor:r})=>{const n=t.matchAll(Ag);let o,s=0;for(const u of n){const[,h,_]=u,$=u.index+h.length;if(r>$&&r<=$+_.length){s=$,o=_;break}}if(!o)return null;const i=o.matchAll(Ig);let a=0,c,f;for(const u of i){const[h,_,$]=u,k=s+u.index;if(r>k&&r<=k+h.length){a=k,c=_,f=$?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;const l=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!l)return null;const p=l?c.slice(e.prefix.length):c;if(f===void 0)return{extracted:p,resolveReplacement(u){const h=l?e.prefix.length:0;return{start:a+h,end:a+c.length,replacement:u}}};const b=a+c.length+2;let y=jl.exec(f),v=0,g;for(;y;){const[u]=y;if(r>b+v&&r<=b+v+y.index){g=f.slice(v,v+y.index);break}v+=y.index+u.length,y=jl.exec(f.slice(v))}g===void 0&&(g=f.slice(v));const[,d="",m]=g.match(Sf)||[];return{extracted:`${d}${p}-${m}`,transformSuggestions(u){return u.filter(h=>h.startsWith(`${d}${p}-`)).map(h=>d+h.slice(d.length+p.length+1))},resolveReplacement(u){return{start:v+b,end:v+b+g.length,replacement:d+u.slice(d.length+p.length+1)}}}}}}const zg=["v-bind:",":"],Rl=/[\s'"`;]+/g,vs=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,qg=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Ef=["placeholder","fill","opacity","stroke-opacity"];function Fg(e){const t=e?.ignoreAttributes??Ef,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(vs)).flatMap(s=>Array.from((s[1]||"").matchAll(qg))).flatMap(([,s,...i])=>{const a=i.filter(Boolean).join("");if(t.includes(s))return[];for(const c of zg)if(s.startsWith(c)){s=s.slice(c.length);break}if(!a){if(Fs(s)&&r!==!1){const c=[`[${s}=""]`];return n&&c.push(`[${s}="true"]`),c}return[]}return["class","className"].includes(s)?a.split(Rl).filter(Fs):vs.test(a)?(vs.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!s.startsWith(e.prefix)?[]:a.split(Rl).filter(c=>!!c&&c!==":").map(c=>`[${s}~="${c}"]`)})}}}const Dg=(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??Ef;const t=[Ng(e)],r=[Fg(e)],n=[Mg(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},Lg=Object.freeze({left:0,top:0,width:16,height:16}),vo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xf=Object.freeze({...Lg,...vo}),Vg=Object.freeze({...xf,body:"",hidden:!1}),Ug=Object.freeze({width:null,height:null}),Pf=Object.freeze({...Ug,...vo});function Hg(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 Ol(e,t){const r=Hg(e,t);for(const n in Vg)n in vo?n in e&&!(n in r)&&(r[n]=vo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Kg(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(s),o}function Tl(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ol(n[a]||o[a],s)}return i(t),r.forEach(i),Ol(e,s)}function Wg(e,t){if(e.icons[t])return Tl(e,t,[]);const r=Kg(e,[t])[t];return r?Tl(e,t,r):null}const Bg=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gg=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $o(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(Bg);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=Gg.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function Jg(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function Xg(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Yg(e,t,r){const n=Jg(e);return Xg(n.defs,t+n.content+r)}const mi=e=>e==="unset"||e==="undefined"||e==="none";function Qg(e,t){const r={...xf,...e},n={...Pf,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(g=>{const d=[],m=g.hFlip,u=g.vFlip;let h=g.rotate;m?u?h+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):u&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let _;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){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}h%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&&(s=Yg(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=o.width,f=o.height;let l,p;i===null?(p=a===null?"1em":a==="auto"?f:a,l=$o(p,c/f)):(l=i==="auto"?c:i,p=a===null?$o(l,f/c):a==="auto"?f:a);const b={},y=(g,d)=>{mi(d)||(b[g]=d.toString())};y("width",l),y("height",p);const v=[o.left,o.top,c,f];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:s}}function Zg(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Nl(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" ')),Zg(t)}function ey(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 ty=/\swidth\s*=\s*["']([\w.]+)["']/,ry=/\sheight\s*=\s*["']([\w.]+)["']/,$s=/<svg\s+/;function ny(e,t,r){const n=e.slice(0,e.indexOf(">")),o=(s,i)=>{const a=i.exec(n),c=a!=null,f=t[s];return!f&&!mi(f)&&(typeof r=="number"?r>0&&(t[s]=$o(a?.[1]??"1em",r)):a&&(t[s]=a[1])),c};return[o("width",ty),o("height",ry)]}async function Cf(e,t,r,n,o,s){const{scale:i,addXmlNs:a=!1}=n??{},{additionalProps:c={},iconCustomizer:f}=n?.customizations??{},l=await o?.()??{};await f?.(t,r,l),Object.keys(c).forEach(g=>{const d=c[g];d!=null&&(l[g]=d)}),s?.(l);const[p,b]=ny(e,l,i);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 y=Object.keys(l).map(g=>g==="width"&&p||g==="height"&&b?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(y.length&&(e=e.replace($s,`<svg ${y.join(" ")} `)),n){const{defaultStyle:g,defaultClass:d}=n;d&&!e.includes("class=")&&(e=e.replace($s,`<svg class="${d}" `)),g&&!e.includes("style=")&&(e=e.replace($s,`<svg style="${g}" `))}const v=n?.usedProps;return v&&(Object.keys(c).forEach(g=>{const d=l[g];d!=null&&(v[g]=d)}),typeof l.width<"u"&&l.width!==null&&(v.width=l.width),typeof l.height<"u"&&l.height!==null&&(v.height=l.height)),e}var Xn={exports:{}},ws,Al;function oy(){if(Al)return ws;Al=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,s=n*365.25;ws=function(l,p){p=p||{};var b=typeof l;if(b==="string"&&l.length>0)return i(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 i(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]),y=(p[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return b*s;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?f(l,p,n,"day"):p>=r?f(l,p,r,"hour"):p>=t?f(l,p,t,"minute"):p>=e?f(l,p,e,"second"):l+" ms"}function f(l,p,b,y){var v=p>=b*1.5;return Math.round(l/b)+" "+y+(v?"s":"")}return ws}var _s,Il;function sy(){if(Il)return _s;Il=1;function e(t){n.debug=n,n.default=n,n.coerce=f,n.disable=a,n.enable=s,n.enabled=c,n.humanize=oy(),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 y=0;y<p.length;y++)b=(b<<5)-b+p.charCodeAt(y),b|=0;return n.colors[Math.abs(b)%n.colors.length]}n.selectColor=r;function n(p){let b,y=null,v,g;function d(...m){if(!d.enabled)return;const u=d,h=Number(new Date),_=h-(b||h);u.diff=_,u.prev=b,u.curr=h,b=h,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let $=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(S,P)=>{if(S==="%%")return"%";$++;const O=n.formatters[P];if(typeof O=="function"){const q=m[$];S=O.call(u,q),m.splice($,1),$--}return S}),n.formatArgs.call(u,m),(u.log||n.log).apply(u,m)}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:()=>y!==null?y:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(p)),g),set:m=>{y=m}}),typeof n.init=="function"&&n.init(d),d}function o(p,b){const y=n(this.namespace+(typeof b>"u"?":":b)+p);return y.log=this.log,y}function s(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 y of b)y[0]==="-"?n.skips.push(y.slice(1)):n.names.push(y)}function i(p,b){let y=0,v=0,g=-1,d=0;for(;y<p.length;)if(v<b.length&&(b[v]===p[y]||b[v]==="*"))b[v]==="*"?(g=v,d=y,v++):(y++,v++);else if(g!==-1)v=g+1,d++,y=d;else return!1;for(;v<b.length&&b[v]==="*";)v++;return v===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(i(p,b))return!1;for(const b of n.names)if(i(p,b))return!0;return!1}function f(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 _s=e,_s}var Ml;function iy(){return Ml||(Ml=1,function(e,t){var r={};t.formatArgs=o,t.save=s,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!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 f;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&&(f=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(f[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;f.splice(1,0,l,"color: inherit");let p=0,b=0;f[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(p++,y==="%c"&&(b=p))}),f.splice(b,0,l)}t.log=console.debug||console.log||(()=>{});function s(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function i(){let f;try{f=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!f&&typeof process<"u"&&"env"in process&&(f=r.DEBUG),f}function a(){try{return localStorage}catch{}}e.exports=sy()(t);const{formatters:c}=e.exports;c.j=function(f){try{return JSON.stringify(f)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Xn,Xn.exports)),Xn.exports}var ay=iy();const jf=yr(ay),cy=jf("@iconify-loader:custom");async function zl(e,t,r,n){let o;cy(`${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:i}=n?.customizations??{};return o=typeof i=="function"?await i(o,t,r):o,o.startsWith("<svg")?await Cf(n?.customizations?.trimCustomSvg===!0?ey(o):o,t,r,n,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),o)}}const ly=jf("@iconify-loader:icon");async function Rf(e,t,r,n){let o;const{customize:s}=n?.customizations??{};for(const i of r)if(o=Wg(e,i),o){ly(`${t}:${i}`);let a={...Pf};typeof s=="function"&&(o=Object.assign({},o),a=s(a,o,`${t}:${i}`)??a);const{attributes:{width:c,height:f,...l},body:p}=Qg(o,a),b=n?.scale;return await Cf(`<svg >${p}</svg>`,t,i,n,()=>({...l}),y=>{const v=(g,d)=>{const m=y[g];let u;if(!mi(m)){if(m)return;typeof b=="number"?b&&(u=$o(d??"1em",b)):u=d}u?y[g]=u:delete y[g]};v("width",c),v("height",f)})}}const Of=async(e,t,r)=>{const n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let o;try{o=await n(t)}catch(s){console.warn(`Failed to load custom icon "${t}" in "${e}":`,s);return}if(o){if(typeof o=="string")return await zl(()=>o,e,t,r);if("icons"in o){const s=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Rf(o,e,s,r)}}}else return await zl(n,e,t,r)},uy=/"(?:_|\\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*:/,fy=/"(?: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*:/,dy=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function py(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){hy(e);return}return t}function hy(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function my(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(!dy.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(uy.test(e)||fy.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,py)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const gy=/#/g,yy=/&/g,by=/\//g,vy=/=/g,gi=/\+/g,$y=/%5e/gi,wy=/%60/gi,_y=/%7c/gi,ky=/%20/gi;function Sy(e){return encodeURI(""+e).replace(_y,"|")}function Ls(e){return Sy(typeof e=="string"?e:JSON.stringify(e)).replace(gi,"%2B").replace(ky,"+").replace(gy,"%23").replace(yy,"%26").replace(wy,"`").replace($y,"^").replace(by,"%2F")}function ks(e){return Ls(e).replace(vy,"%3D")}function Tf(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ey(e){return Tf(e.replace(gi," "))}function xy(e){return Tf(e.replace(gi," "))}function Py(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=Ey(n[1]);if(o==="__proto__"||o==="constructor")continue;const s=xy(n[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function Cy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ks(e)}=${Ls(r)}`).join("&"):`${ks(e)}=${Ls(t)}`:ks(e)}function jy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Cy(t,e[t])).filter(Boolean).join("&")}const Ry=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Oy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ty=/^([/\\]\s*){2,}[^/\\]/,Ny=/^\.?\//;function Nf(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Ry.test(e):Oy.test(e)||(t.acceptRelative?Ty.test(e):!1)}function Ay(e="",t){return e.endsWith("/")}function Iy(e="",t){return(Ay(e)?e.slice(0,-1):e)||"/"}function My(e="",t){return e.endsWith("/")?e:e+"/"}function zy(e,t){if(Fy(t)||Nf(e))return e;const r=Iy(t);return e.startsWith(r)?e:Ly(r,e)}function qy(e,t){const r=Vy(e),n={...Py(r.search),...t};return r.search=jy(n),Uy(r)}function Fy(e){return!e||e==="/"}function Dy(e){return e&&e!=="/"}function Ly(e,...t){let r=e||"";for(const n of t.filter(o=>Dy(o)))if(r){const o=n.replace(Ny,"");r=My(r)+o}else r=n;return r}const Af=Symbol.for("ufo:protocolRelative");function Vy(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(!Nf(e,{acceptRelative:!0}))return ql(e);const[,n="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:f,hash:l}=ql(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:c,search:f,hash:l,[Af]:!n}}function ql(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Uy(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Af]?(e.protocol||"")+"//":"")+o+s+t+r+n}class If extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}}function Mf(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${o}: ${s}${t?` ${t}`:""}`,a=new If(i,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[f]}});return a}const Hy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Fl(e="GET"){return Hy.has(e.toUpperCase())}function Ky(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 Wy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),By=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Gy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return By.test(t)?"json":Wy.has(t)||t.startsWith("text/")?"text":"blob"}function Jy(e,t,r,n){const o=Xy(t?.headers??e?.headers,r?.headers,n);let s;return(r?.query||r?.params||t?.params||t?.query)&&(s={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:s,params:s,headers:o}}function Xy(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,s);return n}async function Yn(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const Yy=new Set([408,409,425,429,500,502,503,504]),Qy=new Set([101,204,205,304]);function yi(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=Fl(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):Yy.has(p))){const b=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return b>0&&await new Promise(y=>setTimeout(y,b)),s(a.request,{...a.options,retry:l-1})}}const f=Mf(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,s),f}const s=async function(c,f={}){const l={request:c,options:Jy(c,f,e.defaults,r),response:void 0,error:void 0};l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&await Yn(l,l.options.onRequest),typeof l.request=="string"&&(l.options.baseURL&&(l.request=zy(l.request,l.options.baseURL)),l.options.query&&(l.request=qy(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&&Fl(l.options.method)&&(Ky(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 y=new n;p=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,y.abort(v)},l.options.timeout),l.options.signal=y.signal}try{l.response=await t(l.request,l.options)}catch(y){return l.error=y,l.options.onRequestError&&await Yn(l,l.options.onRequestError),await o(l)}finally{p&&clearTimeout(p)}if((l.response.body||l.response._bodyInit)&&!Qy.has(l.response.status)&&l.options.method!=="HEAD"){const y=(l.options.parseResponse?"json":l.options.responseType)||Gy(l.response.headers.get("content-type")||"");switch(y){case"json":{const v=await l.response.text(),g=l.options.parseResponse||my;l.response._data=g(v);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[y]()}}return l.options.onResponse&&await Yn(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await Yn(l,l.options.onResponseError),await o(l)):l.response},i=async function(c,f){return(await s(c,f))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},c={})=>yi({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),i}const wo=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")}(),zf=wo.fetch?(...e)=>wo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),qf=wo.Headers,Ff=wo.AbortController,Df=yi({fetch:zf,Headers:qf,AbortController:Ff}),Lf=Df,Vs=Object.freeze(Object.defineProperty({__proto__:null,$fetch:Lf,AbortController:Ff,FetchError:If,Headers:qf,createFetch:yi,createFetchError:Mf,fetch:zf,ofetch:Df},Symbol.toStringTag,{value:"Module"}));var Dl={};const Vf=["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","dinkie-icons","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-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","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"],Zy=3;function eb(e){return(t={})=>{const{scale:r=1,mode:n="auto",prefix:o="i-",warn:s=!1,iconifyCollectionsNames:i,collections:a,extraProperties:c={},customizations:f={},autoInstall:l=!1,collectionsNodeResolvePath:p,layer:b="icons",unit:y,processor:v}=t,g=tb(),d={addXmlNs:!0,scale:r,customCollections:a,autoInstall:l,cwd:p,warn:void 0,customizations:{...f,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(u,h,_){await f.iconCustomizer?.(u,h,_),y&&(_.width||(_.width=`${r}${y}`),_.height||(_.height=`${r}${y}`))}}};let m;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Nl,parseIconWithLoader:Ll},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async u=>{let[h,_,$=n]=u;m=m||await e(t);const k={},S=await Ll(_,m,{...d,usedProps:k},i);if(!S){s&&!g.isESLint&&ef(`failed to load icon "${h}"`);return}let P;const O=`url("data:image/svg+xml;utf8,${Nl(S.svg)}")`;return $==="auto"&&($=S.svg.includes("currentColor")?"mask":"bg"),$==="mask"?P={"--un-icon":O,"-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",...k}:P={background:`${O} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...k},v?.(P,{...S,icon:S.name,mode:$}),P},{layer:b,prefix:o}]]}}}function Uf(e,t,r=new Map){function n(o){if(Vf.includes(o))return r.has(o)||r.set(o,e(`${t}@iconify-json/${o}/icons.json`)),r.get(o)}return async(o,s,i)=>{let a=await Of(o,s,i);if(a)return a;const c=await n(o);if(c){const f=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Rf(c,o,f,i)}return a}}function tb(){const e=typeof process<"u"&&process.stdout,t=e&&!!Dl.VSCODE_CWD,r=e&&!!Dl.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}async function Ll(e,t,r={},n=[]){let o="",s="",i;const a=new Set([...Vf,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([o,s]=e.split(":"),!a.has(o))return;i=await t(o,s,r)}else{const c=e.split(/-/g);for(let f=Zy;f>=1&&(o=c.slice(0,f).join("-"),!(!!a.has(o)&&(s=c.slice(f).join("-"),i=await t(o,s,r),i)));f--);}if(i)return{collection:o,name:s,svg:i}}function rb(e){return Uf(Lf,e)}const nb=eb(async e=>{const t=e?.customFetch,r=e?.cdn;return t&&r?Uf(t,r):r?rb(r):Of}),Us="__TAGIFY__",ob=/<([\w:-]+)/g;function sb(e){const{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(ob)).filter(({1:o})=>{for(const s of r)if(typeof s=="string"){if(o===s)return!1}else if(s.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${Us}${o}`)}}}function ib(e){const{extraProperties:t}=e,r=`${Us}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;const o=n.slice(r.length),s={matcher:o,selector:i=>i.slice(Us.length+1)};return t&&(typeof t=="function"?s.body=i=>[...i,...Object.entries(t(o)??{})]:s.body=i=>[...i,...Object.entries(t)]),s}}}const ab=(e={})=>{const{defaultExtractor:t=!0}=e,r=[ib(e)],n=[sb(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}};class _o{constructor(t){this.bits=t instanceof _o?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class pr{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 pr(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 s=new pr(t,this.end,o);return s.outro=this.outro,this.outro="",this.end=t,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}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 cb(){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 lb=cb();class ub{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Wd(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,"+lb(this.toString())}}function fb(e){const t=e.split(`
|
|
23
|
+
deps: ${l}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[f,l]=s(c);i(c,f),a(c,l)}};function s({schema:c}){const f={},l={};for(const p in c){if(p==="__proto__")continue;const b=Array.isArray(c[p])?f:l;b[p]=c[p]}return[f,l]}function i(c,f=c.schema){const{gen:l,data:p,it:b}=c;if(Object.keys(f).length===0)return;const y=l.let("missing");for(const v in f){const g=f[v];if(g.length===0)continue;const d=(0,n.propertyInData)(l,p,v,b.opts.ownProperties);c.setParams({property:v,depsCount:g.length,deps:g.join(", ")}),b.allErrors?l.if(d,()=>{for(const m of g)(0,n.checkReportMissingProp)(c,m)}):(l.if((0,t._)`${d} && (${(0,n.checkMissingProp)(c,g,y)})`),(0,n.reportMissingProp)(c,y),l.else())}}e.validatePropertyDeps=i;function a(c,f=c.schema){const{gen:l,data:p,keyword:b,it:y}=c,v=l.name("valid");for(const g in f)(0,r.alwaysValidSchema)(y,f[g])||(l.if((0,n.propertyInData)(l,p,g,y.opts.ownProperties),()=>{const d=c.subschema({keyword:b,schemaProp:g},v);c.mergeValidEvaluated(d,v)},()=>l.var(v,!0)),c.ok(v))}e.validateSchemaDeps=a,e.default=o}(bs)),bs}var Mn={},cl;function I0(){if(cl)return Mn;cl=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=oe(),t=ue(),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:s,schema:i,data:a,it:c}=o;if((0,t.alwaysValidSchema)(c,i))return;const f=s.name("valid");s.forIn("key",a,l=>{o.setParams({propertyName:l}),o.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),c.allErrors||s.break()})}),o.ok(f)}};return Mn.default=n,Mn}var zn={},ll;function wf(){if(ll)return zn;ll=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=dt(),n=ue(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:a,schema:c,parentSchema:f,data:l,errsCount:p,it:b}=i;if(!p)throw new Error("ajv implementation error");const{allErrors:y,opts:v}=b;if(b.props=!0,v.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(b,c))return;const g=(0,e.allSchemaProperties)(f.properties),d=(0,e.allSchemaProperties)(f.patternProperties);m(),i.ok((0,t._)`${p} === ${r.default.errors}`);function m(){a.forIn("key",l,k=>{!g.length&&!d.length?_(k):a.if(u(k),()=>_(k))})}function u(k){let S;if(g.length>8){const P=(0,n.schemaRefOrVal)(b,f.properties,"properties");S=(0,e.isOwnProperty)(a,P,k)}else g.length?S=(0,t.or)(...g.map(P=>(0,t._)`${k} === ${P}`)):S=t.nil;return d.length&&(S=(0,t.or)(S,...d.map(P=>(0,t._)`${(0,e.usePattern)(i,P)}.test(${k})`))),(0,t.not)(S)}function h(k){a.code((0,t._)`delete ${l}[${k}]`)}function _(k){if(v.removeAdditional==="all"||v.removeAdditional&&c===!1){h(k);return}if(c===!1){i.setParams({additionalProperty:k}),i.error(),y||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(b,c)){const S=a.name("valid");v.removeAdditional==="failing"?($(k,S,!1),a.if((0,t.not)(S),()=>{i.reset(),h(k)})):($(k,S),y||a.if((0,t.not)(S),()=>a.break()))}}function $(k,S,P){const O={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};P===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(O,S)}}};return zn.default=s,zn}var qn={},ul;function M0(){if(ul)return qn;ul=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=Fo(),t=Ke(),r=ue(),n=wf(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,parentSchema:c,data:f,it:l}=s;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(i,(0,r.toHash)(p),l.props));const b=p.filter(d=>!(0,r.alwaysValidSchema)(l,a[d]));if(b.length===0)return;const y=i.name("valid");for(const d of b)v(d)?g(d):(i.if((0,t.propertyInData)(i,f,d,l.opts.ownProperties)),g(d),l.allErrors||i.else().var(y,!0),i.endIf()),s.it.definedProperties.add(d),s.ok(y);function v(d){return l.opts.useDefaults&&!l.compositeRule&&a[d].default!==void 0}function g(d){s.subschema({keyword:"properties",schemaProp:d,dataProp:d},y)}}};return qn.default=o,qn}var Fn={},fl;function z0(){if(fl)return Fn;fl=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=ue(),n=ue(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,data:c,parentSchema:f,it:l}=s,{opts:p}=l,b=(0,e.allSchemaProperties)(a),y=b.filter(_=>(0,r.alwaysValidSchema)(l,a[_]));if(b.length===0||y.length===b.length&&(!l.opts.unevaluated||l.props===!0))return;const v=p.strictSchema&&!p.allowMatchingProperties&&f.properties,g=i.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(i,l.props));const{props:d}=l;m();function m(){for(const _ of b)v&&u(_),l.allErrors?h(_):(i.var(g,!0),h(_),i.if(g))}function u(_){for(const $ in v)new RegExp(_).test($)&&(0,r.checkStrictMode)(l,`property ${$} matches pattern ${_} (use allowMatchingProperties)`)}function h(_){i.forIn("key",c,$=>{i.if((0,t._)`${(0,e.usePattern)(s,_)}.test(${$})`,()=>{const k=y.includes(_);k||s.subschema({keyword:"patternProperties",schemaProp:_,dataProp:$,dataPropType:n.Type.Str},g),l.opts.unevaluated&&d!==!0?i.assign((0,t._)`${d}[${$}]`,!0):!k&&!l.allErrors&&i.if((0,t.not)(g),()=>i.break())})})}}};return Fn.default=o,Fn}var Dn={},dl;function q0(){if(dl)return Dn;dl=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ue(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const i=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Dn.default=t,Dn}var Ln={},pl;function F0(){if(pl)return Ln;pl=1,Object.defineProperty(Ln,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ke().validateUnion,error:{message:"must match a schema in anyOf"}};return Ln.default=t,Ln}var Vn={},hl;function D0(){if(hl)return Vn;hl=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=oe(),t=ue(),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:s,schema:i,parentSchema:a,it:c}=o;if(!Array.isArray(i))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const f=i,l=s.let("valid",!1),p=s.let("passing",null),b=s.name("_valid");o.setParams({passing:p}),s.block(y),o.result(l,()=>o.reset(),()=>o.error(!0));function y(){f.forEach((v,g)=>{let d;(0,t.alwaysValidSchema)(c,v)?s.var(b,!0):d=o.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},b),g>0&&s.if((0,e._)`${b} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${g}]`).else(),s.if(b,()=>{s.assign(l,!0),s.assign(p,g),d&&o.mergeEvaluated(d,e.Name)})})}}};return Vn.default=n,Vn}var Un={},ml;function L0(){if(ml)return Un;ml=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=ue(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const i=n.name("valid");o.forEach((a,c)=>{if((0,e.alwaysValidSchema)(s,a))return;const f=r.subschema({keyword:"allOf",schemaProp:c},i);r.ok(i),r.mergeEvaluated(f)})}};return Un.default=t,Un}var Hn={},gl;function V0(){if(gl)return Hn;gl=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:i,parentSchema:a,it:c}=s;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const f=o(c,"then"),l=o(c,"else");if(!f&&!l)return;const p=i.let("valid",!0),b=i.name("_valid");if(y(),s.reset(),f&&l){const g=i.let("ifClause");s.setParams({ifClause:g}),i.if(b,v("then",g),v("else",g))}else f?i.if(b,v("then")):i.if((0,e.not)(b),v("else"));s.pass(p,()=>s.error(!0));function y(){const g=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},b);s.mergeEvaluated(g)}function v(g,d){return()=>{const m=s.subschema({keyword:g},b);i.assign(p,b),s.mergeValidEvaluated(m,p),d?i.assign(d,(0,e._)`${g}`):s.setParams({ifClause:g})}}}};function o(s,i){const a=s.schema[i];return a!==void 0&&!(0,t.alwaysValidSchema)(s,a)}return Hn.default=n,Hn}var Kn={},yl;function U0(){if(yl)return Kn;yl=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=ue(),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 Kn.default=t,Kn}var bl;function H0(){if(bl)return Tn;bl=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=vf(),t=O0(),r=$f(),n=T0(),o=N0(),s=A0(),i=I0(),a=wf(),c=M0(),f=z0(),l=q0(),p=F0(),b=D0(),y=L0(),v=V0(),g=U0();function d(m=!1){const u=[l.default,p.default,b.default,y.default,v.default,g.default,i.default,a.default,s.default,c.default,f.default];return m?u.push(t.default,n.default):u.push(e.default,r.default),u.push(o.default),u}return Tn.default=d,Tn}var Wn={},Bn={},vl;function K0(){if(vl)return Bn;vl=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=oe(),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:s,data:i,$data:a,schema:c,schemaCode:f,it:l}=n,{opts:p,errSchemaPath:b,schemaEnv:y,self:v}=l;if(!p.validateFormats)return;a?g():d();function g(){const m=s.scopeValue("formats",{ref:v.formats,code:p.code.formats}),u=s.const("fDef",(0,e._)`${m}[${f}]`),h=s.let("fType"),_=s.let("format");s.if((0,e._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`,()=>s.assign(h,(0,e._)`${u}.type || "string"`).assign(_,(0,e._)`${u}.validate`),()=>s.assign(h,(0,e._)`"string"`).assign(_,u)),n.fail$data((0,e.or)($(),k()));function $(){return p.strictSchema===!1?e.nil:(0,e._)`${f} && !${_}`}function k(){const S=y.$async?(0,e._)`(${u}.async ? await ${_}(${i}) : ${_}(${i}))`:(0,e._)`${_}(${i})`,P=(0,e._)`(typeof ${_} == "function" ? ${S} : ${_}.test(${i}))`;return(0,e._)`${_} && ${_} !== true && ${h} === ${o} && !${P}`}}function d(){const m=v.formats[c];if(!m){$();return}if(m===!0)return;const[u,h,_]=k(m);u===o&&n.pass(S());function $(){if(p.strictSchema===!1){v.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${b}"`}}function k(P){const O=P instanceof RegExp?(0,e.regexpCode)(P):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,q=s.scopeValue("formats",{key:c,ref:P,code:O});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${q}.validate`]:["string",P,q]}function S(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${_}(${i})`}return typeof h=="function"?(0,e._)`${_}(${i})`:(0,e._)`${_}.test(${i})`}}}};return Bn.default=r,Bn}var $l;function W0(){if($l)return Wn;$l=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t=[K0().default];return Wn.default=t,Wn}var wt={},wl;function B0(){return wl||(wl=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.contentVocabulary=wt.metadataVocabulary=void 0,wt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],wt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),wt}var _l;function G0(){if(_l)return gn;_l=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=b0(),t=R0(),r=H0(),n=W0(),o=B0(),s=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return gn.default=s,gn}var Gn={},Qt={},kl;function J0(){if(kl)return Qt;kl=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Qt.DiscrError=e={})),Qt}var Sl;function X0(){if(Sl)return Gn;Sl=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=oe(),t=J0(),r=pi(),n=Do(),o=ue(),i={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:f}})=>(0,e._)`{error: ${a}, tag: ${f}, tagValue: ${c}}`},code(a){const{gen:c,data:f,schema:l,parentSchema:p,it:b}=a,{oneOf:y}=p;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const v=l.propertyName;if(typeof v!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),d=c.const("tag",(0,e._)`${f}${(0,e.getProperty)(v)}`);c.if((0,e._)`typeof ${d} == "string"`,()=>m(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:d,tagName:v})),a.ok(g);function m(){const _=h();c.if(!1);for(const $ in _)c.elseIf((0,e._)`${d} === ${$}`),c.assign(g,u(_[$]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:d,tagName:v}),c.endIf()}function u(_){const $=c.name("valid"),k=a.subschema({keyword:"oneOf",schemaProp:_},$);return a.mergeEvaluated(k,e.Name),$}function h(){var _;const $={},k=P(p);let S=!0;for(let M=0;M<y.length;M++){let L=y[M];if(L?.$ref&&!(0,o.schemaHasRulesButRef)(L,b.self.RULES)){const V=L.$ref;if(L=r.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,V),L instanceof r.SchemaEnv&&(L=L.schema),L===void 0)throw new n.default(b.opts.uriResolver,b.baseId,V)}const D=(_=L?.properties)===null||_===void 0?void 0:_[v];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);S=S&&(k||P(L)),O(D,M)}if(!S)throw new Error(`discriminator: "${v}" must be required`);return $;function P({required:M}){return Array.isArray(M)&&M.includes(v)}function O(M,L){if(M.const)q(M.const,L);else if(M.enum)for(const D of M.enum)q(D,L);else throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`)}function q(M,L){if(typeof M!="string"||M in $)throw new Error(`discriminator: "${v}" values must be unique strings`);$[M]=L}}}};return Gn.default=i,Gn}const Y0="http://json-schema.org/draft-07/schema#",Q0="http://json-schema.org/draft-07/schema#",Z0="Core schema meta-schema",eg={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:[]}},tg=["object","boolean"],rg={$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:"#"}},ng={$schema:Y0,$id:Q0,title:Z0,definitions:eg,type:tg,properties:rg,default:!0};var El;function og(){return El||(El=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=m0(),n=G0(),o=X0(),s=ng,i=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(v,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 f=Fo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var l=oe();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=di();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var b=Do();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})}(fn,fn.exports)),fn.exports}var xl;function sg(){return xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=og(),r=oe(),n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${o[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${o[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:c,data:f,schemaCode:l,keyword:p,it:b}=a,{opts:y,self:v}=b;if(!y.validateFormats)return;const g=new t.KeywordCxt(b,v.RULES.all.format.definition,"format");g.$data?d():m();function d(){const h=c.scopeValue("formats",{ref:v.formats,code:y.code.formats}),_=c.const("fmt",(0,r._)`${h}[${g.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${_} != "object"`,(0,r._)`${_} instanceof RegExp`,(0,r._)`typeof ${_}.compare != "function"`,u(_)))}function m(){const h=g.schema,_=v.formats[h];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${p}": format "${h}" does not define "compare" function`);const $=c.scopeValue("formats",{key:h,ref:_,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(h)}`:void 0});a.fail$data(u($))}function u(h){return(0,r._)`${h}.compare(${f}, ${l}) ${o[p].fail} 0`}},dependencies:["format"]};const i=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=i}(fs)),fs}var Pl;function ig(){return Pl||(Pl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=t0(),n=sg(),o=oe(),s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),a=(f,l={keywords:!0})=>{if(Array.isArray(l))return c(f,l,r.fullFormats,s),f;const[p,b]=l.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,s],y=l.formats||r.formatNames;return c(f,y,p,b),l.keywords&&(0,n.default)(f),f};a.get=(f,l="full")=>{const b=(l==="fast"?r.fastFormats:r.fullFormats)[f];if(!b)throw new Error(`Unknown format "${f}"`);return b};function c(f,l,p,b){var y,v;(y=(v=f.opts.code).formats)!==null&&y!==void 0||(v.formats=(0,o._)`require("ajv-formats/dist/formats").${b}`);for(const g of l)f.addFormat(g,p[g])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a}(un,un.exports)),un.exports}var ag=ig();const cg=yr(ag);var Jn={exports:{}},Cl;function lg(){return Cl||(Cl=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?.max)!==null&&p!==void 0?p:2;return()=>Math.floor(Math.random()*b)},seq:l=>{var p;const b=(p=l?.name)!==null&&p!==void 0?p:"";return r[b]||(r[b]=0),()=>r[b]++}},o=Object.assign(s,{DEFAULTS:n});function s(){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 y={};for(const g in l)y[g]=i(l[g]);const v=b.opts.useDefaults==="empty";return g=>{for(const d in l)(g[d]===void 0||v&&(g[d]===null||g[d]===""))&&(g[d]=y[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 i(l){return typeof l=="object"?a(l):c(l)}function a({func:l,args:p}){const b=n[l];return f(l,b),b(p)}function c(l=""){const p=n[l];return f(l,p),p()}function f(l,p){if(!p)throw new Error(`invalid "dynamicDefaults" keyword property value: ${l}`)}t.default=o,e.exports=o}(Jn,Jn.exports)),Jn.exports}var ug=lg();const _f=yr(ug),fg={$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"},dg={$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},pg={$id:"urn:jsonschema:feed",additionalProperties:!1,definitions:{author:{additionalProperties:!1,minProperties:1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{avatar:{description:"The URL for an image for the author. It should be square and relatively large — such as 512 x 512 pixels — and should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},name:{description:"The author’s name.",type:"string"},url:{description:"The URL of a site owned by the author. It could be a blog, micro-blog, Twitter account, and so on. Ideally the linked-to page provides a way to contact the author, but that’s not required. The URL could be a mailto: link.",format:"uri",type:"string"}},title:"Author",type:"object"},extension:{additionalProperties:!1,patternProperties:{"^[^.]*$":{}},title:"Extension",type:"object"}},description:"JSON Feed Version 1.1",dynamicDefaults:{id:"uuid"},patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{author:{allOf:[{$ref:"#/definitions/author"}],description:"The feed author."},authors:{description:"One or more feed authors.",items:{$ref:"#/definitions/author"},type:"array"},description:{description:"Provides more detail, beyond the title, on what the feed is about. A feed reader may display this text.",type:"string"},expired:{description:"Whether or not the feed is finished — that is, whether or not it will ever update again. A feed for a temporary event, such as an instance of the Olympics, could expire. If the value is true, then it’s expired. Any other value, or the absence of expired, means the feed may continue to update.",type:"boolean"},favicon:{description:"The URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64 pixels (so that it can look good on retina displays). This image should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},feed_url:{description:"The URL of the feed, serves as the unique identifier for the feed. This should be considered required for feeds on the public web.",format:"uri",type:"string"},home_page_url:{description:"The URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page. If a feed is published on the public web, this should be considered as required.",format:"uri",type:"string"},hubs:{description:"Describes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed.",items:{additionalProperties:!1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{type:{description:"Describes the protocol used to talk with the hub, such as “rssCloud” or “WebSub.”",type:"string"},url:{format:"uri",type:"string"}},required:["type","url"],type:"object"},type:"array"},icon:{description:"The URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used. It should be square and relatively large — such as 512 x 512 pixels — so that it can be scaled-down and so that it can look good on retina displays. It should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},items:{default:[],items:{additionalProperties:!1,anyOf:[{required:["content_html"]},{required:["content_text"]}],patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{attachments:{description:"Lists related resources. Podcasts, for instance, would include an attachment that’s an audio or video file.",items:{additionalProperties:!1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{duration_in_seconds:{description:"How long it takes to listen to or watch, when played at normal speed.",type:"number"},mime_type:{description:"The type of the attachment, such as “audio/mpeg.”",type:"string"},size_in_bytes:{description:"How large the file is.",type:"number"},title:{description:"A name for the attachment. Important: if there are multiple attachments, and two or more have the exact same title (when title is present), then they are considered as alternate representations of the same thing. In this way a podcaster, for instance, might provide an audio recording in different formats.",type:"string"},url:{description:"The location of the attachment.",format:"uri",type:"string"}},required:["url","mime_type"],type:"object"},type:"array"},author:{allOf:[{$ref:"#/definitions/author"}],description:"The author of the item."},authors:{description:"The authors of the item.",items:{$ref:"#/definitions/author"},type:"array"},banner_image:{description:"The URL of an image to use as a banner. Some blogging systems (such as Medium) display a different banner image chosen to go with each post, but that image wouldn’t otherwise appear in the content_html. A feed reader with a detail view may choose to show this banner image at the top of the detail view, possibly with the title overlaid.",format:"uri",type:"string"},content_html:{description:"The HTML of the item.",type:"string"},content_text:{description:"The plain text of the item.",type:"string"},date_modified:{description:"The modification date in RFC 3339 format.",format:"date-time",type:"string"},date_published:{description:"The date in RFC 3339 format.",format:"date-time",type:"string"},external_url:{description:"The URL of a page elsewhere. This is especially useful for linkblogs. If url links to where you’re talking about a thing, then external_url links to the thing you’re talking about.",format:"uri",type:"string"},id:{description:"Unique for that item for that feed over time. If an item is ever updated, the id should be unchanged. New items should never use a previously-used id. Ideally, the id is the full URL of the resource described by the item, since URLs make great unique identifiers.",type:"string"},image:{description:"The URL of the main image for the item. This image may also appear in the content_html — if so, it’s a hint to the feed reader that this is the main, featured image. Feed readers may use the image as a preview (probably resized as a thumbnail and placed in a timeline).",format:"uri",type:"string"},language:{description:"The language for this item, using the format specified in RFC 5646. The value can be different than the primary language for the feed when a specific item is written in a different language than other items in the feed.",type:"string"},summary:{description:"A plain text sentence or two describing the item. This might be presented in a timeline, for instance, where a detail view would display all of content_html or content_text.",type:"string"},tags:{description:"Can have any plain text values you want. Tags tend to be just one word, but they may be anything. Note: they are not the equivalent of Twitter hashtags. Some blogging systems and other feed formats call these categories.",items:{type:"string"},type:"array"},title:{description:"Plain text. Microblog items in particular may omit titles.",type:"string"},url:{description:"The URL of the resource described by the item. It’s the permalink. This may be the same as the id.",format:"uri",type:"string"}},required:["id"],type:"object"},type:"array"},language:{description:"The primary language for the feed in the format specified in RFC 5646. The value is usually a 2-letter language tag from ISO 639-1, optionally followed by a region tag.",type:"string"},next_url:{description:"The URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often.",format:"uri",type:"string"},title:{description:"The name of the feed, which will often correspond to the name of the website (blog, for instance), though not necessarily.",type:"string"},user_comment:{description:"A description of the purpose of the feed. This is for the use of people looking at the raw JSON, and should be ignored by feed readers.",type:"string"},version:{description:"The URL of the version of the format the feed uses. This should appear at the very top.",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],format:"uri",type:"string"}},required:["version","title","items"],title:"JSON Feed",type:"object"},hg={$id:"urn:jsonschema:importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},description:"The Imports field",type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},description:"The Scopes field",type:"object"}},title:"JSON schema for Import Maps files",type:"object"},mg={$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"},kf=()=>{const e=URL.createObjectURL(new Blob),t=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),t};_f.DEFAULTS.uuid=()=>kf;const br=new e0({code:{esm:!0},coerceTypes:!0,keywords:[_f()],removeAdditional:!0,schemas:[fg,dg,mg,hg,pg],useDefaults:!0});cg(br);const gg={get(){return this.children.filter(({enabled:e})=>e)}},yg={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},bg={get(){return this.$siblings[this.$index+1]}},vg={get(){return this.$siblings[this.$index-1]}},$g={get(){return this.siblings.filter(({enabled:e})=>e)}},wg=e=>{window.console.error(e)},_g=async e=>(await fetch(e)).text(),kg=ut({}),Sg=e=>Object.fromEntries(e.map(t=>[t.toLowerCase().replaceAll(" ","_"),t])),Eg={get(){return this.icon&&`i-${this.icon}`}},xg=ut({}),yo=ut([]),Pg={get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replaceAll(" ","_")}},Cg={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},jg={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};br.getSchema("urn:jsonschema:credentials");const Rg=br.getSchema("urn:jsonschema:data"),Og=br.getSchema("urn:jsonschema:feed"),Tg=br.getSchema("urn:jsonschema:importmap"),{leaves:bo,objLeaves:Ds}=Wh(yo);Ge(kg,async e=>{await Og?.(e)});Ge(xg,async e=>{await Tg?.(e)});Ge(bo,async e=>{await Rg?.(e)?e.forEach(t=>{Object.defineProperties(t,{$children:gg,$index:yg,$next:bg,$prev:vg,$siblings:$g,i:Eg,path:Pg,title:Cg,to:jg})}):(yo.length=0,yo.push({}))});const Sf=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Ng(e={}){const t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;let o;return{name:"attributify",match(s,{generator:i}){const a=Lp(s);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;const f=a[2],[,l="",p=f]=f.match(Sf)||[];if(p==="~"||n&&p==="true"||!p)return`${l}${c}`;if(o==null){const b=i?.config?.separators?.join("|");b?o=new RegExp(`^(.*\\](?:${b}))(\\[[^\\]]+?\\])$`):o=!1}if(o){const[,b,y]=f.match(o)||[];if(y)return`${b}${l}${c}-${y}`}if(l&&p.match(/^[\d.]+$/)){const b=l.split(/([^:]*:)/g).filter(Boolean),y=b.pop()+p,v=b.join("");return[{matcher:`${l}${c}-${p}`},{matcher:`${v}${c}-${y}`}]}return`${l}${c}-${p}`}}}const Ag=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ig=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,jl=/[\s'"`;>]+/;function Mg(e){return{name:"attributify",extract:({content:t,cursor:r})=>{const n=t.matchAll(Ag);let o,s=0;for(const u of n){const[,h,_]=u,$=u.index+h.length;if(r>$&&r<=$+_.length){s=$,o=_;break}}if(!o)return null;const i=o.matchAll(Ig);let a=0,c,f;for(const u of i){const[h,_,$]=u,k=s+u.index;if(r>k&&r<=k+h.length){a=k,c=_,f=$?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;const l=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!l)return null;const p=l?c.slice(e.prefix.length):c;if(f===void 0)return{extracted:p,resolveReplacement(u){const h=l?e.prefix.length:0;return{start:a+h,end:a+c.length,replacement:u}}};const b=a+c.length+2;let y=jl.exec(f),v=0,g;for(;y;){const[u]=y;if(r>b+v&&r<=b+v+y.index){g=f.slice(v,v+y.index);break}v+=y.index+u.length,y=jl.exec(f.slice(v))}g===void 0&&(g=f.slice(v));const[,d="",m]=g.match(Sf)||[];return{extracted:`${d}${p}-${m}`,transformSuggestions(u){return u.filter(h=>h.startsWith(`${d}${p}-`)).map(h=>d+h.slice(d.length+p.length+1))},resolveReplacement(u){return{start:v+b,end:v+b+g.length,replacement:d+u.slice(d.length+p.length+1)}}}}}}const zg=["v-bind:",":"],Rl=/[\s'"`;]+/g,vs=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,qg=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Ef=["placeholder","fill","opacity","stroke-opacity"];function Fg(e){const t=e?.ignoreAttributes??Ef,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(vs)).flatMap(s=>Array.from((s[1]||"").matchAll(qg))).flatMap(([,s,...i])=>{const a=i.filter(Boolean).join("");if(t.includes(s))return[];for(const c of zg)if(s.startsWith(c)){s=s.slice(c.length);break}if(!a){if(Fs(s)&&r!==!1){const c=[`[${s}=""]`];return n&&c.push(`[${s}="true"]`),c}return[]}return["class","className"].includes(s)?a.split(Rl).filter(Fs):vs.test(a)?(vs.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!s.startsWith(e.prefix)?[]:a.split(Rl).filter(c=>!!c&&c!==":").map(c=>`[${s}~="${c}"]`)})}}}const Dg=(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??Ef;const t=[Ng(e)],r=[Fg(e)],n=[Mg(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},Lg=Object.freeze({left:0,top:0,width:16,height:16}),vo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xf=Object.freeze({...Lg,...vo}),Vg=Object.freeze({...xf,body:"",hidden:!1}),Ug=Object.freeze({width:null,height:null}),Pf=Object.freeze({...Ug,...vo});function Hg(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 Ol(e,t){const r=Hg(e,t);for(const n in Vg)n in vo?n in e&&!(n in r)&&(r[n]=vo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Kg(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(s),o}function Tl(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ol(n[a]||o[a],s)}return i(t),r.forEach(i),Ol(e,s)}function Wg(e,t){if(e.icons[t])return Tl(e,t,[]);const r=Kg(e,[t])[t];return r?Tl(e,t,r):null}const Bg=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gg=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $o(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(Bg);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=Gg.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function Jg(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function Xg(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Yg(e,t,r){const n=Jg(e);return Xg(n.defs,t+n.content+r)}const mi=e=>e==="unset"||e==="undefined"||e==="none";function Qg(e,t){const r={...xf,...e},n={...Pf,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(g=>{const d=[],m=g.hFlip,u=g.vFlip;let h=g.rotate;m?u?h+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):u&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let _;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){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}h%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&&(s=Yg(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=o.width,f=o.height;let l,p;i===null?(p=a===null?"1em":a==="auto"?f:a,l=$o(p,c/f)):(l=i==="auto"?c:i,p=a===null?$o(l,f/c):a==="auto"?f:a);const b={},y=(g,d)=>{mi(d)||(b[g]=d.toString())};y("width",l),y("height",p);const v=[o.left,o.top,c,f];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:s}}function Zg(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Nl(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" ')),Zg(t)}function ey(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 ty=/\swidth\s*=\s*["']([\w.]+)["']/,ry=/\sheight\s*=\s*["']([\w.]+)["']/,$s=/<svg\s+/;function ny(e,t,r){const n=e.slice(0,e.indexOf(">")),o=(s,i)=>{const a=i.exec(n),c=a!=null,f=t[s];return!f&&!mi(f)&&(typeof r=="number"?r>0&&(t[s]=$o(a?.[1]??"1em",r)):a&&(t[s]=a[1])),c};return[o("width",ty),o("height",ry)]}async function Cf(e,t,r,n,o,s){const{scale:i,addXmlNs:a=!1}=n??{},{additionalProps:c={},iconCustomizer:f}=n?.customizations??{},l=await o?.()??{};await f?.(t,r,l),Object.keys(c).forEach(g=>{const d=c[g];d!=null&&(l[g]=d)}),s?.(l);const[p,b]=ny(e,l,i);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 y=Object.keys(l).map(g=>g==="width"&&p||g==="height"&&b?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(y.length&&(e=e.replace($s,`<svg ${y.join(" ")} `)),n){const{defaultStyle:g,defaultClass:d}=n;d&&!e.includes("class=")&&(e=e.replace($s,`<svg class="${d}" `)),g&&!e.includes("style=")&&(e=e.replace($s,`<svg style="${g}" `))}const v=n?.usedProps;return v&&(Object.keys(c).forEach(g=>{const d=l[g];d!=null&&(v[g]=d)}),typeof l.width<"u"&&l.width!==null&&(v.width=l.width),typeof l.height<"u"&&l.height!==null&&(v.height=l.height)),e}var Xn={exports:{}},ws,Al;function oy(){if(Al)return ws;Al=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,s=n*365.25;ws=function(l,p){p=p||{};var b=typeof l;if(b==="string"&&l.length>0)return i(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 i(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]),y=(p[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return b*s;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?f(l,p,n,"day"):p>=r?f(l,p,r,"hour"):p>=t?f(l,p,t,"minute"):p>=e?f(l,p,e,"second"):l+" ms"}function f(l,p,b,y){var v=p>=b*1.5;return Math.round(l/b)+" "+y+(v?"s":"")}return ws}var _s,Il;function sy(){if(Il)return _s;Il=1;function e(t){n.debug=n,n.default=n,n.coerce=f,n.disable=a,n.enable=s,n.enabled=c,n.humanize=oy(),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 y=0;y<p.length;y++)b=(b<<5)-b+p.charCodeAt(y),b|=0;return n.colors[Math.abs(b)%n.colors.length]}n.selectColor=r;function n(p){let b,y=null,v,g;function d(...m){if(!d.enabled)return;const u=d,h=Number(new Date),_=h-(b||h);u.diff=_,u.prev=b,u.curr=h,b=h,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let $=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(S,P)=>{if(S==="%%")return"%";$++;const O=n.formatters[P];if(typeof O=="function"){const q=m[$];S=O.call(u,q),m.splice($,1),$--}return S}),n.formatArgs.call(u,m),(u.log||n.log).apply(u,m)}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:()=>y!==null?y:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(p)),g),set:m=>{y=m}}),typeof n.init=="function"&&n.init(d),d}function o(p,b){const y=n(this.namespace+(typeof b>"u"?":":b)+p);return y.log=this.log,y}function s(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 y of b)y[0]==="-"?n.skips.push(y.slice(1)):n.names.push(y)}function i(p,b){let y=0,v=0,g=-1,d=0;for(;y<p.length;)if(v<b.length&&(b[v]===p[y]||b[v]==="*"))b[v]==="*"?(g=v,d=y,v++):(y++,v++);else if(g!==-1)v=g+1,d++,y=d;else return!1;for(;v<b.length&&b[v]==="*";)v++;return v===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(i(p,b))return!1;for(const b of n.names)if(i(p,b))return!0;return!1}function f(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 _s=e,_s}var Ml;function iy(){return Ml||(Ml=1,function(e,t){var r={};t.formatArgs=o,t.save=s,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!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 f;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&&(f=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(f[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;f.splice(1,0,l,"color: inherit");let p=0,b=0;f[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(p++,y==="%c"&&(b=p))}),f.splice(b,0,l)}t.log=console.debug||console.log||(()=>{});function s(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function i(){let f;try{f=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!f&&typeof process<"u"&&"env"in process&&(f=r.DEBUG),f}function a(){try{return localStorage}catch{}}e.exports=sy()(t);const{formatters:c}=e.exports;c.j=function(f){try{return JSON.stringify(f)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Xn,Xn.exports)),Xn.exports}var ay=iy();const jf=yr(ay),cy=jf("@iconify-loader:custom");async function zl(e,t,r,n){let o;cy(`${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:i}=n?.customizations??{};return o=typeof i=="function"?await i(o,t,r):o,o.startsWith("<svg")?await Cf(n?.customizations?.trimCustomSvg===!0?ey(o):o,t,r,n,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),o)}}const ly=jf("@iconify-loader:icon");async function Rf(e,t,r,n){let o;const{customize:s}=n?.customizations??{};for(const i of r)if(o=Wg(e,i),o){ly(`${t}:${i}`);let a={...Pf};typeof s=="function"&&(o=Object.assign({},o),a=s(a,o,`${t}:${i}`)??a);const{attributes:{width:c,height:f,...l},body:p}=Qg(o,a),b=n?.scale;return await Cf(`<svg >${p}</svg>`,t,i,n,()=>({...l}),y=>{const v=(g,d)=>{const m=y[g];let u;if(!mi(m)){if(m)return;typeof b=="number"?b&&(u=$o(d??"1em",b)):u=d}u?y[g]=u:delete y[g]};v("width",c),v("height",f)})}}const Of=async(e,t,r)=>{const n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let o;try{o=await n(t)}catch(s){console.warn(`Failed to load custom icon "${t}" in "${e}":`,s);return}if(o){if(typeof o=="string")return await zl(()=>o,e,t,r);if("icons"in o){const s=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Rf(o,e,s,r)}}}else return await zl(n,e,t,r)},uy=/"(?:_|\\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*:/,fy=/"(?: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*:/,dy=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function py(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){hy(e);return}return t}function hy(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function my(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(!dy.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(uy.test(e)||fy.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,py)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const gy=/#/g,yy=/&/g,by=/\//g,vy=/=/g,gi=/\+/g,$y=/%5e/gi,wy=/%60/gi,_y=/%7c/gi,ky=/%20/gi;function Sy(e){return encodeURI(""+e).replace(_y,"|")}function Ls(e){return Sy(typeof e=="string"?e:JSON.stringify(e)).replace(gi,"%2B").replace(ky,"+").replace(gy,"%23").replace(yy,"%26").replace(wy,"`").replace($y,"^").replace(by,"%2F")}function ks(e){return Ls(e).replace(vy,"%3D")}function Tf(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ey(e){return Tf(e.replace(gi," "))}function xy(e){return Tf(e.replace(gi," "))}function Py(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=Ey(n[1]);if(o==="__proto__"||o==="constructor")continue;const s=xy(n[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function Cy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ks(e)}=${Ls(r)}`).join("&"):`${ks(e)}=${Ls(t)}`:ks(e)}function jy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Cy(t,e[t])).filter(Boolean).join("&")}const Ry=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Oy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ty=/^([/\\]\s*){2,}[^/\\]/,Ny=/^\.?\//;function Nf(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Ry.test(e):Oy.test(e)||(t.acceptRelative?Ty.test(e):!1)}function Ay(e="",t){return e.endsWith("/")}function Iy(e="",t){return(Ay(e)?e.slice(0,-1):e)||"/"}function My(e="",t){return e.endsWith("/")?e:e+"/"}function zy(e,t){if(Fy(t)||Nf(e))return e;const r=Iy(t);return e.startsWith(r)?e:Ly(r,e)}function qy(e,t){const r=Vy(e),n={...Py(r.search),...t};return r.search=jy(n),Uy(r)}function Fy(e){return!e||e==="/"}function Dy(e){return e&&e!=="/"}function Ly(e,...t){let r=e||"";for(const n of t.filter(o=>Dy(o)))if(r){const o=n.replace(Ny,"");r=My(r)+o}else r=n;return r}const Af=Symbol.for("ufo:protocolRelative");function Vy(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(!Nf(e,{acceptRelative:!0}))return ql(e);const[,n="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:f,hash:l}=ql(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:c,search:f,hash:l,[Af]:!n}}function ql(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Uy(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Af]?(e.protocol||"")+"//":"")+o+s+t+r+n}class If extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}}function Mf(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${o}: ${s}${t?` ${t}`:""}`,a=new If(i,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[f]}});return a}const Hy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Fl(e="GET"){return Hy.has(e.toUpperCase())}function Ky(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 Wy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),By=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Gy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return By.test(t)?"json":Wy.has(t)||t.startsWith("text/")?"text":"blob"}function Jy(e,t,r,n){const o=Xy(t?.headers??e?.headers,r?.headers,n);let s;return(r?.query||r?.params||t?.params||t?.query)&&(s={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:s,params:s,headers:o}}function Xy(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,s);return n}async function Yn(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const Yy=new Set([408,409,425,429,500,502,503,504]),Qy=new Set([101,204,205,304]);function yi(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=Fl(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):Yy.has(p))){const b=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return b>0&&await new Promise(y=>setTimeout(y,b)),s(a.request,{...a.options,retry:l-1})}}const f=Mf(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,s),f}const s=async function(c,f={}){const l={request:c,options:Jy(c,f,e.defaults,r),response:void 0,error:void 0};l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&await Yn(l,l.options.onRequest),typeof l.request=="string"&&(l.options.baseURL&&(l.request=zy(l.request,l.options.baseURL)),l.options.query&&(l.request=qy(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&&Fl(l.options.method)&&(Ky(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 y=new n;p=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,y.abort(v)},l.options.timeout),l.options.signal=y.signal}try{l.response=await t(l.request,l.options)}catch(y){return l.error=y,l.options.onRequestError&&await Yn(l,l.options.onRequestError),await o(l)}finally{p&&clearTimeout(p)}if((l.response.body||l.response._bodyInit)&&!Qy.has(l.response.status)&&l.options.method!=="HEAD"){const y=(l.options.parseResponse?"json":l.options.responseType)||Gy(l.response.headers.get("content-type")||"");switch(y){case"json":{const v=await l.response.text(),g=l.options.parseResponse||my;l.response._data=g(v);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[y]()}}return l.options.onResponse&&await Yn(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await Yn(l,l.options.onResponseError),await o(l)):l.response},i=async function(c,f){return(await s(c,f))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},c={})=>yi({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),i}const wo=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")}(),zf=wo.fetch?(...e)=>wo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),qf=wo.Headers,Ff=wo.AbortController,Df=yi({fetch:zf,Headers:qf,AbortController:Ff}),Lf=Df,Vs=Object.freeze(Object.defineProperty({__proto__:null,$fetch:Lf,AbortController:Ff,FetchError:If,Headers:qf,createFetch:yi,createFetchError:Mf,fetch:zf,ofetch:Df},Symbol.toStringTag,{value:"Module"}));var Dl={};const Vf=["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","dinkie-icons","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-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","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"],Zy=3;function eb(e){return(t={})=>{const{scale:r=1,mode:n="auto",prefix:o="i-",warn:s=!1,iconifyCollectionsNames:i,collections:a,extraProperties:c={},customizations:f={},autoInstall:l=!1,collectionsNodeResolvePath:p,layer:b="icons",unit:y,processor:v}=t,g=tb(),d={addXmlNs:!0,scale:r,customCollections:a,autoInstall:l,cwd:p,warn:void 0,customizations:{...f,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(u,h,_){await f.iconCustomizer?.(u,h,_),y&&(_.width||(_.width=`${r}${y}`),_.height||(_.height=`${r}${y}`))}}};let m;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Nl,parseIconWithLoader:Ll},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async u=>{let[h,_,$=n]=u;m=m||await e(t);const k={},S=await Ll(_,m,{...d,usedProps:k},i);if(!S){s&&!g.isESLint&&ef(`failed to load icon "${h}"`);return}let P;const O=`url("data:image/svg+xml;utf8,${Nl(S.svg)}")`;return $==="auto"&&($=S.svg.includes("currentColor")?"mask":"bg"),$==="mask"?P={"--un-icon":O,"-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",...k}:P={background:`${O} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...k},v?.(P,{...S,icon:S.name,mode:$}),P},{layer:b,prefix:o}]]}}}function Uf(e,t,r=new Map){function n(o){if(Vf.includes(o))return r.has(o)||r.set(o,e(`${t}@iconify-json/${o}/icons.json`)),r.get(o)}return async(o,s,i)=>{let a=await Of(o,s,i);if(a)return a;const c=await n(o);if(c){const f=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Rf(c,o,f,i)}return a}}function tb(){const e=typeof process<"u"&&process.stdout,t=e&&!!Dl.VSCODE_CWD,r=e&&!!Dl.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}async function Ll(e,t,r={},n=[]){let o="",s="",i;const a=new Set([...Vf,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([o,s]=e.split(":"),!a.has(o))return;i=await t(o,s,r)}else{const c=e.split(/-/g);for(let f=Zy;f>=1&&(o=c.slice(0,f).join("-"),!(!!a.has(o)&&(s=c.slice(f).join("-"),i=await t(o,s,r),i)));f--);}if(i)return{collection:o,name:s,svg:i}}function rb(e){return Uf(Lf,e)}const nb=eb(async e=>{const t=e?.customFetch,r=e?.cdn;return t&&r?Uf(t,r):r?rb(r):Of}),Us="__TAGIFY__",ob=/<([\w:-]+)/g;function sb(e){const{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(ob)).filter(({1:o})=>{for(const s of r)if(typeof s=="string"){if(o===s)return!1}else if(s.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${Us}${o}`)}}}function ib(e){const{extraProperties:t}=e,r=`${Us}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;const o=n.slice(r.length),s={matcher:o,selector:i=>i.slice(Us.length+1)};return t&&(typeof t=="function"?s.body=i=>[...i,...Object.entries(t(o)??{})]:s.body=i=>[...i,...Object.entries(t)]),s}}}const ab=(e={})=>{const{defaultExtractor:t=!0}=e,r=[ib(e)],n=[sb(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}};class _o{constructor(t){this.bits=t instanceof _o?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class pr{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 pr(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 s=new pr(t,this.end,o);return s.outro=this.outro,this.outro="",this.end=t,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}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 cb(){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 lb=cb();class ub{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Wd(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,"+lb(this.toString())}}function fb(e){const t=e.split(`
|
|
24
24
|
`),r=t.filter(s=>/^\t+/.test(s)),n=t.filter(s=>/^ {2,}/.test(s));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";const o=n.reduce((s,i)=>{const a=/^ +/.exec(i)[0].length;return Math.min(a,s)},1/0);return new Array(o+1).join(" ")}function db(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 pb=Object.prototype.toString;function hb(e){return pb.call(e)==="[object Object]"}function Vl(e){const t=e.split(`
|
|
25
25
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let s=0,i=r.length;for(;s<i;){const f=s+i>>1;o<r[f]?i=f:s=f+1}const a=s-1,c=o-r[a];return{line:a,column:c}}}const mb=/\w/;class gb{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 s=r.length-1;let i=r.indexOf(`
|
|
26
26
|
`,0),a=-1;for(;i>=0&&s>i;){const f=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&f.push(o),this.rawSegments.push(f),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=i,i=r.indexOf(`
|
|
@@ -419,4 +419,4 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
419
419
|
`);return nd(`
|
|
420
420
|
:root, :host {
|
|
421
421
|
${p}
|
|
422
|
-
}`,n.config.envMode==="dev")};if(s==="on-demand"){if(Ft.size===0)return;a=Array.from(Ft).map(f=>{const[l,p]=f.split(":"),b=ko(r,l,p.split("-"));if(typeof b=="string")return[`--${l}${`${l==="spacing"&&p==="DEFAULT"?"":`-${p}`}`}`,b]}).filter(Boolean)}else{const f=Object.keys(r).filter(l=>!n_.includes(l));a=Array.from(o_(r,f))}return c(a)}}}const i_=e=>[r_(e),s_(e),e_()].filter(Boolean),a_={position:["relative","absolute","fixed","sticky","static"],globalKeyword:we},c_=(e={})=>{e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.variablePrefix=e.variablePrefix??"un-",e.important=e.important??!1;const t=typeof e.preflights?.theme=="boolean"||typeof e.preflights?.theme=="string"?{mode:e.preflights.theme??"on-demand"}:{mode:e.preflights?.theme?.mode??"on-demand",...e.preflights?.theme};return e.preflights={reset:e.preflights?.reset??!0,theme:t},{name:ev,rules:Z1,shortcuts:J$,theme:H$,layers:{properties:-200,theme:-150,base:-100},preflights:i_(e),variants:$$(e),prefix:e.prefix,postprocess:Rv(e),extractorDefault:e.arbitraryVariants===!1?void 0:Zb(),autocomplete:{shorthands:a_},options:e,configResolved(){Ft.clear(),Dt.clear()},meta:{themeDeps:Ft,propertyDeps:Dt}}},$u={presets:[c_({preflights:{reset:!0}}),Ub(),nb({cdn:"https://cdn.jsdelivr.net/npm/"}),ab(),Dg()]},bd=/^[a-z0-9]+(-[a-z0-9]+)*$/,_r=(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(),f={provider:o.length>0?o[0]:n,prefix:c,name:a};return t&&!so(f)?null:f}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!so(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!so(a,r)?null:a}return null},so=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,vd=Object.freeze({left:0,top:0,width:16,height:16}),xo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ht=Object.freeze({...vd,...xo}),Zs=Object.freeze({...Ht,body:"",hidden:!1});function l_(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 wu(e,t){const r=l_(e,t);for(const n in Zs)n in xo?n in e&&!(n in r)&&(r[n]=xo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function u_(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function f_(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=wu(n[a]||o[a],s)}return i(t),r.forEach(i),wu(e,s)}function $d(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=u_(e);for(const o in n){const s=n[o];s&&(t(o,f_(e,o,s)),r.push(o))}return r}const d_={provider:"",aliases:{},not_found:{},...vd};function Ts(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function wd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ts(e,d_))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o||typeof s.body!="string"||!Ts(s,Zs))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o||typeof i!="string"||!r[i]&&!n[i]||!Ts(s,Zs))return null}return t}const _u=Object.create(null);function p_(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Lt(e,t){const r=_u[e]||(_u[e]=Object.create(null));return r[t]||(r[t]=p_(e,t))}function _d(e,t){return wd(t)?$d(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function h_(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let gr=!1;function kd(e){return typeof e=="boolean"&&(gr=e),gr}function Wo(e){const t=typeof e=="string"?_r(e,!0,gr):e;if(t){const r=Lt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function m_(e,t){const r=_r(e,!0,gr);if(!r)return!1;const n=Lt(r.provider,r.prefix);return t?h_(n,r.name,t):(n.missing.add(r.name),!0)}function g_(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),gr&&!t&&!e.prefix){let o=!1;return wd(e)&&(e.prefix="",$d(e,(s,i)=>{m_(s,i)&&(o=!0)})),o}const r=e.prefix;if(!so({prefix:r,name:"a"}))return!1;const n=Lt(t,r);return!!_d(n,e)}function y_(e){return!!Wo(e)}function b_(e){const t=Wo(e);return t&&{...Ht,...t}}const Sd=Object.freeze({width:null,height:null}),Ed=Object.freeze({...Sd,...xo}),v_=/(-?[0-9.]*[0-9]+[0-9.]*)/g,$_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ku(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(v_);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=$_.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function w_(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function __(e,t){return e?"<defs>"+e+"</defs>"+t:t}function k_(e,t,r){const n=w_(e);return __(n.defs,t+n.content+r)}const S_=e=>e==="unset"||e==="undefined"||e==="none";function E_(e,t){const r={...Ht,...e},n={...Ed,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(g=>{const d=[],m=g.hFlip,u=g.vFlip;let h=g.rotate;m?u?h+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):u&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let _;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){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}h%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&&(s=k_(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=o.width,f=o.height;let l,p;i===null?(p=a===null?"1em":a==="auto"?f:a,l=ku(p,c/f)):(l=i==="auto"?c:i,p=a===null?ku(l,f/c):a==="auto"?f:a);const b={},y=(g,d)=>{S_(d)||(b[g]=d.toString())};y("width",l),y("height",p);const v=[o.left,o.top,c,f];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:s}}const x_=/\sid="(\S+)"/g,P_="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let C_=0;function j_(e,t=P_){const r=[];let n;for(;n=x_.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(C_++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ei=Object.create(null);function R_(e,t){ei[e]=t}function ti(e){return ei[e]||ei[""]}function Pi(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 Ci=Object.create(null),ir=["https://api.simplesvg.com","https://api.unisvg.com"],io=[];for(;ir.length>0;)ir.length===1||Math.random()>.5?io.push(ir.shift()):io.push(ir.pop());Ci[""]=Pi({resources:["https://api.iconify.design"].concat(io)});function O_(e,t){const r=Pi(t);return r===null?!1:(Ci[e]=r,!0)}function ji(e){return Ci[e]}const T_=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Su=T_();function N_(e,t){const r=ji(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function A_(e){return e===404}const I_=(e,t,r)=>{const n=[],o=N_(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,f)=>{a+=c.length+1,a>=o&&f>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),n.push(i),n};function M_(e){if(typeof e=="string"){const t=ji(e);if(t)return t.path}return"/"}const z_=(e,t,r)=>{if(!Su){r("abort",424);return}let n=M_(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;Su(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(A_(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},q_={prepare:I_,send:z_};function F_(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let 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 s=o.provider,i=o.prefix,a=o.name,c=r[s]||(r[s]=Object.create(null)),f=c[i]||(c[i]=Lt(s,i));let l;a in f.icons?l=t.loaded:i===""||f.missing.has(a)?l=t.missing:l=t.pending;const p={provider:s,prefix:i,name:a};l.push(p)}),t}function xd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function D_(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(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const f=c.name;if(e.icons[f])i.loaded.push({provider:n,prefix:o,name:f});else if(e.missing.has(f))i.missing.push({provider:n,prefix:o,name:f});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||xd([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let L_=0;function V_(e,t,r){const n=L_++,o=xd.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function U_(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?_r(o,t,r):o;s&&n.push(s)}),n}var H_={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function K_(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let k=e.resources.slice(0);for(i=[];k.length>1;){const S=Math.floor(Math.random()*k.length);i.push(k[S]),k=k.slice(0,S).concat(k.slice(S+1))}i=i.concat(k)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",f=0,l,p=null,b=[],y=[];typeof n=="function"&&y.push(n);function v(){p&&(clearTimeout(p),p=null)}function g(){c==="pending"&&(c="aborted"),v(),b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function d(k,S){S&&(y=[]),typeof k=="function"&&y.push(k)}function m(){return{startTime:a,payload:t,status:c,queriesSent:f,queriesPending:b.length,subscribe:d,abort:g}}function u(){c="failed",y.forEach(k=>{k(void 0,l)})}function h(){b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function _(k,S,P){const O=S!=="success";switch(b=b.filter(q=>q!==k),c){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){l=P,u();return}if(O){l=P,b.length||(i.length?$():u());return}if(v(),h(),!e.random){const q=e.resources.indexOf(k.resource);q!==-1&&q!==e.index&&(e.index=q)}c="completed",y.forEach(q=>{q(P)})}function $(){if(c!=="pending")return;v();const k=i.shift();if(k===void 0){if(b.length){p=setTimeout(()=>{v(),c==="pending"&&(h(),u())},e.timeout);return}u();return}const S={status:"pending",resource:k,callback:(P,O)=>{_(S,P,O)}};b.push(S),f++,p=setTimeout($,e.rotate),r(k,t,S.callback)}return setTimeout($),m}function Pd(e){const t={...H_,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,c,f){const l=K_(t,a,c,(p,b)=>{n(),f&&f(p,b)});return r.push(l),l}function s(a){return r.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Eu(){}const Ns=Object.create(null);function W_(e){if(!Ns[e]){const t=ji(e);if(!t)return;const r=Pd(t),n={config:t,redundancy:r};Ns[e]=n}return Ns[e]}function B_(e,t,r){let n,o;if(typeof e=="string"){const s=ti(e);if(!s)return r(void 0,424),Eu;o=s.send;const i=W_(e);i&&(n=i.redundancy)}else{const s=Pi(e);if(s){n=Pd(s);const i=e.resources?e.resources[0]:"",a=ti(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Eu):n.query(t,o,r)().abort}function xu(){}function G_(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,D_(e)}))}function J_(e){const t=[],r=[];return e.forEach(n=>{(n.match(bd)?t:r).push(n)}),{valid:t,invalid:r}}function ar(e,t,r){function n(){const o=e.pendingIcons;t.forEach(s=>{o&&o.delete(s),e.icons[s]||e.missing.add(s)})}if(r&&typeof r=="object")try{if(!_d(e,r).length){n();return}}catch(o){console.error(o)}n(),G_(e)}function Pu(e,t){e instanceof Promise?e.then(r=>{t(r)}).catch(()=>{t(null)}):t(e)}function X_(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 s=e.loadIcon;if(e.loadIcons&&(o.length>1||!s)){Pu(e.loadIcons(o,n,r),l=>{ar(e,o,l)});return}if(s){o.forEach(l=>{const p=s(l,n,r);Pu(p,b=>{const y=b?{prefix:n,icons:{[l]:b}}:null;ar(e,[l],y)})});return}const{valid:i,invalid:a}=J_(o);if(a.length&&ar(e,a,null),!i.length)return;const c=n.match(bd)?ti(r):null;if(!c){ar(e,i,null);return}c.prepare(r,n,i).forEach(l=>{B_(r,l,p=>{ar(e,l.icons,p)})})}))}const Cd=(e,t)=>{const r=U_(e,!0,kd()),n=F_(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,xu)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(c=>{const{provider:f,prefix:l}=c;if(l===a&&f===i)return;i=f,a=l,s.push(Lt(f,l));const p=o[f]||(o[f]=Object.create(null));p[l]||(p[l]=[])}),n.pending.forEach(c=>{const{provider:f,prefix:l,name:p}=c,b=Lt(f,l),y=b.pendingIcons||(b.pendingIcons=new Set);y.has(p)||(y.add(p),o[f][l].push(p))}),s.forEach(c=>{const f=o[c.provider][c.prefix];f.length&&X_(c,f)}),t?V_(t,n,s):xu},Y_=e=>new Promise((t,r)=>{const n=typeof e=="string"?_r(e,!0):e;if(!n){r(e);return}Cd([n||e],o=>{if(o.length&&n){const s=Wo(n);if(s){t({...Ht,...s});return}}r(e)})});function Q_(e,t){const r={...e};for(const n in t){const o=t[n],s=typeof o;n in Sd?(o===null||o&&(s==="string"||s==="number"))&&(r[n]=o):s===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const Z_=/[\s,]+/;function ek(e,t){t.split(Z_).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function tk(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 s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}function rk(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 nk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ok(e){return"data:image/svg+xml,"+nk(e)}function sk(e){return'url("'+ok(e)+'")'}const Cu={...Ed,inline:!1},ik={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ak={display:"inline-block"},ri={backgroundColor:"currentColor"},jd={backgroundColor:"transparent"},ju={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ru={webkitMask:ri,mask:ri,background:jd};for(const e in Ru){const t=Ru[e];for(const r in ju)t[e+r]=ju[r]}const ao={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ao[e+"-flip"]=t,ao[e.slice(0,1)+"-flip"]=t,ao[e+"Flip"]=t});function Ou(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Tu=(e,t)=>{const r=Q_(Cu,t),n={...ik},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let g in t){const d=t[g];if(d!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":r[g]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&ek(r,d);break;case"color":s.color=d;break;case"rotate":typeof d=="string"?r[g]=tk(d):typeof d=="number"&&(r[g]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete n["aria-hidden"];break;default:{const m=ao[g];m?(d===!0||d==="true"||d===1)&&(r[m]=!0):Cu[g]===void 0&&(n[g]=d)}}}const c=E_(e,r),f=c.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,f);let g=0,d=t.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),n.innerHTML=j_(c.body,d?()=>d+"ID"+g++:"iconifyVue"),Ri("svg",n)}const{body:l,width:p,height:b}=e,y=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),v=rk(l,{...f,width:p+"",height:b+""});return n.style={...s,"--svg":sk(v),width:Ou(f.width),height:Ou(f.height),...ak,...y?ri:jd,...a},Ri("span",n)};kd(!0);R_("",q_);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"||!g_(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;O_(r,o)||console.error(n)}catch{console.error(n)}}}}const ck={...Ht,body:""};Fu((e,{emit:t})=>{const r=ct(null);function n(){r.value&&(r.value.abort?.(),r.value=null)}const o=ct(!!e.ssr),s=ct(""),i=lt(null);function a(){const f=e.icon;if(typeof f=="object"&&f!==null&&typeof f.body=="string")return s.value="",{data:f};let l;if(typeof f!="string"||(l=_r(f,!1,!0))===null)return null;let p=Wo(l);if(!p){const v=r.value;return(!v||v.name!==f)&&(p===null?r.value={name:f}:r.value={name:f,abort:Cd([l],c)}),null}n(),s.value!==f&&(s.value=f,ii(()=>{t("load",f)}));const b=e.customise;if(b){p=Object.assign({},p);const v=b(p.body,l.name,l.prefix,l.provider);typeof v=="string"&&(p.body=v)}const y=["iconify"];return l.prefix!==""&&y.push("iconify--"+l.prefix),l.provider!==""&&y.push("iconify--"+l.provider),{data:p,classes:y}}function c(){const f=a();f?f.data!==i.value?.data&&(i.value=f):i.value=null}return o.value?c():si(()=>{o.value=!0,c()}),Ge(()=>e.icon,c),Dd(n),()=>{const f=i.value;if(!f)return Tu(ck,e);let l=e;return f.classes&&(l={...e,class:f.classes.join(" ")}),Tu({...Ht,...f.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const lk=Fu({__name:"App",setup(e,{expose:t}){t();const r=Bd(),n=ke(()=>bo.value.find(({id:c})=>c===r.name)),o=ct(""),s=ct(""),i=ke(()=>n.value?.to&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`);Ge(n,async c=>{let f="/favicon.ico";if(c?.icon){const l=y_(c.icon)?b_(c.icon):await Y_(c.icon);if(l){const{body:p,height:b,left:y,top:v,width:g}=l;f=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${y.toString()} ${v.toString()} ${g.toString()} ${b.toString()}">${p}</svg>`}}o.value=f}),Xu({link:[[o,"icon","icon"],[i,"canonical"]].map(([c,f,l])=>({href:c,key:l,rel:f})),script:[{id:"application/ld+json",innerHTML:s,type:"application/ld+json"}]}),Tp({description:ke(()=>n.value?.description),keywords:ke(()=>n.value?.keywords.join()),ogDescription:ke(()=>n.value?.description),ogImage:ke(()=>n.value?.images.filter(({url:c})=>c).map(({alt:c="",url:f})=>({alt:c,url:`${window.location.origin}/${f}`}))??[]),ogTitle:ke(()=>n.value?.title),ogType:ke(()=>n.value?.type),ogUrl:i,title:ke(()=>n.value?.title)}),Ge(()=>n.value?.jsonld,async c=>{s.value=JSON.stringify(await c)||'{"@context":"https://schema.org"}'});const a={route:r,a:n,favicon:o,jsonld:s,ogUrl:i,get pages(){return bo}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),uk=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function fk(e,t,r,n,o,s){const i=Ld("router-view");return Ti(),Oi(i,null,{default:Vd(({Component:a})=>[(Ti(),Oi(Ud(a),{id:n.pages[0]?.id},null,8,["id"]))]),_:1})}const dk=uk(lk,[["render",fk],["__file","App.vue"]]);var As,Nu;function pk(){if(Nu)return As;Nu=1;function e(i,a){for(;i.length<a;)i="0"+i;return i}function t(i,a){var c,f,l;if(a.length===0)return i;for(c=0,l=a.length;c<l;c++)f=a.charCodeAt(c),i=(i<<5)-i+f,i|=0;return i<0?i*-2:i}function r(i,a,c){return Object.keys(a).sort().reduce(f,i);function f(l,p){return n(l,a[p],p,c)}}function n(i,a,c,f){var l=t(t(t(i,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(f.indexOf(a)!==-1)return t(l,"[Circular]"+c);f.push(a);var p=r(l,a,f);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(i){return Object.prototype.toString.call(i)}function s(i){return e(n(0,i,"",[]).toString(16),8)}return As=s,As}var hk=pk();const mk=yr(hk),co=async e=>{try{const t=await fetch(e);return t.ok?t:new Response("")}catch{return new Response("")}},cr=e=>{e.forEach(t=>{console.log(t)})},gk=async(e,{filename:t},{content:r,module:n,scoped:o=!1,src:s})=>{const{code:i,errors:a}=await Zd({filename:t,id:e,modules:!!n,scoped:o,source:s?await(await co(s)).text():r});cr(a),Kh(i,o?{id:e}:void 0)},Au=e=>Et(()=>import(`data:text/javascript;base64,${btoa(Array.from(new TextEncoder().encode(e),t=>String.fromCodePoint(t)).join(""))}`),[],import.meta.url),yk=async e=>{const{descriptor:t,errors:r}=Xd(await(await co(e)).text(),{filename:e}),n={expressionPlugins:[]},o=["script","scriptSetup"],s=await Promise.all(o.map(async p=>{const{lang:b="js",src:y}=t[p]??{};return/[jt]sx$/.test(b)&&n.expressionPlugins?.push("jsx"),/tsx?$/.test(b)&&n.expressionPlugins?.push("typescript"),y&&await(await co(y)).text()})),i=`data-v-${mk(e)}`,a="preserve",c={},f=t.styles.some(({scoped:p})=>p),{expressionPlugins:l}=n;if(cr(r),f&&(c.__scopeId=i),t.script||t.scriptSetup){o.forEach((v,g)=>{const d=t[v];d&&s[g]!==void 0&&(d.content=s[g])});const{bindings:p,content:b,warnings:y=[]}=Yd(t,{id:i});cr(y),p&&(n.bindingMetadata=p),Object.assign(c,(await Au(l.length?Ni(b,{jsxRuntime:a,transforms:l}).code:b)).default)}if(t.template){const{code:p,errors:b,tips:y}=Qd({ast:t.template.ast,compilerOptions:n,filename:t.filename,id:i,scoped:f,slotted:t.slotted,source:t.template.src?await(await co(t.template.src)).text():t.template.content,vapor:t.vapor});cr(b),cr(y),Object.assign(c,await Au(l.length?Ni(p,{jsxRuntime:a,transforms:l}).code:p))}return t.styles.forEach(p=>{gk(i,t,p)}),c};let ni;const{pathname:bk}=new URL(document.baseURI),Iu=ct(!0),Po=new Map,vk=()=>{let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),reject:t,resolve:e}},xt=Gd({history:Jd(bk),routes:[],scrollBehavior:(e,t,r)=>ni&&ni(e,t,r)}),Mu=ct(!0),zu=ke(()=>xt.currentRoute.value.path==="/"?Ds[xt.currentRoute.value.name]?.$children[0]:Ds[xt.currentRoute.value.name]),jk=({id:e=kf()})=>(Po.set(e,vk()),Hd(async()=>yk(`./pages/${e}.vue`))),Rk=({id:e}={})=>{e&&Po.get(e)?.resolve(void 0)},$k=({extractAll:e,toggleObserver:t})=>{ni=async({hash:r,name:n})=>{if(n){Iu.value=!0,t(!1);const[{promise:o}={}]=Po.values();await o,await Promise.all([...Po.values()].map(({promise:i})=>i)),await e(),t(!0);const s=Mu.value&&{behavior:"smooth",...r||zu.value?.parent?.flat&&zu.value.index?{el:r||`#${String(n)}`}:{left:0,top:0}};return Iu.value=!1,Mu.value=!0,s}else return!1}};xt.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const Co=Kd(dk),wk={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};Co.use(Np());const _k=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();yo.push(t),await ii(),bo.value.forEach(({id:r,loc:n,path:o},s,i)=>{if(Object.defineProperties(i[s],{jsonld:wk}),o!==void 0){const a=n?.replaceAll(" ","_").replace(/^\/?/,"/").replace(/\/?$/,"/");xt.addRoute({...a&&n?{alias:a}:{undefined:void 0},children:[{component:()=>Et(()=>import("./PageView-CoMJpC9g.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:r,path:""}],component:()=>Et(()=>import("./RootView-CtCY7Km2.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:o.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),Co.provide("pages",Ds),xt.addRoute({component:()=>Et(()=>import("./NotFoundView-D1A6sLhp.js"),__vite__mapDeps([4,1,2]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json"),t=Sg(await(e.ok?e:new Response("[]")).json());$u.presets.push(Ph({customFetch:_g,fonts:t})),await Oh({defaults:$u,ready:async r=>{const{toggleObserver:n}=r;return $k(r),await _k,Co.use(xt),Co.mount("#app"),n(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch(wg);console.info("👊 VueBro","/","runtime ver.:","1.1.6","/","https://github.com/vuebro");export{uk as _,Pk as a,Ck as b,Iu as c,bo as d,wg as e,Xu as f,jk as m,Po as p,Rk as r,Mu as s,zu as t,kf as u};
|
|
422
|
+
}`,n.config.envMode==="dev")};if(s==="on-demand"){if(Ft.size===0)return;a=Array.from(Ft).map(f=>{const[l,p]=f.split(":"),b=ko(r,l,p.split("-"));if(typeof b=="string")return[`--${l}${`${l==="spacing"&&p==="DEFAULT"?"":`-${p}`}`}`,b]}).filter(Boolean)}else{const f=Object.keys(r).filter(l=>!n_.includes(l));a=Array.from(o_(r,f))}return c(a)}}}const i_=e=>[r_(e),s_(e),e_()].filter(Boolean),a_={position:["relative","absolute","fixed","sticky","static"],globalKeyword:we},c_=(e={})=>{e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.variablePrefix=e.variablePrefix??"un-",e.important=e.important??!1;const t=typeof e.preflights?.theme=="boolean"||typeof e.preflights?.theme=="string"?{mode:e.preflights.theme??"on-demand"}:{mode:e.preflights?.theme?.mode??"on-demand",...e.preflights?.theme};return e.preflights={reset:e.preflights?.reset??!0,theme:t},{name:ev,rules:Z1,shortcuts:J$,theme:H$,layers:{properties:-200,theme:-150,base:-100},preflights:i_(e),variants:$$(e),prefix:e.prefix,postprocess:Rv(e),extractorDefault:e.arbitraryVariants===!1?void 0:Zb(),autocomplete:{shorthands:a_},options:e,configResolved(){Ft.clear(),Dt.clear()},meta:{themeDeps:Ft,propertyDeps:Dt}}},$u={presets:[c_({preflights:{reset:!0}}),Ub(),nb({cdn:"https://cdn.jsdelivr.net/npm/"}),ab(),Dg()]},bd=/^[a-z0-9]+(-[a-z0-9]+)*$/,_r=(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(),f={provider:o.length>0?o[0]:n,prefix:c,name:a};return t&&!so(f)?null:f}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!so(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!so(a,r)?null:a}return null},so=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,vd=Object.freeze({left:0,top:0,width:16,height:16}),xo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ht=Object.freeze({...vd,...xo}),Zs=Object.freeze({...Ht,body:"",hidden:!1});function l_(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 wu(e,t){const r=l_(e,t);for(const n in Zs)n in xo?n in e&&!(n in r)&&(r[n]=xo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function u_(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function f_(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=wu(n[a]||o[a],s)}return i(t),r.forEach(i),wu(e,s)}function $d(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=u_(e);for(const o in n){const s=n[o];s&&(t(o,f_(e,o,s)),r.push(o))}return r}const d_={provider:"",aliases:{},not_found:{},...vd};function Ts(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function wd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ts(e,d_))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o||typeof s.body!="string"||!Ts(s,Zs))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o||typeof i!="string"||!r[i]&&!n[i]||!Ts(s,Zs))return null}return t}const _u=Object.create(null);function p_(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Lt(e,t){const r=_u[e]||(_u[e]=Object.create(null));return r[t]||(r[t]=p_(e,t))}function _d(e,t){return wd(t)?$d(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function h_(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let gr=!1;function kd(e){return typeof e=="boolean"&&(gr=e),gr}function Wo(e){const t=typeof e=="string"?_r(e,!0,gr):e;if(t){const r=Lt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function m_(e,t){const r=_r(e,!0,gr);if(!r)return!1;const n=Lt(r.provider,r.prefix);return t?h_(n,r.name,t):(n.missing.add(r.name),!0)}function g_(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),gr&&!t&&!e.prefix){let o=!1;return wd(e)&&(e.prefix="",$d(e,(s,i)=>{m_(s,i)&&(o=!0)})),o}const r=e.prefix;if(!so({prefix:r,name:"a"}))return!1;const n=Lt(t,r);return!!_d(n,e)}function y_(e){return!!Wo(e)}function b_(e){const t=Wo(e);return t&&{...Ht,...t}}const Sd=Object.freeze({width:null,height:null}),Ed=Object.freeze({...Sd,...xo}),v_=/(-?[0-9.]*[0-9]+[0-9.]*)/g,$_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ku(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(v_);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=$_.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function w_(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function __(e,t){return e?"<defs>"+e+"</defs>"+t:t}function k_(e,t,r){const n=w_(e);return __(n.defs,t+n.content+r)}const S_=e=>e==="unset"||e==="undefined"||e==="none";function E_(e,t){const r={...Ht,...e},n={...Ed,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(g=>{const d=[],m=g.hFlip,u=g.vFlip;let h=g.rotate;m?u?h+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):u&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let _;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){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}h%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&&(s=k_(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=o.width,f=o.height;let l,p;i===null?(p=a===null?"1em":a==="auto"?f:a,l=ku(p,c/f)):(l=i==="auto"?c:i,p=a===null?ku(l,f/c):a==="auto"?f:a);const b={},y=(g,d)=>{S_(d)||(b[g]=d.toString())};y("width",l),y("height",p);const v=[o.left,o.top,c,f];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:s}}const x_=/\sid="(\S+)"/g,P_="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let C_=0;function j_(e,t=P_){const r=[];let n;for(;n=x_.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(C_++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ei=Object.create(null);function R_(e,t){ei[e]=t}function ti(e){return ei[e]||ei[""]}function Pi(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 Ci=Object.create(null),ir=["https://api.simplesvg.com","https://api.unisvg.com"],io=[];for(;ir.length>0;)ir.length===1||Math.random()>.5?io.push(ir.shift()):io.push(ir.pop());Ci[""]=Pi({resources:["https://api.iconify.design"].concat(io)});function O_(e,t){const r=Pi(t);return r===null?!1:(Ci[e]=r,!0)}function ji(e){return Ci[e]}const T_=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Su=T_();function N_(e,t){const r=ji(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function A_(e){return e===404}const I_=(e,t,r)=>{const n=[],o=N_(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,f)=>{a+=c.length+1,a>=o&&f>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),n.push(i),n};function M_(e){if(typeof e=="string"){const t=ji(e);if(t)return t.path}return"/"}const z_=(e,t,r)=>{if(!Su){r("abort",424);return}let n=M_(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;Su(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(A_(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},q_={prepare:I_,send:z_};function F_(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let 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 s=o.provider,i=o.prefix,a=o.name,c=r[s]||(r[s]=Object.create(null)),f=c[i]||(c[i]=Lt(s,i));let l;a in f.icons?l=t.loaded:i===""||f.missing.has(a)?l=t.missing:l=t.pending;const p={provider:s,prefix:i,name:a};l.push(p)}),t}function xd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function D_(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(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const f=c.name;if(e.icons[f])i.loaded.push({provider:n,prefix:o,name:f});else if(e.missing.has(f))i.missing.push({provider:n,prefix:o,name:f});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||xd([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let L_=0;function V_(e,t,r){const n=L_++,o=xd.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function U_(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?_r(o,t,r):o;s&&n.push(s)}),n}var H_={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function K_(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let k=e.resources.slice(0);for(i=[];k.length>1;){const S=Math.floor(Math.random()*k.length);i.push(k[S]),k=k.slice(0,S).concat(k.slice(S+1))}i=i.concat(k)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",f=0,l,p=null,b=[],y=[];typeof n=="function"&&y.push(n);function v(){p&&(clearTimeout(p),p=null)}function g(){c==="pending"&&(c="aborted"),v(),b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function d(k,S){S&&(y=[]),typeof k=="function"&&y.push(k)}function m(){return{startTime:a,payload:t,status:c,queriesSent:f,queriesPending:b.length,subscribe:d,abort:g}}function u(){c="failed",y.forEach(k=>{k(void 0,l)})}function h(){b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function _(k,S,P){const O=S!=="success";switch(b=b.filter(q=>q!==k),c){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){l=P,u();return}if(O){l=P,b.length||(i.length?$():u());return}if(v(),h(),!e.random){const q=e.resources.indexOf(k.resource);q!==-1&&q!==e.index&&(e.index=q)}c="completed",y.forEach(q=>{q(P)})}function $(){if(c!=="pending")return;v();const k=i.shift();if(k===void 0){if(b.length){p=setTimeout(()=>{v(),c==="pending"&&(h(),u())},e.timeout);return}u();return}const S={status:"pending",resource:k,callback:(P,O)=>{_(S,P,O)}};b.push(S),f++,p=setTimeout($,e.rotate),r(k,t,S.callback)}return setTimeout($),m}function Pd(e){const t={...H_,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,c,f){const l=K_(t,a,c,(p,b)=>{n(),f&&f(p,b)});return r.push(l),l}function s(a){return r.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Eu(){}const Ns=Object.create(null);function W_(e){if(!Ns[e]){const t=ji(e);if(!t)return;const r=Pd(t),n={config:t,redundancy:r};Ns[e]=n}return Ns[e]}function B_(e,t,r){let n,o;if(typeof e=="string"){const s=ti(e);if(!s)return r(void 0,424),Eu;o=s.send;const i=W_(e);i&&(n=i.redundancy)}else{const s=Pi(e);if(s){n=Pd(s);const i=e.resources?e.resources[0]:"",a=ti(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Eu):n.query(t,o,r)().abort}function xu(){}function G_(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,D_(e)}))}function J_(e){const t=[],r=[];return e.forEach(n=>{(n.match(bd)?t:r).push(n)}),{valid:t,invalid:r}}function ar(e,t,r){function n(){const o=e.pendingIcons;t.forEach(s=>{o&&o.delete(s),e.icons[s]||e.missing.add(s)})}if(r&&typeof r=="object")try{if(!_d(e,r).length){n();return}}catch(o){console.error(o)}n(),G_(e)}function Pu(e,t){e instanceof Promise?e.then(r=>{t(r)}).catch(()=>{t(null)}):t(e)}function X_(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 s=e.loadIcon;if(e.loadIcons&&(o.length>1||!s)){Pu(e.loadIcons(o,n,r),l=>{ar(e,o,l)});return}if(s){o.forEach(l=>{const p=s(l,n,r);Pu(p,b=>{const y=b?{prefix:n,icons:{[l]:b}}:null;ar(e,[l],y)})});return}const{valid:i,invalid:a}=J_(o);if(a.length&&ar(e,a,null),!i.length)return;const c=n.match(bd)?ti(r):null;if(!c){ar(e,i,null);return}c.prepare(r,n,i).forEach(l=>{B_(r,l,p=>{ar(e,l.icons,p)})})}))}const Cd=(e,t)=>{const r=U_(e,!0,kd()),n=F_(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,xu)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(c=>{const{provider:f,prefix:l}=c;if(l===a&&f===i)return;i=f,a=l,s.push(Lt(f,l));const p=o[f]||(o[f]=Object.create(null));p[l]||(p[l]=[])}),n.pending.forEach(c=>{const{provider:f,prefix:l,name:p}=c,b=Lt(f,l),y=b.pendingIcons||(b.pendingIcons=new Set);y.has(p)||(y.add(p),o[f][l].push(p))}),s.forEach(c=>{const f=o[c.provider][c.prefix];f.length&&X_(c,f)}),t?V_(t,n,s):xu},Y_=e=>new Promise((t,r)=>{const n=typeof e=="string"?_r(e,!0):e;if(!n){r(e);return}Cd([n||e],o=>{if(o.length&&n){const s=Wo(n);if(s){t({...Ht,...s});return}}r(e)})});function Q_(e,t){const r={...e};for(const n in t){const o=t[n],s=typeof o;n in Sd?(o===null||o&&(s==="string"||s==="number"))&&(r[n]=o):s===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const Z_=/[\s,]+/;function ek(e,t){t.split(Z_).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function tk(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 s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}function rk(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 nk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ok(e){return"data:image/svg+xml,"+nk(e)}function sk(e){return'url("'+ok(e)+'")'}const Cu={...Ed,inline:!1},ik={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ak={display:"inline-block"},ri={backgroundColor:"currentColor"},jd={backgroundColor:"transparent"},ju={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ru={webkitMask:ri,mask:ri,background:jd};for(const e in Ru){const t=Ru[e];for(const r in ju)t[e+r]=ju[r]}const ao={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ao[e+"-flip"]=t,ao[e.slice(0,1)+"-flip"]=t,ao[e+"Flip"]=t});function Ou(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Tu=(e,t)=>{const r=Q_(Cu,t),n={...ik},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let g in t){const d=t[g];if(d!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":r[g]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&ek(r,d);break;case"color":s.color=d;break;case"rotate":typeof d=="string"?r[g]=tk(d):typeof d=="number"&&(r[g]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete n["aria-hidden"];break;default:{const m=ao[g];m?(d===!0||d==="true"||d===1)&&(r[m]=!0):Cu[g]===void 0&&(n[g]=d)}}}const c=E_(e,r),f=c.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,f);let g=0,d=t.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),n.innerHTML=j_(c.body,d?()=>d+"ID"+g++:"iconifyVue"),Ri("svg",n)}const{body:l,width:p,height:b}=e,y=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),v=rk(l,{...f,width:p+"",height:b+""});return n.style={...s,"--svg":sk(v),width:Ou(f.width),height:Ou(f.height),...ak,...y?ri:jd,...a},Ri("span",n)};kd(!0);R_("",q_);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"||!g_(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;O_(r,o)||console.error(n)}catch{console.error(n)}}}}const ck={...Ht,body:""};Fu((e,{emit:t})=>{const r=ct(null);function n(){r.value&&(r.value.abort?.(),r.value=null)}const o=ct(!!e.ssr),s=ct(""),i=lt(null);function a(){const f=e.icon;if(typeof f=="object"&&f!==null&&typeof f.body=="string")return s.value="",{data:f};let l;if(typeof f!="string"||(l=_r(f,!1,!0))===null)return null;let p=Wo(l);if(!p){const v=r.value;return(!v||v.name!==f)&&(p===null?r.value={name:f}:r.value={name:f,abort:Cd([l],c)}),null}n(),s.value!==f&&(s.value=f,ii(()=>{t("load",f)}));const b=e.customise;if(b){p=Object.assign({},p);const v=b(p.body,l.name,l.prefix,l.provider);typeof v=="string"&&(p.body=v)}const y=["iconify"];return l.prefix!==""&&y.push("iconify--"+l.prefix),l.provider!==""&&y.push("iconify--"+l.provider),{data:p,classes:y}}function c(){const f=a();f?f.data!==i.value?.data&&(i.value=f):i.value=null}return o.value?c():si(()=>{o.value=!0,c()}),Ge(()=>e.icon,c),Dd(n),()=>{const f=i.value;if(!f)return Tu(ck,e);let l=e;return f.classes&&(l={...e,class:f.classes.join(" ")}),Tu({...Ht,...f.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const lk=Fu({__name:"App",setup(e,{expose:t}){t();const r=Bd(),n=ke(()=>bo.value.find(({id:c})=>c===r.name)),o=ct(""),s=ct(""),i=ke(()=>n.value?.to&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`);Ge(n,async c=>{let f="/favicon.ico";if(c?.icon){const l=y_(c.icon)?b_(c.icon):await Y_(c.icon);if(l){const{body:p,height:b,left:y,top:v,width:g}=l;f=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${y.toString()} ${v.toString()} ${g.toString()} ${b.toString()}">${p}</svg>`}}o.value=f}),Xu({link:[[o,"icon","icon"],[i,"canonical"]].map(([c,f,l])=>({href:c,key:l,rel:f})),script:[{id:"application/ld+json",innerHTML:s,type:"application/ld+json"}]}),Tp({description:ke(()=>n.value?.description),keywords:ke(()=>n.value?.keywords.join()),ogDescription:ke(()=>n.value?.description),ogImage:ke(()=>n.value?.images.filter(({url:c})=>c).map(({alt:c="",url:f})=>({alt:c,url:`${window.location.origin}/${f}`}))??[]),ogTitle:ke(()=>n.value?.title),ogType:ke(()=>n.value?.type),ogUrl:i,title:ke(()=>n.value?.title)}),Ge(()=>n.value?.jsonld,async c=>{s.value=JSON.stringify(await c)||'{"@context":"https://schema.org"}'});const a={route:r,a:n,favicon:o,jsonld:s,ogUrl:i,get pages(){return bo}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),uk=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function fk(e,t,r,n,o,s){const i=Ld("router-view");return Ti(),Oi(i,null,{default:Vd(({Component:a})=>[(Ti(),Oi(Ud(a),{id:n.pages[0]?.id},null,8,["id"]))]),_:1})}const dk=uk(lk,[["render",fk],["__file","App.vue"]]);var As,Nu;function pk(){if(Nu)return As;Nu=1;function e(i,a){for(;i.length<a;)i="0"+i;return i}function t(i,a){var c,f,l;if(a.length===0)return i;for(c=0,l=a.length;c<l;c++)f=a.charCodeAt(c),i=(i<<5)-i+f,i|=0;return i<0?i*-2:i}function r(i,a,c){return Object.keys(a).sort().reduce(f,i);function f(l,p){return n(l,a[p],p,c)}}function n(i,a,c,f){var l=t(t(t(i,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(f.indexOf(a)!==-1)return t(l,"[Circular]"+c);f.push(a);var p=r(l,a,f);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(i){return Object.prototype.toString.call(i)}function s(i){return e(n(0,i,"",[]).toString(16),8)}return As=s,As}var hk=pk();const mk=yr(hk),co=async e=>{try{const t=await fetch(e);return t.ok?t:new Response("")}catch{return new Response("")}},cr=e=>{e.forEach(t=>{console.log(t)})},gk=async(e,{filename:t},{content:r,module:n,scoped:o=!1,src:s})=>{const{code:i,errors:a}=await Zd({filename:t,id:e,modules:!!n,scoped:o,source:s?await(await co(s)).text():r});cr(a),Kh(i,o?{id:e}:void 0)},Au=e=>Et(()=>import(`data:text/javascript;base64,${btoa(Array.from(new TextEncoder().encode(e),t=>String.fromCodePoint(t)).join(""))}`),[],import.meta.url),yk=async e=>{const{descriptor:t,errors:r}=Xd(await(await co(e)).text(),{filename:e}),n={expressionPlugins:[]},o=["script","scriptSetup"],s=await Promise.all(o.map(async p=>{const{lang:b="js",src:y}=t[p]??{};return/[jt]sx$/.test(b)&&n.expressionPlugins?.push("jsx"),/tsx?$/.test(b)&&n.expressionPlugins?.push("typescript"),y&&await(await co(y)).text()})),i=`data-v-${mk(e)}`,a="preserve",c={},f=t.styles.some(({scoped:p})=>p),{expressionPlugins:l}=n;if(cr(r),f&&(c.__scopeId=i),t.script||t.scriptSetup){o.forEach((v,g)=>{const d=t[v];d&&s[g]!==void 0&&(d.content=s[g])});const{bindings:p,content:b,warnings:y=[]}=Yd(t,{id:i});cr(y),p&&(n.bindingMetadata=p),Object.assign(c,(await Au(l.length?Ni(b,{jsxRuntime:a,transforms:l}).code:b)).default)}if(t.template){const{code:p,errors:b,tips:y}=Qd({ast:t.template.ast,compilerOptions:n,filename:t.filename,id:i,scoped:f,slotted:t.slotted,source:t.template.src?await(await co(t.template.src)).text():t.template.content,vapor:t.vapor});cr(b),cr(y),Object.assign(c,await Au(l.length?Ni(p,{jsxRuntime:a,transforms:l}).code:p))}return t.styles.forEach(p=>{gk(i,t,p)}),c};let ni;const{pathname:bk}=new URL(document.baseURI),Iu=ct(!0),Po=new Map,vk=()=>{let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),reject:t,resolve:e}},xt=Gd({history:Jd(bk),routes:[],scrollBehavior:(e,t,r)=>ni&&ni(e,t,r)}),Mu=ct(!0),zu=ke(()=>xt.currentRoute.value.path==="/"?Ds[xt.currentRoute.value.name]?.$children[0]:Ds[xt.currentRoute.value.name]),jk=({id:e=kf()})=>(Po.set(e,vk()),Hd(async()=>yk(`./pages/${e}.vue`))),Rk=({id:e}={})=>{e&&Po.get(e)?.resolve(void 0)},$k=({extractAll:e,toggleObserver:t})=>{ni=async({hash:r,name:n})=>{if(n){Iu.value=!0,t(!1);const[{promise:o}={}]=Po.values();await o,await Promise.all([...Po.values()].map(({promise:i})=>i)),await e(),t(!0);const s=Mu.value&&{behavior:"smooth",...r||zu.value?.parent?.flat&&zu.value.index?{el:r||`#${String(n)}`}:{left:0,top:0}};return Iu.value=!1,Mu.value=!0,s}else return!1}};xt.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const Co=Kd(dk),wk={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};Co.use(Np());const _k=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();yo.push(t),await ii(),bo.value.forEach(({id:r,loc:n,path:o},s,i)=>{if(Object.defineProperties(i[s],{jsonld:wk}),o!==void 0){const a=n?.replaceAll(" ","_").replace(/^\/?/,"/").replace(/\/?$/,"/");xt.addRoute({...a&&n?{alias:a}:{undefined:void 0},children:[{component:()=>Et(()=>import("./PageView-9Jti-a9O.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:r,path:""}],component:()=>Et(()=>import("./RootView-BlcOarGZ.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:o.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),Co.provide("pages",Ds),xt.addRoute({component:()=>Et(()=>import("./NotFoundView-CJkxnZFz.js"),__vite__mapDeps([4,1,2]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json"),t=Sg(await(e.ok?e:new Response("[]")).json());$u.presets.push(Ph({customFetch:_g,fonts:t})),await Oh({defaults:$u,ready:async r=>{const{toggleObserver:n}=r;return $k(r),await _k,Co.use(xt),Co.mount("#app"),n(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch(wg);console.info("👊 VueBro","/","runtime ver.:","1.1.7","/","https://github.com/vuebro");export{uk as _,Pk as a,Ck as b,Iu as c,bo as d,wg as e,Xu as f,jk as m,Po as p,Rk as r,Mu as s,zu as t,kf as u};
|
package/dist/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<base href="" />
|
|
7
7
|
<link rel="preload" crossorigin href="./index.json" as="fetch" />
|
|
8
8
|
<link rel="preload" crossorigin href="./fonts.json" as="fetch" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-jnIwSqo7.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/sucrase-B167QcXN.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="./assets/compiler-sfc-CHbDt8t7.js">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="./assets/index-vGiKZPT9.css">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuebro/runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@unocss/preset-web-fonts": "^66.3.3",
|
|
19
19
|
"@unocss/preset-wind4": "^66.3.3",
|
|
20
20
|
"@unocss/runtime": "^66.3.3",
|
|
21
|
-
"@vuebro/sfc-loader": "^1.2.
|
|
22
|
-
"@vuebro/shared": "^1.0.
|
|
21
|
+
"@vuebro/sfc-loader": "^1.2.24",
|
|
22
|
+
"@vuebro/shared": "^1.0.7",
|
|
23
23
|
"@vueuse/core": "^13.5.0",
|
|
24
24
|
"globals": "^16.3.0",
|
|
25
25
|
"vue": "^3.5.17",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@eslint/eslintrc": "^3.3.1",
|
|
30
30
|
"@eslint/js": "^9.30.1",
|
|
31
|
-
"@types/node": "^24.0.
|
|
31
|
+
"@types/node": "^24.0.13",
|
|
32
32
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
33
33
|
"eslint-config-prettier": "^10.1.5",
|
|
34
34
|
"eslint-import-resolver-typescript": "^4.4.4",
|