const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/md-Bmlu_ERn.js","assets/modules/unplugin-icons-CKCvuFEe.js","assets/modules/vue-B5Z8nqrj.js","assets/slidev/context-DsQgH77D.js","assets/modules/shiki-CcvRnmUC.js","assets/modules/shiki-CozCpemh.css","assets/slidev/md-CgDzxG1o.js","assets/slidev/center-DhHIzoqy.js","assets/md-DYnYu9Xz.js","assets/slidev/default-CCNYDdjO.js","assets/md-C6tDqqNz.js","assets/slidev/CodeBlockWrapper.vue_vue_type_script_setup_true_lang-UKnbPKqc.js","assets/md-BOaCOWCX.js","assets/md-B6Q8o3H8.js","assets/md-Bl9yLQwE.js","assets/md-AjZsJK5n.js","assets/md-XRiLjrLH.js","assets/slidev/entry-CZYp-ovf.js","assets/entry-q4Ov0ZOD.css","assets/slidev/overview-DJd1DFh-.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-CF98E622.js","assets/NoteDisplay-DWf9_dzI.css","assets/slidev/SlideWrapper-yNO_f0ts.js","assets/SlideWrapper-DqjhgBiS.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-BC4Pfblr.js","assets/slidev/notes-_7u0OrYk.js","assets/slidev/presenter-BKlqMcFi.js","assets/slidev/shortcuts-C1coQTwO.js","assets/shortcuts-KYKP4x8T.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-nNEMXcFN.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-DmM0aILH.css","assets/slidev/play-LWBLmfLn.js","assets/play-D_7yfuao.css","assets/slidev/404-Dsz-mvhP.js","assets/404-DpZlFGY4.css"])))=>i.map(i=>d[i]); import{z as k,A as qt,B as Gs,C as Qs,D as os,r as O,E as Ne,G as Ys,H as Zs,I as Xs,J as rs,K as Q,L as is,M as te,N as eo,O as to,f as Ut,o as ht,t as no,d as as,i as so,F as oo,g as Pn,P as W,Q as cn,R as ro,S as _t,p as io,T as ao,U as lo,V as co,W as uo,X as fo,Y as x,Z as ho,_ as ls,$ as St,a0 as po,a1 as cs,a2 as go,a3 as mo,a4 as yo,a5 as us,b as vo,a as bo,a6 as wo,a7 as ko,a8 as _o,a9 as So,aa as Mo,ab as Oo,ac as Po,c as Co}from"./modules/vue-B5Z8nqrj.js";import{T as To}from"./modules/shiki-CcvRnmUC.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function t(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=t(o);fetch(o.href,r)}})();const A={theme:"seriph",title:"Deno",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],download:!1,export:{},info:`

Deno

Deno is the open-source JavaScript runtime for the modern web.

Built on web standards with zero-config TypeScript, unmatched security, and a complete built-in toolchain.

Learn more at Deno

`,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"PT Serif"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:['"PT Serif"',"ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"PT Mono"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["PT Serif","PT Mono"],provider:"google",local:[],italic:!0,weights:["400","700"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,author:"",record:"dev",css:"unocss",presenter:!0,browserExporter:"dev",htmlAttrs:{},transition:"slide-left",editor:!0,contextMenu:null,wakeLock:!0,mdc:!0,seoMeta:{ogImage:"https://cover.sli.dev"},background:"https://cover.sli.dev",class:"text-center",slidesTitle:"Deno - Slidev"};function Jt(n,e,t){return Math.min(t,Math.max(e,n))}function Eo(...n){return Ao(n).reduce((e,t)=>e+t,0)}function Lo(n){return n=n??[],Array.isArray(n)?n:[n]}function Ao(n){return Lo(n).flat(1)}function $o(n){return Array.from(new Set(n))}function Cn(...n){let e,t,s;n.length===1?(e=0,s=1,[t]=n):[e,t,s=1]=n;const o=[];let r=e;for(;re(t,s)).filter(Do))}const Va="build",fs=k(()=>A.aspectRatio),hs=k(()=>A.canvasWidth),Ro=k(()=>Math.ceil(hs.value/fs.value)),jo=k(()=>No(A.themeConfig||{},(n,e)=>[`--slidev-theme-${n}`,e])),$t=A.slidesTitle,Ba="/deno/",Io=[],xo=new Set(["link","style","script","noscript"]),Ho=new Set(["title","titleTemplate","script","style","noscript"]),Tn=new Set(["base","meta","link","style","script","noscript"]),Fo=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),zo=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Vo=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Bo=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Wo=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Kt(n,e={},t){for(const s in n){const o=n[s],r=t?`${t}:${s}`:s;typeof o=="object"&&o!==null?Kt(o,e,r):typeof o=="function"&&(e[r]=o)}return e}const qo={run:n=>n()},Uo=()=>qo,ds=typeof console.createTask<"u"?console.createTask:Uo;function Jo(n,e){const t=e.shift(),s=ds(t);return n.reduce((o,r)=>o.then(()=>s.run(()=>r(...e))),Promise.resolve())}function Ko(n,e){const t=e.shift(),s=ds(t);return Promise.all(n.map(o=>s.run(()=>o(...e))))}function Dt(n,e){for(const t of[...n])t(e)}class Go{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,s={}){if(!e||typeof t!="function")return()=>{};const o=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!s.allowDeprecated){let i=r.message;i||(i=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}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 s,o=(...r)=>(typeof s=="function"&&s(),s=void 0,o=void 0,t(...r));return s=this.hook(e,o),s}removeHook(e,t){if(this._hooks[e]){const s=this._hooks[e].indexOf(t);s!==-1&&this._hooks[e].splice(s,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const s=this._hooks[e]||[];delete this._hooks[e];for(const o of s)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Kt(e),s=Object.keys(t).map(o=>this.hook(o,t[o]));return()=>{for(const o of s.splice(0,s.length))o()}}removeHooks(e){const t=Kt(e);for(const s in t)this.removeHook(s,t[s])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Jo,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Ko,e,...t)}callHookWith(e,t,...s){const o=this._before||this._after?{name:t,args:s,context:{}}:void 0;this._before&&Dt(this._before,o);const r=e(t in this._hooks?[...this._hooks[t]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&Dt(this._after,o)}):(this._after&&o&&Dt(this._after,o),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}}function Qo(){return new Go}const Yo=["name","property","http-equiv"],Zo=new Set(["viewport","description","keywords","robots"]);function ps(n){const e=n.split(":");return e.length?Wo.has(e[1]):!1}function Gt(n){const{props:e,tag:t}=n;if(zo.has(t))return t;if(t==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(n.tag==="meta"){for(const s of Yo)if(e[s]!==void 0){const o=e[s],r=o.includes(":"),i=Zo.has(o),l=!(r||i)&&n.key?`:key:${n.key}`:"";return`${t}:${o}${l}`}}if(n.key)return`${t}:key:${n.key}`;if(e.id)return`${t}:id:${e.id}`;if(Ho.has(t)){const s=n.textContent||n.innerHTML;if(s)return`${t}:content:${s}`}}function En(n){const e=n._h||n._d;if(e)return e;const t=n.textContent||n.innerHTML;return t||`${n.tag}:${Object.entries(n.props).map(([s,o])=>`${s}:${String(o)}`).join(",")}`}function dt(n,e,t){typeof n==="function"&&(!t||t!=="titleTemplate"&&!(t[0]==="o"&&t[1]==="n"))&&(n=n());let o;if(e&&(o=e(t,n)),Array.isArray(o))return o.map(r=>dt(r,e));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=dt(o[i],e,i);return r}return o}function Xo(n,e){const t=n==="style"?new Map:new Set;function s(o){const r=o.trim();if(r)if(n==="style"){const[i,...a]=r.split(":").map(l=>l.trim());i&&a.length&&t.set(i,a.join(":"))}else r.split(" ").filter(Boolean).forEach(i=>t.add(i))}return typeof e=="string"?n==="style"?e.split(";").forEach(s):s(e):Array.isArray(e)?e.forEach(o=>s(o)):e&&typeof e=="object"&&Object.entries(e).forEach(([o,r])=>{r&&r!=="false"&&(n==="style"?t.set(o.trim(),r):s(o))}),t}function gs(n,e){return n.props=n.props||{},e?n.tag==="templateParams"?(n.props=e,n):(Object.entries(e).forEach(([t,s])=>{if(s===null){n.props[t]=null;return}if(t==="class"||t==="style"){n.props[t]=Xo(t,s);return}if(Vo.has(t)){if(["textContent","innerHTML"].includes(t)&&typeof s=="object"){let i=e.type;if(e.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;e.type=i,n.props.type=i,n[t]=JSON.stringify(s)}else n[t]=s;return}const o=String(s),r=t.startsWith("data-");o==="true"||o===""?n.props[t]=r?o:!0:!s&&r&&o==="false"?n.props[t]="false":s!==void 0&&(n.props[t]=s)}),n):n}function er(n,e){const t=typeof e=="object"&&typeof e!="function"?e:{[n==="script"||n==="noscript"||n==="style"?"innerHTML":"textContent"]:e},s=gs({tag:n,props:{}},t);return s.key&&xo.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(o=>({...s,props:{...s.props,content:o}})):s}function tr(n,e){if(!n)return[];typeof n=="function"&&(n=n());const t=(o,r)=>{for(let i=0;i{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(er(o,i))}),s.flat()}const Ln=(n,e)=>n._w===e._w?n._p-e._p:n._w-e._w,An={base:-10,title:10},nr={critical:-8,high:-1,low:2},$n={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}},sr=/@import/,xe=n=>n===""||n===!0;function or(n,e){if(typeof e.tagPriority=="number")return e.tagPriority;let t=100;const s=nr[e.tagPriority]||0,o=n.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:$n;if(e.tag in An)t=An[e.tag];else if(e.tag==="meta"){const r=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;r&&(t=$n.meta[r])}else e.tag==="link"&&e.props.rel?t=o.link[e.props.rel]:e.tag==="script"?xe(e.props.async)?t=o.script.async:e.props.src&&!xe(e.props.defer)&&!xe(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?t=o.script.sync:xe(e.props.defer)&&e.props.src&&!xe(e.props.async)&&(t=o.script.defer):e.tag==="style"&&(t=e.innerHTML&&sr.test(e.innerHTML)?o.style.imported:o.style.sync);return(t||100)+s}function Dn(n,e){const t=typeof e=="function"?e(n):e,s=t.key||String(n.plugins.size+1);n.plugins.get(s)||(n.plugins.set(s,t),n.hooks.addHooks(t.hooks||{}))}function rr(n={}){const e=Qo();e.addHooks(n.hooks||{});const t=!n.document,s=new Map,o=new Map,r=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:n,hooks:e,ssr:t,entries:s,headEntries(){return[...s.values()]},use:a=>Dn(i,a),push(a,l){const c={...l||{}};delete c.head;const f=c._index??i._entryCount++,d={_i:f,input:a,options:c},h={_poll(u=!1){i.dirty=!0,!u&&r.add(f),e.callHook("entries:updated",i)},dispose(){s.delete(f)&&i.invalidate()},patch(u){(!c.mode||c.mode==="server"&&t||c.mode==="client"&&!t)&&(d.input=u,s.set(f,d),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await e.callHook("entries:resolve",a);r.size;){const h=r.values().next().value;r.delete(h);const u=s.get(h);if(u){const g={tags:tr(u.input,n.propResolvers||[]).map(p=>Object.assign(p,u.options)),entry:u};await e.callHook("entries:normalize",g),u._tags=g.tags.map((p,m)=>(p._w=or(i,p),p._p=(u._i<<10)+m,p._d=Gt(p),p))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(Ln).reduce((h,u)=>{const g=String(u._d||u._p);if(!h.has(g))return h.set(g,u);const p=h.get(g);if((u?.tagDuplicateStrategy||(Bo.has(u.tag)?"merge":null)||(u.key&&u.key===p.key?"merge":null))==="merge"){const y={...p.props};Object.entries(u.props).forEach(([v,b])=>y[v]=v==="style"?new Map([...p.props.style||new Map,...b]):v==="class"?new Set([...p.props.class||new Set,...b]):b),h.set(g,{...u,props:y})}else u._p>>10===p._p>>10&&u.tag==="meta"&&ps(g)?(h.set(g,Object.assign([...Array.isArray(p)?p:[p],u],u)),l=!0):(u._w===p._w?u._p>p._p:u?._wDn(i,a)),i.hooks.callHook("init",i),n.init?.forEach(a=>a&&i.push(a)),i}const ir=(n,e)=>Gs(e)?qt(e):e,ms="usehead";function ar(n){return{install(t){t.config.globalProperties.$unhead=n,t.config.globalProperties.$head=n,t.provide(ms,n)}}.install}function lr(){if(Qs()){const n=os(ms);if(!n)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return n}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function cr(n,e={}){const t=e.head||lr();return t.ssr?t.push(n||{},e):ur(t,n,e)}function ur(n,e,t={}){const s=O(!1);let o;return Ne(()=>{const i=s.value?{}:dt(e,ir);o?o.patch(i):o=n.push(i,t)}),rs()&&(Ys(()=>{o.dispose()}),Zs(()=>{s.value=!0}),Xs(()=>{s.value=!1})),o}function Qt(n){if(n===!1||n==="false")return null;if(n==null||n===!0||n==="true")return"+1";if(typeof n=="string"&&"+-".includes(n[0]))return n;const e=+n;return Number.isNaN(e)?(console.error(`Invalid "at" prop value: ${n}`),null):e<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${n}, has been set to 1`),1):e}function fr(n){return Array.isArray(n)?[Qt(n[0]),Qt(n[1])]:null}function ys(n,e=0,t){const s=O(!1);let o=new Map,r=new Map;const i={get current(){return Jt(+n.value,e,i.total)},set current(a){n.value=s.value?Jt(a,e,i.total):a},clicksStart:e,get relativeSizeMap(){return o},get maxMap(){return r},get isMounted(){return s.value},setup(){is(()=>{s.value=!0,r=te(r),eo(n)||(i.current=n.value)}),to(()=>{s.value=!1,o=new Map,r=new Map})},calculateSince(a,l=1){const c=Qt(a);if(c==null)return null;let f,d,h;if(typeof c=="string"){const u=i.currentOffset,g=+c;f=u+g,d=u+g+l-1,h=g+l-1}else f=c,d=c+l-1,h=0;return{start:f,end:+Number.POSITIVE_INFINITY,max:d,delta:h,currentOffset:k(()=>i.current-f),isCurrent:k(()=>i.current===f),isActive:k(()=>i.current>=f)}},calculateRange(a){const l=fr(a);if(l==null)return null;const[c,f]=l;let d,h,u;return typeof c=="string"?(d=i.currentOffset+ +c,u=+c):(d=c,u=0),typeof f=="string"?(h=d+ +f,u+=+f):h=f,{start:d,end:h,max:h,delta:u,currentOffset:k(()=>i.current-d),isCurrent:k(()=>i.current===d),isActive:k(()=>d<=i.current&&i.currentqt(e),o=>{s.value=Math.max(o,t)}),ys(s,t,n?.meta?.clicks)}const dr="modulepreload",pr=function(n){return"/deno/"+n},Nn={},H=function(e,t,s){let o=Promise.resolve();if(t&&t.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");o=l(t.map(c=>{if(c=pr(c),c in Nn)return;Nn[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":dr,f||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),f)return new Promise((u,g)=>{h.addEventListener("load",u),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},gr=(n,e)=>{const t=n.__vccOpts||n;for(const[s,o]of e)t[s]=o;return t},mr={},yr={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function vr(n,e){return ht(),Ut("div",yr,no("Failed to fetch this slide. Please check your network connection."))}const ne=gr(mr,[["render",vr]]),br={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},wr=as({__name:"SlideLoading",setup(n){const e=O(!1);return is(()=>{setTimeout(()=>{e.value=!0},200)}),(t,s)=>(ht(),Ut("div",br,[e.value?(ht(),Ut(oo,{key:0},[s[0]||(s[0]=Pn("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1)),s[1]||(s[1]=Pn("div",null,"Loading slide...",-1))],64)):so("v-if",!0)]))}}),kr={theme:"seriph",background:"https://cover.sli.dev",title:"Deno",info:`## Deno Deno is the open-source JavaScript runtime for the modern web. Built on web standards with zero-config TypeScript, unmatched security, and a complete built-in toolchain. Learn more at [Deno](https://deno.com) `,class:"text-center",drawings:{persist:!1},transition:"slide-left",mdc:!0,seoMeta:{ogImage:"https://cover.sli.dev"}},he=W(kr),_r=te({get layout(){return he.layout},get transition(){return he.transition},get class(){return he.class},get clicks(){return he.clicks},get name(){return he.name},get preload(){return he.preload},slide:{content:"",revision:"-3ewl8z",frontmatterRaw:`# You can also start simply with 'default' theme: seriph # random image from a curated Unsplash collection by Anthony # like them? see https://unsplash.com/collections/94734566/slidev background: https://cover.sli.dev # some information about your slides (markdown enabled) title: Deno info: | ## Deno Deno is the open-source JavaScript runtime for the modern web. Built on web standards with zero-config TypeScript, unmatched security, and a complete built-in toolchain. Learn more at [Deno](https://deno.com) # apply unocss classes to the current slide class: text-center # https://sli.dev/features/drawing drawings: persist: false # slide transition: https://sli.dev/guide/animations.html#slide-transitions transition: slide-left # enable MDC Syntax: https://sli.dev/features/mdc mdc: true # open graph seoMeta: # By default, Slidev will use ./og-image.png if it exists, # or generate one from the first slide if not found. # ogImage: auto ogImage: https://cover.sli.dev `,note:"",title:"Deno",index:0,noteHTML:`

The last comment block of each slide will be treated as slide notes. It will be visible and editable in Presenter Mode along with the slide. Read more in the docs

`,raw:"",frontmatter:he,filepath:"",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),Sr={layout:"center",class:"text-center"},de=W(Sr),Mr=te({get layout(){return de.layout},get transition(){return de.transition},get class(){return de.class},get clicks(){return de.clicks},get name(){return de.name},get preload(){return de.preload},slide:{content:"",revision:"-77hz6e",frontmatterRaw:`layout: center class: "text-center" `,note:"",title:"What is Deno?",level:1,index:1,noteHTML:"",raw:"",frontmatter:de,filepath:"",start:49,id:1,no:2},__clicksContext:null,__preloaded:!1}),Or={},pe=W(Or),Pr=te({get layout(){return pe.layout},get transition(){return pe.transition},get class(){return pe.class},get clicks(){return pe.clicks},get name(){return pe.name},get preload(){return pe.preload},slide:{content:"",revision:"ahe19l",frontmatterRaw:`# layout: 2x2-grid-header `,note:"",title:"Features",level:1,index:2,noteHTML:`

Read more about Deno

`,raw:"",frontmatter:pe,filepath:"",start:60,id:2,no:3},__clicksContext:null,__preloaded:!1}),Cr={},ge=W(Cr),Tr=te({get layout(){return ge.layout},get transition(){return ge.transition},get class(){return ge.class},get clicks(){return ge.clicks},get name(){return ge.name},get preload(){return ge.preload},slide:{content:"",revision:"vptwhq",note:"",title:"Install Deno",level:1,index:3,noteHTML:"",raw:"",frontmatter:ge,filepath:"",start:86,id:3,no:4},__clicksContext:null,__preloaded:!1}),Er={},me=W(Er),Lr=te({get layout(){return me.layout},get transition(){return me.transition},get class(){return me.class},get clicks(){return me.clicks},get name(){return me.name},get preload(){return me.preload},slide:{content:"",revision:"-hp7p3y",note:"",title:"Docker",level:1,index:4,noteHTML:"",raw:"",frontmatter:me,filepath:"",start:101,id:4,no:5},__clicksContext:null,__preloaded:!1}),Ar={layout:"center",class:"text-center"},ye=W(Ar),$r=te({get layout(){return ye.layout},get transition(){return ye.transition},get class(){return ye.class},get clicks(){return ye.clicks},get name(){return ye.name},get preload(){return ye.preload},slide:{content:"",revision:"-sx33lo",frontmatterRaw:`layout: center class: "text-center" `,note:"",title:"Deno Toolchain",level:1,index:5,noteHTML:"",raw:"",frontmatter:ye,filepath:"",start:112,id:5,no:6},__clicksContext:null,__preloaded:!1}),Dr={},ve=W(Dr),Nr=te({get layout(){return ve.layout},get transition(){return ve.transition},get class(){return ve.class},get clicks(){return ve.clicks},get name(){return ve.name},get preload(){return ve.preload},slide:{content:"",revision:"wdk3ch",note:"",index:6,noteHTML:`

deno.json is central to customizing your deno development environment

  • Import maps
  • Scripts
  • Formatter settings
  • Linter rules
  • TypeScript compiler options
`,raw:"",frontmatter:ve,filepath:"",start:120,id:6,no:7},__clicksContext:null,__preloaded:!1}),Rr={},be=W(Rr),jr=te({get layout(){return be.layout},get transition(){return be.transition},get class(){return be.class},get clicks(){return be.clicks},get name(){return be.name},get preload(){return be.preload},slide:{content:"",revision:"mnbvln",note:"",title:"Running a project",level:2,index:7,noteHTML:"",raw:"",frontmatter:be,filepath:"",start:146,id:7,no:8},__clicksContext:null,__preloaded:!1}),Ir={},we=W(Ir),xr=te({get layout(){return we.layout},get transition(){return we.transition},get class(){return we.class},get clicks(){return we.clicks},get name(){return we.name},get preload(){return we.preload},slide:{content:"",revision:"0",note:"",index:8,noteHTML:"",raw:"",frontmatter:we,filepath:"",start:166,id:8,no:9},__clicksContext:null,__preloaded:!1}),ae=new Array(9),re=(n,e)=>ro({loader:e,delay:300,loadingComponent:wr,errorComponent:ne,onError:t=>console.error("Failed to load slide "+(n+1),t)}),Rn=async()=>{try{return ae[0]??=await H(()=>import("./slidev/md-Bmlu_ERn.js"),__vite__mapDeps([0,1,2,3,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},jn=async()=>{try{return ae[1]??=await H(()=>import("./slidev/md-CgDzxG1o.js"),__vite__mapDeps([6,2,3,7,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},In=async()=>{try{return ae[2]??=await H(()=>import("./md-DYnYu9Xz.js"),__vite__mapDeps([8,2,9,3,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},xn=async()=>{try{return ae[3]??=await H(()=>import("./md-C6tDqqNz.js"),__vite__mapDeps([10,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},Hn=async()=>{try{return ae[4]??=await H(()=>import("./md-BOaCOWCX.js"),__vite__mapDeps([12,2,9,3,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},Fn=async()=>{try{return ae[5]??=await H(()=>import("./md-B6Q8o3H8.js"),__vite__mapDeps([13,2,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},zn=async()=>{try{return ae[6]??=await H(()=>import("./md-Bl9yLQwE.js"),__vite__mapDeps([14,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},Vn=async()=>{try{return ae[7]??=await H(()=>import("./md-AjZsJK5n.js"),__vite__mapDeps([15,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},Bn=async()=>{try{return ae[8]??=await H(()=>import("./md-XRiLjrLH.js"),__vite__mapDeps([16,2,9,3,4,5]))}catch(n){return console.error("slide failed to load",n),ne}},Hr=[{no:1,meta:_r,load:Rn,component:re(0,Rn)},{no:2,meta:Mr,load:jn,component:re(1,jn)},{no:3,meta:Pr,load:In,component:re(2,In)},{no:4,meta:Tr,load:xn,component:re(3,xn)},{no:5,meta:Lr,load:Hn,component:re(4,Hn)},{no:6,meta:$r,load:Fn,component:re(5,Fn)},{no:7,meta:Nr,load:zn,component:re(6,zn)},{no:8,meta:jr,load:Vn,component:re(7,Vn)},{no:9,meta:xr,load:Bn,component:re(8,Bn)}],X=cn(Hr);function vs(n,e){if(!e||e==="all"||e==="*")return Cn(1,n+1);if(e==="none")return[];const t=[];for(const s of e.split(/[,;]/g))if(!s.includes("-"))t.push(+s);else{const[o,r]=s.split("-",2);t.push(...Cn(+o,r?+r+1:n+1))}return $o(t).filter(s=>s<=n).sort((s,o)=>s-o)}const Mt="$$slidev-clicks-context",un="$$slidev-page",bs="$$slidev-slide-element",Fr="$$slidev-slide-scale",zr="$$slidev-context",Wa="$$slidev-route",fn="$$slidev-render-context",Vr="$$slidev-fontmatter",Br="$$slidev-slide-zoom",rt="slidev-vclick-target",He="slidev-vclick-hidden",Fe="slidev-vclick-fade",Nt="slidev-vclick-hidden-explicitly",Rt="slidev-vclick-current",jt="slidev-vclick-prior",it=999999,Wr=["localhost","127.0.0.1"],qr=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],qa=[...qr,"theme","titleTemplate","info","author","keywords","presenter","browserExporter","download","exportFilename","export","highlighter","lineNumbers","monaco","monacoTypesSource","monacoTypesAdditionalPackages","monacoRunAdditionalDeps","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc","contextMenu","wakeLock","seoMeta"];function Ur(n,e,{mode:t="replace"}={}){const s=_t();return k({get(){const o=s.currentRoute.value.query[n];return o==null?e:Array.isArray(o)?o.filter(Boolean):o},set(o){io(()=>{(s.currentRoute.value.query[n]??e?.toString())!==o.toString()&&s[ao(t)]({query:{...s.currentRoute.value.query,[n]:`${o}`===e?void 0:o}})})}})}function Ot(n){return X.value.find(e=>e.no===+n||e.meta.slide?.frontmatter.routeAlias===n)}function Le(n,e,t=!1){(typeof n=="number"||typeof n=="string")&&(n=Ot(n));const s=n.meta.slide?.frontmatter.routeAlias??n.no;return t?`/export/${s}`:e?`/presenter/${s}`:`/${s}`}const Jr={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Kr(n,e=!1){if(!n||(typeof n=="string"&&(n={name:n}),!n.name))return;let t=n.name.includes("|")?n.name:Jr[n.name]||n.name;if(t.includes("|")){const[s,o]=t.split("|").map(r=>r.trim());t=e?o:s}if(t)return{...n,name:t}}function Gr(n,e,t){let s=n>0?t?.meta?.transition:e?.meta?.transition;return s||(s=A.transition||void 0),Kr(s,n<0)}const Ua=O(!1),Ja=O(!1),Ka=O(!1),Qr=O(!1),hn=O(!1),Ga=O(!1),Qa=O(!0),Ya=ho({xs:460,...po}),pt=co(),Za=lo(),Xa=k(()=>pt.height.value-pt.width.value/fs.value>120),el=uo(St?document.body:null),ws=fo(),tl=k(()=>["INPUT","TEXTAREA"].includes(ws.value?.tagName||"")),nl=k(()=>["BUTTON","A"].includes(ws.value?.tagName||""));x("slidev-camera","default",{listenToStorageChanges:!1});x("slidev-mic","default",{listenToStorageChanges:!1});const Yr=x("slidev-scale",0),sl=x("slidev-wake-lock",!0),ol=x("slidev-hide-cursor-idle",!0);x("slidev-skip-export-pdf-tip",!1);x("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const rl=x("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),Zr=x("slidev-show-editor",!1,{listenToStorageChanges:!1}),Xr=x("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),ei=x("slidev-editor-width",St?window.innerWidth*.4:318,{listenToStorageChanges:!1}),ti=x("slidev-editor-height",St?window.innerHeight*.4:300,{listenToStorageChanges:!1}),Ye=cn(null),gt=x("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),Ze=x("slidev-presenter-layout",1,{listenToStorageChanges:!1}),Yt={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},ni=x("slidev-viewer-css-filter",Yt,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),il=k(()=>Object.keys(Yt).some(n=>ni.value[n]!==Yt[n]));function al(){Ze.value=Ze.value+1,Ze.value>3&&(Ze.value=1)}function ll(){gt.value=Math.min(2,gt.value+.1)}function cl(){gt.value=Math.max(.5,gt.value-.1)}const ul=ls(Qr),Xe=x("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function ks(n,e,t=1){const s=e.meta.slide.level??t;s&&s>t&&n.length>0?ks(n[n.length-1].children,e,t+1):n.push({no:e.no,children:[],level:t,titleLevel:s,path:Le(e.meta.slide?.frontmatter?.routeAlias??e.no,!1),hideInToc:!!e.meta?.slide?.frontmatter?.hideInToc,title:e.meta?.slide?.title})}function _s(n,e,t=!1,s,o){return n.map(r=>{const i={...r,active:r.no===o?.value,hasActiveParent:t};return i.children.length>0&&(i.children=_s(i.children,e,i.active||i.hasActiveParent,i,o)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function Ss(n,e=1){return n.filter(t=>!t.hideInToc).map(t=>({...t,children:Ss(t.children,e+1)}))}function si(n,e,t){const s=k(()=>n.value.filter(r=>r.meta?.slide?.title).reduce((r,i)=>(ks(r,i),r),[])),o=k(()=>_s(s.value,t.value,void 0,void 0,e));return k(()=>Ss(o.value))}function oi(n,e,t=O(0),s,o,r){const i=k(()=>X.value.length),a=O(0),l=O(0),c=k(()=>Le(n.value,s.value)),f=k(()=>n.value.no),d=k(()=>n.value.meta?.layout||(f.value===1?"cover":"default")),h=k(()=>e.value.current),u=k(()=>e.value.clicksStart),g=k(()=>e.value.total),p=k(()=>X.value[Math.min(X.value.length,f.value+1)-1]),m=k(()=>X.value[Math.max(1,f.value-1)-1]),y=k(()=>f.valuef.value>1||h.value>0),b=k(()=>o.value?void 0:Gr(a.value,n.value,m.value));Q(n,(D,E)=>{a.value=D.no-E.no});async function w(D){return!1}const _=si(X,f,n);async function P(){l.value=1,g.value<=t.value?await R():t.value+=1}async function T(){l.value=-1,t.value<=u.value?await z(!0):t.value-=1}async function R(D=!1){l.value=1,f.value1&&await M(f.value-1,D&&!o.value?it:void 0)}function le(){return M(1)}function K(){return M(i.value)}async function M(D,E=0,oe=!1){hn.value=!1;const ce=f.value!==D,Ie=E!==t.value,q=Ot(D)?.meta,$=q?.slide?.frontmatter.clicksStart??0;E=Jt(E,$,q?.__clicksContext?.total??it),(oe||ce||Ie)&&await r?.push({path:Le(D,s.value,r.currentRoute.value.name==="export"),query:{...r.currentRoute.value.query,clicks:E===0?void 0:E.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function C(){r?.push({path:Le(f.value,!0),query:{...r.currentRoute.value.query}})}function j(){r?.push({path:Le(f.value,!1),query:{...r.currentRoute.value.query}})}return{slides:X,total:i,currentPath:c,currentSlideNo:f,currentPage:f,currentSlideRoute:n,currentLayout:d,currentTransition:b,clicksDirection:l,nextRoute:p,prevRoute:m,clicksContext:e,clicks:h,clicksStart:u,clicksTotal:g,hasNext:y,hasPrev:v,tocTree:_,navDirection:a,openInEditor:w,next:P,prev:T,go:M,goLast:K,goFirst:le,nextSlide:R,prevSlide:z,enterPresenter:C,exitPresenter:j}}const ri=cs(()=>{const n=_t(),e=go(),t=k(()=>(n?.currentRoute?.value?.query,new URLSearchParams(location.search))),s=k(()=>t.value.has("print")||e.name==="export"),o=O(t.value.get("print")==="clicks"),r=k(()=>t.value.has("embedded")),i=k(()=>e.name==="play"),a=k(()=>e.name==="presenter"),l=k(()=>e.name==="notes"),c=k(()=>!a.value&&(!A.remote||t.value.get("password")===A.remote)),f=k(()=>!!e.params.no),d=k(()=>f.value?Ot(e.params.no)?.no??1:1),h=k(()=>X.value[d.value-1]),u=O(vs(X.value.length,e?.query?.range)),g=Ur("clicks","0"),p=k(()=>y(h.value)),m=k({get(){let v=+(g.value||0);return Number.isNaN(v)&&(v=0),v},set(v){hn.value=!1,g.value=v.toString()}});function y(v){if(v?.meta?.__clicksContext)return v.meta.__clicksContext;const b=v.no,w=ys(k({get(){return d.value===b?Math.max(+(g.value??0),w.clicksStart):d.value>b?it:w.clicksStart},set(_){d.value===b&&(g.value=_.toString())}}),v?.meta.slide?.frontmatter.clicksStart??0,v?.meta.clicks);return v?.meta&&(v.meta.__clicksContext=w),w}return{router:n,currentRoute:k(()=>e),isPrintMode:s,isPrintWithClicks:o,isEmbedded:r,isPlaying:i,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:f,currentSlideNo:d,currentSlideRoute:h,clicksContext:p,queryClicksRaw:g,queryClicks:m,printRange:u,getPrimaryClicks:y}}),je=cs(()=>{const n=ri(),e=_t(),t=oi(n.currentSlideRoute,n.clicksContext,n.queryClicks,n.isPresenter,n.isPrintMode,e);return Q([t.total,n.currentRoute],async()=>{const s=n.currentRoute.value.params.no;n.hasPrimarySlide.value&&!Ot(s)&&(s&&s!=="index.html"?await t.go(t.total.value,0,!0):await t.go(1,0,!0))},{flush:"pre",immediate:!0}),{...t,...n}}),Wn=mo(),It=x("slidev-color-schema","auto"),qn=k(()=>A.colorSchema!=="auto"),Ms=k({get(){return qn.value?A.colorSchema==="dark":It.value==="auto"?Wn.value:It.value==="dark"},set(n){qn.value||(It.value=n===Wn.value?"auto":n?"dark":"light")}}),fl=ls(Ms);if(St){const n="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Q(Ms,e=>{const t=window.document.createElement("style");t.appendChild(document.createTextNode(n)),window.document.head.appendChild(t);const s=document.querySelector("html");s.classList.toggle("dark",e),s.classList.toggle("light",!e),window.getComputedStyle(t).opacity,document.head.removeChild(t)},{immediate:!0})}function ii(){const{isPrintMode:n}=je();yo(k(()=>n.value?` @page { size: ${hs.value}px ${Ro.value}px; margin: 0px; } * { transition: none !important; transition-duration: 0s !important; }`:""))}const dn=Symbol.for("yaml.alias"),ai=Symbol.for("yaml.document"),Me=Symbol.for("yaml.map"),Os=Symbol.for("yaml.pair"),pn=Symbol.for("yaml.scalar"),Ke=Symbol.for("yaml.seq"),se=Symbol.for("yaml.node.type"),Oe=n=>!!n&&typeof n=="object"&&n[se]===dn,Pt=n=>!!n&&typeof n=="object"&&n[se]===ai,Ps=n=>!!n&&typeof n=="object"&&n[se]===Me,I=n=>!!n&&typeof n=="object"&&n[se]===Os,N=n=>!!n&&typeof n=="object"&&n[se]===pn,gn=n=>!!n&&typeof n=="object"&&n[se]===Ke;function J(n){if(n&&typeof n=="object")switch(n[se]){case Me:case Ke:return!0}return!1}function F(n){if(n&&typeof n=="object")switch(n[se]){case dn:case Me:case pn:case Ke:return!0}return!1}const Cs=n=>(N(n)||J(n))&&!!n.anchor,ke=Symbol("break visit"),li=Symbol("skip children"),We=Symbol("remove node");function Ct(n,e){const t=ci(e);Pt(n)?Ae(null,n.contents,t,Object.freeze([n]))===We&&(n.contents=null):Ae(null,n,t,Object.freeze([]))}Ct.BREAK=ke;Ct.SKIP=li;Ct.REMOVE=We;function Ae(n,e,t,s){const o=ui(n,e,t,s);if(F(o)||I(o))return fi(n,s,o),Ae(n,o,t,s);if(typeof o!="symbol"){if(J(e)){s=Object.freeze(s.concat(e));for(let r=0;ree(s,String(o),t));if(n&&typeof n.toJSON=="function"){if(!t||!Cs(n))return n.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(n,s),t.onCreate=r=>{s.res=r,delete t.onCreate};const o=n.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof n=="bigint"&&!t?.keep?Number(n):n}class mn{constructor(e){Object.defineProperty(this,se,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:o,reviver:r}={}){if(!Pt(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=ee(this,"",i);if(typeof o=="function")for(const{count:l,res:c}of i.anchors.values())o(c,l);return typeof r=="function"?Be(r,{"":a},"",a):a}}class hi extends mn{constructor(e){super(dn),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let s;t?.aliasResolveCache?s=t.aliasResolveCache:(s=[],Ct(e,{Node:(r,i)=>{(Oe(i)||Cs(i))&&s.push(i)}}),t&&(t.aliasResolveCache=s));let o;for(const r of s){if(r===this)break;r.anchor===this.source&&(o=r)}return o}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:o,maxAliasCount:r}=t,i=this.resolve(o,t);if(!i){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=s.get(i);if(a||(ee(i,null,t),a=s.get(i)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=at(o,i,s)),a.count*a.aliasCount>r)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,s){const o=`*${this.source}`;if(e){if(Ts(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${o} `}return o}}function at(n,e,t){if(Oe(e)){const s=e.resolve(n),o=t&&s&&t.get(s);return o?o.count*o.aliasCount:0}else if(J(e)){let s=0;for(const o of e.items){const r=at(n,o,t);r>s&&(s=r)}return s}else if(I(e)){const s=at(n,e.key,t),o=at(n,e.value,t);return Math.max(s,o)}return 1}const Es=n=>!n||typeof n!="function"&&typeof n!="object";class L extends mn{constructor(e){super(pn),this.value=e}toJSON(e,t){return t?.keep?this.value:ee(this.value,e,t)}toString(){return String(this.value)}}L.BLOCK_FOLDED="BLOCK_FOLDED";L.BLOCK_LITERAL="BLOCK_LITERAL";L.PLAIN="PLAIN";L.QUOTE_DOUBLE="QUOTE_DOUBLE";L.QUOTE_SINGLE="QUOTE_SINGLE";function di(n,e,t){return t.find(s=>s.identify?.(n)&&!s.format)}function mt(n,e,t){if(Pt(n)&&(n=n.contents),F(n))return n;if(I(n)){const d=t.schema[Me].createNode?.(t.schema,null,t);return d.items.push(n),d}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:s,onAnchor:o,onTagObj:r,schema:i,sourceObjects:a}=t;let l;if(s&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor??(l.anchor=o(n)),new hi(l.anchor);l={anchor:null,node:null},a.set(n,l)}let c=di(n,e,i.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const d=new L(n);return l&&(l.node=d),d}c=n instanceof Map?i[Me]:Symbol.iterator in Object(n)?i[Ke]:i[Me]}r&&(r(c),delete t.onTagObj);const f=c?.createNode?c.createNode(t.schema,n,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,n,t):new L(n);return c.default||(f.tag=c.tag),l&&(l.node=f),f}function Un(n,e,t){let s=t;for(let o=e.length-1;o>=0;--o){const r=e[o];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const i=[];i[r]=s,s=i}else s=new Map([[r,s]])}return mt(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const pi=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Ls extends mn{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>F(s)||I(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(pi(e))this.add(t);else{const[s,...o]=e,r=this.get(s,!0);if(J(r))r.addIn(o,t);else if(r===void 0&&this.schema)this.set(s,Un(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const o=this.get(t,!0);if(J(o))return o.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...o]=e,r=this.get(s,!0);return o.length===0?!t&&N(r)?r.value:r:J(r)?r.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!I(t))return!1;const s=t.value;return s==null||e&&N(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const o=this.get(t,!0);return J(o)?o.hasIn(s):!1}setIn(e,t){const[s,...o]=e;if(o.length===0)this.set(s,t);else{const r=this.get(s,!0);if(J(r))r.setIn(o,t);else if(r===void 0&&this.schema)this.set(s,Un(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}}const gi=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function Je(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const $e=(n,e,t)=>n.endsWith(` `)?Je(t,e):t.includes(` `)?` `+Je(t,e):(n.endsWith(" ")?"":" ")+t,As="flow",Zt="block",lt="quoted";function Tt(n,e,t="flow",{indentAtStart:s,lineWidth:o=80,minContentWidth:r=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return n;oo-Math.max(2,r)?c.push(0):d=o-s);let h,u,g=!1,p=-1,m=-1,y=-1;t===Zt&&(p=Jn(n,p,e.length),p!==-1&&(d=p+l));for(let b;b=n[p+=1];){if(t===lt&&b==="\\"){switch(m=p,n[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if(b===` `)t===Zt&&(p=Jn(n,p,e.length)),d=p+e.length+l,h=void 0;else{if(b===" "&&u&&u!==" "&&u!==` `&&u!==" "){const w=n[p+1];w&&w!==" "&&w!==` `&&w!==" "&&(h=p)}if(p>=d)if(h)c.push(h),d=h+l,h=void 0;else if(t===lt){for(;u===" "||u===" ";)u=b,b=n[p+=1],g=!0;const w=p>y+1?p-2:m-1;if(f[w])return n;c.push(w),f[w]=!0,d=w+l,h=void 0}else g=!0}u=b}if(g&&a&&a(),c.length===0)return n;i&&i();let v=n.slice(0,c[0]);for(let b=0;b({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),Lt=n=>/^(%|---|\.\.\.)/m.test(n);function mi(n,e,t){if(!e||e<0)return!1;const s=e-t,o=n.length;if(o<=s)return!1;for(let r=0,i=0;rs)return!0;if(i=r+1,o-i<=s)return!1}return!0}function qe(n,e){const t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,o=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(Lt(n)?" ":"");let i="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(i+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{i+=t.slice(a,l);const f=t.substr(l+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(s||t[l+2]==='"'||t.length `;let d,h;for(h=t.length;h>0;--h){const _=t[h-1];if(_!==` `&&_!==" "&&_!==" ")break}let u=t.substring(h);const g=u.indexOf(` `);g===-1?d="-":t===u||g!==u.length-1?(d="+",r&&r()):d="",u&&(t=t.slice(0,-u.length),u[u.length-1]===` `&&(u=u.slice(0,-1)),u=u.replace(en,`$&${c}`));let p=!1,m,y=-1;for(m=0;m{P=!0});const R=Tt(`${v}${_}${u}`,c,Zt,T);if(!P)return`>${w} ${c}${R}`}return t=t.replace(/\n+/g,`$&${c}`),`|${w} ${c}${v}${t}${u}`}function yi(n,e,t,s){const{type:o,value:r}=n,{actualString:i,implicitKey:a,indent:l,indentStep:c,inFlow:f}=e;if(a&&r.includes(` `)||f&&/[[\]{},]/.test(r))return De(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||f||!r.includes(` `)?De(r,e):ct(n,e,t,s);if(!a&&!f&&o!==L.PLAIN&&r.includes(` `))return ct(n,e,t,s);if(Lt(r)){if(l==="")return e.forceBlockIndent=!0,ct(n,e,t,s);if(a&&l===c)return De(r,e)}const d=r.replace(/\n+/g,`$& ${l}`);if(i){const h=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(d),{compat:u,tags:g}=e.doc.schema;if(g.some(h)||u?.some(h))return De(r,e)}return a?d:Tt(d,l,As,Et(e,!1))}function vi(n,e,t,s){const{implicitKey:o,inFlow:r}=e,i=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)});let{type:a}=n;a!==L.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=L.QUOTE_DOUBLE);const l=f=>{switch(f){case L.BLOCK_FOLDED:case L.BLOCK_LITERAL:return o||r?De(i.value,e):ct(i,e,t,s);case L.QUOTE_DOUBLE:return qe(i.value,e);case L.QUOTE_SINGLE:return Xt(i.value,e);case L.PLAIN:return yi(i,e,t,s);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:f,defaultStringType:d}=e.options,h=o&&f||d;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function bi(n,e){const t=Object.assign({blockQuote:!0,commentString:gi,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},n.schema.toStringOptions,e);let s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:n,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:s,options:t}}function wi(n,e){if(e.tag){const o=n.filter(r=>r.tag===e.tag);if(o.length>0)return o.find(r=>r.format===e.format)??o[0]}let t,s;if(N(e)){s=e.value;let o=n.filter(r=>r.identify?.(s));if(o.length>1){const r=o.filter(i=>i.test);r.length>0&&(o=r)}t=o.find(r=>r.format===e.format)??o.find(r=>!r.format)}else s=e,t=n.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!t){const o=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${o} value`)}return t}function ki(n,e,{anchors:t,doc:s}){if(!s.directives)return"";const o=[],r=(N(n)||J(n))&&n.anchor;r&&Ts(r)&&(t.add(r),o.push(`&${r}`));const i=n.tag??(e.default?null:e.tag);return i&&o.push(s.directives.tagString(i)),o.join(" ")}function yt(n,e,t,s){if(I(n))return n.toString(e,t,s);if(Oe(n)){if(e.doc.directives)return n.toString(e);if(e.resolvedAliases?.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(n):e.resolvedAliases=new Set([n]),n=n.resolve(e.doc)}let o;const r=F(n)?n:e.doc.createNode(n,{onTagObj:l=>o=l});o??(o=wi(e.doc.schema.tags,r));const i=ki(r,o,e);i.length>0&&(e.indentAtStart=(e.indentAtStart??0)+i.length+1);const a=typeof o.stringify=="function"?o.stringify(r,e,t,s):N(r)?vi(r,e,t,s):r.toString(e,t,s);return i?N(r)||a[0]==="{"||a[0]==="["?`${i} ${a}`:`${i} ${e.indent}${a}`:a}function _i({key:n,value:e},t,s,o){const{allNullValues:r,doc:i,indent:a,indentStep:l,options:{commentString:c,indentSeq:f,simpleKeys:d}}=t;let h=F(n)&&n.comment||null;if(d){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(J(n)||!F(n)&&typeof n=="object"){const T="With simple keys, collection cannot be used as a key value";throw new Error(T)}}let u=!d&&(!n||h&&e==null&&!t.inFlow||J(n)||(N(n)?n.type===L.BLOCK_FOLDED||n.type===L.BLOCK_LITERAL:typeof n=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!u&&(d||!r),indent:a+l});let g=!1,p=!1,m=yt(n,t,()=>g=!0,()=>p=!0);if(!u&&!t.inFlow&&m.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(t.inFlow){if(r||e==null)return g&&s&&s(),m===""?"?":u?`? ${m}`:m}else if(r&&!d||e==null&&u)return m=`? ${m}`,h&&!g?m+=$e(m,t.indent,c(h)):p&&o&&o(),m;g&&(h=null),u?(h&&(m+=$e(m,t.indent,c(h))),m=`? ${m} ${a}:`):(m=`${m}:`,h&&(m+=$e(m,t.indent,c(h))));let y,v,b;F(e)?(y=!!e.spaceBefore,v=e.commentBefore,b=e.comment):(y=!1,v=null,b=null,e&&typeof e=="object"&&(e=i.createNode(e))),t.implicitKey=!1,!u&&!h&&N(e)&&(t.indentAtStart=m.length+1),p=!1,!f&&l.length>=2&&!t.inFlow&&!u&&gn(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let w=!1;const _=yt(e,t,()=>w=!0,()=>p=!0);let P=" ";if(h||y||v){if(P=y?` `:"",v){const T=c(v);P+=` ${Je(T,t.indent)}`}_===""&&!t.inFlow?P===` `&&(P=` `):P+=` ${t.indent}`}else if(!u&&J(e)){const T=_[0],R=_.indexOf(` `),z=R!==-1,le=t.inFlow??e.flow??e.items.length===0;if(z||!le){let K=!1;if(z&&(T==="&"||T==="!")){let M=_.indexOf(" ");T==="&"&&M!==-1&&Mn===et||typeof n=="symbol"&&n.description===et,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new L(Symbol(et)),{addToJSMap:$s}),stringify:()=>et},Mi=(n,e)=>(xt.identify(e)||N(e)&&(!e.type||e.type===L.PLAIN)&&xt.identify(e.value))&&n?.doc.schema.tags.some(t=>t.tag===xt.tag&&t.default);function $s(n,e,t){if(t=n&&Oe(t)?t.resolve(n.doc):t,gn(t))for(const s of t.items)Ht(n,e,s);else if(Array.isArray(t))for(const s of t)Ht(n,e,s);else Ht(n,e,t)}function Ht(n,e,t){const s=n&&Oe(t)?t.resolve(n.doc):t;if(!Ps(s))throw new Error("Merge sources must be maps or map aliases");const o=s.toJSON(null,n,Map);for(const[r,i]of o)e instanceof Map?e.has(r)||e.set(r,i):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function Ds(n,e,{key:t,value:s}){if(F(t)&&t.addToJSMap)t.addToJSMap(n,e,s);else if(Mi(n,t))$s(n,e,s);else{const o=ee(t,"",n);if(e instanceof Map)e.set(o,ee(s,o,n));else if(e instanceof Set)e.add(o);else{const r=Oi(t,o,n),i=ee(s,r,n);r in e?Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[r]=i}}return e}function Oi(n,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(F(n)&&t?.doc){const s=bi(t.doc,{});s.anchors=new Set;for(const r of t.anchors.keys())s.anchors.add(r.anchor);s.inFlow=!0,s.inStringifyKey=!0;const o=n.toString(s);if(!t.mapKeyWarned){let r=JSON.stringify(o);r.length>40&&(r=r.substring(0,36)+'..."'),Si(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function yn(n,e,t){const s=mt(n,void 0,t),o=mt(e,void 0,t);return new ie(s,o)}class ie{constructor(e,t=null){Object.defineProperty(this,se,{value:Os}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return F(t)&&(t=t.clone(e)),F(s)&&(s=s.clone(e)),new ie(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return Ds(t,s,this)}toString(e,t,s){return e?.doc?_i(this,e,t,s):JSON.stringify(this)}}function Ns(n,e,t){return(e.inFlow??n.flow?Ci:Pi)(n,e,t)}function Pi({comment:n,items:e},t,{blockItemPrefix:s,flowChars:o,itemIndent:r,onChompKeep:i,onComment:a}){const{indent:l,options:{commentString:c}}=t,f=Object.assign({},t,{indent:r,type:null});let d=!1;const h=[];for(let g=0;gm=null,()=>d=!0);m&&(y+=$e(y,r,c(m))),d&&m&&(d=!1),h.push(s+y)}let u;if(h.length===0)u=o.start+o.end;else{u=h[0];for(let g=1;gm=null);gf||y.includes(` `))&&(c=!0),d.push(y),f=d.length}const{start:h,end:u}=t;if(d.length===0)return h+u;if(!c){const g=d.reduce((p,m)=>p+m.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=h;for(const p of d)g+=p?` ${r}${o}${p}`:` `;return`${g} ${o}${u}`}else return`${h}${i}${d.join(" ")}${i}${u}`}function vt({indent:n,options:{commentString:e}},t,s,o){if(s&&o&&(s=s.replace(/^\n+/,"")),s){const r=Je(e(s),n);t.push(r.trimStart())}}function Se(n,e){const t=N(e)?e.value:e;for(const s of n)if(I(s)&&(s.key===e||s.key===t||N(s.key)&&s.key.value===t))return s}class Te extends Ls{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Me,e),this.items=[]}static from(e,t,s){const{keepUndefined:o,replacer:r}=s,i=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||o)&&i.items.push(yn(l,c,s))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){let s;I(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new ie(e,e?.value):s=new ie(e.key,e.value);const o=Se(this.items,s.key),r=this.schema?.sortMapEntries;if(o){if(!t)throw new Error(`Key ${s.key} already set`);N(o.value)&&Es(s.value)?o.value.value=s.value:o.value=s.value}else if(r){const i=this.items.findIndex(a=>r(s,a)<0);i===-1?this.items.push(s):this.items.splice(i,0,s)}else this.items.push(s)}delete(e){const t=Se(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const o=Se(this.items,e)?.value;return(!t&&N(o)?o.value:o)??void 0}has(e){return!!Se(this.items,e)}set(e,t){this.add(new ie(e,t),!0)}toJSON(e,t,s){const o=s?new s:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(o);for(const r of this.items)Ds(t,o,r);return o}toString(e,t,s){if(!e)return JSON.stringify(this);for(const o of this.items)if(!I(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ns(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}class Rs extends Ls{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ke,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=tt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=tt(e);if(typeof s!="number")return;const o=this.items[s];return!t&&N(o)?o.value:o}has(e){const t=tt(e);return typeof t=="number"&&t=0?e:null}function Ti(n,e,t){const{replacer:s}=t,o=new Rs(n);o.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof s=="function"&&(i=s.call(e,String(r++),i));let a,l;if(Array.isArray(i))if(i.length===2)a=i[0],l=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const c=Object.keys(i);if(c.length===1)a=c[0],l=i[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=i;o.items.push(yn(a,l,t))}return o}class vn extends Rs{constructor(){super(),this.add=Te.prototype.add.bind(this),this.delete=Te.prototype.delete.bind(this),this.get=Te.prototype.get.bind(this),this.has=Te.prototype.has.bind(this),this.set=Te.prototype.set.bind(this),this.tag=vn.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t?.onCreate&&t.onCreate(s);for(const o of this.items){let r,i;if(I(o)?(r=ee(o.key,"",t),i=ee(o.value,r,t)):r=ee(o,"",t),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,i)}return s}static from(e,t,s){const o=Ti(e,t,s),r=new this;return r.items=o.items,r}}vn.tag="tag:yaml.org,2002:omap";class bn extends Te{constructor(e){super(e),this.tag=bn.tag}add(e){let t;I(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ie(e.key,null):t=new ie(e,null),Se(this.items,t.key)||this.items.push(t)}get(e,t){const s=Se(this.items,e);return!t&&I(s)?N(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=Se(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new ie(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:o}=s,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),r.items.push(yn(i,null,s));return r}}bn.tag="tag:yaml.org,2002:set";new Set("0123456789ABCDEFabcdef");new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");new Set(",[]{}");new Set(` ,[]{} \r `);function wn(n=5){const e=[],t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=t.length;for(let o=0;oEi.push(n));Y(ue,"$onPatch",n=>Li.push(n));js();Y(ue,"$patch",async()=>!1);const Ai={channels:[],enabled:!0,init(n,e,t,s=!1){let o;if(!s)o=new BroadcastChannel(n),o.addEventListener("message",r=>e(r.data)),this.channels.push(o);else if(s){this.listener=function(i){i&&i.key===n&&i.newValue&&e(JSON.parse(i.newValue))},window.addEventListener("storage",this.listener);const r=window.localStorage.getItem(n);r&&e(JSON.parse(r))}return(r,i=!1)=>{this.enabled&&(!s&&o&&!i&&o.postMessage(us(r)),s&&!i&&window.localStorage.setItem(n,JSON.stringify(r)))}},disable(){this.enabled=!1,this.channels.forEach(n=>n.close()),this.listener&&window.removeEventListener("storage",this.listener)}},$i=W([Ai]),Di=new Map,Kn=O({});function Is(n,e,t=!1){const s=[];let o=!1,r=!1,i,a;const l=W(e);function c(u){s.push(u)}function f(u,g){l[u]!==g&&(clearTimeout(i),o=!0,l[u]=g,i=setTimeout(()=>o=!1,0))}function d(u){o||(clearTimeout(a),r=!0,Object.entries(u).forEach(([g,p])=>{l[g]=p}),a=setTimeout(()=>r=!1,0))}function h(u){Di.set(u,{onUpdate:d,persist:t,state:l}),Kn.value[u]=$i.map(p=>p.init(u,d,l,t)).filter(p=>!!p);function g(){Kn.value[u].forEach(p=>p?.(us(l),r)),o||s.forEach(p=>p(l))}Q(l,g,{deep:!0})}return{init:h,onPatch:c,onUpdate:d,patch:f,state:l}}const{init:Ni,onPatch:dl,patch:pl,state:gl}=Is(ue,ue,!1),Pe=W({page:0,clicks:0});let Ri=[],ji=[];Y(Pe,"$syncUp",!0);Y(Pe,"$syncDown",!0);Y(Pe,"$paused",!1);Y(Pe,"$onSet",n=>Ri.push(n));Y(Pe,"$onPatch",n=>ji.push(n));js();Y(Pe,"$patch",async()=>!1);const{init:Ii,onPatch:xi,patch:nt,state:ml}=Is(Pe,{page:1,clicks:0,clicksTotal:0});function Hi(){const n=rs().appContext.app,e=W({nav:je(),configs:A,themeConfigs:k(()=>A.themeConfig)});n.provide(fn,O("none")),n.provide(zr,e),n.provide(un,k(()=>e.nav.currentSlideNo)),n.provide(Mt,cn(hr()));for(const h of Io)h();const{clicksContext:t,currentSlideNo:s,hasPrimarySlide:o,isNotesViewer:r,isPresenter:i,isPrintMode:a}=je();cr({title:$t,htmlAttrs:A.htmlAttrs}),ii(),Ii(`${$t} - shared`),Ni(`${$t} - drawings`);const l=`${location.origin}_${wn()}`,c=k(()=>i.value?"presenter":"viewer");function f(){(i.value?Xe.value.presenterSend:Xe.value.viewerSend)&&(r.value||a.value||!i.value&&!Wr.includes(location.host.split(":")[0])||(nt("page",+s.value),nt("clicks",t.value.current),nt("clicksTotal",t.value.total),nt("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const d=_t();d.afterEach(f),Q(t,f),xi(h=>{(i.value?Xe.value.presenterReceive:Xe.value.viewerReceive)&&(!o.value||a.value||h.lastUpdate?.type!==c.value&&(+h.page==+s.value&&+t.value.current==+h.clicks||(hn.value=!1,d.replace({path:Le(h.page,i.value),query:{...d.currentRoute.value.query,clicks:h.clicks||0}}))))})}const Fi=as({__name:"App",setup(n){return Hi(),Ne(()=>{for(const[e,t]of Object.entries(jo.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{const s=bo("RouterView");return ht(),vo(s)}}}),zi=[];async function xs(n,e={}){const t=e.document||n.resolvedOptions.document;if(!t||!n.dirty)return;const s={shouldRender:!0,tags:[]};if(await n.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return n._domUpdatePromise||(n._domUpdatePromise=new Promise(async o=>{const r=new Map,i=new Promise(u=>{n.resolveTags().then(g=>{u(g.map(p=>{const m=r.get(p._d)||0,y={tag:p,id:(m?`${p._d}:${m}`:p._d)||En(p),shouldRender:!0};return p._d&&ps(p._d)&&r.set(p._d,m+1),y}))})});let a=n._dom;if(!a){a={title:t.title,elMap:new Map().set("htmlAttrs",t.documentElement).set("bodyAttrs",t.body)};for(const u of["body","head"]){const g=t[u]?.children;for(const p of g){const m=p.tagName.toLowerCase();if(!Tn.has(m))continue;const y=gs({tag:m,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((v,b)=>(v[b]=p.getAttribute(b),v),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=Gt(y)||En(y),a.elMap.has(y._d)){let v=1,b=y._d;for(;a.elMap.has(b);)b=`${y._d}:${v++}`;a.elMap.set(b,p)}else a.elMap.set(y._d,p)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(u,g,p){const m=`${u}:${g}`;a.sideEffects[m]=p,delete a.pendingSideEffects[m]}function c({id:u,$el:g,tag:p}){const m=p.tag.endsWith("Attrs");a.elMap.set(u,g),m||(p.textContent&&p.textContent!==g.textContent&&(g.textContent=p.textContent),p.innerHTML&&p.innerHTML!==g.innerHTML&&(g.innerHTML=p.innerHTML),l(u,"el",()=>{g?.remove(),a.elMap.delete(u)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const v=p.props[y];if(y.startsWith("on")&&typeof v=="function"){const w=g?.dataset;if(w&&w[`${y}fired`]){const _=y.slice(0,-5);v.call(g,new Event(_.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?t.defaultView:g).addEventListener(y.substring(2),v.bind(g)),g.setAttribute(`data-${y}`,""));continue}const b=`attr:${y}`;if(y==="class"){if(!v)continue;for(const w of v)m&&l(u,`${b}:${w}`,()=>g.classList.remove(w)),!g.classList.contains(w)&&g.classList.add(w)}else if(y==="style"){if(!v)continue;for(const[w,_]of v)l(u,`${b}:${w}`,()=>{g.style.removeProperty(w)}),g.style.setProperty(w,_)}else v!==!1&&v!==null&&(g.getAttribute(y)!==v&&g.setAttribute(y,v===!0?"":String(v)),m&&l(u,b,()=>g.removeAttribute(y)))}}const f=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const u of h){const{tag:g,shouldRender:p,id:m}=u;if(p){if(g.tag==="title"){t.title=g.textContent,l("title","",()=>t.title=a.title);continue}u.$el=u.$el||a.elMap.get(m),u.$el?c(u):Tn.has(g.tag)&&f.push(u)}}for(const u of f){const g=u.tag.tagPosition||"head";u.$el=t.createElement(u.tag.tag),c(u),d[g]=d[g]||t.createDocumentFragment(),d[g].appendChild(u.$el)}for(const u of h)await n.hooks.callHook("dom:renderTag",u,t,l);d.head&&t.head.appendChild(d.head),d.bodyOpen&&t.body.insertBefore(d.bodyOpen,t.body.firstChild),d.bodyClose&&t.body.appendChild(d.bodyClose);for(const u in a.pendingSideEffects)a.pendingSideEffects[u]();n._dom=a,await n.hooks.callHook("dom:rendered",{renders:h}),o()}).finally(()=>{n._domUpdatePromise=void 0,n.dirty=!1})),n._domUpdatePromise}function Vi(n={}){const e=n.domOptions?.render||xs;n.document=n.document||(typeof window<"u"?document:void 0);const t=n.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return rr({...n,plugins:[...n.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[t?JSON.parse(t):!1,...n.init||[]]})}function Bi(n,e){let t=0;return()=>{const s=++t;e(()=>{t===s&&n()})}}function Wi(n={}){const e=Vi({domOptions:{render:Bi(()=>xs(e),t=>setTimeout(t,0))},...n});return e.install=ar(e),e}function yl(n,e=""){const t=["slidev-page",e],s=n?.meta?.slide?.no;return s!=null&&t.push(`slidev-page-${s}`),t.filter(Boolean).join(" ")}async function vl(){const{saveAs:n}=await H(async()=>{const{saveAs:e}=await import("./modules/file-saver-BQwH87cS.js").then(t=>t.F);return{saveAs:e}},[]);n(typeof A.download=="string"?A.download:A.exportFilename?`${A.exportFilename}.pdf`:"/deno/slidev-exported.pdf",`${A.title}.pdf`)}function Re(n,e,t){return(n.instance?.$).provides[e]??t}function qi(){return{install(n){n.directive("click",{name:"v-click",mounted(e,t){const s=ut(e,t,t.value);s!=null&&(e.classList.toggle(rt,!0),e.dataset.slidevClicksStart=String(s.start),Number.isFinite(s.end)&&(e.dataset.slidevClicksEnd=String(s.end)),e.watchStopHandle=Ne(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?Fe:He,o),e.classList.toggle(Nt,o)):e.classList.toggle(s.flagFade?Fe:He,!o),e.classList.toggle(Rt,r),e.classList.toggle(jt,i)}))},unmounted:Ft}),n.directive("after",{name:"v-after",mounted(e,t){const s=ut(e,t,"+0");s!=null&&(e.classList.toggle(rt,!0),e.watchStopHandle=Ne(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?Fe:He,o),e.classList.toggle(Nt,o)):e.classList.toggle(s.flagFade?Fe:He,!o),e.classList.toggle(Rt,r),e.classList.toggle(jt,i)}))},unmounted:Ft}),n.directive("click-hide",{name:"v-click-hide",mounted(e,t){const s=ut(e,t,t.value,!0);s!=null&&(e.classList.toggle(rt,!0),e.watchStopHandle=Ne(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;e.classList.toggle(s.flagFade?Fe:He,o),e.classList.toggle(Nt,o),e.classList.toggle(Rt,r),e.classList.toggle(jt,i)}))},unmounted:Ft})}}}const Hs=new Map;function ut(n,e,t,s=!1){const o=Re(e,Mt)?.value;if(!n||!o)return null;const r=s||e.modifiers.hide!==!1&&e.modifiers.hide!=null,i=e.modifiers.fade!==!1&&e.modifiers.fade!=null,a=o.calculate(t);if(!a)return null;o.register(n,a);const l=k(()=>r?!a.isActive.value:a.isActive.value),c=k(()=>l.value?"shown":Number.isFinite(a.end)?o.current{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:t}}function Ji(n){return()=>{}}function Ki(n,e,t,s=!1){function o($){return n?Re(n,$):_o($)}const r=o(fn),i=o(Vr)??{},a=o(un),l=k(()=>Ji(a.value)),c=o(Fr)??O(1),f=o(Br)??O(1),{left:d,top:h,stop:u}=Ui(o(bs)??O()),{isPrintMode:g}=je(),p=["slide","presenter"].includes(r.value)&&!g.value;let m=n?"directive":"prop",y=wn(),v;if(Array.isArray(e)?v=e:typeof e=="string"&&e.includes(",")?v=e.split(",").map(Number):e!=null&&(m="frontmatter",y=`${e}`,e=i?.dragPos?.[y],v=e?.split(",").map(Number)),m!=="frontmatter"&&!t)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const b=[u],w=!s&&e!=null&&!Number.isFinite(v?.[3]);v??=[Number.NaN,Number.NaN,0];const _=O(v[2]),P=O(v[0]+v[2]/2),T=O(s?0:v[4]??0),R=k(()=>T.value*Math.PI/180),z=k(()=>Math.sin(R.value)),le=k(()=>Math.cos(R.value)),K=O(),M=O({left:0,top:0,width:0,height:0}),C=O(0);function j(){if(!K.value)return;const $=K.value.getBoundingClientRect();M.value={left:$.left/f.value,top:$.top/f.value,width:$.width/f.value,height:$.height/f.value},C.value=(M.value.width+M.value.height)/c.value/(Math.abs(z.value)+Math.abs(le.value))-_.value}b.push(Q(_,j,{flush:"post"}));const D=O(v[3]??0),E=w?k({get:()=>(w?C.value:D.value)||0,set:$=>!w&&(D.value=$)}):D,oe=w?O(v[1]):O(v[1]+v[3]/2),ce=w?k({get:()=>oe.value+E.value/2,set:$=>oe.value=$-E.value/2}):oe,Ie=k(()=>Number.isFinite(P.value)?{position:"absolute",zIndex:100,left:`${P.value-_.value/2}px`,top:`${ce.value-E.value/2}px`,width:`${_.value}px`,height:w?void 0:`${E.value}px`,transformOrigin:"center center",transform:`rotate(${T.value}deg)`}:{position:"absolute",zIndex:100});b.push(Q([P,ce,_,E,T],([$,Qe,Sn,Mn,On])=>{let Ce=[$-Sn/2,Qe-Mn/2,Sn].map(Math.round).join();w?Ce+=m==="directive"?",NaN":",_":Ce+=`,${Math.round(Mn)}`,Math.round(On)!==0&&(Ce+=`,${Math.round(On)}`),m==="directive"&&(Ce=`[${Ce}]`),l.value(y,Ce,m,t)}));const q={dragId:y,dataSource:m,markdownSource:t,isArrow:s,zoom:f,autoHeight:w,x0:P,y0:ce,width:_,height:E,rotate:T,container:K,containerStyle:Ie,watchStopHandles:b,dragging:k(()=>Ye.value===q),mounted(){p&&(j(),e||setTimeout(()=>{j(),P.value=(M.value.left+M.value.width/2-d.value)/c.value,ce.value=(M.value.top-h.value)/c.value,_.value=M.value.width/c.value,E.value=M.value.height/c.value},100))},unmounted(){p&&q.stopDragging()},startDragging(){p&&(j(),Ye.value=q)},stopDragging(){p&&Ye.value===q&&(Ye.value=null)}};return b.push(ko(K,$=>{const Qe=document.querySelector("#drag-control-container");Qe&&$.target&&Qe.contains($.target)||q.stopDragging()}),Q(So(),$=>{$||q.stopDragging()})),q}function Gi(){return{install(n){n.directive("drag",{name:"v-drag",created(e,t,s){const o=Ki(t,t.value,s.props?.markdownSource);s.props&&(s.props={...s.props},delete s.props.markdownSource),o.container.value=e,e.draggingState=o,e.dataset.dragId=o.dragId,o.watchStopHandles.push(Q(o.containerStyle,r=>{for(const[i,a]of Object.entries(r))a&&(e.style[i]=a)},{immediate:!0})),e.addEventListener("dblclick",o.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){const t=e.draggingState;t.unmounted(),e.removeEventListener("dblclick",t.startDragging),t.watchStopHandles.forEach(s=>s())}})}}}function Fs(){return Math.floor(Math.random()*2**31)}class Qi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function tn(n,e,t){if(n&&n.length){const[s,o]=e,r=Math.PI/180*t,i=Math.cos(r),a=Math.sin(r);for(const l of n){const[c,f]=l;l[0]=(c-s)*i-(f-o)*a+s,l[1]=(c-s)*a+(f-o)*i+o}}}function Yi(n,e,t){const s=[];n.forEach(o=>s.push(...o)),tn(s,e,t)}function Zi(n,e){return n[0]===e[0]&&n[1]===e[1]}function Xi(n,e,t,s=1){const o=t,r=Math.max(e,.1),i=n[0]&&n[0][0]&&typeof n[0][0]=="number"?[n]:n,a=[0,0];if(o)for(const c of i)tn(c,a,o);const l=ea(i,r,s);if(o){for(const c of i)tn(c,a,-o);Yi(l,a,-o)}return l}function ea(n,e,t){const s=[];for(const c of n){const f=[...c];Zi(f[0],f[f.length-1])||f.push([f[0][0],f[0][1]]),f.length>2&&s.push(f)}const o=[];e=Math.max(e,.1);const r=[];for(const c of s)for(let f=0;fc.yminf.ymin?1:c.xf.x?1:c.ymax===f.ymax?0:(c.ymax-f.ymax)/Math.abs(c.ymax-f.ymax)),!r.length)return o;let i=[],a=r[0].ymin,l=0;for(;i.length||r.length;){if(r.length){let c=-1;for(let d=0;da);d++)c=d;r.splice(0,c+1).forEach(d=>{i.push({s:a,edge:d})})}if(i=i.filter(c=>!(c.edge.ymax<=a)),i.sort((c,f)=>c.edge.x===f.edge.x?0:(c.edge.x-f.edge.x)/Math.abs(c.edge.x-f.edge.x)),(t!==1||l%e===0)&&i.length>1)for(let c=0;c=i.length)break;const d=i[c].edge,h=i[f].edge;o.push([[Math.round(d.x),a],[Math.round(h.x),a]])}a+=t,i.forEach(c=>{c.edge.x=c.edge.x+t*c.edge.islope}),l++}return o}function Ge(n,e){var t;const s=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=e.strokeWidth*4),o=Math.round(Math.max(o,.1));let r=1;return e.roughness>=1&&(((t=e.randomizer)===null||t===void 0?void 0:t.next())||Math.random())>.7&&(r=o),Xi(n,o,s,r||1)}class kn{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const s=Ge(e,t);return{type:"fillSketch",ops:this.renderLines(s,t)}}renderLines(e,t){const s=[];for(const o of e)s.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],t));return s}}function At(n){const e=n[0],t=n[1];return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}class ta extends kn{fillPolygons(e,t){let s=t.hachureGap;s<0&&(s=t.strokeWidth*4),s=Math.max(s,.1);const o=Object.assign({},t,{hachureGap:s}),r=Ge(e,o),i=Math.PI/180*t.hachureAngle,a=[],l=s*.5*Math.cos(i),c=s*.5*Math.sin(i);for(const[d,h]of r)At([d,h])&&a.push([[d[0]-l,d[1]+c],[...h]],[[d[0]+l,d[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,t)}}}class na extends kn{fillPolygons(e,t){const s=this._fillPolygons(e,t),o=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),r=this._fillPolygons(e,o);return s.ops=s.ops.concat(r.ops),s}}class sa{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});const s=Ge(e,t);return this.dotsOnLines(s,t)}dotsOnLines(e,t){const s=[];let o=t.hachureGap;o<0&&(o=t.strokeWidth*4),o=Math.max(o,.1);let r=t.fillWeight;r<0&&(r=t.strokeWidth/2);const i=o/4;for(const a of e){const l=At(a),c=l/o,f=Math.ceil(c)-1,d=l-f*o,h=(a[0][0]+a[1][0])/2-o/4,u=Math.min(a[0][1],a[1][1]);for(let g=0;g{const a=At(i),l=Math.floor(a/(s+o)),c=(a+o-l*(s+o))/2;let f=i[0],d=i[1];f[0]>d[0]&&(f=i[1],d=i[0]);const h=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let u=0;u{const i=At(r),a=Math.round(i/(2*t));let l=r[0],c=r[1];l[0]>c[0]&&(l=r[1],c=r[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let d=0;df%2?c+t:c+e);r.push({key:"C",data:l}),e=l[4],t=l[5];break}case"Q":r.push({key:"Q",data:[...a]}),e=a[2],t=a[3];break;case"q":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"Q",data:l}),e=l[2],t=l[3];break}case"A":r.push({key:"A",data:[...a]}),e=a[5],t=a[6];break;case"a":e+=a[5],t+=a[6],r.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,t]});break;case"H":r.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],r.push({key:"H",data:[e]});break;case"V":r.push({key:"V",data:[...a]}),t=a[0];break;case"v":t+=a[0],r.push({key:"V",data:[t]});break;case"S":r.push({key:"S",data:[...a]}),e=a[2],t=a[3];break;case"s":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"S",data:l}),e=l[2],t=l[3];break}case"T":r.push({key:"T",data:[...a]}),e=a[0],t=a[1];break;case"t":e+=a[0],t+=a[1],r.push({key:"T",data:[e,t]});break;case"Z":case"z":r.push({key:"Z",data:[]}),e=s,t=o;break}return r}function Bs(n){const e=[];let t="",s=0,o=0,r=0,i=0,a=0,l=0;for(const{key:c,data:f}of n){switch(c){case"M":e.push({key:"M",data:[...f]}),[s,o]=f,[r,i]=f;break;case"C":e.push({key:"C",data:[...f]}),s=f[4],o=f[5],a=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[s,o]=f;break;case"H":s=f[0],e.push({key:"L",data:[s,o]});break;case"V":o=f[0],e.push({key:"L",data:[s,o]});break;case"S":{let d=0,h=0;t==="C"||t==="S"?(d=s+(s-a),h=o+(o-l)):(d=s,h=o),e.push({key:"C",data:[d,h,...f]}),a=f[0],l=f[1],s=f[2],o=f[3];break}case"T":{const[d,h]=f;let u=0,g=0;t==="Q"||t==="T"?(u=s+(s-a),g=o+(o-l)):(u=s,g=o);const p=s+2*(u-s)/3,m=o+2*(g-o)/3,y=d+2*(u-d)/3,v=h+2*(g-h)/3;e.push({key:"C",data:[p,m,y,v,d,h]}),a=u,l=g,s=d,o=h;break}case"Q":{const[d,h,u,g]=f,p=s+2*(d-s)/3,m=o+2*(h-o)/3,y=u+2*(d-u)/3,v=g+2*(h-g)/3;e.push({key:"C",data:[p,m,y,v,u,g]}),a=d,l=h,s=u,o=g;break}case"A":{const d=Math.abs(f[0]),h=Math.abs(f[1]),u=f[2],g=f[3],p=f[4],m=f[5],y=f[6];d===0||h===0?(e.push({key:"C",data:[s,o,m,y,m,y]}),s=m,o=y):(s!==m||o!==y)&&(Ws(s,o,m,y,d,h,u,g,p).forEach(function(b){e.push({key:"C",data:b})}),s=m,o=y);break}case"Z":e.push({key:"Z",data:[]}),s=r,o=i;break}t=c}return e}function ca(n){return Math.PI*n/180}function ze(n,e,t){const s=n*Math.cos(t)-e*Math.sin(t),o=n*Math.sin(t)+e*Math.cos(t);return[s,o]}function Ws(n,e,t,s,o,r,i,a,l,c){const f=ca(i);let d=[],h=0,u=0,g=0,p=0;if(c)[h,u,g,p]=c;else{[n,e]=ze(n,e,-f),[t,s]=ze(t,s,-f);const M=(n-t)/2,C=(e-s)/2;let j=M*M/(o*o)+C*C/(r*r);j>1&&(j=Math.sqrt(j),o=j*o,r=j*r);const D=a===l?-1:1,E=o*o,oe=r*r,ce=E*oe-E*C*C-oe*M*M,Ie=E*C*C+oe*M*M,q=D*Math.sqrt(Math.abs(ce/Ie));g=q*o*C/r+(n+t)/2,p=q*-r*M/o+(e+s)/2,h=Math.asin(parseFloat(((e-p)/r).toFixed(9))),u=Math.asin(parseFloat(((s-p)/r).toFixed(9))),nu&&(h=h-Math.PI*2),!l&&u>h&&(u=u-Math.PI*2)}let m=u-h;if(Math.abs(m)>Math.PI*120/180){const M=u,C=t,j=s;l&&u>h?u=h+Math.PI*120/180*1:u=h+Math.PI*120/180*-1,t=g+o*Math.cos(u),s=p+r*Math.sin(u),d=Ws(t,s,C,j,o,r,i,0,l,[u,M,g,p])}m=u-h;const y=Math.cos(h),v=Math.sin(h),b=Math.cos(u),w=Math.sin(u),_=Math.tan(m/4),P=4/3*o*_,T=4/3*r*_,R=[n,e],z=[n+P*v,e-T*y],le=[t+P*w,s-T*b],K=[t,s];if(z[0]=2*R[0]-z[0],z[1]=2*R[1]-z[1],c)return[z,le,K].concat(d);{d=[z,le,K].concat(d);const M=[];for(let C=0;C2){const o=[];for(let r=0;rMath.PI*2&&(u=0,g=Math.PI*2);const p=Math.PI*2/l.curveStepCount,m=Math.min(p/2,(g-u)/2),y=es(m,c,f,d,h,u,g,1,l);if(!l.disableMultiStroke){const v=es(m,c,f,d,h,u,g,1.5,l);y.push(...v)}return i&&(a?y.push(...fe(c,f,c+d*Math.cos(u),f+h*Math.sin(u),l),...fe(c,f,c+d*Math.cos(g),f+h*Math.sin(g),l)):y.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+d*Math.cos(u),f+h*Math.sin(u)]})),{type:"path",ops:y}}function Yn(n,e){const t=Bs(Vs(_n(n))),s=[];let o=[0,0],r=[0,0];for(const{key:i,data:a}of t)switch(i){case"M":{r=[a[0],a[1]],o=[a[0],a[1]];break}case"L":s.push(...fe(r[0],r[1],a[0],a[1],e)),r=[a[0],a[1]];break;case"C":{const[l,c,f,d,h,u]=a;s.push(...ma(l,c,f,d,h,u,r,e)),r=[h,u];break}case"Z":s.push(...fe(r[0],r[1],o[0],o[1],e)),r=[o[0],o[1]];break}return{type:"path",ops:s}}function Vt(n,e){const t=[];for(const s of n)if(s.length){const o=e.maxRandomnessOffset||0,r=s.length;if(r>2){t.push({op:"move",data:[s[0][0]+S(o,e),s[0][1]+S(o,e)]});for(let i=1;iMath.PI*2&&(d=0,h=Math.PI*2);const u=(h-d)/i.curveStepCount,g=[];for(let p=d;p<=h;p=p+u)g.push([a+c*Math.cos(p),l+f*Math.sin(p)]);return g.push([a+c*Math.cos(h),l+f*Math.sin(h)]),g.push([a,l]),Ee([g],i)}function da(n,e){return S(n,e)}function pa(n,e,t){return bt(n,e,t)}function ga(n,e,t,s,o){return fe(n,e,t,s,o,!0)}function Zn(n){const e=Object.assign({},n);return e.randomizer=void 0,n.seed&&(e.seed=n.seed+1),e}function Js(n){return n.randomizer||(n.randomizer=new Qi(n.seed||0)),n.randomizer.next()}function bt(n,e,t,s=1){return t.roughness*s*(Js(t)*(e-n)+n)}function S(n,e,t=1){return bt(-n,n,e,t)}function fe(n,e,t,s,o,r=!1){const i=r?o.disableMultiStrokeFill:o.disableMultiStroke,a=rn(n,e,t,s,o,!0,!1);if(i)return a;const l=rn(n,e,t,s,o,!0,!0);return a.concat(l)}function rn(n,e,t,s,o,r,i){const a=Math.pow(n-t,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let f=o.maxRandomnessOffset||0;f*f*100>a&&(f=l/10);const d=f/2,h=.2+Js(o)*.2;let u=o.bowing*o.maxRandomnessOffset*(s-e)/200,g=o.bowing*o.maxRandomnessOffset*(n-t)/200;u=S(u,o,c),g=S(g,o,c);const p=[],m=()=>S(d,o,c),y=()=>S(f,o,c),v=o.preserveVertices;return i?p.push({op:"move",data:[n+(v?0:m()),e+(v?0:m())]}):p.push({op:"move",data:[n+(v?0:S(f,o,c)),e+(v?0:S(f,o,c))]}),i?p.push({op:"bcurveTo",data:[u+n+(t-n)*h+m(),g+e+(s-e)*h+m(),u+n+2*(t-n)*h+m(),g+e+2*(s-e)*h+m(),t+(v?0:m()),s+(v?0:m())]}):p.push({op:"bcurveTo",data:[u+n+(t-n)*h+y(),g+e+(s-e)*h+y(),u+n+2*(t-n)*h+y(),g+e+2*(s-e)*h+y(),t+(v?0:y()),s+(v?0:y())]}),p}function ot(n,e,t){if(!n.length)return[];const s=[];s.push([n[0][0]+S(e,t),n[0][1]+S(e,t)]),s.push([n[0][0]+S(e,t),n[0][1]+S(e,t)]);for(let o=1;o3){const r=[],i=1-t.curveTightness;o.push({op:"move",data:[n[1][0],n[1][1]]});for(let a=1;a+21&&o.push(r):o.push(r),o.push(n[e+3])}else{const i=n[e+0],a=n[e+1],l=n[e+2],c=n[e+3],f=_e(i,a,.5),d=_e(a,l,.5),h=_e(l,c,.5),u=_e(f,d,.5),g=_e(d,h,.5),p=_e(u,g,.5);an([i,f,u,p],0,t,o),an([p,g,h,c],0,t,o)}return o}function wa(n,e){return kt(n,0,n.length,e)}function kt(n,e,t,s,o){const r=o||[],i=n[e],a=n[t-1];let l=0,c=1;for(let f=e+1;fl&&(l=d,c=f)}return Math.sqrt(l)>s?(kt(n,e,c+1,s,r),kt(n,c,t,s,r)):(r.length||r.push(i),r.push(a)),r}function ln(n,e=.15,t){const s=[],o=(n.length-1)/3;for(let r=0;r0?kt(s,0,s.length,t):s}function ka(n,e,t){const s=_n(n),o=Bs(Vs(s)),r=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...ln(l,e)),l=[]},f=()=>{c(),i.length&&(r.push(i),i=[])};for(const{key:h,data:u}of o)switch(h){case"M":f(),a=[u[0],u[1]],i.push(a);break;case"L":c(),i.push([u[0],u[1]]);break;case"C":if(!l.length){const g=i.length?i[i.length-1]:a;l.push([g[0],g[1]])}l.push([u[0],u[1]]),l.push([u[2],u[3]]),l.push([u[4],u[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(f(),!t)return r;const d=[];for(const h of r){const u=wa(h,t);u.length&&d.push(u)}return d}const U="none";class _a{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Fs()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,s){return{shape:e,sets:t||[],options:s||this.defaultOptions}}line(e,t,s,o,r){const i=this._o(r);return this._d("line",[G(e,t,s,o,i)],i)}rectangle(e,t,s,o,r){const i=this._o(r),a=[],l=qs(e,t,s,o,i);if(i.fill){const c=[[e,t],[e+s,t],[e+s,t+o],[e,t+o]];i.fillStyle==="solid"?a.push(Vt([c],i)):a.push(Ee([c],i))}return i.stroke!==U&&a.push(l),this._d("rectangle",a,i)}ellipse(e,t,s,o,r){const i=this._o(r),a=[],l=Us(s,o,i),c=on(e,t,i,l);if(i.fill)if(i.fillStyle==="solid"){const f=on(e,t,i,l).opset;f.type="fillPath",a.push(f)}else a.push(Ee([c.estimatedPoints],i));return i.stroke!==U&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,t,s,o){const r=this.ellipse(e,t,s,s,o);return r.shape="circle",r}linearPath(e,t){const s=this._o(t);return this._d("linearPath",[Ue(e,!1,s)],s)}arc(e,t,s,o,r,i,a=!1,l){const c=this._o(l),f=[],d=Qn(e,t,s,o,r,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const u=Qn(e,t,s,o,r,i,!0,!1,h);u.type="fillPath",f.push(u)}else f.push(ha(e,t,s,o,r,i,c));return c.stroke!==U&&f.push(d),this._d("arc",f,c)}curve(e,t){const s=this._o(t),o=[],r=Gn(e,s);if(s.fill&&s.fill!==U)if(s.fillStyle==="solid"){const i=Gn(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const f of c)f.length<3?i.push(...f):f.length===3?i.push(...ln(ts([f[0],f[0],f[1],f[2]]),10,(1+s.roughness)/2)):i.push(...ln(ts(f),10,(1+s.roughness)/2))}i.length&&o.push(Ee([i],s))}return s.stroke!==U&&o.push(r),this._d("curve",o,s)}polygon(e,t){const s=this._o(t),o=[],r=Ue(e,!0,s);return s.fill&&(s.fillStyle==="solid"?o.push(Vt([e],s)):o.push(Ee([e],s))),s.stroke!==U&&o.push(r),this._d("polygon",o,s)}path(e,t){const s=this._o(t),o=[];if(!e)return this._d("path",o,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=s.fill&&s.fill!=="transparent"&&s.fill!==U,i=s.stroke!==U,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=ka(e,1,l),f=Yn(e,s);if(r)if(s.fillStyle==="solid")if(c.length===1){const d=Yn(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else o.push(Vt(c,s));else o.push(Ee(c,s));return i&&(a?c.forEach(d=>{o.push(Ue(d,!1,s))}):o.push(f)),this._d("path",o,s)}opsToPath(e,t){let s="";for(const o of e.ops){const r=typeof t=="number"&&t>=0?o.data.map(i=>+i.toFixed(t)):o.data;switch(o.op){case"move":s+=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}return s.trim()}toPaths(e){const t=e.sets||[],s=e.options||this.defaultOptions,o=[];for(const r of t){let i=null;switch(r.type){case"path":i={d:this.opsToPath(r),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:U};break;case"fillPath":i={d:this.opsToPath(r),stroke:U,strokeWidth:0,fill:s.fill||U};break;case"fillSketch":i=this.fillSketch(r,s);break}i&&o.push(i)}return o}fillSketch(e,t){let s=t.fillWeight;return s<0&&(s=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||U,strokeWidth:s,fill:U}}_mergedShape(e){return e.filter((t,s)=>s===0?!0:t.op!=="move")}}const Ks="http://www.w3.org/2000/svg",Sa=800;let Bt=null;function Ma(){return Bt||(Bt=new _a().defaultOptions),Bt}function Wt(n,e,t){return{...Ma(),maxRandomnessOffset:2,roughness:n==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:n!=="double",disableMultiStrokeFill:!1,seed:e,...t}}function Oa(n){const e=n.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const t=e;if(t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}}return[5,5,5,5]}function Pa(n,e,t,s,o,r){const i=[];let a=t.strokeWidth||2;const l=Oa(t),c=t.animate===void 0?!0:!!t.animate,f=t.iterations||2,d=t.rtl?1:0,h=Wt("single",r,t);switch(t.type){case"underline":{const u=e.y+e.h+l[2];for(let g=d;gv.setAttribute(b,w);for(const v of u){const b=document.createElementNS(Ks,"path");if(y(b,"d",v),y(b,"fill","none"),y(b,"stroke",t.color||"currentColor"),y(b,"stroke-width",`${a}`),t.opacity!==void 0&&y(b,"style",`opacity:${t.opacity}`),c){const w=b.getTotalLength();g.push(w),m+=w}n.appendChild(b),p.push(b)}if(c){let v=0;for(let b=0;bsetTimeout(e,n))}function Ca(n){const e=[];for(const t of n){let s="";for(const o of t.ops){const r=o.data;switch(o.op){case"move":s.trim()&&e.push(s.trim()),s=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function Ta(){if(!window.__rno_kf_s){const n=window.__rno_kf_s=document.createElement("style");n.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(n)}}var Ea=Object.defineProperty,La=(n,e,t)=>e in n?Ea(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Z=(n,e,t)=>(La(n,typeof e!="symbol"?e+"":e,t),t);class Aa{constructor(e,t){Z(this,"_state","unattached"),Z(this,"_config"),Z(this,"_resizing",!1),Z(this,"_ro"),Z(this,"_seed",Fs()),Z(this,"_e"),Z(this,"_svg"),Z(this,"_lastSizes",[]),Z(this,"_animationDelay",0),Z(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),Z(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){Ta();const e=this._svg=document.createElementNS(Ks,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const o=window.getComputedStyle(this._e).position;(!o||o==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;tMath.round(o)===Math.round(r);return s(e.x,t.x)&&s(e.y,t.y)&&s(e.w,t.w)&&s(e.h,t.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,t){let s=this._config;t&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const o=this.rects();let r=0;o.forEach(c=>r+=c.w);const i=s.animationDuration||Sa;let a=0;const l=[];for(let c=0;cObject.assign(n,{type:"box"}),circle:n=>Object.assign(n,{type:"circle"}),underline:n=>Object.assign(n,{type:"underline"}),highlight:n=>Object.assign(n,{type:"highlight"}),"strike-through":n=>Object.assign(n,{type:"strike-through"}),"crossed-off":n=>Object.assign(n,{type:"crossed-off"}),bracket:n=>Object.assign(n,{type:"bracket"}),strike:n=>Object.assign(n,{type:"strike-through"}),cross:n=>Object.assign(n,{type:"crossed-off"}),crossed:n=>Object.assign(n,{type:"crossed-off"}),linethrough:n=>Object.assign(n,{type:"strike-through"}),"line-through":n=>Object.assign(n,{type:"strike-through"}),black:n=>B(n,"text-black"),blue:n=>B(n,"text-blue"),cyan:n=>B(n,"text-cyan"),gray:n=>B(n,"text-gray"),green:n=>B(n,"text-green"),indigo:n=>B(n,"text-indigo"),lime:n=>B(n,"text-lime"),orange:n=>B(n,"text-orange"),pink:n=>B(n,"text-pink"),purple:n=>B(n,"text-purple"),red:n=>B(n,"text-red"),teal:n=>B(n,"text-teal"),white:n=>B(n,"text-white"),yellow:n=>B(n,"text-yellow")},Da=[[/^delay-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||100;return e.opacity=s/100,e}]];function Na(){return{install(n){n.directive("mark",{name:"v-mark",mounted:(e,t)=>{const{isPrintMode:s}=je(),o=k(()=>{const a=typeof t.value=="object"&&!Array.isArray(t.value)?{...t.value}:{at:t.value};let l={at:a.at};const c=Object.entries(t.modifiers).filter(([d,h])=>{if(ss[d])return l=ss[d](l,h),!1;for(const[u,g]of Da){const p=d.match(u);if(p)return l=g(p,l,h),!1}return!0});c.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",c);const f={...l,...a};return f.type||="underline",s.value&&(f.animationDuration=1),f}),r=$a(e,o.value),i=ut(e,t,o.value.at);if(!i){r.show();return}e.watchStopHandle=Ne(()=>{let a;o.value.class&&(r.class=o.value.class),o.value.color&&(r.color=o.value.color);const l=o.value.at;l===!0?a=!0:l===!1?a=!1:a=i.isActive.value,a!=null&&(a?r.show():r.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function Ra(){return{install(n){const e=Mo();n.directive("motion",{name:"v-motion",mounted(t,s,o,r){const i=Re(s,Mt),a=Re(s,un),l=Re(s,fn),{currentPage:c,clicks:f,isPrintMode:d}=je(),h=o.props={...o.props},u={...h.initial,...h.variants?.["slidev-initial"]},g={...h.enter,...h.variants?.["slidev-enter"]},p={...h.leave,...h.variants?.["slidev-leave"]};delete h.initial,delete h.enter,delete h.leave;const m=`${wn()}-`,y=[];for(const b of Object.keys(h))if(b.startsWith("click-")){const w=b.slice(6),_=w.includes("-")?w.split("-").map(Number):+w,P=m+w;y.push({id:P,at:_,variant:{...h[b]},info:i?.value.calculate(_)}),delete h[b]}y.sort((b,w)=>(Array.isArray(b.at)?b.at[0]:b.at)-(Array.isArray(w.at)?w.at[0]:w.at)),e.created(t,s,o,r),e.mounted(t,s,o,r);const v=t.motionInstance;v.clickIds=y.map(b=>b.id),v.set(u),v.watchStopHandle=Q([a,c,f].filter(Boolean),()=>{const b=Hs.get(t)?.visibilityState.value??"shown";if(!i?.value||!["slide","presenter"].includes(l?.value??"")){const w={...u,...g};for(const{variant:_}of y)Object.assign(w,_);v.set(w)}else if(d.value||a?.value===c.value)if(b==="shown"){const w={...u,...g};for(const{variant:_,info:P}of y)(!P||P.isActive.value)&&Object.assign(w,_);d.value?v.set(w):v.apply(w)}else v.apply(b==="before"?u:p);else v.apply((a?.value??-1)>c.value?u:p)},{immediate:!0})},unmounted(t){t.motionInstance.watchStopHandle()}})}}}const ja=[];function Ia(){const n=[];function e(t){if(!A.remote||A.remote===t.query.password)return!0;if(A.remote&&t.query.password===void 0){const s=prompt("Enter password");if(A.remote===s)return!0}return t.params.no?{path:`/${t.params.no}`}:{path:""}}return n.push({name:"entry",path:"/entry",component:()=>H(()=>import("./slidev/entry-CZYp-ovf.js"),__vite__mapDeps([17,2,4,5,18])),beforeEnter:e},{name:"overview",path:"/overview",component:()=>H(()=>import("./slidev/overview-DJd1DFh-.js"),__vite__mapDeps([19,1,2,20,21,22,23,24,4,5])),beforeEnter:e},{name:"notes",path:"/notes",component:()=>H(()=>import("./slidev/notes-_7u0OrYk.js"),__vite__mapDeps([25,2,20,21,24,4,5])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>H(()=>import("./slidev/presenter-BKlqMcFi.js"),__vite__mapDeps([26,2,22,23,27,3,1,24,4,5,28,20,21,29,30,31])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}}),n.push({name:"play",path:"/:no",component:()=>H(()=>import("./slidev/play-LWBLmfLn.js"),__vite__mapDeps([32,2,22,23,27,3,1,24,4,5,28,33]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>H(()=>import("./slidev/404-Dsz-mvhP.js"),__vite__mapDeps([34,2,4,5,35]))}),ja.reduce((t,s)=>s(t),n)}async function xa(n){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const t=Oo({history:Po("/deno/"),routes:Ia()});n.use(t),n.use(Wi()),n.use(qi()),n.use(Na()),n.use(Gi()),n.use(Ra()),n.use(To,{container:"#twoslash-container"});const s={app:n,router:t};for(const o of zi)await o(s)}async function Ha(){const n=Co(Fi);await xa(n),n.mount("#app")}Ha();export{Ye as $,ni as A,Yt as B,it as C,Xr as D,sl as E,ul as F,Va as G,pt as H,Ka as I,ws as J,Yr as K,Xe as L,Ya as M,vl as N,al as O,il as P,X as Q,Qr as R,Ot as S,Fr as T,Ui as U,hs as V,Ro as W,Za as X,hn as Y,Ga as Z,gr as _,je as a,Qa as a0,nl as a1,tl as a2,gl as a3,pl as a4,dl as a5,Y as a6,js as a7,Is as a8,fs as a9,bs as aa,Wa as ab,Vr as ac,un as ad,fn as ae,Mt as af,Br as ag,yl as ah,wn as ai,Qt as aj,Lo as ak,He as al,hl as am,zr as an,qa as ao,qr as ap,Ms as b,hr as c,ml as d,ys as e,el as f,Le as g,Ze as h,qn as i,Zr as j,gt as k,ll as l,cl as m,rl as n,Jt as o,Ba as p,ol as q,Cn as r,$t as s,fl as t,cr as u,A as v,H as w,Ua as x,Ja as y,Xa as z};