@vuebro/runtime 2.0.2 → 2.1.1
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/ajv-6LTVMkJm.js +8 -0
- package/dist/assets/index-hBoKIo1_.js +15 -0
- package/dist/assets/markdown-DmXmAkEm.js +204 -0
- package/dist/assets/unocss-CEUy1_Um.js +427 -0
- package/dist/index.html +6 -5
- package/package.json +11 -9
- package/dist/assets/index-D8BYfI6g.js +0 -421
- package/dist/assets/markdown-DLoCDFOz.js +0 -204
- package/dist/assets/shared-B__Q9CbY.js +0 -17
- /package/dist/assets/{loader-sfc.esm-browser.prod-2.4.5.js → loader-sfc.esm-browser.prod-2.4.7.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{toValue as S,isRef as Q,hasInjectionContext as so,inject as io,ref as ce,watchEffect as Oe,getCurrentInstance as je,onBeforeUnmount as _t,onDeactivated as ao,onActivated as co,computed as C,toRef as E,toRefs as le,reactive as q,watch as H,unref as z,onMounted as kt,nextTick as lo,getCurrentScope as uo,onScopeDispose as fo,readonly as po,customRef as ho,shallowRef as N,defineComponent as Z,resolveComponent as mo,createBlock as Y,openBlock as F,withCtx as xe,resolveDynamicComponent as Me,defineAsyncComponent as go,createElementBlock as re,Fragment as St,createVNode as yo,createElementVNode as U,onUnmounted as wo,renderList as vo,withDirectives as bo,mergeProps as _o,Suspense as ko,createCommentVNode as So,normalizeProps as To,guardReactiveProps as Eo,createApp as Po}from"vue";import{d as $o,w as Co,_ as Ao,p as Lo,a as Oo,b as jo,c as xo,e as Mo,t as Ro,M as Ho,i as Fo}from"./unocss-CEUy1_Um.js";import{a as Re,r as Io,c as No}from"./ajv-6LTVMkJm.js";import{c as Do,r as Wo,M as Uo,E as zo,j as qo,i as Vo,U as Bo,z as Go,w as Jo,k as Ko,L as Qo,b as Xo,d as Yo,g as Zo,y as er,a as tr,$ as or,m as rr,e as nr,f as sr,h as ir,l as ar,n as cr,o as lr,p as ur,t as fr,q as pr,s as dr}from"./markdown-DmXmAkEm.js";import{useRoute as hr,createRouter as mr,createWebHistory as gr}from"vue-router";import yr from"@vuebro/loader-sfc";import"./katex-UTpUfKgT.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function o(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=o(r);fetch(r.href,s)}})();const wr=new Set(["link","style","script","noscript"]),vr=new Set(["title","titleTemplate","script","style","noscript"]),Be=new Set(["base","meta","link","style","script","noscript"]),br=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),_r=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),kr=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Sr=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Tr=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const _e=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ge={base:-10,title:10},Er={critical:-8,high:-1,low:2},Je={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}},Pr=/@import/,K=e=>e===""||e===!0;function $r(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let o=100;const n=Er[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Je;if(t.tag in Ge)o=Ge[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(o=Je.meta[s])}else if(t.tag==="link"&&t.props.rel)o=r.link[t.props.rel];else if(t.tag==="script"){const s=String(t.props.type);K(t.props.async)?o=r.script.async:t.props.src&&!K(t.props.defer)&&!K(t.props.async)&&s!=="module"&&!s.endsWith("json")||t.innerHTML&&!s.endsWith("json")?o=r.script.sync:(K(t.props.defer)&&t.props.src&&!K(t.props.async)||s==="module")&&(o=r.script.defer)}else t.tag==="style"&&(o=t.innerHTML&&Pr.test(t.innerHTML)?r.style.imported:r.style.sync);return(o||100)+n}const ue="%separator";function Cr(e,t,o=!1){let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const r=t.indexOf(".");n=e[t.substring(0,r)]?.[t.substring(r+1)]}else n=e[t];if(n!==void 0)return o?(n||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):n||""}function te(e,t,o,n=!1){if(typeof e!="string"||!e.includes("%"))return e;let r=e;try{r=decodeURI(e)}catch{}const s=r.match(/%\w+(?:\.\w+)?/g);if(!s)return e;const a=e.includes(ue);return e=e.replace(/%\w+(?:\.\w+)?/g,i=>{if(i===ue||!s.includes(i))return i;const l=Cr(t,i.slice(1),n);return l!==void 0?l:i}).trim(),a&&(e=e.split(ue).map(i=>i.trim()).filter(i=>i!=="").join(o?` ${o} `:" ")),e}const Ke=e=>e.includes(":key")?e:e.split(":").join(":key:"),Ar={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const o of e.tags){const n=o.tagPriority;if(!n)continue;const r=String(n);if(r.startsWith("before:")){const s=Ke(r.slice(7)),a=e.tagMap.get(s);a&&(typeof a.tagPriority=="number"&&(o.tagPriority=a.tagPriority),o._p=a._p-1,t=!0)}else if(r.startsWith("after:")){const s=Ke(r.slice(6)),a=e.tagMap.get(s);a&&(typeof a.tagPriority=="number"&&(o.tagPriority=a.tagPriority),o._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(_e))}}},Lr={meta:"content",link:"href",htmlAttrs:"lang"},Or=["innerHTML","textContent"],jr=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const o=t.tags.filter(n=>n.tag==="templateParams"&&n.mode==="server")?.[0]?.props||{};Object.keys(o).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...o}})},"tags:resolve":({tagMap:t,tags:o})=>{const n=t.get("templateParams")?.props||{},r=n.separator||"|";delete n.separator,n.pageTitle=te(n.pageTitle||e._title||"",n,r);for(const s of o){if(s.processTemplateParams===!1)continue;const a=Lr[s.tag];if(a&&typeof s.props[a]=="string")s.props[a]=te(s.props[a],n,r);else if(s.processTemplateParams||s.tag==="titleTemplate"||s.tag==="title")for(const i of Or)typeof s[i]=="string"&&(s[i]=te(s[i],n,r,s.tag==="script"&&s.props.type.endsWith("json")))}e._templateParams=n,e._separator=r},"tags:afterResolve":({tagMap:t})=>{const o=t.get("title");o?.textContent&&o.processTemplateParams!==!1&&(o.textContent=te(o.textContent,e._templateParams,e._separator))}}}),Qe=["og:url","og:image","og:image:secure_url","twitter:image","twitter:image:src","og:video","og:video:secure_url","og:see_also"];function xr(e){return t=>{let o=e.canonicalHost||(t.ssr?"":window.location.origin);!o.startsWith("http")&&!o.startsWith("//")&&(o=`https://${o}`),o=new URL(o).origin;function n(r){if(e?.customResolver)return e.customResolver(r);if(r.startsWith("http")||r.startsWith("//"))return r;try{return new URL(r,o).toString()}catch{return r}}return{key:"canonical",hooks:{"tags:resolve":r=>{for(const s of r.tags)s.tag==="meta"&&(Qe.includes(s.props?.property)||Qe.includes(s.props?.name))?s.props.content=n(s.props.content):s.tag==="link"&&s.props.rel==="canonical"&&(s.props.href=n(s.props.href))}}}}}function Mr(e={}){return t=>(t.push({meta:[{name:"twitter:card",content:e.twitterCard||"summary_large_image",tagPriority:"low"},{property:"og:title",tagPriority:"low","data-infer":""},{property:"og:description",tagPriority:"low","data-infer":""}]}),{key:"infer-seo-meta",hooks:{"tags:beforeResolve":({tagMap:o})=>{let n=t._titleTemplate||t._title;const r=o.get("meta:og:title");typeof r?.props["data-infer"]<"u"&&(typeof n=="function"&&(n=n(t._title)),r.props.content=e.ogTitle?e.ogTitle(n):n||"",r.processTemplateParams=!0);const s=o.get("meta:description")?.props?.content,a=o.get("meta:og:description");typeof a?.props["data-infer"]<"u"&&(a.props.content=e.ogDescription?e.ogDescription(s):s||"",a.processTemplateParams=!0)}}})}function ke(e,t={},o){for(const n in e){const r=e[n],s=o?`${o}:${n}`:n;typeof r=="object"&&r!==null?ke(r,t,s):typeof r=="function"&&(t[s]=r)}return t}const Rr={run:e=>e()},Hr=()=>Rr,Tt=typeof console.createTask<"u"?console.createTask:Hr;function Fr(e,t){const o=t.shift(),n=Tt(o);return e.reduce((r,s)=>r.then(()=>n.run(()=>s(...t))),Promise.resolve())}function Ir(e,t){const o=t.shift(),n=Tt(o);return Promise.all(e.map(r=>n.run(()=>r(...t))))}function fe(e,t){for(const o of[...e])o(t)}class Nr{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,o,n={}){if(!t||typeof o!="function")return()=>{};const r=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let a=s.message;a||(a=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!o.name)try{Object.defineProperty(o,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(o),()=>{o&&(this.removeHook(t,o),o=void 0)}}hookOnce(t,o){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,o(...s));return n=this.hook(t,r),n}removeHook(t,o){if(this._hooks[t]){const n=this._hooks[t].indexOf(o);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,o){this._deprecatedHooks[t]=typeof o=="string"?{to:o}:o;const n=this._hooks[t]||[];delete this._hooks[t];for(const r of n)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const o in t)this.deprecateHook(o,t[o])}addHooks(t){const o=ke(t),n=Object.keys(o).map(r=>this.hook(r,o[r]));return()=>{for(const r of n.splice(0,n.length))r()}}removeHooks(t){const o=ke(t);for(const n in o)this.removeHook(n,o[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...o){return o.unshift(t),this.callHookWith(Fr,t,...o)}callHookParallel(t,...o){return o.unshift(t),this.callHookWith(Ir,t,...o)}callHookWith(t,o,...n){const r=this._before||this._after?{name:o,args:n,context:{}}:void 0;this._before&&fe(this._before,r);const s=t(o in this._hooks?[...this._hooks[o]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&r&&fe(this._after,r)}):(this._after&&r&&fe(this._after,r),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const o=this._before.indexOf(t);o!==-1&&this._before.splice(o,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const o=this._after.indexOf(t);o!==-1&&this._after.splice(o,1)}}}}function Dr(){return new Nr}const Wr=["name","property","http-equiv"],Ur=new Set(["viewport","description","keywords","robots"]);function Et(e){const t=e.split(":");return t.length?Tr.has(t[1]):!1}function Se(e){const{props:t,tag:o}=e;if(_r.has(o))return o;if(o==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of Wr)if(t[n]!==void 0){const r=t[n],s=r&&typeof r=="string"&&r.includes(":"),a=r&&Ur.has(r),l=!(s||a)&&e.key?`:key:${e.key}`:"";return`${o}:${r}${l}`}}if(e.key)return`${o}:key:${e.key}`;if(t.id)return`${o}:id:${t.id}`;if(vr.has(o)){const n=e.textContent||e.innerHTML;if(n)return`${o}:content:${n}`}}function Xe(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(([n,r])=>`${n}:${String(r)}`).join(",")}`}function ne(e,t,o){typeof e==="function"&&(!o||o!=="titleTemplate"&&!(o[0]==="o"&&o[1]==="n"))&&(e=e());const r=t?t(o,e):e;if(Array.isArray(r))return r.map(s=>ne(s,t));if(r?.constructor===Object){const s={};for(const a of Object.keys(r))s[a]=ne(r[a],t,a);return s}return r}function zr(e,t){const o=e==="style"?new Map:new Set;function n(r){if(r==null||r===void 0)return;const s=String(r).trim();if(s)if(e==="style"){const[a,...i]=s.split(":").map(l=>l?l.trim():"");a&&i.length&&o.set(a,i.join(":"))}else s.split(" ").filter(Boolean).forEach(a=>o.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(r=>n(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,s])=>{s&&s!=="false"&&(e==="style"?o.set(String(r).trim(),String(s)):n(r))}),o}function Pt(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([o,n])=>{if(n===null){e.props[o]=null;return}if(o==="class"||o==="style"){e.props[o]=zr(o,n);return}if(kr.has(o)){if(["textContent","innerHTML"].includes(o)&&typeof n=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[o]=JSON.stringify(n)}else e[o]=n;return}const r=String(n),s=o.startsWith("data-"),a=e.tag==="meta"&&o==="content";r==="true"||r===""?e.props[o]=s||a?r:!0:!n&&s&&r==="false"?e.props[o]="false":n!==void 0&&(e.props[o]=n)}),e):e}function qr(e,t){const o=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Pt({tag:e,props:{}},o);return n.key&&wr.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(r=>({...n,props:{...n.props,content:r}})):n}function Vr(e,t){if(!e)return[];typeof e=="function"&&(e=e());const o=(r,s)=>{for(let a=0;a<t.length;a++)s=t[a](r,s);return s};e=o(void 0,e);const n=[];return e=ne(e,o),Object.entries(e||{}).forEach(([r,s])=>{if(s!==void 0)for(const a of Array.isArray(s)?s:[s])n.push(qr(r,a))}),n.flat()}function Ye(e,t){const o=typeof t=="function"?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 Br(e={}){const t=Dr();t.addHooks(e.hooks||{});const o=!e.document,n=new Map,r=new Map,s=new Set,a={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:o,entries:n,headEntries(){return[...n.values()]},use:i=>Ye(a,i),push(i,l){const f={...l||{}};delete f.head;const c=f._index??a._entryCount++,g={_i:c,input:i,options:f},h={_poll(u=!1){a.dirty=!0,!u&&s.add(c),t.callHook("entries:updated",a)},dispose(){n.delete(c)&&a.invalidate()},patch(u){(!f.mode||f.mode==="server"&&o||f.mode==="client"&&!o)&&(g.input=u,n.set(c,g),h._poll())}};return h.patch(i),h},async resolveTags(){const i={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",i);s.size;){const h=s.values().next().value;s.delete(h);const u=n.get(h);if(u){const p={tags:Vr(u.input,e.propResolvers||[]).map(d=>Object.assign(d,u.options)),entry:u};await t.callHook("entries:normalize",p),u._tags=p.tags.map((d,m)=>(d._w=$r(a,d),d._p=(u._i<<10)+m,d._d=Se(d),d))}}let l=!1;i.entries.flatMap(h=>(h._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(_e).reduce((h,u)=>{const p=String(u._d||u._p);if(!h.has(p))return h.set(p,u);const d=h.get(p);if((u?.tagDuplicateStrategy||(Sr.has(u.tag)?"merge":null)||(u.key&&u.key===d.key?"merge":null))==="merge"){const w={...d.props};Object.entries(u.props).forEach(([y,_])=>w[y]=y==="style"?new Map([...d.props.style||new Map,..._]):y==="class"?new Set([...d.props.class||new Set,..._]):_),h.set(p,{...u,props:w})}else u._p>>10===d._p>>10&&u.tag==="meta"&&Et(p)?(h.set(p,Object.assign([...Array.isArray(d)?d:[d],u],u)),l=!0):(u._w===d._w?u._p>d._p:u?._w<d?._w)&&h.set(p,u);return h},i.tagMap);const f=i.tagMap.get("title"),c=i.tagMap.get("titleTemplate");if(a._title=f?.textContent,c){const h=c?.textContent;if(a._titleTemplate=h,h){let u=typeof h=="function"?h(f?.textContent):h;typeof u=="string"&&!a.plugins.has("template-params")&&(u=u.replace("%s",f?.textContent||"")),f?u===null?i.tagMap.delete("title"):i.tagMap.set("title",{...f,textContent:u}):(c.tag="title",c.textContent=u)}}i.tags=Array.from(i.tagMap.values()),l&&(i.tags=i.tags.flat().sort(_e)),await t.callHook("tags:beforeResolve",i),await t.callHook("tags:resolve",i),await t.callHook("tags:afterResolve",i);const g=[];for(const h of i.tags){const{innerHTML:u,tag:p,props:d}=h;if(br.has(p)&&!(Object.keys(d).length===0&&!h.innerHTML&&!h.textContent)&&!(p==="meta"&&!d.content&&!d["http-equiv"]&&!d.charset)){if(p==="script"&&u){if(String(d.type).endsWith("json")){const m=typeof u=="string"?u:JSON.stringify(u);h.innerHTML=m.replace(/</g,"\\u003C")}else typeof u=="string"&&(h.innerHTML=u.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));h._d=Se(h)}g.push(h)}}return g},invalidate(){for(const i of n.values())s.add(i._i);a.dirty=!0,t.callHook("entries:updated",a)}};return(e?.plugins||[]).forEach(i=>Ye(a,i)),a.hooks.callHook("init",a),e.init?.forEach(i=>i&&a.push(i)),a}async function $t(e,t={}){const o=t.document||e.resolvedOptions.document;if(!o||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const s=new Map,a=new Promise(u=>{e.resolveTags().then(p=>{u(p.map(d=>{const m=s.get(d._d)||0,w={tag:d,id:(m?`${d._d}:${m}`:d._d)||Xe(d),shouldRender:!0};return d._d&&Et(d._d)&&s.set(d._d,m+1),w}))})});let i=e._dom;if(!i){i={title:o.title,elMap:new Map().set("htmlAttrs",o.documentElement).set("bodyAttrs",o.body)};for(const u of["body","head"]){const p=o[u]?.children;for(const d of p){const m=d.tagName.toLowerCase();if(!Be.has(m))continue;const w=Pt({tag:m,props:{}},{innerHTML:d.innerHTML,...d.getAttributeNames().reduce((y,_)=>(y[_]=d.getAttribute(_),y),{})||{}});if(w.key=d.getAttribute("data-hid")||void 0,w._d=Se(w)||Xe(w),i.elMap.has(w._d)){let y=1,_=w._d;for(;i.elMap.has(_);)_=`${w._d}:${y++}`;i.elMap.set(_,d)}else i.elMap.set(w._d,d)}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function l(u,p,d){const m=`${u}:${p}`;i.sideEffects[m]=d,delete i.pendingSideEffects[m]}function f({id:u,$el:p,tag:d}){const m=d.tag.endsWith("Attrs");i.elMap.set(u,p),m||(d.textContent&&d.textContent!==p.textContent&&(p.textContent=d.textContent),d.innerHTML&&d.innerHTML!==p.innerHTML&&(p.innerHTML=d.innerHTML),l(u,"el",()=>{p?.remove(),i.elMap.delete(u)}));for(const w in d.props){if(!Object.prototype.hasOwnProperty.call(d.props,w))continue;const y=d.props[w];if(w.startsWith("on")&&typeof y=="function"){const b=p?.dataset;if(b&&b[`${w}fired`]){const T=w.slice(0,-5);y.call(p,new Event(T.substring(2)))}p.getAttribute(`data-${w}`)!==""&&((d.tag==="bodyAttrs"?o.defaultView:p).addEventListener(w.substring(2),y.bind(p)),p.setAttribute(`data-${w}`,""));continue}const _=`attr:${w}`;if(w==="class"){if(!y)continue;for(const b of y)m&&l(u,`${_}:${b}`,()=>p.classList.remove(b)),!p.classList.contains(b)&&p.classList.add(b)}else if(w==="style"){if(!y)continue;for(const[b,T]of y)l(u,`${_}:${b}`,()=>{p.style.removeProperty(b)}),p.style.setProperty(b,T)}else y!==!1&&y!==null&&(p.getAttribute(w)!==y&&p.setAttribute(w,y===!0?"":String(y)),m&&l(u,_,()=>p.removeAttribute(w)))}}const c=[],g={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await a;for(const u of h){const{tag:p,shouldRender:d,id:m}=u;if(d){if(p.tag==="title"){o.title=p.textContent,l("title","",()=>o.title=i.title);continue}u.$el=u.$el||i.elMap.get(m),u.$el?f(u):Be.has(p.tag)&&c.push(u)}}for(const u of c){const p=u.tag.tagPosition||"head";u.$el=o.createElement(u.tag.tag),f(u),g[p]=g[p]||o.createDocumentFragment(),g[p].appendChild(u.$el)}for(const u of h)await e.hooks.callHook("dom:renderTag",u,o,l);g.head&&o.head.appendChild(g.head),g.bodyOpen&&o.body.insertBefore(g.bodyOpen,o.body.firstChild),g.bodyClose&&o.body.appendChild(g.bodyClose);for(const u in i.pendingSideEffects)i.pendingSideEffects[u]();e._dom=i,await e.hooks.callHook("dom:rendered",{renders:h}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Gr(e={}){const t=e.domOptions?.render||$t;e.document=e.document||(typeof window<"u"?document:void 0);const o=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Br({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[o?JSON.parse(o):!1,...e.init||[]]})}function Jr(e,t){let o=0;return()=>{const n=++o;t(()=>{o===n&&e()})}}const Kr=(e,t)=>Q(t)?S(t):t,Ct="usehead";function Qr(e){return{install(o){o.config.globalProperties.$unhead=e,o.config.globalProperties.$head=e,o.provide(Ct,e)}}.install}function Xr(){if(so()){const e=io(Ct);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 At(e,t={}){const o=t.head||Xr();return o.ssr?o.push(e||{},t):Yr(o,e,t)}function Yr(e,t,o={}){const n=ce(!1);let r;return Oe(()=>{const a=n.value?{}:ne(t,Kr);r?r.patch(a):r=e.push(a,o)}),je()&&(_t(()=>{r.dispose()}),ao(()=>{n.value=!0}),co(()=>{n.value=!1})),r}function Zr(e={}){const t=Gr({domOptions:{render:Jr(()=>$t(t),o=>setTimeout(o,0))},...e});return t.install=Qr(t),t}function en(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const tn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,on=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,o){if(t===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*t*o)/o;if(typeof e!="string")return e;const n=e.split(tn);if(n===null||!n.length)return e;const r=[];let s=n.shift(),a=on.test(s);for(;;){if(a){const i=parseFloat(s);isNaN(i)?r.push(s):r.push(Math.ceil(i*t*o)/o)}else r.push(s);if(s=n.shift(),s===void 0)return r.join("");a=!a}}const rn=Object.freeze({left:0,top:0,width:16,height:16}),ie=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Lt=Object.freeze({...rn,...ie}),nn=Object.freeze({...Lt,body:"",hidden:!1}),sn=Object.freeze({width:null,height:null}),Ot=Object.freeze({...sn,...ie});function an(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),s=e.indexOf("</"+t);if(r===-1||s===-1)break;const a=e.indexOf(">",s);if(a===-1)break;o+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:o,content:e}}function cn(e,t){return e?"<defs>"+e+"</defs>"+t:t}function ln(e,t,o){const n=an(e);return cn(n.defs,t+n.content+o)}const He=e=>e==="unset"||e==="undefined"||e==="none";function un(e,t){const o={...Lt,...e},n={...Ot,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(d=>{const m=[],w=d.hFlip,y=d.vFlip;let _=d.rotate;w?y?_+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):y&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let b;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:b=r.height/2+r.top,m.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:b=r.width/2+r.left,m.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}_%2===1&&(r.left!==r.top&&(b=r.left,r.left=r.top,r.top=b),r.width!==r.height&&(b=r.width,r.width=r.height,r.height=b)),m.length&&(s=ln(s,'<g transform="'+m.join(" ")+'">',"</g>"))});const a=n.width,i=n.height,l=r.width,f=r.height;let c,g;a===null?(g=i===null?"1em":i==="auto"?f:i,c=se(g,l/f)):(c=a==="auto"?l:a,g=i===null?se(c,f/l):i==="auto"?f:i);const h={},u=(d,m)=>{He(m)||(h[d]=m.toString())};u("width",c),u("height",g);const p=[r.left,r.top,l,f];return h.viewBox=p.join(" "),{attributes:h,viewBox:p,body:s}}const fn=/\swidth\s*=\s*["']([\w.]+)["']/,pn=/\sheight\s*=\s*["']([\w.]+)["']/,pe=/<svg\s+/;function dn(e,t,o){const n=e.slice(0,e.indexOf(">")),r=(s,a)=>{const i=a.exec(n),l=i!=null,f=t[s];return!f&&!He(f)&&(typeof o=="number"?o>0&&(t[s]=se(i?.[1]??"1em",o)):i&&(t[s]=i[1])),l};return[r("width",fn),r("height",pn)]}async function jt(e,t,o,n,r,s){const{scale:a,addXmlNs:i=!1}=n??{},{additionalProps:l={},iconCustomizer:f}=n?.customizations??{},c=await r?.()??{};await f?.(t,o,c),Object.keys(l).forEach(d=>{const m=l[d];m!=null&&(c[d]=m)}),s?.(c);const[g,h]=dn(e,c,a);i&&(!e.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const u=Object.keys(c).map(d=>d==="width"&&g||d==="height"&&h?null:`${d}="${c[d]}"`).filter(d=>d!=null);if(u.length&&(e=e.replace(pe,`<svg ${u.join(" ")} `)),n){const{defaultStyle:d,defaultClass:m}=n;m&&!e.includes("class=")&&(e=e.replace(pe,`<svg class="${m}" `)),d&&!e.includes("style=")&&(e=e.replace(pe,`<svg style="${d}" `))}const p=n?.usedProps;return p&&(Object.keys(l).forEach(d=>{const m=c[d];m!=null&&(p[d]=m)}),typeof c.width<"u"&&c.width!==null&&(p.width=c.width),typeof c.height<"u"&&c.height!==null&&(p.height=c.height)),e}async function Ze(e,t,o,n){let r;try{if(typeof e=="function")r=await e(o);else{const s=e[o];r=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${o}" in "${t}":`,s);return}if(r){const s=r.indexOf("<svg");s>0&&(r=r.slice(s));const{transform:a}=n?.customizations??{};return r=typeof a=="function"?await a(r,t,o):r,r.startsWith("<svg")?await jt(n?.customizations?.trimCustomSvg===!0?en(r):r,t,o,n,void 0):(console.warn(`Custom icon "${o}" in "${t}" is not a valid SVG`),r)}}function hn(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}function et(e,t){const o=hn(e,t);for(const n in nn)n in ie?n in e&&!(n in o)&&(o[n]=ie[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function mn(e,t){const o=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function s(a){if(o[a])return r[a]=[];if(!(a in r)){r[a]=null;const i=n[a]&&n[a].parent,l=i&&s(i);l&&(r[a]=[i].concat(l))}return r[a]}return(t||Object.keys(o).concat(Object.keys(n))).forEach(s),r}function tt(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let s={};function a(i){s=et(n[i]||r[i],s)}return a(t),o.forEach(a),et(e,s)}function gn(e,t){if(e.icons[t])return tt(e,t,[]);const o=mn(e,[t])[t];return o?tt(e,t,o):null}async function xt(e,t,o,n){let r;const{customize:s}=n?.customizations??{};for(const a of o)if(r=gn(e,a),r){let i={...Ot};typeof s=="function"&&(r=Object.assign({},r),i=s(i,r,`${t}:${a}`)??i);const{attributes:{width:l,height:f,...c},body:g}=un(r,i),h=n?.scale;return await jt(`<svg >${g}</svg>`,t,a,n,()=>({...c}),u=>{const p=(d,m)=>{const w=u[d];let y;if(!He(w)){if(w)return;typeof h=="number"?h&&(y=se(m??"1em",h)):y=m}y?u[d]=y:delete u[d]};p("width",l),p("height",f)})}}const Mt=async(e,t,o)=>{const n=o?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(t)}catch(s){console.warn(`Failed to load custom icon "${t}" in "${e}":`,s);return}if(r){if(typeof r=="string")return await Ze(()=>r,e,t,o);if("icons"in r){const s=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await xt(r,e,s,o)}}}else return await Ze(n,e,t,o)};function yn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ot(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" ')),yn(t)}var rt={};function wn(){const e=typeof process<"u"&&process.stdout;return{isNode:e,isVSCode:e&&!!rt.VSCODE_CWD,isESLint:e&&!!rt.ESLINT}}var Rt=["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"];const vn=3;function bn(e){return $o((t={})=>{const{scale:o=1,mode:n="auto",prefix:r="i-",warn:s=!1,iconifyCollectionsNames:a,collections:i,extraProperties:l={},customizations:f={},autoInstall:c=!1,collectionsNodeResolvePath:g,layer:h="icons",unit:u,processor:p}=t,d=wn(),m={addXmlNs:!0,scale:o,customCollections:i,autoInstall:c,cwd:g,warn:void 0,customizations:{...f,additionalProps:{...l},trimCustomSvg:!0,async iconCustomizer(y,_,b){await f.iconCustomizer?.(y,_,b),u&&(b.width||(b.width=`${o}${u}`),b.height||(b.height=`${o}${u}`))}}};let w;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:ot,parseIconWithLoader:nt},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async y=>{let[_,b,T=n]=y;w=w||await e(t);const j={},A=await nt(b,w,{...m,usedProps:j},a);if(!A){s&&!d.isESLint&&Co(`failed to load icon "${_}"`);return}let k;const v=`url("data:image/svg+xml;utf8,${ot(A.svg)}")`;return T==="auto"&&(T=A.svg.includes("currentColor")?"mask":"bg"),T==="mask"?k={"--un-icon":v,"-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",...j}:k={background:`${v} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...j},p?.(k,{...A,icon:A.name,mode:T}),k},{layer:h,prefix:r}]]}})}function Ht(e,t,o=new Map){function n(r){if(Rt.includes(r))return o.has(r)||o.set(r,e(`${t}@iconify-json/${r}/icons.json`)),o.get(r)}return async(r,s,a)=>{let i=await Mt(r,s,a);if(i)return i;const l=await n(r);return l&&(i=await xt(l,r,[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")],a)),i}}async function nt(e,t,o={},n=[]){let r="",s="",a;const i=new Set([...Rt,...n,...Object.keys(o.customCollections||{})]);if(e.includes(":")){if([r,s]=e.split(":"),!i.has(r))return;a=await t(r,s,o)}else{const l=e.split(/-/g);for(let f=vn;f>=1&&(r=l.slice(0,f).join("-"),!(!!i.has(r)&&(s=l.slice(f).join("-"),a=await t(r,s,o),a)));f--);}if(a)return{collection:r,name:s,svg:a}}async function _n(e){const{$fetch:t}=await Ao(async()=>{const{$fetch:o}=await Promise.resolve().then(()=>$s);return{$fetch:o}},void 0,import.meta.url);return Ht(t,e)}const kn=bn(async e=>{const t=e?.customFetch,o=e?.cdn;return t&&o?Ht(t,o):o?await _n(o):Mt}),Sn=({attributifyOptions:e,iconsOptions:t={cdn:"https://cdn.jsdelivr.net/npm/"},tagifyOptions:o,typographyOptions:n,webFontsOptions:r,wind4Options:s={preflights:{reset:!0}}}={})=>[Lo(e),kn(t),Oo(o),jo(n),xo(r),Mo(s)];var de={exports:{}},st;function Tn(){return st||(st=1,(function(e){(function(){var t,o=0,n=[],r;for(r=0;r<256;r++)n[r]=(r+256).toString(16).substr(1);l.BUFFER_SIZE=4096,l.bin=i,l.clearBuffer=function(){t=null,o=0},l.test=function(f){return typeof f=="string"?/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(f):!1};var s;typeof crypto<"u"?s=crypto:typeof window<"u"&&typeof window.msCrypto<"u"&&(s=window.msCrypto),typeof Do=="function"?(s=s||Wo,e.exports=l):typeof window<"u"&&(window.uuid=l),l.randomBytes=(function(){if(s){if(s.randomBytes)return s.randomBytes;if(s.getRandomValues)return typeof Uint8Array.prototype.slice!="function"?function(f){var c=new Uint8Array(f);return s.getRandomValues(c),Array.from(c)}:function(f){var c=new Uint8Array(f);return s.getRandomValues(c),c}}return function(f){var c,g=[];for(c=0;c<f;c++)g.push(Math.floor(Math.random()*256));return g}})();function a(f){return(!t||o+f>l.BUFFER_SIZE)&&(o=0,t=l.randomBytes(l.BUFFER_SIZE)),t.slice(o,o+=f)}function i(){var f=a(16);return f[6]=f[6]&15|64,f[8]=f[8]&63|128,f}function l(){var f=i();return n[f[0]]+n[f[1]]+n[f[2]]+n[f[3]]+"-"+n[f[4]]+n[f[5]]+"-"+n[f[6]]+n[f[7]]+"-"+n[f[8]]+n[f[9]]+"-"+n[f[10]]+n[f[11]]+n[f[12]]+n[f[13]]+n[f[14]]+n[f[15]]}})()})(de)),de.exports}var En=Tn();const Te=Re(En),it=!0,at=(e,t)=>[...e].reverse().map(o=>({node:o,parent:t,siblings:e})),Pn=(e,{branch:t="branch",children:o="children",id:n="id",index:r="index",next:s="next",parent:a="parent",prev:i="prev",siblings:l="siblings"}={})=>{const f={[t]:{get(){const p=[this];for(;p[0]?.[a];)p.unshift(p[0][a]);return p}},[r]:{get(){return this[l].findIndex(p=>this[n]===p[n])}},[s]:{get(){return this[l][this[r]+1]}},[i]:{get(){return this[l][this[r]-1]}}},c=function*(p){const d=at(p.value);for(;d.length;){const{node:m,parent:w,siblings:y}=d.pop()??{};m&&(m[a]!==w&&Object.defineProperty(m,a,{configurable:it,value:w}),m[l]!==y&&Object.defineProperty(m,l,{configurable:it,value:y}),Object.keys(f).some(_=>!(_ in m))&&Object.defineProperties(m,f),yield m,d.push(...at(m[o]??[],m)))}},g=C(()=>[...c(E(e))]),h=C(()=>Object.fromEntries(g.value.map(p=>[p[n],p]))),u=(p,d)=>{const m=h.value[p];if(m){const[w]=g.value,y=m[r],_=m[s],b=y+1,T=m[a],j=m[i],A=y-1,k=m[l];switch(d){case"add":{const v=Te();return k.splice(b,0,{[n]:v}),v}case"addChild":{const v=Te();return Array.isArray(m[o])||(m[o]=[]),m[o].unshift({[n]:v}),v}case"down":y<k.length-1&&k[y]&&k[b]&&([k[y],k[b]]=[k[b],k[y]]);break;case"left":if(T?.[a])return T[l].splice(T[r]+1,0,...k.splice(y,1)),T[n];break;case"remove":{const v=_?.[n]??j?.[n]??T?.[n]??w?.[n];return k.splice(y,1),v}case"right":if(j){const v=j[o]??[],x=j[n];return j[o]=[...v,...k.splice(y,1)],x}break;case"up":y&&k[y]&&k[A]&&([k[A],k[y]]=[k[y],k[A]]);break}}};return{add:p=>u(p,"add"),addChild:p=>u(p,"addChild"),down:p=>u(p,"down"),kvNodes:h,left:p=>u(p,"left"),nodes:g,remove:p=>u(p,"remove"),right:p=>u(p,"right"),up:p=>u(p,"up")}};var $n=Io();const Cn=Re($n);var An=No();const Ft=Re(An),O={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},ct={silent:{level:-1},fatal:{level:O.fatal},error:{level:O.error},warn:{level:O.warn},log:{level:O.log},info:{level:O.info},success:{level:O.success},fail:{level:O.fail},ready:{level:O.info},start:{level:O.info},box:{level:O.info},debug:{level:O.debug},trace:{level:O.trace},verbose:{level:O.verbose}};function he(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ee(e,t,o=".",n){if(!he(t))return Ee(e,{},o);const r=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const a=e[s];a!=null&&(Array.isArray(a)&&Array.isArray(r[s])?r[s]=[...a,...r[s]]:he(a)&&he(r[s])?r[s]=Ee(a,r[s],(o?`${o}.`:"")+s.toString()):r[s]=a)}return r}function Ln(e){return(...t)=>t.reduce((o,n)=>Ee(o,n,""),{})}const On=Ln();function jn(e){return Object.prototype.toString.call(e)==="[object Object]"}function xn(e){return!(!jn(e)||!e.message&&!e.args||e.stack)}let me=!1;const lt=[];class P{options;_lastLog;_mockFn;constructor(t={}){const o=t.types||ct;this.options=On({...t,defaults:{...t.defaults},level:ge(t.level,o),reporters:[...t.reporters||[]]},{types:ct,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in o){const r={type:n,...this.options.defaults,...o[n]};this[n]=this._wrapLogFn(r),this[n].raw=this._wrapLogFn(r,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=ge(t,this.options.types,this.options.level)}prompt(t,o){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,o)}create(t){const o=new P({...this.options,...t});return this._mockFn&&o.mockTypes(this._mockFn),o}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const o=this.options.reporters.indexOf(t);if(o!==-1)return this.options.reporters.splice(o,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,o){t&&(t.__write||(t.__write=t.write),t.write=n=>{this[o].raw(String(n).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){me=!0}resumeLogs(){me=!1;const t=lt.splice(0);for(const o of t)o[0]._logFn(o[1],o[2])}mockTypes(t){const o=t||this.options.mockFn;if(this._mockFn=o,typeof o=="function")for(const n in this.options.types)this[n]=o(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(t,o){return(...n)=>{if(me){lt.push([this,t,n,o]);return}return this._logFn(t,n,o)}}_logFn(t,o,n){if((t.level||0)>this.level)return!1;const r={date:new Date,args:[],...t,level:ge(t.level,this.options.types)};!n&&o.length===1&&xn(o[0])?Object.assign(r,o[0]):r.args=[...o],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(`
|
|
2
|
+
`)),r.args.push(`
|
|
3
|
+
`+r.additional.join(`
|
|
4
|
+
`)),delete r.additional),r.type=typeof r.type=="string"?r.type.toLowerCase():"log",r.tag=typeof r.tag=="string"?r.tag:"";const s=(i=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const f=[...this._lastLog.object.args];l>1&&f.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:f}),this._lastLog.count=1}i&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,a<this.options.throttle)try{const i=JSON.stringify([r.type,r.tag,r.args]),l=this._lastLog.serialized===i;if(this._lastLog.serialized=i,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(t){for(const o of this.options.reporters)o.log(t,{options:this.options})}}function ge(e,t={},o=3){return e===void 0?o:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:o}P.prototype.add=P.prototype.addReporter;P.prototype.remove=P.prototype.removeReporter;P.prototype.clear=P.prototype.removeReporter;P.prototype.withScope=P.prototype.withTag;P.prototype.mock=P.prototype.mockTypes;P.prototype.pause=P.prototype.pauseLogs;P.prototype.resume=P.prototype.resumeLogs;function Mn(e={}){return new P(e)}class Rn{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const o=this._getLogFn(t.level),n=t.type==="log"?"":t.type,r=t.tag||"",a=`
|
|
5
|
+
background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};
|
|
6
|
+
border-radius: 0.5em;
|
|
7
|
+
color: white;
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
padding: 2px 0.5em;
|
|
10
|
+
`,i=`%c${[r,n].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?o(`${i}%c ${t.args[0]}`,a,"",...t.args.slice(1)):o(i,a,...t.args)}}function Hn(e={}){return Mn({reporters:e.reporters||[new Rn({})],prompt(o,n={}){return n.type==="confirm"?Promise.resolve(confirm(o)):Promise.resolve(prompt(o))},...e})}const Fe=Hn(),Fn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,In=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Nn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Dn(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Wn(e);return}return t}function Wn(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Un(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const o=e.trim();if(o.length<=9)switch(o.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Nn.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Fn.test(e)||In.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Dn)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const zn=/#/g,qn=/&/g,Vn=/\//g,Bn=/=/g,Ie=/\+/g,Gn=/%5e/gi,Jn=/%60/gi,Kn=/%7c/gi,Qn=/%20/gi;function Xn(e){return encodeURI(""+e).replace(Kn,"|")}function Pe(e){return Xn(typeof e=="string"?e:JSON.stringify(e)).replace(Ie,"%2B").replace(Qn,"+").replace(zn,"%23").replace(qn,"%26").replace(Jn,"`").replace(Gn,"^").replace(Vn,"%2F")}function ye(e){return Pe(e).replace(Bn,"%3D")}function It(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Yn(e){return It(e.replace(Ie," "))}function Zn(e){return It(e.replace(Ie," "))}function es(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const o of e.split("&")){const n=o.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=Yn(n[1]);if(r==="__proto__"||r==="constructor")continue;const s=Zn(n[2]||"");t[r]===void 0?t[r]=s:Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]}return t}function ts(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(o=>`${ye(e)}=${Pe(o)}`).join("&"):`${ye(e)}=${Pe(t)}`:ye(e)}function os(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>ts(t,e[t])).filter(Boolean).join("&")}const rs=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ns=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ss=/^([/\\]\s*){2,}[^/\\]/,is=/^\.?\//;function Nt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?rs.test(e):ns.test(e)||(t.acceptRelative?ss.test(e):!1)}function as(e="",t){return e.endsWith("/")}function cs(e="",t){return(as(e)?e.slice(0,-1):e)||"/"}function ls(e="",t){return e.endsWith("/")?e:e+"/"}function us(e,t){if(ps(t)||Nt(e))return e;const o=cs(t);return e.startsWith(o)?e:hs(o,e)}function fs(e,t){const o=ms(e),n={...es(o.search),...t};return o.search=os(n),gs(o)}function ps(e){return!e||e==="/"}function ds(e){return e&&e!=="/"}function hs(e,...t){let o=e||"";for(const n of t.filter(r=>ds(r)))if(o){const r=n.replace(is,"");o=ls(o)+r}else o=n;return o}const Dt=Symbol.for("ufo:protocolRelative");function ms(e="",t){const o=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(o){const[,g,h=""]=o;return{protocol:g.toLowerCase(),pathname:h,href:g+h,auth:"",host:"",search:"",hash:""}}if(!Nt(e,{acceptRelative:!0}))return ut(e);const[,n="",r,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",i=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(i=i.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:f,hash:c}=ut(i);return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:a,pathname:l,search:f,hash:c,[Dt]:!n}}function ut(e=""){const[t="",o="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:o,hash:n}}function gs(e){const t=e.pathname||"",o=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",r=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Dt]?(e.protocol||"")+"//":"")+r+s+t+o+n}class Wt extends Error{constructor(t,o){super(t,o),this.name="FetchError",o?.cause&&!this.cause&&(this.cause=o.cause)}}function Ut(e){const t=e.error?.message||e.error?.toString()||"",o=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",r=`[${o}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=`${r}: ${s}${t?` ${t}`:""}`,i=new Wt(a,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(i,l,{get(){return e[l]}});for(const[l,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(i,l,{get(){return e.response&&e.response[f]}});return i}const ys=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ft(e="GET"){return ys.has(e.toUpperCase())}function ws(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const vs=new Set(["image/svg","application/xml","application/xhtml","application/html"]),bs=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function _s(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return bs.test(t)?"json":t==="text/event-stream"?"stream":vs.has(t)||t.startsWith("text/")?"text":"blob"}function ks(e,t,o,n){const r=Ss(t?.headers??e?.headers,o?.headers,n);let s;return(o?.query||o?.params||t?.params||t?.query)&&(s={...o?.params,...o?.query,...t?.params,...t?.query}),{...o,...t,query:s,params:s,headers:r}}function Ss(e,t,o){if(!t)return new o(e);const n=new o(t);if(e)for(const[r,s]of Symbol.iterator in e||Array.isArray(e)?e:new o(e))n.set(r,s);return n}async function oe(e,t){if(t)if(Array.isArray(t))for(const o of t)await o(e);else await t(e)}const Ts=new Set([408,409,425,429,500,502,503,504]),Es=new Set([101,204,205,304]);function Ne(e={}){const{fetch:t=globalThis.fetch,Headers:o=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function r(i){const l=i.error&&i.error.name==="AbortError"&&!i.options.timeout||!1;if(i.options.retry!==!1&&!l){let c;typeof i.options.retry=="number"?c=i.options.retry:c=ft(i.options.method)?0:1;const g=i.response&&i.response.status||500;if(c>0&&(Array.isArray(i.options.retryStatusCodes)?i.options.retryStatusCodes.includes(g):Ts.has(g))){const h=typeof i.options.retryDelay=="function"?i.options.retryDelay(i):i.options.retryDelay||0;return h>0&&await new Promise(u=>setTimeout(u,h)),s(i.request,{...i.options,retry:c-1})}}const f=Ut(i);throw Error.captureStackTrace&&Error.captureStackTrace(f,s),f}const s=async function(l,f={}){const c={request:l,options:ks(l,f,e.defaults,o),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await oe(c,c.options.onRequest),c.options.headers instanceof o||(c.options.headers=new o(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=us(c.request,c.options.baseURL)),c.options.query&&(c.request=fs(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&ft(c.options.method))if(ws(c.options.body)){const u=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=u==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),u||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let g;if(!c.options.signal&&c.options.timeout){const u=new n;g=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,u.abort(p)},c.options.timeout),c.options.signal=u.signal}try{c.response=await t(c.request,c.options)}catch(u){return c.error=u,c.options.onRequestError&&await oe(c,c.options.onRequestError),await r(c)}finally{g&&clearTimeout(g)}if((c.response.body||c.response._bodyInit)&&!Es.has(c.response.status)&&c.options.method!=="HEAD"){const u=(c.options.parseResponse?"json":c.options.responseType)||_s(c.response.headers.get("content-type")||"");switch(u){case"json":{const p=await c.response.text(),d=c.options.parseResponse||Un;c.response._data=d(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[u]()}}return c.options.onResponse&&await oe(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await oe(c,c.options.onResponseError),await r(c)):c.response},a=async function(l,f){return(await s(l,f))._data};return a.raw=s,a.native=(...i)=>t(...i),a.create=(i={},l={})=>Ne({...e,...l,defaults:{...e.defaults,...l.defaults,...i}}),a}const ae=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),zt=ae.fetch?(...e)=>ae.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),qt=ae.Headers,Vt=ae.AbortController,De=Ne({fetch:zt,Headers:qt,AbortController:Vt}),Ps=De,$s=Object.freeze(Object.defineProperty({__proto__:null,$fetch:Ps,AbortController:Vt,FetchError:Wt,Headers:qt,createFetch:Ne,createFetchError:Ut,fetch:zt,ofetch:De},Symbol.toStringTag,{value:"Module"})),Cs={$id:"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"},As={$id:"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",enum:["user","assistant","system"],type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"},Ls={$id:"nodes",items:{$ref:"page"},type:"array"},Os={$id:"page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{children:{default:[],items:{type:"object"},type:"array"},frontmatter:{default:{},type:"object"},id:{type:"string"},name:{default:null,nullable:!0,type:"string"}},type:"object"};Ft.DEFAULTS.uuid=()=>Te;const Bt=[Cs,Ls,Os,As],js=new Cn({code:{esm:!0},coerceTypes:!0,keywords:[Ft()],removeAdditional:!0,schemas:Bt,useDefaults:!0}),$e=le(q({credentials:{},log:{}})),Gt=!0,pt="nodes",dt={$children:{get(){return this.children.filter(({frontmatter:{hidden:e}})=>!e)}},$index:{get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},$next:{get(){return this.$siblings[this.$index+1]}},$prev:{get(){return this.$siblings[this.$index-1]}},$siblings:{get(){return this.siblings.filter(({frontmatter:{hidden:e}})=>!e)}},path:{get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replace(/ /g,"_")}},to:{get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}}},Ce=ce([]),Ae=Object.fromEntries(Bt.map(({$id:e})=>[e,js.getSchema(e)])),Jt=async e=>{try{return await De(e)}catch(t){Fe.error(t)}},D=q({...$e,tree:Ce,...Pn(Ce)});Object.keys($e).forEach(e=>{Ae[e]&&H($e[e],Ae[e],{immediate:Gt})});H(E(D,pt),async e=>{await Ae[pt]?.(e)?e.forEach(t=>{Object.keys(dt).some(o=>!(o in t))&&Object.defineProperties(t,dt)}):Ce.value=[{}]},{immediate:Gt});function We(e,t){return uo()?(fo(e,t),!0):!1}const Kt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Qt=e=>e!=null,xs=Object.prototype.toString,Ms=e=>xs.call(e)==="[object Object]",R=()=>{},ht=Rs();function Rs(){var e,t,o;return Kt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((o=window)===null||o===void 0?void 0:o.navigator.userAgent))}function Hs(...e){if(e.length!==1)return E(...e);const t=e[0];return typeof t=="function"?po(ho(()=>({get:t,set:R}))):ce(t)}function Xt(e,t){function o(...n){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(s)})}return o}function Fs(e,t={}){let o,n,r=R;const s=l=>{clearTimeout(l),r(),r=R};let a;return l=>{const f=S(e),c=S(t.maxWait);return o&&s(o),f<=0||c!==void 0&&c<=0?(n&&(s(n),n=void 0),Promise.resolve(l())):new Promise((g,h)=>{r=t.rejectOnCancel?h:g,a=l,c&&!n&&(n=setTimeout(()=>{o&&s(o),n=void 0,g(a())},c)),o=setTimeout(()=>{n&&s(n),n=void 0,g(l())},f)})}}function Is(...e){let t=0,o,n=!0,r=R,s,a,i,l,f;!Q(e[0])&&typeof e[0]=="object"?{delay:a,trailing:i=!0,leading:l=!0,rejectOnCancel:f=!1}=e[0]:[a,i=!0,l=!0,f=!1]=e;const c=()=>{o&&(clearTimeout(o),o=void 0,r(),r=R)};return h=>{const u=S(a),p=Date.now()-t,d=()=>s=h();return c(),u<=0?(t=Date.now(),d()):(p>u?(t=Date.now(),(l||!n)&&d()):i&&(s=new Promise((m,w)=>{r=f?w:m,o=setTimeout(()=>{t=Date.now(),n=!0,m(d()),c()},Math.max(0,u-p))})),!l&&!o&&(o=setTimeout(()=>n=!0,u)),n=!1,s)}}function X(e){return Array.isArray(e)?e:[e]}function Ns(e){return je()}function Ds(e){return Q(e)?q(new Proxy({},{get(t,o,n){return z(Reflect.get(e.value,o,n))},set(t,o,n){return Q(e.value[o])&&!Q(n)?e.value[o].value=n:e.value[o]=n,!0},deleteProperty(t,o){return Reflect.deleteProperty(e.value,o)},has(t,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):q(e)}function Ws(e,t=200,o={}){return Xt(Fs(t,o),e)}function Us(e,t=200,o=!1,n=!0,r=!1){return Xt(Is(t,o,n,r),e)}function zs(e,t=!0,o){Ns()?kt(e,o):t?e():lo(e)}function qs(e,t,o){return H(e,t,{...o,immediate:!0})}function Vs(e,t,o){return H(e,t,{...o,once:!0})}const ee=Kt?window:void 0;function G(e){var t;const o=S(e);return(t=o?.$el)!==null&&t!==void 0?t:o}function Le(...e){const t=(n,r,s,a)=>(n.addEventListener(r,s,a),()=>n.removeEventListener(r,s,a)),o=C(()=>{const n=X(S(e[0])).filter(r=>r!=null);return n.every(r=>typeof r!="string")?n:void 0});return qs(()=>{var n,r;return[(n=(r=o.value)===null||r===void 0?void 0:r.map(s=>G(s)))!==null&&n!==void 0?n:[ee].filter(s=>s!=null),X(S(o.value?e[1]:e[0])),X(z(o.value?e[2]:e[1])),S(o.value?e[3]:e[2])]},([n,r,s,a],i,l)=>{if(!n?.length||!r?.length||!s?.length)return;const f=Ms(a)?{...a}:a,c=n.flatMap(g=>r.flatMap(h=>s.map(u=>t(g,h,u,f))));l(()=>{c.forEach(g=>g())})},{flush:"post"})}function Bs(){const e=N(!1),t=je();return t&&kt(()=>{e.value=!0},t),e}function Yt(e){const t=Bs();return C(()=>(t.value,!!e()))}function Gs(e,t,o={}){const{window:n=ee,...r}=o;let s;const a=Yt(()=>n&&"MutationObserver"in n),i=()=>{s&&(s.disconnect(),s=void 0)},l=H(C(()=>{const g=X(S(e)).map(G).filter(Qt);return new Set(g)}),g=>{i(),a.value&&g.size&&(s=new MutationObserver(t),g.forEach(h=>s.observe(h,r)))},{immediate:!0,flush:"post"}),f=()=>s?.takeRecords(),c=()=>{l(),i()};return We(c),{isSupported:a,stop:c,takeRecords:f}}function Js(e,t,o={}){const{root:n,rootMargin:r="0px",threshold:s=0,window:a=ee,immediate:i=!0}=o,l=Yt(()=>a&&"IntersectionObserver"in a),f=C(()=>X(S(e)).map(G).filter(Qt));let c=R;const g=N(i),h=l.value?H(()=>[f.value,G(n),g.value],([p,d])=>{if(c(),!g.value||!p.length)return;const m=new IntersectionObserver(t,{root:G(d),rootMargin:r,threshold:s});p.forEach(w=>w&&m.observe(w)),c=()=>{m.disconnect(),c=R}},{immediate:i,flush:"post"}):R,u=()=>{c(),h(),g.value=!1};return We(u),{isSupported:l,isActive:g,pause(){c(),g.value=!1},resume(){g.value=!0},stop:u}}function mt(e,t={}){const{window:o=ee,scrollTarget:n,threshold:r=0,rootMargin:s,once:a=!1,initialValue:i=!1}=t,l=N(i),{stop:f}=Js(e,c=>{let g=l.value,h=0;for(const u of c)u.time>=h&&(h=u.time,g=u.isIntersecting);l.value=g,a&&Vs(l,()=>{f()})},{root:n,window:o,threshold:r,rootMargin:S(s)});return l}function we(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const gt=1;function Ks(e,t={}){const{throttle:o=0,idle:n=200,onStop:r=R,onScroll:s=R,offset:a={left:0,right:0,top:0,bottom:0},observe:i={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:f="auto",window:c=ee,onError:g=v=>{console.error(v)}}=t,h=typeof i=="boolean"?{mutation:i}:i,u=N(0),p=N(0),d=C({get(){return u.value},set(v){w(v,void 0)}}),m=C({get(){return p.value},set(v){w(void 0,v)}});function w(v,x){var M,V,B,J;if(!c)return;const L=S(e);if(!L)return;(M=L instanceof Document?c.document.body:L)===null||M===void 0||M.scrollTo({top:(V=S(x))!==null&&V!==void 0?V:m.value,left:(B=S(v))!==null&&B!==void 0?B:d.value,behavior:S(f)});const I=(L==null||(J=L.document)===null||J===void 0?void 0:J.documentElement)||L?.documentElement||L;d!=null&&(u.value=I.scrollLeft),m!=null&&(p.value=I.scrollTop)}const y=N(!1),_=q({left:!0,right:!1,top:!0,bottom:!1}),b=q({left:!1,right:!1,top:!1,bottom:!1}),T=v=>{y.value&&(y.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,r(v))},j=Ws(T,o+n),A=v=>{var x;if(!c)return;const M=(v==null||(x=v.document)===null||x===void 0?void 0:x.documentElement)||v?.documentElement||G(v),{display:V,flexDirection:B,direction:J}=c.getComputedStyle(M),L=J==="rtl"?-1:1,I=M.scrollLeft;b.left=I<u.value,b.right=I>u.value;const Ue=Math.abs(I*L)<=(a.left||0),ze=Math.abs(I*L)+M.clientWidth>=M.scrollWidth-(a.right||0)-gt;V==="flex"&&B==="row-reverse"?(_.left=ze,_.right=Ue):(_.left=Ue,_.right=ze),u.value=I;let W=M.scrollTop;v===c.document&&!W&&(W=c.document.body.scrollTop),b.top=W<p.value,b.bottom=W>p.value;const qe=Math.abs(W)<=(a.top||0),Ve=Math.abs(W)+M.clientHeight>=M.scrollHeight-(a.bottom||0)-gt;V==="flex"&&B==="column-reverse"?(_.top=Ve,_.bottom=qe):(_.top=qe,_.bottom=Ve),p.value=W},k=v=>{var x;c&&(A((x=v.target.documentElement)!==null&&x!==void 0?x:v.target),y.value=!0,j(v),s(v))};return Le(e,"scroll",o?Us(k,o,!0,!1):k,l),zs(()=>{try{const v=S(e);if(!v)return;A(v)}catch(v){g(v)}}),h?.mutation&&e!=null&&e!==c&&e!==document&&Gs(e,()=>{const v=S(e);v&&A(v)},{attributes:!0,childList:!0,subtree:!0}),Le(e,"scrollend",T,l),{x:d,y:m,isScrolling:y,arrivedState:_,directions:b,measure(){const v=S(e);c&&v&&A(v)}}}function Zt(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:Zt(o)}}function Qs(e){const t=e||window.event,o=t.target;return Zt(o)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ve=new WeakMap;function Xs(e,t=!1){const o=N(t);let n=null,r="";H(Hs(e),i=>{const l=we(S(i));if(l){const f=l;if(ve.get(f)||ve.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(r=f.style.overflow),f.style.overflow==="hidden")return o.value=!0;if(o.value)return f.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=we(S(e));!i||o.value||(ht&&(n=Le(i,"touchmove",l=>{Qs(l)},{passive:!1})),i.style.overflow="hidden",o.value=!0)},a=()=>{const i=we(S(e));!i||!o.value||(ht&&n?.(),i.style.overflow=r,ve.delete(i),o.value=!1)};return We(a),C({get(){return o.value},set(i){i?s():a()}})}const Ys=Z({__name:"App",setup(e){const t=E(D,"kvNodes"),o=E(D,"nodes"),n=hr(),r=C(()=>t.value[n.name]?.frontmatter);return At(r,{mode:"client"}),(s,a)=>{const i=mo("router-view");return F(),Y(i,null,{default:xe(({Component:l})=>[(F(),Y(Me(l),{id:o.value[0]?.id},null,8,["id"]))]),_:1})}}});let be=!1;const eo=le(D),Zs=E(eo,"kvNodes"),yt=E(eo,"nodes"),ei=Uo({html:!0,linkify:!0,typographer:!0}).use(zo,{transform(e){switch(e.type){case"link_close":be&&(e.tag="RouterLink",be=!1);break;case"link_open":{const t=e.attrGet("href")??"/";URL.canParse(t)||(e.tag="RouterLink",e.attrSet("to",t),e.attrs?.splice(e.attrIndex("href"),1),be=!0);break}}}}).use(qo).use(Vo).use(Bo).use(Go).use(Jo).use(Ko).use(Qo).use(Xo).use(Yo).use(Zo).use(er).use(tr).use(or).use(rr).use(nr).use(sr).use(ir).use(ar).use(cr).use(lr).use(ur).use(fr).use(pr).use(dr),{transform:ti}=Ro(),to=()=>{let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),reject:t,resolve:e}},$=q({$these:C(()=>$.these.filter(({frontmatter:{hidden:e}})=>!e)),intersecting:new Map,module:e=>go(async()=>{const t={},{uno:o}=$;ei.render(await Jt(`./docs/${e}.md`)??"",t);const n=t.sfcBlocks?.styles.map(({contentStripped:r,tagClose:s,tagOpen:a})=>({contentStripped:new Ho(r),tagClose:s,tagOpen:a}))??[];return await Promise.all(n.map(async({contentStripped:r})=>await ti(r,e,{uno:o}))),yr(`${t.sfcBlocks?.template?.content??""}
|
|
11
|
+
${t.sfcBlocks?.script?.content??""}
|
|
12
|
+
${t.sfcBlocks?.scriptSetup?.content??""}
|
|
13
|
+
${n.map(({contentStripped:r,tagClose:s,tagOpen:a})=>`${a}${r.toString()}${s}}`).join(`
|
|
14
|
+
`)}
|
|
15
|
+
`,{scriptOptions:{inlineTemplate:!0}})}),promises:new Map,root:to(),routeName:void 0,scrollLock:!1,that:C(()=>$.routeName===yt.value[0]?.id?yt.value[0]?.$children[0]:Zs.value[$.routeName]),these:C(()=>$.that===void 0||$.that.parent?.frontmatter.merge?$.that?.siblings??[]:[$.that]),uno:{}});function wt(e,t){const o=e.type,n=o==="html"?"htmlAttrs":o==="body"?"bodyAttrs":o;if(typeof n!="string"||!(n in t))return;const r=e.props||{};if(e.children){const s="children";r.children=Array.isArray(e.children)?e.children[0][s]:e[s]}Array.isArray(t[n])?t[n].push(r):n==="title"?t.title=r.children:t[n]=r}function oi(e){const t={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const o of e)if(typeof o.type=="symbol"&&Array.isArray(o.children))for(const n of o.children)wt(n,t);else wt(o,t);return t}const ri=Z({name:"Head",setup(e,{slots:t}){const o=ce({}),n=At(o);return _t(()=>{n.dispose()}),()=>(Oe(()=>{t.default&&n.patch(oi(t.default()))}),null)}}),ni=Z({__name:"NotFoundView",setup(e){return(t,o)=>(F(),re(St,null,[yo(z(ri),null,{default:xe(()=>[...o[0]||(o[0]=[U("title",null,"Page Not Found",-1)])]),_:1}),o[1]||(o[1]=U("div",{class:"absolute inset-0 grid place-items-center"},[U("div",{class:"text-center"},[U("div",{class:"text-9xl"},"404"),U("p",null,"Oops. Nothing here...")])],-1))],64))}}),si={mounted(e,t){if(typeof t.value=="function"){const o=t.value;H(mt(e),n=>o(n),{immediate:!0})}else{const[o,n]=t.value;H(mt(e,n),r=>o(r),{immediate:!0})}}};function ii(){let e=!1;const t=N(!1);return(o,n)=>{if(t.value=n.value,e)return;e=!0;const r=Xs(o,n.value);H(t,s=>r.value=s)}}ii();const ai=["id"],ci=Z({__name:"PageView",setup(e){const t=E($,"$these"),o=E(D,"kvNodes"),{intersecting:n,module:r,promises:s}=$,a=()=>{[n,s].forEach(l=>{l.clear()})},i=C(()=>new Map(t.value.map(({id:l})=>[l,r(l)])));return Oe(()=>{a(),t.value.forEach(({id:l})=>{n.set(l,!1),s.set(l,to())})}),wo(()=>{a()}),(l,f)=>(F(!0),re(St,null,vo(i.value,([c,g])=>bo((F(),re("div",{id:c,key:c,"un-cloak":""},[U("div",_o({ref_for:!0},o.value[c]?.frontmatter.attrs??{}),[(F(),Y(Me(g),{id:c,onVnodeMounted:h=>z(s).get(c)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],16)],8,ai)),[[z(si),[h=>{z(n).set(c,h)},{threshold:.1}]]])),128))}}),li=["id"],ui=Z({__name:"RootView",setup(e){const t=E(D,"nodes"),{module:o,root:n}=$,r=C(()=>t.value[0]&&o(t.value[0].id));return(s,a)=>(F(),Y(ko,null,{default:xe(()=>[t.value[0]?.frontmatter.hidden?So("",!0):(F(),re("div",{key:0,id:t.value[0]?.id,"un-cloak":""},[U("div",To(Eo(t.value[0]?.frontmatter.attrs??{})),[(F(),Y(Me(r.value),{id:t.value[0]?.id,onVnodeMounted:a[0]||(a[0]=i=>z(n).resolve(void 0))},null,8,["id"]))],16)],8,li))]),_:1}))}});let vt=E($,"routeName");const oo=le($),fi=E(oo,"$these"),pi=E(oo,"that"),ro=le(D),di=E(ro,"kvNodes"),bt=E(ro,"nodes"),no=Po(Ys),hi=await Jt("index.json")??[],{intersecting:mi,promises:gi,root:yi}=$,{pathname:wi}=new URL(document.baseURI);Fe.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","2.1.1");D.tree=hi;await Fo({defaults:{presets:Sn()},ready:({extractAll:e,toggleObserver:t,uno:o})=>{$.uno=o;let n=!1;const r=mr({history:gr(wi),routes:[...bt.value.filter(({path:l})=>l!==void 0).map(({id:l,to:f="/"})=>({children:[{component:ci,name:l,path:""}],component:ui,path:f})),{component:ni,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:l,name:f})=>{if(f)if(vt.value=f,n)n=!1;else{const{index:c,parent:{frontmatter:{merge:g}={}}={}}=pi.value??{};return t(!0),await yi.promise,await Promise.all([...gi.values()].map(({promise:h})=>h)),await e(),t(!1),"requestIdleCallback"in window?await new Promise(h=>requestIdleCallback(h)):(await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>setTimeout(h))),{behavior:"smooth",...l||g&&c?{el:l||`#${String(f)}`}:{left:0,top:0}}}return!1}}),s=Ks(window,{onStop:()=>{const[l]=fi.value,[f]=bt.value;if(f&&l){const{$children:[{id:c}={}]}=f,g=!Math.floor(a.value)&&!Math.floor(i.value)&&l.id===c?f.id:[...mi.entries()].find(([,h])=>h)?.[0]??l.id;g!==vt.value&&(n=!0,r.push({name:g}).catch(Fe.error))}}}),a=E(s,"x"),i=E(s,"y");return r.beforeEach(({path:l})=>l!==decodeURI(l)?decodeURI(l):void 0),no.use(r),!1},rootElement:()=>document.getElementById("app")??void 0});no.use(Zr({plugins:[jr,Ar,xr({}),Mr()]})).provide("pages",Ds(di.value)).mount("#app");export{$s as i};
|