vlbthambawita commited on
Commit
626f025
·
verified ·
1 Parent(s): 893e684

Release site-v1.0.4 (part 7)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. lecture-06/assets/slidev/overview-BDL-WvEg.js +1 -0
  3. lecture-06/assets/slidev/play-CgReZXhX.js +2 -0
  4. lecture-06/assets/slidev/presenter-DL_E7IJt.js +1 -0
  5. lecture-06/assets/slidev/shortcuts-CFipR0_i.js +4 -0
  6. lecture-06/assets/syncState-BrWO1mSt.js +1 -0
  7. lecture-06/assets/useAttention-Blk0c2BZ.js +1 -0
  8. lecture-06/assets/useConvolution-qO1u8ksh.js +1 -0
  9. lecture-06/assets/useDrawings-BgI2o36O.js +1 -0
  10. lecture-06/assets/useNav-BKmHNb0y.js +0 -0
  11. lecture-06/class/404.html +30 -0
  12. lecture-06/class/_redirects +1 -0
  13. lecture-06/class/assets/404-bkedjYjP.css +1 -0
  14. lecture-06/class/assets/AttentionMatrix-BhYJvquu.css +1 -0
  15. lecture-06/class/assets/AttentionMatrix-CVQjcu-J.js +1 -0
  16. lecture-06/class/assets/DeckFooter-B6vKMo6W.css +1 -0
  17. lecture-06/class/assets/DeckFooter-B7ogzN5B.js +1 -0
  18. lecture-06/class/assets/DrawingControls-Dhbx0szf.css +1 -0
  19. lecture-06/class/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  20. lecture-06/class/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  21. lecture-06/class/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  22. lecture-06/class/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  23. lecture-06/class/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  24. lecture-06/class/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  25. lecture-06/class/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  26. lecture-06/class/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  27. lecture-06/class/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  28. lecture-06/class/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  29. lecture-06/class/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  30. lecture-06/class/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  31. lecture-06/class/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  32. lecture-06/class/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  33. lecture-06/class/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  34. lecture-06/class/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  35. lecture-06/class/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  36. lecture-06/class/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  37. lecture-06/class/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  38. lecture-06/class/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  39. lecture-06/class/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  40. lecture-06/class/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  41. lecture-06/class/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  42. lecture-06/class/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  43. lecture-06/class/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  44. lecture-06/class/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  45. lecture-06/class/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  46. lecture-06/class/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  47. lecture-06/class/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  48. lecture-06/class/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  49. lecture-06/class/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  50. lecture-06/class/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
.gitattributes CHANGED
@@ -52,3 +52,4 @@ lecture-03/slides.pdf filter=lfs diff=lfs merge=lfs -text
52
  lecture-04/assets/polyp-segmentation-models-C6lMR4-c.jpeg filter=lfs diff=lfs merge=lfs -text
53
  lecture-04/assets/unet-architecture-CP_xtKpN.jpeg filter=lfs diff=lfs merge=lfs -text
54
  lecture-04/slides.pdf filter=lfs diff=lfs merge=lfs -text
 
 
52
  lecture-04/assets/polyp-segmentation-models-C6lMR4-c.jpeg filter=lfs diff=lfs merge=lfs -text
53
  lecture-04/assets/unet-architecture-CP_xtKpN.jpeg filter=lfs diff=lfs merge=lfs -text
54
  lecture-04/slides.pdf filter=lfs diff=lfs merge=lfs -text
