@vuebro/runtime 1.1.64 → 1.1.65
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 +1 -1
- package/dist/assets/{NotFoundView-C3gmigCk.js → NotFoundView-JMnb12L9.js} +1 -1
- package/dist/assets/{PageView-HShiIheJ.js → PageView-C95OGfvv.js} +1 -1
- package/dist/assets/{RootView-BttejlEE.js → RootView-tAj5_HOt.js} +1 -1
- package/dist/assets/{index-CH1deeDU.js → index-BBpH3mOy.js} +2 -2
- package/dist/assets/shared-aEZiy6lt.js +7 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/dist/assets/shared-hXW0ftT1.js +0 -7
package/dist/.vite/manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_shared-
|
|
1
|
+
{"_shared-aEZiy6lt.js":{"file":"assets/shared-aEZiy6lt.js","name":"shared"},"_unocss-Bk83BPCg.js":{"file":"assets/unocss-Bk83BPCg.js","name":"unocss","isDynamicEntry":true},"index.html":{"file":"assets/index-BBpH3mOy.js","name":"index","src":"index.html","isEntry":true,"imports":["_unocss-Bk83BPCg.js","_shared-aEZiy6lt.js"],"dynamicImports":["_unocss-Bk83BPCg.js","src/views/PageView.vue","src/views/RootView.vue","src/views/NotFoundView.vue"],"css":["assets/index-vGiKZPT9.css"]},"src/views/NotFoundView.vue":{"file":"assets/NotFoundView-JMnb12L9.js","name":"NotFoundView","src":"src/views/NotFoundView.vue","isDynamicEntry":true,"imports":["index.html","_unocss-Bk83BPCg.js","_shared-aEZiy6lt.js"]},"src/views/PageView.vue":{"file":"assets/PageView-C95OGfvv.js","name":"PageView","src":"src/views/PageView.vue","isDynamicEntry":true,"imports":["_shared-aEZiy6lt.js","index.html","_unocss-Bk83BPCg.js"]},"src/views/RootView.vue":{"file":"assets/RootView-tAj5_HOt.js","name":"RootView","src":"src/views/RootView.vue","isDynamicEntry":true,"imports":["_shared-aEZiy6lt.js","index.html","_unocss-Bk83BPCg.js"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.22.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.5.1.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.3.3.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,onBeforeUnmount as r,watchEffect as o,createElementBlock as s,openBlock as n,Fragment as i,createVNode as l,createElementVNode as d,withCtx as c}from"vue";import{j as u,_ as a}from"./index-
|
|
1
|
+
import{defineComponent as t,ref as e,onBeforeUnmount as r,watchEffect as o,createElementBlock as s,openBlock as n,Fragment as i,createVNode as l,createElementVNode as d,withCtx as c}from"vue";import{j as u,_ as a}from"./index-BBpH3mOy.js";import"./unocss-Bk83BPCg.js";import"./shared-aEZiy6lt.js";import"vue-router";import"@vuebro/loader-sfc";function p(t,e){const r=t.type,o="html"===r?"htmlAttrs":"body"===r?"bodyAttrs":r;if("string"!=typeof o||!(o in e))return;const s=t.props||{};if(t.children){const e="children";s.children=Array.isArray(t.children)?t.children[0][e]:t[e]}Array.isArray(e[o])?e[o].push(s):"title"===o?e.title=s.children:e[o]=s}const f=t({name:"Head",setup(t,{slots:s}){const n=e({}),i=u(n);return r(()=>{i.dispose()}),()=>(o(()=>{s.default&&i.patch(function(t){const e={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const r of t)if("symbol"==typeof r.type&&Array.isArray(r.children))for(const t of r.children)p(t,e);else p(r,e);return e}(s.default()))}),null)}});const m=a(t({__name:"NotFoundView",setup(t,{expose:e}){e();const r={get Head(){return f}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),[["render",function(t,e,r,o,u,a){return n(),s(i,null,[l(o.Head,null,{default:c(()=>[...e[0]||(e[0]=[d("title",null,"Page Not Found",-1)])]),_:1}),e[1]||(e[1]=d("div",{class:"absolute inset-0 grid place-items-center"},[d("div",{class:"text-center"},[d("div",{class:"text-9xl"},"404"),d("p",null,"Oops. Nothing here...")])],-1))],64)}],["__file","NotFoundView.vue"]]);export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e,toValue as t,shallowRef as o,watch as n,reactive as l,getCurrentInstance as r,onMounted as i,unref as s,defineComponent as u,ref as a,onUnmounted as c,createElementBlock as v,openBlock as d,Fragment as f,renderList as m,normalizeClass as p,createBlock as h,resolveDynamicComponent as g}from"vue";import{u as b,p as w}from"./shared-
|
|
1
|
+
import{computed as e,toValue as t,shallowRef as o,watch as n,reactive as l,getCurrentInstance as r,onMounted as i,unref as s,defineComponent as u,ref as a,onUnmounted as c,createElementBlock as v,openBlock as d,Fragment as f,renderList as m,normalizeClass as p,createBlock as h,resolveDynamicComponent as g}from"vue";import{u as b,p as w}from"./shared-aEZiy6lt.js";import{t as M,n as E,a as y,b as S,c as x,i as _,w as O,d as L,u as j,e as T,f as V,p as $,m as I,r as P,g as k,s as D,h as H,_ as W}from"./index-BBpH3mOy.js";import{useRoute as z,useRouter as A}from"vue-router";import"./unocss-Bk83BPCg.js";import"@vuebro/loader-sfc";const B=_?window:void 0;function C(e){var o;const n=t(e);return null!=(o=null==n?void 0:n.$el)?o:n}function X(...o){const n=[],l=()=>{n.forEach(e=>e()),n.length=0},r=e(()=>{const e=M(t(o[0])).filter(e=>null!=e);return e.every(e=>"string"!=typeof e)?e:void 0}),i=O(()=>{var e,n;return[null!=(n=null==(e=r.value)?void 0:e.map(e=>C(e)))?n:[B].filter(e=>null!=e),M(t(r.value?o[1]:o[0])),M(s(r.value?o[2]:o[1])),t(r.value?o[3]:o[2])]},([e,t,o,r])=>{if(l(),!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==o?void 0:o.length))return;const i=L(r)?{...r}:r;n.push(...e.flatMap(e=>t.flatMap(t=>o.map(o=>((e,t,o,n)=>(e.addEventListener(t,o,n),()=>e.removeEventListener(t,o,n)))(e,t,o,i)))))},{flush:"post"});return S(l),()=>{i(),l()}}function Y(){const e=o(!1),t=r();return t&&i(()=>{e.value=!0},t),e}function q(t){const o=Y();return e(()=>(o.value,Boolean(t())))}function F(r,i={}){const{throttle:s=0,idle:u=200,onStop:a=y,onScroll:c=y,offset:v={left:0,right:0,top:0,bottom:0},observe:d={mutation:!1},eventListenerOptions:f={capture:!1,passive:!0},behavior:m="auto",window:p=B,onError:h=e=>{console.error(e)}}=i,g="boolean"==typeof d?{mutation:d}:d,b=o(0),w=o(0),_=e({get:()=>b.value,set(e){L(e,void 0)}}),O=e({get:()=>w.value,set(e){L(void 0,e)}});function L(e,o){var n,l,i,s;if(!p)return;const u=t(r);if(!u)return;null==(i=u instanceof Document?p.document.body:u)||i.scrollTo({top:null!=(n=t(o))?n:O.value,left:null!=(l=t(e))?l:_.value,behavior:t(m)});const a=(null==(s=null==u?void 0:u.document)?void 0:s.documentElement)||(null==u?void 0:u.documentElement)||u;null!=_&&(b.value=a.scrollLeft),null!=O&&(w.value=a.scrollTop)}const V=o(!1),$=l({left:!0,right:!1,top:!0,bottom:!1}),I=l({left:!1,right:!1,top:!1,bottom:!1}),P=e=>{V.value&&(V.value=!1,I.left=!1,I.right=!1,I.top=!1,I.bottom=!1,a(e))},k=T(P,s+u),D=e=>{var t;if(!p)return;const o=(null==(t=null==e?void 0:e.document)?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||C(e),{display:n,flexDirection:l,direction:r}=getComputedStyle(o),i="rtl"===r?-1:1,s=o.scrollLeft;I.left=s<b.value,I.right=s>b.value;const u=Math.abs(s*i)<=(v.left||0),a=Math.abs(s*i)+o.clientWidth>=o.scrollWidth-(v.right||0)-1;"flex"===n&&"row-reverse"===l?($.left=a,$.right=u):($.left=u,$.right=a),b.value=s;let c=o.scrollTop;e!==p.document||c||(c=p.document.body.scrollTop),I.top=c<w.value,I.bottom=c>w.value;const d=Math.abs(c)<=(v.top||0),f=Math.abs(c)+o.clientHeight>=o.scrollHeight-(v.bottom||0)-1;"flex"===n&&"column-reverse"===l?($.top=f,$.bottom=d):($.top=d,$.bottom=f),w.value=c},H=e=>{var t;if(!p)return;const o=null!=(t=e.target.documentElement)?t:e.target;D(o),V.value=!0,k(e),c(e)};return X(r,"scroll",s?j(H,s,!0,!1):H,f),x(()=>{try{const e=t(r);if(!e)return;D(e)}catch(e){h(e)}}),(null==g?void 0:g.mutation)&&null!=r&&r!==p&&r!==document&&function(o,l,r={}){const{window:i=B,...s}=r;let u;const a=q(()=>i&&"MutationObserver"in i),c=()=>{u&&(u.disconnect(),u=void 0)},v=e(()=>{const e=t(o),n=M(e).map(C).filter(E);return new Set(n)}),d=n(v,e=>{c(),a.value&&e.size&&(u=new MutationObserver(l),e.forEach(e=>u.observe(e,s)))},{immediate:!0,flush:"post"}),f=()=>{d(),c()};S(f)}(r,()=>{const e=t(r);e&&D(e)},{attributes:!0,childList:!0,subtree:!0}),X(r,"scrollend",P,f),{x:_,y:O,isScrolling:V,arrivedState:$,directions:I,measure(){const e=t(r);p&&e&&D(e)}}}const G=["id","role"];const J=W(u({__name:"PageView",setup(l,{expose:r}){r();const i=a([]),s=z(),u=A(),v=e(()=>V.value?.siblings??[]),d=[],f=e(()=>v.value.filter(({enabled:e})=>e)),m=()=>{d.forEach(e=>{e()}),d.length=0},p=e(()=>void 0===V.value||V.value.parent?.flat?f.value:[V.value]),h=e(()=>new Map(p.value.map(({id:e=b()})=>[e,!1]))),g=a(new Map(h.value)),x=e(()=>{const[[e,t]=[]]=$;return $.clear(),e&&t&&$.set(e,t),Object.fromEntries(p.value.map(e=>[e.id,I(e)]))});n(i,l=>{m(),setTimeout(()=>{l.forEach(l=>{const{stop:r}=function(l,r,i={}){const{root:s,rootMargin:u="0px",threshold:a=0,window:c=B,immediate:v=!0}=i,d=q(()=>c&&"IntersectionObserver"in c),f=e(()=>{const e=t(l);return M(e).map(C).filter(E)});let m=y;const p=o(v),h=d.value?n(()=>[f.value,C(s),p.value],([e,t])=>{if(m(),!p.value)return;if(!e.length)return;const o=new IntersectionObserver(r,{root:C(t),rootMargin:u,threshold:a});e.forEach(e=>e&&o.observe(e)),m=()=>{o.disconnect(),m=y}},{immediate:v,flush:"post"}):y,g=()=>{m(),h(),p.value=!1};return S(g),{isSupported:d,isActive:p,pause(){m(),p.value=!1},resume(){p.value=!0},stop:g}}(l,([{isIntersecting:e,target:{id:t}={}}={}]=[])=>{g.value=new Map(h.value),t&&void 0!==e&&h.value.set(t,e)},{threshold:.1});d.push(r)})})},{deep:!0}),F(window,{behavior:"smooth",onStop:()=>{if(!k.value){const{scrollX:e,scrollY:t}=window,[o]=p.value,[n]=w.value;if(n&&o){const{$children:[{id:l}={}]=[]}=n,r=Math.floor(e)||Math.floor(t)||o.id!==l?[...h.value.entries()].find(([,e])=>e)?.[0]??[...g.value.entries()].find(([,e])=>e)?.[0]??o.id:n.id;r!==s.name&&(D.value=!1,u.push({name:r}).catch(H.error))}}}}),c(m);const _={refs:i,route:s,router:u,siblings:v,stops:d,$siblings:f,clearStops:m,these:p,intersecting:h,$intersecting:g,templates:x,get uid(){return b},get resolve(){return P},get that(){return V}};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),[["render",function(e,t,o,n,l,r){return d(!0),v(f,null,m(n.these,e=>(d(),v("div",{id:e.id??n.uid(),key:e.id??n.uid(),ref_for:!0,ref:"refs",class:p(e.class),role:e.id===n.that?.id?"main":"section","un-cloak":""},[(d(),h(g(n.templates[e.id]),{pid:e.id,onVnodeMounted:t=>n.resolve(e)},null,8,["pid","onVnodeMounted"]))],10,G))),128)}],["__file","PageView.vue"]]);export{J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,createBlock as r,openBlock as o,Suspense as s,withCtx as i,createElementBlock as u,createCommentVNode as n,normalizeClass as d,resolveDynamicComponent as a}from"vue";import{p as l,u as p}from"./shared-
|
|
1
|
+
import{defineComponent as e,computed as t,createBlock as r,openBlock as o,Suspense as s,withCtx as i,createElementBlock as u,createCommentVNode as n,normalizeClass as d,resolveDynamicComponent as a}from"vue";import{p as l,u as p}from"./shared-aEZiy6lt.js";import{m,r as c,_ as f}from"./index-BBpH3mOy.js";import"./unocss-Bk83BPCg.js";import"vue-router";import"@vuebro/loader-sfc";const v=["id"];const _=f(e({__name:"RootView",setup(e,{expose:r}){r();const[o]=l.value,s=t(()=>o&&m(o)),i={the:o,is:s,get uid(){return p},get resolve(){return c}};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),[["render",function(e,t,l,p,m,c){return o(),r(s,null,{default:i(()=>[p.the?.enabled?(o(),u("div",{key:0,id:p.the?.id??p.uid(),class:d(p.the?.class),"un-cloak":""},[(o(),r(a(p.is),{pid:p.the?.id,onVnodeMounted:t[0]||(t[0]=e=>p.resolve(p.the))},null,8,["pid"]))],10,v)):n("",!0)]),_:1})}],["__file","RootView.vue"]]);export{_ as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-
|
|
2
|
-
import{d as e,w as t,_ as o,p as n,a as r,b as s,c as i,e as a,i as c}from"./unocss-Bk83BPCg.js";import{toValue as l,isRef as u,hasInjectionContext as p,inject as f,ref as d,watchEffect as h,getCurrentInstance as g,onBeforeUnmount as m,onDeactivated as y,onActivated as v,getCurrentScope as b,onScopeDispose as w,onMounted as k,nextTick as _,watch as C,reactive as x,unref as j,defineComponent as $,shallowRef as O,onUnmounted as F,h as S,computed as M,resolveComponent as T,createBlock as E,openBlock as L,withCtx as A,resolveDynamicComponent as P,defineAsyncComponent as H,createApp as I}from"vue";import{g as z,p as R,a as N,u as U,n as D,f as V,b as W,c as q}from"./shared-hXW0ftT1.js";import{useRoute as B,createRouter as J,createWebHistory as G}from"vue-router";import Z from"@vuebro/loader-sfc";function K(e,t={},o){for(const n in e){const r=e[n],s=o?`${o}:${n}`:n;"object"==typeof r&&null!==r?K(r,t,s):"function"==typeof r&&(t[s]=r)}return t}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Q={run:e=>e()},X=void 0!==console.createTask?console.createTask:()=>Q;function Y(e,t){const o=t.shift(),n=X(o);return e.reduce((e,o)=>e.then(()=>n.run(()=>o(...t))),Promise.resolve())}function ee(e,t){const o=t.shift(),n=X(o);return Promise.all(e.map(e=>n.run(()=>e(...t))))}function te(e,t){for(const o of[...e])o(t)}class oe{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,o={}){if(!e||"function"!=typeof t)return()=>{};const n=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!o.allowDeprecated){let e=r.message;e||(e=`${n} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let o,n=(...e)=>("function"==typeof o&&o(),o=void 0,n=void 0,t(...e));return o=this.hook(e,n),o}removeHook(e,t){if(this._hooks[e]){const o=this._hooks[e].indexOf(t);-1!==o&&this._hooks[e].splice(o,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const o=this._hooks[e]||[];delete this._hooks[e];for(const n of o)this.hook(e,n)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=K(e),o=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of o.splice(0,o.length))e()}}removeHooks(e){const t=K(e);for(const o in t)this.removeHook(o,t[o])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Y,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(ee,e,...t)}callHookWith(e,t,...o){const n=this._before||this._after?{name:t,args:o,context:{}}:void 0;this._before&&te(this._before,n);const r=e(t in this._hooks?[...this._hooks[t]]:[],o);return r instanceof Promise?r.finally(()=>{this._after&&n&&te(this._after,n)}):(this._after&&n&&te(this._after,n),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}const ne=new Set(["link","style","script","noscript"]),re=new Set(["title","titleTemplate","script","style","noscript"]),se=new Set(["base","meta","link","style","script","noscript"]),ie=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),ae=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),ce=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),le=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ue=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),pe=["name","property","http-equiv"],fe=new Set(["viewport","description","keywords","robots"]);function de(e){const t=e.split(":");return!!t.length&&ue.has(t[1])}function he(e){const{props:t,tag:o}=e;if(ae.has(o))return o;if("link"===o&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if("meta"===e.tag)for(const n of pe)if(void 0!==t[n]){const r=t[n],s=r.includes(":"),i=fe.has(r);return`${o}:${r}${!(s||i)&&e.key?`:key:${e.key}`:""}`}if(e.key)return`${o}:key:${e.key}`;if(t.id)return`${o}:id:${t.id}`;if(re.has(o)){const t=e.textContent||e.innerHTML;if(t)return`${o}:content:${t}`}}function ge(e){const t=e._h||e._d;if(t)return t;const o=e.textContent||e.innerHTML;return o||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join(",")}`}function me(e,t,o){let n;if("function"===typeof e&&(o&&("titleTemplate"===o||"o"===o[0]&&"n"===o[1])||(e=e())),t&&(n=t(o,e)),Array.isArray(n))return n.map(e=>me(e,t));if(n?.constructor===Object){const e={};for(const o of Object.keys(n))e[o]=me(n[o],t,o);return e}return n}function ye(e,t){return e.props=e.props||{},t?"templateParams"===e.tag?(e.props=t,e):(Object.entries(t).forEach(([o,n])=>{if(null===n)return void(e.props[o]=null);if("class"===o||"style"===o)return void(e.props[o]=function(e,t){const o="style"===e?new Map:new Set;function n(t){const n=t.trim();if(n)if("style"===e){const[e,...t]=n.split(":").map(e=>e.trim());e&&t.length&&o.set(e,t.join(":"))}else n.split(" ").filter(Boolean).forEach(e=>o.add(e))}return"string"==typeof t?"style"===e?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(e=>n(e)):t&&"object"==typeof t&&Object.entries(t).forEach(([t,r])=>{r&&"false"!==r&&("style"===e?o.set(t.trim(),r):n(t))}),o}(o,n));if(ce.has(o)){if(["textContent","innerHTML"].includes(o)&&"object"==typeof n){let r=t.type;if(t.type||(r="application/json"),!r?.endsWith("json")&&"speculationrules"!==r)return;t.type=r,e.props.type=r,e[o]=JSON.stringify(n)}else e[o]=n;return}const r=String(n),s=o.startsWith("data-");"true"===r||""===r?e.props[o]=!s||r:!n&&s&&"false"===r?e.props[o]="false":void 0!==n&&(e.props[o]=n)}),e):e}function ve(e,t){const o=ye({tag:e,props:{}},"object"==typeof t&&"function"!=typeof t?t:{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t});return o.key&&ne.has(o.tag)&&(o.props["data-hid"]=o._h=o.key),"script"===o.tag&&"object"==typeof o.innerHTML&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(e=>({...o,props:{...o.props,content:e}})):o}function be(e,t){if(!e)return[];"function"==typeof e&&(e=e());const o=(e,o)=>{for(let n=0;n<t.length;n++)o=t[n](e,o);return o};e=o(void 0,e);const n=[];return e=me(e,o),Object.entries(e||{}).forEach(([e,t])=>{if(void 0!==t)for(const o of Array.isArray(t)?t:[t])n.push(ve(e,o))}),n.flat()}const we=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,ke={base:-10,title:10},_e={critical:-8,high:-1,low:2},Ce={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}},xe=/@import/,je=e=>""===e||!0===e;function $e(e,t){if("number"==typeof t.tagPriority)return t.tagPriority;let o=100;const n=_e[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Ce;if(t.tag in ke)o=ke[t.tag];else if("meta"===t.tag){const e="content-security-policy"===t.props["http-equiv"]?"content-security-policy":t.props.charset?"charset":"viewport"===t.props.name?"viewport":null;e&&(o=Ce.meta[e])}else"link"===t.tag&&t.props.rel?o=r.link[t.props.rel]:"script"===t.tag?je(t.props.async)?o=r.script.async:!t.props.src||je(t.props.defer)||je(t.props.async)||"module"===t.props.type||t.props.type?.endsWith("json")?je(t.props.defer)&&t.props.src&&!je(t.props.async)&&(o=r.script.defer):o=r.script.sync:"style"===t.tag&&(o=t.innerHTML&&xe.test(t.innerHTML)?r.style.imported:r.style.sync);return(o||100)+n}function Oe(e,t){const o="function"==typeof t?t(e):t,n=o.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,o),e.hooks.addHooks(o.hooks||{}))}function Fe(e={}){const t=new oe;t.addHooks(e.hooks||{});const o=!e.document,n=new Map,r=new Map,s=new Set,i={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:o,entries:n,headEntries:()=>[...n.values()],use:e=>Oe(i,e),push(e,r){const a={...r||{}};delete a.head;const c=a._index??i._entryCount++,l={_i:c,input:e,options:a},u={_poll(e=!1){i.dirty=!0,!e&&s.add(c),t.callHook("entries:updated",i)},dispose(){n.delete(c)&&i.invalidate()},patch(e){(!a.mode||"server"===a.mode&&o||"client"===a.mode&&!o)&&(l.input=e,n.set(c,l),u._poll())}};return u.patch(e),u},async resolveTags(){const o={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",o);s.size;){const o=s.values().next().value;s.delete(o);const r=n.get(o);if(r){const o={tags:be(r.input,e.propResolvers||[]).map(e=>Object.assign(e,r.options)),entry:r};await t.callHook("entries:normalize",o),r._tags=o.tags.map((e,t)=>(e._w=$e(i,e),e._p=(r._i<<10)+t,e._d=he(e),e))}}let r=!1;o.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(we).reduce((e,t)=>{const o=String(t._d||t._p);if(!e.has(o))return e.set(o,t);const n=e.get(o);if("merge"===(t?.tagDuplicateStrategy||(le.has(t.tag)?"merge":null)||(t.key&&t.key===n.key?"merge":null))){const r={...n.props};Object.entries(t.props).forEach(([e,t])=>r[e]="style"===e?new Map([...n.props.style||new Map,...t]):"class"===e?new Set([...n.props.class||new Set,...t]):t),e.set(o,{...t,props:r})}else t._p>>10==n._p>>10&&"meta"===t.tag&&de(o)?(e.set(o,Object.assign([...Array.isArray(n)?n:[n],t],t)),r=!0):(t._w===n._w?t._p>n._p:t?._w<n?._w)&&e.set(o,t);return e},o.tagMap);const a=o.tagMap.get("title"),c=o.tagMap.get("titleTemplate");if(i._title=a?.textContent,c){const e=c?.textContent;if(i._titleTemplate=e,e){let t="function"==typeof e?e(a?.textContent):e;"string"!=typeof t||i.plugins.has("template-params")||(t=t.replace("%s",a?.textContent||"")),a?null===t?o.tagMap.delete("title"):o.tagMap.set("title",{...a,textContent:t}):(c.tag="title",c.textContent=t)}}o.tags=Array.from(o.tagMap.values()),r&&(o.tags=o.tags.flat().sort(we)),await t.callHook("tags:beforeResolve",o),await t.callHook("tags:resolve",o),await t.callHook("tags:afterResolve",o);const l=[];for(const e of o.tags){const{innerHTML:t,tag:o,props:n}=e;if(ie.has(o)&&((0!==Object.keys(n).length||e.innerHTML||e.textContent)&&("meta"!==o||n.content||n["http-equiv"]||n.charset))){if("script"===o&&t){if(n.type?.endsWith("json")){const o="string"==typeof t?t:JSON.stringify(t);e.innerHTML=o.replace(/</g,"\\u003C")}else"string"==typeof t&&(e.innerHTML=t.replace(new RegExp(`</${o}`,"g"),`<\\/${o}`));e._d=he(e)}l.push(e)}}return l},invalidate(){for(const e of n.values())s.add(e._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(e=>Oe(i,e)),i.hooks.callHook("init",i),e.init?.forEach(e=>e&&i.push(e)),i}async function Se(e,t={}){const o=t.document||e.resolvedOptions.document;if(!o||!e.dirty)return;const n={shouldRender:!0,tags:[]};return await e.hooks.callHook("dom:beforeRender",n),n.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise(async t=>{const n=new Map,r=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{const t=n.get(e._d)||0,o={tag:e,id:(t?`${e._d}:${t}`:e._d)||ge(e),shouldRender:!0};return e._d&&de(e._d)&&n.set(e._d,t+1),o}))})});let s=e._dom;if(!s){s={title:o.title,elMap:(new Map).set("htmlAttrs",o.documentElement).set("bodyAttrs",o.body)};for(const e of["body","head"]){const t=o[e]?.children;for(const e of t){const t=e.tagName.toLowerCase();if(!se.has(t))continue;const o=ye({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,o)=>(t[o]=e.getAttribute(o),t),{})||{}});if(o.key=e.getAttribute("data-hid")||void 0,o._d=he(o)||ge(o),s.elMap.has(o._d)){let t=1,n=o._d;for(;s.elMap.has(n);)n=`${o._d}:${t++}`;s.elMap.set(n,e)}else s.elMap.set(o._d,e)}}}function i(e,t,o){const n=`${e}:${t}`;s.sideEffects[n]=o,delete s.pendingSideEffects[n]}function a({id:e,$el:t,tag:n}){const r=n.tag.endsWith("Attrs");s.elMap.set(e,t),r||(n.textContent&&n.textContent!==t.textContent&&(t.textContent=n.textContent),n.innerHTML&&n.innerHTML!==t.innerHTML&&(t.innerHTML=n.innerHTML),i(e,"el",()=>{t?.remove(),s.elMap.delete(e)}));for(const s in n.props){if(!Object.prototype.hasOwnProperty.call(n.props,s))continue;const a=n.props[s];if(s.startsWith("on")&&"function"==typeof a){const e=t?.dataset;if(e&&e[`${s}fired`]){const e=s.slice(0,-5);a.call(t,new Event(e.substring(2)))}""!==t.getAttribute(`data-${s}`)&&(("bodyAttrs"===n.tag?o.defaultView:t).addEventListener(s.substring(2),a.bind(t)),t.setAttribute(`data-${s}`,""));continue}const c=`attr:${s}`;if("class"===s){if(!a)continue;for(const o of a)r&&i(e,`${c}:${o}`,()=>t.classList.remove(o)),!t.classList.contains(o)&&t.classList.add(o)}else if("style"===s){if(!a)continue;for(const[o,n]of a)i(e,`${c}:${o}`,()=>{t.style.removeProperty(o)}),t.style.setProperty(o,n)}else!1!==a&&null!==a&&(t.getAttribute(s)!==a&&t.setAttribute(s,!0===a?"":String(a)),r&&i(e,c,()=>t.removeAttribute(s)))}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};const c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await r;for(const e of u){const{tag:t,shouldRender:n,id:r}=e;n&&("title"!==t.tag?(e.$el=e.$el||s.elMap.get(r),e.$el?a(e):se.has(t.tag)&&c.push(e)):(o.title=t.textContent,i("title","",()=>o.title=s.title)))}for(const e of c){const t=e.tag.tagPosition||"head";e.$el=o.createElement(e.tag.tag),a(e),l[t]=l[t]||o.createDocumentFragment(),l[t].appendChild(e.$el)}for(const p of u)await e.hooks.callHook("dom:renderTag",p,o,i);l.head&&o.head.appendChild(l.head),l.bodyOpen&&o.body.insertBefore(l.bodyOpen,o.body.firstChild),l.bodyClose&&o.body.appendChild(l.bodyClose);for(const e in s.pendingSideEffects)s.pendingSideEffects[e]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise):void 0}function Me(e,t){let o=0;return()=>{const n=++o;t(()=>{o===n&&e()})}}const Te={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"])},Ee={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"},Le={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Ae(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>"seconds"===e?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>"boolean"==typeof t?Ae(e):`${Ae(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Ae(e)} ${t}`}},charset:{}};function Ae(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),o=t.indexOf("-");return-1===o?t:Te.META.has(t.slice(0,o))||Te.OG.has(t.slice(0,o))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Pe(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>"false"!==String(t)&&e))}function He(e){return Array.isArray(e)?e.map(He):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[Ae(e),He(t)])):e}function Ie(e,t={}){const{entrySeparator:o="",keyValueSeparator:n="",wrapValue:r,resolve:s}=t;return Object.entries(e).map(([e,o])=>{if(s){const t=s({key:e,value:o});if(void 0!==t)return t}const i="object"==typeof o?Ie(o,t):"number"==typeof o?o.toString():"string"==typeof o&&r?`${r}${o.replace(new RegExp(r,"g"),`\\${r}`)}${r}`:o;return`${e}${n}${i}`}).join(o)}function ze(e,t){const o=Pe(t),n=Ae(e),r=Re(n);if(!ue.has(n))return[{[r]:n,...o}];return Ue(Object.fromEntries(Object.entries(o).map(([t,o])=>[`${e}${"url"===t?"":`${t[0].toUpperCase()}${t.slice(1)}`}`,o]))||{}).sort((e,t)=>(e[r]?.length||0)-(t[r]?.length||0))}function Re(e){if("http-equiv"===Le[e]?.metaKey||Te.HTTP_EQUIV.has(e))return"http-equiv";const t=Ae(e),o=t.indexOf(":");return-1===o?"name":Te.OG.has(t.slice(0,o))?"property":"name"}function Ne(e,t){return"refresh"===t?`${e.seconds};url=${e.url}`:Ie(He(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?t:void 0,...Le[t]?.unpack})}function Ue(e){const t=[],o={};for(const[r,s]of Object.entries(e))if(Array.isArray(s)){if("themeColor"===r){s.forEach(e=>{"object"==typeof e&&null!==e&&t.push({name:"theme-color",...e})});continue}for(const e of s)if("object"==typeof e&&null!==e){const o=[],n=[];for(const[t,s]of Object.entries(e)){const e=`${r}${"url"===t?"":`:${t}`}`,i=Ue({[e]:s});("url"===t?o:n).push(...i)}t.push(...o,...n)}else t.push(..."string"==typeof e?Ue({[r]:e}):ze(r,e))}else if("object"==typeof s&&s)if(Te.MEDIA.has(r)){const e=r.startsWith("twitter")?"twitter":"og",o=r.replace(/^(og|twitter)/,"").toLowerCase(),n="twitter"===e?"name":"property";s.url&&t.push({[n]:`${e}:${o}`,content:s.url}),s.secureUrl&&t.push({[n]:`${e}:${o}:secure_url`,content:s.secureUrl});for(const[r,i]of Object.entries(s))"url"!==r&&"secureUrl"!==r&&t.push({[n]:`${e}:${o}:${r}`,content:i})}else ue.has(Ae(r))?t.push(...ze(r,s)):o[r]=Pe(s);else o[r]=s;const n=Object.entries(o).map(([e,t])=>{if("charset"===e)return{charset:null===t?"_null":t};const o=Re(e),n=function(e){return Ee[e]||Ae(e)}(e),r=null===t?"_null":"object"==typeof t?Ne(t,e):"number"==typeof t?t.toString():t;return"http-equiv"===o?{"http-equiv":n,content:r}:{[o]:n,content:r}});return[...t,...n].map(e=>"content"in e&&"_null"===e.content?{...e,content:null}:e)}function De(e){return e}const Ve=De({key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(e=>"_flatMeta"!==e.tag?e:(t.push(Ue(e.props).map(t=>({...e,tag:"meta",props:t}))),!1)).filter(Boolean).concat(...t)}}}),We=(e,t)=>u(t)?l(t):t,qe="usehead";function Be(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(qe,e)}}.install}function Je(){if(p()){const e=f(qe);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 Ge(e,t={}){const o=t.head||Je();return o.ssr?o.push(e||{},t):function(e,t,o={}){const n=d(!1);let r;h(()=>{const s=n.value?{}:me(t,We);r?r.patch(s):r=e.push(s,o)});g()&&(m(()=>{r.dispose()}),y(()=>{n.value=!0}),v(()=>{n.value=!1}));return r}(o,e,t)}function Ze(e={}){const t=function(e={}){const t=e.domOptions?.render||Se;e.document=e.document||("undefined"!=typeof window?document:void 0);const o=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Fe({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[!!o&&JSON.parse(o),...e.init||[]]})}({domOptions:{render:Me(()=>Se(t),e=>setTimeout(e,0))},...e});return t.install=Be(t),t}function Ke(e){return!!b()&&(w(e),!0)}const Qe="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const Xe=e=>null!=e,Ye=Object.prototype.toString,et=e=>"[object Object]"===Ye.call(e),tt=()=>{};function ot(e,t){return function(...o){return new Promise((n,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(n).catch(r)})}}function nt(e){return Array.isArray(e)?e:[e]}function rt(e,t=200,o={}){return ot(function(e,t={}){let o,n,r=tt;const s=e=>{clearTimeout(e),r(),r=tt};let i;return a=>{const c=l(e),u=l(t.maxWait);return o&&s(o),c<=0||void 0!==u&&u<=0?(n&&(s(n),n=void 0),Promise.resolve(a())):new Promise((e,l)=>{r=t.rejectOnCancel?l:e,i=a,u&&!n&&(n=setTimeout(()=>{o&&s(o),n=void 0,e(i())},u)),o=setTimeout(()=>{n&&s(n),n=void 0,e(a())},c)})}}(t,o),e)}function st(e,t=200,o=!1,n=!0,r=!1){return ot(function(...e){let t,o,n,r,s,i,a=0,c=!0,p=tt;u(e[0])||"object"!=typeof e[0]?[n,r=!0,s=!0,i=!1]=e:({delay:n,trailing:r=!0,leading:s=!0,rejectOnCancel:i=!1}=e[0]);const f=()=>{t&&(clearTimeout(t),t=void 0,p(),p=tt)};return e=>{const u=l(n),d=Date.now()-a,h=()=>o=e();return f(),u<=0?(a=Date.now(),h()):(d>u&&(s||!c)?(a=Date.now(),h()):r&&(o=new Promise((e,o)=>{p=i?o:e,t=setTimeout(()=>{a=Date.now(),c=!0,e(h()),f()},Math.max(0,u-d))})),s||t||(t=setTimeout(()=>c=!0,u)),c=!1,o)}}(t,o,n,r),e)}function it(e,t=!0,o){g()?k(e,o):t?e():_(e)}function at(e,t,o){return C(e,t,{...o,immediate:!0})}const ct={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},lt={silent:{level:-1},fatal:{level:ct.fatal},error:{level:ct.error},warn:{level:ct.warn},log:{level:ct.log},info:{level:ct.info},success:{level:ct.success},fail:{level:ct.fail},ready:{level:ct.info},start:{level:ct.info},box:{level:ct.info},debug:{level:ct.debug},trace:{level:ct.trace},verbose:{level:ct.verbose}};function ut(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function pt(e,t,o=".",n){if(!ut(t))return pt(e,{},o);const r=Object.assign({},t);for(const s in e){if("__proto__"===s||"constructor"===s)continue;const t=e[s];null!=t&&(Array.isArray(t)&&Array.isArray(r[s])?r[s]=[...t,...r[s]]:ut(t)&&ut(r[s])?r[s]=pt(t,r[s],(o?`${o}.`:"")+s.toString()):r[s]=t)}return r}const ft=(...e)=>e.reduce((e,t)=>pt(e,t,""),{});function dt(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let ht=!1;const gt=[];class mt{options;_lastLog;_mockFn;constructor(e={}){const t=e.types||lt;this.options=ft({...e,defaults:{...e.defaults},level:yt(e.level,t),reporters:[...e.reporters||[]]},{types:lt,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const o in t){const e={type:o,...this.options.defaults,...t[o]};this[o]=this._wrapLogFn(e),this[o].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=yt(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new mt({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(-1!==t)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ht=!0}resumeLogs(){ht=!1;const e=gt.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const o in this.options.types)this[o]=t(o,this.options.types[o])||this[o],this[o].raw=this[o]}_wrapLogFn(e,t){return(...o)=>{if(!ht)return this._logFn(e,o,t);gt.push([this,e,o,t])}}_logFn(e,t,o){if((e.level||0)>this.level)return!1;const n={date:new Date,args:[],...e,level:yt(e.level,this.options.types)};!o&&1===t.length&&dt(t[0])?Object.assign(n,t[0]):n.args=[...t],n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split("\n")),n.args.push("\n"+n.additional.join("\n")),delete n.additional),n.type="string"==typeof n.type?n.type.toLowerCase():"log",n.tag="string"==typeof n.tag?n.tag:"";const r=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=n,this._log(n))};clearTimeout(this._lastLog.timeout);const s=this._lastLog.time&&n.date?n.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=n.date,s<this.options.throttle)try{const e=JSON.stringify([n.type,n.tag,n.args]),t=this._lastLog.serialized===e;if(this._lastLog.serialized=e,t&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin))return void(this._lastLog.timeout=setTimeout(r,this.options.throttle))}catch{}r(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function yt(e,t={},o=3){return void 0===e?o:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:o}mt.prototype.add=mt.prototype.addReporter,mt.prototype.remove=mt.prototype.removeReporter,mt.prototype.clear=mt.prototype.removeReporter,mt.prototype.withScope=mt.prototype.withTag,mt.prototype.mock=mt.prototype.mockTypes,mt.prototype.pause=mt.prototype.pauseLogs,mt.prototype.resume=mt.prototype.resumeLogs;class vt{options;defaultColor;levelColorMap;typeColorMap;constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),o="log"===e.type?"":e.type,n=e.tag||"",r=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,s=`%c${[n,o].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${s}%c ${e.args[0]}`,r,"",...e.args.slice(1)):t(s,r,...e.args)}}const bt=function(e={}){return function(e={}){return new mt(e)}({reporters:e.reporters||[new vt({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}(),wt=Object.freeze({left:0,top:0,width:16,height:16}),kt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_t=Object.freeze({...wt,...kt}),Ct=Object.freeze({..._t,body:"",hidden:!1}),xt=Object.freeze({width:null,height:null}),jt=Object.freeze({...xt,...kt});function $t(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}(e,t);for(const n in Ct)n in kt?n in e&&!(n in o)&&(o[n]=kt[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function Ot(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let s={};function i(e){s=$t(n[e]||r[e],s)}return i(t),o.forEach(i),$t(e,s)}function Ft(e,t){if(e.icons[t])return Ot(e,t,[]);const o=function(e,t){const o=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(o).concat(Object.keys(n))).forEach(function e(t){if(o[t])return r[t]=[];if(!(t in r)){r[t]=null;const o=n[t]&&n[t].parent,s=o&&e(o);s&&(r[t]=[o].concat(s))}return r[t]}),r}(e,[t])[t];return o?Ot(e,t,o):null}const St=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Mt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Tt(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const n=e.split(St);if(null===n||!n.length)return e;const r=[];let s=n.shift(),i=Mt.test(s);for(;;){if(i){const e=parseFloat(s);isNaN(e)?r.push(s):r.push(Math.ceil(e*t*o)/o)}else r.push(s);if(s=n.shift(),void 0===s)return r.join("");i=!i}}const Et=e=>"unset"===e||"undefined"===e||"none"===e;function Lt(e,t){const o={..._t,...e},n={...jt,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(e=>{const t=[],o=e.hFlip,n=e.vFlip;let i,a=e.rotate;switch(o?n?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):n&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:i=r.height/2+r.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:i=r.width/2+r.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}a%2==1&&(r.left!==r.top&&(i=r.left,r.left=r.top,r.top=i),r.width!==r.height&&(i=r.width,r.width=r.height,r.height=i)),t.length&&(s=function(e,t,o){const n=function(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===r||-1===s)break;const i=e.indexOf(">",s);if(-1===i)break;o+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:o,content:e}}(e);return r=n.defs,s=t+n.content+o,r?"<defs>"+r+"</defs>"+s:s;var r,s}(s,'<g transform="'+t.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=r.width,l=r.height;let u,p;null===i?(p=null===a?"1em":"auto"===a?l:a,u=Tt(p,c/l)):(u="auto"===i?c:i,p=null===a?Tt(u,l/c):"auto"===a?l:a);const f={},d=(e,t)=>{Et(t)||(f[e]=t.toString())};d("width",u),d("height",p);const h=[r.left,r.top,c,l];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:s}}function At(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" ')),function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(t)}const Pt=/\swidth\s*=\s*["']([\w.]+)["']/,Ht=/\sheight\s*=\s*["']([\w.]+)["']/,It=/<svg\s+/;async function zt(e,t,o,n,r,s){const{scale:i,addXmlNs:a=!1}=n??{},{additionalProps:c={},iconCustomizer:l}=n?.customizations??{},u=await(r?.())??{};await(l?.(t,o,u)),Object.keys(c).forEach(e=>{const t=c[e];null!=t&&(u[e]=t)}),s?.(u);const[p,f]=function(e,t,o){const n=e.slice(0,e.indexOf(">")),r=(e,r)=>{const s=r.exec(n),i=null!=s,a=t[e];return a||Et(a)||("number"==typeof o?o>0&&(t[e]=Tt(s?.[1]??"1em",o)):s&&(t[e]=s[1])),i};return[r("width",Pt),r("height",Ht)]}(e,u,i);a&&(e.includes("xmlns=")||u.xmlns||(u.xmlns="http://www.w3.org/2000/svg"),e.includes("xmlns:xlink=")||!e.includes("xlink:")||u["xmlns:xlink"]||(u["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const d=Object.keys(u).map(e=>"width"===e&&p||"height"===e&&f?null:`${e}="${u[e]}"`).filter(e=>null!=e);if(d.length&&(e=e.replace(It,`<svg ${d.join(" ")} `)),n){const{defaultStyle:t,defaultClass:o}=n;o&&!e.includes("class=")&&(e=e.replace(It,`<svg class="${o}" `)),t&&!e.includes("style=")&&(e=e.replace(It,`<svg style="${t}" `))}const h=n?.usedProps;return h&&(Object.keys(c).forEach(e=>{const t=u[e];null!=t&&(h[e]=t)}),void 0!==u.width&&null!==u.width&&(h.width=u.width),void 0!==u.height&&null!==u.height&&(h.height=u.height)),e}var Rt,Nt,Ut,Dt,Vt,Wt={exports:{}};function qt(){if(Nt)return Rt;Nt=1;var e=1e3,t=60*e,o=60*t,n=24*o,r=7*n,s=365.25*n;function i(e,t,o,n){var r=t>=1.5*o;return Math.round(e/o)+" "+n+(r?"s":"")}return Rt=function(a,c){c=c||{};var l=typeof a;if("string"===l&&a.length>0)return function(i){if((i=String(i)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(a);if("number"===l&&isFinite(a))return c.long?function(r){var s=Math.abs(r);if(s>=n)return i(r,s,n,"day");if(s>=o)return i(r,s,o,"hour");if(s>=t)return i(r,s,t,"minute");if(s>=e)return i(r,s,e,"second");return r+" ms"}(a):function(r){var s=Math.abs(r);if(s>=n)return Math.round(r/n)+"d";if(s>=o)return Math.round(r/o)+"h";if(s>=t)return Math.round(r/t)+"m";if(s>=e)return Math.round(r/e)+"s";return r+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}}const Bt=z((Vt||(Vt=1,function(e,t){var o={};t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))}),t.splice(r,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(o){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=o.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!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"],t.log=console.debug||console.log||(()=>{}),e.exports=(Dt?Ut:(Dt=1,Ut=function(e){function t(e){let n,r,s,i=null;function a(...e){if(!a.enabled)return;const o=a,r=Number(new Date),s=r-(n||r);o.diff=s,o.prev=n,o.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;const s=t.formatters[r];if("function"==typeof s){const t=e[i];n=s.call(o,t),e.splice(i,1),i--}return n}),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}function n(e,t){let o=0,n=0,r=-1,s=0;for(;o<e.length;)if(n<t.length&&(t[n]===e[o]||"*"===t[n]))"*"===t[n]?(r=n,s=o,n++):(o++,n++);else{if(-1===r)return!1;n=r+1,s++,o=s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const n of o)"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(const o of t.skips)if(n(e,o))return!1;for(const o of t.names)if(n(e,o))return!0;return!1},t.humanize=qt(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(o=>{t[o]=e[o]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t<e.length;t++)o=(o<<5)-o+e.charCodeAt(t),o|=0;return t.colors[Math.abs(o)%t.colors.length]},t.enable(t.load()),t}))(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(Wt,Wt.exports)),Wt.exports)),Jt=Bt("@iconify-loader:custom");async function Gt(e,t,o,n){let r;Jt(`${t}:${o}`);try{if("function"==typeof e)r=await e(o);else{const t=e[o];r="function"==typeof t?await t():t}}catch(i){return void console.warn(`Failed to load custom icon "${o}" in "${t}":`,i)}if(r){const e=r.indexOf("<svg");e>0&&(r=r.slice(e));const{transform:i}=n?.customizations??{};return r="function"==typeof i?await i(r,t,o):r,r.startsWith("<svg")?await zt(!0===n?.customizations?.trimCustomSvg?(s=r,s.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()):r,t,o,n,void 0):(console.warn(`Custom icon "${o}" in "${t}" is not a valid SVG`),r)}var s}const Zt=Bt("@iconify-loader:icon");async function Kt(e,t,o,n){let r;const{customize:s}=n?.customizations??{};for(const i of o)if(r=Ft(e,i),r){Zt(`${t}:${i}`);let e={...jt};"function"==typeof s&&(r=Object.assign({},r),e=s(e,r,`${t}:${i}`)??e);const{attributes:{width:o,height:a,...c},body:l}=Lt(r,e),u=n?.scale;return await zt(`<svg >${l}</svg>`,t,i,n,()=>({...c}),e=>{const t=(t,o)=>{const n=e[t];let r;if(!Et(n)){if(n)return;"number"==typeof u?u&&(r=Tt(o??"1em",u)):r=o}r?e[t]=r:delete e[t]};t("width",o),t("height",a)})}}const Qt=async(e,t,o)=>{const n=o?.customCollections?.[e];if(n){if("function"!=typeof n)return await Gt(n,e,t,o);{let s;try{s=await n(t)}catch(r){return void console.warn(`Failed to load custom icon "${t}" in "${e}":`,r)}if(s){if("string"==typeof s)return await Gt(()=>s,e,t,o);if("icons"in s){const n=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Kt(s,e,n,o)}}}}};var Xt={};const Yt=["academicons","akar-icons","ant-design","arcticons","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","fa7-brands","fa7-regular","fa7-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","roentgen","si-glyph","si","sidekickicons","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","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];function eo(e,t,o=new Map){return async(n,r,s)=>{let i=await Qt(n,r,s);if(i)return i;const a=await function(n){if(Yt.includes(n))return o.has(n)||o.set(n,e(`${t}@iconify-json/${n}/icons.json`)),o.get(n)}(n);if(a){const e=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];i=await Kt(a,n,e,s)}return i}}async function to(e,t,o={},n=[]){let r,s="",i="";const a=new Set([...Yt,...n,...Object.keys(o.customCollections||{})]);if(e.includes(":")){if([s,i]=e.split(":"),!a.has(s))return;r=await t(s,i,o)}else{const n=e.split(/-/g);for(let e=3;e>=1&&(s=n.slice(0,e).join("-"),!a.has(s)||(i=n.slice(e).join("-"),r=await t(s,i,o),!r));e--);}if(r)return{collection:s,name:i,svg:r}}const oo=(no=async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?eo(t,n):n?await async function(e){const{$fetch:t}=await o(async()=>{const{$fetch:e}=await import("./unocss-Bk83BPCg.js").then(e=>e.f);return{$fetch:e}},[],import.meta.url);return eo(t,e)}(n):Qt},e((e={})=>{const{scale:o=1,mode:n="auto",prefix:r="i-",warn:s=!1,iconifyCollectionsNames:i,collections:a,extraProperties:c={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:p,layer:f="icons",unit:d,processor:h}=e,g=function(){const e="undefined"!=typeof process&&process.stdout;return{isNode:e,isVSCode:e&&!!Xt.VSCODE_CWD,isESLint:e&&!!Xt.ESLINT}}(),m={addXmlNs:!0,scale:o,customCollections:a,autoInstall:u,cwd:p,warn:void 0,customizations:{...l,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(e,t,n){await(l.iconCustomizer?.(e,t,n)),d&&(n.width||(n.width=`${o}${d}`),n.height||(n.height=`${o}${d}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},api:{encodeSvgForCss:At,parseIconWithLoader:to},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async o=>{let[r,a,c=n]=o;y=y||await no(e);const l={},u=await to(a,y,{...m,usedProps:l},i);if(!u)return void(s&&!g.isESLint&&t(`failed to load icon "${r}"`));let p;const f=`url("data:image/svg+xml;utf8,${At(u.svg)}")`;return"auto"===c&&(c=u.svg.includes("currentColor")?"mask":"bg"),p="mask"===c?{"--un-icon":f,"-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",...l}:{background:`${f} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...l},h?.(p,{...u,icon:u.name,mode:c}),p},{layer:f,prefix:r}]]}}));var no;const ro={presets:[n({preflights:{reset:!0}}),r(),oo({cdn:"https://cdn.jsdelivr.net/npm/"}),s(),i()]},so=/^[a-z0-9]+(-[a-z0-9]+)*$/,io=(e,t,o,n="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),o=r.pop(),s={provider:r.length>0?r[0]:n,prefix:o,name:e};return t&&!ao(s)?null:s}const s=r[0],i=s.split("-");if(i.length>1){const e={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!ao(e)?null:e}if(o&&""===n){const e={provider:n,prefix:"",name:s};return t&&!ao(e,o)?null:e}return null},ao=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),co=Object.freeze({left:0,top:0,width:16,height:16}),lo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),uo=Object.freeze({...co,...lo}),po=Object.freeze({...uo,body:"",hidden:!1});function fo(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}(e,t);for(const n in po)n in lo?n in e&&!(n in o)&&(o[n]=lo[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function ho(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let s={};function i(e){s=fo(n[e]||r[e],s)}return i(t),o.forEach(i),fo(e,s)}function go(e,t){const o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),o.push(e)});const n=function(e){const t=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);return Object.keys(t).concat(Object.keys(o)).forEach(function e(r){if(t[r])return n[r]=[];if(!(r in n)){n[r]=null;const t=o[r]&&o[r].parent,s=t&&e(t);s&&(n[r]=[t].concat(s))}return n[r]}),n}(e);for(const r in n){const s=n[r];s&&(t(r,ho(e,r,s)),o.push(r))}return o}const mo={provider:"",aliases:{},not_found:{},...co};function yo(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function vo(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!yo(e,mo))return null;const o=t.icons;for(const r in o){const e=o[r];if(!r||"string"!=typeof e.body||!yo(e,po))return null}const n=t.aliases||Object.create(null);for(const r in n){const e=n[r],t=e.parent;if(!r||"string"!=typeof t||!o[t]&&!n[t]||!yo(e,po))return null}return t}const bo=Object.create(null);function wo(e,t){const o=bo[e]||(bo[e]=Object.create(null));return o[t]||(o[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ko(e,t){return vo(t)?go(t,(t,o)=>{o?e.icons[t]=o:e.missing.add(t)}):[]}let _o=!1;function Co(e){return"boolean"==typeof e&&(_o=e),_o}function xo(e){const t="string"==typeof e?io(e,!0,_o):e;if(t){const e=wo(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function jo(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),_o&&!t&&!e.prefix){let t=!1;return vo(e)&&(e.prefix="",go(e,(e,o)=>{(function(e,t){const o=io(e,!0,_o);if(!o)return!1;const n=wo(o.provider,o.prefix);return t?function(e,t,o){try{if("string"==typeof o.body)return e.icons[t]={...o},!0}catch(n){}return!1}(n,o.name,t):(n.missing.add(o.name),!0)})(e,o)&&(t=!0)})),t}const o=e.prefix;if(!ao({prefix:o,name:"a"}))return!1;return!!ko(wo(t,o),e)}const $o=Object.freeze({width:null,height:null}),Oo=Object.freeze({...$o,...lo}),Fo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,So=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Mo(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const n=e.split(Fo);if(null===n||!n.length)return e;const r=[];let s=n.shift(),i=So.test(s);for(;;){if(i){const e=parseFloat(s);isNaN(e)?r.push(s):r.push(Math.ceil(e*t*o)/o)}else r.push(s);if(s=n.shift(),void 0===s)return r.join("");i=!i}}const To=/\sid="(\S+)"/g,Eo="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Lo=0;const Ao=Object.create(null);function Po(e){return Ao[e]||Ao[""]}function Ho(e){let t;if("string"==typeof e.resources)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:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Io=Object.create(null),zo=["https://api.simplesvg.com","https://api.unisvg.com"],Ro=[];for(;zo.length>0;)1===zo.length||Math.random()>.5?Ro.push(zo.shift()):Ro.push(zo.pop());function No(e,t){const o=Ho(t);return null!==o&&(Io[e]=o,!0)}function Uo(e){return Io[e]}Io[""]=Ho({resources:["https://api.iconify.design"].concat(Ro)});let Do=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const Vo={prepare:(e,t,o)=>{const n=[],r=function(e,t){const o=Uo(e);if(!o)return 0;let n;if(o.maxURL){let e=0;o.resources.forEach(t=>{const o=t;e=Math.max(e,o.length)});const r=t+".json?icons=";n=o.maxURL-e-o.path.length-r.length}else n=0;return n}(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return o.forEach((o,c)=>{a+=o.length+1,a>=r&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=o.length),i.icons.push(o)}),n.push(i),n},send:(e,t,o)=>{if(!Do)return void o("abort",424);let n=function(e){if("string"==typeof e){const t=Uo(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,o=t.icons.join(",");n+=e+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void o("abort",400)}let r=503;Do(e+n).then(e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout(()=>{o(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{o("success",e)}):setTimeout(()=>{404===e?o("abort",e):o("next",r)})}).catch(()=>{o("next",r)})}};function Wo(e,t){e.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(e=>e.id!==t))})}let qo=0;var Bo={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Jo(e,t,o,n){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let t=e.resources.slice(0);for(i=[];t.length>1;){const e=Math.floor(Math.random()*t.length);i.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}i=i.concat(t)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c,l="pending",u=0,p=null,f=[],d=[];function h(){p&&(clearTimeout(p),p=null)}function g(){"pending"===l&&(l="aborted"),h(),f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function m(e,t){t&&(d=[]),"function"==typeof e&&d.push(e)}function y(){l="failed",d.forEach(e=>{e(void 0,c)})}function v(){f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function b(){if("pending"!==l)return;h();const n=i.shift();if(void 0===n)return f.length?void(p=setTimeout(()=>{h(),"pending"===l&&(v(),y())},e.timeout)):void y();const r={status:"pending",resource:n,callback:(t,o)=>{!function(t,o,n){const r="success"!==o;switch(f=f.filter(e=>e!==t),l){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===o)return c=n,void y();if(r)return c=n,void(f.length||(i.length?b():y()));if(h(),v(),!e.random){const o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}l="completed",d.forEach(e=>{e(n)})}(r,t,o)}};f.push(r),u++,p=setTimeout(b,e.rotate),o(n,t,r.callback)}return"function"==typeof n&&d.push(n),setTimeout(b),function(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:m,abort:g}}}function Go(e){const t={...Bo,...e};let o=[];function n(){o=o.filter(e=>"pending"===e().status)}return{query:function(e,r,s){const i=Jo(t,e,r,(e,t)=>{n(),s&&s(e,t)});return o.push(i),i},find:function(e){return o.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}function Zo(){}const Ko=Object.create(null);function Qo(e,t,o){let n,r;if("string"==typeof e){const t=Po(e);if(!t)return o(void 0,424),Zo;r=t.send;const s=function(e){if(!Ko[e]){const t=Uo(e);if(!t)return;const o={config:t,redundancy:Go(t)};Ko[e]=o}return Ko[e]}(e);s&&(n=s.redundancy)}else{const t=Ho(e);if(t){n=Go(t);const o=Po(e.resources?e.resources[0]:"");o&&(r=o.send)}}return n&&r?n.query(t,r,o)().abort:(o(void 0,424),Zo)}function Xo(){}function Yo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const n=e.provider,r=e.prefix;t.forEach(t=>{const s=t.icons,i=s.pending.length;s.pending=s.pending.filter(t=>{if(t.prefix!==r)return!0;const i=t.name;if(e.icons[i])s.loaded.push({provider:n,prefix:r,name:i});else{if(!e.missing.has(i))return o=!0,!0;s.missing.push({provider:n,prefix:r,name:i})}return!1}),s.pending.length!==i&&(o||Wo([e],t.id),t.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),t.abort))})}))}(e)}))}function en(e,t,o){function n(){const o=e.pendingIcons;t.forEach(t=>{o&&o.delete(t),e.icons[t]||e.missing.add(t)})}if(o&&"object"==typeof o)try{if(!ko(e,o).length)return void n()}catch(r){console.error(r)}n(),Yo(e)}function tn(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function on(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:t,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const r=e.loadIcon;if(e.loadIcons&&(n.length>1||!r))return void tn(e.loadIcons(n,o,t),t=>{en(e,n,t)});if(r)return void n.forEach(n=>{tn(r(n,o,t),t=>{en(e,[n],t?{prefix:o,icons:{[n]:t}}:null)})});const{valid:s,invalid:i}=function(e){const t=[],o=[];return e.forEach(e=>{(e.match(so)?t:o).push(e)}),{valid:t,invalid:o}}(n);if(i.length&&en(e,i,null),!s.length)return;const a=o.match(so)?Po(t):null;if(!a)return void en(e,s,null);a.prepare(t,o,s).forEach(o=>{Qo(t,o,t=>{en(e,o.icons,t)})})}))}const nn=(e,t)=>{const o=function(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let n={provider:"",prefix:"",name:""};return e.forEach(e=>{if(n.name===e.name&&n.prefix===e.prefix&&n.provider===e.provider)return;n=e;const r=e.provider,s=e.prefix,i=e.name,a=o[r]||(o[r]=Object.create(null)),c=a[s]||(a[s]=wo(r,s));let l;l=i in c.icons?t.loaded:""===s||c.missing.has(i)?t.missing:t.pending;const u={provider:r,prefix:s,name:i};l.push(u)}),t}(function(e,t=!0,o=!1){const n=[];return e.forEach(e=>{const r="string"==typeof e?io(e,t,o):e;r&&n.push(r)}),n}(e,!0,Co()));if(!o.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(o.loaded,o.missing,o.pending,Xo)}),()=>{e=!1}}const n=Object.create(null),r=[];let s,i;return o.pending.forEach(e=>{const{provider:t,prefix:o}=e;if(o===i&&t===s)return;s=t,i=o,r.push(wo(t,o));const a=n[t]||(n[t]=Object.create(null));a[o]||(a[o]=[])}),o.pending.forEach(e=>{const{provider:t,prefix:o,name:r}=e,s=wo(t,o),i=s.pendingIcons||(s.pendingIcons=new Set);i.has(r)||(i.add(r),n[t][o].push(r))}),r.forEach(e=>{const t=n[e.provider][e.prefix];t.length&&on(e,t)}),t?function(e,t,o){const n=qo++,r=Wo.bind(null,o,n);if(!t.pending.length)return r;const s={id:n,icons:t,callback:e,abort:r};return o.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(s)}),r}(t,o,r):Xo};const rn=/[\s,]+/;function sn(e,t){t.split(rn).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function an(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===o){const t=parseInt(e);return isNaN(t)?0:n(t)}if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-o.length));return isNaN(r)?0:(r/=t,r%1==0?n(r):0)}}return t}const cn={...Oo,inline:!1},ln={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},un={display:"inline-block"},pn={backgroundColor:"currentColor"},fn={backgroundColor:"transparent"},dn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},hn={webkitMask:pn,mask:pn,background:fn};for(const Pn in hn){const e=hn[Pn];for(const t in dn)e[Pn+t]=dn[t]}const gn={};function mn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";gn[e+"-flip"]=t,gn[e.slice(0,1)+"-flip"]=t,gn[e+"Flip"]=t});const yn=(e,t)=>{const o=function(e,t){const o={...e};for(const n in t){const e=t[n],r=typeof e;n in $o?(null===e||e&&("string"===r||"number"===r))&&(o[n]=e):r===typeof o[n]&&(o[n]="rotate"===n?e%4:e)}return o}(cn,t),n={...ln},r=t.mode||"svg",s={},i=t.style,a="object"!=typeof i||i instanceof Array?{}:i;for(let m in t){const e=t[m];if(void 0!==e)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":o[m]=!0===e||"true"===e||1===e;break;case"flip":"string"==typeof e&&sn(o,e);break;case"color":s.color=e;break;case"rotate":"string"==typeof e?o[m]=an(e):"number"==typeof e&&(o[m]=e);break;case"ariaHidden":case"aria-hidden":!0!==e&&"true"!==e&&delete n["aria-hidden"];break;default:{const t=gn[m];t?!0!==e&&"true"!==e&&1!==e||(o[t]=!0):void 0===cn[m]&&(n[m]=e)}}}const c=function(e,t){const o={...uo,...e},n={...Oo,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(e=>{const t=[],o=e.hFlip,n=e.vFlip;let i,a=e.rotate;switch(o?n?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):n&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:i=r.height/2+r.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:i=r.width/2+r.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}a%2==1&&(r.left!==r.top&&(i=r.left,r.left=r.top,r.top=i),r.width!==r.height&&(i=r.width,r.width=r.height,r.height=i)),t.length&&(s=function(e,t,o){const n=function(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===r||-1===s)break;const i=e.indexOf(">",s);if(-1===i)break;o+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:o,content:e}}(e);return r=n.defs,s=t+n.content+o,r?"<defs>"+r+"</defs>"+s:s;var r,s}(s,'<g transform="'+t.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=r.width,l=r.height;let u,p;null===i?(p=null===a?"1em":"auto"===a?l:a,u=Mo(p,c/l)):(u="auto"===i?c:i,p=null===a?Mo(u,l/c):"auto"===a?l:a);const f={},d=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};d("width",u),d("height",p);const h=[r.left,r.top,c,l];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:s}}(e,o),l=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),"svg"===r){n.style={...s,...a},Object.assign(n,l);let e=0,o=t.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),n.innerHTML=function(e,t=Eo){const o=[];let n;for(;n=To.exec(e);)o.push(n[1]);if(!o.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const n="function"==typeof t?t(o):t+(Lo++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+n+r+"$3")}),e=e.replace(new RegExp(r,"g"),"")}(c.body,o?()=>o+"ID"+e++:"iconifyVue"),S("svg",n)}const{body:u,width:p,height:f}=e,d="mask"===r||"bg"!==r&&-1!==u.indexOf("currentColor"),h=function(e,t){let o=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)o+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}(u,{...l,width:p+"",height:f+""});var g;return n.style={...s,"--svg":(g=h,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(g)+'")'),width:mn(l.width),height:mn(l.height),...un,...d?pn:fn,...a},S("span",n)};var vn;if(Co(!0),vn=Vo,Ao[""]=vn,"undefined"!=typeof document&&"undefined"!=typeof window){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!jo(e))&&console.error(o)}catch(t){console.error(o)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const o="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;No(e,n)||console.error(o)}catch(An){console.error(o)}}}}const bn={...uo,body:""};$((e,{emit:t})=>{const o=d(null);function n(){o.value&&(o.value.abort?.(),o.value=null)}const r=d(!!e.ssr),s=d(""),i=O(null);function a(){const r=function(){const r=e.icon;if("object"==typeof r&&null!==r&&"string"==typeof r.body)return s.value="",{data:r};let i;if("string"!=typeof r||null===(i=io(r,!1,!0)))return null;let c=xo(i);if(!c){const e=o.value;return e&&e.name===r||(o.value=null===c?{name:r}:{name:r,abort:nn([i],a)}),null}n(),s.value!==r&&(s.value=r,_(()=>{t("load",r)}));const l=e.customise;if(l){c=Object.assign({},c);const e=l(c.body,i.name,i.prefix,i.provider);"string"==typeof e&&(c.body=e)}const u=["iconify"];return""!==i.prefix&&u.push("iconify--"+i.prefix),""!==i.provider&&u.push("iconify--"+i.provider),{data:c,classes:u}}();r?r.data!==i.value?.data&&(i.value=r):i.value=null}return r.value?a():k(()=>{r.value=!0,a()}),C(()=>e.icon,a),F(n),()=>{const t=i.value;if(!t)return yn(bn,e);let o=e;return t.classes&&(o={...e,class:t.classes.join(" ")}),yn({...uo,...t.data},o)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const wn=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o};const kn=wn($({__name:"App",setup(e,{expose:t}){t();const o=B(),n=M(()=>R.value.find(({id:e})=>e===o.name)),r=d(""),s=d(""),i=M(()=>n.value?.to&&`${window.location.origin}${"/"===n.value.to?"":n.value.to}`);C(n,async e=>{let t="/favicon.ico";if(e?.icon){const o=xo(e.icon)?function(e){const t=xo(e);return t?{...uo,...t}:t}(e.icon):await(e=>new Promise((t,o)=>{const n="string"==typeof e?io(e,!0):e;n?nn([n||e],r=>{if(r.length&&n){const e=xo(n);if(e)return void t({...uo,...e})}o(e)}):o(e)}))(e.icon);if(o){const{body:e,height:n,left:r,top:s,width:i}=o;t=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${r.toString()} ${s.toString()} ${i.toString()} ${n.toString()}">${e}</svg>`}}r.value=t}),Ge({link:[[r,"icon","icon"],[i,"canonical"]].map(([e,t,o])=>({href:e,key:o,rel:t})),script:[{id:"application/ld+json",innerHTML:s,type:"application/ld+json"}]}),function(e={},t={}){(t.head||Je()).use(Ve);const{title:o,titleTemplate:n,...r}=e;Ge({title:o,titleTemplate:n,_flatMeta:r},t)}({description:M(()=>n.value?.description),keywords:M(()=>n.value?.keywords.join()),ogDescription:M(()=>n.value?.description),ogImage:M(()=>n.value?.images.filter(({url:e})=>e).map(({alt:e="",url:t})=>({alt:e,url:`${window.location.origin}/${t}`}))??[]),ogTitle:M(()=>n.value?.title),ogType:M(()=>n.value?.type),ogUrl:i,title:M(()=>n.value?.title)}),C(()=>n.value?.jsonld,async e=>{s.value=JSON.stringify(await e)||'{"@context":"https://schema.org"}'});const a={route:o,a:n,favicon:r,jsonld:s,ogUrl:i,get pages(){return R}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),[["render",function(e,t,o,n,r,s){const i=T("router-view");return L(),E(i,null,{default:A(({Component:e})=>[(L(),E(P(e),{id:n.pages[0]?.id},null,8,["id"]))]),_:1})}],["__file","App.vue"]]);let _n;const{pathname:Cn}=new URL(document.baseURI),xn=d(!0),jn=new Map,$n=J({history:G(Cn),routes:[],scrollBehavior:(e,t,o)=>_n?.(e,t,o)}),On=d(!0),Fn=M(()=>"/"===$n.currentRoute.value.path?N.value[$n.currentRoute.value.name]?.$children[0]:N.value[$n.currentRoute.value.name]),Sn=({id:e=U()})=>(jn.set(e,(()=>{let e,t;return{promise:new Promise((o,n)=>{e=o,t=n}),reject:t,resolve:e}})()),H(async()=>Z(`./pages/${e}.vue`,{parseOptions:{sourceMap:!1,templateParseOptions:{comments:!1,prefixIdentifiers:!0}},scriptOptions:{hoistStatic:!0,inlineTemplate:!0,isProd:!0,sourceMap:!1,templateOptions:{compilerOptions:{cacheHandlers:!0,comments:!1,hoistStatic:!0,mode:"module",prefixIdentifiers:!0,sourceMap:!1},isProd:!0,ssr:!1}}}))),Mn=({id:e}={})=>{e&&jn.get(e)?.resolve(void 0)};$n.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const Tn=I(kn),En={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};Tn.use(Ze());const Ln=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();D.push(t),await _(),R.value.forEach(({id:e,loc:t,path:n},r,s)=>{if(Object.defineProperties(s[r],{jsonld:En}),void 0!==n){const r=t?.replaceAll(" ","_").replace(/^\/?/,"/").replace(/\/?$/,"/");$n.addRoute({...r&&t?{alias:r}:{undefined:void 0},children:[{component:()=>o(()=>import("./PageView-HShiIheJ.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:e,path:""}],component:()=>o(()=>import("./RootView-BttejlEE.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:n.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),$n.addRoute({component:()=>o(()=>import("./NotFoundView-C3gmigCk.js"),__vite__mapDeps([4,2,1]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json");V.push(...await(e.ok?e:new Response("[]")).json()),ro.presets.push(a({customFetch:q,fonts:W(V)})),await c({defaults:ro,ready:async e=>{const{toggleObserver:t}=e;return(({extractAll:e,toggleObserver:t})=>{_n=async({hash:o,name:n})=>{if(n){xn.value=!0,t(!1);const[{promise:r}={}]=jn.values();await r,await Promise.all([...jn.values()].map(({promise:e})=>e)),await e(),t(!0);const s=On.value&&{behavior:"smooth",...o||Fn.value?.parent?.flat&&Fn.value.index?{el:o||`#${String(n)}`}:{left:0,top:0}};return xn.value=!1,On.value=!0,s}return!1}})(e),await Ln,Tn.provide("pages",function(e){if(!u(e))return x(e);const t=new Proxy({},{get:(t,o,n)=>j(Reflect.get(e.value,o,n)),set:(t,o,n)=>(u(e.value[o])&&!u(n)?e.value[o].value=n:e.value[o]=n,!0),deleteProperty:(t,o)=>Reflect.deleteProperty(e.value,o),has:(t,o)=>Reflect.has(e.value,o),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});return x(t)}(N)),Tn.use($n),await $n.isReady(),Tn.mount("#app"),t(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch(bt.error),bt.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.1.64");export{wn as _,tt as a,Ke as b,it as c,et as d,rt as e,Fn as f,xn as g,bt as h,Qe as i,Ge as j,Sn as m,Xe as n,jn as p,Mn as r,On as s,nt as t,st as u,at as w};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-C95OGfvv.js","./shared-aEZiy6lt.js","./unocss-Bk83BPCg.js","./RootView-tAj5_HOt.js","./NotFoundView-JMnb12L9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as e,w as t,_ as o,p as n,a as r,b as s,c as i,e as a,i as c}from"./unocss-Bk83BPCg.js";import{toValue as l,isRef as u,hasInjectionContext as p,inject as f,ref as d,watchEffect as h,getCurrentInstance as g,onBeforeUnmount as m,onDeactivated as y,onActivated as v,getCurrentScope as b,onScopeDispose as w,onMounted as k,nextTick as _,watch as C,reactive as x,unref as j,defineComponent as $,shallowRef as O,onUnmounted as F,h as S,computed as M,resolveComponent as T,createBlock as E,openBlock as L,withCtx as A,resolveDynamicComponent as P,defineAsyncComponent as H,createApp as I}from"vue";import{g as z,p as R,a as N,u as U,n as D,f as V,b as W,c as q}from"./shared-aEZiy6lt.js";import{useRoute as B,createRouter as J,createWebHistory as G}from"vue-router";import Z from"@vuebro/loader-sfc";function K(e,t={},o){for(const n in e){const r=e[n],s=o?`${o}:${n}`:n;"object"==typeof r&&null!==r?K(r,t,s):"function"==typeof r&&(t[s]=r)}return t}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Q={run:e=>e()},X=void 0!==console.createTask?console.createTask:()=>Q;function Y(e,t){const o=t.shift(),n=X(o);return e.reduce((e,o)=>e.then(()=>n.run(()=>o(...t))),Promise.resolve())}function ee(e,t){const o=t.shift(),n=X(o);return Promise.all(e.map(e=>n.run(()=>e(...t))))}function te(e,t){for(const o of[...e])o(t)}class oe{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,o={}){if(!e||"function"!=typeof t)return()=>{};const n=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!o.allowDeprecated){let e=r.message;e||(e=`${n} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let o,n=(...e)=>("function"==typeof o&&o(),o=void 0,n=void 0,t(...e));return o=this.hook(e,n),o}removeHook(e,t){if(this._hooks[e]){const o=this._hooks[e].indexOf(t);-1!==o&&this._hooks[e].splice(o,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const o=this._hooks[e]||[];delete this._hooks[e];for(const n of o)this.hook(e,n)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=K(e),o=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of o.splice(0,o.length))e()}}removeHooks(e){const t=K(e);for(const o in t)this.removeHook(o,t[o])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Y,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(ee,e,...t)}callHookWith(e,t,...o){const n=this._before||this._after?{name:t,args:o,context:{}}:void 0;this._before&&te(this._before,n);const r=e(t in this._hooks?[...this._hooks[t]]:[],o);return r instanceof Promise?r.finally(()=>{this._after&&n&&te(this._after,n)}):(this._after&&n&&te(this._after,n),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}const ne=new Set(["link","style","script","noscript"]),re=new Set(["title","titleTemplate","script","style","noscript"]),se=new Set(["base","meta","link","style","script","noscript"]),ie=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),ae=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),ce=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),le=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ue=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),pe=["name","property","http-equiv"],fe=new Set(["viewport","description","keywords","robots"]);function de(e){const t=e.split(":");return!!t.length&&ue.has(t[1])}function he(e){const{props:t,tag:o}=e;if(ae.has(o))return o;if("link"===o&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if("meta"===e.tag)for(const n of pe)if(void 0!==t[n]){const r=t[n],s=r.includes(":"),i=fe.has(r);return`${o}:${r}${!(s||i)&&e.key?`:key:${e.key}`:""}`}if(e.key)return`${o}:key:${e.key}`;if(t.id)return`${o}:id:${t.id}`;if(re.has(o)){const t=e.textContent||e.innerHTML;if(t)return`${o}:content:${t}`}}function ge(e){const t=e._h||e._d;if(t)return t;const o=e.textContent||e.innerHTML;return o||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join(",")}`}function me(e,t,o){let n;if("function"===typeof e&&(o&&("titleTemplate"===o||"o"===o[0]&&"n"===o[1])||(e=e())),t&&(n=t(o,e)),Array.isArray(n))return n.map(e=>me(e,t));if(n?.constructor===Object){const e={};for(const o of Object.keys(n))e[o]=me(n[o],t,o);return e}return n}function ye(e,t){return e.props=e.props||{},t?"templateParams"===e.tag?(e.props=t,e):(Object.entries(t).forEach(([o,n])=>{if(null===n)return void(e.props[o]=null);if("class"===o||"style"===o)return void(e.props[o]=function(e,t){const o="style"===e?new Map:new Set;function n(t){const n=t.trim();if(n)if("style"===e){const[e,...t]=n.split(":").map(e=>e.trim());e&&t.length&&o.set(e,t.join(":"))}else n.split(" ").filter(Boolean).forEach(e=>o.add(e))}return"string"==typeof t?"style"===e?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(e=>n(e)):t&&"object"==typeof t&&Object.entries(t).forEach(([t,r])=>{r&&"false"!==r&&("style"===e?o.set(t.trim(),r):n(t))}),o}(o,n));if(ce.has(o)){if(["textContent","innerHTML"].includes(o)&&"object"==typeof n){let r=t.type;if(t.type||(r="application/json"),!r?.endsWith("json")&&"speculationrules"!==r)return;t.type=r,e.props.type=r,e[o]=JSON.stringify(n)}else e[o]=n;return}const r=String(n),s=o.startsWith("data-");"true"===r||""===r?e.props[o]=!s||r:!n&&s&&"false"===r?e.props[o]="false":void 0!==n&&(e.props[o]=n)}),e):e}function ve(e,t){const o=ye({tag:e,props:{}},"object"==typeof t&&"function"!=typeof t?t:{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t});return o.key&&ne.has(o.tag)&&(o.props["data-hid"]=o._h=o.key),"script"===o.tag&&"object"==typeof o.innerHTML&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(e=>({...o,props:{...o.props,content:e}})):o}function be(e,t){if(!e)return[];"function"==typeof e&&(e=e());const o=(e,o)=>{for(let n=0;n<t.length;n++)o=t[n](e,o);return o};e=o(void 0,e);const n=[];return e=me(e,o),Object.entries(e||{}).forEach(([e,t])=>{if(void 0!==t)for(const o of Array.isArray(t)?t:[t])n.push(ve(e,o))}),n.flat()}const we=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,ke={base:-10,title:10},_e={critical:-8,high:-1,low:2},Ce={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}},xe=/@import/,je=e=>""===e||!0===e;function $e(e,t){if("number"==typeof t.tagPriority)return t.tagPriority;let o=100;const n=_e[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Ce;if(t.tag in ke)o=ke[t.tag];else if("meta"===t.tag){const e="content-security-policy"===t.props["http-equiv"]?"content-security-policy":t.props.charset?"charset":"viewport"===t.props.name?"viewport":null;e&&(o=Ce.meta[e])}else"link"===t.tag&&t.props.rel?o=r.link[t.props.rel]:"script"===t.tag?je(t.props.async)?o=r.script.async:!t.props.src||je(t.props.defer)||je(t.props.async)||"module"===t.props.type||t.props.type?.endsWith("json")?je(t.props.defer)&&t.props.src&&!je(t.props.async)&&(o=r.script.defer):o=r.script.sync:"style"===t.tag&&(o=t.innerHTML&&xe.test(t.innerHTML)?r.style.imported:r.style.sync);return(o||100)+n}function Oe(e,t){const o="function"==typeof t?t(e):t,n=o.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,o),e.hooks.addHooks(o.hooks||{}))}function Fe(e={}){const t=new oe;t.addHooks(e.hooks||{});const o=!e.document,n=new Map,r=new Map,s=new Set,i={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:o,entries:n,headEntries:()=>[...n.values()],use:e=>Oe(i,e),push(e,r){const a={...r||{}};delete a.head;const c=a._index??i._entryCount++,l={_i:c,input:e,options:a},u={_poll(e=!1){i.dirty=!0,!e&&s.add(c),t.callHook("entries:updated",i)},dispose(){n.delete(c)&&i.invalidate()},patch(e){(!a.mode||"server"===a.mode&&o||"client"===a.mode&&!o)&&(l.input=e,n.set(c,l),u._poll())}};return u.patch(e),u},async resolveTags(){const o={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",o);s.size;){const o=s.values().next().value;s.delete(o);const r=n.get(o);if(r){const o={tags:be(r.input,e.propResolvers||[]).map(e=>Object.assign(e,r.options)),entry:r};await t.callHook("entries:normalize",o),r._tags=o.tags.map((e,t)=>(e._w=$e(i,e),e._p=(r._i<<10)+t,e._d=he(e),e))}}let r=!1;o.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(we).reduce((e,t)=>{const o=String(t._d||t._p);if(!e.has(o))return e.set(o,t);const n=e.get(o);if("merge"===(t?.tagDuplicateStrategy||(le.has(t.tag)?"merge":null)||(t.key&&t.key===n.key?"merge":null))){const r={...n.props};Object.entries(t.props).forEach(([e,t])=>r[e]="style"===e?new Map([...n.props.style||new Map,...t]):"class"===e?new Set([...n.props.class||new Set,...t]):t),e.set(o,{...t,props:r})}else t._p>>10==n._p>>10&&"meta"===t.tag&&de(o)?(e.set(o,Object.assign([...Array.isArray(n)?n:[n],t],t)),r=!0):(t._w===n._w?t._p>n._p:t?._w<n?._w)&&e.set(o,t);return e},o.tagMap);const a=o.tagMap.get("title"),c=o.tagMap.get("titleTemplate");if(i._title=a?.textContent,c){const e=c?.textContent;if(i._titleTemplate=e,e){let t="function"==typeof e?e(a?.textContent):e;"string"!=typeof t||i.plugins.has("template-params")||(t=t.replace("%s",a?.textContent||"")),a?null===t?o.tagMap.delete("title"):o.tagMap.set("title",{...a,textContent:t}):(c.tag="title",c.textContent=t)}}o.tags=Array.from(o.tagMap.values()),r&&(o.tags=o.tags.flat().sort(we)),await t.callHook("tags:beforeResolve",o),await t.callHook("tags:resolve",o),await t.callHook("tags:afterResolve",o);const l=[];for(const e of o.tags){const{innerHTML:t,tag:o,props:n}=e;if(ie.has(o)&&((0!==Object.keys(n).length||e.innerHTML||e.textContent)&&("meta"!==o||n.content||n["http-equiv"]||n.charset))){if("script"===o&&t){if(n.type?.endsWith("json")){const o="string"==typeof t?t:JSON.stringify(t);e.innerHTML=o.replace(/</g,"\\u003C")}else"string"==typeof t&&(e.innerHTML=t.replace(new RegExp(`</${o}`,"g"),`<\\/${o}`));e._d=he(e)}l.push(e)}}return l},invalidate(){for(const e of n.values())s.add(e._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(e=>Oe(i,e)),i.hooks.callHook("init",i),e.init?.forEach(e=>e&&i.push(e)),i}async function Se(e,t={}){const o=t.document||e.resolvedOptions.document;if(!o||!e.dirty)return;const n={shouldRender:!0,tags:[]};return await e.hooks.callHook("dom:beforeRender",n),n.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise(async t=>{const n=new Map,r=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{const t=n.get(e._d)||0,o={tag:e,id:(t?`${e._d}:${t}`:e._d)||ge(e),shouldRender:!0};return e._d&&de(e._d)&&n.set(e._d,t+1),o}))})});let s=e._dom;if(!s){s={title:o.title,elMap:(new Map).set("htmlAttrs",o.documentElement).set("bodyAttrs",o.body)};for(const e of["body","head"]){const t=o[e]?.children;for(const e of t){const t=e.tagName.toLowerCase();if(!se.has(t))continue;const o=ye({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,o)=>(t[o]=e.getAttribute(o),t),{})||{}});if(o.key=e.getAttribute("data-hid")||void 0,o._d=he(o)||ge(o),s.elMap.has(o._d)){let t=1,n=o._d;for(;s.elMap.has(n);)n=`${o._d}:${t++}`;s.elMap.set(n,e)}else s.elMap.set(o._d,e)}}}function i(e,t,o){const n=`${e}:${t}`;s.sideEffects[n]=o,delete s.pendingSideEffects[n]}function a({id:e,$el:t,tag:n}){const r=n.tag.endsWith("Attrs");s.elMap.set(e,t),r||(n.textContent&&n.textContent!==t.textContent&&(t.textContent=n.textContent),n.innerHTML&&n.innerHTML!==t.innerHTML&&(t.innerHTML=n.innerHTML),i(e,"el",()=>{t?.remove(),s.elMap.delete(e)}));for(const s in n.props){if(!Object.prototype.hasOwnProperty.call(n.props,s))continue;const a=n.props[s];if(s.startsWith("on")&&"function"==typeof a){const e=t?.dataset;if(e&&e[`${s}fired`]){const e=s.slice(0,-5);a.call(t,new Event(e.substring(2)))}""!==t.getAttribute(`data-${s}`)&&(("bodyAttrs"===n.tag?o.defaultView:t).addEventListener(s.substring(2),a.bind(t)),t.setAttribute(`data-${s}`,""));continue}const c=`attr:${s}`;if("class"===s){if(!a)continue;for(const o of a)r&&i(e,`${c}:${o}`,()=>t.classList.remove(o)),!t.classList.contains(o)&&t.classList.add(o)}else if("style"===s){if(!a)continue;for(const[o,n]of a)i(e,`${c}:${o}`,()=>{t.style.removeProperty(o)}),t.style.setProperty(o,n)}else!1!==a&&null!==a&&(t.getAttribute(s)!==a&&t.setAttribute(s,!0===a?"":String(a)),r&&i(e,c,()=>t.removeAttribute(s)))}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};const c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await r;for(const e of u){const{tag:t,shouldRender:n,id:r}=e;n&&("title"!==t.tag?(e.$el=e.$el||s.elMap.get(r),e.$el?a(e):se.has(t.tag)&&c.push(e)):(o.title=t.textContent,i("title","",()=>o.title=s.title)))}for(const e of c){const t=e.tag.tagPosition||"head";e.$el=o.createElement(e.tag.tag),a(e),l[t]=l[t]||o.createDocumentFragment(),l[t].appendChild(e.$el)}for(const p of u)await e.hooks.callHook("dom:renderTag",p,o,i);l.head&&o.head.appendChild(l.head),l.bodyOpen&&o.body.insertBefore(l.bodyOpen,o.body.firstChild),l.bodyClose&&o.body.appendChild(l.bodyClose);for(const e in s.pendingSideEffects)s.pendingSideEffects[e]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise):void 0}function Me(e,t){let o=0;return()=>{const n=++o;t(()=>{o===n&&e()})}}const Te={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"])},Ee={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"},Le={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Ae(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>"seconds"===e?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>"boolean"==typeof t?Ae(e):`${Ae(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Ae(e)} ${t}`}},charset:{}};function Ae(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),o=t.indexOf("-");return-1===o?t:Te.META.has(t.slice(0,o))||Te.OG.has(t.slice(0,o))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Pe(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>"false"!==String(t)&&e))}function He(e){return Array.isArray(e)?e.map(He):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[Ae(e),He(t)])):e}function Ie(e,t={}){const{entrySeparator:o="",keyValueSeparator:n="",wrapValue:r,resolve:s}=t;return Object.entries(e).map(([e,o])=>{if(s){const t=s({key:e,value:o});if(void 0!==t)return t}const i="object"==typeof o?Ie(o,t):"number"==typeof o?o.toString():"string"==typeof o&&r?`${r}${o.replace(new RegExp(r,"g"),`\\${r}`)}${r}`:o;return`${e}${n}${i}`}).join(o)}function ze(e,t){const o=Pe(t),n=Ae(e),r=Re(n);if(!ue.has(n))return[{[r]:n,...o}];return Ue(Object.fromEntries(Object.entries(o).map(([t,o])=>[`${e}${"url"===t?"":`${t[0].toUpperCase()}${t.slice(1)}`}`,o]))||{}).sort((e,t)=>(e[r]?.length||0)-(t[r]?.length||0))}function Re(e){if("http-equiv"===Le[e]?.metaKey||Te.HTTP_EQUIV.has(e))return"http-equiv";const t=Ae(e),o=t.indexOf(":");return-1===o?"name":Te.OG.has(t.slice(0,o))?"property":"name"}function Ne(e,t){return"refresh"===t?`${e.seconds};url=${e.url}`:Ie(He(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?t:void 0,...Le[t]?.unpack})}function Ue(e){const t=[],o={};for(const[r,s]of Object.entries(e))if(Array.isArray(s)){if("themeColor"===r){s.forEach(e=>{"object"==typeof e&&null!==e&&t.push({name:"theme-color",...e})});continue}for(const e of s)if("object"==typeof e&&null!==e){const o=[],n=[];for(const[t,s]of Object.entries(e)){const e=`${r}${"url"===t?"":`:${t}`}`,i=Ue({[e]:s});("url"===t?o:n).push(...i)}t.push(...o,...n)}else t.push(..."string"==typeof e?Ue({[r]:e}):ze(r,e))}else if("object"==typeof s&&s)if(Te.MEDIA.has(r)){const e=r.startsWith("twitter")?"twitter":"og",o=r.replace(/^(og|twitter)/,"").toLowerCase(),n="twitter"===e?"name":"property";s.url&&t.push({[n]:`${e}:${o}`,content:s.url}),s.secureUrl&&t.push({[n]:`${e}:${o}:secure_url`,content:s.secureUrl});for(const[r,i]of Object.entries(s))"url"!==r&&"secureUrl"!==r&&t.push({[n]:`${e}:${o}:${r}`,content:i})}else ue.has(Ae(r))?t.push(...ze(r,s)):o[r]=Pe(s);else o[r]=s;const n=Object.entries(o).map(([e,t])=>{if("charset"===e)return{charset:null===t?"_null":t};const o=Re(e),n=function(e){return Ee[e]||Ae(e)}(e),r=null===t?"_null":"object"==typeof t?Ne(t,e):"number"==typeof t?t.toString():t;return"http-equiv"===o?{"http-equiv":n,content:r}:{[o]:n,content:r}});return[...t,...n].map(e=>"content"in e&&"_null"===e.content?{...e,content:null}:e)}function De(e){return e}const Ve=De({key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(e=>"_flatMeta"!==e.tag?e:(t.push(Ue(e.props).map(t=>({...e,tag:"meta",props:t}))),!1)).filter(Boolean).concat(...t)}}}),We=(e,t)=>u(t)?l(t):t,qe="usehead";function Be(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(qe,e)}}.install}function Je(){if(p()){const e=f(qe);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 Ge(e,t={}){const o=t.head||Je();return o.ssr?o.push(e||{},t):function(e,t,o={}){const n=d(!1);let r;h(()=>{const s=n.value?{}:me(t,We);r?r.patch(s):r=e.push(s,o)});g()&&(m(()=>{r.dispose()}),y(()=>{n.value=!0}),v(()=>{n.value=!1}));return r}(o,e,t)}function Ze(e={}){const t=function(e={}){const t=e.domOptions?.render||Se;e.document=e.document||("undefined"!=typeof window?document:void 0);const o=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Fe({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[!!o&&JSON.parse(o),...e.init||[]]})}({domOptions:{render:Me(()=>Se(t),e=>setTimeout(e,0))},...e});return t.install=Be(t),t}function Ke(e){return!!b()&&(w(e),!0)}const Qe="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const Xe=e=>null!=e,Ye=Object.prototype.toString,et=e=>"[object Object]"===Ye.call(e),tt=()=>{};function ot(e,t){return function(...o){return new Promise((n,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(n).catch(r)})}}function nt(e){return Array.isArray(e)?e:[e]}function rt(e,t=200,o={}){return ot(function(e,t={}){let o,n,r=tt;const s=e=>{clearTimeout(e),r(),r=tt};let i;return a=>{const c=l(e),u=l(t.maxWait);return o&&s(o),c<=0||void 0!==u&&u<=0?(n&&(s(n),n=void 0),Promise.resolve(a())):new Promise((e,l)=>{r=t.rejectOnCancel?l:e,i=a,u&&!n&&(n=setTimeout(()=>{o&&s(o),n=void 0,e(i())},u)),o=setTimeout(()=>{n&&s(n),n=void 0,e(a())},c)})}}(t,o),e)}function st(e,t=200,o=!1,n=!0,r=!1){return ot(function(...e){let t,o,n,r,s,i,a=0,c=!0,p=tt;u(e[0])||"object"!=typeof e[0]?[n,r=!0,s=!0,i=!1]=e:({delay:n,trailing:r=!0,leading:s=!0,rejectOnCancel:i=!1}=e[0]);const f=()=>{t&&(clearTimeout(t),t=void 0,p(),p=tt)};return e=>{const u=l(n),d=Date.now()-a,h=()=>o=e();return f(),u<=0?(a=Date.now(),h()):(d>u&&(s||!c)?(a=Date.now(),h()):r&&(o=new Promise((e,o)=>{p=i?o:e,t=setTimeout(()=>{a=Date.now(),c=!0,e(h()),f()},Math.max(0,u-d))})),s||t||(t=setTimeout(()=>c=!0,u)),c=!1,o)}}(t,o,n,r),e)}function it(e,t=!0,o){g()?k(e,o):t?e():_(e)}function at(e,t,o){return C(e,t,{...o,immediate:!0})}const ct={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},lt={silent:{level:-1},fatal:{level:ct.fatal},error:{level:ct.error},warn:{level:ct.warn},log:{level:ct.log},info:{level:ct.info},success:{level:ct.success},fail:{level:ct.fail},ready:{level:ct.info},start:{level:ct.info},box:{level:ct.info},debug:{level:ct.debug},trace:{level:ct.trace},verbose:{level:ct.verbose}};function ut(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function pt(e,t,o=".",n){if(!ut(t))return pt(e,{},o);const r=Object.assign({},t);for(const s in e){if("__proto__"===s||"constructor"===s)continue;const t=e[s];null!=t&&(Array.isArray(t)&&Array.isArray(r[s])?r[s]=[...t,...r[s]]:ut(t)&&ut(r[s])?r[s]=pt(t,r[s],(o?`${o}.`:"")+s.toString()):r[s]=t)}return r}const ft=(...e)=>e.reduce((e,t)=>pt(e,t,""),{});function dt(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let ht=!1;const gt=[];class mt{options;_lastLog;_mockFn;constructor(e={}){const t=e.types||lt;this.options=ft({...e,defaults:{...e.defaults},level:yt(e.level,t),reporters:[...e.reporters||[]]},{types:lt,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const o in t){const e={type:o,...this.options.defaults,...t[o]};this[o]=this._wrapLogFn(e),this[o].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=yt(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new mt({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(-1!==t)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ht=!0}resumeLogs(){ht=!1;const e=gt.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const o in this.options.types)this[o]=t(o,this.options.types[o])||this[o],this[o].raw=this[o]}_wrapLogFn(e,t){return(...o)=>{if(!ht)return this._logFn(e,o,t);gt.push([this,e,o,t])}}_logFn(e,t,o){if((e.level||0)>this.level)return!1;const n={date:new Date,args:[],...e,level:yt(e.level,this.options.types)};!o&&1===t.length&&dt(t[0])?Object.assign(n,t[0]):n.args=[...t],n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split("\n")),n.args.push("\n"+n.additional.join("\n")),delete n.additional),n.type="string"==typeof n.type?n.type.toLowerCase():"log",n.tag="string"==typeof n.tag?n.tag:"";const r=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=n,this._log(n))};clearTimeout(this._lastLog.timeout);const s=this._lastLog.time&&n.date?n.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=n.date,s<this.options.throttle)try{const e=JSON.stringify([n.type,n.tag,n.args]),t=this._lastLog.serialized===e;if(this._lastLog.serialized=e,t&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin))return void(this._lastLog.timeout=setTimeout(r,this.options.throttle))}catch{}r(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function yt(e,t={},o=3){return void 0===e?o:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:o}mt.prototype.add=mt.prototype.addReporter,mt.prototype.remove=mt.prototype.removeReporter,mt.prototype.clear=mt.prototype.removeReporter,mt.prototype.withScope=mt.prototype.withTag,mt.prototype.mock=mt.prototype.mockTypes,mt.prototype.pause=mt.prototype.pauseLogs,mt.prototype.resume=mt.prototype.resumeLogs;class vt{options;defaultColor;levelColorMap;typeColorMap;constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),o="log"===e.type?"":e.type,n=e.tag||"",r=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,s=`%c${[n,o].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${s}%c ${e.args[0]}`,r,"",...e.args.slice(1)):t(s,r,...e.args)}}const bt=function(e={}){return function(e={}){return new mt(e)}({reporters:e.reporters||[new vt({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}(),wt=Object.freeze({left:0,top:0,width:16,height:16}),kt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_t=Object.freeze({...wt,...kt}),Ct=Object.freeze({..._t,body:"",hidden:!1}),xt=Object.freeze({width:null,height:null}),jt=Object.freeze({...xt,...kt});function $t(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}(e,t);for(const n in Ct)n in kt?n in e&&!(n in o)&&(o[n]=kt[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function Ot(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let s={};function i(e){s=$t(n[e]||r[e],s)}return i(t),o.forEach(i),$t(e,s)}function Ft(e,t){if(e.icons[t])return Ot(e,t,[]);const o=function(e,t){const o=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(o).concat(Object.keys(n))).forEach(function e(t){if(o[t])return r[t]=[];if(!(t in r)){r[t]=null;const o=n[t]&&n[t].parent,s=o&&e(o);s&&(r[t]=[o].concat(s))}return r[t]}),r}(e,[t])[t];return o?Ot(e,t,o):null}const St=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Mt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Tt(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const n=e.split(St);if(null===n||!n.length)return e;const r=[];let s=n.shift(),i=Mt.test(s);for(;;){if(i){const e=parseFloat(s);isNaN(e)?r.push(s):r.push(Math.ceil(e*t*o)/o)}else r.push(s);if(s=n.shift(),void 0===s)return r.join("");i=!i}}const Et=e=>"unset"===e||"undefined"===e||"none"===e;function Lt(e,t){const o={..._t,...e},n={...jt,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(e=>{const t=[],o=e.hFlip,n=e.vFlip;let i,a=e.rotate;switch(o?n?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):n&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:i=r.height/2+r.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:i=r.width/2+r.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}a%2==1&&(r.left!==r.top&&(i=r.left,r.left=r.top,r.top=i),r.width!==r.height&&(i=r.width,r.width=r.height,r.height=i)),t.length&&(s=function(e,t,o){const n=function(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===r||-1===s)break;const i=e.indexOf(">",s);if(-1===i)break;o+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:o,content:e}}(e);return r=n.defs,s=t+n.content+o,r?"<defs>"+r+"</defs>"+s:s;var r,s}(s,'<g transform="'+t.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=r.width,l=r.height;let u,p;null===i?(p=null===a?"1em":"auto"===a?l:a,u=Tt(p,c/l)):(u="auto"===i?c:i,p=null===a?Tt(u,l/c):"auto"===a?l:a);const f={},d=(e,t)=>{Et(t)||(f[e]=t.toString())};d("width",u),d("height",p);const h=[r.left,r.top,c,l];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:s}}function At(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" ')),function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(t)}const Pt=/\swidth\s*=\s*["']([\w.]+)["']/,Ht=/\sheight\s*=\s*["']([\w.]+)["']/,It=/<svg\s+/;async function zt(e,t,o,n,r,s){const{scale:i,addXmlNs:a=!1}=n??{},{additionalProps:c={},iconCustomizer:l}=n?.customizations??{},u=await(r?.())??{};await(l?.(t,o,u)),Object.keys(c).forEach(e=>{const t=c[e];null!=t&&(u[e]=t)}),s?.(u);const[p,f]=function(e,t,o){const n=e.slice(0,e.indexOf(">")),r=(e,r)=>{const s=r.exec(n),i=null!=s,a=t[e];return a||Et(a)||("number"==typeof o?o>0&&(t[e]=Tt(s?.[1]??"1em",o)):s&&(t[e]=s[1])),i};return[r("width",Pt),r("height",Ht)]}(e,u,i);a&&(e.includes("xmlns=")||u.xmlns||(u.xmlns="http://www.w3.org/2000/svg"),e.includes("xmlns:xlink=")||!e.includes("xlink:")||u["xmlns:xlink"]||(u["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const d=Object.keys(u).map(e=>"width"===e&&p||"height"===e&&f?null:`${e}="${u[e]}"`).filter(e=>null!=e);if(d.length&&(e=e.replace(It,`<svg ${d.join(" ")} `)),n){const{defaultStyle:t,defaultClass:o}=n;o&&!e.includes("class=")&&(e=e.replace(It,`<svg class="${o}" `)),t&&!e.includes("style=")&&(e=e.replace(It,`<svg style="${t}" `))}const h=n?.usedProps;return h&&(Object.keys(c).forEach(e=>{const t=u[e];null!=t&&(h[e]=t)}),void 0!==u.width&&null!==u.width&&(h.width=u.width),void 0!==u.height&&null!==u.height&&(h.height=u.height)),e}var Rt,Nt,Ut,Dt,Vt,Wt={exports:{}};function qt(){if(Nt)return Rt;Nt=1;var e=1e3,t=60*e,o=60*t,n=24*o,r=7*n,s=365.25*n;function i(e,t,o,n){var r=t>=1.5*o;return Math.round(e/o)+" "+n+(r?"s":"")}return Rt=function(a,c){c=c||{};var l=typeof a;if("string"===l&&a.length>0)return function(i){if((i=String(i)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(a);if("number"===l&&isFinite(a))return c.long?function(r){var s=Math.abs(r);if(s>=n)return i(r,s,n,"day");if(s>=o)return i(r,s,o,"hour");if(s>=t)return i(r,s,t,"minute");if(s>=e)return i(r,s,e,"second");return r+" ms"}(a):function(r){var s=Math.abs(r);if(s>=n)return Math.round(r/n)+"d";if(s>=o)return Math.round(r/o)+"h";if(s>=t)return Math.round(r/t)+"m";if(s>=e)return Math.round(r/e)+"s";return r+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}}const Bt=z((Vt||(Vt=1,function(e,t){var o={};t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))}),t.splice(r,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(o){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=o.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!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"],t.log=console.debug||console.log||(()=>{}),e.exports=(Dt?Ut:(Dt=1,Ut=function(e){function t(e){let n,r,s,i=null;function a(...e){if(!a.enabled)return;const o=a,r=Number(new Date),s=r-(n||r);o.diff=s,o.prev=n,o.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;const s=t.formatters[r];if("function"==typeof s){const t=e[i];n=s.call(o,t),e.splice(i,1),i--}return n}),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}function n(e,t){let o=0,n=0,r=-1,s=0;for(;o<e.length;)if(n<t.length&&(t[n]===e[o]||"*"===t[n]))"*"===t[n]?(r=n,s=o,n++):(o++,n++);else{if(-1===r)return!1;n=r+1,s++,o=s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const n of o)"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(const o of t.skips)if(n(e,o))return!1;for(const o of t.names)if(n(e,o))return!0;return!1},t.humanize=qt(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(o=>{t[o]=e[o]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t<e.length;t++)o=(o<<5)-o+e.charCodeAt(t),o|=0;return t.colors[Math.abs(o)%t.colors.length]},t.enable(t.load()),t}))(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(Wt,Wt.exports)),Wt.exports)),Jt=Bt("@iconify-loader:custom");async function Gt(e,t,o,n){let r;Jt(`${t}:${o}`);try{if("function"==typeof e)r=await e(o);else{const t=e[o];r="function"==typeof t?await t():t}}catch(i){return void console.warn(`Failed to load custom icon "${o}" in "${t}":`,i)}if(r){const e=r.indexOf("<svg");e>0&&(r=r.slice(e));const{transform:i}=n?.customizations??{};return r="function"==typeof i?await i(r,t,o):r,r.startsWith("<svg")?await zt(!0===n?.customizations?.trimCustomSvg?(s=r,s.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()):r,t,o,n,void 0):(console.warn(`Custom icon "${o}" in "${t}" is not a valid SVG`),r)}var s}const Zt=Bt("@iconify-loader:icon");async function Kt(e,t,o,n){let r;const{customize:s}=n?.customizations??{};for(const i of o)if(r=Ft(e,i),r){Zt(`${t}:${i}`);let e={...jt};"function"==typeof s&&(r=Object.assign({},r),e=s(e,r,`${t}:${i}`)??e);const{attributes:{width:o,height:a,...c},body:l}=Lt(r,e),u=n?.scale;return await zt(`<svg >${l}</svg>`,t,i,n,()=>({...c}),e=>{const t=(t,o)=>{const n=e[t];let r;if(!Et(n)){if(n)return;"number"==typeof u?u&&(r=Tt(o??"1em",u)):r=o}r?e[t]=r:delete e[t]};t("width",o),t("height",a)})}}const Qt=async(e,t,o)=>{const n=o?.customCollections?.[e];if(n){if("function"!=typeof n)return await Gt(n,e,t,o);{let s;try{s=await n(t)}catch(r){return void console.warn(`Failed to load custom icon "${t}" in "${e}":`,r)}if(s){if("string"==typeof s)return await Gt(()=>s,e,t,o);if("icons"in s){const n=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Kt(s,e,n,o)}}}}};var Xt={};const Yt=["academicons","akar-icons","ant-design","arcticons","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","fa7-brands","fa7-regular","fa7-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","roentgen","si-glyph","si","sidekickicons","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","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];function eo(e,t,o=new Map){return async(n,r,s)=>{let i=await Qt(n,r,s);if(i)return i;const a=await function(n){if(Yt.includes(n))return o.has(n)||o.set(n,e(`${t}@iconify-json/${n}/icons.json`)),o.get(n)}(n);if(a){const e=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];i=await Kt(a,n,e,s)}return i}}async function to(e,t,o={},n=[]){let r,s="",i="";const a=new Set([...Yt,...n,...Object.keys(o.customCollections||{})]);if(e.includes(":")){if([s,i]=e.split(":"),!a.has(s))return;r=await t(s,i,o)}else{const n=e.split(/-/g);for(let e=3;e>=1&&(s=n.slice(0,e).join("-"),!a.has(s)||(i=n.slice(e).join("-"),r=await t(s,i,o),!r));e--);}if(r)return{collection:s,name:i,svg:r}}const oo=(no=async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?eo(t,n):n?await async function(e){const{$fetch:t}=await o(async()=>{const{$fetch:e}=await import("./unocss-Bk83BPCg.js").then(e=>e.f);return{$fetch:e}},[],import.meta.url);return eo(t,e)}(n):Qt},e((e={})=>{const{scale:o=1,mode:n="auto",prefix:r="i-",warn:s=!1,iconifyCollectionsNames:i,collections:a,extraProperties:c={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:p,layer:f="icons",unit:d,processor:h}=e,g=function(){const e="undefined"!=typeof process&&process.stdout;return{isNode:e,isVSCode:e&&!!Xt.VSCODE_CWD,isESLint:e&&!!Xt.ESLINT}}(),m={addXmlNs:!0,scale:o,customCollections:a,autoInstall:u,cwd:p,warn:void 0,customizations:{...l,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(e,t,n){await(l.iconCustomizer?.(e,t,n)),d&&(n.width||(n.width=`${o}${d}`),n.height||(n.height=`${o}${d}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},api:{encodeSvgForCss:At,parseIconWithLoader:to},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async o=>{let[r,a,c=n]=o;y=y||await no(e);const l={},u=await to(a,y,{...m,usedProps:l},i);if(!u)return void(s&&!g.isESLint&&t(`failed to load icon "${r}"`));let p;const f=`url("data:image/svg+xml;utf8,${At(u.svg)}")`;return"auto"===c&&(c=u.svg.includes("currentColor")?"mask":"bg"),p="mask"===c?{"--un-icon":f,"-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",...l}:{background:`${f} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...l},h?.(p,{...u,icon:u.name,mode:c}),p},{layer:f,prefix:r}]]}}));var no;const ro={presets:[n({preflights:{reset:!0}}),r(),oo({cdn:"https://cdn.jsdelivr.net/npm/"}),s(),i()]},so=/^[a-z0-9]+(-[a-z0-9]+)*$/,io=(e,t,o,n="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),o=r.pop(),s={provider:r.length>0?r[0]:n,prefix:o,name:e};return t&&!ao(s)?null:s}const s=r[0],i=s.split("-");if(i.length>1){const e={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!ao(e)?null:e}if(o&&""===n){const e={provider:n,prefix:"",name:s};return t&&!ao(e,o)?null:e}return null},ao=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),co=Object.freeze({left:0,top:0,width:16,height:16}),lo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),uo=Object.freeze({...co,...lo}),po=Object.freeze({...uo,body:"",hidden:!1});function fo(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}(e,t);for(const n in po)n in lo?n in e&&!(n in o)&&(o[n]=lo[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function ho(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let s={};function i(e){s=fo(n[e]||r[e],s)}return i(t),o.forEach(i),fo(e,s)}function go(e,t){const o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),o.push(e)});const n=function(e){const t=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);return Object.keys(t).concat(Object.keys(o)).forEach(function e(r){if(t[r])return n[r]=[];if(!(r in n)){n[r]=null;const t=o[r]&&o[r].parent,s=t&&e(t);s&&(n[r]=[t].concat(s))}return n[r]}),n}(e);for(const r in n){const s=n[r];s&&(t(r,ho(e,r,s)),o.push(r))}return o}const mo={provider:"",aliases:{},not_found:{},...co};function yo(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function vo(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!yo(e,mo))return null;const o=t.icons;for(const r in o){const e=o[r];if(!r||"string"!=typeof e.body||!yo(e,po))return null}const n=t.aliases||Object.create(null);for(const r in n){const e=n[r],t=e.parent;if(!r||"string"!=typeof t||!o[t]&&!n[t]||!yo(e,po))return null}return t}const bo=Object.create(null);function wo(e,t){const o=bo[e]||(bo[e]=Object.create(null));return o[t]||(o[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ko(e,t){return vo(t)?go(t,(t,o)=>{o?e.icons[t]=o:e.missing.add(t)}):[]}let _o=!1;function Co(e){return"boolean"==typeof e&&(_o=e),_o}function xo(e){const t="string"==typeof e?io(e,!0,_o):e;if(t){const e=wo(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function jo(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),_o&&!t&&!e.prefix){let t=!1;return vo(e)&&(e.prefix="",go(e,(e,o)=>{(function(e,t){const o=io(e,!0,_o);if(!o)return!1;const n=wo(o.provider,o.prefix);return t?function(e,t,o){try{if("string"==typeof o.body)return e.icons[t]={...o},!0}catch(n){}return!1}(n,o.name,t):(n.missing.add(o.name),!0)})(e,o)&&(t=!0)})),t}const o=e.prefix;if(!ao({prefix:o,name:"a"}))return!1;return!!ko(wo(t,o),e)}const $o=Object.freeze({width:null,height:null}),Oo=Object.freeze({...$o,...lo}),Fo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,So=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Mo(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const n=e.split(Fo);if(null===n||!n.length)return e;const r=[];let s=n.shift(),i=So.test(s);for(;;){if(i){const e=parseFloat(s);isNaN(e)?r.push(s):r.push(Math.ceil(e*t*o)/o)}else r.push(s);if(s=n.shift(),void 0===s)return r.join("");i=!i}}const To=/\sid="(\S+)"/g,Eo="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Lo=0;const Ao=Object.create(null);function Po(e){return Ao[e]||Ao[""]}function Ho(e){let t;if("string"==typeof e.resources)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:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Io=Object.create(null),zo=["https://api.simplesvg.com","https://api.unisvg.com"],Ro=[];for(;zo.length>0;)1===zo.length||Math.random()>.5?Ro.push(zo.shift()):Ro.push(zo.pop());function No(e,t){const o=Ho(t);return null!==o&&(Io[e]=o,!0)}function Uo(e){return Io[e]}Io[""]=Ho({resources:["https://api.iconify.design"].concat(Ro)});let Do=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const Vo={prepare:(e,t,o)=>{const n=[],r=function(e,t){const o=Uo(e);if(!o)return 0;let n;if(o.maxURL){let e=0;o.resources.forEach(t=>{const o=t;e=Math.max(e,o.length)});const r=t+".json?icons=";n=o.maxURL-e-o.path.length-r.length}else n=0;return n}(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return o.forEach((o,c)=>{a+=o.length+1,a>=r&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=o.length),i.icons.push(o)}),n.push(i),n},send:(e,t,o)=>{if(!Do)return void o("abort",424);let n=function(e){if("string"==typeof e){const t=Uo(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,o=t.icons.join(",");n+=e+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void o("abort",400)}let r=503;Do(e+n).then(e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout(()=>{o(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{o("success",e)}):setTimeout(()=>{404===e?o("abort",e):o("next",r)})}).catch(()=>{o("next",r)})}};function Wo(e,t){e.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(e=>e.id!==t))})}let qo=0;var Bo={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Jo(e,t,o,n){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let t=e.resources.slice(0);for(i=[];t.length>1;){const e=Math.floor(Math.random()*t.length);i.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}i=i.concat(t)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c,l="pending",u=0,p=null,f=[],d=[];function h(){p&&(clearTimeout(p),p=null)}function g(){"pending"===l&&(l="aborted"),h(),f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function m(e,t){t&&(d=[]),"function"==typeof e&&d.push(e)}function y(){l="failed",d.forEach(e=>{e(void 0,c)})}function v(){f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function b(){if("pending"!==l)return;h();const n=i.shift();if(void 0===n)return f.length?void(p=setTimeout(()=>{h(),"pending"===l&&(v(),y())},e.timeout)):void y();const r={status:"pending",resource:n,callback:(t,o)=>{!function(t,o,n){const r="success"!==o;switch(f=f.filter(e=>e!==t),l){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===o)return c=n,void y();if(r)return c=n,void(f.length||(i.length?b():y()));if(h(),v(),!e.random){const o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}l="completed",d.forEach(e=>{e(n)})}(r,t,o)}};f.push(r),u++,p=setTimeout(b,e.rotate),o(n,t,r.callback)}return"function"==typeof n&&d.push(n),setTimeout(b),function(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:m,abort:g}}}function Go(e){const t={...Bo,...e};let o=[];function n(){o=o.filter(e=>"pending"===e().status)}return{query:function(e,r,s){const i=Jo(t,e,r,(e,t)=>{n(),s&&s(e,t)});return o.push(i),i},find:function(e){return o.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}function Zo(){}const Ko=Object.create(null);function Qo(e,t,o){let n,r;if("string"==typeof e){const t=Po(e);if(!t)return o(void 0,424),Zo;r=t.send;const s=function(e){if(!Ko[e]){const t=Uo(e);if(!t)return;const o={config:t,redundancy:Go(t)};Ko[e]=o}return Ko[e]}(e);s&&(n=s.redundancy)}else{const t=Ho(e);if(t){n=Go(t);const o=Po(e.resources?e.resources[0]:"");o&&(r=o.send)}}return n&&r?n.query(t,r,o)().abort:(o(void 0,424),Zo)}function Xo(){}function Yo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const n=e.provider,r=e.prefix;t.forEach(t=>{const s=t.icons,i=s.pending.length;s.pending=s.pending.filter(t=>{if(t.prefix!==r)return!0;const i=t.name;if(e.icons[i])s.loaded.push({provider:n,prefix:r,name:i});else{if(!e.missing.has(i))return o=!0,!0;s.missing.push({provider:n,prefix:r,name:i})}return!1}),s.pending.length!==i&&(o||Wo([e],t.id),t.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),t.abort))})}))}(e)}))}function en(e,t,o){function n(){const o=e.pendingIcons;t.forEach(t=>{o&&o.delete(t),e.icons[t]||e.missing.add(t)})}if(o&&"object"==typeof o)try{if(!ko(e,o).length)return void n()}catch(r){console.error(r)}n(),Yo(e)}function tn(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function on(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:t,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const r=e.loadIcon;if(e.loadIcons&&(n.length>1||!r))return void tn(e.loadIcons(n,o,t),t=>{en(e,n,t)});if(r)return void n.forEach(n=>{tn(r(n,o,t),t=>{en(e,[n],t?{prefix:o,icons:{[n]:t}}:null)})});const{valid:s,invalid:i}=function(e){const t=[],o=[];return e.forEach(e=>{(e.match(so)?t:o).push(e)}),{valid:t,invalid:o}}(n);if(i.length&&en(e,i,null),!s.length)return;const a=o.match(so)?Po(t):null;if(!a)return void en(e,s,null);a.prepare(t,o,s).forEach(o=>{Qo(t,o,t=>{en(e,o.icons,t)})})}))}const nn=(e,t)=>{const o=function(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let n={provider:"",prefix:"",name:""};return e.forEach(e=>{if(n.name===e.name&&n.prefix===e.prefix&&n.provider===e.provider)return;n=e;const r=e.provider,s=e.prefix,i=e.name,a=o[r]||(o[r]=Object.create(null)),c=a[s]||(a[s]=wo(r,s));let l;l=i in c.icons?t.loaded:""===s||c.missing.has(i)?t.missing:t.pending;const u={provider:r,prefix:s,name:i};l.push(u)}),t}(function(e,t=!0,o=!1){const n=[];return e.forEach(e=>{const r="string"==typeof e?io(e,t,o):e;r&&n.push(r)}),n}(e,!0,Co()));if(!o.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(o.loaded,o.missing,o.pending,Xo)}),()=>{e=!1}}const n=Object.create(null),r=[];let s,i;return o.pending.forEach(e=>{const{provider:t,prefix:o}=e;if(o===i&&t===s)return;s=t,i=o,r.push(wo(t,o));const a=n[t]||(n[t]=Object.create(null));a[o]||(a[o]=[])}),o.pending.forEach(e=>{const{provider:t,prefix:o,name:r}=e,s=wo(t,o),i=s.pendingIcons||(s.pendingIcons=new Set);i.has(r)||(i.add(r),n[t][o].push(r))}),r.forEach(e=>{const t=n[e.provider][e.prefix];t.length&&on(e,t)}),t?function(e,t,o){const n=qo++,r=Wo.bind(null,o,n);if(!t.pending.length)return r;const s={id:n,icons:t,callback:e,abort:r};return o.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(s)}),r}(t,o,r):Xo};const rn=/[\s,]+/;function sn(e,t){t.split(rn).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function an(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===o){const t=parseInt(e);return isNaN(t)?0:n(t)}if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-o.length));return isNaN(r)?0:(r/=t,r%1==0?n(r):0)}}return t}const cn={...Oo,inline:!1},ln={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},un={display:"inline-block"},pn={backgroundColor:"currentColor"},fn={backgroundColor:"transparent"},dn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},hn={webkitMask:pn,mask:pn,background:fn};for(const Pn in hn){const e=hn[Pn];for(const t in dn)e[Pn+t]=dn[t]}const gn={};function mn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";gn[e+"-flip"]=t,gn[e.slice(0,1)+"-flip"]=t,gn[e+"Flip"]=t});const yn=(e,t)=>{const o=function(e,t){const o={...e};for(const n in t){const e=t[n],r=typeof e;n in $o?(null===e||e&&("string"===r||"number"===r))&&(o[n]=e):r===typeof o[n]&&(o[n]="rotate"===n?e%4:e)}return o}(cn,t),n={...ln},r=t.mode||"svg",s={},i=t.style,a="object"!=typeof i||i instanceof Array?{}:i;for(let m in t){const e=t[m];if(void 0!==e)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":o[m]=!0===e||"true"===e||1===e;break;case"flip":"string"==typeof e&&sn(o,e);break;case"color":s.color=e;break;case"rotate":"string"==typeof e?o[m]=an(e):"number"==typeof e&&(o[m]=e);break;case"ariaHidden":case"aria-hidden":!0!==e&&"true"!==e&&delete n["aria-hidden"];break;default:{const t=gn[m];t?!0!==e&&"true"!==e&&1!==e||(o[t]=!0):void 0===cn[m]&&(n[m]=e)}}}const c=function(e,t){const o={...uo,...e},n={...Oo,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(e=>{const t=[],o=e.hFlip,n=e.vFlip;let i,a=e.rotate;switch(o?n?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):n&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:i=r.height/2+r.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:i=r.width/2+r.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}a%2==1&&(r.left!==r.top&&(i=r.left,r.left=r.top,r.top=i),r.width!==r.height&&(i=r.width,r.width=r.height,r.height=i)),t.length&&(s=function(e,t,o){const n=function(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===r||-1===s)break;const i=e.indexOf(">",s);if(-1===i)break;o+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:o,content:e}}(e);return r=n.defs,s=t+n.content+o,r?"<defs>"+r+"</defs>"+s:s;var r,s}(s,'<g transform="'+t.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=r.width,l=r.height;let u,p;null===i?(p=null===a?"1em":"auto"===a?l:a,u=Mo(p,c/l)):(u="auto"===i?c:i,p=null===a?Mo(u,l/c):"auto"===a?l:a);const f={},d=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};d("width",u),d("height",p);const h=[r.left,r.top,c,l];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:s}}(e,o),l=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),"svg"===r){n.style={...s,...a},Object.assign(n,l);let e=0,o=t.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),n.innerHTML=function(e,t=Eo){const o=[];let n;for(;n=To.exec(e);)o.push(n[1]);if(!o.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const n="function"==typeof t?t(o):t+(Lo++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+n+r+"$3")}),e=e.replace(new RegExp(r,"g"),"")}(c.body,o?()=>o+"ID"+e++:"iconifyVue"),S("svg",n)}const{body:u,width:p,height:f}=e,d="mask"===r||"bg"!==r&&-1!==u.indexOf("currentColor"),h=function(e,t){let o=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)o+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}(u,{...l,width:p+"",height:f+""});var g;return n.style={...s,"--svg":(g=h,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(g)+'")'),width:mn(l.width),height:mn(l.height),...un,...d?pn:fn,...a},S("span",n)};var vn;if(Co(!0),vn=Vo,Ao[""]=vn,"undefined"!=typeof document&&"undefined"!=typeof window){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!jo(e))&&console.error(o)}catch(t){console.error(o)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const o="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;No(e,n)||console.error(o)}catch(An){console.error(o)}}}}const bn={...uo,body:""};$((e,{emit:t})=>{const o=d(null);function n(){o.value&&(o.value.abort?.(),o.value=null)}const r=d(!!e.ssr),s=d(""),i=O(null);function a(){const r=function(){const r=e.icon;if("object"==typeof r&&null!==r&&"string"==typeof r.body)return s.value="",{data:r};let i;if("string"!=typeof r||null===(i=io(r,!1,!0)))return null;let c=xo(i);if(!c){const e=o.value;return e&&e.name===r||(o.value=null===c?{name:r}:{name:r,abort:nn([i],a)}),null}n(),s.value!==r&&(s.value=r,_(()=>{t("load",r)}));const l=e.customise;if(l){c=Object.assign({},c);const e=l(c.body,i.name,i.prefix,i.provider);"string"==typeof e&&(c.body=e)}const u=["iconify"];return""!==i.prefix&&u.push("iconify--"+i.prefix),""!==i.provider&&u.push("iconify--"+i.provider),{data:c,classes:u}}();r?r.data!==i.value?.data&&(i.value=r):i.value=null}return r.value?a():k(()=>{r.value=!0,a()}),C(()=>e.icon,a),F(n),()=>{const t=i.value;if(!t)return yn(bn,e);let o=e;return t.classes&&(o={...e,class:t.classes.join(" ")}),yn({...uo,...t.data},o)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const wn=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o};const kn=wn($({__name:"App",setup(e,{expose:t}){t();const o=B(),n=M(()=>R.value.find(({id:e})=>e===o.name)),r=d(""),s=d(""),i=M(()=>n.value?.to&&`${window.location.origin}${"/"===n.value.to?"":n.value.to}`);C(n,async e=>{let t="/favicon.ico";if(e?.icon){const o=xo(e.icon)?function(e){const t=xo(e);return t?{...uo,...t}:t}(e.icon):await(e=>new Promise((t,o)=>{const n="string"==typeof e?io(e,!0):e;n?nn([n||e],r=>{if(r.length&&n){const e=xo(n);if(e)return void t({...uo,...e})}o(e)}):o(e)}))(e.icon);if(o){const{body:e,height:n,left:r,top:s,width:i}=o;t=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${r.toString()} ${s.toString()} ${i.toString()} ${n.toString()}">${e}</svg>`}}r.value=t}),Ge({link:[[r,"icon","icon"],[i,"canonical"]].map(([e,t,o])=>({href:e,key:o,rel:t})),script:[{id:"application/ld+json",innerHTML:s,type:"application/ld+json"}]}),function(e={},t={}){(t.head||Je()).use(Ve);const{title:o,titleTemplate:n,...r}=e;Ge({title:o,titleTemplate:n,_flatMeta:r},t)}({description:M(()=>n.value?.description),keywords:M(()=>n.value?.keywords.join()),ogDescription:M(()=>n.value?.description),ogImage:M(()=>n.value?.images.filter(({url:e})=>e).map(({alt:e="",url:t})=>({alt:e,url:`${window.location.origin}/${t}`}))??[]),ogTitle:M(()=>n.value?.title),ogType:M(()=>n.value?.type),ogUrl:i,title:M(()=>n.value?.title)}),C(()=>n.value?.jsonld,async e=>{s.value=JSON.stringify(await e)||'{"@context":"https://schema.org"}'});const a={route:o,a:n,favicon:r,jsonld:s,ogUrl:i,get pages(){return R}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),[["render",function(e,t,o,n,r,s){const i=T("router-view");return L(),E(i,null,{default:A(({Component:e})=>[(L(),E(P(e),{id:n.pages[0]?.id},null,8,["id"]))]),_:1})}],["__file","App.vue"]]);let _n;const{pathname:Cn}=new URL(document.baseURI),xn=d(!0),jn=new Map,$n=J({history:G(Cn),routes:[],scrollBehavior:(e,t,o)=>_n?.(e,t,o)}),On=d(!0),Fn=M(()=>"/"===$n.currentRoute.value.path?N.value[$n.currentRoute.value.name]?.$children[0]:N.value[$n.currentRoute.value.name]),Sn=({id:e=U()})=>(jn.set(e,(()=>{let e,t;return{promise:new Promise((o,n)=>{e=o,t=n}),reject:t,resolve:e}})()),H(async()=>Z(`./pages/${e}.vue`,{parseOptions:{sourceMap:!1,templateParseOptions:{comments:!1,prefixIdentifiers:!0}},scriptOptions:{hoistStatic:!0,inlineTemplate:!0,isProd:!0,sourceMap:!1,templateOptions:{compilerOptions:{cacheHandlers:!0,comments:!1,hoistStatic:!0,mode:"module",prefixIdentifiers:!0,sourceMap:!1},isProd:!0,ssr:!1}}}))),Mn=({id:e}={})=>{e&&jn.get(e)?.resolve(void 0)};$n.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const Tn=I(kn),En={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};Tn.use(Ze());const Ln=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();D.push(t),await _(),R.value.forEach(({id:e,loc:t,path:n},r,s)=>{if(Object.defineProperties(s[r],{jsonld:En}),void 0!==n){const r=t?.replaceAll(" ","_").replace(/^\/?/,"/").replace(/\/?$/,"/");$n.addRoute({...r&&t?{alias:r}:{undefined:void 0},children:[{component:()=>o(()=>import("./PageView-C95OGfvv.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:e,path:""}],component:()=>o(()=>import("./RootView-tAj5_HOt.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:n.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),$n.addRoute({component:()=>o(()=>import("./NotFoundView-JMnb12L9.js"),__vite__mapDeps([4,2,1]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json");V.push(...await(e.ok?e:new Response("[]")).json()),ro.presets.push(a({customFetch:q,fonts:W(V)})),await c({defaults:ro,ready:async e=>{const{toggleObserver:t}=e;return(({extractAll:e,toggleObserver:t})=>{_n=async({hash:o,name:n})=>{if(n){xn.value=!0,t(!1);const[{promise:r}={}]=jn.values();await r,await Promise.all([...jn.values()].map(({promise:e})=>e)),await e(),t(!0);const s=On.value&&{behavior:"smooth",...o||Fn.value?.parent?.flat&&Fn.value.index?{el:o||`#${String(n)}`}:{left:0,top:0}};return xn.value=!1,On.value=!0,s}return!1}})(e),await Ln,Tn.provide("pages",function(e){if(!u(e))return x(e);const t=new Proxy({},{get:(t,o,n)=>j(Reflect.get(e.value,o,n)),set:(t,o,n)=>(u(e.value[o])&&!u(n)?e.value[o].value=n:e.value[o]=n,!0),deleteProperty:(t,o)=>Reflect.deleteProperty(e.value,o),has:(t,o)=>Reflect.has(e.value,o),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});return x(t)}(N)),Tn.use($n),await $n.isReady(),Tn.mount("#app"),t(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch(bt.error),bt.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.1.65");export{wn as _,tt as a,Ke as b,it as c,et as d,rt as e,Fn as f,xn as g,bt as h,Qe as i,Ge as j,Sn as m,Xe as n,jn as p,Mn as r,On as s,nt as t,st as u,at as w};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{computed as e,isReactive as t,reactive as r,watch as s}from"vue";const n=!0,o=(e,t)=>e.toReversed().map(r=>({node:r,parent:{configurable:n,value:t},siblings:{configurable:n,value:e}})),a=()=>{const e=URL.createObjectURL(new Blob),t=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),t};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c,u={exports:{}},d={},l={},f={},h={},p={},m={};function y(){return c||(c=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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class s extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function n(e,...t){const r=[e[0]];let n=0;for(;n<t.length;)i(r,t[n]),r.push(e[++n]);return new s(r)}e._Code=s,e.nil=new s(""),e._=n;const o=new s("+");function a(e,...t){const r=[u(e[0])];let n=0;for(;n<t.length;)r.push(o),i(r,t[n]),r.push(o,u(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===o){const r=c(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new s(r)}function i(e,t){var n;t instanceof s?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:u(Array.isArray(n)?n.join(","):n))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=i,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},e.stringify=function(e){return new s(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new s(`.${t}`):n`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new s(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new s(e.toString())}}(m)),m}var g,v,$={};function _(){return g||(g=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=y();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var s,n;(n=s||(e.UsedValueState=s={}))[n.Started=0]="Started",n[n.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${s}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:n}=s,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let a=this._values[n];if(a){const e=a.get(o);if(e)return e}else a=this._values[n]=new Map;a.set(o,s);const i=this._scope[n]||(this._scope[n]=[]),c=i.length;return i[c]=t.ref,s.setValue(t,{property:n,itemIndex:c}),s}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(n,o,a={},i){let c=t.nil;for(const u in n){const d=n[u];if(!d)continue;const l=a[u]=a[u]||new Map;d.forEach(n=>{if(l.has(n))return;l.set(n,s.Started);let a=o(n);if(a){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;c=t._`${c}${r} ${n} = ${a};${this.opts._n}`}else{if(!(a=null==i?void 0:i(n)))throw new r(n);c=t._`${c}${a}${this.opts._n}`}l.set(n,s.Completed)})}return c}}}($)),$}function w(){return v||(v=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=y(),r=_();var s=y();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return s.Name}});var n=_();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.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 o{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends o{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const s=e?r.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends o{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,r),this}get names(){return x(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class c extends i{constructor(e,t,r,s){super(e,r,s),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class l extends o{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends o{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;for(;s--;){const n=r[s];n.optimizeNames(e,t)||(C(e,n.names),r.splice(s,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>O(e,t.names),{})}}class p extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends h{}class g extends p{}g.kind="else";class v extends p{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(R(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return x(e,this.condition),this.else&&O(e,this.else.names),e}}v.kind="if";class $ extends p{}$.kind="for";class w extends ${constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class b extends ${constructor(e,t,r,s){super(),this.varKind=e,this.name=t,this.from=r,this.to=s}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:s,from:n,to:o}=this;return`for(${t} ${s}=${n}; ${s}<${o}; ${s}++)`+super.render(e)}get names(){const e=x(super.names,this.from);return x(e,this.to)}}class P extends ${constructor(e,t,r,s){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class E extends p{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class k extends p{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,s;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class j extends p{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}j.kind="catch";class N extends p{render(e){return"finally"+super.render(e)}}N.kind="finally";function O(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function x(e,r){return r instanceof t._CodeOrName?O(e,r.names):e}function I(e,r,s){return e instanceof t.Name?o(e):(n=e)instanceof t._Code&&n._items.some(e=>e instanceof t.Name&&1===r[e.str]&&void 0!==s[e.str])?new t._Code(e._items.reduce((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e),[])):e;var n;function o(e){const t=s[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function C(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${A(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);return void 0!==r&&s&&(this._constants[n.str]=r),this._leafNode(new a(e,n,r)),n}const(e,t,s){return this._def(r.varKinds.const,e,t,s)}let(e,t,s){return this._def(r.varKinds.let,e,t,s)}var(e,t,s){return this._def(r.varKinds.var,e,t,s)}assign(e,t,r){return this._leafNode(new i(e,t,r))}add(t,r){return this._leafNode(new c(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[s,n]of e)r.length>1&&r.push(","),r.push(s),(s!==n||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,n));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(v,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,s,n,o=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(o,a,t,s),()=>n(a))}forOf(e,s,n,o=r.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=s instanceof t.Name?s:this.var("_arr",s);return this.forRange("_i",0,t._`${e}.length`,r=>{this.var(a,t._`${e}[${r}]`),n(a)})}return this._for(new P("of",o,a,s),()=>n(a))}forIn(e,s,n,o=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${s})`,n);const a=this._scope.toName(e);return this._for(new P("in",o,a,s),()=>n(a))}endFor(){return this._endBlockNode($)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new k;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new j(e),t(e)}return r&&(this._currNode=s.finally=new N,this.code(r)),this._endBlockNode(j,N)}throw(e){return this._leafNode(new l(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,s,n){return this._blockNode(new E(e,r,s)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=R;const T=D(e.operators.AND);e.and=function(...e){return e.reduce(T)};const M=D(e.operators.OR);function D(e){return(r,s)=>r===t.nil?s:s===t.nil?r:t._`${A(r)} ${e} ${A(s)}`}function A(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(M)}}(p)),p}var b,P={};function E(){if(b)return P;b=1,Object.defineProperty(P,"__esModule",{value:!0}),P.checkStrictMode=P.getErrorPath=P.Type=P.useFunc=P.setEvaluated=P.evaluatedPropsToName=P.mergeEvaluated=P.eachItem=P.unescapeJsonPointer=P.escapeJsonPointer=P.escapeFragment=P.unescapeFragment=P.schemaRefOrVal=P.schemaHasRulesButRef=P.schemaHasRules=P.checkUnknownRules=P.alwaysValidSchema=P.toHash=void 0;const e=w(),t=y();function r(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const n=s.RULES.keywords;for(const o in t)n[o]||f(e,`unknown keyword: "${o}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function n(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function a({mergeNames:t,mergeToName:r,mergeValues:s,resultToName:n}){return(o,a,i,c)=>{const u=void 0===i?a:i instanceof e.Name?(a instanceof e.Name?t(o,a,i):r(o,a,i),i):a instanceof e.Name?(r(o,i,a),a):s(a,i);return c!==e.Name||u instanceof e.Name?u:n(o,u)}}function i(t,r){if(!0===r)return t.var("props",!0);const s=t.var("props",e._`{}`);return void 0!==r&&c(t,s,r),s}function c(t,r,s){Object.keys(s).forEach(s=>t.assign(e._`${r}${(0,e.getProperty)(s)}`,!0))}P.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},P.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!s(t,e.self.RULES.all))},P.checkUnknownRules=r,P.schemaHasRules=s,P.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},P.schemaRefOrVal=function({topSchemaRef:t,schemaPath:r},s,n,o){if(!o){if("number"==typeof s||"boolean"==typeof s)return s;if("string"==typeof s)return e._`${s}`}return e._`${t}${r}${(0,e.getProperty)(n)}`},P.unescapeFragment=function(e){return o(decodeURIComponent(e))},P.escapeFragment=function(e){return encodeURIComponent(n(e))},P.escapeJsonPointer=n,P.unescapeJsonPointer=o,P.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},P.mergeEvaluated={props:a({mergeNames:(t,r,s)=>t.if(e._`${s} !== true && ${r} !== undefined`,()=>{t.if(e._`${r} === true`,()=>t.assign(s,!0),()=>t.assign(s,e._`${s} || {}`).code(e._`Object.assign(${s}, ${r})`))}),mergeToName:(t,r,s)=>t.if(e._`${s} !== true`,()=>{!0===r?t.assign(s,!0):(t.assign(s,e._`${s} || {}`),c(t,s,r))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:i}),items:a({mergeNames:(t,r,s)=>t.if(e._`${s} !== true && ${r} !== undefined`,()=>t.assign(s,e._`${r} === true ? true : ${s} > ${r} ? ${s} : ${r}`)),mergeToName:(t,r,s)=>t.if(e._`${s} !== true`,()=>t.assign(s,!0===r||e._`${s} > ${r} ? ${s} : ${r}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},P.evaluatedPropsToName=i,P.setEvaluated=c;const u={};var d,l;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}return P.useFunc=function(e,r){return e.scopeValue("func",{ref:r,code:u[r.code]||(u[r.code]=new t._Code(r.code))})},(l=d||(P.Type=d={}))[l.Num=0]="Num",l[l.Str=1]="Str",P.getErrorPath=function(t,r,s){if(t instanceof e.Name){const n=r===d.Num;return s?n?e._`"[" + ${t} + "]"`:e._`"['" + ${t} + "']"`:n?e._`"/" + ${t}`:e._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return s?(0,e.getProperty)(t).toString():"/"+n(t)},P.checkStrictMode=f,P}var S,k,j,N={};function O(){if(S)return N;S=1,Object.defineProperty(N,"__esModule",{value:!0});const e=w(),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 N.default=t,N}function x(){return k||(k=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=w(),r=E(),s=O();function n(e,r){const n=e.const("err",r);e.if(t._`${s.default.vErrors} === null`,()=>e.assign(s.default.vErrors,t._`[${n}]`),t._`${s.default.vErrors}.push(${n})`),e.code(t._`${s.default.errors}++`)}function o(e,r){const{gen:s,validateName:n,schemaEnv:o}=e;o.$async?s.throw(t._`new ${e.ValidationError}(${r})`):(s.assign(t._`${n}.errors`,r),s.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,s=e.keywordError,a,c){const{it:u}=r,{gen:d,compositeRule:l,allErrors:f}=u,h=i(r,s,a);(null!=c?c:l||f)?n(d,h):o(u,t._`[${h}]`)},e.reportExtraError=function(t,r=e.keywordError,a){const{it:c}=t,{gen:u,compositeRule:d,allErrors:l}=c;n(u,i(t,r,a)),d||l||o(c,s.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(s.default.errors,r),e.if(t._`${s.default.vErrors} !== null`,()=>e.if(r,()=>e.assign(t._`${s.default.vErrors}.length`,r),()=>e.assign(s.default.vErrors,null)))},e.extendErrors=function({gen:e,keyword:r,schemaValue:n,data:o,errsCount:a,it:i}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,s.default.errors,a=>{e.const(c,t._`${s.default.vErrors}[${a}]`),e.if(t._`${c}.instancePath === undefined`,()=>e.assign(t._`${c}.instancePath`,(0,t.strConcat)(s.default.instancePath,i.errorPath))),e.assign(t._`${c}.schemaPath`,t.str`${i.errSchemaPath}/${r}`),i.opts.verbose&&(e.assign(t._`${c}.schema`,n),e.assign(t._`${c}.data`,o))})};const a={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 i(e,r,n){const{createErrors:o}=e.it;return!1===o?t._`{}`:function(e,r,n={}){const{gen:o,it:i}=e,d=[c(i,n),u(e,n)];return function(e,{params:r,message:n},o){const{keyword:i,data:c,schemaValue:u,it:d}=e,{opts:l,propertyName:f,topSchemaRef:h,schemaPath:p}=d;o.push([a.keyword,i],[a.params,"function"==typeof r?r(e):r||t._`{}`]),l.messages&&o.push([a.message,"function"==typeof n?n(e):n]);l.verbose&&o.push([a.schema,u],[a.parentSchema,t._`${h}${p}`],[s.default.data,c]);f&&o.push([a.propertyName,f])}(e,r,d),o.object(...d)}(e,r,n)}function c({errorPath:e},{instancePath:n}){const o=n?t.str`${e}${(0,r.getErrorPath)(n,r.Type.Str)}`:e;return[s.default.instancePath,(0,t.strConcat)(s.default.instancePath,o)]}function u({keyword:e,it:{errSchemaPath:s}},{schemaPath:n,parentSchema:o}){let i=o?s:t.str`${s}/${e}`;return n&&(i=t.str`${i}${(0,r.getErrorPath)(n,r.Type.Str)}`),[a.schemaPath,i]}}(h)),h}var I,C={},R={};function T(){if(I)return R;I=1,Object.defineProperty(R,"__esModule",{value:!0}),R.getRules=R.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return R.isJSONType=function(t){return"string"==typeof t&&e.has(t)},R.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}},R}var M,D,A={};function V(){if(M)return A;function e(e,r){return r.rules.some(r=>t(e,r))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some(t=>void 0!==e[t]))}return M=1,Object.defineProperty(A,"__esModule",{value:!0}),A.shouldUseRule=A.shouldUseGroup=A.schemaHasRulesForType=void 0,A.schemaHasRulesForType=function({schema:t,self:r},s){const n=r.RULES.types[s];return n&&!0!==n&&e(t,n)},A.shouldUseGroup=e,A.shouldUseRule=t,A}function U(){if(D)return C;D=1,Object.defineProperty(C,"__esModule",{value:!0}),C.reportTypeError=C.checkDataTypes=C.checkDataType=C.coerceAndCheckDataType=C.getJSONTypes=C.getSchemaTypes=C.DataType=void 0;const e=T(),t=V(),r=x(),s=w(),n=E();var o,a;function i(t){const r=Array.isArray(t)?t:t?[t]:[];if(r.every(e.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}(a=o||(C.DataType=o={}))[a.Correct=0]="Correct",a[a.Wrong=1]="Wrong",C.getSchemaTypes=function(e){const t=i(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},C.getJSONTypes=i,C.coerceAndCheckDataType=function(e,r){const{gen:n,data:a,opts:i}=e,u=function(e,t){return t?e.filter(e=>c.has(e)||"array"===t&&"array"===e):[]}(r,i.coerceTypes),l=r.length>0&&!(0===u.length&&1===r.length&&(0,t.schemaHasRulesForType)(e,r[0]));if(l){const t=d(r,a,i.strictNumbers,o.Wrong);n.if(t,()=>{u.length?function(e,t,r){const{gen:n,data:o,opts:a}=e,i=n.let("dataType",s._`typeof ${o}`),u=n.let("coerced",s._`undefined`);"array"===a.coerceTypes&&n.if(s._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,s._`${o}[0]`).assign(i,s._`typeof ${o}`).if(d(t,o,a.strictNumbers),()=>n.assign(u,o)));n.if(s._`${u} !== undefined`);for(const s of r)(c.has(s)||"array"===s&&"array"===a.coerceTypes)&&l(s);function l(e){switch(e){case"string":return void n.elseIf(s._`${i} == "number" || ${i} == "boolean"`).assign(u,s._`"" + ${o}`).elseIf(s._`${o} === null`).assign(u,s._`""`);case"number":return void n.elseIf(s._`${i} == "boolean" || ${o} === null
|
|
2
|
+
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(u,s._`+${o}`);case"integer":return void n.elseIf(s._`${i} === "boolean" || ${o} === null
|
|
3
|
+
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(u,s._`+${o}`);case"boolean":return void n.elseIf(s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(u,!1).elseIf(s._`${o} === "true" || ${o} === 1`).assign(u,!0);case"null":return n.elseIf(s._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(u,null);case"array":n.elseIf(s._`${i} === "string" || ${i} === "number"
|
|
4
|
+
|| ${i} === "boolean" || ${o} === null`).assign(u,s._`[${o}]`)}}n.else(),f(e),n.endIf(),n.if(s._`${u} !== undefined`,()=>{n.assign(o,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,()=>e.assign(s._`${t}[${r}]`,n))}(e,u)})}(e,r,u):f(e)})}return l};const c=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=o.Correct){const a=n===o.Correct?s.operators.EQ:s.operators.NEQ;let i;switch(e){case"null":return s._`${t} ${a} null`;case"array":i=s._`Array.isArray(${t})`;break;case"object":i=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=c(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=c();break;default:return s._`typeof ${t} ${a} ${e}`}return n===o.Correct?i:(0,s.not)(i);function c(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function d(e,t,r,o){if(1===e.length)return u(e[0],t,r,o);let a;const i=(0,n.toHash)(e);if(i.array&&i.object){const e=s._`typeof ${t} != "object"`;a=i.null?e:s._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else a=s.nil;i.number&&delete i.integer;for(const n in i)a=(0,s.and)(a,u(n,t,r,o));return a}C.checkDataType=u,C.checkDataTypes=d;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:s}=e,o=(0,n.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:o,schemaValue:o,parentSchema:s,params:{},it:e}}(e);(0,r.reportError)(t,l)}return C.reportTypeError=f,C}var z,q={};var K,L,F={},G={};function H(){if(K)return G;K=1,Object.defineProperty(G,"__esModule",{value:!0}),G.validateUnion=G.validateArray=G.usePattern=G.callValidateCode=G.schemaProperties=G.allSchemaProperties=G.noPropertyInData=G.propertyInData=G.isOwnProperty=G.hasPropFunc=G.reportMissingProp=G.checkMissingProp=G.checkReportMissingProp=void 0;const e=w(),t=E(),r=O(),s=E();function n(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function o(t,r,s){return e._`${n(t)}.call(${r}, ${s})`}function a(t,r,s,n){const a=e._`${r}${(0,e.getProperty)(s)} === undefined`;return n?(0,e.or)(a,(0,e.not)(o(t,r,s))):a}function i(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}G.checkReportMissingProp=function(t,r){const{gen:s,data:n,it:o}=t;s.if(a(s,n,r,o.opts.ownProperties),()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()})},G.checkMissingProp=function({gen:t,data:r,it:{opts:s}},n,o){return(0,e.or)(...n.map(n=>(0,e.and)(a(t,r,n,s.ownProperties),e._`${o} = ${n}`)))},G.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},G.hasPropFunc=n,G.isOwnProperty=o,G.propertyInData=function(t,r,s,n){const a=e._`${r}${(0,e.getProperty)(s)} !== undefined`;return n?e._`${a} && ${o(t,r,s)}`:a},G.noPropertyInData=a,G.allSchemaProperties=i,G.schemaProperties=function(e,r){return i(r).filter(s=>!(0,t.alwaysValidSchema)(e,r[s]))},G.callValidateCode=function({schemaCode:t,data:s,it:{gen:n,topSchemaRef:o,schemaPath:a,errorPath:i},it:c},u,d,l){const f=l?e._`${t}, ${s}, ${o}${a}`:s,h=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,i)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&h.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const p=e._`${f}, ${n.object(...h)}`;return d!==e.nil?e._`${u}.call(${d}, ${p})`:e._`${u}(${p})`};const c=e._`new RegExp`;return G.usePattern=function({gen:t,it:{opts:r}},n){const o=r.unicodeRegExp?"u":"",{regExp:a}=r.code,i=a(n,o);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:e._`${"new RegExp"===a.code?c:(0,s.useFunc)(t,a)}(${n}, ${o})`})},G.validateArray=function(r){const{gen:s,data:n,keyword:o,it:a}=r,i=s.name("valid");if(a.allErrors){const e=s.let("valid",!0);return c(()=>s.assign(e,!1)),e}return s.var(i,!0),c(()=>s.break()),i;function c(a){const c=s.const("len",e._`${n}.length`);s.forRange("i",0,c,n=>{r.subschema({keyword:o,dataProp:n,dataPropType:t.Type.Num},i),s.if((0,e.not)(i),a)})}},G.validateUnion=function(r){const{gen:s,schema:n,keyword:o,it:a}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(e=>(0,t.alwaysValidSchema)(a,e))&&!a.opts.unevaluated)return;const i=s.let("valid",!1),c=s.name("_valid");s.block(()=>n.forEach((t,n)=>{const a=r.subschema({keyword:o,schemaProp:n,compositeRule:!0},c);s.assign(i,e._`${i} || ${c}`);r.mergeValidEvaluated(a,c)||s.if((0,e.not)(i))})),r.result(i,()=>r.reset(),()=>r.error(!0))},G}function J(){if(L)return F;L=1,Object.defineProperty(F,"__esModule",{value:!0}),F.validateKeywordUsage=F.validSchemaType=F.funcKeywordCode=F.macroKeywordCode=void 0;const e=w(),t=O(),r=H(),s=x();function n(t){const{gen:r,data:s,it:n}=t;r.if(n.parentData,()=>r.assign(s,e._`${n.parentData}[${n.parentDataProperty}]`))}function o(t,r,s){if(void 0===s)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof s?{ref:s}:{ref:s,code:(0,e.stringify)(s)})}return F.macroKeywordCode=function(t,r){const{gen:s,keyword:n,schema:a,parentSchema:i,it:c}=t,u=r.macro.call(c.self,a,i,c),d=o(s,n,u);!1!==c.opts.validateSchema&&c.self.validateSchema(u,!0);const l=s.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${c.errSchemaPath}/${n}`,topSchemaRef:d,compositeRule:!0},l),t.pass(l,()=>t.error(!0))},F.funcKeywordCode=function(a,i){var c;const{gen:u,keyword:d,schema:l,parentSchema:f,$data:h,it:p}=a;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,i);const m=!h&&i.compile?i.compile.call(p.self,l,f,p):i.validate,y=o(u,d,m),g=u.let("valid");function v(s=(i.async?e._`await `:e.nil)){const n=p.opts.passContext?t.default.this:t.default.self,o=!("compile"in i&&!h||!1===i.schema);u.assign(g,e._`${s}${(0,r.callValidateCode)(a,y,n,o)}`,i.modifying)}function $(t){var r;u.if((0,e.not)(null!==(r=i.valid)&&void 0!==r?r:g),t)}a.block$data(g,function(){if(!1===i.errors)v(),i.modifying&&n(a),$(()=>a.error());else{const r=i.async?function(){const t=u.let("ruleErrs",null);return u.try(()=>v(e._`await `),r=>u.assign(g,!1).if(e._`${r} instanceof ${p.ValidationError}`,()=>u.assign(t,e._`${r}.errors`),()=>u.throw(r))),t}():function(){const t=e._`${y}.errors`;return u.assign(t,null),v(e.nil),t}();i.modifying&&n(a),$(()=>function(r,n){const{gen:o}=r;o.if(e._`Array.isArray(${n})`,()=>{o.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${n} : ${t.default.vErrors}.concat(${n})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,s.extendErrors)(r)},()=>r.error())}(a,r))}}),a.ok(null!==(c=i.valid)&&void 0!==c?c:g)},F.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},F.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:s},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");const a=n.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},F}var B,W={};var Q,X,Y={};function Z(){return X?Q:(X=1,Q=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,n,o;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(n=s;0!==n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=s;0!==n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=s;0!==n--;){var a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r})}var ee,te,re,se={exports:{}};function ne(){if(ee)return se.exports;ee=1;var e=se.exports=function(e,r,s){"function"==typeof r&&(s=r,r={}),t(r,"function"==typeof(s=r.cb||s)?s:s.pre||function(){},s.post||function(){},e,"",e)};function t(s,n,o,a,i,c,u,d,l,f){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var h in n(a,i,c,u,d,l,f),a){var p=a[h];if(Array.isArray(p)){if(h in e.arrayKeywords)for(var m=0;m<p.length;m++)t(s,n,o,p[m],i+"/"+h+"/"+m,c,i,h,a,m)}else if(h in e.propsKeywords){if(p&&"object"==typeof p)for(var y in p)t(s,n,o,p[y],i+"/"+h+"/"+r(y),c,i,h,a,y)}else(h in e.keywords||s.allKeys&&!(h in e.skipKeywords))&&t(s,n,o,p,i+"/"+h,c,i,h,a)}o(a,i,c,u,d,l,f)}}function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}return 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},se.exports}function oe(){if(te)return Y;te=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.getSchemaRefs=Y.resolveUrl=Y.normalizeId=Y._getFullPath=Y.getFullPath=Y.inlineRef=void 0;const e=E(),t=Z(),r=ne(),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);Y.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!o(e):!!t&&a(e)<=t)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(e){for(const t in e){if(n.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(o))return!0;if("object"==typeof r&&o(r))return!0}return!1}function a(t){let r=0;for(const n in t){if("$ref"===n)return 1/0;if(r++,!s.has(n)&&("object"==typeof t[n]&&(0,e.eachItem)(t[n],e=>r+=a(e)),r===1/0))return 1/0}return r}function i(e,t="",r){!1!==r&&(t=d(t));const s=e.parse(t);return c(e,s)}function c(e,t){return e.serialize(t).split("#")[0]+"#"}Y.getFullPath=i,Y._getFullPath=c;const u=/#\/?$/;function d(e){return e?e.replace(u,""):""}Y.normalizeId=d,Y.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};const l=/^[a-z_][-a-z0-9._]*$/i;return Y.getSchemaRefs=function(e,s){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:o}=this.opts,a=d(e[n]||s),c={"":a},u=i(o,a,!1),f={},h=new Set;return r(e,{allKeys:!0},(e,t,r,s)=>{if(void 0===s)return;const o=u+t;let a=c[s];function i(t){const r=this.opts.uriResolver.resolve;if(t=d(a?r(a,t):t),h.has(t))throw m(t);h.add(t);let s=this.refs[t];return"string"==typeof s&&(s=this.refs[s]),"object"==typeof s?p(e,s.schema,t):t!==d(o)&&("#"===t[0]?(p(e,f[t],t),f[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!l.test(e))throw new Error(`invalid anchor "${e}"`);i.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=i.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),c[t]=a}),f;function p(e,r,s){if(void 0!==r&&!t(e,r))throw m(s)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}},Y}function ae(){if(re)return l;re=1,Object.defineProperty(l,"__esModule",{value:!0}),l.getData=l.KeywordCxt=l.validateFunctionCode=void 0;const e=function(){if(j)return f;j=1,Object.defineProperty(f,"__esModule",{value:!0}),f.boolOrEmptySchema=f.topBoolOrEmptySchema=void 0;const e=x(),t=w(),r=O(),s={message:"boolean schema is false"};function n(t,r){const{gen:n,data:o}=t,a={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(a,s,void 0,r)}return f.topBoolOrEmptySchema=function(e){const{gen:s,schema:o,validateName:a}=e;!1===o?n(e,!1):"object"==typeof o&&!0===o.$async?s.return(r.default.data):(s.assign(t._`${a}.errors`,null),s.return(!0))},f.boolOrEmptySchema=function(e,t){const{gen:r,schema:s}=e;!1===s?(r.var(t,!1),n(e)):r.var(t,!0)},f}(),t=U(),r=V(),s=U(),n=function(){if(z)return q;z=1,Object.defineProperty(q,"__esModule",{value:!0}),q.assignDefaults=void 0;const e=w(),t=E();function r(r,s,n){const{gen:o,compositeRule:a,data:i,opts:c}=r;if(void 0===n)return;const u=e._`${i}${(0,e.getProperty)(s)}`;if(a)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let d=e._`${u} === undefined`;"empty"===c.useDefaults&&(d=e._`${d} || ${u} === null || ${u} === ""`),o.if(d,e._`${u} = ${(0,e.stringify)(n)}`)}return q.assignDefaults=function(e,t){const{properties:s,items:n}=e.schema;if("object"===t&&s)for(const o in s)r(e,o,s[o].default);else"array"===t&&Array.isArray(n)&&n.forEach((t,s)=>r(e,s,t.default))},q}(),o=J(),a=function(){if(B)return W;B=1,Object.defineProperty(W,"__esModule",{value:!0}),W.extendSubschemaMode=W.extendSubschemaData=W.getSubschema=void 0;const e=w(),t=E();return W.getSubschema=function(r,{keyword:s,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(void 0!==s&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==s){const o=r.schema[s];return void 0===n?{schema:o,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${r.errSchemaPath}/${s}`}:{schema:o[n],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${s}/${(0,t.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},W.extendSubschemaData=function(r,s,{dataProp:n,dataPropType:o,data:a,dataTypes:i,propertyName:c}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=s;if(void 0!==n){const{errorPath:a,dataPathArr:i,opts:c}=s;d(u.let("data",e._`${s.data}${(0,e.getProperty)(n)}`,!0)),r.errorPath=e.str`${a}${(0,t.getErrorPath)(n,o,c.jsPropertySyntax)}`,r.parentDataProperty=e._`${n}`,r.dataPathArr=[...i,r.parentDataProperty]}function d(e){r.data=e,r.dataLevel=s.dataLevel+1,r.dataTypes=[],s.definedProperties=new Set,r.parentData=s.data,r.dataNames=[...s.dataNames,e]}void 0!==a&&(d(a instanceof e.Name?a:u.let("data",a,!0)),void 0!==c&&(r.propertyName=c)),i&&(r.dataTypes=i)},W.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:o}){void 0!==s&&(e.compositeRule=s),void 0!==n&&(e.createErrors=n),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r},W}(),i=w(),c=O(),u=oe(),d=E(),h=x();function p({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){n.code.es5?e.func(t,i._`${c.default.data}, ${c.default.valCxt}`,s.$async,()=>{e.code(i._`"use strict"; ${m(r,n)}`),function(e,t){e.if(c.default.valCxt,()=>{e.var(c.default.instancePath,i._`${c.default.valCxt}.${c.default.instancePath}`),e.var(c.default.parentData,i._`${c.default.valCxt}.${c.default.parentData}`),e.var(c.default.parentDataProperty,i._`${c.default.valCxt}.${c.default.parentDataProperty}`),e.var(c.default.rootData,i._`${c.default.valCxt}.${c.default.rootData}`),t.dynamicRef&&e.var(c.default.dynamicAnchors,i._`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{e.var(c.default.instancePath,i._`""`),e.var(c.default.parentData,i._`undefined`),e.var(c.default.parentDataProperty,i._`undefined`),e.var(c.default.rootData,c.default.data),t.dynamicRef&&e.var(c.default.dynamicAnchors,i._`{}`)})}(e,n),e.code(o)}):e.func(t,i._`${c.default.data}, ${function(e){return i._`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${e.dynamicRef?i._`, ${c.default.dynamicAnchors}={}`:i.nil}}={}`}(n)}`,s.$async,()=>e.code(m(r,n)).code(o))}function m(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?i._`/*# sourceURL=${r} */`:i.nil}function y(t,r){v(t)&&($(t),g(t))?function(e,t){const{schema:r,gen:s,opts:n}=e;n.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=s.const("_errs",c.default.errors);_(e,o),s.var(t,i._`${o} === ${c.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function $(e){(0,d.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;t.$ref&&s.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,r){if(e.opts.jtd)return P(e,[],!1,r);const s=(0,t.getSchemaTypes)(e.schema);P(e,s,!(0,t.coerceAndCheckDataType)(e,s),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(!0===n.$comment)e.code(i._`${c.default.self}.logger.log(${o})`);else if("function"==typeof n.$comment){const r=i.str`${s}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(i._`${c.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function P(e,t,n,o){const{gen:a,schema:u,data:l,allErrors:f,opts:h,self:p}=e,{RULES:m}=p;function y(d){(0,r.shouldUseGroup)(u,d)&&(d.type?(a.if((0,s.checkDataType)(d.type,l,h.strictNumbers)),S(e,d),1===t.length&&t[0]===d.type&&n&&(a.else(),(0,s.reportTypeError)(e)),a.endIf()):S(e,d),f||a.if(i._`${c.default.errors} === ${o||0}`))}!u.$ref||!h.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(u,m)?(h.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{N(e.dataTypes,t)||I(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const r=[];for(const s of e.dataTypes)N(t,s)?r.push(s):t.includes("integer")&&"number"===s&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&I(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const s=e.self.RULES.all;for(const n in s){const o=s[n];if("object"==typeof o&&(0,r.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some(e=>k(t,e))&&I(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),a.block(()=>{for(const e of m.rules)y(e);y(m.post)})):a.block(()=>R(e,"$ref",m.all.$ref.definition))}function S(e,t){const{gen:s,schema:o,opts:{useDefaults:a}}=e;a&&(0,n.assignDefaults)(e,t.type),s.block(()=>{for(const s of t.rules)(0,r.shouldUseRule)(o,s)&&R(e,s.keyword,s.definition,t.type)})}function k(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function N(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function I(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}l.validateFunctionCode=function(t){v(t)&&($(t),g(t))?function(e){const{schema:t,opts:r,gen:s}=e;p(e,()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,d.checkStrictMode)(e,"default is ignored in the schema root")}(e),s.let(c.default.vErrors,null),s.let(c.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",i._`${r}.evaluated`),t.if(i._`${e.evaluated}.dynamicProps`,()=>t.assign(i._`${e.evaluated}.props`,i._`undefined`)),t.if(i._`${e.evaluated}.dynamicItems`,()=>t.assign(i._`${e.evaluated}.items`,i._`undefined`))}(e),_(e),function(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;r.$async?t.if(i._`${c.default.errors} === 0`,()=>t.return(c.default.data),()=>t.throw(i._`new ${n}(${c.default.vErrors})`)):(t.assign(i._`${s}.errors`,c.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:s}){r instanceof i.Name&&e.assign(i._`${t}.props`,r);s instanceof i.Name&&e.assign(i._`${t}.items`,s)}(e),t.return(i._`${c.default.errors} === 0`))}(e)})}(t):p(t,()=>(0,e.topBoolOrEmptySchema)(t))};class C{constructor(e,t,r){if((0,o.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",D(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",c.default.errors))}result(e,t,r){this.failResult((0,i.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,i.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(i._`${t} !== undefined && (${(0,i.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=i.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=i.nil,t=i.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if((0,i.or)(i._`${s} === undefined`,t)),e!==i.nil&&r.assign(e,!0),(n.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==i.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,i.or)(function(){if(r.length){if(!(t instanceof i.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return i._`${(0,s.checkDataTypes)(e,t,o.opts.strictNumbers,s.DataType.Wrong)}`}return i.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return i._`!${r}(${t})`}return i.nil}())}subschema(e,t){const r=(0,a.getSubschema)(this.it,e);(0,a.extendSubschemaData)(r,this.it,e),(0,a.extendSubschemaMode)(r,e);const s={...this.it,...r,items:void 0,props:void 0};return y(s,t),s}mergeEvaluated(e,t){const{it:r,gen:s}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=d.mergeEvaluated.props(s,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=d.mergeEvaluated.items(s,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return s.if(t,()=>this.mergeEvaluated(e,i.Name)),!0}}function R(e,t,r,s){const n=new C(e,r,t);"code"in r?r.code(n,s):n.$data&&r.validate?(0,o.funcKeywordCode)(n,r):"macro"in r?(0,o.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,o.funcKeywordCode)(n,r)}l.KeywordCxt=C;const T=/^\/(?:[^~]|~0|~1)*$/,M=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function D(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n,o;if(""===e)return c.default.rootData;if("/"===e[0]){if(!T.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=c.default.rootData}else{const a=M.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];if(n=a[2],"#"===n){if(i>=t)throw new Error(l("property/index",i));return s[t-i]}if(i>t)throw new Error(l("data",i));if(o=r[t-i],!n)return o}let a=o;const u=n.split("/");for(const c of u)c&&(o=i._`${o}${(0,i.getProperty)((0,d.unescapeJsonPointer)(c))}`,a=i._`${a} && ${o}`);return a;function l(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return l.getData=D,l}var ie,ce={};function ue(){if(ie)return ce;ie=1,Object.defineProperty(ce,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return ce.default=e,ce}var de,le={};function fe(){if(de)return le;de=1,Object.defineProperty(le,"__esModule",{value:!0});const e=oe();class t extends Error{constructor(t,r,s,n){super(n||`can't resolve reference ${s} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return le.default=t,le}var he,pe={};function me(){if(he)return pe;he=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.resolveSchema=pe.getCompilingSchema=pe.resolveRef=pe.compileSchema=pe.SchemaEnv=void 0;const e=w(),t=ue(),r=O(),s=oe(),n=E(),o=ae();class a{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function i(n){const a=u.call(this,n);if(a)return a;const i=(0,s.getFullPath)(this.opts.uriResolver,n.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:l}=this.opts,f=new e.CodeGen(this.scope,{es5:c,lines:d,ownProperties:l});let h;n.$async&&(h=f.scopeValue("Error",{ref:t.default,code:e._`require("ajv/dist/runtime/validation_error").default`}));const p=f.scopeName("validate");n.validateName=p;const m={gen:f,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:f.scopeValue("schema",!0===this.opts.code.source?{ref:n.schema,code:(0,e.stringify)(n.schema)}:{ref:n.schema}),validateName:p,ValidationError:h,schema:n.schema,schemaEnv:n,rootId:i,baseId:n.baseId||i,schemaPath:e.nil,errSchemaPath:n.schemaPath||(this.opts.jtd?"":"#"),errorPath:e._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(n),(0,o.validateFunctionCode)(m),f.optimize(this.opts.code.optimize);const t=f.toString();y=`${f.scopeRefs(r.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,n));const s=new Function(`${r.default.self}`,`${r.default.scope}`,y)(this,this.scope.get());if(this.scope.value(p,{ref:s}),s.errors=null,s.schema=n.schema,s.schemaEnv=n,n.$async&&(s.$async=!0),!0===this.opts.code.source&&(s.source={validateName:p,validateCode:t,scopeValues:f._values}),this.opts.unevaluated){const{props:t,items:r}=m;s.evaluated={props:t instanceof e.Name?void 0:t,items:r instanceof e.Name?void 0:r,dynamicProps:t instanceof e.Name,dynamicItems:r instanceof e.Name},s.source&&(s.source.evaluated=(0,e.stringify)(s.evaluated))}return n.validate=s,n}catch(g){throw delete n.validate,delete n.validateName,y&&this.logger.error("Error compiling schema, function code:",y),g}finally{this._compilations.delete(n)}}function c(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:i.call(this,e)}function u(e){for(const t of this._compilations)if(d(t,e))return t}function d(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function l(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||f.call(this,e,t)}function f(e,t){const r=this.opts.uriResolver.parse(t),n=(0,s._getFullPath)(this.opts.uriResolver,r);let o=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return p.call(this,r,e);const c=(0,s.normalizeId)(n),u=this.refs[c]||this.schemas[c];if("string"==typeof u){const t=f.call(this,e,u);if("object"!=typeof(null==t?void 0:t.schema))return;return p.call(this,r,t)}if("object"==typeof(null==u?void 0:u.schema)){if(u.validate||i.call(this,u),c===(0,s.normalizeId)(t)){const{schema:t}=u,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,s.resolveUrl)(this.opts.uriResolver,o,n)),new a({schema:t,schemaId:r,root:e,baseId:o})}return p.call(this,r,u)}}pe.SchemaEnv=a,pe.compileSchema=i,pe.resolveRef=function(e,t,r){var n;r=(0,s.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let i=l.call(this,e,r);if(void 0===i){const s=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:o}=this.opts;s&&(i=new a({schema:s,schemaId:o,root:e,baseId:t}))}return void 0!==i?e.refs[r]=c.call(this,i):void 0},pe.getCompilingSchema=u,pe.resolveSchema=f;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function p(e,{baseId:t,schema:r,root:o}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const a of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,n.unescapeFragment)(a)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!h.has(a)&&o&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,o))}let c;if("boolean"!=typeof r&&r.$ref&&!(0,n.schemaHasRulesButRef)(r,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,r.$ref);c=f.call(this,o,e)}const{schemaId:u}=this.opts;return c=c||new a({schema:r,schemaId:u,root:o,baseId:t}),c.schema!==c.root.schema?c:void 0}return pe}const ye={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var ge,ve,$e,_e,we,be,Pe,Ee={},Se={exports:{}};function ke(){if(ve)return ge;ve=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(e){let t="",r=0,s=0;for(s=0;s<e.length;s++)if(r=e[s].charCodeAt(0),48!==r){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s];break}for(s+=1;s<e.length;s++){if(r=e[s].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s]}return t}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(e){return e.length=0,!0}function o(e,t,s){if(e.length){const n=r(e);if(""===n)return s.error=!0,!1;t.push(n),e.length=0}return!0}function a(e){if(function(e,t){let r=0;for(let s=0;s<e.length;s++)e[s]===t&&r++;return r}(e,":")<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const s={error:!1,address:"",zone:""},a=[],i=[];let c=!1,u=!1,d=o;for(let r=0;r<e.length;r++){const o=e[r];if("["!==o&&"]"!==o)if(":"!==o)if("%"===o){if(!d(i,a,s))break;d=n}else i.push(o);else{if(!0===c&&(u=!0),!d(i,a,s))break;if(++t>7){s.error=!0;break}r>0&&":"===e[r-1]&&(c=!0),a.push(":")}}return i.length&&(d===n?s.zone=i.join(""):u?a.push(i.join("")):a.push(r(i))),s.address=a.join(""),s}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}return ge={nonSimpleDomain:s,recomposeAuthority:function(e){const r=[];if(void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host){let s=unescape(e.host);if(!t(s)){const t=a(s);s=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}r.push(s)}return"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e;const r=[];let s=-1,n=0;for(;n=t.length;){if(1===n){if("."===t)break;if("/"===t){r.push("/");break}r.push(t);break}if(2===n){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===n&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(s=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,s)),t=t.slice(s)}return r.join("")},isIPv4:t,isUUID:e,normalizeIPv6:a,stringArrayToHexStripped:r}}function je(){if(we)return Se.exports;we=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:s,isIPv4:n,nonSimpleDomain:o}=ke(),{SCHEMES:a,getSchemeHandler:i}=function(){if(_e)return $e;_e=1;const{isUUID:e}=ke(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function s(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function n(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:n,serialize:o},i={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=s(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(s(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},c={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:n,serialize:o},ws:i,wss:{scheme:"wss",domainHost:i.domainHost,parse:i.parse,serialize:i.serialize},urn:{scheme:"urn",parse:function(e,r){if(!e.path)return e.error="URN can not be parsed",e;const s=e.path.match(t);if(s){const t=r.scheme||e.scheme||"urn";e.nid=s[1].toLowerCase(),e.nss=s[2];const n=u(`${t}:${r.nid||e.nid}`);e.path=void 0,n&&(e=n.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",s=e.nid.toLowerCase(),n=u(`${r}:${t.nid||s}`);n&&(e=n.serialize(e,t));const o=e,a=e.nss;return o.path=`${s||t.nid}:${a}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(t,r){const s=t;return s.uuid=s.nss,s.nss=void 0,r.tolerant||s.uuid&&e(s.uuid)||(s.error=s.error||"UUID is not valid."),s},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function u(e){return e&&(c[e]||c[e.toLowerCase()])||void 0}return Object.setPrototypeOf(c,null),$e={wsIsSecure:s,SCHEMES:c,isValidSchemeName:function(e){return-1!==r.indexOf(e)},getSchemeHandler:u}}();function c(e,r,s,n){const o={};return n||(e=l(u(e,s),s),r=l(u(r,s),s)),!(s=s||{}).tolerant&&r.scheme?(o.scheme=r.scheme,o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=t(r.path||""),o.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=t(r.path||""),o.query=r.query):(r.path?("/"===r.path[0]?o.path=t(r.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:o.path=r.path:o.path="/"+r.path,o.path=t(o.path)),o.query=r.query):(o.path=e.path,void 0!==r.query?o.query=r.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=r.fragment,o}function u(e,s){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},s),a=[],c=i(o.scheme||n.scheme);c&&c.serialize&&c.serialize(n,o),void 0!==n.path&&(o.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==o.reference&&n.scheme&&a.push(n.scheme,":");const u=r(n);if(void 0!==u&&("suffix"!==o.reference&&a.push("//"),a.push(u),n.path&&"/"!==n.path[0]&&a.push("/")),void 0!==n.path){let e=n.path;o.absolutePath||c&&c.absolutePath||(e=t(e)),void 0===u&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),a.push(e)}return void 0!==n.query&&a.push("?",n.query),void 0!==n.fragment&&a.push("#",n.fragment),a.join("")}const d=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function l(t,r){const s=Object.assign({},r),a={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let c=!1;"suffix"===s.reference&&(t=s.scheme?s.scheme+":"+t:"//"+t);const u=t.match(d);if(u){if(a.scheme=u[1],a.userinfo=u[3],a.host=u[4],a.port=parseInt(u[5],10),a.path=u[6]||"",a.query=u[7],a.fragment=u[8],isNaN(a.port)&&(a.port=u[5]),a.host){if(!1===n(a.host)){const t=e(a.host);a.host=t.host.toLowerCase(),c=t.isIPV6}else c=!0}void 0!==a.scheme||void 0!==a.userinfo||void 0!==a.host||void 0!==a.port||void 0!==a.query||a.path?void 0===a.scheme?a.reference="relative":void 0===a.fragment?a.reference="absolute":a.reference="uri":a.reference="same-document",s.reference&&"suffix"!==s.reference&&s.reference!==a.reference&&(a.error=a.error||"URI is not a "+s.reference+" reference.");const r=i(s.scheme||a.scheme);if(!(s.unicodeSupport||r&&r.unicodeSupport)&&a.host&&(s.domainHost||r&&r.domainHost)&&!1===c&&o(a.host))try{a.host=URL.domainToASCII(a.host.toLowerCase())}catch(l){a.error=a.error||"Host's domain name can not be converted to ASCII: "+l}(!r||r&&!r.skipNormalize)&&(-1!==t.indexOf("%")&&(void 0!==a.scheme&&(a.scheme=unescape(a.scheme)),void 0!==a.host&&(a.host=unescape(a.host))),a.path&&(a.path=escape(unescape(a.path))),a.fragment&&(a.fragment=encodeURI(decodeURIComponent(a.fragment)))),r&&r.parse&&r.parse(a,s)}else a.error=a.error||"URI can not be parsed.";return a}const f={SCHEMES:a,normalize:function(e,t){return"string"==typeof e?e=u(l(e,t),t):"object"==typeof e&&(e=l(u(e,t),t)),e},resolve:function(e,t,r){const s=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=c(l(e,s),l(t,s),s,!0);return s.skipEscape=!0,u(n,s)},resolveComponent:c,equal:function(e,t,r){return"string"==typeof e?(e=unescape(e),e=u(s(l(e,r),!0),{...r,skipEscape:!0})):"object"==typeof e&&(e=u(s(e,!0),{...r,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=u(s(l(t,r),!0),{...r,skipEscape:!0})):"object"==typeof t&&(t=u(s(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:u,parse:l};return Se.exports=f,Se.exports.default=f,Se.exports.fastUri=f,Se.exports}function Ne(){return Pe||(Pe=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=ae();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=w();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 s=ue(),n=fe(),o=T(),a=me(),i=w(),c=oe(),u=U(),d=E(),l=ye,f=function(){if(be)return Ee;be=1,Object.defineProperty(Ee,"__esModule",{value:!0});const e=je();return e.code='require("ajv/dist/runtime/uri").default',Ee.default=e,Ee}(),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function v(e){var t,r,s,n,o,a,i,c,u,d,l,p,m,y,g,v,$,_,w,b,P,E,S,k,j;const N=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,x=!0===O||void 0===O?1:O||0,I=null!==(s=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==s?s:h,C=null!==(n=e.uriResolver)&&void 0!==n?n:f.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:N)||void 0===a||a,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:N)||void 0===c||c,strictTypes:null!==(d=null!==(u=e.strictTypes)&&void 0!==u?u:N)&&void 0!==d?d:"log",strictTuples:null!==(p=null!==(l=e.strictTuples)&&void 0!==l?l:N)&&void 0!==p?p:"log",strictRequired:null!==(y=null!==(m=e.strictRequired)&&void 0!==m?m:N)&&void 0!==y&&y,code:e.code?{...e.code,optimize:x,regExp:I}:{optimize:x,regExp:I},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===($=e.meta)||void 0===$||$,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(b=e.schemaId)&&void 0!==b?b:"$id",addUsedSchema:null===(P=e.addUsedSchema)||void 0===P||P,validateSchema:null===(E=e.validateSchema)||void 0===E||E,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(k=e.unicodeRegExp)||void 0===k||k,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:C}}class ${constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...v(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new i.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return N;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),_.call(this,y,e,"NOT SUPPORTED"),_.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),P.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=l;"id"===r&&(s={...l},s.id=s.$id,delete s.$id),t&&e&&this.addMetaSchema(s,s[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const s=r(t);return"$async"in r||(this.errors=r.errors),s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await s.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof n.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,s);return this}let n;if("object"==typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,s,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)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 s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return s}getSchema(e){let t;for(;"string"==typeof(t=b.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,s=new a.SchemaEnv({schema:{},schemaId:r});if(t=a.resolveSchema.call(this,s,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=b.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[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(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(x.call(this,r,t),!t)return(0,d.eachItem)(r,e=>I.call(this,e)),this;R.call(this,t);const s={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===s.type.length?e=>I.call(this,e,s):e=>s.type.forEach(t=>I.call(this,e,s,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:s}=t.definition,o=n[e];s&&o&&(n[e]=D(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];t&&!t.test(r)||("string"==typeof s?delete e[r]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[r]))}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let o;const{schemaId:i}=this.opts;if("object"==typeof e)o=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,c.normalizeId)(o||r);const d=c.getSchemaRefs.call(this,e,r);return u=new a.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:d}),this._cache.set(u.schema,u),n&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),s&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}function _(e,t,r,s="error"){for(const n in e){const o=n;o in t&&this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function b(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function P(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function S(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function j(){const e={...this.opts};for(const t of p)delete e[t];return e}$.ValidationError=s.default,$.MissingRefError=n.default,e.default=$;const N={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function x(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,r){var s;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=n?o.post:o.rules.find(({type:e})=>e===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?C.call(this,a,i,t.before):a.rules.push(i),o.all[e]=i,null===(s=t.implements)||void 0===s||s.forEach(e=>this.addKeyword(e))}function C(e,t,r){const s=e.rules.findIndex(e=>e.keyword===r);s>=0?e.rules.splice(s,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=D(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,M]}}}(d)),d}var Oe,xe={},Ie={},Ce={};var Re,Te,Me={};function De(){if(Te)return Ie;Te=1,Object.defineProperty(Ie,"__esModule",{value:!0});const e=function(){if(Oe)return Ce;Oe=1,Object.defineProperty(Ce,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Ce.default=e,Ce}(),t=function(){if(Re)return Me;Re=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.callRef=Me.getValidate=void 0;const e=fe(),t=H(),r=w(),s=O(),n=me(),o=E(),a={keyword:"$ref",schemaType:"string",code(t){const{gen:s,schema:o,it:a}=t,{baseId:u,schemaEnv:d,validateName:l,opts:f,self:h}=a,{root:p}=d;if(("#"===o||"#/"===o)&&u===p.baseId)return function(){if(d===p)return c(t,l,d,d.$async);const e=s.scopeValue("root",{ref:p});return c(t,r._`${e}.validate`,p,p.$async)}();const m=n.resolveRef.call(h,p,u,o);if(void 0===m)throw new e.default(a.opts.uriResolver,u,o);return m instanceof n.SchemaEnv?function(e){const r=i(t,e);c(t,r,e,e.$async)}(m):function(e){const n=s.scopeValue("schema",!0===f.code.source?{ref:e,code:(0,r.stringify)(e)}:{ref:e}),a=s.name("valid"),i=t.subschema({schema:e,dataTypes:[],schemaPath:r.nil,topSchemaRef:n,errSchemaPath:o},a);t.mergeEvaluated(i),t.ok(a)}(m)}};function i(e,t){const{gen:s}=e;return t.validate?s.scopeValue("validate",{ref:t.validate}):r._`${s.scopeValue("wrapper",{ref:t})}.validate`}function c(e,n,a,i){const{gen:c,it:u}=e,{allErrors:d,schemaEnv:l,opts:f}=u,h=f.passContext?s.default.this:r.nil;function p(e){const t=r._`${e}.errors`;c.assign(s.default.vErrors,r._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),c.assign(s.default.errors,r._`${s.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const s=null===(t=null==a?void 0:a.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(s&&!s.dynamicProps)void 0!==s.props&&(u.props=o.mergeEvaluated.props(c,s.props,u.props));else{const t=c.var("props",r._`${e}.evaluated.props`);u.props=o.mergeEvaluated.props(c,t,u.props,r.Name)}if(!0!==u.items)if(s&&!s.dynamicItems)void 0!==s.items&&(u.items=o.mergeEvaluated.items(c,s.items,u.items));else{const t=c.var("items",r._`${e}.evaluated.items`);u.items=o.mergeEvaluated.items(c,t,u.items,r.Name)}}i?function(){if(!l.$async)throw new Error("async schema referenced by sync schema");const s=c.let("valid");c.try(()=>{c.code(r._`await ${(0,t.callValidateCode)(e,n,h)}`),m(n),d||c.assign(s,!0)},e=>{c.if(r._`!(${e} instanceof ${u.ValidationError})`,()=>c.throw(e)),p(e),d||c.assign(s,!1)}),e.ok(s)}():e.result((0,t.callValidateCode)(e,n,h),()=>m(n),()=>p(n))}return Me.getValidate=i,Me.callRef=c,Me.default=a,Me}(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ie.default=r,Ie}var Ae,Ve={},Ue={};var ze,qe={};var Ke,Le,Fe={},Ge={};function He(){if(Le)return Fe;Le=1,Object.defineProperty(Fe,"__esModule",{value:!0});const e=w(),t=E(),r=function(){if(Ke)return Ge;function e(e){const t=e.length;let r,s=0,n=0;for(;n<t;)s++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return s}return Ke=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Ge}(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const s="maxLength"===t?"more":"fewer";return e.str`must NOT have ${s} than ${r} characters`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(s){const{keyword:n,data:o,schemaCode:a,it:i}=s,c="maxLength"===n?e.operators.GT:e.operators.LT,u=!1===i.opts.unicode?e._`${o}.length`:e._`${(0,t.useFunc)(s.gen,r.default)}(${o})`;s.fail$data(e._`${u} ${c} ${a}`)}};return Fe.default=s,Fe}var Je,Be={};var We,Qe={};var Xe,Ye={};function Ze(){if(Xe)return Ye;Xe=1,Object.defineProperty(Ye,"__esModule",{value:!0});const e=H(),t=w(),r=E(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>t.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>t._`{missingProperty: ${e}}`},code(s){const{gen:n,schema:o,schemaCode:a,data:i,$data:c,it:u}=s,{opts:d}=u;if(!c&&0===o.length)return;const l=o.length>=d.loopRequired;if(u.allErrors?function(){if(l||c)s.block$data(t.nil,f);else for(const t of o)(0,e.checkReportMissingProp)(s,t)}():function(){const r=n.let("missing");if(l||c){const o=n.let("valid",!0);s.block$data(o,()=>function(r,o){s.setParams({missingProperty:r}),n.forOf(r,a,()=>{n.assign(o,(0,e.propertyInData)(n,i,r,d.ownProperties)),n.if((0,t.not)(o),()=>{s.error(),n.break()})},t.nil)}(r,o)),s.ok(o)}else n.if((0,e.checkMissingProp)(s,o,r)),(0,e.reportMissingProp)(s,r),n.else()}(),d.strictRequired){const e=s.parentSchema.properties,{definedProperties:t}=s.it;for(const s of o)if(void 0===(null==e?void 0:e[s])&&!t.has(s)){const e=`required property "${s}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(u,e,u.opts.strictRequired)}}function f(){n.forOf("prop",a,t=>{s.setParams({missingProperty:t}),n.if((0,e.noPropertyInData)(n,i,t,d.ownProperties),()=>s.error())})}}};return Ye.default=s,Ye}var et,tt={};var rt,st,nt={},ot={};function at(){if(rt)return ot;rt=1,Object.defineProperty(ot,"__esModule",{value:!0});const e=Z();return e.code='require("ajv/dist/runtime/equal").default',ot.default=e,ot}function it(){if(st)return nt;st=1,Object.defineProperty(nt,"__esModule",{value:!0});const e=U(),t=w(),r=E(),s=at(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:r}})=>t.str`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>t._`{i: ${e}, j: ${r}}`},code(n){const{gen:o,data:a,$data:i,schema:c,parentSchema:u,schemaCode:d,it:l}=n;if(!i&&!c)return;const f=o.let("valid"),h=u.items?(0,e.getSchemaTypes)(u.items):[];function p(r,s){const i=o.name("item"),c=(0,e.checkDataTypes)(h,i,l.opts.strictNumbers,e.DataType.Wrong),u=o.const("indices",t._`{}`);o.for(t._`;${r}--;`,()=>{o.let(i,t._`${a}[${r}]`),o.if(c,t._`continue`),h.length>1&&o.if(t._`typeof ${i} == "string"`,t._`${i} += "_"`),o.if(t._`typeof ${u}[${i}] == "number"`,()=>{o.assign(s,t._`${u}[${i}]`),n.error(),o.assign(f,!1).break()}).code(t._`${u}[${i}] = ${r}`)})}function m(e,i){const c=(0,r.useFunc)(o,s.default),u=o.name("outer");o.label(u).for(t._`;${e}--;`,()=>o.for(t._`${i} = ${e}; ${i}--;`,()=>o.if(t._`${c}(${a}[${e}], ${a}[${i}])`,()=>{n.error(),o.assign(f,!1).break(u)})))}n.block$data(f,function(){const e=o.let("i",t._`${a}.length`),r=o.let("j");n.setParams({i:e,j:r}),o.assign(f,!0),o.if(t._`${e} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?p:m)(e,r))},t._`${d} === false`),n.ok(f)}};return nt.default=n,nt}var ct,ut={};var dt,lt,ft={};function ht(){if(dt)return ft;dt=1,Object.defineProperty(ft,"__esModule",{value:!0});const e=w(),t=E(),r=at(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>e._`{allowedValues: ${t}}`},code(s){const{gen:n,data:o,$data:a,schema:i,schemaCode:c,it:u}=s;if(!a&&0===i.length)throw new Error("enum must have non-empty array");const d=i.length>=u.opts.loopEnum;let l;const f=()=>null!=l?l:l=(0,t.useFunc)(n,r.default);let h;if(d||a)h=n.let("valid"),s.block$data(h,function(){n.assign(h,!1),n.forOf("v",c,t=>n.if(e._`${f()}(${o}, ${t})`,()=>n.assign(h,!0).break()))});else{if(!Array.isArray(i))throw new Error("ajv implementation error");const t=n.const("vSchema",c);h=(0,e.or)(...i.map((r,s)=>function(t,r){const s=i[r];return"object"==typeof s&&null!==s?e._`${f()}(${o}, ${t}[${r}])`:e._`${o} === ${s}`}(t,s)))}s.pass(h)}};return ft.default=s,ft}function pt(){if(lt)return Ve;lt=1,Object.defineProperty(Ve,"__esModule",{value:!0});const e=function(){if(Ae)return Ue;Ae=1,Object.defineProperty(Ue,"__esModule",{value:!0});const e=w(),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}},s={message:({keyword:t,schemaCode:s})=>e.str`must be ${r[t].okStr} ${s}`,params:({keyword:t,schemaCode:s})=>e._`{comparison: ${r[t].okStr}, limit: ${s}}`},n={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:s,code(t){const{keyword:s,data:n,schemaCode:o}=t;t.fail$data(e._`${n} ${r[s].fail} ${o} || isNaN(${n})`)}};return Ue.default=n,Ue}(),t=function(){if(ze)return qe;ze=1,Object.defineProperty(qe,"__esModule",{value:!0});const e=w(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>e.str`must be multiple of ${t}`,params:({schemaCode:t})=>e._`{multipleOf: ${t}}`},code(t){const{gen:r,data:s,schemaCode:n,it:o}=t,a=o.opts.multipleOfPrecision,i=r.let("res"),c=a?e._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:e._`${i} !== parseInt(${i})`;t.fail$data(e._`(${n} === 0 || (${i} = ${s}/${n}, ${c}))`)}};return qe.default=t,qe}(),r=He(),s=function(){if(Je)return Be;Je=1,Object.defineProperty(Be,"__esModule",{value:!0});const e=H(),t=w(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>t.str`must match pattern "${e}"`,params:({schemaCode:e})=>t._`{pattern: ${e}}`},code(r){const{data:s,$data:n,schema:o,schemaCode:a,it:i}=r,c=i.opts.unicodeRegExp?"u":"",u=n?t._`(new RegExp(${a}, ${c}))`:(0,e.usePattern)(r,o);r.fail$data(t._`!${u}.test(${s})`)}};return Be.default=r,Be}(),n=function(){if(We)return Qe;We=1,Object.defineProperty(Qe,"__esModule",{value:!0});const e=w(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const s="maxProperties"===t?"more":"fewer";return e.str`must NOT have ${s} than ${r} properties`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(t){const{keyword:r,data:s,schemaCode:n}=t,o="maxProperties"===r?e.operators.GT:e.operators.LT;t.fail$data(e._`Object.keys(${s}).length ${o} ${n}`)}};return Qe.default=t,Qe}(),o=Ze(),a=function(){if(et)return tt;et=1,Object.defineProperty(tt,"__esModule",{value:!0});const e=w(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const s="maxItems"===t?"more":"fewer";return e.str`must NOT have ${s} than ${r} items`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(t){const{keyword:r,data:s,schemaCode:n}=t,o="maxItems"===r?e.operators.GT:e.operators.LT;t.fail$data(e._`${s}.length ${o} ${n}`)}};return tt.default=t,tt}(),i=it(),c=function(){if(ct)return ut;ct=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=w(),t=E(),r=at(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>e._`{allowedValue: ${t}}`},code(s){const{gen:n,data:o,$data:a,schemaCode:i,schema:c}=s;a||c&&"object"==typeof c?s.fail$data(e._`!${(0,t.useFunc)(n,r.default)}(${o}, ${i})`):s.fail(e._`${c} !== ${o}`)}};return ut.default=s,ut}(),u=ht(),d=[e.default,t.default,r.default,s.default,n.default,o.default,a.default,i.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Ve.default=d,Ve}var mt,yt={},gt={};function vt(){if(mt)return gt;mt=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.validateAdditionalItems=void 0;const e=w(),t=E(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{parentSchema:r,it:n}=e,{items:o}=r;Array.isArray(o)?s(e,o):(0,t.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(r,s){const{gen:n,schema:o,data:a,keyword:i,it:c}=r;c.items=!0;const u=n.const("len",e._`${a}.length`);if(!1===o)r.setParams({len:s.length}),r.pass(e._`${u} <= ${s.length}`);else if("object"==typeof o&&!(0,t.alwaysValidSchema)(c,o)){const o=n.var("valid",e._`${u} <= ${s.length}`);n.if((0,e.not)(o),()=>function(o){n.forRange("i",s.length,u,s=>{r.subschema({keyword:i,dataProp:s,dataPropType:t.Type.Num},o),c.allErrors||n.if((0,e.not)(o),()=>n.break())})}(o)),r.ok(o)}}return gt.validateAdditionalItems=s,gt.default=r,gt}var $t,_t,wt={},bt={};function Pt(){if($t)return bt;$t=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.validateTuple=void 0;const e=w(),t=E(),r=H(),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:s,it:o}=e;if(Array.isArray(s))return n(e,"additionalItems",s);o.items=!0,(0,t.alwaysValidSchema)(o,s)||e.ok((0,r.validateArray)(e))}};function n(r,s,n=r.schema){const{gen:o,parentSchema:a,data:i,keyword:c,it:u}=r;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,i=a===e.minItems&&(a===e.maxItems||!1===e[s]);if(r.strictTuples&&!i){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${s} are not specified or different at path "${o}"`;(0,t.checkStrictMode)(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=t.mergeEvaluated.items(o,n.length,u.items));const d=o.name("valid"),l=o.const("len",e._`${i}.length`);n.forEach((s,n)=>{(0,t.alwaysValidSchema)(u,s)||(o.if(e._`${l} > ${n}`,()=>r.subschema({keyword:c,schemaProp:n,dataProp:n},d)),r.ok(d))})}return bt.validateTuple=n,bt.default=s,bt}var Et,St={};var kt,jt={};function Nt(){if(kt)return jt;kt=1,Object.defineProperty(jt,"__esModule",{value:!0});const e=w(),t=E(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:r}})=>void 0===r?e.str`must contain at least ${t} valid item(s)`:e.str`must contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>void 0===r?e._`{minContains: ${t}}`:e._`{minContains: ${t}, maxContains: ${r}}`},code(r){const{gen:s,schema:n,parentSchema:o,data:a,it:i}=r;let c,u;const{minContains:d,maxContains:l}=o;i.opts.next?(c=void 0===d?1:d,u=l):c=1;const f=s.const("len",e._`${a}.length`);if(r.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,t.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,t.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void r.fail();if((0,t.alwaysValidSchema)(i,n)){let t=e._`${f} >= ${c}`;return void 0!==u&&(t=e._`${t} && ${f} <= ${u}`),void r.pass(t)}i.items=!0;const h=s.name("valid");function p(){const t=s.name("_valid"),r=s.let("count",0);m(t,()=>s.if(t,()=>function(t){s.code(e._`${t}++`),void 0===u?s.if(e._`${t} >= ${c}`,()=>s.assign(h,!0).break()):(s.if(e._`${t} > ${u}`,()=>s.assign(h,!1).break()),1===c?s.assign(h,!0):s.if(e._`${t} >= ${c}`,()=>s.assign(h,!0)))}(r)))}function m(e,n){s.forRange("i",0,f,s=>{r.subschema({keyword:"contains",dataProp:s,dataPropType:t.Type.Num,compositeRule:!0},e),n()})}void 0===u&&1===c?m(h,()=>s.if(h,()=>s.break())):0===c?(s.let(h,!0),void 0!==u&&s.if(e._`${a}.length > 0`,p)):(s.let(h,!1),p()),r.result(h,()=>r.reset())}};return jt.default=r,jt}var Ot,xt={};function It(){return Ot||(Ot=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=w(),r=E(),s=H();e.error={message:({params:{property:e,depsCount:r,deps:s}})=>{const n=1===r?"property":"properties";return t.str`must have ${n} ${s} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:s,missingProperty:n}})=>t._`{property: ${e},
|
|
5
|
+
missingProperty: ${n},
|
|
6
|
+
depsCount: ${r},
|
|
7
|
+
deps: ${s}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const s in e){if("__proto__"===s)continue;(Array.isArray(e[s])?t:r)[s]=e[s]}return[t,r]}(e);o(e,t),a(e,r)}};function o(e,r=e.schema){const{gen:n,data:o,it:a}=e;if(0===Object.keys(r).length)return;const i=n.let("missing");for(const c in r){const u=r[c];if(0===u.length)continue;const d=(0,s.propertyInData)(n,o,c,a.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(d,()=>{for(const t of u)(0,s.checkReportMissingProp)(e,t)}):(n.if(t._`${d} && (${(0,s.checkMissingProp)(e,u,i)})`),(0,s.reportMissingProp)(e,i),n.else())}}function a(e,t=e.schema){const{gen:n,data:o,keyword:a,it:i}=e,c=n.name("valid");for(const u in t)(0,r.alwaysValidSchema)(i,t[u])||(n.if((0,s.propertyInData)(n,o,u,i.opts.ownProperties),()=>{const t=e.subschema({keyword:a,schemaProp:u},c);e.mergeValidEvaluated(t,c)},()=>n.var(c,!0)),e.ok(c))}e.validatePropertyDeps=o,e.validateSchemaDeps=a,e.default=n}(xt)),xt}var Ct,Rt={};var Tt,Mt={};function Dt(){if(Tt)return Mt;Tt=1,Object.defineProperty(Mt,"__esModule",{value:!0});const e=H(),t=w(),r=O(),s=E(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>t._`{additionalProperty: ${e.additionalProperty}}`},code(n){const{gen:o,schema:a,parentSchema:i,data:c,errsCount:u,it:d}=n;if(!u)throw new Error("ajv implementation error");const{allErrors:l,opts:f}=d;if(d.props=!0,"all"!==f.removeAdditional&&(0,s.alwaysValidSchema)(d,a))return;const h=(0,e.allSchemaProperties)(i.properties),p=(0,e.allSchemaProperties)(i.patternProperties);function m(e){o.code(t._`delete ${c}[${e}]`)}function y(e){if("all"===f.removeAdditional||f.removeAdditional&&!1===a)m(e);else{if(!1===a)return n.setParams({additionalProperty:e}),n.error(),void(l||o.break());if("object"==typeof a&&!(0,s.alwaysValidSchema)(d,a)){const r=o.name("valid");"failing"===f.removeAdditional?(g(e,r,!1),o.if((0,t.not)(r),()=>{n.reset(),m(e)})):(g(e,r),l||o.if((0,t.not)(r),()=>o.break()))}}}function g(e,t,r){const o={keyword:"additionalProperties",dataProp:e,dataPropType:s.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(o,t)}o.forIn("key",c,r=>{h.length||p.length?o.if(function(r){let a;if(h.length>8){const t=(0,s.schemaRefOrVal)(d,i.properties,"properties");a=(0,e.isOwnProperty)(o,t,r)}else a=h.length?(0,t.or)(...h.map(e=>t._`${r} === ${e}`)):t.nil;return p.length&&(a=(0,t.or)(a,...p.map(s=>t._`${(0,e.usePattern)(n,s)}.test(${r})`))),(0,t.not)(a)}(r),()=>y(r)):y(r)}),n.ok(t._`${u} === ${r.default.errors}`)}};return Mt.default=n,Mt}var At,Vt={};var Ut,zt={};var qt,Kt={};var Lt,Ft={};var Gt,Ht={};var Jt,Bt={};var Wt,Qt={};var Xt,Yt,Zt={};function er(){if(Yt)return yt;Yt=1,Object.defineProperty(yt,"__esModule",{value:!0});const e=vt(),t=function(){if(_t)return wt;_t=1,Object.defineProperty(wt,"__esModule",{value:!0});const e=Pt(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,e.validateTuple)(t,"items")};return wt.default=t,wt}(),r=Pt(),s=function(){if(Et)return St;Et=1,Object.defineProperty(St,"__esModule",{value:!0});const e=w(),t=E(),r=H(),s=vt(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{schema:n,parentSchema:o,it:a}=e,{prefixItems:i}=o;a.items=!0,(0,t.alwaysValidSchema)(a,n)||(i?(0,s.validateAdditionalItems)(e,i):e.ok((0,r.validateArray)(e)))}};return St.default=n,St}(),n=Nt(),o=It(),a=function(){if(Ct)return Rt;Ct=1,Object.defineProperty(Rt,"__esModule",{value:!0});const e=w(),t=E(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>e._`{propertyName: ${t.propertyName}}`},code(r){const{gen:s,schema:n,data:o,it:a}=r;if((0,t.alwaysValidSchema)(a,n))return;const i=s.name("valid");s.forIn("key",o,t=>{r.setParams({propertyName:t}),r.subschema({keyword:"propertyNames",data:t,dataTypes:["string"],propertyName:t,compositeRule:!0},i),s.if((0,e.not)(i),()=>{r.error(!0),a.allErrors||s.break()})}),r.ok(i)}};return Rt.default=r,Rt}(),i=Dt(),c=function(){if(At)return Vt;At=1,Object.defineProperty(Vt,"__esModule",{value:!0});const e=ae(),t=H(),r=E(),s=Dt(),n={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:o,schema:a,parentSchema:i,data:c,it:u}=n;"all"===u.opts.removeAdditional&&void 0===i.additionalProperties&&s.default.code(new e.KeywordCxt(u,s.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(a);for(const e of d)u.definedProperties.add(e);u.opts.unevaluated&&d.length&&!0!==u.props&&(u.props=r.mergeEvaluated.props(o,(0,r.toHash)(d),u.props));const l=d.filter(e=>!(0,r.alwaysValidSchema)(u,a[e]));if(0===l.length)return;const f=o.name("valid");for(const e of l)h(e)?p(e):(o.if((0,t.propertyInData)(o,c,e,u.opts.ownProperties)),p(e),u.allErrors||o.else().var(f,!0),o.endIf()),n.it.definedProperties.add(e),n.ok(f);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==a[e].default}function p(e){n.subschema({keyword:"properties",schemaProp:e,dataProp:e},f)}}};return Vt.default=n,Vt}(),u=function(){if(Ut)return zt;Ut=1,Object.defineProperty(zt,"__esModule",{value:!0});const e=H(),t=w(),r=E(),s=E(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:o,schema:a,data:i,parentSchema:c,it:u}=n,{opts:d}=u,l=(0,e.allSchemaProperties)(a),f=l.filter(e=>(0,r.alwaysValidSchema)(u,a[e]));if(0===l.length||f.length===l.length&&(!u.opts.unevaluated||!0===u.props))return;const h=d.strictSchema&&!d.allowMatchingProperties&&c.properties,p=o.name("valid");!0===u.props||u.props instanceof t.Name||(u.props=(0,s.evaluatedPropsToName)(o,u.props));const{props:m}=u;function y(e){for(const t in h)new RegExp(e).test(t)&&(0,r.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){o.forIn("key",i,a=>{o.if(t._`${(0,e.usePattern)(n,r)}.test(${a})`,()=>{const e=f.includes(r);e||n.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:s.Type.Str},p),u.opts.unevaluated&&!0!==m?o.assign(t._`${m}[${a}]`,!0):e||u.allErrors||o.if((0,t.not)(p),()=>o.break())})})}!function(){for(const e of l)h&&y(e),u.allErrors?g(e):(o.var(p,!0),g(e),o.if(p))}()}};return zt.default=n,zt}(),d=function(){if(qt)return Kt;qt=1,Object.defineProperty(Kt,"__esModule",{value:!0});const e=E(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:r,schema:s,it:n}=t;if((0,e.alwaysValidSchema)(n,s))return void t.fail();const o=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return Kt.default=t,Kt}(),l=function(){if(Lt)return Ft;Lt=1,Object.defineProperty(Ft,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:H().validateUnion,error:{message:"must match a schema in anyOf"}};return Ft.default=e,Ft}(),f=function(){if(Gt)return Ht;Gt=1,Object.defineProperty(Ht,"__esModule",{value:!0});const e=w(),t=E(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>e._`{passingSchemas: ${t.passing}}`},code(r){const{gen:s,schema:n,parentSchema:o,it:a}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const i=n,c=s.let("valid",!1),u=s.let("passing",null),d=s.name("_valid");r.setParams({passing:u}),s.block(function(){i.forEach((n,o)=>{let i;(0,t.alwaysValidSchema)(a,n)?s.var(d,!0):i=r.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},d),o>0&&s.if(e._`${d} && ${c}`).assign(c,!1).assign(u,e._`[${u}, ${o}]`).else(),s.if(d,()=>{s.assign(c,!0),s.assign(u,o),i&&r.mergeEvaluated(i,e.Name)})})}),r.result(c,()=>r.reset(),()=>r.error(!0))}};return Ht.default=r,Ht}(),h=function(){if(Jt)return Bt;Jt=1,Object.defineProperty(Bt,"__esModule",{value:!0});const e=E(),t={keyword:"allOf",schemaType:"array",code(t){const{gen:r,schema:s,it:n}=t;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=r.name("valid");s.forEach((r,s)=>{if((0,e.alwaysValidSchema)(n,r))return;const a=t.subschema({keyword:"allOf",schemaProp:s},o);t.ok(o),t.mergeEvaluated(a)})}};return Bt.default=t,Bt}(),p=function(){if(Wt)return Qt;Wt=1,Object.defineProperty(Qt,"__esModule",{value:!0});const e=w(),t=E(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>e.str`must match "${t.ifClause}" schema`,params:({params:t})=>e._`{failingKeyword: ${t.ifClause}}`},code(r){const{gen:n,parentSchema:o,it:a}=r;void 0===o.then&&void 0===o.else&&(0,t.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const i=s(a,"then"),c=s(a,"else");if(!i&&!c)return;const u=n.let("valid",!0),d=n.name("_valid");if(function(){const e=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);r.mergeEvaluated(e)}(),r.reset(),i&&c){const e=n.let("ifClause");r.setParams({ifClause:e}),n.if(d,l("then",e),l("else",e))}else i?n.if(d,l("then")):n.if((0,e.not)(d),l("else"));function l(t,s){return()=>{const o=r.subschema({keyword:t},d);n.assign(u,d),r.mergeValidEvaluated(o,u),s?n.assign(s,e._`${t}`):r.setParams({ifClause:t})}}r.pass(u,()=>r.error(!0))}};function s(e,r){const s=e.schema[r];return void 0!==s&&!(0,t.alwaysValidSchema)(e,s)}return Qt.default=r,Qt}(),m=function(){if(Xt)return Zt;Xt=1,Object.defineProperty(Zt,"__esModule",{value:!0});const e=E(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:s}){void 0===r.if&&(0,e.checkStrictMode)(s,`"${t}" without "if" is ignored`)}};return Zt.default=t,Zt}();return yt.default=function(y=!1){const g=[d.default,l.default,f.default,h.default,p.default,m.default,a.default,i.default,o.default,c.default,u.default];return y?g.push(t.default,s.default):g.push(e.default,r.default),g.push(n.default),g},yt}var tr,rr,sr={},nr={};function or(){if(rr)return sr;rr=1,Object.defineProperty(sr,"__esModule",{value:!0});const e=function(){if(tr)return nr;tr=1,Object.defineProperty(nr,"__esModule",{value:!0});const e=w(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>e.str`must match format "${t}"`,params:({schemaCode:t})=>e._`{format: ${t}}`},code(t,r){const{gen:s,data:n,$data:o,schema:a,schemaCode:i,it:c}=t,{opts:u,errSchemaPath:d,schemaEnv:l,self:f}=c;u.validateFormats&&(o?function(){const o=s.scopeValue("formats",{ref:f.formats,code:u.code.formats}),a=s.const("fDef",e._`${o}[${i}]`),c=s.let("fType"),d=s.let("format");s.if(e._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,()=>s.assign(c,e._`${a}.type || "string"`).assign(d,e._`${a}.validate`),()=>s.assign(c,e._`"string"`).assign(d,a)),t.fail$data((0,e.or)(!1===u.strictSchema?e.nil:e._`${i} && !${d}`,function(){const t=l.$async?e._`(${a}.async ? await ${d}(${n}) : ${d}(${n}))`:e._`${d}(${n})`,s=e._`(typeof ${d} == "function" ? ${t} : ${d}.test(${n}))`;return e._`${d} && ${d} !== true && ${c} === ${r} && !${s}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${d}"`}f.logger.warn(e())}();if(!0===o)return;const[i,c,h]=function(t){const r=t instanceof RegExp?(0,e.regexpCode)(t):u.code.formats?e._`${u.code.formats}${(0,e.getProperty)(a)}`:void 0,n=s.scopeValue("formats",{key:a,ref:t,code:r});return"object"!=typeof t||t instanceof RegExp?["string",t,n]:[t.type||"string",t.validate,e._`${n}.validate`]}(o);i===r&&t.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return e._`await ${h}(${n})`}return"function"==typeof c?e._`${h}(${n})`:e._`${h}.test(${n})`}())}())}};return nr.default=t,nr}(),t=[e.default];return sr.default=t,sr}var ar,ir,cr={};function ur(){if(ir)return xe;ir=1,Object.defineProperty(xe,"__esModule",{value:!0});const e=De(),t=pt(),r=er(),s=or(),n=(ar||(ar=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.contentVocabulary=cr.metadataVocabulary=void 0,cr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],cr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),cr),o=[e.default,t.default,(0,r.default)(),s.default,n.metadataVocabulary,n.contentVocabulary];return xe.default=o,xe}var dr,lr,fr={},hr={};function pr(){if(lr)return fr;lr=1,Object.defineProperty(fr,"__esModule",{value:!0});const e=w(),t=(dr||(dr=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.DiscrError=void 0,(s=r||(hr.DiscrError=r={})).Tag="tag",s.Mapping="mapping"),hr);var r,s;const n=me(),o=fe(),a=E(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:r}})=>e===t.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:t,tag:r,tagName:s}})=>e._`{error: ${t}, tag: ${s}, tagValue: ${r}}`},code(r){const{gen:s,data:i,schema:c,parentSchema:u,it:d}=r,{oneOf:l}=u;if(!d.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=c.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const h=s.let("valid",!1),p=s.const("tag",e._`${i}${(0,e.getProperty)(f)}`);function m(t){const n=s.name("valid"),o=r.subschema({keyword:"oneOf",schemaProp:t},n);return r.mergeEvaluated(o,e.Name),n}s.if(e._`typeof ${p} == "string"`,()=>function(){const i=function(){var e;const t={},r=i(u);let s=!0;for(let u=0;u<l.length;u++){let t=l[u];if((null==t?void 0:t.$ref)&&!(0,a.schemaHasRulesButRef)(t,d.self.RULES)){const e=t.$ref;if(t=n.resolveRef.call(d.self,d.schemaEnv.root,d.baseId,e),t instanceof n.SchemaEnv&&(t=t.schema),void 0===t)throw new o.default(d.opts.uriResolver,d.baseId,e)}const h=null===(e=null==t?void 0:t.properties)||void 0===e?void 0:e[f];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);s=s&&(r||i(t)),c(h,u)}if(!s)throw new Error(`discriminator: "${f}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(f)}function c(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)h(r,t)}}function h(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();s.if(!1);for(const t in i)s.elseIf(e._`${p} === ${t}`),s.assign(h,m(i[t]));s.else(),r.error(!1,{discrError:t.DiscrError.Mapping,tag:p,tagName:f}),s.endIf()}(),()=>r.error(!1,{discrError:t.DiscrError.Tag,tag:p,tagName:f})),r.ok(h)}};return fr.default=i,fr}const mr={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{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:[]}},type:["object","boolean"],properties:{$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:"#"}},default:!0};var yr;const gr=i((yr||(yr=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=Ne(),s=ur(),n=pr(),o=mr,a=["/properties"],i="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=ae();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=w();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var l=ue();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var f=fe();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(u,u.exports)),u.exports));var vr,$r={exports:{}};const _r=i((vr||(vr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={},s={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const r=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return()=>Math.floor(Math.random()*r)},seq:e=>{var t;const s=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return r[s]||(r[s]=0),()=>r[s]++}},n=Object.assign(function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,t,r){if(!r.opts.useDefaults||r.compositeRule)return()=>!0;const s={};for(const a in e)s[a]=o(e[a]);const n="empty"===r.opts.useDefaults;return t=>{for(const r in e)(void 0===t[r]||n&&(null===t[r]||""===t[r]))&&(t[r]=s[r]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}},{DEFAULTS:s});function o(e){return"object"==typeof e?function({func:e,args:t}){const r=s[e];return a(e,r),r(t)}(e):function(e=""){const t=s[e];return a(e,t),t()}(e)}function a(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t.default=n,e.exports=n}($r,$r.exports)),$r.exports)),wr=!0,br=()=>{const e=URL.createObjectURL(new Blob),t=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),t};_r.DEFAULTS.uuid=()=>br;const Pr={get(){return this.children.filter(({enabled:e})=>e)}},Er={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},Sr={get(){return this.$siblings[this.$index+1]}},kr={get(){return this.$siblings[this.$index-1]}},jr={get(){return this.siblings.filter(({enabled:e})=>e)}},Nr=new gr({code:{esm:!0},coerceTypes:!0,keywords:[_r()],removeAdditional:!0,schemas:[{$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"},{$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},{$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"},{$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"},{$id:"urn:jsonschema:feed",additionalProperties:!1,properties:{feed_url:{type:"string"},home_page_url:{type:"string"},items:{default:[],items:{additionalProperties:!1,dynamicDefaults:{date_published:"datetime",id:"uuid"},properties:{attachments:{default:[],items:{additionalProperties:!1,properties:{mime_type:{default:"",type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},content_html:{default:"",type:"string"},date_published:{type:"string"},id:{type:"string"},title:{default:"",type:"string"},url:{type:"string"}},type:"object"},type:"array"},title:{default:"",type:"string"},version:{default:"https://jsonfeed.org/version/1",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],type:"string"}},type:"object"},{$id:"urn:jsonschema:fonts",items:{type:"string"},type:"array"},{$id:"urn:jsonschema:log",additionalProperties:!1,properties:{messages:{default:[],items:{additionalProperties:!1,properties:{content:{default:"[]",items:{additionalProperties:!1,properties:{text:{default:"",type:"string"},type:{default:"text",type:"string"}},type:"object"},type:"array"},role:{default:"user",type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"}],useDefaults:!0}),Or=async e=>(await fetch(e)).text(),xr=r({}),Ir=r([]),Cr=e=>Object.fromEntries(e.map(e=>[e.toLowerCase().replaceAll(" ","_"),e])),Rr={get(){return this.icon&&`i-${this.icon}`}},Tr=r({}),Mr=r([]),Dr={get(){const e=this.branch.slice(1);return e.some(({name:e})=>!e)?void 0:e.map(({name:e})=>e).join("/").replaceAll(" ","_")}},Ar={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},Vr={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};Nr.getSchema("urn:jsonschema:credentials");const Ur=Nr.getSchema("urn:jsonschema:data"),zr=Nr.getSchema("urn:jsonschema:feed"),qr=Nr.getSchema("urn:jsonschema:fonts"),Kr=Nr.getSchema("urn:jsonschema:importmap");Nr.getSchema("urn:jsonschema:log");const{nodes:Lr,nodesMap:Fr}=((s,{branch:n="branch",children:i="children",id:c="id",index:u="index",next:d="next",parent:l="parent",prev:f="prev",siblings:h="siblings"}={})=>{const p={[n]:{get(){const e=[this];for(;e[0]?.[l];)e.unshift(e[0][l]);return e}},[u]:{get(){return this[h].findIndex(e=>this[c]===e[c])}},[d]:{get(){return this[h][this[u]+1]}},[f]:{get(){return this[h][this[u]-1]}}},m=function*(e){const t=o(e);for(;t.length;){const{node:e,parent:r,siblings:s}=t.pop()??{};e&&r&&s&&(Object.defineProperties(e,{...p,[l]:r,[h]:s}),yield e,t.push(...o(e[i]??[],e)))}},y=e(()=>[...m(t(s)?s:r(s))]),g=e(()=>Object.fromEntries(y.value.map(e=>[e[c],e]))),v=(e,t)=>{const r=g.value[e];if(r){const[e]=y.value,s=r[u],n=r[d],o=s+1,p=r[l],m=r[f],g=s-1,v=r[h];switch(t){case"add":{const e=a();return v.splice(o,0,{[c]:e}),e}case"addChild":{const e=a();return Array.isArray(r[i])||(r[i]=[]),r[i].unshift({[c]:e}),e}case"down":s<v.length-1&&v[s]&&v[o]&&([v[s],v[o]]=[v[o],v[s]]);break;case"left":if(p?.[l])return p[h].splice(p[u]+1,0,...v.splice(s,1)),p[c];break;case"remove":{const t=n?.[c]??m?.[c]??p?.[c]??e?.[c];return v.splice(s,1),t}case"right":if(m){const e=m[i]??[],t=m[c];return m[i]=[...e,...v.splice(s,1)],t}break;case"up":s&&v[s]&&v[g]&&([v[g],v[s]]=[v[s],v[g]])}}};return{add:e=>v(e,"add"),addChild:e=>v(e,"addChild"),down:e=>v(e,"down"),left:e=>v(e,"left"),nodes:y,nodesMap:g,remove:e=>v(e,"remove"),right:e=>v(e,"right"),up:e=>v(e,"up")}})(Mr);s(xr,async e=>{await(zr?.(e))},{immediate:wr}),s(Ir,async e=>{await(qr?.(e))},{immediate:wr}),s(Tr,async e=>{await(Kr?.(e))},{immediate:wr}),s(Lr,async e=>{await(Ur?.(e))?e.forEach(e=>{Object.defineProperties(e,{$children:Pr,$index:Er,$next:Sr,$prev:kr,$siblings:jr,i:Rr,path:Dr,title:Ar,to:Vr})}):(Mr.length=0,Mr.push({}))},{immediate:wr});export{Fr as a,Cr as b,Or as c,Ir as f,i as g,Mr as n,Lr as p,br as u};
|
package/dist/index.html
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
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-BBpH3mOy.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/unocss-Bk83BPCg.js">
|
|
11
|
-
<link rel="modulepreload" crossorigin href="./assets/shared-
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/shared-aEZiy6lt.js">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="./assets/index-vGiKZPT9.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuebro/runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@unocss/preset-wind4": "^66.5.3",
|
|
20
20
|
"@unocss/runtime": "^66.5.3",
|
|
21
21
|
"@vuebro/loader-sfc": "^2.3.3",
|
|
22
|
-
"@vuebro/shared": "^1.1.
|
|
22
|
+
"@vuebro/shared": "^1.1.31",
|
|
23
23
|
"@vueuse/core": "^13.9.0",
|
|
24
24
|
"consola": "^3.4.2",
|
|
25
25
|
"globals": "^16.4.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{computed as e,isReactive as t,reactive as r,watch as s}from"vue";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o,a={exports:{}},i={},c={},u={},d={},l={},f={};function h(){return o||(o=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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class s extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function n(e,...t){const r=[e[0]];let n=0;for(;n<t.length;)i(r,t[n]),r.push(e[++n]);return new s(r)}e._Code=s,e.nil=new s(""),e._=n;const o=new s("+");function a(e,...t){const r=[u(e[0])];let n=0;for(;n<t.length;)r.push(o),i(r,t[n]),r.push(o,u(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===o){const r=c(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new s(r)}function i(e,t){var n;t instanceof s?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:u(Array.isArray(n)?n.join(","):n))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=i,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},e.stringify=function(e){return new s(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new s(`.${t}`):n`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new s(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new s(e.toString())}}(f)),f}var p,m,y={};function g(){return p||(p=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=h();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var s,n;(n=s||(e.UsedValueState=s={}))[n.Started=0]="Started",n[n.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${s}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:n}=s,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let a=this._values[n];if(a){const e=a.get(o);if(e)return e}else a=this._values[n]=new Map;a.set(o,s);const i=this._scope[n]||(this._scope[n]=[]),c=i.length;return i[c]=t.ref,s.setValue(t,{property:n,itemIndex:c}),s}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(n,o,a={},i){let c=t.nil;for(const u in n){const d=n[u];if(!d)continue;const l=a[u]=a[u]||new Map;d.forEach(n=>{if(l.has(n))return;l.set(n,s.Started);let a=o(n);if(a){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;c=t._`${c}${r} ${n} = ${a};${this.opts._n}`}else{if(!(a=null==i?void 0:i(n)))throw new r(n);c=t._`${c}${a}${this.opts._n}`}l.set(n,s.Completed)})}return c}}}(y)),y}function v(){return m||(m=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=h(),r=g();var s=h();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return s.Name}});var n=g();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.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 o{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends o{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const s=e?r.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends o{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,r),this}get names(){return x(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class c extends i{constructor(e,t,r,s){super(e,r,s),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class l extends o{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends o{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends o{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;for(;s--;){const n=r[s];n.optimizeNames(e,t)||(C(e,n.names),r.splice(s,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>O(e,t.names),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends p{}class v extends m{}v.kind="else";class $ extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof $?t:t.nodes:this.nodes.length?this:new $(R(e),t instanceof $?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return x(e,this.condition),this.else&&O(e,this.else.names),e}}$.kind="if";class _ extends m{}_.kind="for";class w extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class b extends _{constructor(e,t,r,s){super(),this.varKind=e,this.name=t,this.from=r,this.to=s}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:s,from:n,to:o}=this;return`for(${t} ${s}=${n}; ${s}<${o}; ${s}++)`+super.render(e)}get names(){const e=x(super.names,this.from);return x(e,this.to)}}class P extends _{constructor(e,t,r,s){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class E extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class S extends p{render(e){return"return "+super.render(e)}}S.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,s;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class j extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}j.kind="catch";class N extends m{render(e){return"finally"+super.render(e)}}N.kind="finally";function O(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function x(e,r){return r instanceof t._CodeOrName?O(e,r.names):e}function I(e,r,s){return e instanceof t.Name?o(e):(n=e)instanceof t._Code&&n._items.some(e=>e instanceof t.Name&&1===r[e.str]&&void 0!==s[e.str])?new t._Code(e._items.reduce((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e),[])):e;var n;function o(e){const t=s[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function C(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${A(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);return void 0!==r&&s&&(this._constants[n.str]=r),this._leafNode(new a(e,n,r)),n}const(e,t,s){return this._def(r.varKinds.const,e,t,s)}let(e,t,s){return this._def(r.varKinds.let,e,t,s)}var(e,t,s){return this._def(r.varKinds.var,e,t,s)}assign(e,t,r){return this._leafNode(new i(e,t,r))}add(t,r){return this._leafNode(new c(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[s,n]of e)r.length>1&&r.push(","),r.push(s),(s!==n||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,n));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new $(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new $(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode($,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,s,n,o=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(o,a,t,s),()=>n(a))}forOf(e,s,n,o=r.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=s instanceof t.Name?s:this.var("_arr",s);return this.forRange("_i",0,t._`${e}.length`,r=>{this.var(a,t._`${e}[${r}]`),n(a)})}return this._for(new P("of",o,a,s),()=>n(a))}forIn(e,s,n,o=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${s})`,n);const a=this._scope.toName(e);return this._for(new P("in",o,a,s),()=>n(a))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new k;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new j(e),t(e)}return r&&(this._currNode=s.finally=new N,this.code(r)),this._endBlockNode(j,N)}throw(e){return this._leafNode(new l(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,s,n){return this._blockNode(new E(e,r,s)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof $))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=R;const T=D(e.operators.AND);e.and=function(...e){return e.reduce(T)};const M=D(e.operators.OR);function D(e){return(r,s)=>r===t.nil?s:s===t.nil?r:t._`${A(r)} ${e} ${A(s)}`}function A(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(M)}}(l)),l}var $,_={};function w(){if($)return _;$=1,Object.defineProperty(_,"__esModule",{value:!0}),_.checkStrictMode=_.getErrorPath=_.Type=_.useFunc=_.setEvaluated=_.evaluatedPropsToName=_.mergeEvaluated=_.eachItem=_.unescapeJsonPointer=_.escapeJsonPointer=_.escapeFragment=_.unescapeFragment=_.schemaRefOrVal=_.schemaHasRulesButRef=_.schemaHasRules=_.checkUnknownRules=_.alwaysValidSchema=_.toHash=void 0;const e=v(),t=h();function r(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const n=s.RULES.keywords;for(const o in t)n[o]||f(e,`unknown keyword: "${o}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function n(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function a({mergeNames:t,mergeToName:r,mergeValues:s,resultToName:n}){return(o,a,i,c)=>{const u=void 0===i?a:i instanceof e.Name?(a instanceof e.Name?t(o,a,i):r(o,a,i),i):a instanceof e.Name?(r(o,i,a),a):s(a,i);return c!==e.Name||u instanceof e.Name?u:n(o,u)}}function i(t,r){if(!0===r)return t.var("props",!0);const s=t.var("props",e._`{}`);return void 0!==r&&c(t,s,r),s}function c(t,r,s){Object.keys(s).forEach(s=>t.assign(e._`${r}${(0,e.getProperty)(s)}`,!0))}_.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},_.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!s(t,e.self.RULES.all))},_.checkUnknownRules=r,_.schemaHasRules=s,_.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},_.schemaRefOrVal=function({topSchemaRef:t,schemaPath:r},s,n,o){if(!o){if("number"==typeof s||"boolean"==typeof s)return s;if("string"==typeof s)return e._`${s}`}return e._`${t}${r}${(0,e.getProperty)(n)}`},_.unescapeFragment=function(e){return o(decodeURIComponent(e))},_.escapeFragment=function(e){return encodeURIComponent(n(e))},_.escapeJsonPointer=n,_.unescapeJsonPointer=o,_.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},_.mergeEvaluated={props:a({mergeNames:(t,r,s)=>t.if(e._`${s} !== true && ${r} !== undefined`,()=>{t.if(e._`${r} === true`,()=>t.assign(s,!0),()=>t.assign(s,e._`${s} || {}`).code(e._`Object.assign(${s}, ${r})`))}),mergeToName:(t,r,s)=>t.if(e._`${s} !== true`,()=>{!0===r?t.assign(s,!0):(t.assign(s,e._`${s} || {}`),c(t,s,r))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:i}),items:a({mergeNames:(t,r,s)=>t.if(e._`${s} !== true && ${r} !== undefined`,()=>t.assign(s,e._`${r} === true ? true : ${s} > ${r} ? ${s} : ${r}`)),mergeToName:(t,r,s)=>t.if(e._`${s} !== true`,()=>t.assign(s,!0===r||e._`${s} > ${r} ? ${s} : ${r}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},_.evaluatedPropsToName=i,_.setEvaluated=c;const u={};var d,l;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}return _.useFunc=function(e,r){return e.scopeValue("func",{ref:r,code:u[r.code]||(u[r.code]=new t._Code(r.code))})},(l=d||(_.Type=d={}))[l.Num=0]="Num",l[l.Str=1]="Str",_.getErrorPath=function(t,r,s){if(t instanceof e.Name){const n=r===d.Num;return s?n?e._`"[" + ${t} + "]"`:e._`"['" + ${t} + "']"`:n?e._`"/" + ${t}`:e._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return s?(0,e.getProperty)(t).toString():"/"+n(t)},_.checkStrictMode=f,_}var b,P,E,S={};function k(){if(b)return S;b=1,Object.defineProperty(S,"__esModule",{value:!0});const e=v(),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 S.default=t,S}function j(){return P||(P=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=v(),r=w(),s=k();function n(e,r){const n=e.const("err",r);e.if(t._`${s.default.vErrors} === null`,()=>e.assign(s.default.vErrors,t._`[${n}]`),t._`${s.default.vErrors}.push(${n})`),e.code(t._`${s.default.errors}++`)}function o(e,r){const{gen:s,validateName:n,schemaEnv:o}=e;o.$async?s.throw(t._`new ${e.ValidationError}(${r})`):(s.assign(t._`${n}.errors`,r),s.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,s=e.keywordError,a,c){const{it:u}=r,{gen:d,compositeRule:l,allErrors:f}=u,h=i(r,s,a);(null!=c?c:l||f)?n(d,h):o(u,t._`[${h}]`)},e.reportExtraError=function(t,r=e.keywordError,a){const{it:c}=t,{gen:u,compositeRule:d,allErrors:l}=c;n(u,i(t,r,a)),d||l||o(c,s.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(s.default.errors,r),e.if(t._`${s.default.vErrors} !== null`,()=>e.if(r,()=>e.assign(t._`${s.default.vErrors}.length`,r),()=>e.assign(s.default.vErrors,null)))},e.extendErrors=function({gen:e,keyword:r,schemaValue:n,data:o,errsCount:a,it:i}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,s.default.errors,a=>{e.const(c,t._`${s.default.vErrors}[${a}]`),e.if(t._`${c}.instancePath === undefined`,()=>e.assign(t._`${c}.instancePath`,(0,t.strConcat)(s.default.instancePath,i.errorPath))),e.assign(t._`${c}.schemaPath`,t.str`${i.errSchemaPath}/${r}`),i.opts.verbose&&(e.assign(t._`${c}.schema`,n),e.assign(t._`${c}.data`,o))})};const a={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 i(e,r,n){const{createErrors:o}=e.it;return!1===o?t._`{}`:function(e,r,n={}){const{gen:o,it:i}=e,d=[c(i,n),u(e,n)];return function(e,{params:r,message:n},o){const{keyword:i,data:c,schemaValue:u,it:d}=e,{opts:l,propertyName:f,topSchemaRef:h,schemaPath:p}=d;o.push([a.keyword,i],[a.params,"function"==typeof r?r(e):r||t._`{}`]),l.messages&&o.push([a.message,"function"==typeof n?n(e):n]);l.verbose&&o.push([a.schema,u],[a.parentSchema,t._`${h}${p}`],[s.default.data,c]);f&&o.push([a.propertyName,f])}(e,r,d),o.object(...d)}(e,r,n)}function c({errorPath:e},{instancePath:n}){const o=n?t.str`${e}${(0,r.getErrorPath)(n,r.Type.Str)}`:e;return[s.default.instancePath,(0,t.strConcat)(s.default.instancePath,o)]}function u({keyword:e,it:{errSchemaPath:s}},{schemaPath:n,parentSchema:o}){let i=o?s:t.str`${s}/${e}`;return n&&(i=t.str`${i}${(0,r.getErrorPath)(n,r.Type.Str)}`),[a.schemaPath,i]}}(d)),d}var N,O={},x={};function I(){if(N)return x;N=1,Object.defineProperty(x,"__esModule",{value:!0}),x.getRules=x.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return x.isJSONType=function(t){return"string"==typeof t&&e.has(t)},x.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}},x}var C,R,T={};function M(){if(C)return T;function e(e,r){return r.rules.some(r=>t(e,r))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some(t=>void 0!==e[t]))}return C=1,Object.defineProperty(T,"__esModule",{value:!0}),T.shouldUseRule=T.shouldUseGroup=T.schemaHasRulesForType=void 0,T.schemaHasRulesForType=function({schema:t,self:r},s){const n=r.RULES.types[s];return n&&!0!==n&&e(t,n)},T.shouldUseGroup=e,T.shouldUseRule=t,T}function D(){if(R)return O;R=1,Object.defineProperty(O,"__esModule",{value:!0}),O.reportTypeError=O.checkDataTypes=O.checkDataType=O.coerceAndCheckDataType=O.getJSONTypes=O.getSchemaTypes=O.DataType=void 0;const e=I(),t=M(),r=j(),s=v(),n=w();var o,a;function i(t){const r=Array.isArray(t)?t:t?[t]:[];if(r.every(e.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}(a=o||(O.DataType=o={}))[a.Correct=0]="Correct",a[a.Wrong=1]="Wrong",O.getSchemaTypes=function(e){const t=i(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},O.getJSONTypes=i,O.coerceAndCheckDataType=function(e,r){const{gen:n,data:a,opts:i}=e,u=function(e,t){return t?e.filter(e=>c.has(e)||"array"===t&&"array"===e):[]}(r,i.coerceTypes),l=r.length>0&&!(0===u.length&&1===r.length&&(0,t.schemaHasRulesForType)(e,r[0]));if(l){const t=d(r,a,i.strictNumbers,o.Wrong);n.if(t,()=>{u.length?function(e,t,r){const{gen:n,data:o,opts:a}=e,i=n.let("dataType",s._`typeof ${o}`),u=n.let("coerced",s._`undefined`);"array"===a.coerceTypes&&n.if(s._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,s._`${o}[0]`).assign(i,s._`typeof ${o}`).if(d(t,o,a.strictNumbers),()=>n.assign(u,o)));n.if(s._`${u} !== undefined`);for(const s of r)(c.has(s)||"array"===s&&"array"===a.coerceTypes)&&l(s);function l(e){switch(e){case"string":return void n.elseIf(s._`${i} == "number" || ${i} == "boolean"`).assign(u,s._`"" + ${o}`).elseIf(s._`${o} === null`).assign(u,s._`""`);case"number":return void n.elseIf(s._`${i} == "boolean" || ${o} === null
|
|
2
|
-
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(u,s._`+${o}`);case"integer":return void n.elseIf(s._`${i} === "boolean" || ${o} === null
|
|
3
|
-
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(u,s._`+${o}`);case"boolean":return void n.elseIf(s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(u,!1).elseIf(s._`${o} === "true" || ${o} === 1`).assign(u,!0);case"null":return n.elseIf(s._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(u,null);case"array":n.elseIf(s._`${i} === "string" || ${i} === "number"
|
|
4
|
-
|| ${i} === "boolean" || ${o} === null`).assign(u,s._`[${o}]`)}}n.else(),f(e),n.endIf(),n.if(s._`${u} !== undefined`,()=>{n.assign(o,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,()=>e.assign(s._`${t}[${r}]`,n))}(e,u)})}(e,r,u):f(e)})}return l};const c=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=o.Correct){const a=n===o.Correct?s.operators.EQ:s.operators.NEQ;let i;switch(e){case"null":return s._`${t} ${a} null`;case"array":i=s._`Array.isArray(${t})`;break;case"object":i=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=c(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=c();break;default:return s._`typeof ${t} ${a} ${e}`}return n===o.Correct?i:(0,s.not)(i);function c(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function d(e,t,r,o){if(1===e.length)return u(e[0],t,r,o);let a;const i=(0,n.toHash)(e);if(i.array&&i.object){const e=s._`typeof ${t} != "object"`;a=i.null?e:s._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else a=s.nil;i.number&&delete i.integer;for(const n in i)a=(0,s.and)(a,u(n,t,r,o));return a}O.checkDataType=u,O.checkDataTypes=d;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:s}=e,o=(0,n.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:o,schemaValue:o,parentSchema:s,params:{},it:e}}(e);(0,r.reportError)(t,l)}return O.reportTypeError=f,O}var A,V={};var U,z,q={},K={};function L(){if(U)return K;U=1,Object.defineProperty(K,"__esModule",{value:!0}),K.validateUnion=K.validateArray=K.usePattern=K.callValidateCode=K.schemaProperties=K.allSchemaProperties=K.noPropertyInData=K.propertyInData=K.isOwnProperty=K.hasPropFunc=K.reportMissingProp=K.checkMissingProp=K.checkReportMissingProp=void 0;const e=v(),t=w(),r=k(),s=w();function n(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function o(t,r,s){return e._`${n(t)}.call(${r}, ${s})`}function a(t,r,s,n){const a=e._`${r}${(0,e.getProperty)(s)} === undefined`;return n?(0,e.or)(a,(0,e.not)(o(t,r,s))):a}function i(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}K.checkReportMissingProp=function(t,r){const{gen:s,data:n,it:o}=t;s.if(a(s,n,r,o.opts.ownProperties),()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()})},K.checkMissingProp=function({gen:t,data:r,it:{opts:s}},n,o){return(0,e.or)(...n.map(n=>(0,e.and)(a(t,r,n,s.ownProperties),e._`${o} = ${n}`)))},K.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},K.hasPropFunc=n,K.isOwnProperty=o,K.propertyInData=function(t,r,s,n){const a=e._`${r}${(0,e.getProperty)(s)} !== undefined`;return n?e._`${a} && ${o(t,r,s)}`:a},K.noPropertyInData=a,K.allSchemaProperties=i,K.schemaProperties=function(e,r){return i(r).filter(s=>!(0,t.alwaysValidSchema)(e,r[s]))},K.callValidateCode=function({schemaCode:t,data:s,it:{gen:n,topSchemaRef:o,schemaPath:a,errorPath:i},it:c},u,d,l){const f=l?e._`${t}, ${s}, ${o}${a}`:s,h=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,i)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&h.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const p=e._`${f}, ${n.object(...h)}`;return d!==e.nil?e._`${u}.call(${d}, ${p})`:e._`${u}(${p})`};const c=e._`new RegExp`;return K.usePattern=function({gen:t,it:{opts:r}},n){const o=r.unicodeRegExp?"u":"",{regExp:a}=r.code,i=a(n,o);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:e._`${"new RegExp"===a.code?c:(0,s.useFunc)(t,a)}(${n}, ${o})`})},K.validateArray=function(r){const{gen:s,data:n,keyword:o,it:a}=r,i=s.name("valid");if(a.allErrors){const e=s.let("valid",!0);return c(()=>s.assign(e,!1)),e}return s.var(i,!0),c(()=>s.break()),i;function c(a){const c=s.const("len",e._`${n}.length`);s.forRange("i",0,c,n=>{r.subschema({keyword:o,dataProp:n,dataPropType:t.Type.Num},i),s.if((0,e.not)(i),a)})}},K.validateUnion=function(r){const{gen:s,schema:n,keyword:o,it:a}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(e=>(0,t.alwaysValidSchema)(a,e))&&!a.opts.unevaluated)return;const i=s.let("valid",!1),c=s.name("_valid");s.block(()=>n.forEach((t,n)=>{const a=r.subschema({keyword:o,schemaProp:n,compositeRule:!0},c);s.assign(i,e._`${i} || ${c}`);r.mergeValidEvaluated(a,c)||s.if((0,e.not)(i))})),r.result(i,()=>r.reset(),()=>r.error(!0))},K}function F(){if(z)return q;z=1,Object.defineProperty(q,"__esModule",{value:!0}),q.validateKeywordUsage=q.validSchemaType=q.funcKeywordCode=q.macroKeywordCode=void 0;const e=v(),t=k(),r=L(),s=j();function n(t){const{gen:r,data:s,it:n}=t;r.if(n.parentData,()=>r.assign(s,e._`${n.parentData}[${n.parentDataProperty}]`))}function o(t,r,s){if(void 0===s)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof s?{ref:s}:{ref:s,code:(0,e.stringify)(s)})}return q.macroKeywordCode=function(t,r){const{gen:s,keyword:n,schema:a,parentSchema:i,it:c}=t,u=r.macro.call(c.self,a,i,c),d=o(s,n,u);!1!==c.opts.validateSchema&&c.self.validateSchema(u,!0);const l=s.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${c.errSchemaPath}/${n}`,topSchemaRef:d,compositeRule:!0},l),t.pass(l,()=>t.error(!0))},q.funcKeywordCode=function(a,i){var c;const{gen:u,keyword:d,schema:l,parentSchema:f,$data:h,it:p}=a;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,i);const m=!h&&i.compile?i.compile.call(p.self,l,f,p):i.validate,y=o(u,d,m),g=u.let("valid");function v(s=(i.async?e._`await `:e.nil)){const n=p.opts.passContext?t.default.this:t.default.self,o=!("compile"in i&&!h||!1===i.schema);u.assign(g,e._`${s}${(0,r.callValidateCode)(a,y,n,o)}`,i.modifying)}function $(t){var r;u.if((0,e.not)(null!==(r=i.valid)&&void 0!==r?r:g),t)}a.block$data(g,function(){if(!1===i.errors)v(),i.modifying&&n(a),$(()=>a.error());else{const r=i.async?function(){const t=u.let("ruleErrs",null);return u.try(()=>v(e._`await `),r=>u.assign(g,!1).if(e._`${r} instanceof ${p.ValidationError}`,()=>u.assign(t,e._`${r}.errors`),()=>u.throw(r))),t}():function(){const t=e._`${y}.errors`;return u.assign(t,null),v(e.nil),t}();i.modifying&&n(a),$(()=>function(r,n){const{gen:o}=r;o.if(e._`Array.isArray(${n})`,()=>{o.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${n} : ${t.default.vErrors}.concat(${n})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,s.extendErrors)(r)},()=>r.error())}(a,r))}}),a.ok(null!==(c=i.valid)&&void 0!==c?c:g)},q.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},q.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:s},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");const a=n.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},q}var G,H={};var J,B,W={};function Q(){return B?J:(B=1,J=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,n,o;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(n=s;0!==n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=s;0!==n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=s;0!==n--;){var a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r})}var X,Y,Z,ee={exports:{}};function te(){if(X)return ee.exports;X=1;var e=ee.exports=function(e,r,s){"function"==typeof r&&(s=r,r={}),t(r,"function"==typeof(s=r.cb||s)?s:s.pre||function(){},s.post||function(){},e,"",e)};function t(s,n,o,a,i,c,u,d,l,f){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var h in n(a,i,c,u,d,l,f),a){var p=a[h];if(Array.isArray(p)){if(h in e.arrayKeywords)for(var m=0;m<p.length;m++)t(s,n,o,p[m],i+"/"+h+"/"+m,c,i,h,a,m)}else if(h in e.propsKeywords){if(p&&"object"==typeof p)for(var y in p)t(s,n,o,p[y],i+"/"+h+"/"+r(y),c,i,h,a,y)}else(h in e.keywords||s.allKeys&&!(h in e.skipKeywords))&&t(s,n,o,p,i+"/"+h,c,i,h,a)}o(a,i,c,u,d,l,f)}}function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}return 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},ee.exports}function re(){if(Y)return W;Y=1,Object.defineProperty(W,"__esModule",{value:!0}),W.getSchemaRefs=W.resolveUrl=W.normalizeId=W._getFullPath=W.getFullPath=W.inlineRef=void 0;const e=w(),t=Q(),r=te(),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);W.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!o(e):!!t&&a(e)<=t)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(e){for(const t in e){if(n.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(o))return!0;if("object"==typeof r&&o(r))return!0}return!1}function a(t){let r=0;for(const n in t){if("$ref"===n)return 1/0;if(r++,!s.has(n)&&("object"==typeof t[n]&&(0,e.eachItem)(t[n],e=>r+=a(e)),r===1/0))return 1/0}return r}function i(e,t="",r){!1!==r&&(t=d(t));const s=e.parse(t);return c(e,s)}function c(e,t){return e.serialize(t).split("#")[0]+"#"}W.getFullPath=i,W._getFullPath=c;const u=/#\/?$/;function d(e){return e?e.replace(u,""):""}W.normalizeId=d,W.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};const l=/^[a-z_][-a-z0-9._]*$/i;return W.getSchemaRefs=function(e,s){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:o}=this.opts,a=d(e[n]||s),c={"":a},u=i(o,a,!1),f={},h=new Set;return r(e,{allKeys:!0},(e,t,r,s)=>{if(void 0===s)return;const o=u+t;let a=c[s];function i(t){const r=this.opts.uriResolver.resolve;if(t=d(a?r(a,t):t),h.has(t))throw m(t);h.add(t);let s=this.refs[t];return"string"==typeof s&&(s=this.refs[s]),"object"==typeof s?p(e,s.schema,t):t!==d(o)&&("#"===t[0]?(p(e,f[t],t),f[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!l.test(e))throw new Error(`invalid anchor "${e}"`);i.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=i.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),c[t]=a}),f;function p(e,r,s){if(void 0!==r&&!t(e,r))throw m(s)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}},W}function se(){if(Z)return c;Z=1,Object.defineProperty(c,"__esModule",{value:!0}),c.getData=c.KeywordCxt=c.validateFunctionCode=void 0;const e=function(){if(E)return u;E=1,Object.defineProperty(u,"__esModule",{value:!0}),u.boolOrEmptySchema=u.topBoolOrEmptySchema=void 0;const e=j(),t=v(),r=k(),s={message:"boolean schema is false"};function n(t,r){const{gen:n,data:o}=t,a={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(a,s,void 0,r)}return u.topBoolOrEmptySchema=function(e){const{gen:s,schema:o,validateName:a}=e;!1===o?n(e,!1):"object"==typeof o&&!0===o.$async?s.return(r.default.data):(s.assign(t._`${a}.errors`,null),s.return(!0))},u.boolOrEmptySchema=function(e,t){const{gen:r,schema:s}=e;!1===s?(r.var(t,!1),n(e)):r.var(t,!0)},u}(),t=D(),r=M(),s=D(),n=function(){if(A)return V;A=1,Object.defineProperty(V,"__esModule",{value:!0}),V.assignDefaults=void 0;const e=v(),t=w();function r(r,s,n){const{gen:o,compositeRule:a,data:i,opts:c}=r;if(void 0===n)return;const u=e._`${i}${(0,e.getProperty)(s)}`;if(a)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let d=e._`${u} === undefined`;"empty"===c.useDefaults&&(d=e._`${d} || ${u} === null || ${u} === ""`),o.if(d,e._`${u} = ${(0,e.stringify)(n)}`)}return V.assignDefaults=function(e,t){const{properties:s,items:n}=e.schema;if("object"===t&&s)for(const o in s)r(e,o,s[o].default);else"array"===t&&Array.isArray(n)&&n.forEach((t,s)=>r(e,s,t.default))},V}(),o=F(),a=function(){if(G)return H;G=1,Object.defineProperty(H,"__esModule",{value:!0}),H.extendSubschemaMode=H.extendSubschemaData=H.getSubschema=void 0;const e=v(),t=w();return H.getSubschema=function(r,{keyword:s,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(void 0!==s&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==s){const o=r.schema[s];return void 0===n?{schema:o,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${r.errSchemaPath}/${s}`}:{schema:o[n],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${s}/${(0,t.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},H.extendSubschemaData=function(r,s,{dataProp:n,dataPropType:o,data:a,dataTypes:i,propertyName:c}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=s;if(void 0!==n){const{errorPath:a,dataPathArr:i,opts:c}=s;d(u.let("data",e._`${s.data}${(0,e.getProperty)(n)}`,!0)),r.errorPath=e.str`${a}${(0,t.getErrorPath)(n,o,c.jsPropertySyntax)}`,r.parentDataProperty=e._`${n}`,r.dataPathArr=[...i,r.parentDataProperty]}function d(e){r.data=e,r.dataLevel=s.dataLevel+1,r.dataTypes=[],s.definedProperties=new Set,r.parentData=s.data,r.dataNames=[...s.dataNames,e]}void 0!==a&&(d(a instanceof e.Name?a:u.let("data",a,!0)),void 0!==c&&(r.propertyName=c)),i&&(r.dataTypes=i)},H.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:o}){void 0!==s&&(e.compositeRule=s),void 0!==n&&(e.createErrors=n),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r},H}(),i=v(),d=k(),l=re(),f=w(),h=j();function p({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){n.code.es5?e.func(t,i._`${d.default.data}, ${d.default.valCxt}`,s.$async,()=>{e.code(i._`"use strict"; ${m(r,n)}`),function(e,t){e.if(d.default.valCxt,()=>{e.var(d.default.instancePath,i._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,i._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,i._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,i._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,i._`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{e.var(d.default.instancePath,i._`""`),e.var(d.default.parentData,i._`undefined`),e.var(d.default.parentDataProperty,i._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,i._`{}`)})}(e,n),e.code(o)}):e.func(t,i._`${d.default.data}, ${function(e){return i._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?i._`, ${d.default.dynamicAnchors}={}`:i.nil}}={}`}(n)}`,s.$async,()=>e.code(m(r,n)).code(o))}function m(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?i._`/*# sourceURL=${r} */`:i.nil}function y(t,r){$(t)&&(_(t),g(t))?function(e,t){const{schema:r,gen:s,opts:n}=e;n.$comment&&r.$comment&&P(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,l.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=s.const("_errs",d.default.errors);b(e,o),s.var(t,i._`${o} === ${d.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function $(e){return"boolean"!=typeof e.schema}function _(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;t.$ref&&s.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function b(e,r){if(e.opts.jtd)return S(e,[],!1,r);const s=(0,t.getSchemaTypes)(e.schema);S(e,s,!(0,t.coerceAndCheckDataType)(e,s),r)}function P({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(!0===n.$comment)e.code(i._`${d.default.self}.logger.log(${o})`);else if("function"==typeof n.$comment){const r=i.str`${s}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(i._`${d.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function S(e,t,n,o){const{gen:a,schema:c,data:u,allErrors:l,opts:h,self:p}=e,{RULES:m}=p;function y(f){(0,r.shouldUseGroup)(c,f)&&(f.type?(a.if((0,s.checkDataType)(f.type,u,h.strictNumbers)),N(e,f),1===t.length&&t[0]===f.type&&n&&(a.else(),(0,s.reportTypeError)(e)),a.endIf()):N(e,f),l||a.if(i._`${d.default.errors} === ${o||0}`))}!c.$ref||!h.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(c,m)?(h.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{x(e.dataTypes,t)||I(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const r=[];for(const s of e.dataTypes)x(t,s)?r.push(s):t.includes("integer")&&"number"===s&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&I(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const s=e.self.RULES.all;for(const n in s){const o=s[n];if("object"==typeof o&&(0,r.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some(e=>O(t,e))&&I(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),a.block(()=>{for(const e of m.rules)y(e);y(m.post)})):a.block(()=>R(e,"$ref",m.all.$ref.definition))}function N(e,t){const{gen:s,schema:o,opts:{useDefaults:a}}=e;a&&(0,n.assignDefaults)(e,t.type),s.block(()=>{for(const s of t.rules)(0,r.shouldUseRule)(o,s)&&R(e,s.keyword,s.definition,t.type)})}function O(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function x(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function I(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}c.validateFunctionCode=function(t){$(t)&&(_(t),g(t))?function(e){const{schema:t,opts:r,gen:s}=e;p(e,()=>{r.$comment&&t.$comment&&P(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),s.let(d.default.vErrors,null),s.let(d.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",i._`${r}.evaluated`),t.if(i._`${e.evaluated}.dynamicProps`,()=>t.assign(i._`${e.evaluated}.props`,i._`undefined`)),t.if(i._`${e.evaluated}.dynamicItems`,()=>t.assign(i._`${e.evaluated}.items`,i._`undefined`))}(e),b(e),function(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;r.$async?t.if(i._`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw(i._`new ${n}(${d.default.vErrors})`)):(t.assign(i._`${s}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:s}){r instanceof i.Name&&e.assign(i._`${t}.props`,r);s instanceof i.Name&&e.assign(i._`${t}.items`,s)}(e),t.return(i._`${d.default.errors} === 0`))}(e)})}(t):p(t,()=>(0,e.topBoolOrEmptySchema)(t))};class C{constructor(e,t,r){if((0,o.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",z(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,i.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,i.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(i._`${t} !== undefined && (${(0,i.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=i.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=i.nil,t=i.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if((0,i.or)(i._`${s} === undefined`,t)),e!==i.nil&&r.assign(e,!0),(n.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==i.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,i.or)(function(){if(r.length){if(!(t instanceof i.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return i._`${(0,s.checkDataTypes)(e,t,o.opts.strictNumbers,s.DataType.Wrong)}`}return i.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return i._`!${r}(${t})`}return i.nil}())}subschema(e,t){const r=(0,a.getSubschema)(this.it,e);(0,a.extendSubschemaData)(r,this.it,e),(0,a.extendSubschemaMode)(r,e);const s={...this.it,...r,items:void 0,props:void 0};return y(s,t),s}mergeEvaluated(e,t){const{it:r,gen:s}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=f.mergeEvaluated.props(s,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=f.mergeEvaluated.items(s,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return s.if(t,()=>this.mergeEvaluated(e,i.Name)),!0}}function R(e,t,r,s){const n=new C(e,r,t);"code"in r?r.code(n,s):n.$data&&r.validate?(0,o.funcKeywordCode)(n,r):"macro"in r?(0,o.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,o.funcKeywordCode)(n,r)}c.KeywordCxt=C;const T=/^\/(?:[^~]|~0|~1)*$/,U=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function z(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!T.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=d.default.rootData}else{const a=U.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];if(n=a[2],"#"===n){if(i>=t)throw new Error(u("property/index",i));return s[t-i]}if(i>t)throw new Error(u("data",i));if(o=r[t-i],!n)return o}let a=o;const c=n.split("/");for(const d of c)d&&(o=i._`${o}${(0,i.getProperty)((0,f.unescapeJsonPointer)(d))}`,a=i._`${a} && ${o}`);return a;function u(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return c.getData=z,c}var ne,oe={};function ae(){if(ne)return oe;ne=1,Object.defineProperty(oe,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return oe.default=e,oe}var ie,ce={};function ue(){if(ie)return ce;ie=1,Object.defineProperty(ce,"__esModule",{value:!0});const e=re();class t extends Error{constructor(t,r,s,n){super(n||`can't resolve reference ${s} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return ce.default=t,ce}var de,le={};function fe(){if(de)return le;de=1,Object.defineProperty(le,"__esModule",{value:!0}),le.resolveSchema=le.getCompilingSchema=le.resolveRef=le.compileSchema=le.SchemaEnv=void 0;const e=v(),t=ae(),r=k(),s=re(),n=w(),o=se();class a{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function i(n){const a=u.call(this,n);if(a)return a;const i=(0,s.getFullPath)(this.opts.uriResolver,n.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:l}=this.opts,f=new e.CodeGen(this.scope,{es5:c,lines:d,ownProperties:l});let h;n.$async&&(h=f.scopeValue("Error",{ref:t.default,code:e._`require("ajv/dist/runtime/validation_error").default`}));const p=f.scopeName("validate");n.validateName=p;const m={gen:f,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:f.scopeValue("schema",!0===this.opts.code.source?{ref:n.schema,code:(0,e.stringify)(n.schema)}:{ref:n.schema}),validateName:p,ValidationError:h,schema:n.schema,schemaEnv:n,rootId:i,baseId:n.baseId||i,schemaPath:e.nil,errSchemaPath:n.schemaPath||(this.opts.jtd?"":"#"),errorPath:e._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(n),(0,o.validateFunctionCode)(m),f.optimize(this.opts.code.optimize);const t=f.toString();y=`${f.scopeRefs(r.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,n));const s=new Function(`${r.default.self}`,`${r.default.scope}`,y)(this,this.scope.get());if(this.scope.value(p,{ref:s}),s.errors=null,s.schema=n.schema,s.schemaEnv=n,n.$async&&(s.$async=!0),!0===this.opts.code.source&&(s.source={validateName:p,validateCode:t,scopeValues:f._values}),this.opts.unevaluated){const{props:t,items:r}=m;s.evaluated={props:t instanceof e.Name?void 0:t,items:r instanceof e.Name?void 0:r,dynamicProps:t instanceof e.Name,dynamicItems:r instanceof e.Name},s.source&&(s.source.evaluated=(0,e.stringify)(s.evaluated))}return n.validate=s,n}catch(g){throw delete n.validate,delete n.validateName,y&&this.logger.error("Error compiling schema, function code:",y),g}finally{this._compilations.delete(n)}}function c(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:i.call(this,e)}function u(e){for(const t of this._compilations)if(d(t,e))return t}function d(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function l(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||f.call(this,e,t)}function f(e,t){const r=this.opts.uriResolver.parse(t),n=(0,s._getFullPath)(this.opts.uriResolver,r);let o=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return p.call(this,r,e);const c=(0,s.normalizeId)(n),u=this.refs[c]||this.schemas[c];if("string"==typeof u){const t=f.call(this,e,u);if("object"!=typeof(null==t?void 0:t.schema))return;return p.call(this,r,t)}if("object"==typeof(null==u?void 0:u.schema)){if(u.validate||i.call(this,u),c===(0,s.normalizeId)(t)){const{schema:t}=u,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,s.resolveUrl)(this.opts.uriResolver,o,n)),new a({schema:t,schemaId:r,root:e,baseId:o})}return p.call(this,r,u)}}le.SchemaEnv=a,le.compileSchema=i,le.resolveRef=function(e,t,r){var n;r=(0,s.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let i=l.call(this,e,r);if(void 0===i){const s=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:o}=this.opts;s&&(i=new a({schema:s,schemaId:o,root:e,baseId:t}))}return void 0!==i?e.refs[r]=c.call(this,i):void 0},le.getCompilingSchema=u,le.resolveSchema=f;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function p(e,{baseId:t,schema:r,root:o}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const a of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,n.unescapeFragment)(a)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!h.has(a)&&o&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,o))}let c;if("boolean"!=typeof r&&r.$ref&&!(0,n.schemaHasRulesButRef)(r,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,r.$ref);c=f.call(this,o,e)}const{schemaId:u}=this.opts;return c=c||new a({schema:r,schemaId:u,root:o,baseId:t}),c.schema!==c.root.schema?c:void 0}return le}const he={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var pe,me,ye,ge,ve,$e,_e,we={},be={exports:{}};function Pe(){if(me)return pe;me=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(e){let t="",r=0,s=0;for(s=0;s<e.length;s++)if(r=e[s].charCodeAt(0),48!==r){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s];break}for(s+=1;s<e.length;s++){if(r=e[s].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s]}return t}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(e){return e.length=0,!0}function o(e,t,s){if(e.length){const n=r(e);if(""===n)return s.error=!0,!1;t.push(n),e.length=0}return!0}function a(e){if(function(e,t){let r=0;for(let s=0;s<e.length;s++)e[s]===t&&r++;return r}(e,":")<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const s={error:!1,address:"",zone:""},a=[],i=[];let c=!1,u=!1,d=o;for(let r=0;r<e.length;r++){const o=e[r];if("["!==o&&"]"!==o)if(":"!==o)if("%"===o){if(!d(i,a,s))break;d=n}else i.push(o);else{if(!0===c&&(u=!0),!d(i,a,s))break;if(++t>7){s.error=!0;break}r>0&&":"===e[r-1]&&(c=!0),a.push(":")}}return i.length&&(d===n?s.zone=i.join(""):u?a.push(i.join("")):a.push(r(i))),s.address=a.join(""),s}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}return pe={nonSimpleDomain:s,recomposeAuthority:function(e){const r=[];if(void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host){let s=unescape(e.host);if(!t(s)){const t=a(s);s=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}r.push(s)}return"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e;const r=[];let s=-1,n=0;for(;n=t.length;){if(1===n){if("."===t)break;if("/"===t){r.push("/");break}r.push(t);break}if(2===n){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===n&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(s=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,s)),t=t.slice(s)}return r.join("")},isIPv4:t,isUUID:e,normalizeIPv6:a,stringArrayToHexStripped:r}}function Ee(){if(ve)return be.exports;ve=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:s,isIPv4:n,nonSimpleDomain:o}=Pe(),{SCHEMES:a,getSchemeHandler:i}=function(){if(ge)return ye;ge=1;const{isUUID:e}=Pe(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function s(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function n(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:n,serialize:o},i={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=s(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(s(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},c={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:n,serialize:o},ws:i,wss:{scheme:"wss",domainHost:i.domainHost,parse:i.parse,serialize:i.serialize},urn:{scheme:"urn",parse:function(e,r){if(!e.path)return e.error="URN can not be parsed",e;const s=e.path.match(t);if(s){const t=r.scheme||e.scheme||"urn";e.nid=s[1].toLowerCase(),e.nss=s[2];const n=u(`${t}:${r.nid||e.nid}`);e.path=void 0,n&&(e=n.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",s=e.nid.toLowerCase(),n=u(`${r}:${t.nid||s}`);n&&(e=n.serialize(e,t));const o=e,a=e.nss;return o.path=`${s||t.nid}:${a}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(t,r){const s=t;return s.uuid=s.nss,s.nss=void 0,r.tolerant||s.uuid&&e(s.uuid)||(s.error=s.error||"UUID is not valid."),s},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function u(e){return e&&(c[e]||c[e.toLowerCase()])||void 0}return Object.setPrototypeOf(c,null),ye={wsIsSecure:s,SCHEMES:c,isValidSchemeName:function(e){return-1!==r.indexOf(e)},getSchemeHandler:u}}();function c(e,r,s,n){const o={};return n||(e=l(u(e,s),s),r=l(u(r,s),s)),!(s=s||{}).tolerant&&r.scheme?(o.scheme=r.scheme,o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=t(r.path||""),o.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=t(r.path||""),o.query=r.query):(r.path?("/"===r.path[0]?o.path=t(r.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:o.path=r.path:o.path="/"+r.path,o.path=t(o.path)),o.query=r.query):(o.path=e.path,void 0!==r.query?o.query=r.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=r.fragment,o}function u(e,s){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},s),a=[],c=i(o.scheme||n.scheme);c&&c.serialize&&c.serialize(n,o),void 0!==n.path&&(o.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==o.reference&&n.scheme&&a.push(n.scheme,":");const u=r(n);if(void 0!==u&&("suffix"!==o.reference&&a.push("//"),a.push(u),n.path&&"/"!==n.path[0]&&a.push("/")),void 0!==n.path){let e=n.path;o.absolutePath||c&&c.absolutePath||(e=t(e)),void 0===u&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),a.push(e)}return void 0!==n.query&&a.push("?",n.query),void 0!==n.fragment&&a.push("#",n.fragment),a.join("")}const d=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function l(t,r){const s=Object.assign({},r),a={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let c=!1;"suffix"===s.reference&&(t=s.scheme?s.scheme+":"+t:"//"+t);const u=t.match(d);if(u){if(a.scheme=u[1],a.userinfo=u[3],a.host=u[4],a.port=parseInt(u[5],10),a.path=u[6]||"",a.query=u[7],a.fragment=u[8],isNaN(a.port)&&(a.port=u[5]),a.host){if(!1===n(a.host)){const t=e(a.host);a.host=t.host.toLowerCase(),c=t.isIPV6}else c=!0}void 0!==a.scheme||void 0!==a.userinfo||void 0!==a.host||void 0!==a.port||void 0!==a.query||a.path?void 0===a.scheme?a.reference="relative":void 0===a.fragment?a.reference="absolute":a.reference="uri":a.reference="same-document",s.reference&&"suffix"!==s.reference&&s.reference!==a.reference&&(a.error=a.error||"URI is not a "+s.reference+" reference.");const r=i(s.scheme||a.scheme);if(!(s.unicodeSupport||r&&r.unicodeSupport)&&a.host&&(s.domainHost||r&&r.domainHost)&&!1===c&&o(a.host))try{a.host=URL.domainToASCII(a.host.toLowerCase())}catch(l){a.error=a.error||"Host's domain name can not be converted to ASCII: "+l}(!r||r&&!r.skipNormalize)&&(-1!==t.indexOf("%")&&(void 0!==a.scheme&&(a.scheme=unescape(a.scheme)),void 0!==a.host&&(a.host=unescape(a.host))),a.path&&(a.path=escape(unescape(a.path))),a.fragment&&(a.fragment=encodeURI(decodeURIComponent(a.fragment)))),r&&r.parse&&r.parse(a,s)}else a.error=a.error||"URI can not be parsed.";return a}const f={SCHEMES:a,normalize:function(e,t){return"string"==typeof e?e=u(l(e,t),t):"object"==typeof e&&(e=l(u(e,t),t)),e},resolve:function(e,t,r){const s=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=c(l(e,s),l(t,s),s,!0);return s.skipEscape=!0,u(n,s)},resolveComponent:c,equal:function(e,t,r){return"string"==typeof e?(e=unescape(e),e=u(s(l(e,r),!0),{...r,skipEscape:!0})):"object"==typeof e&&(e=u(s(e,!0),{...r,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=u(s(l(t,r),!0),{...r,skipEscape:!0})):"object"==typeof t&&(t=u(s(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:u,parse:l};return be.exports=f,be.exports.default=f,be.exports.fastUri=f,be.exports}function Se(){return _e||(_e=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=se();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=v();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 s=ae(),n=ue(),o=I(),a=fe(),i=v(),c=re(),u=D(),d=w(),l=he,f=function(){if($e)return we;$e=1,Object.defineProperty(we,"__esModule",{value:!0});const e=Ee();return e.code='require("ajv/dist/runtime/uri").default',we.default=e,we}(),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,r,s,n,o,a,i,c,u,d,l,p,m,y,g,v,$,_,w,b,P,E,S,k,j;const N=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,x=!0===O||void 0===O?1:O||0,I=null!==(s=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==s?s:h,C=null!==(n=e.uriResolver)&&void 0!==n?n:f.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:N)||void 0===a||a,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:N)||void 0===c||c,strictTypes:null!==(d=null!==(u=e.strictTypes)&&void 0!==u?u:N)&&void 0!==d?d:"log",strictTuples:null!==(p=null!==(l=e.strictTuples)&&void 0!==l?l:N)&&void 0!==p?p:"log",strictRequired:null!==(y=null!==(m=e.strictRequired)&&void 0!==m?m:N)&&void 0!==y&&y,code:e.code?{...e.code,optimize:x,regExp:I}:{optimize:x,regExp:I},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===($=e.meta)||void 0===$||$,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(b=e.schemaId)&&void 0!==b?b:"$id",addUsedSchema:null===(P=e.addUsedSchema)||void 0===P||P,validateSchema:null===(E=e.validateSchema)||void 0===E||E,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(k=e.unicodeRegExp)||void 0===k||k,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:C}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new i.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return N;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),b.call(this,y,e,"NOT SUPPORTED"),b.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),E.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=l;"id"===r&&(s={...l},s.id=s.$id,delete s.$id),t&&e&&this.addMetaSchema(s,s[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const s=r(t);return"$async"in r||(this.errors=r.errors),s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await s.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof n.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,s);return this}let n;if("object"==typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,s,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)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 s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return s}getSchema(e){let t;for(;"string"==typeof(t=P.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,s=new a.SchemaEnv({schema:{},schemaId:r});if(t=a.resolveSchema.call(this,s,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=P.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[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(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(x.call(this,r,t),!t)return(0,d.eachItem)(r,e=>C.call(this,e)),this;T.call(this,t);const s={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===s.type.length?e=>C.call(this,e,s):e=>s.type.forEach(t=>C.call(this,e,s,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:s}=t.definition,o=n[e];s&&o&&(n[e]=A(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];t&&!t.test(r)||("string"==typeof s?delete e[r]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[r]))}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let o;const{schemaId:i}=this.opts;if("object"==typeof e)o=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,c.normalizeId)(o||r);const d=c.getSchemaRefs.call(this,e,r);return u=new a.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:d}),this._cache.set(u.schema,u),n&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),s&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,r,s="error"){for(const n in e){const o=n;o in t&&this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function P(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function E(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function S(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function j(){const e={...this.opts};for(const t of p)delete e[t];return e}_.ValidationError=s.default,_.MissingRefError=n.default,e.default=_;const N={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function x(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,t,r){var s;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=n?o.post:o.rules.find(({type:e})=>e===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?R.call(this,a,i,t.before):a.rules.push(i),o.all[e]=i,null===(s=t.implements)||void 0===s||s.forEach(e=>this.addKeyword(e))}function R(e,t,r){const s=e.rules.findIndex(e=>e.keyword===r);s>=0?e.rules.splice(s,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function T(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=A(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function A(e){return{anyOf:[e,M]}}}(i)),i}var ke,je={},Ne={},Oe={};var xe,Ie,Ce={};function Re(){if(Ie)return Ne;Ie=1,Object.defineProperty(Ne,"__esModule",{value:!0});const e=function(){if(ke)return Oe;ke=1,Object.defineProperty(Oe,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Oe.default=e,Oe}(),t=function(){if(xe)return Ce;xe=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.callRef=Ce.getValidate=void 0;const e=ue(),t=L(),r=v(),s=k(),n=fe(),o=w(),a={keyword:"$ref",schemaType:"string",code(t){const{gen:s,schema:o,it:a}=t,{baseId:u,schemaEnv:d,validateName:l,opts:f,self:h}=a,{root:p}=d;if(("#"===o||"#/"===o)&&u===p.baseId)return function(){if(d===p)return c(t,l,d,d.$async);const e=s.scopeValue("root",{ref:p});return c(t,r._`${e}.validate`,p,p.$async)}();const m=n.resolveRef.call(h,p,u,o);if(void 0===m)throw new e.default(a.opts.uriResolver,u,o);return m instanceof n.SchemaEnv?function(e){const r=i(t,e);c(t,r,e,e.$async)}(m):function(e){const n=s.scopeValue("schema",!0===f.code.source?{ref:e,code:(0,r.stringify)(e)}:{ref:e}),a=s.name("valid"),i=t.subschema({schema:e,dataTypes:[],schemaPath:r.nil,topSchemaRef:n,errSchemaPath:o},a);t.mergeEvaluated(i),t.ok(a)}(m)}};function i(e,t){const{gen:s}=e;return t.validate?s.scopeValue("validate",{ref:t.validate}):r._`${s.scopeValue("wrapper",{ref:t})}.validate`}function c(e,n,a,i){const{gen:c,it:u}=e,{allErrors:d,schemaEnv:l,opts:f}=u,h=f.passContext?s.default.this:r.nil;function p(e){const t=r._`${e}.errors`;c.assign(s.default.vErrors,r._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),c.assign(s.default.errors,r._`${s.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const s=null===(t=null==a?void 0:a.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(s&&!s.dynamicProps)void 0!==s.props&&(u.props=o.mergeEvaluated.props(c,s.props,u.props));else{const t=c.var("props",r._`${e}.evaluated.props`);u.props=o.mergeEvaluated.props(c,t,u.props,r.Name)}if(!0!==u.items)if(s&&!s.dynamicItems)void 0!==s.items&&(u.items=o.mergeEvaluated.items(c,s.items,u.items));else{const t=c.var("items",r._`${e}.evaluated.items`);u.items=o.mergeEvaluated.items(c,t,u.items,r.Name)}}i?function(){if(!l.$async)throw new Error("async schema referenced by sync schema");const s=c.let("valid");c.try(()=>{c.code(r._`await ${(0,t.callValidateCode)(e,n,h)}`),m(n),d||c.assign(s,!0)},e=>{c.if(r._`!(${e} instanceof ${u.ValidationError})`,()=>c.throw(e)),p(e),d||c.assign(s,!1)}),e.ok(s)}():e.result((0,t.callValidateCode)(e,n,h),()=>m(n),()=>p(n))}return Ce.getValidate=i,Ce.callRef=c,Ce.default=a,Ce}(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ne.default=r,Ne}var Te,Me={},De={};var Ae,Ve={};var Ue,ze,qe={},Ke={};function Le(){if(ze)return qe;ze=1,Object.defineProperty(qe,"__esModule",{value:!0});const e=v(),t=w(),r=function(){if(Ue)return Ke;function e(e){const t=e.length;let r,s=0,n=0;for(;n<t;)s++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return s}return Ue=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Ke}(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const s="maxLength"===t?"more":"fewer";return e.str`must NOT have ${s} than ${r} characters`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(s){const{keyword:n,data:o,schemaCode:a,it:i}=s,c="maxLength"===n?e.operators.GT:e.operators.LT,u=!1===i.opts.unicode?e._`${o}.length`:e._`${(0,t.useFunc)(s.gen,r.default)}(${o})`;s.fail$data(e._`${u} ${c} ${a}`)}};return qe.default=s,qe}var Fe,Ge={};var He,Je={};var Be,We={};function Qe(){if(Be)return We;Be=1,Object.defineProperty(We,"__esModule",{value:!0});const e=L(),t=v(),r=w(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>t.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>t._`{missingProperty: ${e}}`},code(s){const{gen:n,schema:o,schemaCode:a,data:i,$data:c,it:u}=s,{opts:d}=u;if(!c&&0===o.length)return;const l=o.length>=d.loopRequired;if(u.allErrors?function(){if(l||c)s.block$data(t.nil,f);else for(const t of o)(0,e.checkReportMissingProp)(s,t)}():function(){const r=n.let("missing");if(l||c){const o=n.let("valid",!0);s.block$data(o,()=>function(r,o){s.setParams({missingProperty:r}),n.forOf(r,a,()=>{n.assign(o,(0,e.propertyInData)(n,i,r,d.ownProperties)),n.if((0,t.not)(o),()=>{s.error(),n.break()})},t.nil)}(r,o)),s.ok(o)}else n.if((0,e.checkMissingProp)(s,o,r)),(0,e.reportMissingProp)(s,r),n.else()}(),d.strictRequired){const e=s.parentSchema.properties,{definedProperties:t}=s.it;for(const s of o)if(void 0===(null==e?void 0:e[s])&&!t.has(s)){const e=`required property "${s}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(u,e,u.opts.strictRequired)}}function f(){n.forOf("prop",a,t=>{s.setParams({missingProperty:t}),n.if((0,e.noPropertyInData)(n,i,t,d.ownProperties),()=>s.error())})}}};return We.default=s,We}var Xe,Ye={};var Ze,et,tt={},rt={};function st(){if(Ze)return rt;Ze=1,Object.defineProperty(rt,"__esModule",{value:!0});const e=Q();return e.code='require("ajv/dist/runtime/equal").default',rt.default=e,rt}function nt(){if(et)return tt;et=1,Object.defineProperty(tt,"__esModule",{value:!0});const e=D(),t=v(),r=w(),s=st(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:r}})=>t.str`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>t._`{i: ${e}, j: ${r}}`},code(n){const{gen:o,data:a,$data:i,schema:c,parentSchema:u,schemaCode:d,it:l}=n;if(!i&&!c)return;const f=o.let("valid"),h=u.items?(0,e.getSchemaTypes)(u.items):[];function p(r,s){const i=o.name("item"),c=(0,e.checkDataTypes)(h,i,l.opts.strictNumbers,e.DataType.Wrong),u=o.const("indices",t._`{}`);o.for(t._`;${r}--;`,()=>{o.let(i,t._`${a}[${r}]`),o.if(c,t._`continue`),h.length>1&&o.if(t._`typeof ${i} == "string"`,t._`${i} += "_"`),o.if(t._`typeof ${u}[${i}] == "number"`,()=>{o.assign(s,t._`${u}[${i}]`),n.error(),o.assign(f,!1).break()}).code(t._`${u}[${i}] = ${r}`)})}function m(e,i){const c=(0,r.useFunc)(o,s.default),u=o.name("outer");o.label(u).for(t._`;${e}--;`,()=>o.for(t._`${i} = ${e}; ${i}--;`,()=>o.if(t._`${c}(${a}[${e}], ${a}[${i}])`,()=>{n.error(),o.assign(f,!1).break(u)})))}n.block$data(f,function(){const e=o.let("i",t._`${a}.length`),r=o.let("j");n.setParams({i:e,j:r}),o.assign(f,!0),o.if(t._`${e} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?p:m)(e,r))},t._`${d} === false`),n.ok(f)}};return tt.default=n,tt}var ot,at={};var it,ct,ut={};function dt(){if(it)return ut;it=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=v(),t=w(),r=st(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>e._`{allowedValues: ${t}}`},code(s){const{gen:n,data:o,$data:a,schema:i,schemaCode:c,it:u}=s;if(!a&&0===i.length)throw new Error("enum must have non-empty array");const d=i.length>=u.opts.loopEnum;let l;const f=()=>null!=l?l:l=(0,t.useFunc)(n,r.default);let h;if(d||a)h=n.let("valid"),s.block$data(h,function(){n.assign(h,!1),n.forOf("v",c,t=>n.if(e._`${f()}(${o}, ${t})`,()=>n.assign(h,!0).break()))});else{if(!Array.isArray(i))throw new Error("ajv implementation error");const t=n.const("vSchema",c);h=(0,e.or)(...i.map((r,s)=>function(t,r){const s=i[r];return"object"==typeof s&&null!==s?e._`${f()}(${o}, ${t}[${r}])`:e._`${o} === ${s}`}(t,s)))}s.pass(h)}};return ut.default=s,ut}function lt(){if(ct)return Me;ct=1,Object.defineProperty(Me,"__esModule",{value:!0});const e=function(){if(Te)return De;Te=1,Object.defineProperty(De,"__esModule",{value:!0});const e=v(),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}},s={message:({keyword:t,schemaCode:s})=>e.str`must be ${r[t].okStr} ${s}`,params:({keyword:t,schemaCode:s})=>e._`{comparison: ${r[t].okStr}, limit: ${s}}`},n={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:s,code(t){const{keyword:s,data:n,schemaCode:o}=t;t.fail$data(e._`${n} ${r[s].fail} ${o} || isNaN(${n})`)}};return De.default=n,De}(),t=function(){if(Ae)return Ve;Ae=1,Object.defineProperty(Ve,"__esModule",{value:!0});const e=v(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>e.str`must be multiple of ${t}`,params:({schemaCode:t})=>e._`{multipleOf: ${t}}`},code(t){const{gen:r,data:s,schemaCode:n,it:o}=t,a=o.opts.multipleOfPrecision,i=r.let("res"),c=a?e._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:e._`${i} !== parseInt(${i})`;t.fail$data(e._`(${n} === 0 || (${i} = ${s}/${n}, ${c}))`)}};return Ve.default=t,Ve}(),r=Le(),s=function(){if(Fe)return Ge;Fe=1,Object.defineProperty(Ge,"__esModule",{value:!0});const e=L(),t=v(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>t.str`must match pattern "${e}"`,params:({schemaCode:e})=>t._`{pattern: ${e}}`},code(r){const{data:s,$data:n,schema:o,schemaCode:a,it:i}=r,c=i.opts.unicodeRegExp?"u":"",u=n?t._`(new RegExp(${a}, ${c}))`:(0,e.usePattern)(r,o);r.fail$data(t._`!${u}.test(${s})`)}};return Ge.default=r,Ge}(),n=function(){if(He)return Je;He=1,Object.defineProperty(Je,"__esModule",{value:!0});const e=v(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const s="maxProperties"===t?"more":"fewer";return e.str`must NOT have ${s} than ${r} properties`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(t){const{keyword:r,data:s,schemaCode:n}=t,o="maxProperties"===r?e.operators.GT:e.operators.LT;t.fail$data(e._`Object.keys(${s}).length ${o} ${n}`)}};return Je.default=t,Je}(),o=Qe(),a=function(){if(Xe)return Ye;Xe=1,Object.defineProperty(Ye,"__esModule",{value:!0});const e=v(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const s="maxItems"===t?"more":"fewer";return e.str`must NOT have ${s} than ${r} items`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(t){const{keyword:r,data:s,schemaCode:n}=t,o="maxItems"===r?e.operators.GT:e.operators.LT;t.fail$data(e._`${s}.length ${o} ${n}`)}};return Ye.default=t,Ye}(),i=nt(),c=function(){if(ot)return at;ot=1,Object.defineProperty(at,"__esModule",{value:!0});const e=v(),t=w(),r=st(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>e._`{allowedValue: ${t}}`},code(s){const{gen:n,data:o,$data:a,schemaCode:i,schema:c}=s;a||c&&"object"==typeof c?s.fail$data(e._`!${(0,t.useFunc)(n,r.default)}(${o}, ${i})`):s.fail(e._`${c} !== ${o}`)}};return at.default=s,at}(),u=dt(),d=[e.default,t.default,r.default,s.default,n.default,o.default,a.default,i.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Me.default=d,Me}var ft,ht={},pt={};function mt(){if(ft)return pt;ft=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.validateAdditionalItems=void 0;const e=v(),t=w(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{parentSchema:r,it:n}=e,{items:o}=r;Array.isArray(o)?s(e,o):(0,t.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(r,s){const{gen:n,schema:o,data:a,keyword:i,it:c}=r;c.items=!0;const u=n.const("len",e._`${a}.length`);if(!1===o)r.setParams({len:s.length}),r.pass(e._`${u} <= ${s.length}`);else if("object"==typeof o&&!(0,t.alwaysValidSchema)(c,o)){const o=n.var("valid",e._`${u} <= ${s.length}`);n.if((0,e.not)(o),()=>function(o){n.forRange("i",s.length,u,s=>{r.subschema({keyword:i,dataProp:s,dataPropType:t.Type.Num},o),c.allErrors||n.if((0,e.not)(o),()=>n.break())})}(o)),r.ok(o)}}return pt.validateAdditionalItems=s,pt.default=r,pt}var yt,gt,vt={},$t={};function _t(){if(yt)return $t;yt=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.validateTuple=void 0;const e=v(),t=w(),r=L(),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:s,it:o}=e;if(Array.isArray(s))return n(e,"additionalItems",s);o.items=!0,(0,t.alwaysValidSchema)(o,s)||e.ok((0,r.validateArray)(e))}};function n(r,s,n=r.schema){const{gen:o,parentSchema:a,data:i,keyword:c,it:u}=r;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,i=a===e.minItems&&(a===e.maxItems||!1===e[s]);if(r.strictTuples&&!i){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${s} are not specified or different at path "${o}"`;(0,t.checkStrictMode)(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=t.mergeEvaluated.items(o,n.length,u.items));const d=o.name("valid"),l=o.const("len",e._`${i}.length`);n.forEach((s,n)=>{(0,t.alwaysValidSchema)(u,s)||(o.if(e._`${l} > ${n}`,()=>r.subschema({keyword:c,schemaProp:n,dataProp:n},d)),r.ok(d))})}return $t.validateTuple=n,$t.default=s,$t}var wt,bt={};var Pt,Et={};function St(){if(Pt)return Et;Pt=1,Object.defineProperty(Et,"__esModule",{value:!0});const e=v(),t=w(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:r}})=>void 0===r?e.str`must contain at least ${t} valid item(s)`:e.str`must contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>void 0===r?e._`{minContains: ${t}}`:e._`{minContains: ${t}, maxContains: ${r}}`},code(r){const{gen:s,schema:n,parentSchema:o,data:a,it:i}=r;let c,u;const{minContains:d,maxContains:l}=o;i.opts.next?(c=void 0===d?1:d,u=l):c=1;const f=s.const("len",e._`${a}.length`);if(r.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,t.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,t.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void r.fail();if((0,t.alwaysValidSchema)(i,n)){let t=e._`${f} >= ${c}`;return void 0!==u&&(t=e._`${t} && ${f} <= ${u}`),void r.pass(t)}i.items=!0;const h=s.name("valid");function p(){const t=s.name("_valid"),r=s.let("count",0);m(t,()=>s.if(t,()=>function(t){s.code(e._`${t}++`),void 0===u?s.if(e._`${t} >= ${c}`,()=>s.assign(h,!0).break()):(s.if(e._`${t} > ${u}`,()=>s.assign(h,!1).break()),1===c?s.assign(h,!0):s.if(e._`${t} >= ${c}`,()=>s.assign(h,!0)))}(r)))}function m(e,n){s.forRange("i",0,f,s=>{r.subschema({keyword:"contains",dataProp:s,dataPropType:t.Type.Num,compositeRule:!0},e),n()})}void 0===u&&1===c?m(h,()=>s.if(h,()=>s.break())):0===c?(s.let(h,!0),void 0!==u&&s.if(e._`${a}.length > 0`,p)):(s.let(h,!1),p()),r.result(h,()=>r.reset())}};return Et.default=r,Et}var kt,jt={};function Nt(){return kt||(kt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=v(),r=w(),s=L();e.error={message:({params:{property:e,depsCount:r,deps:s}})=>{const n=1===r?"property":"properties";return t.str`must have ${n} ${s} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:s,missingProperty:n}})=>t._`{property: ${e},
|
|
5
|
-
missingProperty: ${n},
|
|
6
|
-
depsCount: ${r},
|
|
7
|
-
deps: ${s}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const s in e){if("__proto__"===s)continue;(Array.isArray(e[s])?t:r)[s]=e[s]}return[t,r]}(e);o(e,t),a(e,r)}};function o(e,r=e.schema){const{gen:n,data:o,it:a}=e;if(0===Object.keys(r).length)return;const i=n.let("missing");for(const c in r){const u=r[c];if(0===u.length)continue;const d=(0,s.propertyInData)(n,o,c,a.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(d,()=>{for(const t of u)(0,s.checkReportMissingProp)(e,t)}):(n.if(t._`${d} && (${(0,s.checkMissingProp)(e,u,i)})`),(0,s.reportMissingProp)(e,i),n.else())}}function a(e,t=e.schema){const{gen:n,data:o,keyword:a,it:i}=e,c=n.name("valid");for(const u in t)(0,r.alwaysValidSchema)(i,t[u])||(n.if((0,s.propertyInData)(n,o,u,i.opts.ownProperties),()=>{const t=e.subschema({keyword:a,schemaProp:u},c);e.mergeValidEvaluated(t,c)},()=>n.var(c,!0)),e.ok(c))}e.validatePropertyDeps=o,e.validateSchemaDeps=a,e.default=n}(jt)),jt}var Ot,xt={};var It,Ct={};function Rt(){if(It)return Ct;It=1,Object.defineProperty(Ct,"__esModule",{value:!0});const e=L(),t=v(),r=k(),s=w(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>t._`{additionalProperty: ${e.additionalProperty}}`},code(n){const{gen:o,schema:a,parentSchema:i,data:c,errsCount:u,it:d}=n;if(!u)throw new Error("ajv implementation error");const{allErrors:l,opts:f}=d;if(d.props=!0,"all"!==f.removeAdditional&&(0,s.alwaysValidSchema)(d,a))return;const h=(0,e.allSchemaProperties)(i.properties),p=(0,e.allSchemaProperties)(i.patternProperties);function m(e){o.code(t._`delete ${c}[${e}]`)}function y(e){if("all"===f.removeAdditional||f.removeAdditional&&!1===a)m(e);else{if(!1===a)return n.setParams({additionalProperty:e}),n.error(),void(l||o.break());if("object"==typeof a&&!(0,s.alwaysValidSchema)(d,a)){const r=o.name("valid");"failing"===f.removeAdditional?(g(e,r,!1),o.if((0,t.not)(r),()=>{n.reset(),m(e)})):(g(e,r),l||o.if((0,t.not)(r),()=>o.break()))}}}function g(e,t,r){const o={keyword:"additionalProperties",dataProp:e,dataPropType:s.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(o,t)}o.forIn("key",c,r=>{h.length||p.length?o.if(function(r){let a;if(h.length>8){const t=(0,s.schemaRefOrVal)(d,i.properties,"properties");a=(0,e.isOwnProperty)(o,t,r)}else a=h.length?(0,t.or)(...h.map(e=>t._`${r} === ${e}`)):t.nil;return p.length&&(a=(0,t.or)(a,...p.map(s=>t._`${(0,e.usePattern)(n,s)}.test(${r})`))),(0,t.not)(a)}(r),()=>y(r)):y(r)}),n.ok(t._`${u} === ${r.default.errors}`)}};return Ct.default=n,Ct}var Tt,Mt={};var Dt,At={};var Vt,Ut={};var zt,qt={};var Kt,Lt={};var Ft,Gt={};var Ht,Jt={};var Bt,Wt,Qt={};function Xt(){if(Wt)return ht;Wt=1,Object.defineProperty(ht,"__esModule",{value:!0});const e=mt(),t=function(){if(gt)return vt;gt=1,Object.defineProperty(vt,"__esModule",{value:!0});const e=_t(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,e.validateTuple)(t,"items")};return vt.default=t,vt}(),r=_t(),s=function(){if(wt)return bt;wt=1,Object.defineProperty(bt,"__esModule",{value:!0});const e=v(),t=w(),r=L(),s=mt(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{schema:n,parentSchema:o,it:a}=e,{prefixItems:i}=o;a.items=!0,(0,t.alwaysValidSchema)(a,n)||(i?(0,s.validateAdditionalItems)(e,i):e.ok((0,r.validateArray)(e)))}};return bt.default=n,bt}(),n=St(),o=Nt(),a=function(){if(Ot)return xt;Ot=1,Object.defineProperty(xt,"__esModule",{value:!0});const e=v(),t=w(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>e._`{propertyName: ${t.propertyName}}`},code(r){const{gen:s,schema:n,data:o,it:a}=r;if((0,t.alwaysValidSchema)(a,n))return;const i=s.name("valid");s.forIn("key",o,t=>{r.setParams({propertyName:t}),r.subschema({keyword:"propertyNames",data:t,dataTypes:["string"],propertyName:t,compositeRule:!0},i),s.if((0,e.not)(i),()=>{r.error(!0),a.allErrors||s.break()})}),r.ok(i)}};return xt.default=r,xt}(),i=Rt(),c=function(){if(Tt)return Mt;Tt=1,Object.defineProperty(Mt,"__esModule",{value:!0});const e=se(),t=L(),r=w(),s=Rt(),n={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:o,schema:a,parentSchema:i,data:c,it:u}=n;"all"===u.opts.removeAdditional&&void 0===i.additionalProperties&&s.default.code(new e.KeywordCxt(u,s.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(a);for(const e of d)u.definedProperties.add(e);u.opts.unevaluated&&d.length&&!0!==u.props&&(u.props=r.mergeEvaluated.props(o,(0,r.toHash)(d),u.props));const l=d.filter(e=>!(0,r.alwaysValidSchema)(u,a[e]));if(0===l.length)return;const f=o.name("valid");for(const e of l)h(e)?p(e):(o.if((0,t.propertyInData)(o,c,e,u.opts.ownProperties)),p(e),u.allErrors||o.else().var(f,!0),o.endIf()),n.it.definedProperties.add(e),n.ok(f);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==a[e].default}function p(e){n.subschema({keyword:"properties",schemaProp:e,dataProp:e},f)}}};return Mt.default=n,Mt}(),u=function(){if(Dt)return At;Dt=1,Object.defineProperty(At,"__esModule",{value:!0});const e=L(),t=v(),r=w(),s=w(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:o,schema:a,data:i,parentSchema:c,it:u}=n,{opts:d}=u,l=(0,e.allSchemaProperties)(a),f=l.filter(e=>(0,r.alwaysValidSchema)(u,a[e]));if(0===l.length||f.length===l.length&&(!u.opts.unevaluated||!0===u.props))return;const h=d.strictSchema&&!d.allowMatchingProperties&&c.properties,p=o.name("valid");!0===u.props||u.props instanceof t.Name||(u.props=(0,s.evaluatedPropsToName)(o,u.props));const{props:m}=u;function y(e){for(const t in h)new RegExp(e).test(t)&&(0,r.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){o.forIn("key",i,a=>{o.if(t._`${(0,e.usePattern)(n,r)}.test(${a})`,()=>{const e=f.includes(r);e||n.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:s.Type.Str},p),u.opts.unevaluated&&!0!==m?o.assign(t._`${m}[${a}]`,!0):e||u.allErrors||o.if((0,t.not)(p),()=>o.break())})})}!function(){for(const e of l)h&&y(e),u.allErrors?g(e):(o.var(p,!0),g(e),o.if(p))}()}};return At.default=n,At}(),d=function(){if(Vt)return Ut;Vt=1,Object.defineProperty(Ut,"__esModule",{value:!0});const e=w(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:r,schema:s,it:n}=t;if((0,e.alwaysValidSchema)(n,s))return void t.fail();const o=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return Ut.default=t,Ut}(),l=function(){if(zt)return qt;zt=1,Object.defineProperty(qt,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:L().validateUnion,error:{message:"must match a schema in anyOf"}};return qt.default=e,qt}(),f=function(){if(Kt)return Lt;Kt=1,Object.defineProperty(Lt,"__esModule",{value:!0});const e=v(),t=w(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>e._`{passingSchemas: ${t.passing}}`},code(r){const{gen:s,schema:n,parentSchema:o,it:a}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const i=n,c=s.let("valid",!1),u=s.let("passing",null),d=s.name("_valid");r.setParams({passing:u}),s.block(function(){i.forEach((n,o)=>{let i;(0,t.alwaysValidSchema)(a,n)?s.var(d,!0):i=r.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},d),o>0&&s.if(e._`${d} && ${c}`).assign(c,!1).assign(u,e._`[${u}, ${o}]`).else(),s.if(d,()=>{s.assign(c,!0),s.assign(u,o),i&&r.mergeEvaluated(i,e.Name)})})}),r.result(c,()=>r.reset(),()=>r.error(!0))}};return Lt.default=r,Lt}(),h=function(){if(Ft)return Gt;Ft=1,Object.defineProperty(Gt,"__esModule",{value:!0});const e=w(),t={keyword:"allOf",schemaType:"array",code(t){const{gen:r,schema:s,it:n}=t;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=r.name("valid");s.forEach((r,s)=>{if((0,e.alwaysValidSchema)(n,r))return;const a=t.subschema({keyword:"allOf",schemaProp:s},o);t.ok(o),t.mergeEvaluated(a)})}};return Gt.default=t,Gt}(),p=function(){if(Ht)return Jt;Ht=1,Object.defineProperty(Jt,"__esModule",{value:!0});const e=v(),t=w(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>e.str`must match "${t.ifClause}" schema`,params:({params:t})=>e._`{failingKeyword: ${t.ifClause}}`},code(r){const{gen:n,parentSchema:o,it:a}=r;void 0===o.then&&void 0===o.else&&(0,t.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const i=s(a,"then"),c=s(a,"else");if(!i&&!c)return;const u=n.let("valid",!0),d=n.name("_valid");if(function(){const e=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);r.mergeEvaluated(e)}(),r.reset(),i&&c){const e=n.let("ifClause");r.setParams({ifClause:e}),n.if(d,l("then",e),l("else",e))}else i?n.if(d,l("then")):n.if((0,e.not)(d),l("else"));function l(t,s){return()=>{const o=r.subschema({keyword:t},d);n.assign(u,d),r.mergeValidEvaluated(o,u),s?n.assign(s,e._`${t}`):r.setParams({ifClause:t})}}r.pass(u,()=>r.error(!0))}};function s(e,r){const s=e.schema[r];return void 0!==s&&!(0,t.alwaysValidSchema)(e,s)}return Jt.default=r,Jt}(),m=function(){if(Bt)return Qt;Bt=1,Object.defineProperty(Qt,"__esModule",{value:!0});const e=w(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:s}){void 0===r.if&&(0,e.checkStrictMode)(s,`"${t}" without "if" is ignored`)}};return Qt.default=t,Qt}();return ht.default=function(y=!1){const g=[d.default,l.default,f.default,h.default,p.default,m.default,a.default,i.default,o.default,c.default,u.default];return y?g.push(t.default,s.default):g.push(e.default,r.default),g.push(n.default),g},ht}var Yt,Zt,er={},tr={};function rr(){if(Zt)return er;Zt=1,Object.defineProperty(er,"__esModule",{value:!0});const e=function(){if(Yt)return tr;Yt=1,Object.defineProperty(tr,"__esModule",{value:!0});const e=v(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>e.str`must match format "${t}"`,params:({schemaCode:t})=>e._`{format: ${t}}`},code(t,r){const{gen:s,data:n,$data:o,schema:a,schemaCode:i,it:c}=t,{opts:u,errSchemaPath:d,schemaEnv:l,self:f}=c;u.validateFormats&&(o?function(){const o=s.scopeValue("formats",{ref:f.formats,code:u.code.formats}),a=s.const("fDef",e._`${o}[${i}]`),c=s.let("fType"),d=s.let("format");s.if(e._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,()=>s.assign(c,e._`${a}.type || "string"`).assign(d,e._`${a}.validate`),()=>s.assign(c,e._`"string"`).assign(d,a)),t.fail$data((0,e.or)(!1===u.strictSchema?e.nil:e._`${i} && !${d}`,function(){const t=l.$async?e._`(${a}.async ? await ${d}(${n}) : ${d}(${n}))`:e._`${d}(${n})`,s=e._`(typeof ${d} == "function" ? ${t} : ${d}.test(${n}))`;return e._`${d} && ${d} !== true && ${c} === ${r} && !${s}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${d}"`}f.logger.warn(e())}();if(!0===o)return;const[i,c,h]=function(t){const r=t instanceof RegExp?(0,e.regexpCode)(t):u.code.formats?e._`${u.code.formats}${(0,e.getProperty)(a)}`:void 0,n=s.scopeValue("formats",{key:a,ref:t,code:r});return"object"!=typeof t||t instanceof RegExp?["string",t,n]:[t.type||"string",t.validate,e._`${n}.validate`]}(o);i===r&&t.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return e._`await ${h}(${n})`}return"function"==typeof c?e._`${h}(${n})`:e._`${h}.test(${n})`}())}())}};return tr.default=t,tr}(),t=[e.default];return er.default=t,er}var sr,nr,or={};function ar(){if(nr)return je;nr=1,Object.defineProperty(je,"__esModule",{value:!0});const e=Re(),t=lt(),r=Xt(),s=rr(),n=(sr||(sr=1,Object.defineProperty(or,"__esModule",{value:!0}),or.contentVocabulary=or.metadataVocabulary=void 0,or.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],or.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),or),o=[e.default,t.default,(0,r.default)(),s.default,n.metadataVocabulary,n.contentVocabulary];return je.default=o,je}var ir,cr,ur={},dr={};function lr(){if(cr)return ur;cr=1,Object.defineProperty(ur,"__esModule",{value:!0});const e=v(),t=(ir||(ir=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.DiscrError=void 0,(s=r||(dr.DiscrError=r={})).Tag="tag",s.Mapping="mapping"),dr);var r,s;const n=fe(),o=ue(),a=w(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:r}})=>e===t.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:t,tag:r,tagName:s}})=>e._`{error: ${t}, tag: ${s}, tagValue: ${r}}`},code(r){const{gen:s,data:i,schema:c,parentSchema:u,it:d}=r,{oneOf:l}=u;if(!d.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=c.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const h=s.let("valid",!1),p=s.const("tag",e._`${i}${(0,e.getProperty)(f)}`);function m(t){const n=s.name("valid"),o=r.subschema({keyword:"oneOf",schemaProp:t},n);return r.mergeEvaluated(o,e.Name),n}s.if(e._`typeof ${p} == "string"`,()=>function(){const i=function(){var e;const t={},r=i(u);let s=!0;for(let u=0;u<l.length;u++){let t=l[u];if((null==t?void 0:t.$ref)&&!(0,a.schemaHasRulesButRef)(t,d.self.RULES)){const e=t.$ref;if(t=n.resolveRef.call(d.self,d.schemaEnv.root,d.baseId,e),t instanceof n.SchemaEnv&&(t=t.schema),void 0===t)throw new o.default(d.opts.uriResolver,d.baseId,e)}const h=null===(e=null==t?void 0:t.properties)||void 0===e?void 0:e[f];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);s=s&&(r||i(t)),c(h,u)}if(!s)throw new Error(`discriminator: "${f}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(f)}function c(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)h(r,t)}}function h(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();s.if(!1);for(const t in i)s.elseIf(e._`${p} === ${t}`),s.assign(h,m(i[t]));s.else(),r.error(!1,{discrError:t.DiscrError.Mapping,tag:p,tagName:f}),s.endIf()}(),()=>r.error(!1,{discrError:t.DiscrError.Tag,tag:p,tagName:f})),r.ok(h)}};return ur.default=i,ur}const fr={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{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:[]}},type:["object","boolean"],properties:{$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:"#"}},default:!0};var hr;const pr=n((hr||(hr=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=Se(),s=ar(),n=lr(),o=fr,a=["/properties"],i="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=se();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=v();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var l=ae();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var f=ue();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(a,a.exports)),a.exports));var mr,yr={exports:{}};const gr=n((mr||(mr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={},s={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const r=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return()=>Math.floor(Math.random()*r)},seq:e=>{var t;const s=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return r[s]||(r[s]=0),()=>r[s]++}},n=Object.assign(function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,t,r){if(!r.opts.useDefaults||r.compositeRule)return()=>!0;const s={};for(const a in e)s[a]=o(e[a]);const n="empty"===r.opts.useDefaults;return t=>{for(const r in e)(void 0===t[r]||n&&(null===t[r]||""===t[r]))&&(t[r]=s[r]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}},{DEFAULTS:s});function o(e){return"object"==typeof e?function({func:e,args:t}){const r=s[e];return a(e,r),r(t)}(e):function(e=""){const t=s[e];return a(e,t),t()}(e)}function a(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t.default=n,e.exports=n}(yr,yr.exports)),yr.exports)),vr=!0,$r=()=>{const e=URL.createObjectURL(new Blob),t=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),t};gr.DEFAULTS.uuid=()=>$r;const _r={get(){return this.children.filter(({enabled:e})=>e)}},wr={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},br={get(){return this.$siblings[this.$index+1]}},Pr={get(){return this.$siblings[this.$index-1]}},Er={get(){return this.siblings.filter(({enabled:e})=>e)}},Sr=new pr({code:{esm:!0},coerceTypes:!0,keywords:[gr()],removeAdditional:!0,schemas:[{$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"},{$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},{$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"},{$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"},{$id:"urn:jsonschema:feed",additionalProperties:!1,properties:{feed_url:{type:"string"},home_page_url:{type:"string"},items:{default:[],items:{additionalProperties:!1,dynamicDefaults:{date_published:"datetime",id:"uuid"},properties:{attachments:{default:[],items:{additionalProperties:!1,properties:{mime_type:{default:"",type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},content_html:{default:"",type:"string"},date_published:{type:"string"},id:{type:"string"},title:{default:"",type:"string"},url:{type:"string"}},type:"object"},type:"array"},title:{default:"",type:"string"},version:{default:"https://jsonfeed.org/version/1",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],type:"string"}},type:"object"},{$id:"urn:jsonschema:fonts",items:{type:"string"},type:"array"},{$id:"urn:jsonschema:log",additionalProperties:!1,properties:{messages:{default:[],items:{additionalProperties:!1,properties:{content:{default:"[]",items:{additionalProperties:!1,properties:{text:{default:"",type:"string"},type:{default:"text",type:"string"}},type:"object"},type:"array"},role:{default:"user",type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"}],useDefaults:!0}),kr=async e=>(await fetch(e)).text(),jr=r({}),Nr=r([]),Or=e=>Object.fromEntries(e.map(e=>[e.toLowerCase().replaceAll(" ","_"),e])),xr={get(){return this.icon&&`i-${this.icon}`}},Ir=r({}),Cr=r([]),Rr={get(){const e=this.branch.slice(1);return e.some(({name:e})=>!e)?void 0:e.map(({name:e})=>e).join("/").replaceAll(" ","_")}},Tr={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},Mr={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};Sr.getSchema("urn:jsonschema:credentials");const Dr=Sr.getSchema("urn:jsonschema:data"),Ar=Sr.getSchema("urn:jsonschema:feed"),Vr=Sr.getSchema("urn:jsonschema:fonts"),Ur=Sr.getSchema("urn:jsonschema:importmap");Sr.getSchema("urn:jsonschema:log");const{nodes:zr,nodesMap:qr}=((s,{branch:n="branch",children:o="children",id:a="id",index:i="index",next:c="next",parent:u="parent",prev:d="prev",siblings:l="siblings"}={})=>{const f={[n]:{get(){const e=[this];for(;e[0]?.[u];)e.unshift(e[0][u]);return e}},[i]:{get(){return this[l].findIndex(e=>this[a]===e[a])}},[c]:{get(){return this[l][this[i]+1]}},[d]:{get(){return this[l][this[i]-1]}}},h=(e,t)=>e.toReversed().map(r=>({node:r,parent:{configurable:!0,value:t},siblings:{configurable:!0,value:e}})),p=function*(e){const t=h(e);for(;t.length>0;){const{node:e,parent:r,siblings:s}=t.pop()??{};e&&r&&s&&(Object.defineProperties(e,{...f,[u]:r,[l]:s}),yield e,t.push(...h(e[o]??[],e)))}},m=e(()=>[...p(t(s)?s:r(s))]),y=e(()=>Object.fromEntries(m.value.map(e=>[e[a],e]))),g=(e,t)=>{const r=y.value[e];if(r){const[e]=m.value,s=r[o],n=r[i],f=r[c],h=n+1,p=r[u],y=r[d],g=n-1,v=r[l];switch(t){case"add":{const e=URL.createObjectURL(new Blob),t=e.split("/").pop();return URL.revokeObjectURL(e),p&&Array.isArray(s)?s.unshift({[a]:t}):v.splice(n+1,0,{[a]:t}),t}case"down":n<v.length-1&&v[n]&&v[h]&&([v[n],v[h]]=[v[h],v[n]]);break;case"left":if(p?.[u])return p[l].splice(p[i]+1,0,...v.splice(n,1)),p[a];break;case"remove":if(p){const t=f?.[a]??y?.[a]??p[a]??e?.[a];return v.splice(n,1),t}break;case"right":if(y){const e=y[o]??[],t=y[a];return y[o]=[...e,...v.splice(n,1)],t}break;case"up":n&&v[n]&&v[g]&&([v[g],v[n]]=[v[n],v[g]])}}};return{add:e=>g(e,"add"),down:e=>g(e,"down"),left:e=>g(e,"left"),nodes:m,nodesMap:y,remove:e=>g(e,"remove"),right:e=>g(e,"right"),up:e=>g(e,"up")}})(Cr);s(jr,async e=>{await(Ar?.(e))},{immediate:vr}),s(Nr,async e=>{await(Vr?.(e))},{immediate:vr}),s(Ir,async e=>{await(Ur?.(e))},{immediate:vr}),s(zr,async e=>{console.log(e),await(Dr?.(e))?e.forEach(e=>{Object.defineProperties(e,{$children:_r,$index:wr,$next:br,$prev:Pr,$siblings:Er,i:xr,path:Rr,title:Tr,to:Mr})}):(Cr.length=0,Cr.push({}))},{immediate:vr});export{qr as a,Or as b,kr as c,Nr as f,n as g,Cr as n,zr as p,$r as u};
|