Files
deno/assets/index-rf-F2tFP.js
T

120 lines
117 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/md-qmrWYQRK.js","assets/modules/unplugin-icons-CKCvuFEe.js","assets/modules/vue-B5Z8nqrj.js","assets/slidev/context-4Zmiv8Pf.js","assets/modules/shiki-CcvRnmUC.js","assets/modules/shiki-CozCpemh.css","assets/slidev/md-B6RFtVdw.js","assets/slidev/center-DAJrXehz.js","assets/md-nvohY89M.js","assets/slidev/default-DSudBgp-.js","assets/md-CZj16ESJ.js","assets/slidev/CodeBlockWrapper.vue_vue_type_script_setup_true_lang-BF2nG0kw.js","assets/md-C2-TJJBb.js","assets/md-B6l56aPh.js","assets/md-BeZRY9zZ.js","assets/md-BIH8Ceaw.js","assets/md-D7BEmdd1.js","assets/md-DcqkmfnG.js","assets/md-BbUxolVn.js","assets/md-BFbPZW0t.js","assets/md-CsW0_ZIL.js","assets/md-BAbzb0Dq.js","assets/md-EGw95NXF.js","assets/md-DpN4ZrBZ.js","assets/slidev/entry-61lgje8l.js","assets/entry-q4Ov0ZOD.css","assets/slidev/overview-BFf1NMWS.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-DTWbV8dj.js","assets/NoteDisplay-DWf9_dzI.css","assets/slidev/SlideWrapper-COZ1zGz_.js","assets/SlideWrapper-DqjhgBiS.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-BC4Pfblr.js","assets/slidev/notes-CEOhFq-t.js","assets/slidev/presenter-DeMVvv64.js","assets/slidev/shortcuts-CMHCD_v_.js","assets/shortcuts-KYKP4x8T.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-CGbbedn_.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-DmM0aILH.css","assets/slidev/play-BXYbUFFO.js","assets/play-D_7yfuao.css","assets/slidev/404-BaqPXPpo.js","assets/404-DpZlFGY4.css"])))=>i.map(i=>d[i]);
import{z as k,A as Zt,B as co,C as uo,D as vs,r as O,E as Ve,G as fo,H as ho,I as po,J as bs,K as ee,L as ws,M as F,N as go,O as mo,f as Xt,o as bt,t as yo,d as ks,i as vo,F as bo,g as Dn,P as D,Q as mn,R as wo,S as Ct,p as ko,T as _o,U as So,V as Mo,W as Oo,X as To,Y as V,Z as Po,_ as _s,$ as $t,a0 as Eo,a1 as Ss,a2 as Co,a3 as $o,a4 as Lo,a5 as Ms,b as Ao,a as Do,a6 as Ro,a7 as Io,a8 as No,a9 as jo,aa as xo,ab as Ho,ac as Fo,c as Vo}from"./modules/vue-B5Z8nqrj.js";import{T as zo}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:`<h2>Deno</h2>
<p>Deno is the open-source JavaScript runtime for the modern web.</p>
<p>Built on web standards with zero-config TypeScript, unmatched security, and a complete built-in toolchain.</p>
<p>Learn more at <a href="https://deno.com" target="_blank">Deno</a></p>
`,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 en(n,e,t){return Math.min(t,Math.max(e,n))}function Bo(...n){return qo(n).reduce((e,t)=>e+t,0)}function Wo(n){return n=n??[],Array.isArray(n)?n:[n]}function qo(n){return Wo(n).flat(1)}function Uo(n){return Array.from(new Set(n))}function Rn(...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(;r<t;)o.push(r),r+=s||1;return o}function Jo(n){return n!=null}function Ko(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>e(t,s)).filter(Jo))}const ml="build",Os=k(()=>A.aspectRatio),Ts=k(()=>A.canvasWidth),Go=k(()=>Math.ceil(Ts.value/Os.value)),Qo=k(()=>Ko(A.themeConfig||{},(n,e)=>[`--slidev-theme-${n}`,e])),Ht=A.slidesTitle,yl="/deno/",Yo=[],Zo=new Set(["link","style","script","noscript"]),Xo=new Set(["title","titleTemplate","script","style","noscript"]),In=new Set(["base","meta","link","style","script","noscript"]),er=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),tr=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),nr=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),sr=new Set(["templateParams","htmlAttrs","bodyAttrs"]),or=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function tn(n,e={},t){for(const s in n){const o=n[s],r=t?`${t}:${s}`:s;typeof o=="object"&&o!==null?tn(o,e,r):typeof o=="function"&&(e[r]=o)}return e}const rr={run:n=>n()},ir=()=>rr,Ps=typeof console.createTask<"u"?console.createTask:ir;function ar(n,e){const t=e.shift(),s=Ps(t);return n.reduce((o,r)=>o.then(()=>s.run(()=>r(...e))),Promise.resolve())}function lr(n,e){const t=e.shift(),s=Ps(t);return Promise.all(n.map(o=>s.run(()=>o(...e))))}function Ft(n,e){for(const t of[...n])t(e)}class cr{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=tn(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=tn(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(ar,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(lr,e,...t)}callHookWith(e,t,...s){const o=this._before||this._after?{name:t,args:s,context:{}}:void 0;this._before&&Ft(this._before,o);const r=e(t in this._hooks?[...this._hooks[t]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&Ft(this._after,o)}):(this._after&&o&&Ft(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 ur(){return new cr}const fr=["name","property","http-equiv"],hr=new Set(["viewport","description","keywords","robots"]);function Es(n){const e=n.split(":");return e.length?or.has(e[1]):!1}function nn(n){const{props:e,tag:t}=n;if(tr.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 fr)if(e[s]!==void 0){const o=e[s],r=o.includes(":"),i=hr.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(Xo.has(t)){const s=n.textContent||n.innerHTML;if(s)return`${t}:content:${s}`}}function Nn(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 wt(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=>wt(r,e));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=wt(o[i],e,i);return r}return o}function dr(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 Cs(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]=dr(t,s);return}if(nr.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 pr(n,e){const t=typeof e=="object"&&typeof e!="function"?e:{[n==="script"||n==="noscript"||n==="style"?"innerHTML":"textContent"]:e},s=Cs({tag:n,props:{}},t);return s.key&&Zo.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 gr(n,e){if(!n)return[];typeof n=="function"&&(n=n());const t=(o,r)=>{for(let i=0;i<e.length;i++)r=e[i](o,r);return r};n=t(void 0,n);const s=[];return n=wt(n,t),Object.entries(n||{}).forEach(([o,r])=>{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(pr(o,i))}),s.flat()}const jn=(n,e)=>n._w===e._w?n._p-e._p:n._w-e._w,xn={base:-10,title:10},mr={critical:-8,high:-1,low:2},Hn={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}},yr=/@import/,qe=n=>n===""||n===!0;function vr(n,e){if(typeof e.tagPriority=="number")return e.tagPriority;let t=100;const s=mr[e.tagPriority]||0,o=n.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Hn;if(e.tag in xn)t=xn[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=Hn.meta[r])}else e.tag==="link"&&e.props.rel?t=o.link[e.props.rel]:e.tag==="script"?qe(e.props.async)?t=o.script.async:e.props.src&&!qe(e.props.defer)&&!qe(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?t=o.script.sync:qe(e.props.defer)&&e.props.src&&!qe(e.props.async)&&(t=o.script.defer):e.tag==="style"&&(t=e.innerHTML&&yr.test(e.innerHTML)?o.style.imported:o.style.sync);return(t||100)+s}function Fn(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 br(n={}){const e=ur();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=>Fn(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:gr(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=vr(i,p),p._p=(u._i<<10)+m,p._d=nn(p),p))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(jn).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||(sr.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"&&Es(g)?(h.set(g,Object.assign([...Array.isArray(p)?p:[p],u],u)),l=!0):(u._w===p._w?u._p>p._p:u?._w<p?._w)&&h.set(g,u);return h},a.tagMap);const c=a.tagMap.get("title"),f=a.tagMap.get("titleTemplate");if(i._title=c?.textContent,f){const h=f?.textContent;if(i._titleTemplate=h,h){let u=typeof h=="function"?h(c?.textContent):h;typeof u=="string"&&!i.plugins.has("template-params")&&(u=u.replace("%s",c?.textContent||"")),c?u===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:u}):(f.tag="title",f.textContent=u)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(jn)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const d=[];for(const h of a.tags){const{innerHTML:u,tag:g,props:p}=h;if(er.has(g)&&!(Object.keys(p).length===0&&!h.innerHTML&&!h.textContent)&&!(g==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(g==="script"&&u){if(p.type?.endsWith("json")){const m=typeof u=="string"?u:JSON.stringify(u);h.innerHTML=m.replace(/</g,"\\u003C")}else typeof u=="string"&&(h.innerHTML=u.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));h._d=nn(h)}d.push(h)}}return d},invalidate(){for(const a of s.values())r.add(a._i);i.dirty=!0,e.callHook("entries:updated",i)}};return(n?.plugins||[]).forEach(a=>Fn(i,a)),i.hooks.callHook("init",i),n.init?.forEach(a=>a&&i.push(a)),i}const wr=(n,e)=>co(e)?Zt(e):e,$s="usehead";function kr(n){return{install(t){t.config.globalProperties.$unhead=n,t.config.globalProperties.$head=n,t.provide($s,n)}}.install}function _r(){if(uo()){const n=vs($s);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 Sr(n,e={}){const t=e.head||_r();return t.ssr?t.push(n||{},e):Mr(t,n,e)}function Mr(n,e,t={}){const s=O(!1);let o;return Ve(()=>{const i=s.value?{}:wt(e,wr);o?o.patch(i):o=n.push(i,t)}),bs()&&(fo(()=>{o.dispose()}),ho(()=>{s.value=!0}),po(()=>{s.value=!1})),o}function sn(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 Or(n){return Array.isArray(n)?[sn(n[0]),sn(n[1])]:null}function Ls(n,e=0,t){const s=O(!1);let o=new Map,r=new Map;const i={get current(){return en(+n.value,e,i.total)},set current(a){n.value=s.value?en(a,e,i.total):a},clicksStart:e,get relativeSizeMap(){return o},get maxMap(){return r},get isMounted(){return s.value},setup(){ws(()=>{s.value=!0,r=F(r),go(n)||(i.current=n.value)}),mo(()=>{s.value=!1,o=new Map,r=new Map})},calculateSince(a,l=1){const c=sn(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=Or(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.current<h)}},calculate(a){return Array.isArray(a)?i.calculateRange(a):i.calculateSince(a)},register(a,l){if(!l)return;const{delta:c,max:f}=l;o.set(a,c),r.set(a,f)},unregister(a){o.delete(a),r.delete(a)},get currentOffset(){return Bo(...o.values())},get total(){return t??(s.value?Math.max(0,...r.values()):0)}};return i}function Tr(n,e=0){const t=n?.meta.slide?.frontmatter.clicksStart??0,s=O(Math.max(Zt(e),t));return ee(()=>Zt(e),o=>{s.value=Math.max(o,t)}),Ls(s,t,n?.meta?.clicks)}const Pr="modulepreload",Er=function(n){return"/deno/"+n},Vn={},E=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=Er(c),c in Vn)return;Vn[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":Pr,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)})},Cr=(n,e)=>{const t=n.__vccOpts||n;for(const[s,o]of e)t[s]=o;return t},$r={},Lr={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function Ar(n,e){return bt(),Xt("div",Lr,yo("Failed to fetch this slide. Please check your network connection."))}const z=Cr($r,[["render",Ar]]),Dr={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},Rr=ks({__name:"SlideLoading",setup(n){const e=O(!1);return ws(()=>{setTimeout(()=>{e.value=!0},200)}),(t,s)=>(bt(),Xt("div",Dr,[e.value?(bt(),Xt(bo,{key:0},[s[0]||(s[0]=Dn("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1)),s[1]||(s[1]=Dn("div",null,"Loading slide...",-1))],64)):vo("v-if",!0)]))}}),Ir={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=D(Ir),Nr=F({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:`<p>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. <a href="https://sli.dev/guide/syntax.html#notes" target="_blank">Read more in the docs</a></p>
`,raw:"",frontmatter:he,filepath:"",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),jr={layout:"center",class:"text-center"},de=D(jr),xr=F({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}),Hr={},pe=D(Hr),Fr=F({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:`<p>Read more about <a href="https://docs.deno.com/runtime/" target="_blank">Deno</a></p>
`,raw:"",frontmatter:pe,filepath:"",start:60,id:2,no:3},__clicksContext:null,__preloaded:!1}),Vr={},ge=D(Vr),zr=F({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}),Br={},me=D(Br),Wr=F({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}),qr={layout:"center",class:"text-center"},ye=D(qr),Ur=F({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}),Jr={},ve=D(Jr),Kr=F({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:`<p>deno.json is central to customizing your deno development environment</p>
<ul>
<li>Import maps</li>
<li>Scripts</li>
<li>Formatter settings</li>
<li>Linter rules</li>
<li>TypeScript compiler options</li>
</ul>
`,raw:"",frontmatter:ve,filepath:"",start:120,id:6,no:7},__clicksContext:null,__preloaded:!1}),Gr={},be=D(Gr),Qr=F({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}),Yr={},we=D(Yr),Zr=F({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:"zb1hcg",note:"",title:"Standard Library",level:1,index:8,noteHTML:"",raw:"",frontmatter:we,filepath:"",start:166,id:8,no:9},__clicksContext:null,__preloaded:!1}),Xr={layout:"center",class:"text-center"},ke=D(Xr),ei=F({get layout(){return ke.layout},get transition(){return ke.transition},get class(){return ke.class},get clicks(){return ke.clicks},get name(){return ke.name},get preload(){return ke.preload},slide:{content:"",revision:"gvtmw3",frontmatterRaw:`layout: center
class: "text-center"
`,note:"",title:"Security & Permissions",level:1,index:9,noteHTML:"",raw:"",frontmatter:ke,filepath:"",start:182,id:9,no:10},__clicksContext:null,__preloaded:!1}),ti={},_e=D(ti),ni=F({get layout(){return _e.layout},get transition(){return _e.transition},get class(){return _e.class},get clicks(){return _e.clicks},get name(){return _e.name},get preload(){return _e.preload},slide:{content:"",revision:"yd7u20",note:"",title:"Permissions",level:1,index:10,noteHTML:"",raw:"",frontmatter:_e,filepath:"",start:190,id:10,no:11},__clicksContext:null,__preloaded:!1}),si={},Se=D(si),oi=F({get layout(){return Se.layout},get transition(){return Se.transition},get class(){return Se.class},get clicks(){return Se.clicks},get name(){return Se.name},get preload(){return Se.preload},slide:{content:"",revision:"-fzyjd6",note:"",title:"Deno KV",level:1,index:11,noteHTML:"",raw:"",frontmatter:Se,filepath:"",start:207,id:11,no:12},__clicksContext:null,__preloaded:!1}),ri={layout:"center",class:"text-center"},Me=D(ri),ii=F({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:"-3yg104",frontmatterRaw:`layout: center
class: "text-center"
`,note:"",title:"Deno Deploy",level:1,index:12,noteHTML:"",raw:"",frontmatter:Me,filepath:"",start:225,id:12,no:13},__clicksContext:null,__preloaded:!1}),ai={},Oe=D(ai),li=F({get layout(){return Oe.layout},get transition(){return Oe.transition},get class(){return Oe.class},get clicks(){return Oe.clicks},get name(){return Oe.name},get preload(){return Oe.preload},slide:{content:"",revision:"-43vs0u",note:"",title:"Deno Deploy",level:1,index:13,noteHTML:"",raw:"",frontmatter:Oe,filepath:"",start:233,id:13,no:14},__clicksContext:null,__preloaded:!1}),ci={},Te=D(ci),ui=F({get layout(){return Te.layout},get transition(){return Te.transition},get class(){return Te.class},get clicks(){return Te.clicks},get name(){return Te.name},get preload(){return Te.preload},slide:{content:"",revision:"5fp7zy",note:"",title:"Jupyter Notebooks",level:1,index:14,noteHTML:"",raw:"",frontmatter:Te,filepath:"",start:247,id:14,no:15},__clicksContext:null,__preloaded:!1}),fi={},Pe=D(fi),hi=F({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:"-y4jh31",note:"",title:"OpenTelemetry",level:1,index:15,noteHTML:"",raw:"",frontmatter:Pe,filepath:"",start:259,id:15,no:16},__clicksContext:null,__preloaded:!1}),q=new Array(16),B=(n,e)=>wo({loader:e,delay:300,loadingComponent:Rr,errorComponent:z,onError:t=>console.error("Failed to load slide "+(n+1),t)}),zn=async()=>{try{return q[0]??=await E(()=>import("./slidev/md-qmrWYQRK.js"),__vite__mapDeps([0,1,2,3,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Bn=async()=>{try{return q[1]??=await E(()=>import("./slidev/md-B6RFtVdw.js"),__vite__mapDeps([6,2,3,7,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Wn=async()=>{try{return q[2]??=await E(()=>import("./md-nvohY89M.js"),__vite__mapDeps([8,2,9,3,4,5]))}catch(n){return console.error("slide failed to load",n),z}},qn=async()=>{try{return q[3]??=await E(()=>import("./md-CZj16ESJ.js"),__vite__mapDeps([10,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Un=async()=>{try{return q[4]??=await E(()=>import("./md-C2-TJJBb.js"),__vite__mapDeps([12,2,9,3,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Jn=async()=>{try{return q[5]??=await E(()=>import("./md-B6l56aPh.js"),__vite__mapDeps([13,2,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Kn=async()=>{try{return q[6]??=await E(()=>import("./md-BeZRY9zZ.js"),__vite__mapDeps([14,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Gn=async()=>{try{return q[7]??=await E(()=>import("./md-BIH8Ceaw.js"),__vite__mapDeps([15,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Qn=async()=>{try{return q[8]??=await E(()=>import("./md-D7BEmdd1.js"),__vite__mapDeps([16,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Yn=async()=>{try{return q[9]??=await E(()=>import("./md-DcqkmfnG.js"),__vite__mapDeps([17,2,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Zn=async()=>{try{return q[10]??=await E(()=>import("./md-BbUxolVn.js"),__vite__mapDeps([18,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},Xn=async()=>{try{return q[11]??=await E(()=>import("./md-BFbPZW0t.js"),__vite__mapDeps([19,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},es=async()=>{try{return q[12]??=await E(()=>import("./md-CsW0_ZIL.js"),__vite__mapDeps([20,2,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),z}},ts=async()=>{try{return q[13]??=await E(()=>import("./md-BAbzb0Dq.js"),__vite__mapDeps([21,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},ns=async()=>{try{return q[14]??=await E(()=>import("./md-EGw95NXF.js"),__vite__mapDeps([22,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},ss=async()=>{try{return q[15]??=await E(()=>import("./md-DpN4ZrBZ.js"),__vite__mapDeps([23,11,1,2,3,9,4,5]))}catch(n){return console.error("slide failed to load",n),z}},di=[{no:1,meta:Nr,load:zn,component:B(0,zn)},{no:2,meta:xr,load:Bn,component:B(1,Bn)},{no:3,meta:Fr,load:Wn,component:B(2,Wn)},{no:4,meta:zr,load:qn,component:B(3,qn)},{no:5,meta:Wr,load:Un,component:B(4,Un)},{no:6,meta:Ur,load:Jn,component:B(5,Jn)},{no:7,meta:Kr,load:Kn,component:B(6,Kn)},{no:8,meta:Qr,load:Gn,component:B(7,Gn)},{no:9,meta:Zr,load:Qn,component:B(8,Qn)},{no:10,meta:ei,load:Yn,component:B(9,Yn)},{no:11,meta:ni,load:Zn,component:B(10,Zn)},{no:12,meta:oi,load:Xn,component:B(11,Xn)},{no:13,meta:ii,load:es,component:B(12,es)},{no:14,meta:li,load:ts,component:B(13,ts)},{no:15,meta:ui,load:ns,component:B(14,ns)},{no:16,meta:hi,load:ss,component:B(15,ss)}],se=mn(di);function As(n,e){if(!e||e==="all"||e==="*")return Rn(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(...Rn(+o,r?+r+1:n+1))}return Uo(t).filter(s=>s<=n).sort((s,o)=>s-o)}const Lt="$$slidev-clicks-context",yn="$$slidev-page",Ds="$$slidev-slide-element",pi="$$slidev-slide-scale",gi="$$slidev-context",vl="$$slidev-route",vn="$$slidev-render-context",mi="$$slidev-fontmatter",yi="$$slidev-slide-zoom",ht="slidev-vclick-target",Ue="slidev-vclick-hidden",Je="slidev-vclick-fade",Vt="slidev-vclick-hidden-explicitly",zt="slidev-vclick-current",Bt="slidev-vclick-prior",dt=999999,vi=["localhost","127.0.0.1"],bi=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],bl=[...bi,"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 wi(n,e,{mode:t="replace"}={}){const s=Ct();return k({get(){const o=s.currentRoute.value.query[n];return o==null?e:Array.isArray(o)?o.filter(Boolean):o},set(o){ko(()=>{(s.currentRoute.value.query[n]??e?.toString())!==o.toString()&&s[_o(t)]({query:{...s.currentRoute.value.query,[n]:`${o}`===e?void 0:o}})})}})}function At(n){return se.value.find(e=>e.no===+n||e.meta.slide?.frontmatter.routeAlias===n)}function je(n,e,t=!1){(typeof n=="number"||typeof n=="string")&&(n=At(n));const s=n.meta.slide?.frontmatter.routeAlias??n.no;return t?`/export/${s}`:e?`/presenter/${s}`:`/${s}`}const ki={"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 _i(n,e=!1){if(!n||(typeof n=="string"&&(n={name:n}),!n.name))return;let t=n.name.includes("|")?n.name:ki[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 Si(n,e,t){let s=n>0?t?.meta?.transition:e?.meta?.transition;return s||(s=A.transition||void 0),_i(s,n<0)}const wl=O(!1),kl=O(!1),_l=O(!1),Mi=O(!1),bn=O(!1),Sl=O(!1),Ml=O(!0),Ol=Po({xs:460,...Eo}),kt=Mo(),Tl=So(),Pl=k(()=>kt.height.value-kt.width.value/Os.value>120),El=Oo($t?document.body:null),Rs=To(),Cl=k(()=>["INPUT","TEXTAREA"].includes(Rs.value?.tagName||"")),$l=k(()=>["BUTTON","A"].includes(Rs.value?.tagName||""));V("slidev-camera","default",{listenToStorageChanges:!1});V("slidev-mic","default",{listenToStorageChanges:!1});const Oi=V("slidev-scale",0),Ll=V("slidev-wake-lock",!0),Al=V("slidev-hide-cursor-idle",!0);V("slidev-skip-export-pdf-tip",!1);V("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const Dl=V("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),Ti=V("slidev-show-editor",!1,{listenToStorageChanges:!1}),Pi=V("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),Ei=V("slidev-editor-width",$t?window.innerWidth*.4:318,{listenToStorageChanges:!1}),Ci=V("slidev-editor-height",$t?window.innerHeight*.4:300,{listenToStorageChanges:!1}),ot=mn(null),_t=V("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),rt=V("slidev-presenter-layout",1,{listenToStorageChanges:!1}),on={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},$i=V("slidev-viewer-css-filter",on,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),Rl=k(()=>Object.keys(on).some(n=>$i.value[n]!==on[n]));function Il(){rt.value=rt.value+1,rt.value>3&&(rt.value=1)}function Nl(){_t.value=Math.min(2,_t.value+.1)}function jl(){_t.value=Math.max(.5,_t.value-.1)}const xl=_s(Mi),it=V("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function Is(n,e,t=1){const s=e.meta.slide.level??t;s&&s>t&&n.length>0?Is(n[n.length-1].children,e,t+1):n.push({no:e.no,children:[],level:t,titleLevel:s,path:je(e.meta.slide?.frontmatter?.routeAlias??e.no,!1),hideInToc:!!e.meta?.slide?.frontmatter?.hideInToc,title:e.meta?.slide?.title})}function Ns(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=Ns(i.children,e,i.active||i.hasActiveParent,i,o)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function js(n,e=1){return n.filter(t=>!t.hideInToc).map(t=>({...t,children:js(t.children,e+1)}))}function Li(n,e,t){const s=k(()=>n.value.filter(r=>r.meta?.slide?.title).reduce((r,i)=>(Is(r,i),r),[])),o=k(()=>Ns(s.value,t.value,void 0,void 0,e));return k(()=>js(o.value))}function Ai(n,e,t=O(0),s,o,r){const i=k(()=>se.value.length),a=O(0),l=O(0),c=k(()=>je(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(()=>se.value[Math.min(se.value.length,f.value+1)-1]),m=k(()=>se.value[Math.max(1,f.value-1)-1]),y=k(()=>f.value<se.value.length||h.value<g.value),v=k(()=>f.value>1||h.value>0),b=k(()=>o.value?void 0:Si(a.value,n.value,m.value));ee(n,(I,$)=>{a.value=I.no-$.no});async function w(I){return!1}const _=Li(se,f,n);async function T(){l.value=1,g.value<=t.value?await j():t.value+=1}async function C(){l.value=-1,t.value<=u.value?await U(!0):t.value-=1}async function j(I=!1){l.value=1,f.value<se.value.length&&await M(f.value+1,I&&!o.value?dt:void 0)}async function U(I=!1){l.value=-1,f.value>1&&await M(f.value-1,I&&!o.value?dt:void 0)}function le(){return M(1)}function Z(){return M(i.value)}async function M(I,$=0,ie=!1){bn.value=!1;const ce=f.value!==I,We=$!==t.value,G=At(I)?.meta,R=G?.slide?.frontmatter.clicksStart??0;$=en($,R,G?.__clicksContext?.total??dt),(ie||ce||We)&&await r?.push({path:je(I,s.value,r.currentRoute.value.name==="export"),query:{...r.currentRoute.value.query,clicks:$===0?void 0:$.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function P(){r?.push({path:je(f.value,!0),query:{...r.currentRoute.value.query}})}function x(){r?.push({path:je(f.value,!1),query:{...r.currentRoute.value.query}})}return{slides:se,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:T,prev:C,go:M,goLast:Z,goFirst:le,nextSlide:j,prevSlide:U,enterPresenter:P,exitPresenter:x}}const Di=Ss(()=>{const n=Ct(),e=Co(),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?At(e.params.no)?.no??1:1),h=k(()=>se.value[d.value-1]),u=O(As(se.value.length,e?.query?.range)),g=wi("clicks","0"),p=k(()=>y(h.value)),m=k({get(){let v=+(g.value||0);return Number.isNaN(v)&&(v=0),v},set(v){bn.value=!1,g.value=v.toString()}});function y(v){if(v?.meta?.__clicksContext)return v.meta.__clicksContext;const b=v.no,w=Ls(k({get(){return d.value===b?Math.max(+(g.value??0),w.clicksStart):d.value>b?dt: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}}),Be=Ss(()=>{const n=Di(),e=Ct(),t=Ai(n.currentSlideRoute,n.clicksContext,n.queryClicks,n.isPresenter,n.isPrintMode,e);return ee([t.total,n.currentRoute],async()=>{const s=n.currentRoute.value.params.no;n.hasPrimarySlide.value&&!At(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}}),os=$o(),Wt=V("slidev-color-schema","auto"),rs=k(()=>A.colorSchema!=="auto"),xs=k({get(){return rs.value?A.colorSchema==="dark":Wt.value==="auto"?os.value:Wt.value==="dark"},set(n){rs.value||(Wt.value=n===os.value?"auto":n?"dark":"light")}}),Hl=_s(xs);if($t){const n="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";ee(xs,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 Ri(){const{isPrintMode:n}=Be();Lo(k(()=>n.value?`
@page {
size: ${Ts.value}px ${Go.value}px;
margin: 0px;
}
* {
transition: none !important;
transition-duration: 0s !important;
}`:""))}const wn=Symbol.for("yaml.alias"),Ii=Symbol.for("yaml.document"),Le=Symbol.for("yaml.map"),Hs=Symbol.for("yaml.pair"),kn=Symbol.for("yaml.scalar"),tt=Symbol.for("yaml.seq"),re=Symbol.for("yaml.node.type"),Ae=n=>!!n&&typeof n=="object"&&n[re]===wn,Dt=n=>!!n&&typeof n=="object"&&n[re]===Ii,Fs=n=>!!n&&typeof n=="object"&&n[re]===Le,H=n=>!!n&&typeof n=="object"&&n[re]===Hs,N=n=>!!n&&typeof n=="object"&&n[re]===kn,_n=n=>!!n&&typeof n=="object"&&n[re]===tt;function Y(n){if(n&&typeof n=="object")switch(n[re]){case Le:case tt:return!0}return!1}function W(n){if(n&&typeof n=="object")switch(n[re]){case wn:case Le:case kn:case tt:return!0}return!1}const Vs=n=>(N(n)||Y(n))&&!!n.anchor,Ee=Symbol("break visit"),Ni=Symbol("skip children"),Ye=Symbol("remove node");function Rt(n,e){const t=ji(e);Dt(n)?xe(null,n.contents,t,Object.freeze([n]))===Ye&&(n.contents=null):xe(null,n,t,Object.freeze([]))}Rt.BREAK=Ee;Rt.SKIP=Ni;Rt.REMOVE=Ye;function xe(n,e,t,s){const o=xi(n,e,t,s);if(W(o)||H(o))return Hi(n,s,o),xe(n,o,t,s);if(typeof o!="symbol"){if(Y(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){const i=xe(r,e.items[r],t,s);if(typeof i=="number")r=i-1;else{if(i===Ee)return Ee;i===Ye&&(e.items.splice(r,1),r-=1)}}}else if(H(e)){s=Object.freeze(s.concat(e));const r=xe("key",e.key,t,s);if(r===Ee)return Ee;r===Ye&&(e.key=null);const i=xe("value",e.value,t,s);if(i===Ee)return Ee;i===Ye&&(e.value=null)}}return o}function ji(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function xi(n,e,t,s){if(typeof t=="function")return t(n,e,s);if(Fs(e))return t.Map?.(n,e,s);if(_n(e))return t.Seq?.(n,e,s);if(H(e))return t.Pair?.(n,e,s);if(N(e))return t.Scalar?.(n,e,s);if(Ae(e))return t.Alias?.(n,e,s)}function Hi(n,e,t){const s=e[e.length-1];if(Y(s))s.items[n]=t;else if(H(s))n==="key"?s.key=t:s.value=t;else if(Dt(s))s.contents=t;else{const o=Ae(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}function zs(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function Qe(n,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let o=0,r=s.length;o<r;++o){const i=s[o],a=Qe(n,s,String(o),i);a===void 0?delete s[o]:a!==i&&(s[o]=a)}else if(s instanceof Map)for(const o of Array.from(s.keys())){const r=s.get(o),i=Qe(n,s,o,r);i===void 0?s.delete(o):i!==r&&s.set(o,i)}else if(s instanceof Set)for(const o of Array.from(s)){const r=Qe(n,s,o,o);r===void 0?s.delete(o):r!==o&&(s.delete(o),s.add(r))}else for(const[o,r]of Object.entries(s)){const i=Qe(n,s,o,r);i===void 0?delete s[o]:i!==r&&(s[o]=i)}return n.call(e,t,s)}function oe(n,e,t){if(Array.isArray(n))return n.map((s,o)=>oe(s,String(o),t));if(n&&typeof n.toJSON=="function"){if(!t||!Vs(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 Sn{constructor(e){Object.defineProperty(this,re,{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(!Dt(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=oe(this,"",i);if(typeof o=="function")for(const{count:l,res:c}of i.anchors.values())o(c,l);return typeof r=="function"?Qe(r,{"":a},"",a):a}}class Fi extends Sn{constructor(e){super(wn),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=[],Rt(e,{Node:(r,i)=>{(Ae(i)||Vs(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||(oe(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=pt(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(zs(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 pt(n,e,t){if(Ae(e)){const s=e.resolve(n),o=t&&s&&t.get(s);return o?o.count*o.aliasCount:0}else if(Y(e)){let s=0;for(const o of e.items){const r=pt(n,o,t);r>s&&(s=r)}return s}else if(H(e)){const s=pt(n,e.key,t),o=pt(n,e.value,t);return Math.max(s,o)}return 1}const Bs=n=>!n||typeof n!="function"&&typeof n!="object";class L extends Sn{constructor(e){super(kn),this.value=e}toJSON(e,t){return t?.keep?this.value:oe(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 Vi(n,e,t){return t.find(s=>s.identify?.(n)&&!s.format)}function St(n,e,t){if(Dt(n)&&(n=n.contents),W(n))return n;if(H(n)){const d=t.schema[Le].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 Fi(l.anchor);l={anchor:null,node:null},a.set(n,l)}let c=Vi(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[Le]:Symbol.iterator in Object(n)?i[tt]:i[Le]}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 is(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 St(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 zi=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Ws extends Sn{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=>W(s)||H(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(zi(e))this.add(t);else{const[s,...o]=e,r=this.get(s,!0);if(Y(r))r.addIn(o,t);else if(r===void 0&&this.schema)this.set(s,is(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(Y(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:Y(r)?r.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!H(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 Y(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(Y(r))r.setIn(o,t);else if(r===void 0&&this.schema)this.set(s,is(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}}const Bi=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function et(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const He=(n,e,t)=>n.endsWith(`
`)?et(t,e):t.includes(`
`)?`
`+et(t,e):(n.endsWith(" ")?"":" ")+t,qs="flow",rn="block",gt="quoted";function It(n,e,t="flow",{indentAtStart:s,lineWidth:o=80,minContentWidth:r=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return n;o<r&&(r=0);const l=Math.max(1+r,1+o-e.length);if(n.length<=l)return n;const c=[],f={};let d=o-e.length;typeof s=="number"&&(s>o-Math.max(2,r)?c.push(0):d=o-s);let h,u,g=!1,p=-1,m=-1,y=-1;t===rn&&(p=as(n,p,e.length),p!==-1&&(d=p+l));for(let b;b=n[p+=1];){if(t===gt&&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===rn&&(p=as(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===gt){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<c.length;++b){const w=c[b],_=c[b+1]||n.length;w===0?v=`
${e}${n.slice(0,_)}`:(t===gt&&f[w]&&(v+=`${n[w]}\\`),v+=`
${e}${n.slice(w+1,_)}`)}return v}function as(n,e,t){let s=e,o=e+1,r=n[o];for(;r===" "||r===" ";)if(e<o+t)r=n[++e];else{do r=n[++e];while(r&&r!==`
`);s=e,o=e+1,r=n[o]}return s}const Nt=(n,e)=>({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),jt=n=>/^(%|---|\.\.\.)/m.test(n);function Wi(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;r<o;++r)if(n[r]===`
`){if(r-i>s)return!0;if(i=r+1,o-i<=s)return!1}return!0}function Ze(n,e){const t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,o=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(jt(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<o)l+=1;else{for(i+=t.slice(a,l)+`
`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)i+=`
`,l+=2;i+=r,t[l+2]===" "&&(i+="\\"),l+=1,a=l+1}break;default:l+=1}return i=a?i+t.slice(a):t,s?i:It(i,r,gt,Nt(e,!1))}function an(n,e){if(e.options.singleQuote===!1||e.implicitKey&&n.includes(`
`)||/[ \t]\n|\n[ \t]/.test(n))return Ze(n,e);const t=e.indent||(jt(n)?" ":""),s="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
${t}`)+"'";return e.implicitKey?s:It(s,t,qs,Nt(e,!1))}function Fe(n,e){const{singleQuote:t}=e.options;let s;if(t===!1)s=Ze;else{const o=n.includes('"'),r=n.includes("'");o&&!r?s=an:r&&!o?s=Ze:s=t?an:Ze}return s(n,e)}let ln;try{ln=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{ln=/\n+(?!\n|$)/g}function mt({comment:n,type:e,value:t},s,o,r){const{blockQuote:i,commentString:a,lineWidth:l}=s.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return Fe(t,s);const c=s.indent||(s.forceBlockIndent||jt(t)?" ":""),f=i==="literal"?!0:i==="folded"||e===L.BLOCK_FOLDED?!1:e===L.BLOCK_LITERAL?!0:!Wi(t,l,c.length);if(!t)return f?`|
`:`>
`;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(ln,`$&${c}`));let p=!1,m,y=-1;for(m=0;m<t.length;++m){const _=t[m];if(_===" ")p=!0;else if(_===`
`)y=m;else break}let v=t.substring(0,y<m?y+1:m);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let w=(p?c?"2":"1":"")+d;if(n&&(w+=" "+a(n.replace(/ ?[\r\n]+/g," ")),o&&o()),!f){const _=t.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let T=!1;const C=Nt(s,!0);i!=="folded"&&e!==L.BLOCK_FOLDED&&(C.onOverflow=()=>{T=!0});const j=It(`${v}${_}${u}`,c,rn,C);if(!T)return`>${w}
${c}${j}`}return t=t.replace(/\n+/g,`$&${c}`),`|${w}
${c}${v}${t}${u}`}function qi(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 Fe(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||f||!r.includes(`
`)?Fe(r,e):mt(n,e,t,s);if(!a&&!f&&o!==L.PLAIN&&r.includes(`
`))return mt(n,e,t,s);if(jt(r)){if(l==="")return e.forceBlockIndent=!0,mt(n,e,t,s);if(a&&l===c)return Fe(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 Fe(r,e)}return a?d:It(d,l,qs,Nt(e,!1))}function Ui(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?Fe(i.value,e):mt(i,e,t,s);case L.QUOTE_DOUBLE:return Ze(i.value,e);case L.QUOTE_SINGLE:return an(i.value,e);case L.PLAIN:return qi(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 Ji(n,e){const t=Object.assign({blockQuote:!0,commentString:Bi,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 Ki(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 Gi(n,e,{anchors:t,doc:s}){if(!s.directives)return"";const o=[],r=(N(n)||Y(n))&&n.anchor;r&&zs(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 Mt(n,e,t,s){if(H(n))return n.toString(e,t,s);if(Ae(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=W(n)?n:e.doc.createNode(n,{onTagObj:l=>o=l});o??(o=Ki(e.doc.schema.tags,r));const i=Gi(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)?Ui(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 Qi({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=W(n)&&n.comment||null;if(d){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Y(n)||!W(n)&&typeof n=="object"){const C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let u=!d&&(!n||h&&e==null&&!t.inFlow||Y(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=Mt(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+=He(m,t.indent,c(h)):p&&o&&o(),m;g&&(h=null),u?(h&&(m+=He(m,t.indent,c(h))),m=`? ${m}
${a}:`):(m=`${m}:`,h&&(m+=He(m,t.indent,c(h))));let y,v,b;W(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&&_n(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let w=!1;const _=Mt(e,t,()=>w=!0,()=>p=!0);let T=" ";if(h||y||v){if(T=y?`
`:"",v){const C=c(v);T+=`
${et(C,t.indent)}`}_===""&&!t.inFlow?T===`
`&&(T=`
`):T+=`
${t.indent}`}else if(!u&&Y(e)){const C=_[0],j=_.indexOf(`
`),U=j!==-1,le=t.inFlow??e.flow??e.items.length===0;if(U||!le){let Z=!1;if(U&&(C==="&"||C==="!")){let M=_.indexOf(" ");C==="&"&&M!==-1&&M<j&&_[M+1]==="!"&&(M=_.indexOf(" ",M+1)),(M===-1||j<M)&&(Z=!0)}Z||(T=`
${t.indent}`)}}else(_===""||_[0]===`
`)&&(T="");return m+=T+_,t.inFlow?w&&s&&s():b&&!w?m+=He(m,t.indent,c(b)):p&&o&&o(),m}function Yi(n,e){(n==="debug"||n==="warn")&&console.warn(e)}const at="<<",qt={identify:n=>n===at||typeof n=="symbol"&&n.description===at,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new L(Symbol(at)),{addToJSMap:Us}),stringify:()=>at},Zi=(n,e)=>(qt.identify(e)||N(e)&&(!e.type||e.type===L.PLAIN)&&qt.identify(e.value))&&n?.doc.schema.tags.some(t=>t.tag===qt.tag&&t.default);function Us(n,e,t){if(t=n&&Ae(t)?t.resolve(n.doc):t,_n(t))for(const s of t.items)Ut(n,e,s);else if(Array.isArray(t))for(const s of t)Ut(n,e,s);else Ut(n,e,t)}function Ut(n,e,t){const s=n&&Ae(t)?t.resolve(n.doc):t;if(!Fs(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 Js(n,e,{key:t,value:s}){if(W(t)&&t.addToJSMap)t.addToJSMap(n,e,s);else if(Zi(n,t))Us(n,e,s);else{const o=oe(t,"",n);if(e instanceof Map)e.set(o,oe(s,o,n));else if(e instanceof Set)e.add(o);else{const r=Xi(t,o,n),i=oe(s,r,n);r in e?Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[r]=i}}return e}function Xi(n,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(W(n)&&t?.doc){const s=Ji(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)+'..."'),Yi(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 Mn(n,e,t){const s=St(n,void 0,t),o=St(e,void 0,t);return new ae(s,o)}class ae{constructor(e,t=null){Object.defineProperty(this,re,{value:Hs}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return W(t)&&(t=t.clone(e)),W(s)&&(s=s.clone(e)),new ae(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return Js(t,s,this)}toString(e,t,s){return e?.doc?Qi(this,e,t,s):JSON.stringify(this)}}function Ks(n,e,t){return(e.inFlow??n.flow?ta:ea)(n,e,t)}function ea({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;g<e.length;++g){const p=e[g];let m=null;if(W(p))!d&&p.spaceBefore&&h.push(""),Ot(t,h,p.commentBefore,d),p.comment&&(m=p.comment);else if(H(p)){const v=W(p.key)?p.key:null;v&&(!d&&v.spaceBefore&&h.push(""),Ot(t,h,v.commentBefore,d))}d=!1;let y=Mt(p,f,()=>m=null,()=>d=!0);m&&(y+=He(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;g<h.length;++g){const p=h[g];u+=p?`
${l}${p}`:`
`}}return n?(u+=`
`+et(c(n),l),a&&a()):d&&i&&i(),u}function ta({items:n},e,{flowChars:t,itemIndent:s}){const{indent:o,indentStep:r,flowCollectionPadding:i,options:{commentString:a}}=e;s+=r;const l=Object.assign({},e,{indent:s,inFlow:!0,type:null});let c=!1,f=0;const d=[];for(let g=0;g<n.length;++g){const p=n[g];let m=null;if(W(p))p.spaceBefore&&d.push(""),Ot(e,d,p.commentBefore,!1),p.comment&&(m=p.comment);else if(H(p)){const v=W(p.key)?p.key:null;v&&(v.spaceBefore&&d.push(""),Ot(e,d,v.commentBefore,!1),v.comment&&(c=!0));const b=W(p.value)?p.value:null;b?(b.comment&&(m=b.comment),b.commentBefore&&(c=!0)):p.value==null&&v?.comment&&(m=v.comment)}m&&(c=!0);let y=Mt(p,l,()=>m=null);g<n.length-1&&(y+=","),m&&(y+=He(y,s,a(m))),!c&&(d.length>f||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 Ot({indent:n,options:{commentString:e}},t,s,o){if(s&&o&&(s=s.replace(/^\n+/,"")),s){const r=et(e(s),n);t.push(r.trimStart())}}function $e(n,e){const t=N(e)?e.value:e;for(const s of n)if(H(s)&&(s.key===e||s.key===t||N(s.key)&&s.key.value===t))return s}class Ie extends Ws{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Le,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(Mn(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;H(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new ae(e,e?.value):s=new ae(e.key,e.value);const o=$e(this.items,s.key),r=this.schema?.sortMapEntries;if(o){if(!t)throw new Error(`Key ${s.key} already set`);N(o.value)&&Bs(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=$e(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const o=$e(this.items,e)?.value;return(!t&&N(o)?o.value:o)??void 0}has(e){return!!$e(this.items,e)}set(e,t){this.add(new ae(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)Js(t,o,r);return o}toString(e,t,s){if(!e)return JSON.stringify(this);for(const o of this.items)if(!H(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})),Ks(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}class Gs extends Ws{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(tt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=lt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=lt(e);if(typeof s!="number")return;const o=this.items[s];return!t&&N(o)?o.value:o}has(e){const t=lt(e);return typeof t=="number"&&t<this.items.length}set(e,t){const s=lt(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[s];N(o)&&Bs(t)?o.value=t:this.items[s]=t}toJSON(e,t){const s=[];t?.onCreate&&t.onCreate(s);let o=0;for(const r of this.items)s.push(oe(r,String(o++),t));return s}toString(e,t,s){return e?Ks(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:o}=s,r=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let a of t){if(typeof o=="function"){const l=t instanceof Set?a:String(i++);a=o.call(t,l,a)}r.items.push(St(a,void 0,s))}}return r}}function lt(n){let e=N(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function na(n,e,t){const{replacer:s}=t,o=new Gs(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(Mn(a,l,t))}return o}class On extends Gs{constructor(){super(),this.add=Ie.prototype.add.bind(this),this.delete=Ie.prototype.delete.bind(this),this.get=Ie.prototype.get.bind(this),this.has=Ie.prototype.has.bind(this),this.set=Ie.prototype.set.bind(this),this.tag=On.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(H(o)?(r=oe(o.key,"",t),i=oe(o.value,r,t)):r=oe(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=na(e,t,s),r=new this;return r.items=o.items,r}}On.tag="tag:yaml.org,2002:omap";class Tn extends Ie{constructor(e){super(e),this.tag=Tn.tag}add(e){let t;H(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ae(e.key,null):t=new ae(e,null),$e(this.items,t.key)||this.items.push(t)}get(e,t){const s=$e(this.items,e);return!t&&H(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=$e(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new ae(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(Mn(i,null,s));return r}}Tn.tag="tag:yaml.org,2002:set";new Set("0123456789ABCDEFabcdef");new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");new Set(",[]{}");new Set(` ,[]{}
\r `);function Pn(n=5){const e=[],t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=t.length;for(let o=0;o<n;o++)e.push(t.charAt(Math.floor(Math.random()*s)));return e.join("")}function Fl(n,e,t,s){const o=As(e+t-1,n);for(let r=0;r<e;r++){const i=s(r),a=o.includes(r+t);for(const l of i)l.classList.toggle("slidev-code-highlighted",a),l.classList.toggle("slidev-code-dishonored",!a),l.classList.toggle("highlighted",a),l.classList.toggle("dishonored",!a)}}function Qs(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function te(n,e,t){Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!1})}const ue=D({});let sa=[],oa=[];te(ue,"$syncUp",!0);te(ue,"$syncDown",!0);te(ue,"$paused",!1);te(ue,"$onSet",n=>sa.push(n));te(ue,"$onPatch",n=>oa.push(n));Qs();te(ue,"$patch",async()=>!1);const ra={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(Ms(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)}},ia=D([ra]),aa=new Map,ls=O({});function Ys(n,e,t=!1){const s=[];let o=!1,r=!1,i,a;const l=D(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){aa.set(u,{onUpdate:d,persist:t,state:l}),ls.value[u]=ia.map(p=>p.init(u,d,l,t)).filter(p=>!!p);function g(){ls.value[u].forEach(p=>p?.(Ms(l),r)),o||s.forEach(p=>p(l))}ee(l,g,{deep:!0})}return{init:h,onPatch:c,onUpdate:d,patch:f,state:l}}const{init:la,onPatch:Vl,patch:zl,state:Bl}=Ys(ue,ue,!1),De=D({page:0,clicks:0});let ca=[],ua=[];te(De,"$syncUp",!0);te(De,"$syncDown",!0);te(De,"$paused",!1);te(De,"$onSet",n=>ca.push(n));te(De,"$onPatch",n=>ua.push(n));Qs();te(De,"$patch",async()=>!1);const{init:fa,onPatch:ha,patch:ct,state:Wl}=Ys(De,{page:1,clicks:0,clicksTotal:0});function da(){const n=bs().appContext.app,e=D({nav:Be(),configs:A,themeConfigs:k(()=>A.themeConfig)});n.provide(vn,O("none")),n.provide(gi,e),n.provide(yn,k(()=>e.nav.currentSlideNo)),n.provide(Lt,mn(Tr()));for(const h of Yo)h();const{clicksContext:t,currentSlideNo:s,hasPrimarySlide:o,isNotesViewer:r,isPresenter:i,isPrintMode:a}=Be();Sr({title:Ht,htmlAttrs:A.htmlAttrs}),Ri(),fa(`${Ht} - shared`),la(`${Ht} - drawings`);const l=`${location.origin}_${Pn()}`,c=k(()=>i.value?"presenter":"viewer");function f(){(i.value?it.value.presenterSend:it.value.viewerSend)&&(r.value||a.value||!i.value&&!vi.includes(location.host.split(":")[0])||(ct("page",+s.value),ct("clicks",t.value.current),ct("clicksTotal",t.value.total),ct("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const d=Ct();d.afterEach(f),ee(t,f),ha(h=>{(i.value?it.value.presenterReceive:it.value.viewerReceive)&&(!o.value||a.value||h.lastUpdate?.type!==c.value&&(+h.page==+s.value&&+t.value.current==+h.clicks||(bn.value=!1,d.replace({path:je(h.page,i.value),query:{...d.currentRoute.value.query,clicks:h.clicks||0}}))))})}const pa=ks({__name:"App",setup(n){return da(),Ve(()=>{for(const[e,t]of Object.entries(Qo.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{const s=Do("RouterView");return bt(),Ao(s)}}}),ga=[];async function Zs(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)||Nn(p),shouldRender:!0};return p._d&&Es(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(!In.has(m))continue;const y=Cs({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=nn(y)||Nn(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):In.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 ma(n={}){const e=n.domOptions?.render||Zs;n.document=n.document||(typeof window<"u"?document:void 0);const t=n.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return br({...n,plugins:[...n.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[t?JSON.parse(t):!1,...n.init||[]]})}function ya(n,e){let t=0;return()=>{const s=++t;e(()=>{t===s&&n()})}}function va(n={}){const e=ma({domOptions:{render:ya(()=>Zs(e),t=>setTimeout(t,0))},...n});return e.install=kr(e),e}function ql(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 Ul(){const{saveAs:n}=await E(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 ze(n,e,t){return(n.instance?.$).provides[e]??t}function ba(){return{install(n){n.directive("click",{name:"v-click",mounted(e,t){const s=yt(e,t,t.value);s!=null&&(e.classList.toggle(ht,!0),e.dataset.slidevClicksStart=String(s.start),Number.isFinite(s.end)&&(e.dataset.slidevClicksEnd=String(s.end)),e.watchStopHandle=Ve(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?Je:Ue,o),e.classList.toggle(Vt,o)):e.classList.toggle(s.flagFade?Je:Ue,!o),e.classList.toggle(zt,r),e.classList.toggle(Bt,i)}))},unmounted:Jt}),n.directive("after",{name:"v-after",mounted(e,t){const s=yt(e,t,"+0");s!=null&&(e.classList.toggle(ht,!0),e.watchStopHandle=Ve(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?Je:Ue,o),e.classList.toggle(Vt,o)):e.classList.toggle(s.flagFade?Je:Ue,!o),e.classList.toggle(zt,r),e.classList.toggle(Bt,i)}))},unmounted:Jt}),n.directive("click-hide",{name:"v-click-hide",mounted(e,t){const s=yt(e,t,t.value,!0);s!=null&&(e.classList.toggle(ht,!0),e.watchStopHandle=Ve(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;e.classList.toggle(s.flagFade?Je:Ue,o),e.classList.toggle(Vt,o),e.classList.toggle(zt,r),e.classList.toggle(Bt,i)}))},unmounted:Jt})}}}const Xs=new Map;function yt(n,e,t,s=!1){const o=ze(e,Lt)?.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<a.start?"before":"after":r?"after":"before"),f={...a,isShown:l,visibilityState:c,flagFade:i,flagHide:r};return Xs.set(n,f),f}function Jt(n,e){n.classList.toggle(ht,!1),ze(e,Lt)?.value?.unregister(n),n.watchStopHandle?.()}function wa(n=vs(Ds,O())){const e=Ro(n),t=ee([Ti,Pi,Ei,Ci,Oi,kt.width,kt.height],()=>{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:t}}function ka(n){return()=>{}}function _a(n,e,t,s=!1){function o(R){return n?ze(n,R):No(R)}const r=o(vn),i=o(mi)??{},a=o(yn),l=k(()=>ka(a.value)),c=o(pi)??O(1),f=o(yi)??O(1),{left:d,top:h,stop:u}=wa(o(Ds)??O()),{isPrintMode:g}=Be(),p=["slide","presenter"].includes(r.value)&&!g.value;let m=n?"directive":"prop",y=Pn(),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]),T=O(v[0]+v[2]/2),C=O(s?0:v[4]??0),j=k(()=>C.value*Math.PI/180),U=k(()=>Math.sin(j.value)),le=k(()=>Math.cos(j.value)),Z=O(),M=O({left:0,top:0,width:0,height:0}),P=O(0);function x(){if(!Z.value)return;const R=Z.value.getBoundingClientRect();M.value={left:R.left/f.value,top:R.top/f.value,width:R.width/f.value,height:R.height/f.value},P.value=(M.value.width+M.value.height)/c.value/(Math.abs(U.value)+Math.abs(le.value))-_.value}b.push(ee(_,x,{flush:"post"}));const I=O(v[3]??0),$=w?k({get:()=>(w?P.value:I.value)||0,set:R=>!w&&(I.value=R)}):I,ie=w?O(v[1]):O(v[1]+v[3]/2),ce=w?k({get:()=>ie.value+$.value/2,set:R=>ie.value=R-$.value/2}):ie,We=k(()=>Number.isFinite(T.value)?{position:"absolute",zIndex:100,left:`${T.value-_.value/2}px`,top:`${ce.value-$.value/2}px`,width:`${_.value}px`,height:w?void 0:`${$.value}px`,transformOrigin:"center center",transform:`rotate(${C.value}deg)`}:{position:"absolute",zIndex:100});b.push(ee([T,ce,_,$,C],([R,st,$n,Ln,An])=>{let Re=[R-$n/2,st-Ln/2,$n].map(Math.round).join();w?Re+=m==="directive"?",NaN":",_":Re+=`,${Math.round(Ln)}`,Math.round(An)!==0&&(Re+=`,${Math.round(An)}`),m==="directive"&&(Re=`[${Re}]`),l.value(y,Re,m,t)}));const G={dragId:y,dataSource:m,markdownSource:t,isArrow:s,zoom:f,autoHeight:w,x0:T,y0:ce,width:_,height:$,rotate:C,container:Z,containerStyle:We,watchStopHandles:b,dragging:k(()=>ot.value===G),mounted(){p&&(x(),e||setTimeout(()=>{x(),T.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,$.value=M.value.height/c.value},100))},unmounted(){p&&G.stopDragging()},startDragging(){p&&(x(),ot.value=G)},stopDragging(){p&&ot.value===G&&(ot.value=null)}};return b.push(Io(Z,R=>{const st=document.querySelector("#drag-control-container");st&&R.target&&st.contains(R.target)||G.stopDragging()}),ee(jo(),R=>{R||G.stopDragging()})),G}function Sa(){return{install(n){n.directive("drag",{name:"v-drag",created(e,t,s){const o=_a(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(ee(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 eo(){return Math.floor(Math.random()*2**31)}class Ma{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function cn(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 Oa(n,e,t){const s=[];n.forEach(o=>s.push(...o)),cn(s,e,t)}function Ta(n,e){return n[0]===e[0]&&n[1]===e[1]}function Pa(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)cn(c,a,o);const l=Ea(i,r,s);if(o){for(const c of i)cn(c,a,-o);Oa(l,a,-o)}return l}function Ea(n,e,t){const s=[];for(const c of n){const f=[...c];Ta(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;f<c.length-1;f++){const d=c[f],h=c[f+1];if(d[1]!==h[1]){const u=Math.min(d[1],h[1]);r.push({ymin:u,ymax:Math.max(d[1],h[1]),x:u===d[1]?d[0]:h[0],islope:(h[0]-d[0])/(h[1]-d[1])})}}if(r.sort((c,f)=>c.ymin<f.ymin?-1:c.ymin>f.ymin?1:c.x<f.x?-1:c.x>f.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;d<r.length&&!(r[d].ymin>a);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;c=c+2){const f=c+1;if(f>=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 nt(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),Pa(n,o,s,r||1)}class En{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const s=nt(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 xt(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 Ca extends En{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=nt(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)xt([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 $a extends En{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 La{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});const s=nt(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=xt(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<f;g++){const p=u+d+g*o,m=h-i+Math.random()*2*i,y=p-i+Math.random()*2*i,v=this.helper.ellipse(m,y,r,r,t);s.push(...v.ops)}}return{type:"fillSketch",ops:s}}}class Aa{constructor(e){this.helper=e}fillPolygons(e,t){const s=nt(e,t);return{type:"fillSketch",ops:this.dashedLine(s,t)}}dashedLine(e,t){const s=t.dashOffset<0?t.hachureGap<0?t.strokeWidth*4:t.hachureGap:t.dashOffset,o=t.dashGap<0?t.hachureGap<0?t.strokeWidth*4:t.hachureGap:t.dashGap,r=[];return e.forEach(i=>{const a=xt(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<l;u++){const g=u*(s+o),p=g+s,m=[f[0]+g*Math.cos(h)+c*Math.cos(h),f[1]+g*Math.sin(h)+c*Math.sin(h)],y=[f[0]+p*Math.cos(h)+c*Math.cos(h),f[1]+p*Math.sin(h)+c*Math.sin(h)];r.push(...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],t))}}),r}}class Da{constructor(e){this.helper=e}fillPolygons(e,t){const s=t.hachureGap<0?t.strokeWidth*4:t.hachureGap,o=t.zigzagOffset<0?s:t.zigzagOffset;t=Object.assign({},t,{hachureGap:s+o});const r=nt(e,t);return{type:"fillSketch",ops:this.zigzagLines(r,o,t)}}zigzagLines(e,t,s){const o=[];return e.forEach(r=>{const i=xt(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;d<a;d++){const h=d*2*t,u=(d+1)*2*t,g=Math.sqrt(2*Math.pow(t,2)),p=[l[0]+h*Math.cos(f),l[1]+h*Math.sin(f)],m=[l[0]+u*Math.cos(f),l[1]+u*Math.sin(f)],y=[p[0]+g*Math.cos(f+Math.PI/4),p[1]+g*Math.sin(f+Math.PI/4)];o.push(...this.helper.doubleLineOps(p[0],p[1],y[0],y[1],s),...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],s))}}),o}}const J={};function Ra(n,e){let t=n.fillStyle||"hachure";if(!J[t])switch(t){case"zigzag":J[t]||(J[t]=new Ca(e));break;case"cross-hatch":J[t]||(J[t]=new $a(e));break;case"dots":J[t]||(J[t]=new La(e));break;case"dashed":J[t]||(J[t]=new Aa(e));break;case"zigzag-line":J[t]||(J[t]=new Da(e));break;case"hachure":default:t="hachure",J[t]||(J[t]=new En(e));break}return J[t]}const Ia=0,un=1,to=2,ut={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Na(n){const e=new Array;for(;n!=="";)if(n.match(/^([ \t\r\n,]+)/))n=n.substr(RegExp.$1.length);else if(n.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Ia,text:RegExp.$1},n=n.substr(RegExp.$1.length);else if(n.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:un,text:`${parseFloat(RegExp.$1)}`},n=n.substr(RegExp.$1.length);else return[];return e[e.length]={type:to,text:""},e}function Kt(n,e){return n.type===e}function Cn(n){const e=[],t=Na(n);let s="BOD",o=0,r=t[o];for(;!Kt(r,to);){let i=0;const a=[];if(s==="BOD")if(r.text==="M"||r.text==="m")o++,i=ut[r.text],s=r.text;else return Cn("M0,0"+n);else Kt(r,un)?i=ut[s]:(o++,i=ut[r.text],s=r.text);if(o+i<t.length){for(let l=o;l<o+i;l++){const c=t[l];if(Kt(c,un))a[a.length]=+c.text;else throw new Error("Param not a number: "+s+","+c.text)}if(typeof ut[s]=="number"){const l={key:s,data:a};e.push(l),o+=i,r=t[o],s==="M"&&(s="L"),s==="m"&&(s="l")}else throw new Error("Bad segment: "+s)}else throw new Error("Path data ended short")}return e}function no(n){let e=0,t=0,s=0,o=0;const r=[];for(const{key:i,data:a}of n)switch(i){case"M":r.push({key:"M",data:[...a]}),[e,t]=a,[s,o]=a;break;case"m":e+=a[0],t+=a[1],r.push({key:"M",data:[e,t]}),s=e,o=t;break;case"L":r.push({key:"L",data:[...a]}),[e,t]=a;break;case"l":e+=a[0],t+=a[1],r.push({key:"L",data:[e,t]});break;case"C":r.push({key:"C",data:[...a]}),e=a[4],t=a[5];break;case"c":{const l=a.map((c,f)=>f%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 so(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)&&(oo(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 ja(n){return Math.PI*n/180}function Ke(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 oo(n,e,t,s,o,r,i,a,l,c){const f=ja(i);let d=[],h=0,u=0,g=0,p=0;if(c)[h,u,g,p]=c;else{[n,e]=Ke(n,e,-f),[t,s]=Ke(t,s,-f);const M=(n-t)/2,P=(e-s)/2;let x=M*M/(o*o)+P*P/(r*r);x>1&&(x=Math.sqrt(x),o=x*o,r=x*r);const I=a===l?-1:1,$=o*o,ie=r*r,ce=$*ie-$*P*P-ie*M*M,We=$*P*P+ie*M*M,G=I*Math.sqrt(Math.abs(ce/We));g=G*o*P/r+(n+t)/2,p=G*-r*M/o+(e+s)/2,h=Math.asin(parseFloat(((e-p)/r).toFixed(9))),u=Math.asin(parseFloat(((s-p)/r).toFixed(9))),n<g&&(h=Math.PI-h),t<g&&(u=Math.PI-u),h<0&&(h=Math.PI*2+h),u<0&&(u=Math.PI*2+u),l&&h>u&&(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,P=t,x=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=oo(t,s,P,x,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),T=4/3*o*_,C=4/3*r*_,j=[n,e],U=[n+T*v,e-C*y],le=[t+T*w,s-C*b],Z=[t,s];if(U[0]=2*j[0]-U[0],U[1]=2*j[1]-U[1],c)return[U,le,Z].concat(d);{d=[U,le,Z].concat(d);const M=[];for(let P=0;P<d.length;P+=3){const x=Ke(d[P][0],d[P][1],f),I=Ke(d[P+1][0],d[P+1][1],f),$=Ke(d[P+2][0],d[P+2][1],f);M.push([x[0],x[1],I[0],I[1],$[0],$[1]])}return M}}const xa={randOffset:Va,randOffsetWithRange:za,ellipse:fn,doubleLineOps:Ba};function X(n,e,t,s,o){return{type:"path",ops:fe(n,e,t,s,o)}}function Xe(n,e,t){const s=(n||[]).length;if(s>2){const o=[];for(let r=0;r<s-1;r++)o.push(...fe(n[r][0],n[r][1],n[r+1][0],n[r+1][1],t));return e&&o.push(...fe(n[s-1][0],n[s-1][1],n[0][0],n[0][1],t)),{type:"path",ops:o}}else if(s===2)return X(n[0][0],n[0][1],n[1][0],n[1][1],t);return{type:"path",ops:[]}}function Ha(n,e){return Xe(n,!0,e)}function ro(n,e,t,s,o){const r=[[n,e],[n+t,e],[n+t,e+s],[n,e+s]];return Ha(r,o)}function cs(n,e){if(n.length){const s=typeof n[0][0]=="number"?[n]:n,o=ft(s[0],1*(1+e.roughness*.2),e),r=e.disableMultiStroke?[]:ft(s[0],1.5*(1+e.roughness*.22),hs(e));for(let i=1;i<s.length;i++){const a=s[i];if(a.length){const l=ft(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:ft(a,1.5*(1+e.roughness*.22),hs(e));for(const f of l)f.op!=="move"&&o.push(f);for(const f of c)f.op!=="move"&&r.push(f)}}return{type:"path",ops:o.concat(r)}}return{type:"path",ops:[]}}function fn(n,e,t,s,o){const r=io(t,s,o);return hn(n,e,o,r).opset}function io(n,e,t){const s=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(n/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(t.curveStepCount,t.curveStepCount/Math.sqrt(200)*s)),r=Math.PI*2/o;let i=Math.abs(n/2),a=Math.abs(e/2);const l=1-t.curveFitting;return i+=S(i*l,t),a+=S(a*l,t),{increment:r,rx:i,ry:a}}function hn(n,e,t,s){const[o,r]=ds(s.increment,n,e,s.rx,s.ry,1,s.increment*Tt(.1,Tt(.4,1,t),t),t);let i=Pt(o,null,t);if(!t.disableMultiStroke&&t.roughness!==0){const[a]=ds(s.increment,n,e,s.rx,s.ry,1.5,0,t),l=Pt(a,null,t);i=i.concat(l)}return{estimatedPoints:r,opset:{type:"path",ops:i}}}function us(n,e,t,s,o,r,i,a,l){const c=n,f=e;let d=Math.abs(t/2),h=Math.abs(s/2);d+=S(d*.01,l),h+=S(h*.01,l);let u=o,g=r;for(;u<0;)u+=Math.PI*2,g+=Math.PI*2;g-u>Math.PI*2&&(u=0,g=Math.PI*2);const p=Math.PI*2/l.curveStepCount,m=Math.min(p/2,(g-u)/2),y=ps(m,c,f,d,h,u,g,1,l);if(!l.disableMultiStroke){const v=ps(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 fs(n,e){const t=so(no(Cn(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(...Wa(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 Gt(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;i<r;i++)t.push({op:"lineTo",data:[s[i][0]+S(o,e),s[i][1]+S(o,e)]})}}return{type:"fillPath",ops:t}}function Ne(n,e){return Ra(e,xa).fillPolygons(n,e)}function Fa(n,e,t,s,o,r,i){const a=n,l=e;let c=Math.abs(t/2),f=Math.abs(s/2);c+=S(c*.01,i),f+=S(f*.01,i);let d=o,h=r;for(;d<0;)d+=Math.PI*2,h+=Math.PI*2;h-d>Math.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]),Ne([g],i)}function Va(n,e){return S(n,e)}function za(n,e,t){return Tt(n,e,t)}function Ba(n,e,t,s,o){return fe(n,e,t,s,o,!0)}function hs(n){const e=Object.assign({},n);return e.randomizer=void 0,n.seed&&(e.seed=n.seed+1),e}function ao(n){return n.randomizer||(n.randomizer=new Ma(n.seed||0)),n.randomizer.next()}function Tt(n,e,t,s=1){return t.roughness*s*(ao(t)*(e-n)+n)}function S(n,e,t=1){return Tt(-n,n,e,t)}function fe(n,e,t,s,o,r=!1){const i=r?o.disableMultiStrokeFill:o.disableMultiStroke,a=dn(n,e,t,s,o,!0,!1);if(i)return a;const l=dn(n,e,t,s,o,!0,!0);return a.concat(l)}function dn(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+ao(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 ft(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;o<n.length;o++)s.push([n[o][0]+S(e,t),n[o][1]+S(e,t)]),o===n.length-1&&s.push([n[o][0]+S(e,t),n[o][1]+S(e,t)]);return Pt(s,null,t)}function Pt(n,e,t){const s=n.length,o=[];if(s>3){const r=[],i=1-t.curveTightness;o.push({op:"move",data:[n[1][0],n[1][1]]});for(let a=1;a+2<s;a++){const l=n[a];r[0]=[l[0],l[1]],r[1]=[l[0]+(i*n[a+1][0]-i*n[a-1][0])/6,l[1]+(i*n[a+1][1]-i*n[a-1][1])/6],r[2]=[n[a+1][0]+(i*n[a][0]-i*n[a+2][0])/6,n[a+1][1]+(i*n[a][1]-i*n[a+2][1])/6],r[3]=[n[a+1][0],n[a+1][1]],o.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[3][0],r[3][1]]})}}else s===3?(o.push({op:"move",data:[n[1][0],n[1][1]]}),o.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[2][0],n[2][1]]})):s===2&&o.push(...dn(n[0][0],n[0][1],n[1][0],n[1][1],t,!0,!0));return o}function ds(n,e,t,s,o,r,i,a){const l=a.roughness===0,c=[],f=[];if(l){n=n/4,f.push([e+s*Math.cos(-n),t+o*Math.sin(-n)]);for(let d=0;d<=Math.PI*2;d=d+n){const h=[e+s*Math.cos(d),t+o*Math.sin(d)];c.push(h),f.push(h)}f.push([e+s*Math.cos(0),t+o*Math.sin(0)]),f.push([e+s*Math.cos(n),t+o*Math.sin(n)])}else{const d=S(.5,a)-Math.PI/2;f.push([S(r,a)+e+.9*s*Math.cos(d-n),S(r,a)+t+.9*o*Math.sin(d-n)]);const h=Math.PI*2+d-.01;for(let u=d;u<h;u=u+n){const g=[S(r,a)+e+s*Math.cos(u),S(r,a)+t+o*Math.sin(u)];c.push(g),f.push(g)}f.push([S(r,a)+e+s*Math.cos(d+Math.PI*2+i*.5),S(r,a)+t+o*Math.sin(d+Math.PI*2+i*.5)]),f.push([S(r,a)+e+.98*s*Math.cos(d+i),S(r,a)+t+.98*o*Math.sin(d+i)]),f.push([S(r,a)+e+.9*s*Math.cos(d+i*.5),S(r,a)+t+.9*o*Math.sin(d+i*.5)])}return[f,c]}function ps(n,e,t,s,o,r,i,a,l){const c=r+S(.1,l),f=[];f.push([S(a,l)+e+.9*s*Math.cos(c-n),S(a,l)+t+.9*o*Math.sin(c-n)]);for(let d=c;d<=i;d=d+n)f.push([S(a,l)+e+s*Math.cos(d),S(a,l)+t+o*Math.sin(d)]);return f.push([e+s*Math.cos(i),t+o*Math.sin(i)]),f.push([e+s*Math.cos(i),t+o*Math.sin(i)]),Pt(f,null,l)}function Wa(n,e,t,s,o,r,i,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let f=[0,0];const d=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let u=0;u<d;u++)u===0?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+(h?0:S(c[0],a)),i[1]+(h?0:S(c[0],a))]}),f=h?[o,r]:[o+S(c[u],a),r+S(c[u],a)],l.push({op:"bcurveTo",data:[n+S(c[u],a),e+S(c[u],a),t+S(c[u],a),s+S(c[u],a),f[0],f[1]]});return l}function Ge(n){return[...n]}function gs(n,e=0){const t=n.length;if(t<3)throw new Error("A curve must have at least three points.");const s=[];if(t===3)s.push(Ge(n[0]),Ge(n[1]),Ge(n[2]),Ge(n[2]));else{const o=[];o.push(n[0],n[0]);for(let a=1;a<n.length;a++)o.push(n[a]),a===n.length-1&&o.push(n[a]);const r=[],i=1-e;s.push(Ge(o[0]));for(let a=1;a+2<o.length;a++){const l=o[a];r[0]=[l[0],l[1]],r[1]=[l[0]+(i*o[a+1][0]-i*o[a-1][0])/6,l[1]+(i*o[a+1][1]-i*o[a-1][1])/6],r[2]=[o[a+1][0]+(i*o[a][0]-i*o[a+2][0])/6,o[a+1][1]+(i*o[a][1]-i*o[a+2][1])/6],r[3]=[o[a+1][0],o[a+1][1]],s.push(r[1],r[2],r[3])}}return s}function qa(n,e){return Math.sqrt(vt(n,e))}function vt(n,e){return Math.pow(n[0]-e[0],2)+Math.pow(n[1]-e[1],2)}function Ua(n,e,t){const s=vt(e,t);if(s===0)return vt(n,e);let o=((n[0]-e[0])*(t[0]-e[0])+(n[1]-e[1])*(t[1]-e[1]))/s;return o=Math.max(0,Math.min(1,o)),vt(n,Ce(e,t,o))}function Ce(n,e,t){return[n[0]+(e[0]-n[0])*t,n[1]+(e[1]-n[1])*t]}function Ja(n,e){const t=n[e+0],s=n[e+1],o=n[e+2],r=n[e+3];let i=3*s[0]-2*t[0]-r[0];i*=i;let a=3*s[1]-2*t[1]-r[1];a*=a;let l=3*o[0]-2*r[0]-t[0];l*=l;let c=3*o[1]-2*r[1]-t[1];return c*=c,i<l&&(i=l),a<c&&(a=c),i+a}function pn(n,e,t,s){const o=s||[];if(Ja(n,e)<t){const r=n[e+0];o.length?qa(o[o.length-1],r)>1&&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=Ce(i,a,.5),d=Ce(a,l,.5),h=Ce(l,c,.5),u=Ce(f,d,.5),g=Ce(d,h,.5),p=Ce(u,g,.5);pn([i,f,u,p],0,t,o),pn([p,g,h,c],0,t,o)}return o}function Ka(n,e){return Et(n,0,n.length,e)}function Et(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;f<t-1;++f){const d=Ua(n[f],i,a);d>l&&(l=d,c=f)}return Math.sqrt(l)>s?(Et(n,e,c+1,s,r),Et(n,c,t,s,r)):(r.length||r.push(i),r.push(a)),r}function gn(n,e=.15,t){const s=[],o=(n.length-1)/3;for(let r=0;r<o;r++){const i=r*3;pn(n,i,e,s)}return t&&t>0?Et(s,0,s.length,t):s}function Ga(n,e,t){const s=Cn(n),o=so(no(s)),r=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...gn(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=Ka(h,t);u.length&&d.push(u)}return d}const Q="none";class Qa{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 eo()}_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",[X(e,t,s,o,i)],i)}rectangle(e,t,s,o,r){const i=this._o(r),a=[],l=ro(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(Gt([c],i)):a.push(Ne([c],i))}return i.stroke!==Q&&a.push(l),this._d("rectangle",a,i)}ellipse(e,t,s,o,r){const i=this._o(r),a=[],l=io(s,o,i),c=hn(e,t,i,l);if(i.fill)if(i.fillStyle==="solid"){const f=hn(e,t,i,l).opset;f.type="fillPath",a.push(f)}else a.push(Ne([c.estimatedPoints],i));return i.stroke!==Q&&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",[Xe(e,!1,s)],s)}arc(e,t,s,o,r,i,a=!1,l){const c=this._o(l),f=[],d=us(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=us(e,t,s,o,r,i,!0,!1,h);u.type="fillPath",f.push(u)}else f.push(Fa(e,t,s,o,r,i,c));return c.stroke!==Q&&f.push(d),this._d("arc",f,c)}curve(e,t){const s=this._o(t),o=[],r=cs(e,s);if(s.fill&&s.fill!==Q)if(s.fillStyle==="solid"){const i=cs(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(...gn(gs([f[0],f[0],f[1],f[2]]),10,(1+s.roughness)/2)):i.push(...gn(gs(f),10,(1+s.roughness)/2))}i.length&&o.push(Ne([i],s))}return s.stroke!==Q&&o.push(r),this._d("curve",o,s)}polygon(e,t){const s=this._o(t),o=[],r=Xe(e,!0,s);return s.fill&&(s.fillStyle==="solid"?o.push(Gt([e],s)):o.push(Ne([e],s))),s.stroke!==Q&&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!==Q,i=s.stroke!==Q,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=Ga(e,1,l),f=fs(e,s);if(r)if(s.fillStyle==="solid")if(c.length===1){const d=fs(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(Gt(c,s));else o.push(Ne(c,s));return i&&(a?c.forEach(d=>{o.push(Xe(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:Q};break;case"fillPath":i={d:this.opsToPath(r),stroke:Q,strokeWidth:0,fill:s.fill||Q};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||Q,strokeWidth:s,fill:Q}}_mergedShape(e){return e.filter((t,s)=>s===0?!0:t.op!=="move")}}const lo="http://www.w3.org/2000/svg",Ya=800;let Qt=null;function Za(){return Qt||(Qt=new Qa().defaultOptions),Qt}function Yt(n,e,t){return{...Za(),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 Xa(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 el(n,e,t,s,o,r){const i=[];let a=t.strokeWidth||2;const l=Xa(t),c=t.animate===void 0?!0:!!t.animate,f=t.iterations||2,d=t.rtl?1:0,h=Yt("single",r,t);switch(t.type){case"underline":{const u=e.y+e.h+l[2];for(let g=d;g<f+d;g++)g%2?i.push(X(e.x+e.w,u,e.x,u,h)):i.push(X(e.x,u,e.x+e.w,u,h));break}case"strike-through":{const u=e.y+e.h/2;for(let g=d;g<f+d;g++)g%2?i.push(X(e.x+e.w,u,e.x,u,h)):i.push(X(e.x,u,e.x+e.w,u,h));break}case"box":{const u=e.x-l[3],g=e.y-l[0],p=e.w+(l[1]+l[3]),m=e.h+(l[0]+l[2]);for(let y=0;y<f;y++)i.push(ro(u,g,p,m,h));break}case"bracket":{const u=Array.isArray(t.brackets)?t.brackets:t.brackets?[t.brackets]:["right"],g=e.x-l[3]*2,p=e.x+e.w+l[1]*2,m=e.y-l[0]*2,y=e.y+e.h+l[2]*2;for(const v of u){let b;switch(v){case"bottom":b=[[g,e.y+e.h],[g,y],[p,y],[p,e.y+e.h]];break;case"top":b=[[g,e.y],[g,m],[p,m],[p,e.y]];break;case"left":b=[[e.x,m],[g,m],[g,y],[e.x,y]];break;case"right":b=[[e.x+e.w,m],[p,m],[p,y],[e.x+e.w,y]];break}b&&i.push(Xe(b,!1,h))}break}case"crossed-off":{const u=e.x,g=e.y,p=u+e.w,m=g+e.h;for(let y=d;y<f+d;y++)y%2?i.push(X(p,m,u,g,h)):i.push(X(u,g,p,m,h));for(let y=d;y<f+d;y++)y%2?i.push(X(u,m,p,g,h)):i.push(X(p,g,u,m,h));break}case"circle":{const u=Yt("double",r,t),g=e.w+(l[1]+l[3]),p=e.h+(l[0]+l[2]),m=e.x-l[3]+g/2,y=e.y-l[0]+p/2,v=Math.floor(f/2),b=f-v*2;for(let w=0;w<v;w++)i.push(fn(m,y,g,p,u));for(let w=0;w<b;w++)i.push(fn(m,y,g,p,h));break}case"highlight":{const u=Yt("highlight",r,t);a=e.h*.95;const g=e.y+e.h/2;for(let p=d;p<f+d;p++)p%2?i.push(X(e.x+e.w,g,e.x,g,u)):i.push(X(e.x,g,e.x+e.w,g,u));break}}if(i.length){const u=tl(i),g=[],p=[];let m=0;const y=(v,b,w)=>v.setAttribute(b,w);for(const v of u){const b=document.createElementNS(lo,"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;b<p.length;b++){const w=p[b],_=g[b],T=m?o*(_/m):0,C=s+v,j=w.style;j.strokeDashoffset=`${_}`,j.strokeDasharray=`${_}`,j.animation=`rough-notation-dash ${T}ms ease-out ${C}ms forwards`,v+=T}return ms(o+s)}}return ms(0)}function ms(n){return new Promise(e=>setTimeout(e,n))}function tl(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 nl(){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 sl=Object.defineProperty,ol=(n,e,t)=>e in n?sl(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ne=(n,e,t)=>(ol(n,typeof e!="symbol"?e+"":e,t),t);class rl{constructor(e,t){ne(this,"_state","unattached"),ne(this,"_config"),ne(this,"_resizing",!1),ne(this,"_ro"),ne(this,"_seed",eo()),ne(this,"_e"),ne(this,"_svg"),ne(this,"_lastSizes",[]),ne(this,"_animationDelay",0),ne(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),ne(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){nl();const e=this._svg=document.createElementNS(lo,"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;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}else return!0}return!1}isSameRect(e,t){const s=(o,r)=>Math.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||Ya;let a=0;const l=[];for(let c=0;c<o.length;c++){const f=o[c],d=i*(f.w/r);l.push(el(e,o[c],s,a+this._animationDelay+(this._config.delay||0),d,this._seed)),a+=d}return this._lastSizes=o,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const t=this._e.getClientRects();for(let s=0;s<t.length;s++)e.push(this.svgRect(this._svg,t[s]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){const s=e.getBoundingClientRect(),o=t;return{x:(o.x||o.left)-(s.x||s.left),y:(o.y||o.top)-(s.y||s.top),w:o.width,h:o.height}}}function il(n,e){return new rl(n,e)}function K(n,e){return n.class=[n.class,e].filter(Boolean).join(" "),n}const ys={box:n=>Object.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=>K(n,"text-black"),blue:n=>K(n,"text-blue"),cyan:n=>K(n,"text-cyan"),gray:n=>K(n,"text-gray"),green:n=>K(n,"text-green"),indigo:n=>K(n,"text-indigo"),lime:n=>K(n,"text-lime"),orange:n=>K(n,"text-orange"),pink:n=>K(n,"text-pink"),purple:n=>K(n,"text-purple"),red:n=>K(n,"text-red"),teal:n=>K(n,"text-teal"),white:n=>K(n,"text-white"),yellow:n=>K(n,"text-yellow")},al=[[/^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 ll(){return{install(n){n.directive("mark",{name:"v-mark",mounted:(e,t)=>{const{isPrintMode:s}=Be(),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(ys[d])return l=ys[d](l,h),!1;for(const[u,g]of al){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=il(e,o.value),i=yt(e,t,o.value.at);if(!i){r.show();return}e.watchStopHandle=Ve(()=>{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 cl(){return{install(n){const e=xo();n.directive("motion",{name:"v-motion",mounted(t,s,o,r){const i=ze(s,Lt),a=ze(s,yn),l=ze(s,vn),{currentPage:c,clicks:f,isPrintMode:d}=Be(),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=`${Pn()}-`,y=[];for(const b of Object.keys(h))if(b.startsWith("click-")){const w=b.slice(6),_=w.includes("-")?w.split("-").map(Number):+w,T=m+w;y.push({id:T,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=ee([a,c,f].filter(Boolean),()=>{const b=Xs.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:T}of y)(!T||T.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 ul=[];function fl(){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:()=>E(()=>import("./slidev/entry-61lgje8l.js"),__vite__mapDeps([24,2,4,5,25])),beforeEnter:e},{name:"overview",path:"/overview",component:()=>E(()=>import("./slidev/overview-BFf1NMWS.js"),__vite__mapDeps([26,1,2,27,28,29,30,31,4,5])),beforeEnter:e},{name:"notes",path:"/notes",component:()=>E(()=>import("./slidev/notes-CEOhFq-t.js"),__vite__mapDeps([32,2,27,28,31,4,5])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>E(()=>import("./slidev/presenter-DeMVvv64.js"),__vite__mapDeps([33,2,29,30,34,3,1,31,4,5,35,27,28,36,37,38])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}}),n.push({name:"play",path:"/:no",component:()=>E(()=>import("./slidev/play-BXYbUFFO.js"),__vite__mapDeps([39,2,29,30,34,3,1,31,4,5,35,40]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>E(()=>import("./slidev/404-BaqPXPpo.js"),__vite__mapDeps([41,2,4,5,42]))}),ul.reduce((t,s)=>s(t),n)}async function hl(n){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const t=Ho({history:Fo("/deno/"),routes:fl()});n.use(t),n.use(va()),n.use(ba()),n.use(ll()),n.use(Sa()),n.use(cl()),n.use(zo,{container:"#twoslash-container"});const s={app:n,router:t};for(const o of ga)await o(s)}async function dl(){const n=Vo(pa);await hl(n),n.mount("#app")}dl();export{ot as $,$i as A,on as B,dt as C,Pi as D,Ll as E,xl as F,ml as G,kt as H,_l as I,Rs as J,Oi as K,it as L,Ol as M,Ul as N,Il as O,Rl as P,se as Q,Mi as R,At as S,pi as T,wa as U,Ts as V,Go as W,Tl as X,bn as Y,Sl as Z,Cr as _,Be as a,Ml as a0,$l as a1,Cl as a2,Bl as a3,zl as a4,Vl as a5,te as a6,Qs as a7,Ys as a8,Os as a9,Ds as aa,vl as ab,mi as ac,yn as ad,vn as ae,Lt as af,yi as ag,ql as ah,Pn as ai,sn as aj,Wo as ak,Ue as al,Fl as am,gi as an,bl as ao,bi as ap,xs as b,Tr as c,Wl as d,Ls as e,El as f,je as g,rt as h,rs as i,Ti as j,_t as k,Nl as l,jl as m,Dl as n,en as o,yl as p,Al as q,Rn as r,Ht as s,Hl as t,Sr as u,A as v,E as w,wl as x,kl as y,Pl as z};