55
+ lecture-06/slides.pdf filter=lfs diff=lfs merge=lfs -text
lecture-06/assets/slidev/overview-BDL-WvEg.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{L as e,N as t,Q as n,R as r,S as i,V as a,_ as o,_t as s,b as c,bt as l,ft as u,g as d,lt as f,m as p,st as m,v as h,vt as g,w as ee,xt as _,y as v,z as y}from"../modules/shiki-BFOesOFp.js";import{$ as te,B as b,G as ne,R as x,X as re,Y as S,t as ie}from"../useNav-BKmHNb0y.js";import{t as C}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{B as ae,V as oe}from"../modules/vue-Ymwlffw_.js";import{l as w}from"./context-DrkI8qiD.js";import{f as se,h as ce,m as le,p as T}from"../index-Cpw8zVhj.js";import{n as ue,r as de}from"../modules/unplugin-icons-BIrNarL0.js";import{t as E}from"./IconButton-B5keGFol.js";import{n as D}from"./NoteDisplay-ym8deWTv.js";import{i as fe,o as pe,t as me}from"../SlideWrapper-Cejg6ZDn.js";import{t as he}from"./NoteEditable-B4j4c8ZZ.js";var ge={class:`h-screen w-screen of-hidden flex`},_e={key:0,class:`grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full`},ve={class:`relative`},ye={class:`absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p-6px md:p-10px gap-1 max-h-full of-x-visible of-y-auto`,style:{direction:`rtl`}},be=[`onClick`],xe={p2:``,border:`t main`},Se={class:`flex flex-col gap-1 mx-1 items-end`},Ce={key:0,class:`flex items-end gap-2`},we=[`onClick`],Te=[`onDblclick`],Ee={key:2,class:`select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs`},De={key:1,class:`absolute z-2 top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main/80 backdrop-blur border-main select-none`},Oe={class:`text-xs op50`},O=450,k=C(ee({__name:`overview`,setup(ee){ce({title:`Overview - ${te}`});let C=ae(),k=oe(),{openInEditor:ke,slides:A,isEmbedded:j}=ie(),M=d(()=>C.query.mode===`preview`),N=d(()=>M.value&&j.value),P=d(()=>M.value?N.value?Math.max(0,x.width.value-16):Math.min(900,Math.max(320,x.width.value-160)):O),Ae=d(()=>P.value/re.value),F=m(new Map),je=m(new Map),I=f([]),L=f(),R=f(null),z=0,B,V,H=d(()=>A.value.map(e=>Fe(e.meta?.slide?.note||``))),Me=d(()=>H.value.reduce((e,t)=>e+t,0)),Ne=d(()=>A.value.map(e=>K(e)).reduce((e,t)=>e+t,0)),Pe=d(()=>String(Math.max(1,A.value.length)).length),U=u(),W=new WeakMap;function G(e){return W.has(e)||W.set(e,ne(e,w)),W.get(e)}function K(e){return e.meta?.clicks||G(e)?.total}function q(e){U.value===e?U.value=void 0:U.value=e}function Fe(e){let t=e.match(/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g),n=0;if(!t)return 0;for(let e=0;e<t.length;e++)t[e].charCodeAt(0)>=19968?n+=t[e].length:n+=1;return n}function J(){let e=window.innerHeight||document.documentElement.clientHeight,t,n=[];for(let[r,i]of F.entries()){let a=i.getBoundingClientRect(),o=Math.max(0,Math.min(a.bottom,e)-Math.max(a.top,0));o!==0&&(o>=a.height&&n.push(r),(!t||o>t.visibleHeight)&&(t={idx:r,visibleHeight:o}))}I.value=n.length?n:t?[t.idx]:[]}function Y(e){let t=document.createElement(`a`);t.target=`_blank`,t.href=S+e.slice(1),t.click()}function Ie(e){let t=new URL(S+e.slice(1),location.href).href;if(j.value){window.parent.postMessage({target:`slidev`,sender:`slidev`,type:`open-external`,url:t},`*`);return}Y(e)}function Le(e){let t=F.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function X(e){let t=je.get(e)||F.get(e);if(!t||!L.value)return null;let n=L.value.getBoundingClientRect();return t.getBoundingClientRect().top-n.top+L.value.scrollTop}function Z(e){if(!L.value||A.value.length===0)return;let t=Math.min(Math.max(e,1),A.value.length),n=Math.floor(t)-1,r=t-(n+1),i=X(n),a=X(n+1);if(i==null)return;let o=i+(a==null?0:(a-i)*r)-L.value.clientHeight*.5;Math.abs(L.value.scrollTop-o)<1||L.value.scrollTo({top:o})}function Re(){let e=C.query.slideNo,t=Number(Array.isArray(e)?e[0]:e);return Number.isFinite(t)&&t>0?t:void 0}function Q(e){if(!N.value)return;let t=Number(e.toFixed(3)).toString();C.query.slideNo!==t&&k.replace({query:{...C.query,slideNo:t}})}function ze(){if(!L.value||A.value.length===0)return null;let e=L.value.scrollTop+L.value.clientHeight*.5,t=A.value.map((e,t)=>X(t)).filter(e=>e!=null);if(t.length===0)return null;if(t.length===1||e<=t[0])return 1;for(let n=1;n<t.length;n++)if(e<=t[n]){let r=Math.max(1,t[n]-t[n-1]);return n+(e-t[n-1])/r}return A.value.length}function Be(e){B=e,!V&&(V=setTimeout(()=>{V=void 0;let e=B;B=void 0,e!=null&&(Q(e),!(Date.now()<z)&&window.parent.postMessage({target:`slidev`,sender:`slidev`,type:`overview-scroll`,no:e},`*`))},50))}function Ve(){if(J(),!N.value||Date.now()<z)return;let e=ze();e!=null&&Be(e)}function $({data:e}){if(!N.value||e?.target!==`slidev`||e.sender!==`vscode`||e.type!==`overview-scroll`)return;let t=Number(e.no);t>0&&(z=Date.now()+300,B=void 0,Q(t),Z(t))}function He(e,t,n){let r=G(n);r.current=r.current===t?w:t,e.preventDefault()}function Ue(e,t){if(e.ctrlKey||e.metaKey){e.preventDefault(),Ie(b(t,!1));return}let n=t.meta?.slide;n&&window.parent.postMessage({target:`slidev`,type:`command`,command:`goto`,args:[n.filepath,n.sourceIndex]},`*`)}return e(()=>{window.addEventListener(`message`,$);let e=N.value?Re():void 0;e!=null&&(z=Date.now()+300,Z(e)),t(()=>{e!=null&&Z(e),J()})}),r(()=>{window.removeEventListener(`message`,$),V&&clearTimeout(V)}),(e,t)=>{let r=ue,u=de;return y(),c(`div`,ge,[s(j)?v(`v-if`,!0):(y(),c(`nav`,_e,[o(`div`,ve,[o(`div`,ye,[(y(!0),c(p,null,a(s(A),(e,t)=>(y(),c(`div`,{key:e.no,class:`relative`,style:{direction:`ltr`}},[o(`button`,{class:g([`relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100`,I.value.includes(t)?`op100 text-primary bg-gray:5`:`op20`]),onClick:e=>Le(t)},[o(`div`,null,_(t+1),1)],10,be),e.meta?.slide?.title?(y(),c(`div`,{key:0,class:g([`pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100`,I.value.includes(t)?`text-primary`:`text-main important-text-op-50`])},_(e.meta?.slide?.title),3)):v(`v-if`,!0)]))),128))])]),o(`div`,xe,[s(se)?(y(),h(E,{key:1,title:s(T)?`Dark mode`:`Light mode`,"pointer-events-none":``,op50:``},{default:n(()=>[s(T)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`])):(y(),h(E,{key:0,title:s(T)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[0]||=e=>s(le)()},{default:n(()=>[s(T)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`]))])])),o(`main`,{ref_key:`scroller`,ref:L,class:`flex-1 h-full of-auto`,style:l(`grid-template-columns: repeat(auto-fit,minmax(${O}px,1fr))`),onScroll:Ve},[(y(!0),c(p,null,a(s(A),(e,r)=>(y(),c(`div`,{key:e.no,ref_for:!0,ref:e=>F.set(r,e),class:g([`overview-slide-block relative of-hidden flex gap-4 min-h-50`,[r===0&&!N.value?`pt2`:``,N.value?`justify-center`:`border-t border-main`]])},[N.value?v(`v-if`,!0):(y(),c(`div`,{key:0,class:g([`select-none text-right my5 flex flex-col justify-between items-end`,M.value?`w-9`:`w-13`]),style:l({height:`${Ae.value}px`})},[o(`div`,{class:`self-center text-3xl op20 mb2 text-center mr--14px tabular-nums`,style:l({width:`${Pe.value}ch`})},_(r+1),5),o(`div`,Se,[i(E,{class:g([`overview-slide-action mr--4 op0`,M.value?`text-lg`:``]),title:`Play in new tab`,onClick:t=>Y(s(b)(e,!1))},{default:n(()=>[...t[4]||=[o(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`class`,`onClick`]),v(`v-if`,!0)])],6)),o(`div`,{class:g([`flex flex-col`,N.value?`my1 gap-0`:`my5 gap-2`]),style:l({width:`${P.value}px`})},[N.value?(y(),c(`div`,Ce,[o(`button`,{type:`button`,class:`select-none pl-1 text-lg leading-tight op60 tabular-nums hover:op90 hover:underline underline-offset-2`,onClick:t=>Ue(t,e)},_(r+1),9,we),K(e)?(y(),h(D,{key:0,active:U.value===e,"clicks-context":G(e),resettable:``,compact:``,attached:``,class:`ml-auto w-88 min-w-[70%] max-w-[calc(100%-3rem)]`,onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[1]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`onDblclick`,`onActivate`])):v(`v-if`,!0)])):v(`v-if`,!0),o(`div`,{ref_for:!0,ref:e=>je.set(r,e),class:g([`border rounded border-main overflow-hidden bg-main h-max`,[N.value&&K(e)?`rounded-tr-0`:``,N.value?``:`select-none`]]),onDblclick:t=>!N.value&&Y(s(b)(e,!1))},[(y(),h(fe,{key:e.no,width:P.value,class:g(N.value?``:`pointer-events-none important:[&_*]:select-none`)},{default:n(()=>[i(me,{"clicks-context":G(e),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),i(pe,{page:e.no},null,8,[`page`])]),_:2},1032,[`width`,`class`]))],42,Te),K(e)&&!N.value?(y(),h(D,{key:1,active:U.value===e,"clicks-context":G(e),resettable:``,class:g([`ml-1 w-[calc(100%-0.25rem)]`,M.value?``:`mt-2`]),onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[2]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`class`,`onDblclick`,`onActivate`])):v(`v-if`,!0)],6),M.value?v(`v-if`,!0):(y(),h(he,{key:1,no:e.no,class:`relative z-1 max-w-250 w-250 text-lg rounded p3`,"auto-height":!0,highlight:U.value===e,editing:R.value===e.no,"clicks-context":G(e),onDblclick:t=>R.value===e.no?null:R.value=e.no,"onUpdate:editing":t[3]||=e=>R.value=null,onMarkerClick:(t,n)=>He(t,n,e)},null,8,[`no`,`highlight`,`editing`,`clicks-context`,`onDblclick`,`onMarkerClick`])),!M.value&&H.value[r]>0?(y(),c(`div`,Ee,_(H.value[r])+` words `,1)):v(`v-if`,!0)],2))),128))],36),s(j)?v(`v-if`,!0):(y(),c(`div`,De,[o(`div`,Oe,_(s(A).length)+` slides · `+_(Ne.value+s(A).length-1)+` clicks · `+_(Me.value)+` words `,1)]))])}}}),[[`__scopeId`,`data-v-47f32601`]]);export{k as default};
lecture-06/assets/slidev/play-CgReZXhX.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingControls-CNEr-2w_.js","../rolldown-runtime-hePW80VL.js","../modules/shiki-BFOesOFp.js","../modules/shiki-BrmBd2_v.css","../modules/vue-Ymwlffw_.js","../useDrawings-BgI2o36O.js","../useNav-BKmHNb0y.js","../_plugin-vue_export-helper-BDNMzG2s.js","./context-DrkI8qiD.js","../index-Cpw8zVhj.js","../syncState-BrWO1mSt.js","../index-DoO9FZlh.css","./IconButton-B5keGFol.js","./VerticalDivider-D_ScNBWw.js","../DrawingControls-Dhbx0szf.css"])))=>i.map(i=>d[i]);
2
+ import{Q as e,S as t,Y as n,_ as r,_t as i,b as a,bt as o,ft as s,g as c,it as l,lt as u,m as d,ot as f,v as p,vt as m,w as h,x as g,y as _,z as v}from"../modules/shiki-BFOesOFp.js";import{E as y,F as b,I as x,f as S,h as C,k as w,q as T,t as E,tt as D,v as O,w as k}from"../useNav-BKmHNb0y.js";import{C as A,m as j}from"../modules/vue-Ymwlffw_.js";import{o as M}from"../index-Cpw8zVhj.js";import{t as N}from"../useDrawings-BgI2o36O.js";import{t as P}from"../modules/unplugin-icons-BIrNarL0.js";import{t as F}from"./Modal-CjKJrPTu.js";import{i as I}from"../SlideWrapper-Cejg6ZDn.js";import{a as L,c as R,d as z,f as B,l as V,n as H,r as U,s as W,t as G,u as K}from"./shortcuts-CFipR0_i.js";var q=2e3;function J(e){let t=c(()=>e.value&&S.value);function r(){document.body.style.cursor=`none`}function i(){document.body.style.cursor=``}let a=null;n(t,e=>{e||(i(),a&&clearTimeout(a),a=null)}),f(()=>{i(),a&&clearTimeout(a),a=null}),j(document.body,[`pointermove`,`pointerdown`],()=>{i(),a&&clearTimeout(a),a=t.value?setTimeout(r,q):null},{passive:!0})}``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href;var Y={class:`slidev-info-dialog slidev-layout flex flex-col gap-4 text-base`},X=[`innerHTML`],Z=h({__name:`InfoDialog`,props:{modelValue:{default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let o=A(t,`modelValue`,n),s=c(()=>typeof D.info==`string`);return(t,n)=>(v(),p(F,{modelValue:i(o),"onUpdate:modelValue":n[0]||=e=>l(o)?o.value=e:null,class:`px-6 py-4`},{default:e(()=>[r(`div`,Y,[s.value?(v(),a(`div`,{key:0,class:`mb-4`,innerHTML:i(D).info},null,8,X)):_(`v-if`,!0),n[1]||=r(`a`,{href:`https://github.com/slidevjs/slidev`,target:`_blank`,class:`!opacity-100 !border-none !text-current`},[r(`div`,{class:`flex gap-1 children:my-auto`},[r(`div`,{class:`opacity-50 text-sm mr-2`},`Powered by`),r(`img`,{class:`w-5 h-5`,src:``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href,alt:`Slidev logo`}),r(`div`,{style:{color:`#2082A6`}},[r(`b`,null,`Sli`),g(`dev `)])])],-1)])]),_:1},8,[`modelValue`]))}}),Q=h({__name:`Controls`,setup(e){let{isEmbedded:n}=E(),r=!D.drawings.presenterOnly&&!n.value,o=s();r&&T(()=>import(`./DrawingControls-CNEr-2w_.js`).then(e=>e.n).then(e=>o.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url);let c=s(),u=s();return(e,n)=>(v(),a(d,null,[o.value?(v(),p(i(o),{key:0})):_(`v-if`,!0),t(W),t(R),c.value?(v(),p(i(c),{key:1})):_(`v-if`,!0),u.value?(v(),p(i(u),{key:2,modelValue:i(w),"onUpdate:modelValue":n[0]||=e=>l(w)?w.value=e:null},null,8,[`modelValue`])):_(`v-if`,!0),i(D).info?(v(),p(Z,{key:3,modelValue:i(y),"onUpdate:modelValue":n[1]||=e=>l(y)?y.value=e:null},null,8,[`modelValue`])):_(`v-if`,!0),t(V)],64))}}),$={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},ee=h({__name:`PresenterMouse`,setup(e){return(e,n)=>{let r=P;return i(M).cursor?.style===`cursor`?(v(),a(`div`,$,[t(r,{class:`absolute stroke-white dark:stroke-black`,style:o({left:`${i(M).cursor.x}%`,top:`${i(M).cursor.y}%`,strokeWidth:16})},null,8,[`style`])])):_(`v-if`,!0)}}}),te=h({__name:`play`,setup(n){let{next:o,prev:l,isPrintMode:f,isPlaying:h,isEmbedded:g}=E(),{isDrawing:y}=N(),S=u();function w(e){k.value||e.button===0&&e.target?.id===`slide-container`&&(e.pageX/window.innerWidth>.5?o():l())}B(S),G(),z(),J(c(()=>h.value&&!g.value&&!k.value));let T=c(()=>O.value||k.value),D=s(),A=c(()=>{let e=``;return b.value.brightness!==x.brightness&&(e+=`brightness(${b.value.brightness}) `),b.value.contrast!==x.contrast&&(e+=`contrast(${b.value.contrast}) `),b.value.sepia!==x.sepia&&(e+=`sepia(${b.value.sepia}) `),b.value.hueRotate!==x.hueRotate&&(e+=`hue-rotate(${b.value.hueRotate}deg) `),b.value.invert&&(e+=`invert(1) `),{filter:e}});return(n,o)=>(v(),a(d,null,[r(`div`,{id:`page-root`,ref_key:`root`,ref:S,class:m([`grid`,i(C)?`grid-rows-[1fr_max-content]`:`grid-cols-[1fr_max-content]`])},[t(I,{style:{background:`var(--slidev-slide-container-background, black)`},"is-main":``,"content-style":A.value,onPointerdown:w,onContextmenu:i(K)},{default:e(()=>[t(H,{"render-context":`slide`}),t(ee),t(L)]),controls:e(()=>[i(f)?_(`v-if`,!0):(v(),a(`div`,{key:0,class:m([`absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100`,[T.value?`!opacity-100 right-0`:`opacity-0 p-2`,i(y)?`pointer-events-none`:``]])},[t(U,{persist:T.value},null,8,[`persist`])],2))]),_:1},8,[`content-style`,`onContextmenu`]),D.value&&i(k)?(v(),p(i(D),{key:0,resize:!0})):_(`v-if`,!0)],2),i(f)?_(`v-if`,!0):(v(),p(Q,{key:0})),o[0]||=r(`div`,{id:`twoslash-container`},null,-1)],64))}});export{te as default};
lecture-06/assets/slidev/presenter-DL_E7IJt.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{$ as e,J as t,L as n,Q as r,S as i,X as a,Y as o,_ as s,_t as c,b as l,bt as u,ft as d,g as f,it as ee,lt as p,m as te,u as ne,v as m,vt as h,w as g,x as _,xt as v,y,z as b}from"../modules/shiki-BFOesOFp.js";import{$ as re,O as ie,W as ae,a as oe,b as x,m as se,o as ce,t as le,w as ue,x as de}from"../useNav-BKmHNb0y.js";import{t as S}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{T as C,g as w,m as T,v as fe}from"../modules/vue-Ymwlffw_.js";import{h as pe,n as E,o as me}from"../index-Cpw8zVhj.js";import{t as he}from"../useDrawings-BgI2o36O.js";import{t as ge}from"./DrawingControls-CNEr-2w_.js";import{t as _e}from"./IconButton-B5keGFol.js";import{n as ve,t as D}from"./NoteDisplay-ym8deWTv.js";import{n as O,r as ye,t as be}from"./TimerBar-05p5nBrA.js";import{i as k,t as xe}from"../SlideWrapper-Cejg6ZDn.js";import"./NoteEditable-B4j4c8ZZ.js";import{a as Se,c as Ce,d as we,f as Te,i as Ee,l as De,n as Oe,o as ke,r as Ae,s as je,t as Me,u as Ne}from"./shortcuts-CFipR0_i.js";var Pe=g({__name:`NoteStatic`,props:{no:{},class:{},clicksContext:{}},setup(e){let t=e,{info:n}=E(t.no);return(r,i)=>(b(),m(D,{class:h(t.class),note:c(n)?.note,"note-html":c(n)?.noteHTML,"clicks-context":e.clicksContext},null,8,[`class`,`note`,`note-html`,`clicks-context`]))}}),A={"h-full":``,"w-full":``},j={key:0,"w-full":``,"h-full":``,flex:`~ col gap-4 items-center justify-center`},Fe=g({__name:`ScreenCaptureMirror`,setup(n){let r=t(`video`),i=d(null),a=d(!1);async function o(){i.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:`always`},audio:!1,selfBrowserSurface:`include`,preferCurrentTab:!1}),r.value.srcObject=i.value,r.value.play(),a.value=!0,i.value.addEventListener(`inactive`,()=>{r.value.srcObject=null,a.value=!1}),i.value.addEventListener(`ended`,()=>{r.value.srcObject=null,a.value=!1})}return(t,n)=>(b(),l(`div`,A,[e(s(`video`,{ref_key:`video`,ref:r,class:`w-full h-full object-contain`},null,512),[[ne,a.value]]),a.value?y(`v-if`,!0):(b(),l(`div`,j,[n[0]||=s(`div`,{op50:``},[_(` Use screen capturing to mirror your main screen back to presenter view.`),s(`br`),_(` Click the button below and `),s(`b`,null,`select your other monitor or window`),_(`. `)],-1),s(`button`,{class:`slidev-form-button`,onClick:o},` Start Screen Mirroring `)]))]))}}),M={class:`w-22px cursor-pointer`},N={class:`group-not-hover:hidden flex flex-col items-center`},P={key:0,class:`i-carbon:pause text-lg`},F={key:1,class:`i-carbon:play`},I={class:`text-3xl px-3 my-auto font-mono`},Ie=g({__name:`TimerInlined`,setup(e){let{status:t,percentage:n,mode:r,timer:i,reset:a,toggle:o}=O(),u=f(()=>t.value===`stopped`?`op50`:t.value===`paused`?`text-blue6 dark:text-blue3`:n.value>100?`text-red6 dark:text-red3`:n.value>80?`text-yellow6 dark:text-yellow3`:`text-green6 dark:text-green3`);return(e,n)=>(b(),l(`div`,{class:h([`group flex items-center justify-center pl-4 select-none`,u.value])},[s(`div`,M,[s(`div`,{class:h([`group-hover:hidden text-2xl`,c(r)===`countdown`?`i-carbon:timer`:`i-carbon:time`])},null,2),s(`div`,N,[s(`div`,{class:`relative op-80 hover:op-100`,onClick:n[0]||=(...e)=>c(o)&&c(o)(...e)},[c(t)===`running`?(b(),l(`div`,P)):(b(),l(`div`,F))]),s(`div`,{class:`op-80 hover:op-100`,onClick:n[1]||=(...e)=>c(a)&&c(a)(...e)},[...n[2]||=[s(`div`,{class:`i-carbon:renew`},null,-1)]])])]),s(`div`,I,[c(i).h?(b(),l(te,{key:0},[s(`span`,null,v(c(i).h),1),n[3]||=s(`span`,{op50:``},`:`,-1)],64)):y(`v-if`,!0),s(`span`,null,v(c(i).m),1),n[4]||=s(`span`,{op50:``},`:`,-1),s(`span`,null,v(c(i).s),1)])],2))}}),Le={class:`bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden`},Re={flex:`~ gap-4 items-center`,border:`b main`,p1:``},ze={class:`relative grid-section next flex flex-col p-2 lg:p-4`},Be={key:2,class:`h-full flex justify-center items-center`},Ve={key:3,class:`h-full grid grid-rows-[1fr_min-content]`},L=S(g({__name:`presenter`,setup(t){let g=C(),_=p(),v=p(),S=p(),E=p();Me(),Te(_),we();let{clicksContext:D,currentSlideNo:O,currentSlideRoute:A,hasNext:j,nextRoute:M,slides:N,getPrimaryClicks:P}=le(),{isDrawing:F}=he();pe({title:`Presenter - ${re}`}),p(!1);let I=f(()=>N.value.map(e=>{let t=p(0);return{context:ae(t,e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks),clicks:t}})),L=f(()=>D.value.current<D.value.total?[A.value,D.value.current+1]:j.value?[M.value,0]:null),R=f(()=>L.value&&I.value[L.value[0].no-1]);o(L,()=>{R.value&&L.value&&(R.value.clicks.value=L.value[1])},{immediate:!0});let z=w(`slidev-presenter-main-slide-mode`,`slides`),B=w(`slidev-presenter-notes-width`,360),V=w(`slidev-presenter-notes-row-size`,280),He=p(0),H=p(!1),U=p(!1),Ue=p(0),W=p(360),We=p(0),G=p(280),K={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},Ge=fe(`(min-aspect-ratio: 1/1)`),q=fe(`(max-aspect-ratio: 3/5)`),J=f(()=>x.value===1&&Ge.value),Y=f(()=>!(x.value===1&&q.value)),X=f(()=>x.value===1&&!q.value||x.value===2||x.value===3),Ke=f(()=>x.value===1&&!q.value);function qe(e){return Number.isFinite(e)?Math.max(K.minNotesWidth,Math.min(K.maxNotesWidth,Math.round(e))):K.minNotesWidth}function Je(e){let t=v.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-Ue.value,i=qe(J.value?W.value-r:W.value+r),a=Math.round(n.width*K.maxNotesWidthRatio);B.value=Math.min(i,Math.max(K.minNotesWidth,a))}function Z(e){Y.value&&e.button===0&&(e.preventDefault(),Ue.value=e.clientX,W.value=B.value,H.value=!0)}function Q(e){return Number.isFinite(e)?Math.max(K.minNotesRowSize,Math.round(e)):K.minNotesRowSize}function Ye(e){let t=v.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-We.value,i=Ke.value?G.value-r:G.value+r,a=Math.round(n.height*K.maxNotesRowHeightRatio);V.value=Math.min(Q(i),Math.max(K.minNotesRowSize,a))}function Xe(e){if(!X.value||e.button!==0)return;e.preventDefault();let t=x.value===2?_.value?.getBoundingClientRect().height:S.value?.getBoundingClientRect().height;We.value=e.clientY,G.value=Q(t??V.value),U.value=!0}function Ze(){let e=E.value;e&&(He.value=Math.round(e.getBoundingClientRect().height))}function Qe(){H.value=!1,U.value=!1}function $e(){Ze(),et()}T(window,`pointermove`,e=>{H.value&&Je(e.clientX),U.value&&Ye(e.clientY)}),T(window,`pointerup`,Qe),T(window,`pointercancel`,Qe),n(()=>{$e()}),T(window,`resize`,()=>{$e()});function et(){B.value=qe(B.value),V.value=Q(V.value);let e=v.value;if(!e)return;let t=e.getBoundingClientRect(),n=Math.round(t.width*K.maxNotesWidthRatio),r=Math.round(t.height*K.maxNotesRowHeightRatio);B.value=Math.min(B.value,Math.max(K.minNotesWidth,n)),V.value=Math.min(V.value,Math.max(K.minNotesRowSize,r))}let $=d();return n(()=>{let e=ke(),t=C();a(()=>{!e.value||!t.value||F.value||!ie.value?me.cursor=void 0:me.cursor={...e.value,style:oe.value}})}),(t,n)=>(b(),l(te,null,[s(`div`,Le,[s(`div`,null,[i(ye),i(be)]),s(`div`,{ref_key:`gridContainer`,ref:v,class:h([`grid-container`,`layout${c(x)}`]),style:u({"--slidev-presenter-notes-width":`${c(B)}px`,"--slidev-presenter-notes-row-size":`${c(V)}px`,"--slidev-presenter-bottom-height":`${He.value}px`})},[y(` Unified vertical resizer for wide layout `),Y.value&&J.value?(b(),l(`div`,{key:0,class:`notes-vertical-resizer`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),y(` Unified vertical resizer for layout 3 `),Y.value&&c(x)===3?(b(),l(`div`,{key:1,class:`notes-vertical-resizer-left`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),s(`div`,{ref_key:`main`,ref:_,class:`relative grid-section main flex flex-col`},[s(`div`,Re,[n[3]||=s(`span`,{op50:``,px2:``},`Current`,-1),n[4]||=s(`div`,{"flex-auto":``},null,-1),i(Ee,{modelValue:c(z),"onUpdate:modelValue":n[0]||=e=>ee(z)?z.value=e:null,options:[{label:`Slides`,value:`slides`},{label:`Screen Mirror`,value:`mirror`}]},null,8,[`modelValue`])]),c(z)===`mirror`?(b(),m(Fe,{key:0})):y(`v-if`,!0),y(` We use v-show here to still infer the clicks context `),e(i(k,{key:`main`,class:`p-2 lg:p-4 flex-auto`,"is-main":``,onContextmenu:c(Ne)},{default:r(()=>[i(Oe,{"render-context":`presenter`}),i(Se)]),_:1},8,[`onContextmenu`]),[[ne,c(z)===`slides`]]),(b(),m(ve,{key:c(A)?.no,"clicks-context":c(P)(c(A)),class:`w-full pb2 px4 flex-none`},null,8,[`clicks-context`]))],512),s(`div`,ze,[X.value&&c(x)===2?(b(),l(`div`,{key:0,class:`notes-row-resizer top-[-6px]`,role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,32)):y(`v-if`,!0),L.value&&R.value?(b(),m(k,{key:`next`},{default:r(()=>[(b(),m(xe,{key:L.value[0].no,"clicks-context":R.value.context,route:L.value[0],"render-context":`previewNext`},null,8,[`clicks-context`,`route`]))]),_:1})):(b(),l(`div`,Be,[...n[5]||=[s(`div`,{class:`text-gray-500`},` End of the presentation `,-1)]])),n[6]||=s(`div`,{class:`absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm`},` Next `,-1)]),s(`div`,{ref_key:`noteSection`,ref:S,class:`relative grid-section note overflow-hidden`},[Y.value&&!J.value&&c(x)!==3?(b(),l(`div`,{key:0,class:`notes-resizer right-[-6px]`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),X.value&&c(x)!==2?(b(),l(`div`,{key:1,class:h([`notes-row-resizer`,Ke.value?`top-[-6px]`:`bottom-[-6px]`]),role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,34)):y(`v-if`,!0),$.value&&c(ue)?(b(),m(c($),{key:2,class:`h-full`})):(b(),l(`div`,Ve,[(b(),m(Pe,{key:`static-${c(O)}`,no:c(O),class:`w-full max-w-full h-full overflow-auto p-2 lg:p-4`,style:u({fontSize:`${c(de)}em`}),"clicks-context":c(D)},null,8,[`no`,`style`,`clicks-context`])),n[10]||=s(`div`,{"border-t":``,"border-main":``},null,-1),s(`div`,{class:h([`py-1 px-2 text-sm transition`,c(g)?``:`op25`])},[i(_e,{title:`Increase font size`,onClick:c(se)},{default:r(()=>[...n[7]||=[s(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1},8,[`onClick`]),i(_e,{title:`Decrease font size`,onClick:c(ce)},{default:r(()=>[...n[8]||=[s(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1},8,[`onClick`]),y(`v-if`,!0)],2)]))],512),s(`div`,{ref_key:`bottomSection`,ref:E,class:`grid-section bottom flex`},[i(Ae,{persist:!0,class:h([`transition`,c(g)?``:`op25`])},null,8,[`class`]),n[11]||=s(`div`,{"flex-auto":``},null,-1),i(Ie)],512),(b(),m(ge,{key:2}))],6)]),i(Ce),i(je),i(De)],64))}}),[[`__scopeId`,`data-v-e7a794bf`]]);export{L as default};
lecture-06/assets/slidev/shortcuts-CFipR0_i.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingLayer-DUTzsQ-q.js","../modules/shiki-BFOesOFp.js","../rolldown-runtime-hePW80VL.js","../modules/shiki-BrmBd2_v.css","./context-DrkI8qiD.js","../modules/vue-Ymwlffw_.js","../useDrawings-BgI2o36O.js","../useNav-BKmHNb0y.js","../_plugin-vue_export-helper-BDNMzG2s.js","../index-Cpw8zVhj.js","../syncState-BrWO1mSt.js","../index-DoO9FZlh.css"])))=>i.map(i=>d[i]);
2
+ import{$ as e,E as t,G as n,H as r,K as i,L as a,M as o,Q as s,S as c,V as l,X as u,Y as d,_ as f,_t as p,a as m,b as h,bt as g,c as _,d as v,f as y,ft as b,g as x,h as S,i as C,it as w,j as T,k as ee,l as E,lt as D,m as O,n as te,o as ne,u as re,v as k,vt as A,w as j,x as ie,xt as M,y as N,yt as P,z as F}from"../modules/shiki-BFOesOFp.js";import{A as ae,C as oe,D as I,E as se,F as L,G as ce,I as R,L as le,M as ue,N as de,O as fe,P as pe,Q as me,R as he,S as ge,T as z,V as _e,Y as ve,Z as ye,_ as be,a as xe,b as Se,d as Ce,f as we,g as Te,i as Ee,j as B,n as De,nt as Oe,p as ke,q as Ae,r as je,s as Me,t as V,tt as H,u as Ne,w as Pe,y as Fe,z as Ie}from"../useNav-BKmHNb0y.js";import{t as Le}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{C as Re,I as ze,P as Be,T as Ve,V as He,b as Ue,f as We,m as Ge,n as U,o as Ke,r as qe,s as Je,t as W,w as Ye,y as Xe}from"../modules/vue-Ymwlffw_.js";import{_ as Ze,l as Qe,n as $e}from"./context-DrkI8qiD.js";import{f as et,i as tt,m as nt,o as rt,p as it,r as at,t as ot}from"../index-Cpw8zVhj.js";import{t as st}from"../useDrawings-BgI2o36O.js";import{t as G}from"./IconButton-B5keGFol.js";import{t as ct}from"./VerticalDivider-D_ScNBWw.js";import{a as lt,i as ut,n as dt,o as ft,r as pt,t as mt}from"../SlideWrapper-Cejg6ZDn.js";function ht(e){let{next:t,nextSlide:n,prev:r,prevSlide:i}=V(),{isDrawing:a}=st(),o=D(0),{direction:s,distanceX:c,distanceY:l}=Ue(e,{pointerTypes:[`touch`],onSwipeStart(){a.value||(o.value=Be())},onSwipeEnd(){if(!o.value||a.value)return;let e=Math.abs(c.value),u=Math.abs(l.value);e/window.innerWidth>.3||e>75?s.value===`left`?t():r():(u/window.innerHeight>.4||u>200)&&(s.value===`down`?i():n())}})}function gt(){let{request:e,release:t}=Ye();d(le,n=>{n?e(`screen`):t()},{immediate:!0})}var _t=Object.assign({}),vt=Object.assign({}),yt=Object.assign({}),bt=[Object.values(_t)[0],Object.values(vt)[0],Object.values(yt)[0]].filter(Boolean),xt,St=()=>{if(xt)return xt;let{next:e,nextSlide:t,prev:n,prevSlide:r,hasNext:i,hasPrev:a,currentPage:o,total:s,isPresenter:c,enterPresenter:l,exitPresenter:u,isEmbedded:d,isPresenterAvailable:f}=V(),{drawingEnabled:p}=st(),{isFullscreen:m,toggle:h}=Ne;return xt=bt.reduce((e,t)=>t(e),x(()=>[{small:!0,icon:`i-carbon:arrow-left`,label:`Previous Click`,action:n,disabled:!a.value},{small:!0,icon:`i-carbon:arrow-right`,label:`Next Click`,action:e,disabled:!i.value},{small:!0,icon:`i-carbon:arrow-up`,label:`Previous Slide`,action:r,disabled:o.value<=1},{small:!0,icon:`i-carbon:arrow-down`,label:`Next Slide`,action:t,disabled:o.value>=s.value},`separator`,{icon:`i-carbon:text-annotation-toggle`,label:Pe.value?`Hide editor`:`Show editor`,action:()=>Pe.value=!Pe.value,show:!1},{icon:`i-carbon:pen`,label:p.value?`Hide drawing toolbar`:`Show drawing toolbar`,action:()=>p.value=!p.value},{icon:`i-carbon:apps`,label:`Show slide overview`,action:ue},c.value&&{icon:`i-carbon:presentation-file`,label:`Exit Presenter Mode`,action:u},f.value&&{icon:`i-carbon:user-speaker`,label:`Enter Presenter Mode`,action:l},!d.value&&{icon:m.value?`i-carbon:minimize`:`i-carbon:maximize`,label:m.value?`Close fullscreen`:`Enter fullscreen`,action:h}].filter(Boolean)))},Ct=b(null);function wt(e,t){Ct.value={x:e,y:t,items:St()}}function Tt(){Ct.value=null}function Et(e){if(H.contextMenu!==!0&&H.contextMenu!=null&&H.contextMenu!==`build`||e.shiftKey||e.defaultPrevented)return;let{isEmbedded:t}=V();t.value||(wt(e.pageX,e.pageY),e.preventDefault(),e.stopPropagation())}var Dt=[`title`,`onClick`],Ot=[`onClick`],kt={class:`mx-auto flex`},At={key:0},jt={class:`w-full text-xs p2`},Mt={class:`text-main text-opacity-50!`},Nt=j({__name:`ContextMenu`,setup(e){let t=D();Ke(t,Tt),Ge(document,`mousedown`,e=>{e.buttons&2&&Tt()},{passive:!0,capture:!0});let r=x(()=>H.contextMenu!=null),i=Ve();d(i,e=>{e||Tt()}),ot(1);let{width:a,height:o}=We(t),s=x(()=>{let e=Ct.value?.x;return e?e+a.value>he.width.value?he.width.value-a.value:e:0}),c=x(()=>{let e=Ct.value?.y;return e?e+o.value>he.height.value?he.height.value-o.value:e:0});return(e,i)=>p(Ct)?(F(),h(`div`,{key:0,ref_key:`container`,ref:t,style:g(`left:${s.value}px;top:${c.value}px`),class:`slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none`,onContextmenu:i[1]||=y(()=>{},[`prevent`]),onClick:i[2]||=(...e)=>p(Tt)&&p(Tt)(...e)},[(F(!0),h(O,null,l(p(Ct).items.value,(e,t)=>(F(),h(O,{key:t},[e===`separator`?(F(),h(`div`,{key:t,class:`w-full my1 border-t border-main`})):e.show??!0?(F(),h(O,{key:1},[e.small?(F(),h(`div`,{key:0,class:A([`p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex`,e.disabled?`op40`:`hover:bg-active`]),title:e.label,onClick:e.action},[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))],10,Dt)):(F(),h(`div`,{key:1,class:A([`w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded`,e.disabled?`op40`:`hover:bg-active`]),onClick:e.action},[f(`div`,kt,[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))]),typeof e.label==`string`?(F(),h(`div`,At,M(e.label),1)):(F(),k(n(e.label),{key:1}))],10,Ot))],64)):N(`v-if`,!0)],64))),128)),r.value?N(`v-if`,!0):(F(),h(O,{key:0},[i[6]||=f(`div`,{class:`w-full my1 border-t border-main`},null,-1),f(`div`,jt,[f(`div`,Mt,[i[3]||=ie(` Hold `,-1),i[4]||=f(`kbd`,{class:`border px1 py0.5 border-main rounded text-primary`},`Shift`,-1),i[5]||=ie(` and right click to open the native context menu `,-1),N(`v-if`,!0)])])],64))],36)):N(`v-if`,!0)}});function K(e){return Array.isArray?Array.isArray(e):Vt(e)===`[object Array]`}function Pt(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ft(e){return e==null?``:Pt(e)}function q(e){return typeof e==`string`}function It(e){return typeof e==`number`}function Lt(e){return e===!0||e===!1||zt(e)&&Vt(e)==`[object Boolean]`}function Rt(e){return typeof e==`object`}function zt(e){return Rt(e)&&e!==null}function J(e){return e!=null}function Bt(e){return!e.trim().length}function Vt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ht=`Incorrect 'index' type`,Ut=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,Wt=e=>`Invalid value for key ${e}`,Gt=e=>`Pattern length exceeds max of ${e}.`,Kt=e=>`Missing ${e} property in key`,qt=e=>`Property 'weight' in key '${e}' must be a positive integer`,Jt=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Yt=Object.prototype.hasOwnProperty,Xt=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Zt(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Zt(e){let t=null,n=null,r=null,i=1,a=null;if(q(e)||K(e))r=e,t=Qt(e),n=$t(e);else{if(!Yt.call(e,`name`))throw Error(Kt(`name`));let o=e.name;if(r=o,Yt.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(qt($t(o)));t=Qt(o),n=$t(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Qt(e){return K(e)?e:e.split(`.`)}function $t(e){return K(e)?e.join(`.`):e}function en(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(J(e)){if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!J(s))return;if(a===t.length-1&&(q(s)||It(s)||Lt(s)||typeof s==`bigint`))n.push(o===void 0?Ft(s):{v:Ft(s),i:o});else if(K(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}}};return i(e,q(t)?t.split(`.`):t,0),r?n:n[0]}var tn={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nn={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},rn={location:0,threshold:.6,distance:100},an={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:en,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Y=Object.freeze({...nn,...tn,...rn,...an});function on(e){return e>=9&&e<=13||e===32||e===160}function sn(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)on(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}var cn=class{constructor({getFn:e=Y.getFn,fieldNormWeight:t=Y.fieldNormWeight}={}){this.norm=sn(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(q(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(Ut);if(q(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(Ut);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!J(e)||Bt(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){let r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(J(i)){if(K(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(J(n)){if(q(n)){if(!Bt(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(J(n.v)){let t=q(n.v)?n.v:Ft(n.v);if(!Bt(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[t]=e}else if(q(i)&&!Bt(i)){let e={v:i,n:this.norm.get(i)};n.$[t]=e}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function ln(e,t,{getFn:n=Y.getFn,fieldNormWeight:r=Y.fieldNormWeight}={}){let i=new cn({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Zt)),i.setSources(t),i.create(),i}function un(e,{getFn:t=Y.getFn,fieldNormWeight:n=Y.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new cn({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function dn(e=[],t=Y.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function fn(e,t,n,{location:r=Y.location,distance:i=Y.distance,threshold:a=Y.threshold,findAllMatches:o=Y.findAllMatches,minMatchCharLength:s=Y.minMatchCharLength,includeMatches:c=Y.includeMatches,ignoreLocation:l=Y.ignoreLocation}={}){if(t.length>32)throw Error(Gt(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=0,S=u+d,C=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=S;for(;r<i;)h(t,f+i)<=p?r=i:S=i,i=Math.floor((S-r)/2+r);S=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=dn(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function pn(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function mn(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var hn={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},gn=RegExp(`[`+Object.keys(hn).join(``)+`]`,`g`),_n=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(gn,e=>hn[e]):e=>e,vn=class{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?_n(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:pn(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?_n(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=fn(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=mn(u)),p}},yn=new Set([`fuzzy`,`include`]);function bn(e){return e.startsWith(`inverse`)}var xn=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new vn(e,{location:t.location??Y.location,threshold:t.threshold??Y.threshold,distance:t.distance??Y.distance,includeMatches:t.includeMatches??Y.includeMatches,findAllMatches:t.findAllMatches??Y.findAllMatches,minMatchCharLength:t.minMatchCharLength??Y.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Y.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Y.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Y.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],Sn=xn.length,Cn=`\0`,wn=`|`;function Tn(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function En(e,t){let n=e.match(t);return n?n[1]:null}function Dn(e,t={}){return e.replace(/\\\|/g,Cn).split(wn).map(e=>{let n=Tn(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<Sn;){let e=xn[o],n=En(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<Sn;){let e=xn[o],n=En(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}var On=class{constructor(e,{isCaseSensitive:t=Y.isCaseSensitive,ignoreDiacritics:n=Y.ignoreDiacritics,includeMatches:r=Y.includeMatches,minMatchCharLength:i=Y.minMatchCharLength,ignoreLocation:a=Y.ignoreLocation,findAllMatches:o=Y.findAllMatches,location:s=Y.location,threshold:c=Y.threshold,distance:l=Y.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?_n(e):e,this.pattern=e,this.query=Dn(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?_n(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l)a+=1,s+=d,bn(r.type)&&(c=!0),n&&(yn.has(r.type)?o.push(...u):o.push(u));else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=mn(o)),e}}return{isMatch:!1,score:1}}},kn=[];function An(...e){kn.push(...e)}function jn(e,t){for(let n=0,r=kn.length;n<r;n+=1){let r=kn[n];if(r.condition(e,t))return new r(e,t)}return new vn(e,t)}var Mn={AND:`$and`,OR:`$or`},Nn={PATH:`$path`,PATTERN:`$val`},Pn=e=>!!(e[Mn.AND]||e[Mn.OR]),Fn=e=>!!e[Nn.PATH],In=e=>!K(e)&&Rt(e)&&!Pn(e),Ln=e=>({[Mn.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Rn(e,t,{auto:n=!0}={}){let r=e=>{if(q(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=jn(e,t)),r}let i=Object.keys(e),a=Fn(e);if(!a&&i.length>1&&!Pn(e))return r(Ln(e));if(In(e)){let r=a?e[Nn.PATH]:i[0],o=a?e[Nn.PATTERN]:e[r];if(!q(o))throw Error(Wt(r));let s={keyId:$t(r),pattern:o};return n&&(s.searcher=jn(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];K(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Pn(e)||(e=Ln(e)),r(e)}function zn(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function Bn(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){e.forEach(e=>{e.score=zn(e.matches,{ignoreFieldNorm:t})})}var Vn=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Hn(e){let t=[];return e.matches.forEach(e=>{if(!J(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function Un(e,t,{includeMatches:n=Y.includeMatches,includeScore:r=Y.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=Hn(e)),r&&(a.score=e.score),a})}var Wn=/[\p{L}\p{M}\p{N}_]+/gu,Gn=new WeakSet;function Kn(e){Gn.has(e)||(Gn.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function qn(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||Kn(e),t=>t.match(e)||[]):e=>e.match(Wn)||[]}function Jn({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=qn(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=_n(n)),r(n)}}}var Yn=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Jn({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new vn(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let c=this.termSearchers[s].searchIn(e),l=this.idfWeights[s];r+=l,c.isMatch&&(i++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?a|=1<<s:o.add(s)))}if(i===0)return{isMatch:!1,score:1};let s=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=mn(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function Xn(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function Zn(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){Xn(e,a,i,r);return}if(o)for(let t=0;t<n;t++){let n=o[t];if(n){if(Array.isArray(n))for(let t of n)Xn(e,t.v,i,r);else Xn(e,n.v,i,r)}}}function Qn(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)Zn(r,i,t,n);return r}function $n(e,t,n,r){Zn(e,t,n,r)}function er(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function tr(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)er(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var X=class{constructor(e,t,n){this.options={...Y,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Xt(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=jn(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof cn))throw Error(Ht);if(this._myIndex=t||ln(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Jn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Qn(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!J(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Jn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});$n(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&tr(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(Ut);this._invertedIndex&&tr(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(q(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return It(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&It(n)&&n>0&&q(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new Vn(n,u);q(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=q(e)?q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Bn(d,{ignoreFieldNorm:s}),a&&d.sort(q(e)?u:l),It(n)&&n>-1&&(d=d.slice(0,n));return Un(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!J(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=zn(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=Rn(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let{keyId:r,searcher:a}=e,o;return r===null?(o=[],n.forEach((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:a}))})):o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:a}),o&&o.length?[{idx:i,item:t,matches:o}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e<n;e+=1){let n=a[e],c=r(n,t,i);if(c.length)s.push(...c);else if(o===Mn.AND)return[]}return s},i=this._myIndex.records,a=new Map,o=[];return i.forEach(({$:e,i:n})=>{if(J(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),o.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!J(e))return;let c=[],l=!1,u=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:a,item:e,matches:c};t?(r.score=zn(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!J(t))return[];let r=[];if(K(t))t.forEach(({v:t,i,n:a})=>{if(!J(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};X.version=`7.5.0`,X.createIndex=ln,X.parseIndex=un,X.config=Y,X.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(Jt);return jn(e,{...Y,...n}).searchIn(t)},X.parseQuery=Rn,An(On),An(Yn),X.use=function(...e){e.forEach(e=>An(e))};var nr=X,rr={key:0},ir={key:1},ar={key:2},or={key:3},sr={key:4},cr={key:5},lr={key:6},ur={key:7},dr={key:8},fr={key:9},pr={key:10},mr={key:11},hr={key:12},gr={key:13},_r={key:14},vr={key:15},yr={key:16},br={key:17},xr={key:18},Sr={key:19},Cr={key:20},wr={key:21},Tr={key:22},Er={key:23},Dr={key:24},Or={key:25},kr={key:26},Ar={key:27},jr={key:28},Mr={key:29},Nr={key:30},Pr={key:31},Fr={key:32},Ir={key:33},Lr={key:34},Rr={key:35},zr={key:36},Br={key:37},Vr={key:38},Hr={key:39},Ur={key:40},Wr={key:41},Gr={key:42},Kr={key:43},qr={key:44},Jr={key:45},Yr={key:46},Xr={key:47},Zr={key:48},Qr={key:49},$r={key:50},ei={key:51},ti={key:52},ni={key:53},ri={key:54},ii={key:55},ai={key:56},oi={key:57},si={key:58},ci={key:59},li={key:60},ui={key:61},di={key:62},fi={key:63},pi={key:64},mi={key:65},hi={key:66},gi={key:67},_i={key:68},vi={key:69},yi={key:70},bi={key:71},xi={key:72},Si={key:73},Ci={key:74},wi={key:75},Ti={key:76},Ei={key:77},Di={key:78},Oi={key:79},ki={key:80},Ai={key:81},ji={key:82},Mi={key:83},Ni={key:84},Pi={key:85},Fi={key:86},Ii={key:87},Li={key:88},Ri={key:89},zi={key:90},Bi={key:91},Vi={key:92},Hi={key:93},Ui={key:94},Wi={key:95},Gi={key:96},Ki={key:97},qi={key:98},Ji={key:99},Yi={key:100},Xi={key:101},Zi={key:102},Qi={key:103},$i={key:104},ea={key:105},ta={key:106},na={key:107},ra={key:108},ia=j({__name:`title-renderer`,props:{no:{}},setup(e){let t=e,{$page:n}=$e(),r=x(()=>+(t.no??n.value));return(e,t)=>(F(),h(`div`,null,[r.value===1?(F(),h(`p`,rr,`Transformers`)):r.value===2?(F(),h(`p`,ir,`Where we are`)):r.value===3?(F(),h(`p`,ar,`In words: Where we are`)):r.value===4?(F(),h(`p`,or,`Delete the recurrence`)):r.value===5?(F(),h(`p`,sr,`Where last week stopped`)):r.value===6?(F(),h(`p`,cr,`In words: Where last week stopped`)):r.value===7?(F(),h(`p`,lr,`The move`)):r.value===8?(F(),h(`p`,ur,`In words: The move`)):r.value===9?(F(),h(`p`,dr,`What a transformer is`)):r.value===10?(F(),h(`p`,fr,`In words: What a transformer is`)):r.value===11?(F(),h(`p`,pr,`Poll: which wall attention solves`)):r.value===12?(F(),h(`p`,mr,`In words: which wall attention solves`)):r.value===13?(F(),h(`p`,hr,`Query, key, value`)):r.value===14?(F(),h(`p`,gr,`Start from a lookup`)):r.value===15?(F(),h(`p`,_r,`In words: Start from a lookup`)):r.value===16?(F(),h(`p`,vr,`Three roles, one vector`)):r.value===17?(F(),h(`p`,yr,`In words: Three roles, one vector`)):r.value===18?(F(),h(`p`,br,`The sentence we will use all lecture`)):r.value===19?(F(),h(`p`,xr,`In words: The sentence we will use all lecture`)):r.value===20?(F(),h(`p`,Sr,`Three lenses on one word`)):r.value===21?(F(),h(`p`,Cr,`In words: Three lenses on one word`)):r.value===22?(F(),h(`p`,wr,`Why a key and a value are different things`)):r.value===23?(F(),h(`p`,Tr,`In words: Why a key and a value are different things`)):r.value===24?(F(),h(`p`,Er,`Four steps, and that is the whole mechanism`)):r.value===25?(F(),h(`p`,Dr,`In words: Four steps, and that is the whole mechanism`)):r.value===26?(F(),h(`p`,Or,`One output vector, five lines`)):r.value===27?(F(),h(`p`,kr,`In words: One output vector, five lines`)):r.value===28?(F(),h(`p`,Ar,`Same word, same weights, different neighbour`)):r.value===29?(F(),h(`p`,jr,`In words: Same word, same weights, different neighbour`)):r.value===30?(F(),h(`p`,Mr,`Why divide by the square root`)):r.value===31?(F(),h(`p`,Nr,`Reading the equation: scaled scores`)):r.value===32?(F(),h(`p`,Pr,`In words: Why divide by the square root`)):r.value===33?(F(),h(`p`,Fr,`Every query at once`)):r.value===34?(F(),h(`p`,Ir,`In words: Every query at once`)):r.value===35?(F(),h(`p`,Lr,`The whole layer, in one line`)):r.value===36?(F(),h(`p`,Rr,`In words: The whole layer, in one line`)):r.value===37?(F(),h(`p`,zr,`Poll: where self-attention’s keys come from`)):r.value===38?(F(),h(`p`,Br,`In words: Where self-attention’s keys come from`)):r.value===39?(F(),h(`p`,Vr,`From one head to one block`)):r.value===40?(F(),h(`p`,Hr,`One softmax can only point at one thing`)):r.value===41?(F(),h(`p`,Ur,`In words: One softmax can only point at one thing`)):r.value===42?(F(),h(`p`,Wr,`Four heads, one question each`)):r.value===43?(F(),h(`p`,Gr,`In words: Four heads, one question each`)):r.value===44?(F(),h(`p`,Kr,`Heads are free`)):r.value===45?(F(),h(`p`,qr,`In words: Heads are free`)):r.value===46?(F(),h(`p`,Jr,`Attention does not know what order the words came in`)):r.value===47?(F(),h(`p`,Yr,`In words: Attention does not know what order the words came in`)):r.value===48?(F(),h(`p`,Xr,`So put the position into the vector`)):r.value===49?(F(),h(`p`,Zr,`In words: So put the position into the vector`)):r.value===50?(F(),h(`p`,Qr,`The other half of the block`)):r.value===51?(F(),h(`p`,$r,`Reading the equation: the feed-forward network`)):r.value===52?(F(),h(`p`,ei,`In words: The other half of the block`)):r.value===53?(F(),h(`p`,ti,`Two wrappers that make it stackable`)):r.value===54?(F(),h(`p`,ni,`In words: Two wrappers that make it stackable`)):r.value===55?(F(),h(`p`,ri,`The block, assembled`)):r.value===56?(F(),h(`p`,ii,`In words: The block, assembled`)):r.value===57?(F(),h(`p`,ai,`What a block costs`)):r.value===58?(F(),h(`p`,oi,`In words: What a block costs`)):r.value===59?(F(),h(`p`,si,`The bill for looking everywhere`)):r.value===60?(F(),h(`p`,ci,`In words: The bill for looking everywhere`)):r.value===61?(F(),h(`p`,li,`The original transformer`)):r.value===62?(F(),h(`p`,ui,`Two stacks`)):r.value===63?(F(),h(`p`,di,`In words: Two stacks`)):r.value===64?(F(),h(`p`,fi,`The architecture, step by step`)):r.value===65?(F(),h(`p`,pi,`In words: The architecture, step by step`)):r.value===66?(F(),h(`p`,mi,`The mask, and why the loss collapses without it`)):r.value===67?(F(),h(`p`,hi,`In words: The mask, and why the loss collapses without it`)):r.value===68?(F(),h(`p`,gi,`Cross-attention is last week’s slide`)):r.value===69?(F(),h(`p`,_i,`In words: Cross-attention is last week’s slide`)):r.value===70?(F(),h(`p`,vi,`The model they actually trained`)):r.value===71?(F(),h(`p`,yi,`In words: The model they actually trained`)):r.value===72?(F(),h(`p`,bi,`Poll: how many decoder passes teacher forcing needs`)):r.value===73?(F(),h(`p`,xi,`In words: How many decoder passes teacher forcing needs`)):r.value===74?(F(),h(`p`,Si,`Modern transformers`)):r.value===75?(F(),h(`p`,Ci,`The architecture forked three ways`)):r.value===76?(F(),h(`p`,wi,`In words: The architecture forked three ways`)):r.value===77?(F(),h(`p`,Ti,`Why decoder-only took over`)):r.value===78?(F(),h(`p`,Ei,`In words: Why decoder-only took over`)):r.value===79?(F(),h(`p`,Di,`One wire moved, and deep stacks started training`)):r.value===80?(F(),h(`p`,Oi,`In words: One wire moved, and deep stacks started training`)):r.value===81?(F(),h(`p`,ki,`What else changed inside the block`)):r.value===82?(F(),h(`p`,Ai,`In words: What else changed inside the block`)):r.value===83?(F(),h(`p`,ji,`Position, done properly`)):r.value===84?(F(),h(`p`,Mi,`In words: Position, done properly`)):r.value===85?(F(),h(`p`,Ni,`What generation actually costs`)):r.value===86?(F(),h(`p`,Pi,`In words: What generation actually costs`)):r.value===87?(F(),h(`p`,Fi,`The same block, more of it`)):r.value===88?(F(),h(`p`,Ii,`In words: The same block, more of it`)):r.value===89?(F(),h(`p`,Li,`What did not change`)):r.value===90?(F(),h(`p`,Ri,`In words: What did not change`)):r.value===91?(F(),h(`p`,zi,`In PyTorch`)):r.value===92?(F(),h(`p`,Bi,`The mechanism is one function call`)):r.value===93?(F(),h(`p`,Vi,`In words: The mechanism is one function call`)):r.value===94?(F(),h(`p`,Hi,`Self-attention, written out`)):r.value===95?(F(),h(`p`,Ui,`In words: Self-attention, written out`)):r.value===96?(F(),h(`p`,Wi,`A block, and a stack`)):r.value===97?(F(),h(`p`,Gi,`In words: A block, and a stack`)):r.value===98?(F(),h(`p`,Ki,`Or use the one in the box`)):r.value===99?(F(),h(`p`,qi,`In words: Or use the one in the box`)):r.value===100?(F(),h(`p`,Ji,`Shapes, end to end`)):r.value===101?(F(),h(`p`,Yi,`In words: Shapes, end to end`)):r.value===102?(F(),h(`p`,Xi,`Four bugs, and what each one looks like`)):r.value===103?(F(),h(`p`,Zi,`In words: Four bugs, and what each one looks like`)):r.value===104?(F(),h(`p`,Qi,`Where that leaves us`)):r.value===105?(F(),h(`p`,$i,`Where we got to`)):r.value===106?(F(),h(`p`,ea,`In words: Where we got to`)):r.value===107?(F(),h(`p`,ta,`Reading, and the lab`)):r.value===108?(F(),h(`p`,na,`In words: Reading, and the lab`)):r.value===109?(F(),h(`p`,ra,`To be continued…`)):N(`v-if`,!0)]))}}),aa={class:`bg-main transform`,shadow:`~`,p:`x-4 y-2`,border:`~ transparent rounded dark:main`},oa=[`value`,`disabled`],sa={table:``,"w-full":``,"border-collapse":``},ca=[`border`,`onClick`],la={"text-right":``,op50:``,"text-sm":``,"table-cell":``,"py-2":``,"pl-4":``,"pr-3":``,"vertical-middle":``},ua=Le(j({__name:`Goto`,setup(e){let t=D(),n=D(),r=D(),i=D(),a=D(``),o=D(0),{go:s,slides:u}=V();function m(e){return e!=null}let g=x(()=>new nr(u.value.map(e=>e.meta?.slide).filter(m),{keys:[`no`,`title`],threshold:.3,shouldSort:!0,minMatchCharLength:1})),_=x(()=>a.value.startsWith(`/`)?a.value.substring(1):a.value),b=x(()=>_.value?g.value.search(_.value).map(e=>e.item):[]),S=x(()=>!!b.value.length);function C(){if(S.value){let e=b.value.at(o.value||0);e&&s(e.no)}w()}function w(){a.value=``,z.value=!1}function T(e){e.preventDefault(),o.value++,o.value>=b.value.length&&(o.value=0),E()}function ee(e){e.preventDefault(),o.value--,o.value<=-2&&(o.value=b.value.length-1),E()}function E(){let e=i.value?.[o.value];e&&r.value&&(e.offsetTop+e.offsetHeight>r.value.offsetHeight+r.value.scrollTop?r.value.scrollTo({behavior:`smooth`,top:e.offsetTop+e.offsetHeight-r.value.offsetHeight+1}):e.offsetTop<r.value.scrollTop&&r.value.scrollTo({behavior:`smooth`,top:e.offsetTop}))}function te(e){o.value=0,a.value=e.target.value}function ne(e){s(e),w()}return d(z,async e=>{e?(a.value=``,o.value=0,setTimeout(()=>n.value?.focus(),0)):n.value?.blur()}),d(je,()=>{t.value?.contains(je.value)||w()}),(e,s)=>(F(),h(`div`,{id:`slidev-goto-dialog`,ref_key:`container`,ref:t,class:A([`fixed right-5 transition-all`,p(z)?`top-5`:`-top-20 op0 pointer-events-none`]),"w-90":``,"max-w-90":``,"min-w-90":``},[f(`div`,aa,[f(`input`,{id:`slidev-goto-input`,ref_key:`input`,ref:n,value:a.value,type:`text`,disabled:!p(z),class:A([`outline-none bg-transparent`,{"text-red-400":!S.value&&a.value}]),placeholder:`Goto...`,onKeydown:[v(C,[`enter`]),v(w,[`escape`]),v(T,[`down`]),v(ee,[`up`])],onInput:te},null,42,oa)]),p(z)&&b.value.length>0?(F(),h(`div`,{key:0,ref_key:`list`,ref:r,class:`autocomplete-list`,shadow:`~`,border:`~ transparent rounded dark:main`},[f(`ul`,sa,[(F(!0),h(O,null,l(b.value,(e,t)=>(F(),h(`li`,{ref_for:!0,ref_key:`items`,ref:i,key:e.id,role:`button`,tabindex:`0`,"cursor-pointer":``,hover:`op100`,"table-row":``,"items-center":``,border:t===0?void 0:`t main`,class:A(o.value===t?`bg-active op100`:`op80`),onClick:y(t=>ne(e.no),[`stop`,`prevent`])},[f(`div`,la,M(e.no),1),c(p(ia),{"table-cell":``,"py-2":``,"pr-4":``,"w-full":``,no:e.no},null,8,[`no`])],10,ca))),128))])],512)):N(`v-if`,!0)],2))}}),[[`__scopeId`,`data-v-61e41ebd`]]),da=D(1),fa=x(()=>_e.value.length),Z=D(0),pa=D(0);function ma(){Z.value>da.value&&--Z.value}function ha(){Z.value<fa.value&&(Z.value+=1)}function ga(){if(Z.value>da.value){let e=Z.value-pa.value;e<da.value&&(e=da.value),Z.value=e}}function _a(){if(Z.value<fa.value){let e=Z.value+pa.value;e>fa.value&&(e=fa.value),Z.value=e}}var va=[`onClick`],ya={class:`text-green font-bold`},ba={class:`opacity-50`},xa={key:1,class:`opacity-50`},Sa={class:`fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2`},Ca=128,wa=32,Ta=j({__name:`QuickOverview`,setup(t){let{currentSlideNo:n,go:r,slides:i}=V();function a(){I.value=!1}function o(e){r(e),a()}function d(e){return e===Z.value}let _=Ee.smaller(`xs`),v=Ee.smaller(`sm`),y=x(()=>_.value?he.width.value-Ca:v.value?(he.width.value-Ca-wa)/2:300),b=x(()=>Math.floor((he.width.value-Ca)/(y.value+wa))),S=D(``);return Ge(`keypress`,e=>{if(!I.value){S.value=``;return}if(e.key===`Enter`){e.preventDefault(),S.value?(o(+S.value),S.value=``):o(Z.value);return}let t=Number.parseInt(e.key.replace(/\D/g,``));if(Number.isNaN(t)){S.value=``;return}if(!S.value&&t===0)return;if(S.value+=String(t),+S.value>i.value.length){S.value=``;return}let n=i.value.findIndex(e=>`/${e.no}`===S.value);n!==-1&&(Z.value=n+1),S.value*10>i.value.length&&(o(+S.value),S.value=``)}),u(()=>{Z.value=n.value,pa.value=b.value}),(t,n)=>(F(),h(O,null,[c(m,{"enter-active-class":`duration-150 ease-out`,"enter-from-class":`opacity-0 scale-102 !backdrop-blur-0px`,"leave-active-class":`duration-200 ease-in`,"leave-to-class":`opacity-0 scale-102 !backdrop-blur-0px`},{default:s(()=>[p(I)?(F(),h(`div`,{key:0,class:`fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)] z-modal bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px select-none`,onClick:a},[f(`div`,{class:`grid gap-y-4 gap-x-8 w-full`,style:g(`grid-template-columns: repeat(auto-fit,minmax(${y.value}px,1fr))`)},[(F(!0),h(O,null,l(p(i),(e,t)=>(F(),h(`div`,{key:e.no,class:`relative`},[f(`div`,{class:A([`inline-block border rounded overflow-hidden bg-main hover:border-primary transition`,d(t+1)||p(Z)===t+1?`border-primary`:`border-main`]),onClick:t=>o(e.no)},[(F(),k(ut,{key:e.no,no:e.no,"use-snapshot":!0,width:y.value,class:`pointer-events-none`},{default:s(()=>[c(mt,{"clicks-context":p(ce)(e,p(Qe)),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),c(ft,{page:e.no},null,8,[`page`])]),_:2},1032,[`no`,`width`]))],10,va),f(`div`,{class:`absolute top-0`,style:g(`left: ${y.value+5}px`)},[S.value&&String(t+1).startsWith(S.value)?(F(),h(O,{key:0},[f(`span`,ya,M(S.value),1),f(`span`,ba,M(String(t+1).slice(S.value.length)),1)],64)):(F(),h(`span`,xa,M(t+1),1))],4)]))),128))],4)])):N(`v-if`,!0)]),_:1}),e(f(`div`,Sa,[c(G,{title:`Close`,class:`text-2xl`,onClick:a},{default:s(()=>[...n[0]||=[f(`div`,{class:`i-carbon:close`},null,-1)]]),_:1}),(F(),k(G,{key:0,as:`a`,title:`Slides Overview`,target:`_blank`,href:`${p(ve)}overview`,"tab-index":`-1`,class:`text-2xl`},{default:s(()=>[...n[1]||=[f(`div`,{class:`i-carbon:list-boxes`},null,-1)]]),_:1},8,[`href`])),N(`v-if`,!0)],512),[[re,p(I)]])],64))}});function Ea(){let e=Xe();return x(()=>{let t=lt.value?.getBoundingClientRect();if(!t)return;let n=(e.x.value-t.left)/t.width*100,r=(e.y.value-t.top)/t.height*100;if(!(n<0||n>100||r<0||r>100))return{x:n,y:r}})}var Da={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},Oa=Le(j({__name:`LaserPointer`,setup(e){let t=Ea(),{isPresenter:n}=V(),r=x(()=>!n.value&&rt.cursor?.style===`laser`?rt.cursor:xe.value===`laser`?t.value:null);return a(()=>{u(()=>{document.body.classList.toggle(`slidev-self-laser-active`,xe.value===`laser`&&!!r.value)})}),(e,t)=>r.value?(F(),h(`div`,Da,[f(`div`,{class:`laser-pointer`,style:g({left:`${r.value.x}%`,top:`${r.value.y}%`})},null,4)])):N(`v-if`,!0)}}),[[`__scopeId`,`data-v-1d1438ab`]]),ka={render:()=>[]},Aa={key:0,class:`bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2`,border:`~ main rounded-md`},ja=j({__name:`MenuButton`,props:{modelValue:{default:!1},disabled:{default:!1}},setup(e,{emit:t}){let n=Re(e,`modelValue`,t,{passive:!0}),i=D();return Ke(i,()=>{n.value=!1}),(t,a)=>(F(),h(`div`,{ref_key:`el`,ref:i,class:`flex relative`},[f(`button`,{class:A({disabled:e.disabled}),onClick:a[0]||=e=>n.value=!p(n)},[r(t.$slots,`button`,{value:p(n),class:A({disabled:e.disabled})})],2),(F(),k(S,null,[p(n)?(F(),h(`div`,Aa,[r(t.$slots,`menu`)])):N(`v-if`,!0)],1024))],512))}}),Ma={border:`~ main rounded`,flex:`~ gap-2 items-center`,relative:``,"h-5":``,"w-5":``,"p0.5":``,"hover:bg-active":``,p1:``},Na=[`disabled`],Pa=j({__name:`FormCheckbox`,props:T({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=i(t,`modelValue`);return(r,i)=>(F(),h(`div`,Ma,[f(`div`,{"i-ri-check-line":``,class:A(n.value?``:`op0`)},null,2),e(f(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,type:`checkbox`,absolute:``,"inset-0":``,"opacity-10":``,disabled:t.disabled},null,8,Na),[[_,n.value]])]))}}),Fa={"w-30":``,"h-8":``,flex:`~ gap-1 items-center`},Ia={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},La={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},Ra=[`innerHTML`],Q=j({__name:`FormItem`,props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:[`reset`],setup(e,{emit:t}){let i=t;function a(){i(`reset`)}return(t,i)=>(F(),k(n(e.div?`div`:`label`),{flex:`~ row gap-2 items-center`,"select-none":``},{default:s(()=>[f(`div`,Fa,[e.nested?(F(),h(`div`,{key:0,"i-ri-corner-down-right-line":``,op40:``,style:g(typeof e.nested==`number`?{marginLeft:`${e.nested*.5+.5}rem`}:{marginLeft:`0.25rem`})},null,4)):N(`v-if`,!0),e.description?(F(),k(p(te),{key:2,distance:`10`},{popper:s(()=>[f(`div`,{"text-sm":``,"min-w-90":``,innerHTML:e.description},null,8,Ra)]),default:s(()=>[f(`div`,{op75:``,"text-right":``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,La)):N(`v-if`,!0)],32)]),_:1})):(F(),h(`div`,{key:1,op75:``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,Ia)):N(`v-if`,!0)],32))]),r(t.$slots,`default`)]),_:3}))}}),za={relative:``,"h-22px":``},Ba={key:0,"pointer-events-none":``,absolute:``,"right-1":``,"top-0.5":``,"text-xs":``,op25:``},Va=j({__name:`FormSlider`,props:T({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=t,r=i(t,`modelValue`);return(i,a)=>(F(),h(O,null,[f(`div`,{relative:``,"h-22px":``,"w-60":``,"flex-auto":``,onDblclick:a[1]||=e=>n.default===void 0?null:r.value=n.default},[e(f(`input`,o({"onUpdate:modelValue":a[0]||=e=>r.value=e,type:`range`,class:`slider`},n,{absolute:``,"bottom-0":``,"left-0":``,"right-0":``,"top-0":``,"z-10":``,"w-full":``,"align-top":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.default==null?N(`v-if`,!0):(F(),h(`span`,{key:0,border:`r main`,absolute:``,"bottom-0":``,"top-0":``,"h-full":``,"w-1px":``,op75:``,style:g({left:`${(n.default-t.min)/(t.max-t.min)*100}%`})},null,4))],32),f(`div`,za,[e(f(`input`,o({"onUpdate:modelValue":a[2]||=e=>r.value=e,type:`number`},n,{border:`~ main rounded`,m0:``,"w-20":``,"bg-gray:5":``,pl2:``,"align-top":``,"text-sm":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.unit?(F(),h(`span`,Ba,M(n.unit),1)):N(`v-if`,!0)])],64))}}),Ha={error:0,client:60,Light:60,Dark:240};function Ua(e,t=1){if(Ha[e])return Wa(Ha[e],t);let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return Wa(n%360,t)}function Wa(e,t=1){return`hsla(${e}, ${e===-1?0:it.value?50:100}%, ${it.value?60:20}%, ${t})`}var Ga=[`textContent`],Ka=j({__name:`Badge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let t=e,i=x(()=>!t.text||t.color===!1?{}:{color:typeof t.color==`number`?Wa(t.color):Ua(t.text),background:typeof t.color==`number`?Wa(t.color,.1):Ua(t.text,.1)}),a=x(()=>(t.size||`sm`)===`sm`?`px-1.5 text-11px leading-1.6em`:``);return(o,c)=>(F(),k(n(e.as||`span`),{"ws-nowrap":``,rounded:``,class:A(a.value),style:g(i.value)},{default:s(()=>[r(o.$slots,`default`,{},()=>[f(`span`,{textContent:M(t.text)},null,8,Ga)])]),_:3},8,[`class`,`style`]))}}),qa={flex:`~ gap-1 items-center`,rounded:``,"bg-gray:4":``,p1:``,"m--1":``},Ja=j({__name:`SegmentControl`,props:{options:{},modelValue:{}},emits:[`update:modelValue`],setup(e){return(t,n)=>(F(),h(`div`,qa,[(F(!0),h(O,null,l(e.options,n=>(F(),k(Ka,{key:n.value,class:A([`px-2 py-1 text-xs font-mono`,n.value===e.modelValue?``:`op50`]),color:n.value===e.modelValue,"aria-pressed":n.value===e.modelValue,size:`none`,text:n.label,as:`button`,onClick:e=>t.$emit(`update:modelValue`,n.value)},null,8,[`class`,`color`,`aria-pressed`,`text`,`onClick`]))),128))]))}}),Ya={"text-sm":``,"select-none":``,flex:`~ col gap-1`,"min-w-30":``,px4:``},Xa=j({__name:`Settings`,setup(e){let{isPresenter:t}=V(),{isSupported:n}=Ye();return(e,r)=>(F(),h(`div`,Ya,[c(Q,{title:`Invert`,dot:p(L).invert!==p(R).invert,onReset:r[1]||=e=>p(L).invert=p(R).invert},{default:s(()=>[c(Pa,{modelValue:p(L).invert,"onUpdate:modelValue":r[0]||=e=>p(L).invert=e},null,8,[`modelValue`])]),_:1},8,[`dot`]),c(Q,{title:`Brightness`,dot:p(L).brightness!==p(R).brightness,onReset:r[3]||=e=>p(L).brightness=p(R).brightness},{default:s(()=>[c(Va,{modelValue:p(L).brightness,"onUpdate:modelValue":r[2]||=e=>p(L).brightness=e,max:1.5,min:.5,step:.02,default:p(R).brightness},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Contrast`,dot:p(L).contrast!==p(R).contrast,onReset:r[5]||=e=>p(L).contrast=p(R).contrast},{default:s(()=>[c(Va,{modelValue:p(L).contrast,"onUpdate:modelValue":r[4]||=e=>p(L).contrast=e,max:1.5,min:.5,step:.02,default:p(R).contrast},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Saturation`,dot:p(L).saturate!==p(R).saturate,onReset:r[7]||=e=>p(L).saturate=p(R).saturate},{default:s(()=>[c(Va,{modelValue:p(L).saturate,"onUpdate:modelValue":r[6]||=e=>p(L).saturate=e,max:1.5,min:.5,step:.02,default:p(R).saturate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Sepia`,dot:p(L).sepia!==p(R).sepia,onReset:r[9]||=e=>p(L).sepia=p(R).sepia},{default:s(()=>[c(Va,{modelValue:p(L).sepia,"onUpdate:modelValue":r[8]||=e=>p(L).sepia=e,max:2,min:-2,step:.02,default:p(R).sepia},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Hue Rotate`,dot:p(L).hueRotate!==p(R).hueRotate,onReset:r[11]||=e=>p(L).hueRotate=p(R).hueRotate},{default:s(()=>[c(Va,{modelValue:p(L).hueRotate,"onUpdate:modelValue":r[10]||=e=>p(L).hueRotate=e,max:180,min:-180,step:.1,default:p(R).hueRotate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r[16]||=f(`div`,{class:`h-1px opacity-5 bg-current w-full my2`},null,-1),c(Q,{title:`Cursor Style`},{default:s(()=>[c(Ja,{modelValue:p(xe),"onUpdate:modelValue":r[12]||=e=>w(xe)?xe.value=e:null,options:[{label:`Cursor`,value:`cursor`},{label:`Laser`,value:`laser`}]},null,8,[`modelValue`])]),_:1}),p(t)?N(`v-if`,!0):(F(),k(Q,{key:0,title:`Slide Scale`},{default:s(()=>[c(Ja,{modelValue:p(ae),"onUpdate:modelValue":r[13]||=e=>w(ae)?ae.value=e:null,options:[{label:`Fit`,value:0},{label:`1:1`,value:1}]},null,8,[`modelValue`])]),_:1})),p(n)?(F(),k(Q,{key:1,title:`Wake Lock`},{default:s(()=>[c(Pa,{modelValue:p(le),"onUpdate:modelValue":r[14]||=e=>w(le)?le.value=e:null},null,8,[`modelValue`])]),_:1})):N(`v-if`,!0),p(t)?N(`v-if`,!0):(F(),k(Q,{key:2,title:`Hide Idle Cursor`},{default:s(()=>[c(Pa,{modelValue:p(we),"onUpdate:modelValue":r[15]||=e=>w(we)?we.value=e:null},null,8,[`modelValue`])]),_:1}))]))}}),Za={class:`select-list`},Qa={class:`title`},$a={class:`items`},eo=[`onClick`],to=Le(j({__name:`SelectList`,props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(e,{emit:t}){let n=Re(e,`modelValue`,t,{passive:!0});return(t,r)=>(F(),h(`div`,Za,[f(`div`,Qa,M(e.title),1),f(`div`,$a,[(F(!0),h(O,null,l(e.items,e=>(F(),h(`div`,{key:e.value,class:A([`item`,{active:p(n)===e.value}]),onClick:()=>{n.value=e.value,e.onClick?.()}},[f(`div`,{class:A([`i-carbon:checkmark text-green-500 mya`,{"opacity-0":p(n)!==e.value}])},null,2),f(`div`,{class:A({"opacity-50":p(n)!==e.value})},M(e.display||e.value),3)],10,eo))),128))])]))}}),[[`__scopeId`,`data-v-aa3b28a6`]]),no={"text-sm":``,flex:`~ col gap-2`},ro={px3:``,"ws-nowrap":``},io={"font-bold":``,"text-primary":``},ao=j({__name:`SyncControls`,setup(e){let{isPresenter:t}=V(),n=x({get:()=>t.value?B.value.presenterReceive:B.value.viewerReceive,set(e){t.value?B.value.presenterReceive=e:B.value.viewerReceive=e}}),r=x({get:()=>t.value?B.value.presenterSend:B.value.viewerSend,set(e){t.value?B.value.presenterSend=e:B.value.viewerSend=e}}),i=x({get:()=>n.value&&r.value?`bidirectional`:n.value&&!r.value?`receive-only`:!n.value&&r.value?`send-only`:`off`,set(e){switch(e){case`bidirectional`:n.value=!0,r.value=!0;break;case`receive-only`:n.value=!0,r.value=!1;break;case`send-only`:n.value=!1,r.value=!0;break;case`off`:n.value=!1,r.value=!1}}});return(e,a)=>(F(),k(ja,null,{button:s(()=>[c(G,{title:`Change sync settings`},{default:s(()=>[f(`div`,{class:A([`i-ph:arrow-up-bold mx--1.2 scale-x-80`,r.value?`text-green6 dark:text-green`:`op30`])},null,2),f(`div`,{class:A([`i-ph:arrow-down-bold mx--1.2 scale-x-80`,n.value?`text-green6 dark:text-green`:`op30`])},null,2)]),_:1})]),menu:s(()=>[f(`div`,no,[f(`div`,ro,[a[1]||=f(`span`,{op75:``},`Slides navigation syncing for `,-1),f(`span`,io,M(p(t)?`presenter`:`viewer`),1)]),a[2]||=f(`div`,{class:`h-1px opacity-10 bg-current w-full`},null,-1),c(to,{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,title:`Sync Mode`,items:[{value:`bidirectional`,display:`Bidirectional Sync`},{value:`receive-only`,display:`Receive Only`},{value:`send-only`,display:`Send Only`},{value:`off`,display:`Disable`}]},null,8,[`modelValue`])])]),_:1}))}}),oo={key:0,class:`i-carbon:minimize`},so={key:1,class:`i-carbon:maximize`},co={key:0,class:`i-carbon-moon`},lo={key:1,class:`i-carbon-sun`},uo={key:0,class:`i-carbon-magic-wand-filled color-red-600 dark:color-red-400`},fo={key:1,class:`i-carbon-magic-wand`},po={key:0,class:`i-ph-cursor-fill`},mo={key:1,class:`i-ph-cursor-duotone`},ho={key:0,"w-2":``,"h-2":``,"bg-primary":``,"rounded-full":``,absolute:``,"top-0.5":``,"right-0.5":``},go={class:`px2 my-auto`},_o={class:`text-lg`},vo={class:`opacity-50 text-sm`},yo=j({__name:`NavControls`,props:{persist:{default:!1}},setup(e){let t=e,{currentSlideNo:n,hasNext:r,hasPrev:i,isEmbedded:a,isPresenter:o,isPresenterAvailable:l,next:u,prev:d,total:m,enterPresenter:_,exitPresenter:v}=V(),{brush:y,drawingEnabled:S}=st(),C=Ee.smaller(`md`),{isFullscreen:w,toggle:T}=Ne,ee=D();function E(){ee.value&&je.value&&ee.value.contains(je.value)&&je.value.blur()}let te=x(()=>t.persist?`text-$slidev-controls-foreground bg-transparent`:`rounded-md bg-main shadow-xl border border-main`),ne=b();return(e,t)=>(F(),h(`nav`,{ref_key:`root`,ref:ee,class:`flex flex-col`},[f(`div`,{class:A([`flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2`,te.value]),onMouseleave:E},[p(a)?N(`v-if`,!0):(F(),k(G,{key:0,title:p(w)?`Close fullscreen`:`Enter fullscreen`,onClick:p(T)},{default:s(()=>[p(w)?(F(),h(`div`,oo)):(F(),h(`div`,so))]),_:1},8,[`title`,`onClick`])),c(G,{disabled:!p(i),title:`Go to previous slide`,onClick:p(d)},{default:s(()=>[...t[6]||=[f(`div`,{class:`i-carbon:arrow-left`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),c(G,{disabled:!p(r),title:`Go to next slide`,onClick:p(u)},{default:s(()=>[...t[7]||=[f(`div`,{class:`i-carbon:arrow-right`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),p(a)?N(`v-if`,!0):(F(),k(G,{key:1,title:`Show slide overview`,onClick:t[0]||=e=>p(ue)()},{default:s(()=>[...t[8]||=[f(`div`,{class:`i-carbon:apps`},null,-1)]]),_:1})),p(et)?N(`v-if`,!0):(F(),k(G,{key:2,title:p(it)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[1]||=e=>p(nt)()},{default:s(()=>[p(it)?(F(),h(`div`,co)):(F(),h(`div`,lo))]),_:1},8,[`title`])),c(ct),p(a)?N(`v-if`,!0):(F(),h(O,{key:3},[!p(o)&&!p(C)&&ne.value?(F(),h(O,{key:0},[c(p(ne)),c(ct)],64)):N(`v-if`,!0),p(o)?(F(),k(G,{key:1,title:p(xe)===`laser`?p(fe)?`Disable laser pointer`:`Enable laser pointer`:p(fe)?`Hide presenter cursor`:`Show presenter cursor`,active:p(fe),onClick:t[2]||=e=>p(de)()},{default:s(()=>[p(xe)===`laser`?(F(),h(O,{key:0},[p(fe)?(F(),h(`div`,uo)):(F(),h(`div`,fo))],64)):(F(),h(O,{key:1},[p(fe)?(F(),h(`div`,po)):(F(),h(`div`,mo))],64))]),_:1},8,[`title`,`active`])):N(`v-if`,!0),!p(H).drawings.presenterOnly||p(o)?(F(),k(G,{key:2,class:`relative`,title:p(S)?`Hide drawing toolbar`:`Show drawing toolbar`,active:p(S),onClick:t[3]||=e=>S.value=!p(S)},{default:s(()=>[t[9]||=f(`div`,{class:`i-carbon:pen`},null,-1),p(S)?(F(),h(`div`,{key:0,class:`absolute left-1 right-1 bottom-0 h-0.7 rounded-full`,style:g({background:p(y).color})},null,4)):N(`v-if`,!0)]),_:1},8,[`title`,`active`])):N(`v-if`,!0),c(ct),p(o)?(F(),k(G,{key:3,title:`Play Mode`,onClick:p(v)},{default:s(()=>[...t[10]||=[f(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0),p(l)?(F(),k(G,{key:4,title:`Presenter Mode`,onClick:p(_)},{default:s(()=>[...t[11]||=[f(`div`,{class:`i-carbon:user-speaker`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0),N(`v-if`,!0)],64)),(F(),h(O,{key:4},[p(H).download?(F(),k(G,{key:0,title:`Download as PDF`,onClick:p(tt)},{default:s(()=>[...t[13]||=[f(`div`,{class:`i-carbon:download`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0)],64)),N(`v-if`,!0),!p(o)&&p(H).info&&!p(a)?(F(),k(G,{key:6,title:`Show info`,onClick:t[5]||=e=>se.value=!p(se)},{default:s(()=>[...t[15]||=[f(`div`,{class:`i-carbon:information`},null,-1)]]),_:1})):N(`v-if`,!0),p(a)?N(`v-if`,!0):(F(),h(O,{key:7},[c(ct),p(o)?(F(),k(G,{key:0,title:`Toggle Presenter Layout`,class:`aspect-ratio-initial flex items-center`,onClick:p(pe)},{default:s(()=>[t[16]||=f(`div`,{class:`i-carbon:template`},null,-1),ie(` `+M(p(Se)),1)]),_:1},8,[`onClick`])):N(`v-if`,!0),(F(),k(ao,{key:1})),c(ja,null,{button:s(({value:e})=>[c(G,{title:`More Options`,active:e},{default:s(()=>[t[17]||=f(`div`,{class:`i-carbon:settings-adjust`},null,-1),p(Ce)?(F(),h(`div`,ho)):N(`v-if`,!0)]),_:1},8,[`active`])]),menu:s(()=>[c(Xa)]),_:1})],64)),p(a)?N(`v-if`,!0):(F(),k(ct,{key:8})),f(`div`,go,[f(`span`,_o,M(p(n)),1),f(`span`,vo,` / `+M(p(m)),1)]),c(p(ka))],34)],512))}}),bo=new Set,xo=new Set,So=/\/$/;function Co(e){return e.startsWith(`http`)||e.startsWith(`//`)?e:`${`./`.replace(So,``)}${e.startsWith(`/`)?e:`/${e}`}`}var wo=2,To=new Map,Eo=D(0),Do=D(0),Oo=x(()=>Do.value===0?1:Eo.value/Do.value);x(()=>Oo.value>=1);function ko(e){let t=Co(e);if(bo.has(t)||xo.has(t))return;xo.add(t);let n=new Image;n.onload=()=>{xo.delete(t),bo.add(t),To.delete(t),Eo.value=bo.size},n.onerror=()=>{xo.delete(t);let n=To.get(t)??0;n<wo&&(To.set(t,n+1),setTimeout(ko,1e3*(n+1),e))},n.src=t}function Ao(e){let t=e.meta?.slide?.images;if(t?.length)for(let e of t)ko(e)}function jo(e,t,n,r){let i=H.preloadImages;if(i===!1)return;let a=typeof i==`object`&&i?.ahead||3;u(()=>{let e=r.value;if(!e?.length)return;let t=new Set;for(let n of e)for(let e of n.meta?.slide?.images??[])t.add(Co(e));Do.value=t.size}),u(()=>{let i=e.value,o=r.value;if(!i||!o?.length)return;Ao(i),Ao(t.value),Ao(n.value);let s=i.no-1;for(let e=1;e<=a;e++){let t=s+e;t<o.length&&Ao(o[t])}}),u(e=>{let t=r.value,n=setTimeout(()=>{if(t?.length)for(let e of t)Ao(e)},3e3);e(()=>clearTimeout(n))})}function Mo(){let e=He(),t=D(!1),n,r,i=typeof document<`u`&&`startViewTransition`in document;return e.beforeResolve((e,a)=>{let o=Ie(a.params.no)?.meta,s=Ie(e.params.no)?.meta,c=o?.slide?.no,l=s?.slide?.no;if((c!=null&&l!=null&&c!==l&&((c<l?o?.transition:s?.transition)??H.transition))!==`view-transition`){t.value=!1;return}if(!i){t.value=!1,console.warn(`View transition is not supported in your browser, fallback to normal transition.`);return}t.value=!0;let u=new Promise((e,t)=>{n=e,r=t}),d,f=new Promise(e=>d=e);return setTimeout(()=>{document.startViewTransition(()=>(d(),u))},50),f}),i&&e.afterEach(()=>{n?.(),r?.()}),t}var No=[`data-drag-id`],$=10,Po=10,Fo=`absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 `,Io=20,Lo=j({__name:`DragControl`,props:{data:{}},setup(e){let{dragId:n,zoom:r,autoHeight:i,x0:a,y0:o,width:s,height:c,rotate:l,isArrow:d}=e.data,m=ee(Ze,D(1)),_=x(()=>m.value*r.value),{left:v,top:y}=at(),b=d?-1/0:40,S=x(()=>l.value*Math.PI/180),C=x(()=>Math.sin(S.value)),w=x(()=>Math.cos(S.value)),T=x(()=>s.value*w.value+c.value*C.value),E=x(()=>s.value*C.value+c.value*w.value),te=x(()=>a.value-T.value/2),ne=x(()=>o.value-E.value/2),re=x(()=>a.value+T.value/2),k=x(()=>o.value+E.value/2),j=x(()=>d&&s.value<0),ie=x(()=>d&&c.value<0),M=null;function ae(e){if(e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=e.target.getBoundingClientRect(),n=s.value*w.value-c.value*C.value,r=s.value*C.value+c.value*w.value,i=s.value*w.value+c.value*C.value,u=-s.value*C.value+c.value*w.value;M={x0:a.value,y0:o.value,width:s.value,height:c.value,rotate:l.value,dx0:e.clientX-(t.left+t.right)/2,dy0:e.clientY-(t.top+t.bottom)/2,ltx:a.value-n/2,lty:o.value-r/2,rtx:a.value+i/2,rty:o.value-u/2,lbx:a.value-i/2,lby:o.value+u/2,rbx:a.value+n/2,rby:o.value+r/2},e.currentTarget.setPointerCapture(e.pointerId)}function oe(e){if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value,n=(e.clientY-y.value-M.dy0)/_.value;a.value=Oe(t,-T.value/2+Po,me.value+T.value/2-Po),o.value=Oe(n,-E.value/2+Po,ye.value+E.value/2-Po)}function I(e){M&&=(e.preventDefault(),e.stopPropagation(),null)}function se(e,t){return{onPointerdown:ae,onPointermove:n=>{if(!M||n.buttons!==1)return;n.preventDefault(),n.stopPropagation();let r=(n.clientX-v.value)/_.value,i=(n.clientY-y.value)/_.value,{ltx:l,lty:u,rtx:d,rty:f,lbx:p,lby:m,rbx:h,rby:g}=M,x=M.width/M.height,S=Math.max(b,b*x);function T(e,t){if(n.shiftKey){let n=Math.max(e,t*x,S);return{w:n,h:n/x}}return{w:Math.max(e,b),h:Math.max(t,b)}}if(e){if(t){let{w:e,h:t}=T((h-r)*w.value+(g-i)*C.value,-(h-r)*C.value+(g-i)*w.value);r=h-e*w.value+t*C.value,i=g-e*C.value-t*w.value}else{let{w:e,h:t}=T((d-r)*w.value-(i-f)*C.value,(d-r)*C.value+(i-f)*w.value);r=d-e*w.value-t*C.value,i=f-e*C.value+t*w.value}}else if(t){let{w:e,h:t}=T((r-p)*w.value-(m-i)*C.value,(r-p)*C.value+(m-i)*w.value);r=p+e*w.value+t*C.value,i=m+e*C.value-t*w.value}else{let{w:e,h:t}=T((r-l)*w.value+(i-u)*C.value,-(r-l)*C.value+(i-u)*w.value);r=l+e*w.value-t*C.value,i=u+e*C.value+t*w.value}e?t?(a.value=(r+h)/2,o.value=(i+g)/2,s.value=(h-r)*w.value+(g-i)*C.value,c.value=-(h-r)*C.value+(g-i)*w.value):(a.value=(r+d)/2,o.value=(i+f)/2,s.value=(d-r)*w.value-(i-f)*C.value,c.value=(d-r)*C.value+(i-f)*w.value):t?(a.value=(r+p)/2,o.value=(i+m)/2,s.value=(r-p)*w.value-(m-i)*C.value,c.value=(r-p)*C.value+(m-i)*w.value):(a.value=(r+l)/2,o.value=(i+u)/2,s.value=(r-l)*w.value+(i-u)*C.value,c.value=-(r-l)*C.value+(i-u)*w.value)},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:e===j.value?void 0:`0`,right:e===j.value?`0`:void 0,top:t===ie.value?void 0:`0`,bottom:t===ie.value?`0`:void 0,cursor:d?`move`:+e+ +t==1?`nesw-resize`:`nwse-resize`,borderRadius:d?`50%`:void 0},class:Fo}}function L(e){return{onPointerdown:ae,onPointermove:t=>{if(!M||t.buttons!==1)return;t.preventDefault(),t.stopPropagation();let n=(t.clientX-v.value)/_.value,r=(t.clientY-y.value)/_.value,{ltx:i,lty:l,rtx:u,rty:d,lbx:f,lby:p,rbx:m,rby:h}=M;if(e===`l`){let e=(u+m)/2,t=(d+h)/2;s.value=Math.max((e-n)*w.value+(t-r)*C.value,b),a.value=e-s.value*w.value/2,o.value=t-s.value*C.value/2}else if(e===`r`){let e=(i+f)/2,t=(l+p)/2;s.value=Math.max((n-e)*w.value+(r-t)*C.value,b),a.value=e+s.value*w.value/2,o.value=t+s.value*C.value/2}else if(e===`t`){let e=(f+m)/2,t=(p+h)/2;c.value=Math.max((t-r)*w.value-(e-n)*C.value,b),a.value=e+c.value*C.value/2,o.value=t-c.value*w.value/2}else if(e===`b`){let e=(i+u)/2,t=(l+d)/2;c.value=Math.max((r-t)*w.value-(n-e)*C.value,b),a.value=e-c.value*C.value/2,o.value=t+c.value*w.value/2}},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:e===`l`?`0`:e===`r`?`100%`:`50%`,top:e===`t`?`0`:e===`b`?`100%`:`50%`,cursor:`lr`.includes(e)?`ew-resize`:`ns-resize`,borderRadius:`50%`},class:Fo}}function ce(){return{onPointerdown:ae,onPointermove:e=>{if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value-$/4,n=(e.clientY-y.value-M.dy0)/_.value-$/4,r=Math.atan2(n-o.value,t-a.value)*180/Math.PI+90;for(let e of[0,90,180,270,360])if(Math.abs(r-e)<5){r=e%360;break}l.value=r},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:`50%`,top:`-20px`,cursor:`grab`,borderRadius:`50%`},class:Fo}}let R={immediate:!1,immediateCallback:!1},le=ze(()=>{re.value<=Po||a.value--},Io,R),ue=ze(()=>{te.value>=me.value-Po||a.value++},Io,R),de=ze(()=>{k.value<=Po||o.value--},Io,R),fe=ze(()=>{ne.value>=ye.value-Po||o.value++},Io,R);return u(()=>{function e(e,t){Fe[e].value?t.resume():t.pause()}e(`left`,le),e(`right`,ue),e(`up`,de),e(`down`,fe)}),(e,u)=>Number.isFinite(p(a))?(F(),h(`div`,{key:0,id:`drag-control-container`,"data-drag-id":p(n),style:g({position:`absolute`,zIndex:100,left:`${p(r)*(p(a)-Math.abs(p(s))/2)}px`,top:`${p(r)*(p(o)-Math.abs(p(c))/2)}px`,width:`${p(r)*Math.abs(p(s))}px`,height:`${p(r)*Math.abs(p(c))}px`,transformOrigin:`center center`,transform:`rotate(${p(l)}deg)`}),onPointerdown:ae,onPointermove:oe,onPointerup:I},[f(`div`,{class:A([`absolute inset-0 z-nav dark:b-gray-400`,p(d)?``:`b b-dark`])},[p(i)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(se(!0,!0))),null,16),f(`div`,P(t(se(!1,!1))),null,16),p(d)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(se(!0,!1))),null,16),f(`div`,P(t(se(!1,!0))),null,16)],64))],64)),p(d)?N(`v-if`,!0):(F(),h(O,{key:1},[f(`div`,P(t(L(`l`))),null,16),f(`div`,P(t(L(`r`))),null,16),p(i)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(L(`t`))),null,16),f(`div`,P(t(L(`b`))),null,16)],64)),f(`div`,P(t(ce())),null,16),f(`div`,{class:`absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400`,style:g({left:`calc(50% - 1px)`,height:p(i)?`14px`:`10px`})},null,4)],64))],2)],44,No)):N(`v-if`,!0)}}),Ro=Le(j({__name:`SlidesShow`,props:{renderContext:{}},setup(t){let{currentSlideRoute:r,currentTransition:i,getPrimaryClicks:a,prevRoute:d,nextRoute:f,slides:m,isPrintMode:g,isPrintWithClicks:_,clicksDirection:v,printRange:y}=V();function S(e){e.meta.preload!==!1&&(e.meta.__preloaded=!0,e.load())}u(()=>{S(r.value),S(d.value),S(f.value)}),u(e=>{let t=m.value,n=setTimeout(()=>{t.forEach(S)},3e3);e(()=>clearTimeout(n))}),jo(r,d,f,m);let w=Mo(),T=b();Ae(()=>import(`./DrawingLayer-DUTzsQ-q.js`).then(e=>T.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);let ee=x(()=>g.value?y.value.map(e=>m.value[e-1]):m.value.filter(e=>e.meta?.__preloaded||e===r.value));function E(){ke.value=!0,C()}return(u,d)=>(F(),h(O,null,[N(` Global Bottom `),c(p(dt)),N(` Slides `),(F(),k(n(p(w)&&!p(g)&&!p(ke)&&!p(Me)?`div`:ne),o(p(ke)||p(Me)||p(g)?{}:p(i),{id:`slideshow`,tag:`div`,class:{"slidev-nav-go-forward":p(v)>0,"slidev-nav-go-backward":p(v)<0},onAfterLeave:E}),{default:s(()=>[(F(!0),h(O,null,l(ee.value,n=>e((F(),k(mt,{key:n.no,"clicks-context":p(g)&&!p(_)?p(ce)(n,p(Qe)):p(a)(n),route:n,"render-context":t.renderContext},null,8,[`clicks-context`,`route`,`render-context`])),[[re,n===p(r)]])),128))]),_:1},16,[`class`])),p(De)?(F(),k(Lo,{key:0,data:p(De)},null,8,[`data`])):N(`v-if`,!0),N(` Global Top `),c(p(pt)),T.value?(F(),k(p(T),{key:1})):N(`v-if`,!0)],64))}}),[[`__scopeId`,`data-v-835d2635`]]),zo=Object.assign({}),Bo=Object.assign({}),Vo=Object.assign({}),Ho=[Object.values(zo)[0],Object.values(Bo)[0],Object.values(Vo)[0]].filter(Boolean);function Uo(){let{go:e,goFirst:t,goLast:n,next:r,nextSlide:i,prev:a,prevSlide:o}=V(),{drawingEnabled:s}=st(),{escape:c,space:l,shift:u,left:d,right:f,up:p,down:m,enter:h,d:g,g:_,o:v,"`":y}=Fe,b={next:r,prev:a,nextSlide:i,prevSlide:o,go:e,goFirst:t,goLast:n,downloadPDF:tt,toggleDark:nt,toggleOverview:ue,toggleDrawing:()=>s.value=!s.value,escapeOverview:()=>I.value=!1,showGotoDialog:()=>z.value=!z.value},x=W(U(I),U(De)),S=[{name:`next_space`,key:W(l,U(u)),fn:r,autoRepeat:!0},{name:`prev_space`,key:W(l,u),fn:a,autoRepeat:!0},{name:`next_right`,key:W(f,U(u),x),fn:r,autoRepeat:!0},{name:`prev_left`,key:W(d,U(u),x),fn:a,autoRepeat:!0},{name:`next_page_key`,key:`pageDown`,fn:r,autoRepeat:!0},{name:`prev_page_key`,key:`pageUp`,fn:a,autoRepeat:!0},{name:`next_down`,key:W(m,x),fn:i,autoRepeat:!0},{name:`prev_up`,key:W(p,x),fn:o,autoRepeat:!0},{name:`next_shift`,key:W(f,u),fn:i,autoRepeat:!0},{name:`prev_shift`,key:W(d,u),fn:o,autoRepeat:!0},{name:`toggle_dark`,key:W(g,U(s)),fn:nt},{name:`toggle_overview`,key:W(qe(v,y),U(s)),fn:ue},{name:`hide_overview`,key:W(c,U(s)),fn:()=>I.value=!1},{name:`goto`,key:W(_,U(s)),fn:()=>z.value=!z.value},{name:`next_overview`,key:W(f,I),fn:ha},{name:`prev_overview`,key:W(d,I),fn:ma},{name:`up_overview`,key:W(p,I),fn:ga},{name:`down_overview`,key:W(m,I),fn:_a},{name:`goto_from_overview`,key:W(h,I),fn:()=>{e(Z.value),I.value=!1}}],C=new Set(S.map(e=>e.name));for(let e of Ho)S=e(b,S);if(S.filter(e=>e.name&&C.has(e.name)).length===0){let e=[`========== WARNING ==========`,`defineShortcutsSetup did not return any of the base shortcuts.`,`See https://sli.dev/custom/config-shortcuts.html for migration.`,`If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").`].join(`
3
+
4
+ `);alert(e),console.warn(e)}return S}function Wo(){let{isPrintMode:e}=V(),t=W(U(Te),U(be),U(e),ge,U(oe)),n=Uo();new Map(n.map(e=>[e.key,e])).forEach(e=>{e.fn&&r(e.key,e.fn,e.autoRepeat)}),i(`f`,()=>Ne.toggle());function r(e,n,r=!1){typeof e==`string`&&(e=Fe[e]);let i=W(e,t),a=0,o,s=()=>{if(clearTimeout(o),!i.value){a=0;return}r&&(o=setTimeout(s,Math.max(1e3-a*250,150)),a++),n()};return d(i,s,{flush:`sync`})}function i(e,n){return Je(e,e=>{t.value&&(e.repeat||n())})}}export{Oa as a,ua as c,gt as d,ht as f,Ja as i,Nt as l,Ro as n,Ea as o,yo as r,Ta as s,Wo as t,Et as u};
lecture-06/assets/syncState-BrWO1mSt.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{Y as e,lt as t,pt as n,st as r}from"./modules/shiki-BFOesOFp.js";function i(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substr(2,10)}function a(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1})}var o=r([{channels:[],enabled:!0,init(e,t,r,i=!1){let a;if(!i)a=new BroadcastChannel(e),a.addEventListener(`message`,e=>t(e.data)),this.channels.push(a);else if(i){this.listener=function(n){n&&n.key===e&&n.newValue&&t(JSON.parse(n.newValue))},window.addEventListener(`storage`,this.listener);let n=window.localStorage.getItem(e);n&&t(JSON.parse(n))}return(t,r=!1)=>{this.enabled&&(!i&&a&&!r&&a.postMessage(n(t)),i&&!r&&window.localStorage.setItem(e,JSON.stringify(t)))}},disable(){this.enabled=!1,this.channels.forEach(e=>e.close()),this.listener&&window.removeEventListener(`storage`,this.listener)}}]),s=new Map,c=t({});function l(t,i,a=!1){let l=[],u=!1,d=!1,f,p,m=r(i);function h(e){l.push(e)}function g(e,t){m[e]!==t&&(clearTimeout(f),u=!0,m[e]=t,f=setTimeout(()=>u=!1,0))}function _(e){u||(clearTimeout(p),d=!0,Object.entries(e).forEach(([e,t])=>{m[e]=t}),p=setTimeout(()=>d=!1,0))}function v(t){s.set(t,{onUpdate:_,persist:a,state:m}),c.value[t]=o.map(e=>e.init(t,_,m,a)).filter(e=>!!e);function r(){c.value[t].forEach(e=>e?.(n(m),d)),u||l.forEach(e=>e(m))}e(m,r,{deep:!0})}return{init:v,onPatch:h,onUpdate:_,patch:g,state:m}}export{a as n,i as r,l as t};
lecture-06/assets/useAttention-Blk0c2BZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var e=[`det`,`water`,`money`,`thing`],t={the:[1,0,0,0],river:[0,2,0,1],money:[0,0,2,1],bank:[0,0,0,2]},n=[[0,0],[0,0],[0,0],[.5,.5]],r=[[0,0],[1,0],[0,1],[0,0]],i=[[.2,.2],[1,0],[0,1],[.3,.3]],a={river:[`the`,`river`,`bank`],money:[`the`,`money`,`bank`]},o=[`the`,`cat`,`ate`,`the`,`fish`,`because`,`it`,`was`,`hungry`];function s(e,t){let n=t[0].map(()=>0);return t.forEach((t,r)=>t.forEach((t,i)=>{n[i]+=(e[r]??0)*t})),n}function c(e,t){return e.reduce((e,n,r)=>e+n*(t[r]??0),0)}function l(e,t){return e.map(e=>e*t)}function u(e){let t=Math.max(0,...e.map(e=>e.length));return Array.from({length:t},(t,n)=>e.reduce((e,t)=>e+(t[n]??0),0))}function d(e){let t=e.filter(e=>e!==null);if(t.length===0)return e.map(()=>0);let n=Math.max(...t),r=e.map(e=>e===null?0:Math.exp(e-n)),i=r.reduce((e,t)=>e+t,0);return r.map(e=>e/i)}function f(e,a=!1){let o=e.map(e=>t[e]??t.the),f=o.map(e=>s(e,n)),p=o.map(e=>s(e,r)),m=o.map(e=>s(e,i)),h=r[0].length,g=1/Math.sqrt(h);return{words:e,x:o,q:f,k:p,v:m,rows:f.map((t,n)=>{let r=p.map(e=>c(t,e)),i=r.map((e,t)=>a&&t>n?null:e*g),o=d(i),s=o.map((e,t)=>l(m[t],e));return{i:n,word:e[n],q:t,raw:r,scaled:i,weights:o,terms:s,out:u(s)}}),dk:h,scale:g,causal:a}}var p=[{name:`head 1`,reads:`the previous word`,weights:[[1,0,0,0,0,0,0,0,0],[.82,.18,0,0,0,0,0,0,0],[.09,.8,.11,0,0,0,0,0,0],[.04,.08,.78,.1,0,0,0,0,0],[.03,.05,.06,.8,.06,0,0,0,0],[.02,.04,.05,.06,.78,.05,0,0,0],[.02,.03,.04,.04,.06,.76,.05,0,0],[.02,.03,.03,.03,.04,.06,.75,.04,0],[.01,.02,.03,.03,.04,.04,.06,.73,.04]]},{name:`head 2`,reads:`the nearest noun`,weights:[[1,0,0,0,0,0,0,0,0],[.14,.86,0,0,0,0,0,0,0],[.05,.84,.11,0,0,0,0,0,0],[.06,.1,.08,.76,0,0,0,0,0],[.03,.06,.05,.79,.07,0,0,0,0],[.03,.22,.09,.05,.56,.05,0,0,0],[.02,.31,.06,.03,.5,.04,.04,0,0],[.02,.28,.05,.03,.47,.04,.08,.03,0],[.02,.34,.05,.02,.41,.03,.09,.02,.02]]},{name:`head 3`,reads:`what a pronoun refers to`,weights:[[1,0,0,0,0,0,0,0,0],[.5,.5,0,0,0,0,0,0,0],[.33,.34,.33,0,0,0,0,0,0],[.25,.25,.25,.25,0,0,0,0,0],[.2,.2,.2,.2,.2,0,0,0,0],[.1,.24,.14,.08,.34,.1,0,0,0],[.02,.62,.03,.02,.24,.03,.04,0,0],[.03,.54,.04,.02,.26,.03,.05,.03,0],[.02,.58,.03,.02,.22,.03,.07,.01,.02]]},{name:`head 4`,reads:`almost nothing — it parks on token 1`,weights:[[1,0,0,0,0,0,0,0,0],[.93,.07,0,0,0,0,0,0,0],[.9,.05,.05,0,0,0,0,0,0],[.89,.04,.04,.03,0,0,0,0,0],[.88,.03,.03,.03,.03,0,0,0,0],[.87,.03,.03,.02,.03,.02,0,0,0],[.86,.03,.02,.02,.03,.02,.02,0,0],[.85,.03,.02,.02,.03,.02,.02,.01,0],[.84,.03,.02,.02,.03,.02,.02,.01,.01]]}];export{t as a,i as c,a as i,s as l,p as n,r as o,o as r,n as s,e as t,f as u};
lecture-06/assets/useConvolution-qO1u8ksh.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function e(e,t=2){let n=Number(e.toFixed(t));return Object.is(n,-0)?`0`:String(n)}export{e as t};
lecture-06/assets/useDrawings-BgI2o36O.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{N as e,Y as t,at as n,g as r,lt as i,st as a}from"./modules/shiki-BFOesOFp.js";import{g as o,t as s,tt as c}from"./useNav-BKmHNb0y.js";import{D as l,g as u}from"./modules/vue-Ymwlffw_.js";import{c as d,l as f,s as p}from"./index-Cpw8zVhj.js";var m=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}});function h(e,t){return e-t}function g(e){return e<0?-1:1}function _(e){return[Math.abs(e),g(e)]}function v(){let e=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}var y=2;function b(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,`defs`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`marker`),i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`fill`,t),r.setAttribute(`id`,e),r.setAttribute(`viewBox`,`0 -5 10 10`),r.setAttribute(`refX`,`5`),r.setAttribute(`refY`,`0`),r.setAttribute(`markerWidth`,`4`),r.setAttribute(`markerHeight`,`4`),r.setAttribute(`orient`,`auto`),i.setAttribute(`d`,`M0,-5L10,0L0,5`),r.appendChild(i),n.appendChild(r),n}function x(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function S(e,t,n){let r=t.x,i=t.y,a=n.x-r,o=n.y-i;if(a!==0||o!==0){let t=((e.x-r)*a+(e.y-i)*o)/(a*a+o*o);t>1?(r=n.x,i=n.y):t>0&&(r+=a*t,i+=o*t)}return a=e.x-r,o=e.y-i,a*a+o*o}function C(e,t){let n=e[0],r=[n],i;for(let a=1,o=e.length;a<o;a++)i=e[a],x(i,n)>t&&(r.push(i),n=i);return n!==i&&i&&r.push(i),r}function w(e,t,n,r,i){let a=r,o=0;for(let r=t+1;r<n;r++){let i=S(e[r],e[t],e[n]);i>a&&(o=r,a=i)}a>r&&(o-t>1&&w(e,t,o,r,i),i.push(e[o]),n-o>1&&w(e,o,n,r,i))}function T(e,t){let n=e.length-1,r=[e[0]];return w(e,0,n,t,r),r.push(e[n]),r}function E(e,t,n=!1){if(e.length<=2)return e;let r=t===void 0?1:t*t;return e=n?e:C(e,r),e=T(e,r),e}var D=class{constructor(e){this.drauu=e,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(e){}onUnselected(){}onStart(e){}onMove(e){return!1}onEnd(e){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(e){let t=this.drauu.el,n=this.drauu.options.cssZoom??1,r=this.drauu.options.coordinateScale??1,i=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){let t=this.drauu.el.getBoundingClientRect();return{x:(e.pageX/n-t.left+i.x)*r,y:(e.pageY/n-t.top+i.y)*r,pressure:e.pressure}}{let a=this.drauu.svgPoint;a.x=e.clientX/n+i.x,a.y=e.clientY/n+i.y;let o=a.matrixTransform(t.getScreenCTM()?.inverse());return{x:o.x*r,y:o.y*r,pressure:e.pressure}}}createElement(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,e),r=t?{...this.brush,...t}:this.brush;return n.setAttribute(`fill`,r.fill??`transparent`),n.setAttribute(`stroke`,r.color),n.setAttribute(`stroke-width`,r.size.toString()),n.setAttribute(`stroke-linecap`,`round`),r.dasharray&&n.setAttribute(`stroke-dasharray`,r.dasharray),n}attr(e,t){this.el.setAttribute(e,typeof t==`string`?t:t.toFixed(y))}_setEvent(e){this.event=e,this.point=this.getMousePosition(e)}_eventDown(e){return this._setEvent(e),this.start=this.point,this.onStart(this.point)}_eventMove(e){return this._setEvent(e),this.onMove(this.point)}_eventUp(e){return this._setEvent(e),this.onEnd(this.point)}},O=class e extends D{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement(`path`,{fill:`transparent`}),this.points=[e],this.brush.arrowEnd){this.arrowId=v();let e=b(this.arrowId,this.brush.color);this.el.appendChild(e)}return this.el}onMove(t){return this.el||this.onStart(t),this.points[this.points.length-1]!==t&&(this.points.push(t),this.count+=1),this.count>5&&(this.points=E(this.points,1,!0),this.count=0),this.attr(`d`,e.toSvgData(this.points)),!0}onEnd(){let t=this.el;if(this.el=null,!t)return!1;if(t.setAttribute(`d`,e.toSvgData(E(this.points,1,!0))),!t.getTotalLength()){let{x:e,y:n}=this.points[0],r=this.brush.size/2;t.setAttribute(`d`,`M ${e-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),t.setAttribute(`fill`,this.brush.color),t.setAttribute(`stroke-width`,`0`)}return!0}static line(e,t){let n=t.x-e.x,r=t.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(t,n,r,i){let a=n||t,o=r||t,s=e.line(a,o),c=s.angle+(i?Math.PI:0),l=s.length*.2;return{x:t.x+Math.cos(c)*l,y:t.y+Math.sin(c)*l}}static bezierCommand(t,n,r){let i=e.controlPoint(r[n-1],r[n-2],t),a=e.controlPoint(t,r[n-1],r[n+1],!0);return`C ${i.x.toFixed(y)},${i.y.toFixed(y)} ${a.x.toFixed(y)},${a.y.toFixed(y)} ${t.x.toFixed(y)},${t.y.toFixed(y)}`}static toSvgData(t){return t.reduce((t,n,r,i)=>r===0?`M ${n.x.toFixed(y)},${n.y.toFixed(y)}`:`${t} ${e.bezierCommand(n,r,i)}`,``)}},k=class extends D{onStart(e){return this.el=this.createElement(`ellipse`),this.attr(`cx`,e.x),this.attr(`cy`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=_(e.x-this.start.x),[r,i]=_(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`cx`,this.start.x),this.attr(`cy`,this.start.y),this.attr(`rx`,t),this.attr(`ry`,r);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(h),[o,s]=[this.start.y,this.start.y+r*i].sort(h);this.attr(`cx`,(e+a)/2),this.attr(`cy`,(o+s)/2),this.attr(`rx`,(a-e)/2),this.attr(`ry`,(s-o)/2)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}},A=class extends D{constructor(...e){super(...e),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(e){let t=(e,n)=>{if(e&&e.length)for(let r=0;r<e.length;r++){let i=e[r];if(i.getTotalLength){let e=i.getTotalLength();for(let t=0;t<this.pathSubFactor;t++){let r=i.getPointAtLength(e*t/this.pathSubFactor),a=i.getPointAtLength(e*(t+1)/this.pathSubFactor);this.pathFragments.push({x1:r.x,x2:a.x,y1:r.y,y2:a.y,segment:t,element:n||i})}}else i.children&&t(i.children,i)}};e&&t(e.children)}onUnselected(){this.pathFragments=[]}onStart(e){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=e.x,this.svgPointPrevious.y=e.y}onMove(e){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=e.x,this.svgPointCurrent.y=e.y;let t=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,t}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;let e=this._erased;return this._erased=[],{undo:()=>e.forEach(e=>this.drauu._restoreNode(e)),redo:()=>e.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let e=0;e<this.pathFragments.length;e++){let t=this.pathFragments[e];if(this.svgPointPrevious&&this.svgPointCurrent){let e={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(t,e)&&(this.drauu._removeNode(t.element),this._erased.push(t.element))}}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(e=>!this._erased.includes(e.element))),this._erased.length>0}lineLineIntersect(e,t){let n=e.x1,r=e.x2,i=t.x1,a=t.x2,o=e.y1,s=e.y2,c=t.y1,l=t.y2,u=(n-r)*(c-l)-(o-s)*(i-a),d=(n*s-o*r)*(i-a)-(n-r)*(i*l-c*a),f=(n*s-o*r)*(c-l)-(o-s)*(i*l-c*a),p=(e,t,n)=>e>=t&&e<=n||e>=n&&e<=t;if(u===0)return!1;{let e={x:d/u,y:f/u};return p(e.x,n,r)&&p(e.y,o,s)&&p(e.x,i,a)&&p(e.y,c,l)}}},j=class extends D{onStart(e){if(this.el=this.createElement(`line`,{fill:`transparent`}),this.attr(`x1`,e.x),this.attr(`y1`,e.y),this.attr(`x2`,e.x),this.attr(`y2`,e.y),this.brush.arrowEnd){let e=v(),t=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return t.append(b(e,this.brush.color)),t.append(this.el),this.attr(`marker-end`,`url(#${e})`),t}return this.el}onMove(e){if(!this.el)return!1;let{x:t,y:n}=e;if(this.shiftPressed){let r=e.x-this.start.x,i=e.y-this.start.y;if(i!==0){let e=r/i;e=Math.round(e),Math.abs(e)<=1?(t=this.start.x+i*e,n=this.start.y+i):(t=this.start.x+r,n=this.start.y)}}return this.altPressed?(this.attr(`x1`,this.start.x*2-t),this.attr(`y1`,this.start.y*2-n),this.attr(`x2`,t),this.attr(`y2`,n)):(this.attr(`x1`,this.start.x),this.attr(`y1`,this.start.y),this.attr(`x2`,t),this.attr(`y2`,n)),!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(e.getTotalLength()<5)return!1}catch{return!1}return!0}},M=class extends D{onStart(e){return this.el=this.createElement(`rect`),this.brush.cornerRadius&&(this.attr(`rx`,this.brush.cornerRadius),this.attr(`ry`,this.brush.cornerRadius)),this.attr(`x`,e.x),this.attr(`y`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=_(e.x-this.start.x),[r,i]=_(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`x`,this.start.x-t),this.attr(`y`,this.start.y-r),this.attr(`width`,t*2),this.attr(`height`,r*2);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(h),[o,s]=[this.start.y,this.start.y+r*i].sort(h);this.attr(`x`,e),this.attr(`y`,o),this.attr(`width`,a-e),this.attr(`height`,s-o)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}};function N(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function P(e){return[-e[0],-e[1]]}function F(e,t){return[e[0]+t[0],e[1]+t[1]]}function I(e,t){return[e[0]-t[0],e[1]-t[1]]}function L(e,t){return[e[0]*t,e[1]*t]}function R(e,t){return[e[0]/t,e[1]/t]}function z(e){return[e[1],-e[0]]}function B(e,t){return e[0]*t[0]+e[1]*t[1]}function V(e,t){return e[0]===t[0]&&e[1]===t[1]}function H(e){return Math.hypot(e[0],e[1])}function U(e){return e[0]*e[0]+e[1]*e[1]}function W(e,t){return U(I(e,t))}function G(e){return R(e,H(e))}function K(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function q(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function J(e,t,n){return F(e,L(I(t,e),n))}function Y(e,t,n){return F(e,L(t,n))}var{min:X,PI:Z}=Math,Q=.275,$=Z+1e-4;function ee(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=X(1,t.distance/n);r=X(1,e+(X(1,1-i)-e)*(i*Q))}return(e+r)/2},e[0].pressure),x=N(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,D=T,O=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:c,distance:l,runningLength:u}=e[t];if(t<e.length-1&&m-u<3)continue;if(i){if(a){let e=X(1,l/n),t=X(1,1-e);r=X(1,b+(t-b)*(e*Q))}x=N(n,i,r,o)}else x=n/2;S===void 0&&(S=x);let f=u<h?d(u/h):1,k=m-u<g?p((m-u)/g):1;x=Math.max(.01,x*Math.min(f,k));let A=(t<e.length-1?e[t+1]:e[t]).vector,j=t<e.length-1?B(c,A):1,M=B(c,C)<0&&!O,P=j!==null&&j<0;if(M||P){let e=L(z(C),x);for(let t=0;t<=1;t+=.07692307692307693)E=q(I(s,e),s,$*t),v.push(E),D=q(F(s,e),s,$*-t),y.push(D);w=E,T=D,P&&(O=!0);continue}if(O=!1,t===e.length-1){let e=L(z(c),x);v.push(I(s,e)),y.push(F(s,e));continue}let R=L(z(J(A,c,j)),x);E=I(s,R),(t<=1||W(w,E)>_)&&(v.push(E),w=E),D=F(s,R),(t<=1||W(T,D)>_)&&(y.push(D),T=D),b=r,C=c}let k=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):F(e[0].point,[1,1]),j=[],M=[];if(e.length===1){if(!(h||g)||l){let e=Y(k,G(z(I(k,A))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(q(e,k,$*2*r));return t}}else{if(!(h||g&&e.length===1)){if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=q(y[0],k,$*t);j.push(e)}else{let e=I(v[0],y[0]),t=L(e,.5),n=L(e,.51);j.push(I(k,t),I(k,n),F(k,n),F(k,t))}}let t=z(P(e[e.length-1].vector));if(g||h&&e.length===1)M.push(A);else if(f){let e=Y(A,t,x);for(let t=1/29,n=t;n<1;n+=t)M.push(q(e,A,$*3*n))}else M.push(F(A,L(t,x)),F(A,L(t,x*.99)),I(A,L(t,x*.99)),I(A,L(t,x)))}return v.concat(M,y.reverse(),j)}function te(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(J(o[0],e,t/4))}o.length===1&&(o=[...o,[...F(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e<o.length;e++){let t=i&&e===d?o[e].slice(0,2):J(u.point,o[e],a);if(V(u.point,t))continue;let n=K(t,u.point);if(l+=n,e<d&&!c){if(l<r)continue;c=!0}u={point:t,pressure:o[e][2]>=0?o[e][2]:.5,vector:G(I(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function ne(e,t={}){return ee(te(e,t),t)}var re=class e extends D{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),this.points=[e],this.attr(`fill`,this.brush.color),this.attr(`d`,this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr(`d`,this.getSvgData(this.points)),!0}onEnd(){let e=this.el;return this.el=null,!!e}getSvgData(t){return e.getSvgData(t,this.brush)}static getSvgData(e,t){let n=ne(e,{size:t.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...t.stylusOptions});if(!n.length)return``;let r=n.reduce((e,[t,n],r,i)=>{let[a,o]=i[(r+1)%i.length];return e.push(t,n,(t+a)/2,(n+o)/2),e},[`M`,...n[0],`Q`]);return r.push(`Z`),r.map(e=>typeof e==`number`?e.toFixed(2):e).join(` `)}};function ie(e){return{draw:new O(e),stylus:new re(e),line:new j(e),rectangle:new M(e),ellipse:new k(e),eraseLine:new A(e)}}var ae=class{constructor(e={}){this.options=e,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=m(),this._originalPointerId=null,this._models=ie(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:`black`,size:3,mode:`stylus`}),e.el&&this.mount(e.el,e.eventTarget,e.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||`stylus`}set mode(e){this._models[this.mode].onUnselected(),this.options.brush.mode=e,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(e){this.options.brush=e}resolveSelector(e){return typeof e==`string`?document.querySelector(e):e||null}mount(e,t,n=window){if(this.el)throw Error(`[drauu] already mounted, unmount previous target first`);if(this.el=this.resolveSelector(e),!this.el)throw Error(`[drauu] target element not found`);if(this.el.tagName.toLocaleLowerCase()!==`svg`)throw Error(`[drauu] can only mount to a SVG element`);if(!this.el.createSVGPoint)throw Error(`[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')`);this.svgPoint=this.el.createSVGPoint();let r=this.resolveSelector(t)||this.el,i=this.eventStart.bind(this),a=this.eventMove.bind(this),o=this.eventEnd.bind(this),s=this.eventKeyboard.bind(this),c=this.touchMove.bind(this);r.addEventListener(`pointerdown`,i,{passive:!1}),n.addEventListener(`pointermove`,a,{passive:!1}),n.addEventListener(`pointerup`,o,{passive:!1}),n.addEventListener(`pointercancel`,o,{passive:!1}),n.addEventListener(`keydown`,s,!1),n.addEventListener(`keyup`,s,!1),n.addEventListener(`touchmove`,c,{passive:!1}),this._disposables.push(()=>{r.removeEventListener(`pointerdown`,i),n.removeEventListener(`pointermove`,a),n.removeEventListener(`pointerup`,o),n.removeEventListener(`pointercancel`,o),n.removeEventListener(`keydown`,s,!1),n.removeEventListener(`keyup`,s,!1),n.removeEventListener(`touchmove`,c)}),this._emitter.emit(`mounted`)}unmount(){this._disposables.forEach(e=>e()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit(`unmounted`)}on(e,t){return this._emitter.on(e,t)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit(`changed`),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit(`changed`),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(e){!this.acceptsInput(e)||!this.drawing||this.model._eventMove(e)&&(e.stopPropagation(),e.preventDefault(),this._emitter.emit(`changed`))}eventStart(e){this.acceptsInput(e)&&(e.stopPropagation(),e.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=e.pointerId,this._emitter.emit(`start`),this._currentNode=this.model._eventDown(e),this._currentNode&&this.mode!==`eraseLine`&&this.el.appendChild(this._currentNode),this._emitter.emit(`changed`))}eventEnd(e){if(!this.acceptsInput(e)||!this.drawing)return;let t=this.model._eventUp(e);if(!t)this.cancel();else if(t===!0){let e=this._currentNode;e&&(this._appendNode(e),this.commit({undo:()=>this._removeNode(e),redo:()=>this._restoreNode(e)}))}else this.commit(t);this.drawing=!1,this._emitter.emit(`end`),this._emitter.emit(`changed`),this._originalPointerId=null}touchMove(e){Array.from(e.touches).some(e=>e.touchType===`stylus`&&e.identifier===this._originalPointerId)&&e.preventDefault()}acceptsInput(e){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(e.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==e.pointerId)}eventKeyboard(e){(this.shiftPressed!==e.shiftKey||this.altPressed!==e.altKey)&&(this.shiftPressed=e.shiftKey,this.altPressed=e.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit(`changed`))}commit(e){this._opStack.length=this._opIndex,this._opStack.push(e),this._opIndex++;let t=this._currentNode;this._currentNode=void 0,this._emitter.emit(`committed`,t)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML=``,this._emitter.emit(`changed`)}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit(`canceled`))}dump(){return this.el.innerHTML}load(e){this.clear(),this.el.innerHTML=e}_appendNode(e){let t=this._elements.at(-1);t?t.after(e):this.el.append(e);let n=this._elements.push(e)-1;e.dataset.drauu_index=n.toString()}_removeNode(e){e.remove(),this._elements[+e.dataset.drauu_index]=null}_restoreNode(e){let t=+e.dataset.drauu_index;this._elements[t]=e;for(let n=t-1;n>=0;n--){let t=this._elements[n];if(t){t.after(e);return}}this.el.prepend(e)}};function oe(e){return new ae(e)}var se=l(()=>{let{currentSlideNo:l,isPresenter:m}=s(),h=[`#ff595e`,`#ffca3a`,`#8ac926`,`#1982c4`,`#6a4c93`,`#ffffff`,`#000000`],g=u(`slidev-drawing-enabled`,!1),_=u(`slidev-drawing-pinned`,!1),v=u(`slidev-drawing-brush`,{color:h[0],size:4,mode:`stylus`}),y=i(!1),b=i(!1),x=i(!1),S=i(!1),C=i(`stylus`),w=r(()=>c.drawings.syncAll||m.value),T=!1,E=r({get(){return C.value},set(e){C.value=e,e===`arrow`?(O.mode=`line`,v.value.arrowEnd=!0):(O.mode=e,v.value.arrowEnd=!1)}}),D=a({brush:v,acceptsInputTypes:r(()=>g.value&&(!c.drawings.presenterOnly||m.value)?void 0:[`pen`]),coordinateTransform:!1}),O=n(oe(D));function k(){O.clear(),w.value&&f(l.value,``)}function A(){x.value=O.canRedo(),b.value=O.canUndo(),S.value=!!O.el?.children.length}function j(e){T=!0;let t=p[e||l.value];t==null?O.clear():O.load(t),A(),T=!1}return O.on(`changed`,()=>{if(A(),!T){let e=O.dump(),t=l.value;(p[t]||``)!==e&&w.value&&f(t,O.dump())}}),d(e=>{T=!0,e[l.value]!=null&&O.load(e[l.value]||``),T=!1,A()}),e(()=>{t(l,()=>{O.mounted&&j()},{immediate:!0})}),O.on(`start`,()=>y.value=!0),O.on(`end`,()=>y.value=!1),window.addEventListener(`keydown`,e=>{if(!g.value||o.value)return;let t=!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey,n=!0;e.code===`KeyZ`&&(e.ctrlKey||e.metaKey)?e.shiftKey?O.redo():O.undo():e.code===`Escape`?g.value=!1:e.code===`KeyL`&&t?E.value=`line`:e.code===`KeyA`&&t?E.value=`arrow`:e.code===`KeyS`&&t?E.value=`stylus`:e.code===`KeyR`&&t?E.value=`rectangle`:e.code===`KeyE`&&t?E.value=`ellipse`:e.code===`KeyC`&&t?k():e.code.startsWith(`Digit`)&&t&&+e.code[5]<=h.length?v.value.color=h[e.code[5]-1]:n=!1,n&&(e.preventDefault(),e.stopPropagation())},!1),{brush:v,brushColors:h,canClear:S,canRedo:x,canUndo:b,clear:k,drauu:O,drauuOptions:D,drawingEnabled:g,drawingMode:E,drawingPinned:_,drawingState:p,isDrawing:y,loadCanvas:j}});export{se as t};
lecture-06/assets/useNav-BKmHNb0y.js ADDED
The diff for this file is too large to render. See raw diff
 
lecture-06/class/404.html ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Transformers (class) - Slidev</title>
7
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600&family=Source+Serif+4:wght@200;400;600&family=JetBrains+Mono:wght@200;400;600&display=swap" type="text/css">
8
+ <link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
9
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
10
+ <meta property="slidev:version" content="52.19.0">
11
+ <meta name="description" content="&quot;PGR207 Deep Learning 2026 — Lecture 06&quot;">
12
+ <meta name="author" content="&quot;Vajira Thambawita&quot;">
13
+ <meta property="og:title" content="Transformers (class) - Slidev">
14
+ <meta property="og:description" content="&quot;PGR207 Deep Learning 2026 — Lecture 06&quot;"> <script type="module" crossorigin src="./assets/index-BSNgeX_T.js"></script>
15
+ <link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-hePW80VL.js">
16
+ <link rel="modulepreload" crossorigin href="./assets/modules/shiki-BFOesOFp.js">
17
+ <link rel="modulepreload" crossorigin href="./assets/_plugin-vue_export-helper-BDNMzG2s.js">
18
+ <link rel="modulepreload" crossorigin href="./assets/modules/vue-Ymwlffw_.js">
19
+ <link rel="modulepreload" crossorigin href="./assets/slidev/context-DrkI8qiD.js">
20
+ <link rel="modulepreload" crossorigin href="./assets/useNav-BF8Ehznl.js">
21
+ <link rel="modulepreload" crossorigin href="./assets/syncState-BrWO1mSt.js">
22
+ <link rel="stylesheet" crossorigin href="./assets/modules/shiki-BrmBd2_v.css">
23
+ <link rel="stylesheet" crossorigin href="./assets/index-DkUnP7jn.css">
24
+ </head>
25
+ <body>
26
+ <div id="app"></div>
27
+ <div id="mermaid-rendering-container"></div>
28
+
29
+ </body>
30
+ </html>
lecture-06/class/_redirects ADDED
@@ -0,0 +1 @@
 
 
1
+ ./* ./index.html 200
lecture-06/class/assets/404-bkedjYjP.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .page-link[data-v-b584852f]{background-color:#9ca3af1a;border-radius:.25rem;padding:.5rem 1rem}.page-link[data-v-b584852f]:hover{background-color:#9ca3af33}
lecture-06/class/assets/AttentionMatrix-BhYJvquu.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .dl-amx[data-v-6a6f8a8a]{flex-direction:column;align-items:center;width:100%;display:flex}.dl-amx__axes[data-v-6a6f8a8a]{letter-spacing:.08em;text-transform:uppercase;width:100%;max-width:30rem;color:var(--dl-muted);justify-content:space-between;margin-bottom:.25rem;font-size:.68rem;display:flex}.dl-amx__grid[data-v-6a6f8a8a]{border-collapse:separate;border-spacing:2px;font-variant-numeric:tabular-nums;width:auto}.dl-amx__grid .dl-amx__colhead[data-v-6a6f8a8a],.dl-amx__grid .dl-amx__rowhead[data-v-6a6f8a8a]{color:var(--dl-heading);white-space:nowrap;text-align:center;padding:.1rem .3rem;font-size:.78rem;font-weight:600}.dl-amx__grid .dl-amx__rowhead[data-v-6a6f8a8a]{text-align:right}.dl-amx.is-mask .dl-amx__colhead[data-v-6a6f8a8a],.dl-amx.is-mask .dl-amx__rowhead[data-v-6a6f8a8a]{font-size:.68rem}.dl-amx__grid .dl-amx__cell[data-v-6a6f8a8a]{border:1px solid var(--dl-border);text-align:center;border-radius:3px;width:3.5rem;height:2rem;position:relative;overflow:hidden}.dl-amx.is-mask .dl-amx__grid .dl-amx__cell[data-v-6a6f8a8a]{width:2.2rem;height:1.6rem}.dl-amx__grid th[data-v-6a6f8a8a],.dl-amx__grid td[data-v-6a6f8a8a]{box-sizing:border-box;background:0 0;border:none;padding:0}.dl-amx__fill[data-v-6a6f8a8a]{background:var(--dl-accent);position:absolute;inset:0}.dl-amx__text[data-v-6a6f8a8a]{color:var(--dl-heading);font-size:.8rem;position:relative}.dl-amx__text.is-strong[data-v-6a6f8a8a]{font-weight:700}.dl-amx__grid .dl-amx__cell.is-blocked[data-v-6a6f8a8a]{border-style:dashed}.dl-amx__cell.is-blocked .dl-amx__text[data-v-6a6f8a8a]{color:var(--dl-muted)}.dl-amx__grid .dl-amx__sum[data-v-6a6f8a8a]{color:var(--dl-muted);white-space:nowrap;padding-left:.6rem;font-size:.75rem}.dl-amx__grid tr.is-active .dl-amx__rowhead[data-v-6a6f8a8a]{color:var(--dl-accent)}.dl-amx__grid tr.is-active .dl-amx__cell[data-v-6a6f8a8a]{border-color:var(--dl-accent)}.dl-amx__grid thead th[data-v-6a6f8a8a]:first-child{width:4rem}
lecture-06/class/assets/AttentionMatrix-CVQjcu-J.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{Q as e,V as t,_ as n,b as r,bt as i,g as a,lt as o,m as s,v as c,vt as l,w as u,x as d,xt as f,y as p,z as m}from"./modules/shiki-BFOesOFp.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as g}from"./slidev/context-DrkI8qiD.js";import{t as _}from"./WidgetFrame-D2L0MlKA.js";import{t as v}from"./StepButton-BcP33F-1.js";import{i as y,r as b,u as x}from"./useAttention-Blk0c2BZ.js";var S={class:`dl-amx__grid`},C=[`onMouseenter`],w={class:`dl-amx__rowhead`},T={key:0,class:`dl-amx__sum`},E=h(u({__name:`AttentionMatrix`,props:{mode:{default:`weights`},sentence:{default:`river`},causal:{type:Boolean,default:!1},maskable:{type:Boolean,default:!0},switchable:{type:Boolean,default:!1}},setup(u){let{$slidev:h,$nav:E,$clicksContext:D,$clicks:O,$page:k,$renderContext:A,$frontmatter:j}=g(),M=u,N=o(M.sentence),P=o(M.causal),F=o(null),I=a(()=>M.mode===`mask`?b:y[N.value]),L=a(()=>x(y[N.value],P.value)),R=a(()=>M.mode===`mask`?I.value.map((e,t)=>I.value.map((e,n)=>+(n<=t))):L.value.rows.map(e=>e.weights)),z=a(()=>R.value.reduce((e,t)=>e+t.filter(e=>e>0).length,0)),B=a(()=>I.value.length**2),V=a(()=>F.value===null?null:L.value.rows[F.value]);function H(e){return e.toFixed(2)}function U(e){return M.mode===`mask`?e>0?.55:0:Math.sqrt(e)*.92}return(a,o)=>{let u=v,h=_;return m(),c(h,{"max-width":`40rem`},{controls:e(()=>[M.maskable&&M.mode===`weights`?(m(),c(u,{key:0,label:P.value?`Remove the mask`:`Apply the causal mask`,variant:P.value?`ghost`:`primary`,glyph:`◺`,onClick:o[1]||=e=>P.value=!P.value},null,8,[`label`,`variant`])):p(`v-if`,!0),M.switchable&&M.mode===`weights`?(m(),c(u,{key:1,label:N.value===`river`?`Swap river → money`:`Swap money → river`,variant:`ghost`,glyph:`⇄`,onClick:o[2]||=e=>N.value=N.value===`river`?`money`:`river`},null,8,[`label`])):p(`v-if`,!0)]),readout:e(()=>[M.mode===`mask`?(m(),r(s,{key:0},[d(f(I.value.length)+` words, so `+f(B.value)+` cells — and the mask throws away `,1),n(`strong`,null,f(B.value-z.value),1),o[5]||=d(` of them. Position `,-1),o[6]||=n(`em`,null,`t`,-1),o[7]||=d(` may read positions 1…`,-1),o[8]||=n(`em`,null,`t`,-1),d(` and nothing later, so row 1 has one live cell and the last row has `+f(I.value.length)+`. The scores are still `,1),o[9]||=n(`em`,null,`all`,-1),o[10]||=d(` computed and then set to −∞ before the softmax: masking saves no work, it only removes the answer. `,-1)],64)):V.value?(m(),r(s,{key:1},[n(`strong`,null,f(V.value.word),1),d(` spreads its attention as [`+f(V.value.weights.map(e=>H(e)).join(`, `))+`], and those add to exactly 1 — that is the softmax's doing, and it is why the output is an `,1),o[11]||=n(`em`,null,`average`,-1),o[12]||=d(` of values rather than a sum that grows with the sentence. `,-1)],64)):P.value?(m(),r(s,{key:2},[o[13]||=d(` With the mask on, row `,-1),o[14]||=n(`em`,null,`the`,-1),o[15]||=d(` is a single `,-1),o[16]||=n(`strong`,null,`1.00`,-1),o[17]||=d(`: the first token has nothing to look at but itself. Every row still sums to 1, because the softmax is taken after the blocked scores are set to −∞. `,-1)],64)):(m(),r(s,{key:3},[d(` Nine numbers, one matrix multiply. No cell depends on any other cell, so every row is computed at the same time — which is exactly what a recurrent layer could not do, and the reason this architecture won. `)],64))]),default:e(()=>[n(`div`,{class:l([`dl-amx`,`is-${M.mode}`])},[o[4]||=n(`div`,{class:`dl-amx__axes`},[n(`span`,{class:`dl-amx__axis`},`rows ask`),n(`span`,{class:`dl-amx__axis is-cols`},`columns are read`)],-1),n(`table`,S,[n(`thead`,null,[n(`tr`,null,[o[3]||=n(`th`,null,null,-1),(m(!0),r(s,null,t(I.value,(e,t)=>(m(),r(`th`,{key:`h${t}`,class:`dl-amx__colhead`},f(e),1))),128))])]),n(`tbody`,null,[(m(!0),r(s,null,t(R.value,(e,a)=>(m(),r(`tr`,{key:`r${a}`,class:l({"is-active":F.value===a}),onMouseenter:e=>F.value=a,onMouseleave:o[0]||=e=>F.value=null},[n(`th`,w,f(I.value[a]),1),(m(!0),r(s,null,t(e,(e,t)=>(m(),r(`td`,{key:`c${t}`,class:l([`dl-amx__cell`,{"is-blocked":e===0&&(P.value||M.mode===`mask`)}])},[n(`span`,{class:`dl-amx__fill`,style:i({opacity:U(e)})},null,4),n(`span`,{class:l([`dl-amx__text`,{"is-strong":e>.45}])},f(M.mode===`mask`?e>0?``:`×`:e===0?`×`:H(e)),3)],2))),128)),M.mode===`weights`?(m(),r(`td`,T,` = `+f(H(e.reduce((e,t)=>e+t,0))),1)):p(`v-if`,!0)],42,C))),128))])])],2)]),_:1})}}}),[[`__scopeId`,`data-v-6a6f8a8a`]]);export{E as t};
lecture-06/class/assets/DeckFooter-B6vKMo6W.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .dl-footer[data-v-fe908050]{letter-spacing:.04em;color:var(--dl-muted);pointer-events:none;justify-content:space-between;align-items:center;gap:1rem;font-size:.72rem;display:flex;position:absolute;bottom:1rem;left:3rem;right:3rem}.dl-footer__left[data-v-fe908050]{align-items:center;gap:.4rem;min-width:0;display:flex}.dl-footer__code[data-v-fe908050]{color:var(--dl-accent);font-weight:700}.dl-footer__sep[data-v-fe908050]{opacity:.5}.dl-footer__title[data-v-fe908050]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dl-footer__right[data-v-fe908050]{font-variant-numeric:tabular-nums;flex-shrink:0}
lecture-06/class/assets/DeckFooter-B7ogzN5B.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{_ as e,_t as t,b as n,g as r,w as i,xt as a,y as o,z as s}from"./modules/shiki-BFOesOFp.js";import{t as c}from"./useNav-BF8Ehznl.js";import{t as l}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as u}from"./slidev/context-DrkI8qiD.js";import"./slidev/client-DrWBSyE4.js";var d={class:`dl-footer`},f={class:`dl-footer__left`},p={key:0,class:`dl-footer__code`},m={key:1,class:`dl-footer__sep`},h={key:2},g={key:3,class:`dl-footer__sep`},_={key:4,class:`dl-footer__title`},v={class:`dl-footer__right`},y=l(i({__name:`DeckFooter`,setup(i){let{$slidev:l}=u(),y=c(),b=r(()=>l?.themeConfigs??{}),x=r(()=>b.value.courseCode??``),S=r(()=>b.value.lecture??``),C=r(()=>b.value.lectureTitle??``);return(r,i)=>(s(),n(`footer`,d,[e(`div`,f,[x.value?(s(),n(`span`,p,a(x.value),1)):o(`v-if`,!0),S.value?(s(),n(`span`,m,`·`)):o(`v-if`,!0),S.value?(s(),n(`span`,h,`Lecture `+a(S.value),1)):o(`v-if`,!0),C.value?(s(),n(`span`,g,`·`)):o(`v-if`,!0),C.value?(s(),n(`span`,_,a(C.value),1)):o(`v-if`,!0)]),e(`div`,v,a(t(y).currentPage.value)+` / `+a(t(y).total.value),1)]))}}),[[`__scopeId`,`data-v-fe908050`]]);export{y as t};
lecture-06/class/assets/DrawingControls-Dhbx0szf.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .v-popper--theme-dropdown .v-popper__arrow-inner{border-color:#9ca3af33}
lecture-06/class/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 ADDED
Binary file (28.1 kB). View file
 
lecture-06/class/assets/KaTeX_AMS-Regular-DMm9YOAa.woff ADDED
Binary file (33.5 kB). View file
 
lecture-06/class/assets/KaTeX_AMS-Regular-DRggAlZN.ttf ADDED
Binary file (63.6 kB). View file
 
lecture-06/class/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf ADDED
Binary file (12.4 kB). View file
 
lecture-06/class/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff ADDED
Binary file (7.72 kB). View file
 
lecture-06/class/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 ADDED
Binary file (6.91 kB). View file
 
lecture-06/class/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff ADDED
Binary file (7.66 kB). View file
 
lecture-06/class/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 ADDED
Binary file (6.91 kB). View file
 
lecture-06/class/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf ADDED
Binary file (12.3 kB). View file
 
lecture-06/class/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf ADDED
Binary file (19.6 kB). View file
 
lecture-06/class/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff ADDED
Binary file (13.3 kB). View file
 
lecture-06/class/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 ADDED
Binary file (11.3 kB). View file
 
lecture-06/class/assets/KaTeX_Fraktur-Regular-CB_wures.ttf ADDED
Binary file (19.6 kB). View file
 
lecture-06/class/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 ADDED
Binary file (11.3 kB). View file
 
lecture-06/class/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff ADDED
Binary file (13.2 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Bold-Cx986IdX.woff2 ADDED
Binary file (25.3 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Bold-Jm3AIy58.woff ADDED
Binary file (29.9 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Bold-waoOVXN0.ttf ADDED
Binary file (51.3 kB). View file
 
lecture-06/class/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 ADDED
Binary file (16.8 kB). View file
 
lecture-06/class/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf ADDED
Binary file (33 kB). View file
 
lecture-06/class/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff ADDED
Binary file (19.4 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Italic-3WenGoN9.ttf ADDED
Binary file (33.6 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Italic-BMLOBm91.woff ADDED
Binary file (19.7 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 ADDED
Binary file (17 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Regular-B22Nviop.woff2 ADDED
Binary file (26.3 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Regular-Dr94JaBh.woff ADDED
Binary file (30.8 kB). View file
 
lecture-06/class/assets/KaTeX_Main-Regular-ypZvNtVU.ttf ADDED
Binary file (53.6 kB). View file
 
lecture-06/class/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf ADDED
Binary file (31.2 kB). View file
 
lecture-06/class/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 ADDED
Binary file (16.4 kB). View file
 
lecture-06/class/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff ADDED
Binary file (18.7 kB). View file
 
lecture-06/class/assets/KaTeX_Math-Italic-DA0__PXp.woff ADDED
Binary file (18.7 kB). View file
 
lecture-06/class/assets/KaTeX_Math-Italic-flOr_0UB.ttf ADDED
Binary file (31.3 kB). View file