1958 lines
3.3 MiB
JavaScript
1958 lines
3.3 MiB
JavaScript
|
var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});import sourceMapSupport from"source-map-support";import path12 from"path";import chalk from"chalk";import pretty from"pretty-time";var PerfTimer=class{static{__name(this,"PerfTimer")}evts;constructor(){this.evts={},this.addEvent("start")}addEvent(evtName){this.evts[evtName]=process.hrtime()}timeSince(evtName){return chalk.yellow(pretty(process.hrtime(this.evts[evtName??"start"])))}};import{rimraf}from"rimraf";import{isGitIgnored}from"globby";import chalk6 from"chalk";import esbuild from"esbuild";import remarkParse from"remark-parse";import remarkRehype from"remark-rehype";import{unified}from"unified";import{read}from"to-vfile";import{slug as slugAnchor}from"github-slugger";import rfdc from"rfdc";var clone=rfdc(),QUARTZ="quartz";function isRelativeURL(s){let validStart=/^\.{1,2}/.test(s),validEnding=!endsWith(s,"index");return validStart&&validEnding&&![".md",".html"].includes(_getFileExtension(s)??"")}__name(isRelativeURL,"isRelativeURL");function sluggify(s){return s.split("/").map(segment=>segment.replace(/\s/g,"-").replace(/&/g,"-and-").replace(/%/g,"-percent").replace(/\?/g,"").replace(/#/g,"")).join("/").replace(/\/$/,"")}__name(sluggify,"sluggify");function slugifyFilePath(fp,excludeExt){fp=stripSlashes(fp);let ext=_getFileExtension(fp),withoutFileExt=fp.replace(new RegExp(ext+"$"),"");(excludeExt||[".md",".html",void 0].includes(ext))&&(ext="");let slug=sluggify(withoutFileExt);return endsWith(slug,"_index")&&(slug=slug.replace(/_index$/,"index")),slug+ext}__name(slugifyFilePath,"slugifyFilePath");function simplifySlug(fp){let res=stripSlashes(trimSuffix(fp,"index"),!0);return res.length===0?"/":res}__name(simplifySlug,"simplifySlug");function transformInternalLink(link){let[fplike,anchor]=splitAnchor(decodeURI(link)),folderPath=isFolderPath(fplike),segments=fplike.split("/").filter(x=>x.length>0),prefix=segments.filter(isRelativeSegment).join("/"),fp=segments.filter(seg=>!isRelativeSegment(seg)&&seg!=="").join("/"),simpleSlug=simplifySlug(slugifyFilePath(fp)),joined=joinSegments(stripSlashes(prefix),stripSlashes(simpleSlug)),trail=folderPath?"/":"";return _addRelativeToStart(joined)+trail+anchor}__name(transformInternalLink,"transformInternalLink");var _rebaseHastElement=__name((el,attr,curBase,newBase)=>{if(el.properties?.[attr]){if(!isRelativeURL(String(el.properties[attr])))return;let rel=joinSegments(resolveRelative(curBase,newBase),"..",el.properties[attr]);el.properties[attr]=rel}},"_rebaseHastElement");function normalizeHastElement(rawEl,curBase,newBase){let el=clone(rawEl);return _rebaseHastElement(el,"src",curBase,newBase),_rebaseHastElement(el,"href",curBase,newBase),el.children&&(el.children=el.children.map(child=>normalizeHastElement(child,curBase,newBase))),el}__name(normalizeHastElement,"normalizeHastElement");function pathToRoot(slug){let rootPath=slug.split("/").filter(x=>x!=="").slice(0,-1).map(_=>"..").join("/");return rootPath.length===0&&(rootPath="."),rootPath}__name(pathToRoot,"pathToRoot");function resolveRelative(current,target){return joinSegments(pathToRoot(current),simplifySlug(target))}__name(resolveRelative,"resolveRelative");function splitAnchor(link){let[fp,anchor]=link.split("#",2);return fp.endsWith(".pdf")?[fp,anchor===void 0?"":`#${anchor}`]:(anchor=anchor===void 0?"":"#"+slugAnchor(anchor),[fp,anchor])}__name(splitAnchor,"splitAnchor");function slugTag(tag){return tag.split("/").map(tagSegment=>sluggify(tagSegment)).join("/")}__name(slugTag,"slugTag");function joinSegments(...args){return args.filter(segment=>segment!=="").join("/").replace(/\/\/+/g,"/")}__name(joinSegments,"joinSegments");function getAllSegmentPrefixes(tags){let segments=tags.split("/"),results=[];for(let i=0;i<segments.length;i++)results.push(segments.slice(0,i+1).join("/"));return results}__name(getAllSegmentPrefixes,"getAllSegmentPrefixes");function transformLink(src,target,opts){let targetSlug=transformInternalLink(target);if(opts.strategy==="relative")return targetSlug;{let folderTail=isFolderP
|
||
|
`+chalk2.bgRed.black.bold(" ERROR ")+`
|
||
|
|
||
|
`+chalk2.red(` ${msg}`)+(err.message.length>0?`: ${err.message}`:""));let reachedEndOfLegibleTrace=!1;for(let line of stack.split(`
|
||
|
`).slice(1)){if(reachedEndOfLegibleTrace)break;line.includes("node_modules")||(lines.push(` ${line}`),rootFile.test(line)&&(reachedEndOfLegibleTrace=!0))}let traceMsg=lines.join(`
|
||
|
`);if(isMainThread)console.error(traceMsg),process2.exit(1);else throw new Error(traceMsg)}__name(trace,"trace");function createProcessor(ctx){let transformers=ctx.cfg.plugins.transformers;return unified().use(remarkParse).use(transformers.filter(p=>p.markdownPlugins).flatMap(plugin=>plugin.markdownPlugins(ctx))).use(remarkRehype,{allowDangerousHtml:!0}).use(transformers.filter(p=>p.htmlPlugins).flatMap(plugin=>plugin.htmlPlugins(ctx)))}__name(createProcessor,"createProcessor");function*chunks(arr,n){for(let i=0;i<arr.length;i+=n)yield arr.slice(i,i+n)}__name(chunks,"chunks");async function transpileWorkerScript(){return esbuild.build({entryPoints:["./quartz/worker.ts"],outfile:path.join(QUARTZ,"./.quartz-cache/transpiled-worker.mjs"),bundle:!0,keepNames:!0,platform:"node",format:"esm",packages:"external",sourcemap:!0,sourcesContent:!1,plugins:[{name:"css-and-scripts-as-text",setup(build){build.onLoad({filter:/\.scss$/},_=>({contents:"",loader:"text"})),build.onLoad({filter:/\.inline\.(ts|js)$/},_=>({contents:"",loader:"text"}))}}]})}__name(transpileWorkerScript,"transpileWorkerScript");function createFileParser(ctx,fps){let{argv,cfg}=ctx;return async processor=>{let res=[];for(let fp of fps)try{let perf=new PerfTimer,file=await read(fp);file.value=file.value.toString().trim();for(let plugin of cfg.plugins.transformers.filter(p=>p.textTransform))file.value=plugin.textTransform(ctx,file.value.toString());file.data.filePath=file.path,file.data.relativePath=path.posix.relative(argv.directory,file.path),file.data.slug=slugifyFilePath(file.data.relativePath);let ast=processor.parse(file),newAst=await processor.run(ast,file);res.push([newAst,file]),argv.verbose&&console.log(`[process] ${fp} -> ${file.data.slug} (${perf.timeSince()})`)}catch(err){trace(`
|
||
|
Failed to process \`${fp}\``,err)}return res}}__name(createFileParser,"createFileParser");var clamp=__name((num,min,max)=>Math.min(Math.max(Math.round(num),min),max),"clamp");async function parseMarkdown(ctx,fps){let{argv}=ctx,perf=new PerfTimer,log=new QuartzLogger(argv.verbose),CHUNK_SIZE=128,concurrency=ctx.argv.concurrency??clamp(fps.length/CHUNK_SIZE,1,4),res=[];if(log.start(`Parsing input files using ${concurrency} threads`),concurrency===1)try{let processor=createProcessor(ctx);res=await createFileParser(ctx,fps)(processor)}catch(error){throw log.end(),error}else{await transpileWorkerScript();let pool=workerpool.pool("./quartz/bootstrap-worker.mjs",{minWorkers:"max",maxWorkers:concurrency,workerType:"thread"}),childPromises=[];for(let chunk of chunks(fps,CHUNK_SIZE))childPromises.push(pool.exec("parseFiles",[ctx.buildId,argv,chunk,ctx.allSlugs]));res=(await WorkerPromise.all(childPromises).catch(err=>{let errString=err.toString().slice(6);console.error(errString),process.exit(1)})).flat(),await pool.terminate()}return log.end(`Parsed ${res.length} Markdown files in ${perf.timeSince()}`),res}__name(parseMarkdown,"parseMarkdown");function filterContent(ctx,content){let{cfg,argv}=ctx,perf=new PerfTimer,initialLength=content.length;for(let plugin of cfg.plugins.filters){let updatedContent=content.filter(item=>plugin.shouldPublish(ctx,item));if(argv.verbose){let diff=content.filter(x=>!updatedContent.includes(x));for(let file of diff)console.log(`[filter:${plugin.name}] ${file[1].data.slug}`)}content=updatedContent}return console.log(`Filtered out ${initialLength-content.length} files in ${perf.timeSince()}`),content}__name(filterContent,"filterContent");import matter from"gray-matter";import remarkFrontmatter from"remark-frontmatter";import yaml from"js-yaml";import toml from"toml";var en_US_default={propertyDefaults:{title:"Untitled",description:"No description provided"},components:{callout:{note:"Note",abstract:"Abstract",info:"Info",todo:"Todo",tip:"Tip",success:"Success",question:"Question",warning:"Warning",failure:"Failure",danger:"Danger",bug:"Bug",example:"Example",quote:"Quote"},backlinks:{title:"Backlinks",noBacklinksFound:"No backlinks found"},themeToggle:{lightMode:"Light mode",darkMode:"Dark mode"},explorer:{title:"Explorer"},footer:{createdWith:"Created with"},graph:{title:"Graph View"},recentNotes:{title:"Recent Notes",seeRemainingMore:__name(({remaining})=>`See ${remaining} more \u2192`,"seeRemainingMore")},transcludes:{transcludeOf:__name(({targetSlug})=>`Transclude of ${targetSlug}`,"transcludeOf"),linkToOriginal:"Link to original"},search:{title:"Search",searchBarPlaceholder:"Search for something"},tableOfContents:{title:"Table of Contents"},contentMeta:{readingTime:__name(({minutes})=>`${minutes} min read`,"readingTime")}},pages:{rss:{recentNotes:"Recent notes",lastFewNotes:__name(({count})=>`Last ${count} notes`,"lastFewNotes")},error:{title:"Not Found",notFound:"Either this page is private or doesn't exist.",home:"Return to Homepage"},folderContent:{folder:"Folder",itemsUnderFolder:__name(({count})=>count===1?"1 item under this folder.":`${count} items under this folder.`,"itemsUnderFolder")},tagContent:{tag:"Tag",tagIndex:"Tag Index",itemsUnderTag:__name(({count})=>count===1?"1 item with this tag.":`${count} items with this tag.`,"itemsUnderTag"),showingFirst:__name(({count})=>`Showing first ${count} tags.`,"showingFirst"),totalTags:__name(({count})=>`Found ${count} total tags.`,"totalTags")}}};var en_GB_default={propertyDefaults:{title:"Untitled",description:"No description provided"},components:{callout:{note:"Note",abstract:"Abstract",info:"Info",todo:"To-Do",tip:"Tip",success:"Success",question:"Question",warning:"Warning",failure:"Failure",danger:"Danger",bug:"Bug",example:"Example",quote:"Quote"},backlinks:{title:"Backlinks",noBacklinksFound:"No backlinks found"},themeToggle:{lightMode:"Light mode",darkMode:"Dark mode"},explorer:{title:"Explorer"},footer:{createdWith:"Created with"},graph:{title:"Graph View"},recentNotes:{title:"Recent Notes",seeRemainingMore:__name(({remaining})=>`See $
|
||
|
Warning: found invalid date "${d}" in \`${fp}\`. Supported formats: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format`)),invalidDate?new Date:dt}__name(coerceDate,"coerceDate");var CreatedModifiedDate=__name(userOpts=>{let opts={...defaultOptions3,...userOpts};return{name:"CreatedModifiedDate",markdownPlugins(){return[()=>{let repo;return async(_tree,file)=>{let created,modified,published,fp=file.data.filePath,fullFp=path2.isAbsolute(fp)?fp:path2.posix.join(file.cwd,fp);for(let source of opts.priority)if(source==="filesystem"){let st=await fs.promises.stat(fullFp);created||=st.birthtimeMs,modified||=st.mtimeMs}else if(source==="frontmatter"&&file.data.frontmatter)created||=file.data.frontmatter.created,modified||=file.data.frontmatter.modified,published||=file.data.frontmatter.published;else if(source==="git"){repo||(repo=Repository.discover(file.cwd));try{modified||=await repo.getFileLatestModifiedDateAsync(file.data.filePath)}catch{console.log(chalk3.yellow(`
|
||
|
Warning: ${file.data.filePath} isn't yet tracked by git, last modification date is not available for this file`))}}file.data.dates={created:coerceDate(fp,created),modified:coerceDate(fp,modified),published:coerceDate(fp,published)}}}]}}},"CreatedModifiedDate");import remarkMath from"remark-math";import rehypeKatex from"rehype-katex";import rehypeMathjax from"rehype-mathjax/svg";import rehypeTypst from"@myriaddreamin/rehype-typst";var Latex=__name(opts=>{let engine=opts?.renderEngine??"katex",macros=opts?.customMacros??{};return{name:"Latex",markdownPlugins(){return[remarkMath]},htmlPlugins(){switch(engine){case"katex":return[[rehypeKatex,{output:"html",macros,...opts?.katexOptions??{}}]];case"typst":return[[rehypeTypst,opts?.typstOptions??{}]];case"mathjax":return[[rehypeMathjax,{macros,...opts?.mathJaxOptions??{}}]];default:return[[rehypeMathjax,{macros,...opts?.mathJaxOptions??{}}]]}},externalResources(){switch(engine){case"katex":return{css:[{content:"https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"}],js:[{src:"https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/copy-tex.min.js",loadTime:"afterDOMReady",contentType:"external"}]};default:return{css:[],js:[]}}}}},"Latex");import{toString}from"hast-util-to-string";var escapeHTML=__name(unsafe=>unsafe.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),"escapeHTML"),unescapeHTML=__name(html=>html.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'"),"unescapeHTML");var defaultOptions4={descriptionLength:150,replaceExternalLinks:!0},urlRegex=new RegExp(/(https?:\/\/)?(?<domain>([\da-z\.-]+)\.([a-z\.]{2,6})(:\d+)?)(?<path>[\/\w\.-]*)(\?[\/\w\.=&;-]*)?/,"g"),Description=__name(userOpts=>{let opts={...defaultOptions4,...userOpts};return{name:"Description",htmlPlugins(){return[()=>async(tree,file)=>{let frontMatterDescription=file.data.frontmatter?.description,text=escapeHTML(toString(tree));opts.replaceExternalLinks&&(frontMatterDescription=frontMatterDescription?.replace(urlRegex,"$<domain>$<path>"),text=text.replace(urlRegex,"$<domain>$<path>"));let sentences=(frontMatterDescription??text).replace(/\s+/g," ").split(/\.\s/),finalDesc=[],len=opts.descriptionLength,sentenceIdx=0,currentDescriptionLength=0;if(sentences[0]!==void 0&&sentences[0].length>=len){let firstSentence=sentences[0].split(" ");for(;currentDescriptionLength<len;){let sentence=firstSentence[sentenceIdx];if(!sentence)break;finalDesc.push(sentence),currentDescriptionLength+=sentence.length,sentenceIdx++}finalDesc.push("...")}else for(;currentDescriptionLength<len;){let sentence=sentences[sentenceIdx];if(!sentence)break;let currentSentence=sentence.endsWith(".")?sentence:sentence+".";finalDesc.push(currentSentence),currentDescriptionLength+=currentSentence.length,sentenceIdx++}file.data.description=finalDesc.join(" "),file.data.text=text}]}}},"Description");import path3 from"path";import{visit as visit2}from"unist-util-visit";import isAbsoluteUrl from"is-absolute-url";var defaultOptions5={markdownLinkResolution:"absolute",prettyLinks:!0,openLinksInNewTab:!1,lazyLoad:!1,externalLinkIcon:!0},CrawlLinks=__name(userOpts=>{let opts={...defaultOptions5,...userOpts};return{name:"LinkProcessing",htmlPlugins(ctx){return[()=>(tree,file)=>{let curSlug=simplifySlug(file.data.slug),outgoing=new Set,transformOptions={strategy:opts.markdownLinkResolution,allSlugs:ctx.allSlugs};visit2(tree,"element",(node,_index,_parent)=>{if(node.tagName==="a"&&node.properties&&typeof node.properties.href=="string"){let dest=node.properties.href,classes=node.properties.className??[],isExternal=isAbsoluteUrl(dest);classes.push(isExternal?"external":"internal"),isExternal&&opts.externalLinkIcon&&node.children.push({type:"element",tagName:"svg",properties:{"aria-hidden":"true",class:"external-icon",style:"max-width:0.8em;max-height:0.8em",viewBox:"0 0 512 512"},children:[{type:"element",tagName:"path",properties:{d:"M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32
|
||
|
`;var checkbox_inline_default='var m=Object.create;var f=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var j=(e,t,n,A)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S(t))!b.call(e,i)&&i!==n&&f(e,i,{get:()=>t[i],enumerable:!(A=x(t,i))||A.enumerable});return e};var v=(e,t,n)=>(n=e!=null?m(y(e)):{},j(t||!e||!e.__esModule?f(n,"default",{value:e,enumerable:!0}):n,e));var p=R((_,g)=>{"use strict";g.exports=w;function B(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function w(e){if(e=e||{},e.circles)return L(e);let t=new Map;if(t.set(Date,F=>new Date(F)),t.set(Map,(F,E)=>new Map(A(Array.from(F),E))),t.set(Set,(F,E)=>new Set(A(Array.from(F),E))),e.constructorHandlers)for(let F of e.constructorHandlers)t.set(F[0],F[1]);let n=null;return e.proto?C:i;function A(F,E){let u=Object.keys(F),D=new Array(u.length);for(let l=0;l<u.length;l++){let r=u[l],s=F[r];typeof s!="object"||s===null?D[r]=s:s.constructor!==Object&&(n=t.get(s.constructor))?D[r]=n(s,E):ArrayBuffer.isView(s)?D[r]=B(s):D[r]=E(s)}return D}function i(F){if(typeof F!="object"||F===null)return F;if(Array.isArray(F))return A(F,i);if(F.constructor!==Object&&(n=t.get(F.constructor)))return n(F,i);let E={};for(let u in F){if(Object.hasOwnProperty.call(F,u)===!1)continue;let D=F[u];typeof D!="object"||D===null?E[u]=D:D.constructor!==Object&&(n=t.get(D.constructor))?E[u]=n(D,i):ArrayBuffer.isView(D)?E[u]=B(D):E[u]=i(D)}return E}function C(F){if(typeof F!="object"||F===null)return F;if(Array.isArray(F))return A(F,C);if(F.constructor!==Object&&(n=t.get(F.constructor)))return n(F,C);let E={};for(let u in F){let D=F[u];typeof D!="object"||D===null?E[u]=D:D.constructor!==Object&&(n=t.get(D.constructor))?E[u]=n(D,C):ArrayBuffer.isView(D)?E[u]=B(D):E[u]=C(D)}return E}}function L(e){let t=[],n=[],A=new Map;if(A.set(Date,u=>new Date(u)),A.set(Map,(u,D)=>new Map(C(Array.from(u),D))),A.set(Set,(u,D)=>new Set(C(Array.from(u),D))),e.constructorHandlers)for(let u of e.constructorHandlers)A.set(u[0],u[1]);let i=null;return e.proto?E:F;function C(u,D){let l=Object.keys(u),r=new Array(l.length);for(let s=0;s<l.length;s++){let c=l[s],o=u[c];if(typeof o!="object"||o===null)r[c]=o;else if(o.constructor!==Object&&(i=A.get(o.constructor)))r[c]=i(o,D);else if(ArrayBuffer.isView(o))r[c]=B(o);else{let a=t.indexOf(o);a!==-1?r[c]=n[a]:r[c]=D(o)}}return r}function F(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return C(u,F);if(u.constructor!==Object&&(i=A.get(u.constructor)))return i(u,F);let D={};t.push(u),n.push(D);for(let l in u){if(Object.hasOwnProperty.call(u,l)===!1)continue;let r=u[l];if(typeof r!="object"||r===null)D[l]=r;else if(r.constructor!==Object&&(i=A.get(r.constructor)))D[l]=i(r,F);else if(ArrayBuffer.isView(r))D[l]=B(r);else{let s=t.indexOf(r);s!==-1?D[l]=n[s]:D[l]=F(r)}}return t.pop(),n.pop(),D}function E(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return C(u,E);if(u.constructor!==Object&&(i=A.get(u.constructor)))return i(u,E);let D={};t.push(u),n.push(D);for(let l in u){let r=u[l];if(typeof r!="object"||r===null)D[l]=r;else if(r.constructor!==Object&&(i=A.get(r.constructor)))D[l]=i(r,E);else if(ArrayBuffer.isView(r))D[l]=B(r);else{let s=t.indexOf(r);s!==-1?D[l]=n[s]:D[l]=E(r)}}return t.pop(),n.pop(),D}}});var W=Object.hasOwnProperty;var d=v(p(),1),$=(0,d.default)();function h(e){return e.document.body.dataset.slug}var O=e=>`${h(window)}-checkbox-${e}`;document.addEventListener("nav",()=>{document.querySelectorAll("input.checkbox-toggle").forEach((t,n)=>{let A=O(n),i=C=>{let F=C.target?.checked?"true":"false";localStorage.setItem(A,F)};t.addEventListener("change",i),window.addCleanup(()=>t.removeEventListener("change",i)),localStorage.getItem(A)==="true"&&(t.checked=!0)})});\n';var mermaid_inline_default='var Wme=Object.create;var wE=Object.defineProperty;var Hme=Object.getOwnPropertyDescriptor;var qme=Object.ge
|
||
|
position: absolute;
|
||
|
display: flex;
|
||
|
float: right;
|
||
|
padding: 0.4rem;
|
||
|
margin: 0.3rem;
|
||
|
right: 0;
|
||
|
color: var(--gray);
|
||
|
border-color: var(--dark);
|
||
|
background-color: var(--light);
|
||
|
border: 1px solid;
|
||
|
border-radius: 5px;
|
||
|
opacity: 0;
|
||
|
transition: 0.2s;
|
||
|
}
|
||
|
.expand-button > svg {
|
||
|
fill: var(--light);
|
||
|
filter: contrast(0.3);
|
||
|
}
|
||
|
.expand-button:hover {
|
||
|
cursor: pointer;
|
||
|
border-color: var(--secondary);
|
||
|
}
|
||
|
.expand-button:focus {
|
||
|
outline: 0;
|
||
|
}
|
||
|
|
||
|
pre:hover > .expand-button {
|
||
|
opacity: 1;
|
||
|
transition: 0.2s;
|
||
|
}
|
||
|
|
||
|
#mermaid-container {
|
||
|
position: fixed;
|
||
|
contain: layout;
|
||
|
z-index: 999;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
overflow: hidden;
|
||
|
display: none;
|
||
|
backdrop-filter: blur(4px);
|
||
|
background: rgba(0, 0, 0, 0.5);
|
||
|
}
|
||
|
#mermaid-container.active {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space {
|
||
|
display: grid;
|
||
|
width: 90%;
|
||
|
height: 90vh;
|
||
|
margin: 5vh auto;
|
||
|
background: var(--light);
|
||
|
box-shadow: 0 14px 50px rgba(27, 33, 48, 0.12), 0 10px 30px rgba(27, 33, 48, 0.16);
|
||
|
overflow: hidden;
|
||
|
position: relative;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-header {
|
||
|
display: flex;
|
||
|
justify-content: flex-end;
|
||
|
padding: 1rem;
|
||
|
border-bottom: 1px solid var(--lightgray);
|
||
|
background: var(--light);
|
||
|
z-index: 2;
|
||
|
max-height: fit-content;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-header > .close-button {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
width: 32px;
|
||
|
height: 32px;
|
||
|
padding: 0;
|
||
|
background: transparent;
|
||
|
border: none;
|
||
|
border-radius: 4px;
|
||
|
color: var(--darkgray);
|
||
|
cursor: pointer;
|
||
|
transition: all 0.2s ease;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-header > .close-button:hover {
|
||
|
background: var(--lightgray);
|
||
|
color: var(--dark);
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-content {
|
||
|
padding: 2rem;
|
||
|
position: relative;
|
||
|
transform-origin: 0 0;
|
||
|
transition: transform 0.1s ease;
|
||
|
overflow: visible;
|
||
|
min-height: 200px;
|
||
|
min-width: 200px;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-content pre {
|
||
|
margin: 0;
|
||
|
border: none;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-content svg {
|
||
|
max-width: none;
|
||
|
height: auto;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-controls {
|
||
|
position: absolute;
|
||
|
bottom: 20px;
|
||
|
right: 20px;
|
||
|
display: flex;
|
||
|
gap: 8px;
|
||
|
padding: 8px;
|
||
|
background: var(--light);
|
||
|
border: 1px solid var(--lightgray);
|
||
|
border-radius: 6px;
|
||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
|
z-index: 2;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-controls .mermaid-control-button {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
width: 32px;
|
||
|
height: 32px;
|
||
|
padding: 0;
|
||
|
border: 1px solid var(--lightgray);
|
||
|
background: var(--light);
|
||
|
color: var(--dark);
|
||
|
border-radius: 4px;
|
||
|
cursor: pointer;
|
||
|
font-size: 16px;
|
||
|
font-family: var(--bodyFont);
|
||
|
transition: all 0.2s ease;
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-controls .mermaid-control-button:hover {
|
||
|
background: var(--lightgray);
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-controls .mermaid-control-button:active {
|
||
|
transform: translateY(1px);
|
||
|
}
|
||
|
#mermaid-container > #mermaid-space > .mermaid-controls .mermaid-control-button:nth-child(2) {
|
||
|
width: auto;
|
||
|
padding: 0 12px;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsibWVybWFpZC5pbmxpbmUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7R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iAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZDogdmFyKC0tbGlnaHRncmF5KTtcbiAgICAgICAgICBjb2xvcjogdmFyKC0tZGFyayk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAmID4gLm1lcm1haWQtY29udGVudCB7XG4gICAgICBwYWRkaW5nOiAycmVtO1xuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgdHJhbnNmb3JtLW9yaWdpbjogMCAwO1xuICAgICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDAuMXMgZWFzZTtcbiAgICAgIG92ZXJmbG93OiB2aXNpYmxlO1xuICAgICAgbWluLWhlaWdodDogMjAwcHg7XG4gICAgICBtaW4td2lkdGg6IDIwMHB4O1xuXG4gICAgICBwcmUge1xuICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgIGJvcmRlcjogbm9uZTtcbiAgICAgIH1cblxuICAgICA
|
||
|
> `)),opts.wikilinks&&(src instanceof Buffer&&(src=src.toString()),src=src.replace(tableRegex,value=>value.replace(tableWikilinkRegex,(_value,raw)=>{let escaped=raw??"";return escaped=escaped.replace("#","\\#"),escaped=escaped.replace(/((^|[^\\])(\\\\)*)\|/g,"$1\\|"),escaped})),src=src.replace(wikilinkRegex,(value,...capture)=>{let[rawFp,rawHeader,rawAlias]=capture,[fp,anchor]=splitAnchor(`${rawFp??""}${rawHeader??""}`),blockRef=rawHeader?.match(/^#?\^/)?"^":"",displayAnchor=anchor?`#${blockRef}${anchor.trim().replace(/^#+/,"")}`:"",displayAlias=rawAlias??rawHeader?.replace("#","|")??"",embedDisplay=value.startsWith("!")?"!":"";return rawFp?.match(externalLinkRegex)?`${embedDisplay}[${displayAlias.replace(/^\|/,"")}](${rawFp})`:`${embedDisplay}[[${fp}${displayAnchor}${displayAlias}]]`})),src},markdownPlugins(_ctx){let plugins=[];return plugins.push(()=>(tree,file)=>{let replacements=[],base=pathToRoot(file.data.slug);opts.wikilinks&&replacements.push([wikilinkRegex,(value,...capture)=>{let[rawFp,rawHeader,rawAlias]=capture,fp=rawFp?.trim()??"",anchor=rawHeader?.trim()??"",alias=rawAlias?.slice(1).trim();if(value.startsWith("!")){let ext=path4.extname(fp).toLowerCase(),url2=slugifyFilePath(fp);if([".png",".jpg",".jpeg",".gif",".bmp",".svg",".webp"].includes(ext)){let match=wikilinkImageEmbedRegex.exec(alias??""),alt=match?.groups?.alt??"",width=match?.groups?.width??"auto",height=match?.groups?.height??"auto";return{type:"image",url:url2,data:{hProperties:{width,height,alt}}}}else{if([".mp4",".webm",".ogv",".mov",".mkv"].includes(ext))return{type:"html",value:`<video src="${url2}" controls></video>`};if([".mp3",".webm",".wav",".m4a",".ogg",".3gp",".flac"].includes(ext))return{type:"html",value:`<audio src="${url2}" controls></audio>`};if([".pdf"].includes(ext))return{type:"html",value:`<iframe src="${url2}" class="pdf"></iframe>`};{let block=anchor;return{type:"html",data:{hProperties:{transclude:!0}},value:`<blockquote class="transclude" data-url="${url2}" data-block="${block}" data-embed-alias="${alias}"><a href="${url2+anchor}" class="transclude-inner">Transclude of ${url2}${block}</a></blockquote>`}}}}return{type:"link",url:fp+anchor,children:[{type:"text",value:alias??fp}]}}]),opts.highlight&&replacements.push([highlightRegex,(_value,...capture)=>{let[inner]=capture;return{type:"html",value:`<span class="text-highlight">${inner}</span>`}}]),opts.parseArrows&&replacements.push([arrowRegex,(value,..._capture)=>{let maybeArrow=arrowMapping[value];return maybeArrow===void 0?SKIP:{type:"html",value:`<span>${maybeArrow}</span>`}}]),opts.parseTags&&replacements.push([tagRegex,(_value,tag)=>{if(/^[\/\d]+$/.test(tag))return!1;if(tag=slugTag(tag),file.data.frontmatter){let noteTags=file.data.frontmatter.tags??[];file.data.frontmatter.tags=[...new Set([...noteTags,tag])]}return{type:"link",url:base+`/tags/${tag}`,data:{hProperties:{className:["tag-link"]}},children:[{type:"text",value:tag}]}}]),opts.enableInHtmlEmbed&&visit3(tree,"html",node=>{for(let[regex,replace]of replacements)typeof replace=="string"?node.value=node.value.replace(regex,replace):node.value=node.value.replace(regex,(substring,...args)=>{let replaceValue=replace(substring,...args);return typeof replaceValue=="string"?replaceValue:Array.isArray(replaceValue)?replaceValue.map(mdastToHtml).join(""):typeof replaceValue=="object"&&replaceValue!==null?mdastToHtml(replaceValue):substring})}),mdastFindReplace(tree,replacements)}),opts.enableVideoEmbed&&plugins.push(()=>(tree,_file)=>{visit3(tree,"image",(node,index,parent)=>{if(parent&&index!=null&&videoExtensionRegex.test(node.url)){let newNode={type:"html",value:`<video controls src="${node.url}"></video>`};return parent.children.splice(index,1,newNode),SKIP}})}),opts.callouts&&plugins.push(()=>(tree,_file)=>{visit3(tree,"blockquote",node=>{if(node.children.length===0)return;let[firstChild,...calloutContent]=node.children;if(firstChild.type!=="paragraph"||firstChild.children[0]?.type!=="text")return;let text=firstChild.children[0].value,restOfTitle=firstChild.children.slice(1),[firstLine,...remainingLines]=text.sp
|
||
|
`),remainingText=remainingLines.join(`
|
||
|
`),match=firstLine.match(calloutRegex);if(match&&match.input){let[calloutDirective,typeString,calloutMetaData,collapseChar]=match,calloutType=canonicalizeCallout(typeString.toLowerCase()),collapse=collapseChar==="+"||collapseChar==="-",defaultState=collapseChar==="-"?"collapsed":"expanded",titleContent=match.input.slice(calloutDirective.length).trim(),titleNode={type:"paragraph",children:[{type:"text",value:titleContent===""&&restOfTitle.length===0?capitalize(typeString).replace(/-/g," "):titleContent+" "},...restOfTitle]},blockquoteContent=[{type:"html",value:`<div
|
||
|
class="callout-title"
|
||
|
>
|
||
|
<div class="callout-icon"></div>
|
||
|
<div class="callout-title-inner">${mdastToHtml(titleNode)}</div>
|
||
|
${collapse?'<div class="fold-callout-icon"></div>':""}
|
||
|
</div>`}];remainingText.length>0&&blockquoteContent.push({type:"paragraph",children:[{type:"text",value:remainingText}]}),node.children.splice(0,1,...blockquoteContent);let classNames2=["callout",calloutType];if(collapse&&classNames2.push("is-collapsible"),defaultState==="collapsed"&&classNames2.push("is-collapsed"),node.data={hProperties:{...node.data?.hProperties??{},className:classNames2.join(" "),"data-callout":calloutType,"data-callout-fold":collapse,"data-callout-metadata":calloutMetaData}},calloutContent.length>0){let contentData={data:{hProperties:{className:"callout-content"},hName:"div"},type:"blockquote",children:[...calloutContent]};node.children=[node.children[0],contentData]}}})}),opts.mermaid&&plugins.push(()=>(tree,_file)=>{visit3(tree,"code",node=>{node.lang==="mermaid"&&(node.data={hProperties:{className:["mermaid"],"data-clipboard":JSON.stringify(node.value)}})})}),plugins},htmlPlugins(){let plugins=[rehypeRaw];return opts.parseBlockReferences&&plugins.push(()=>{let inlineTagTypes=new Set(["p","li"]),blockTagTypes=new Set(["blockquote"]);return(tree,file)=>{file.data.blocks={},visit3(tree,"element",(node,index,parent)=>{if(blockTagTypes.has(node.tagName)){let nextChild=parent?.children.at(index+2);if(nextChild&&nextChild.tagName==="p"){let text=nextChild.children.at(0);if(text&&text.value&&text.type==="text"){let matches=text.value.match(blockReferenceRegex);if(matches&&matches.length>=1){parent.children.splice(index+2,1);let block=matches[0].slice(1);Object.keys(file.data.blocks).includes(block)||(node.properties={...node.properties,id:block},file.data.blocks[block]=node)}}}}else if(inlineTagTypes.has(node.tagName)){let last=node.children.at(-1);if(last&&last.value&&typeof last.value=="string"){let matches=last.value.match(blockReferenceRegex);if(matches&&matches.length>=1){last.value=last.value.slice(0,-matches[0].length);let block=matches[0].slice(1);if(last.value===""){let idx=(index??1)-1;for(;idx>=0;){let element=parent?.children.at(idx);if(!element)break;if(element.type!=="element")idx-=1;else{Object.keys(file.data.blocks).includes(block)||(element.properties={...element.properties,id:block},file.data.blocks[block]=element);return}}}else Object.keys(file.data.blocks).includes(block)||(node.properties={...node.properties,id:block},file.data.blocks[block]=node)}}}}),file.data.htmlAst=tree}}),opts.enableYouTubeEmbed&&plugins.push(()=>tree=>{visit3(tree,"element",node=>{if(node.tagName==="img"&&typeof node.properties.src=="string"){let match=node.properties.src.match(ytLinkRegex),videoId=match&&match[2].length==11?match[2]:null,playlistId=node.properties.src.match(ytPlaylistLinkRegex)?.[1];videoId?(node.tagName="iframe",node.properties={class:"external-embed youtube",allow:"fullscreen",frameborder:0,width:"600px",src:playlistId?`https://www.youtube.com/embed/${videoId}?list=${playlistId}`:`https://www.youtube.com/embed/${videoId}`}):playlistId&&(node.tagName="iframe",node.properties={class:"external-embed youtube",allow:"fullscreen",frameborder:0,width:"600px",src:`https://www.youtube.com/embed/videoseries?list=${playlistId}`})}})}),opts.enableCheckbox&&plugins.push(()=>(tree,_file)=>{visit3(tree,"element",node=>{if(node.tagName==="input"&&node.properties.type==="checkbox"){let isChecked=node.properties?.checked??!1;node.properties={type:"checkbox",disabled:!1,checked:isChecked,class:"checkbox-toggle"}}})}),opts.mermaid&&plugins.push(()=>(tree,_file)=>{visit3(tree,"element",(node,_idx,parent)=>{node.tagName==="code"&&(node.properties?.className??[])?.includes("mermaid")&&(parent.children=[{type:"element",tagName:"button",properties:{className:["expand-button"],"aria-label":"Expand mermaid diagram","aria-hidden":"true","data-view-component":!0},children:[{type:"element",tagName:"svg",properties:{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor"},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M3.72 3.72a.75.75 0 011.06 1.06L2.56 7h10.88l-2.22-2.22a.75.75 0 011.06-1.06l3.5 3.5a.75.75 0 010 1.06l-3.5 3.5a.75.75 0 11-1.06-1.06l2.22-2.22H2.56l2.22 2.22
|
||
|
header {
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
align-items: center;
|
||
|
margin: 2rem 0;
|
||
|
gap: 1.5rem;
|
||
|
}
|
||
|
|
||
|
header h1 {
|
||
|
margin: 0;
|
||
|
flex: auto;
|
||
|
}
|
||
|
`;var Header_default=__name(()=>Header,"default");var clipboard_inline_default=`var r='<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true"><path fill-rule="evenodd" d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"></path><path fill-rule="evenodd" d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"></path></svg>',l='<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true"><path fill-rule="evenodd" fill="rgb(63, 185, 80)" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>';document.addEventListener("nav",()=>{let a=document.getElementsByTagName("pre");for(let t=0;t<a.length;t++){let n=a[t].getElementsByTagName("code")[0];if(n){let o=function(){navigator.clipboard.writeText(i).then(()=>{e.blur(),e.innerHTML=l,setTimeout(()=>{e.innerHTML=r,e.style.borderColor=""},2e3)},d=>console.error(d))};var c=o;let i=(n.dataset.clipboard?JSON.parse(n.dataset.clipboard):n.innerText).replace(/\\n\\n/g,\`
|
||
|
\`),e=document.createElement("button");e.className="clipboard-button",e.type="button",e.innerHTML=r,e.ariaLabel="Copy source",e.addEventListener("click",o),window.addCleanup(()=>e.removeEventListener("click",o)),a[t].prepend(e)}}});
|
||
|
`;var clipboard_default=`.clipboard-button {
|
||
|
position: absolute;
|
||
|
display: flex;
|
||
|
float: right;
|
||
|
right: 0;
|
||
|
padding: 0.4rem;
|
||
|
margin: 0.3rem;
|
||
|
color: var(--gray);
|
||
|
border-color: var(--dark);
|
||
|
background-color: var(--light);
|
||
|
border: 1px solid;
|
||
|
border-radius: 5px;
|
||
|
opacity: 0;
|
||
|
transition: 0.2s;
|
||
|
}
|
||
|
.clipboard-button > svg {
|
||
|
fill: var(--light);
|
||
|
filter: contrast(0.3);
|
||
|
}
|
||
|
.clipboard-button:hover {
|
||
|
cursor: pointer;
|
||
|
border-color: var(--secondary);
|
||
|
}
|
||
|
.clipboard-button:focus {
|
||
|
outline: 0;
|
||
|
}
|
||
|
|
||
|
pre:hover > .clipboard-button {
|
||
|
opacity: 1;
|
||
|
transition: 0.2s;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiY2xpcGJvYXJkLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBOztBQUdGO0VBQ0U7OztBQUtGO0VBQ0U7RUFDQSIsInNvdXJjZXNDb250ZW50IjpbIi5jbGlwYm9hcmQtYnV0dG9uIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbG9hdDogcmlnaHQ7XG4gIHJpZ2h0OiAwO1xuICBwYWRkaW5nOiAwLjRyZW07XG4gIG1hcmdpbjogMC4zcmVtO1xuICBjb2xvcjogdmFyKC0tZ3JheSk7XG4gIGJvcmRlci1jb2xvcjogdmFyKC0tZGFyayk7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxpZ2h0KTtcbiAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgb3BhY2l0eTogMDtcbiAgdHJhbnNpdGlvbjogMC4ycztcblxuICAmID4gc3ZnIHtcbiAgICBmaWxsOiB2YXIoLS1saWdodCk7XG4gICAgZmlsdGVyOiBjb250cmFzdCgwLjMpO1xuICB9XG5cbiAgJjpob3ZlciB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIGJvcmRlci1jb2xvcjogdmFyKC0tc2Vjb25kYXJ5KTtcbiAgfVxuXG4gICY6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cbn1cblxucHJlIHtcbiAgJjpob3ZlciA+IC5jbGlwYm9hcmQtYnV0dG9uIHtcbiAgICBvcGFjaXR5OiAxO1xuICAgIHRyYW5zaXRpb246IDAuMnM7XG4gIH1cbn1cbiJdfQ== */`;import{jsx as jsx2}from"preact/jsx-runtime";var Body=__name(({children})=>jsx2("div",{id:"quartz-body",children}),"Body");Body.afterDOMLoaded=clipboard_inline_default;Body.css=clipboard_default;var Body_default=__name(()=>Body,"default");import{render}from"preact-render-to-string";import{randomUUID}from"crypto";import{jsx as jsx3}from"preact/jsx-runtime";function JSResourceToScriptElement(resource,preserve){let scriptType=resource.moduleType??"application/javascript",spaPreserve=preserve??resource.spaPreserve;if(resource.contentType==="external")return jsx3("script",{src:resource.src,type:scriptType,"spa-preserve":spaPreserve},resource.src);{let content=resource.script;return jsx3("script",{type:scriptType,"spa-preserve":spaPreserve,dangerouslySetInnerHTML:{__html:content}},randomUUID())}}__name(JSResourceToScriptElement,"JSResourceToScriptElement");function CSSResourceToStyleElement(resource,preserve){let spaPreserve=preserve??resource.spaPreserve;return resource.inline??!1?jsx3("style",{children:resource.content}):jsx3("link",{href:resource.content,rel:"stylesheet",type:"text/css","spa-preserve":spaPreserve},resource.content)}__name(CSSResourceToStyleElement,"CSSResourceToStyleElement");import{visit as visit6}from"unist-util-visit";import{jsx as jsx4,jsxs}from"preact/jsx-runtime";var headerRegex=new RegExp(/h[1-6]/);function pageResources(baseDir,staticResources){let contentIndexScript=`const fetchData = fetch("${joinSegments(baseDir,"static/contentIndex.json")}").then(data => data.json())`;return{css:[{content:joinSegments(baseDir,"index.css")},...staticResources.css],js:[{src:joinSegments(baseDir,"prescript.js"),loadTime:"beforeDOMReady",contentType:"external"},{loadTime:"beforeDOMReady",contentType:"inline",spaPreserve:!0,script:contentIndexScript},...staticResources.js,{src:joinSegments(baseDir,"postscript.js"),loadTime:"afterDOMReady",moduleType:"module",contentType:"external"}]}}__name(pageResources,"pageResources");function renderPage(cfg,slug,componentData,components,pageResources2){let root=clone(componentData.tree);visit6(root,"element",(node,_index,_parent)=>{if(node.tagName==="blockquote"&&(node.properties?.className??[]).includes("transclude")){let inner=node.children[0],transcludeTarget=inner.properties["data-slug"],page=componentData.allFiles.find(f=>f.slug===transcludeTarget);if(!page)return;let blockRef=node.properties.dataBlock;if(blockRef?.startsWith("#^")){blockRef=blockRef.slice(2);let blockNode=page.blocks?.[blockRef];blockNode&&(blockNode.tagName==="li"&&(blockNode={type:"element",tagName:"ul",properties:{},children:[blockNode]}),node.children=[normalizeHastElement(blockNode,slug,transcludeTarget),{type:"element",tagName:"a",properties:{href:inner.properties?.href,class:["internal","transclude-src"]},children:[{type:"text",value:i18n(cfg.locale).components.transcludes.linkToOriginal
|
||
|
`+render(doc)}__name(renderPage,"renderPage");import{toJsxRuntime}from"hast-util-to-jsx-runtime";import{Fragment,jsx as jsx5,jsxs as jsxs2}from"preact/jsx-runtime";import{jsx as jsx6}from"preact/jsx-runtime";var customComponents={table:__name(props=>jsx6("div",{class:"table-container",children:jsx6("table",{...props})}),"table")};function htmlToJsx(fp,tree){try{return toJsxRuntime(tree,{Fragment,jsx:jsx5,jsxs:jsxs2,elementAttributeNameCase:"html",components:customComponents})}catch(e){trace(`Failed to parse Markdown in \`${fp}\` into JSX`,e)}}__name(htmlToJsx,"htmlToJsx");import{jsx as jsx7}from"preact/jsx-runtime";var Content=__name(({fileData,tree})=>{let content=htmlToJsx(fileData.filePath,tree),classString=["popover-hint",...fileData.frontmatter?.cssclasses??[]].join(" ");return jsx7("article",{class:classString,children:content})},"Content"),Content_default=__name(()=>Content,"default");var listPage_default=`/**
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
ul.section-ul {
|
||
|
list-style: none;
|
||
|
margin-top: 2em;
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
|
||
|
li.section-li {
|
||
|
margin-bottom: 1em;
|
||
|
}
|
||
|
li.section-li > .section {
|
||
|
display: grid;
|
||
|
grid-template-columns: fit-content(8em) 3fr 1fr;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
li.section-li > .section > .tags {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
li.section-li > .section > .desc > h3 > a {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
li.section-li > .section .meta {
|
||
|
margin: 0 1em 0 0;
|
||
|
opacity: 0.6;
|
||
|
}
|
||
|
|
||
|
.popover .section {
|
||
|
grid-template-columns: fit-content(8em) 1fr !important;
|
||
|
}
|
||
|
.popover .section > .tags {
|
||
|
display: none;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwibGlzdFBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQ0VBO0VBQ0U7RUFDQTtFQUNBOzs7QUFHRjtFQUNFOztBQUVBO0VBQ0U7RUFDQTs7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W1wbGF0ZS1jb2x1bW5zOiBmaXQtY29udGVudCg4ZW0pIDFmciAhaW1wb3J0YW50O1xuXG4gICYgPiAudGFncyB7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxufVxuIl19 */`;import{jsx as jsx8}from"preact/jsx-runtime";function getDate(cfg,data){if(!cfg.defaultDateType)throw new Error("Field 'defaultDateType' was not set in the configuration object of quartz.config.ts. See https://quartz.jzhao.xyz/configuration#general-configuration for more details.");return data.dates?.[cfg.defaultDateType]}__n
|
||
|
.section h3 {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.section > .tags {
|
||
|
margin: 0;
|
||
|
}
|
||
|
`;import{Fragment as Fragment2,jsx as jsx10,jsxs as jsxs4}from"preact/jsx-runtime";var defaultOptions9={numPages:10},TagContent_default=__name(opts=>{let options2={...defaultOptions9,...opts},TagContent=__name(props=>{let{tree,fileData,allFiles,cfg}=props,slug=fileData.slug;if(!(slug?.startsWith("tags/")||slug==="tags"))throw new Error(`Component "TagContent" tried to render a non-tag page: ${slug}`);let tag=simplifySlug(slug.slice(5)),allPagesWithTag=__name(tag2=>allFiles.filter(file=>(file.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes).includes(tag2)),"allPagesWithTag"),content=tree.children.length===0?fileData.description:htmlToJsx(fileData.filePath,tree),classes=(fileData.frontmatter?.cssclasses??[]).join(" ");if(tag==="/"){let tags=[...new Set(allFiles.flatMap(data=>data.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes))].sort((a,b)=>a.localeCompare(b)),tagItemMap=new Map;for(let tag2 of tags)tagItemMap.set(tag2,allPagesWithTag(tag2));return jsxs4("div",{class:"popover-hint",children:[jsx10("article",{class:classes,children:jsx10("p",{children:content})}),jsx10("p",{children:i18n(cfg.locale).pages.tagContent.totalTags({count:tags.length})}),jsx10("div",{children:tags.map(tag2=>{let pages=tagItemMap.get(tag2),listProps={...props,allFiles:pages},contentPage=allFiles.filter(file=>file.slug===`tags/${tag2}`).at(0),root=contentPage?.htmlAst,content2=!root||root?.children.length===0?contentPage?.description:htmlToJsx(contentPage.filePath,root);return jsxs4("div",{children:[jsx10("h2",{children:jsx10("a",{class:"internal tag-link",href:`../tags/${tag2}`,children:tag2})}),content2&&jsx10("p",{children:content2}),jsxs4("div",{class:"page-listing",children:[jsxs4("p",{children:[i18n(cfg.locale).pages.tagContent.itemsUnderTag({count:pages.length}),pages.length>options2.numPages&&jsxs4(Fragment2,{children:[" ",jsx10("span",{children:i18n(cfg.locale).pages.tagContent.showingFirst({count:options2.numPages})})]})]}),jsx10(PageList,{limit:options2.numPages,...listProps,sort:opts?.sort})]})]})})})]})}else{let pages=allPagesWithTag(tag),listProps={...props,allFiles:pages};return jsxs4("div",{class:classes,children:[jsx10("article",{class:"popover-hint",children:content}),jsxs4("div",{class:"page-listing",children:[jsx10("p",{children:i18n(cfg.locale).pages.tagContent.itemsUnderTag({count:pages.length})}),jsx10("div",{children:jsx10(PageList,{...listProps})})]})]})}},"TagContent");return TagContent.css=listPage_default+PageList.css,TagContent},"default");import path5 from"path";import{jsx as jsx11,jsxs as jsxs5}from"preact/jsx-runtime";var defaultOptions10={showFolderCount:!0,showSubfolders:!0},FolderContent_default=__name(opts=>{let options2={...defaultOptions10,...opts},FolderContent=__name(props=>{let{tree,fileData,allFiles,cfg}=props,folderSlug=stripSlashes(simplifySlug(fileData.slug)),folderParts=folderSlug.split(path5.posix.sep),allPagesInFolder=[],allPagesInSubfolders=new Map;allFiles.forEach(file=>{let fileSlug=stripSlashes(simplifySlug(file.slug)),prefixed=fileSlug.startsWith(folderSlug)&&fileSlug!==folderSlug,fileParts=fileSlug.split(path5.posix.sep),isDirectChild=fileParts.length===folderParts.length+1;if(prefixed){if(isDirectChild)allPagesInFolder.push(file);else if(options2.showSubfolders){let subfolderSlug=joinSegments(...fileParts.slice(0,folderParts.length+1)),pagesInFolder=allPagesInSubfolders.get(subfolderSlug)||[];allPagesInSubfolders.set(subfolderSlug,[...pagesInFolder,file])}}}),allPagesInSubfolders.forEach((files,subfolderSlug)=>{if(!allPagesInFolder.some(file=>subfolderSlug===stripSlashes(simplifySlug(file.slug)))){let subfolderDates=files.sort(byDateAndAlphabetical(cfg))[0].dates,subfolderTitle=subfolderSlug.split(path5.posix.sep).at(-1);allPagesInFolder.push({slug:subfolderSlug,dates:subfolderDates,frontmatter:{title:subfolderTitle,tags:["folder"]}})}});let classes=(fileData.frontmatter?.cssclasses??[]).join(" "),listProps={...props,sort:options2.sort,allFiles:allPagesInFolder},content=tree.children.length===0?fileData.description:htmlToJsx(fileData.filePath,tree);return jsxs5("div",{class:"popover
|
||
|
.article-title {
|
||
|
margin: 2rem 0 0 0;
|
||
|
}
|
||
|
`;var ArticleTitle_default=__name(()=>ArticleTitle,"default");var darkmode_inline_default=`var d=window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",s=localStorage.getItem("theme")??d;document.documentElement.setAttribute("saved-theme",s);var a=t=>{let n=new CustomEvent("themechange",{detail:{theme:t}});document.dispatchEvent(n)};document.addEventListener("nav",()=>{let t=o=>{let e=document.documentElement.getAttribute("saved-theme")==="dark"?"light":"dark";document.documentElement.setAttribute("saved-theme",e),localStorage.setItem("theme",e),a(e)},n=o=>{let e=o.matches?"dark":"light";document.documentElement.setAttribute("saved-theme",e),localStorage.setItem("theme",e),a(e)},m=document.querySelector("#darkmode");m&&(m.addEventListener("click",t),window.addCleanup(()=>m.removeEventListener("click",t)));let c=window.matchMedia("(prefers-color-scheme: dark)");c.addEventListener("change",n),window.addCleanup(()=>c.removeEventListener("change",n))});
|
||
|
`;var darkmode_default=`.darkmode {
|
||
|
cursor: pointer;
|
||
|
padding: 0;
|
||
|
position: relative;
|
||
|
background: none;
|
||
|
border: none;
|
||
|
width: 20px;
|
||
|
height: 20px;
|
||
|
margin: 0 10px;
|
||
|
text-align: inherit;
|
||
|
}
|
||
|
.darkmode svg {
|
||
|
position: absolute;
|
||
|
width: 20px;
|
||
|
height: 20px;
|
||
|
top: calc(50% - 10px);
|
||
|
fill: var(--darkgray);
|
||
|
transition: opacity 0.1s ease;
|
||
|
}
|
||
|
|
||
|
:root[saved-theme=dark] {
|
||
|
color-scheme: dark;
|
||
|
}
|
||
|
|
||
|
:root[saved-theme=light] {
|
||
|
color-scheme: light;
|
||
|
}
|
||
|
|
||
|
:root[saved-theme=dark] .darkmode > #dayIcon {
|
||
|
display: none;
|
||
|
}
|
||
|
:root[saved-theme=dark] .darkmode > #nightIcon {
|
||
|
display: inline;
|
||
|
}
|
||
|
|
||
|
:root .darkmode > #dayIcon {
|
||
|
display: inline;
|
||
|
}
|
||
|
:root .darkmode > #nightIcon {
|
||
|
display: none;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiZGFya21vZGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7O0FBSUo7RUFDRTs7O0FBR0Y7RUFDRTs7O0FBSUE7RUFDRTs7QUFFRjtFQUNFOzs7QUFLRjtFQUNFOztBQUVGO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyIuZGFya21vZGUge1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHBhZGRpbmc6IDA7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgYmFja2dyb3VuZDogbm9uZTtcbiAgYm9yZGVyOiBub25lO1xuICB3aWR0aDogMjBweDtcbiAgaGVpZ2h0OiAyMHB4O1xuICBtYXJnaW46IDAgMTBweDtcbiAgdGV4dC1hbGlnbjogaW5oZXJpdDtcblxuICAmIHN2ZyB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHdpZHRoOiAyMHB4O1xuICAgIGhlaWdodDogMjBweDtcbiAgICB0b3A6IGNhbGMoNTAlIC0gMTBweCk7XG4gICAgZmlsbDogdmFyKC0tZGFya2dyYXkpO1xuICAgIHRyYW5zaXRpb246IG9wYWNpdHkgMC4xcyBlYXNlO1xuICB9XG59XG5cbjpyb290W3NhdmVkLXRoZW1lPVwiZGFya1wiXSB7XG4gIGNvbG9yLXNjaGVtZTogZGFyaztcbn1cblxuOnJvb3Rbc2F2ZWQtdGhlbWU9XCJsaWdodFwiXSB7XG4gIGNvbG9yLXNjaGVtZTogbGlnaHQ7XG59XG5cbjpyb290W3NhdmVkLXRoZW1lPVwiZGFya1wiXSAuZGFya21vZGUge1xuICAmID4gI2RheUljb24ge1xuICAgIGRpc3BsYXk6IG5vbmU7XG4gIH1cbiAgJiA+ICNuaWdodEljb24ge1xuICAgIGRpc3BsYXk6IGlubGluZTtcbiAgfVxufVxuXG46cm9vdCAuZGFya21vZGUge1xuICAmID4gI2RheUljb24ge1xuICAgIGRpc3BsYXk6IGlubGluZTtcbiAgfVxuICAmID4gI25pZ2h0SWNvbiB7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxufVxuIl19 */`;import{jsx as jsx14,jsxs as jsxs7}from"preact/jsx-runtime";var Darkmode=__name(({displayClass,cfg})=>jsxs7("button",{class:classNames(displayClass,"darkmode"),id:"darkmode",children:[jsxs7("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"dayIcon",x:"0px",y:"0px",viewBox:"0 0 35 35",style:"enable-background:new 0 0 35 35",xmlSpace:"preserve","aria-label":i18n(cfg.locale).components.themeToggle.darkMode,children:[jsx14("title",{children:i18n(cfg.locale).components.themeToggle.darkMode}),jsx14("path",{d:"M6,17.5C6,16.672,5.328,16,4.5,16h-3C0.672,16,0,16.672,0,17.5 S0.672,19,1.5,19h3C5.328,19,6,18.328,6,17.5z M7.5,26c-0.414,0-0.789,0.168-1.061,0.439l-2,2C4.168,28.711,4,29.086,4,29.5 C4,30.328,4.671,31,5.5,31c0.414,0,0.789-0.168,1.06-0.44l2-2C8.832,28.289,9,27.914,9,27.5C9,26.672,8.329,26,7.5,26z M17.5,6 C18.329,6,19,5.328,19,4.5v-3C19,0.672,18.329,0,17.5,0S16,0.672,16,1.5v3C16,5.328,16.671,6,17.5,6z M27.5,9 c0.414,0,0.789-0.168,1.06-0.439l2-2C30.832,6.289,31,5.914,31,5.5C31,4.672,30.329,4,29.5,4c-0.414,0-0.789,0.168-1.061,0.44 l-2,2C26.168,6.711,26,7.086,26,7.5C26,8.328,26.671,9,27.5,9z M6.439,8.561C6.711,8.832,7.086,9,7.5,9C8.328,9,9,8.328,9,7.5 c0-0.414-0.168-0.789-0.439-1.061l-2-2C6.289,4.168,5.914,4,5.5,4C4.672,4,4,4.672,4,5.5c0,0.414,0.168,0.789,0.439,1.06 L6.439,8.561z M33.5,16h-3c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5h3c0.828,0,1.5-0.672,1.5-1.5S34.328,16,33.5,16z M28.561,26.439C28.289,26.168,27.914,26,27.5,26c-0.828,0-1.5,0.672-1.5,1.5c0,0.414,0.168,0.789,0.439,1.06l2,2 C28.711,30.832,29.086,31,29.5,31c0.828,0,1.5-0.672,1.5-1.5c0-0.414-0.168-0.789-0.439-1.061L28.561,26.439z M17.5,29 c-0.829,0-1.5,0.672-1.5,1.5v3c0,0.828,0.671,1.5,1.5,1.5s1.5-0.672,1.5-1.5v-3C19,29.672,18.329,29,17.5,29z M17.5,7 C11.71,7,7,11.71,7,17.5S11.71,28,17.5,28S28,23.29,28,17.5S23.29,7,17.5,7z M17.5,25c-4.136,0-7.5-3.364-7.5-7.5 c0-4.136,3.364-7.5,7.5-7.5c4.136,0,7.5,3.364,7.5,7.5C25,21.636,21.636,25,17.5,25z"})]}),jsxs7("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"nightIcon",x:"0px",y:"0px",viewBox:"0 0 100 100",style:"enable-background:new 0 0 100 100",xmlSpace:"preserve","aria-label":i18n(cfg.locale).components.themeToggle.lightMode,children:[jsx14("title",{children:i18n(cfg.locale).components.themeToggle.lightMode}),jsx14("path",{d:"M96.76,66.458c-0.853-0.852-2.15-1.064-3.23-0.534c-6.063,2.991-12.858,4.571-19.655,4.571 C62.022,70.495,50.88,65.88,42.5,57.5C29.043,44.043,25.658,23.536,34.076,6.47c0.532-1.08,0.318-2.379-0.534-3.23 c-0.851-0.852-2.15-1.0
|
||
|
${stylesheet.join(`
|
||
|
|
||
|
`)}
|
||
|
|
||
|
:root {
|
||
|
--light: ${theme.colors.lightMode.light};
|
||
|
--lightgray: ${theme.colors.lightMode.lightgray};
|
||
|
--gray: ${theme.colors.lightMode.gray};
|
||
|
--darkgray: ${theme.colors.lightMode.darkgray};
|
||
|
--dark: ${theme.colors.lightMode.dark};
|
||
|
--secondary: ${theme.colors.lightMode.secondary};
|
||
|
--tertiary: ${theme.colors.lightMode.tertiary};
|
||
|
--highlight: ${theme.colors.lightMode.highlight};
|
||
|
--textHighlight: ${theme.colors.lightMode.textHighlight};
|
||
|
|
||
|
--headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF};
|
||
|
--bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF};
|
||
|
--codeFont: "${theme.typography.code}", ${DEFAULT_MONO};
|
||
|
}
|
||
|
|
||
|
:root[saved-theme="dark"] {
|
||
|
--light: ${theme.colors.darkMode.light};
|
||
|
--lightgray: ${theme.colors.darkMode.lightgray};
|
||
|
--gray: ${theme.colors.darkMode.gray};
|
||
|
--darkgray: ${theme.colors.darkMode.darkgray};
|
||
|
--dark: ${theme.colors.darkMode.dark};
|
||
|
--secondary: ${theme.colors.darkMode.secondary};
|
||
|
--tertiary: ${theme.colors.darkMode.tertiary};
|
||
|
--highlight: ${theme.colors.darkMode.highlight};
|
||
|
--textHighlight: ${theme.colors.darkMode.textHighlight};
|
||
|
}
|
||
|
`}__name(joinStyles,"joinStyles");import satori from"satori";import fs2 from"fs";import sharp from"sharp";import{jsx as jsx15,jsxs as jsxs8}from"preact/jsx-runtime";async function getSatoriFont(headerFontName,bodyFontName){let headerFont=await fetchTtf(headerFontName,700),bodyFont=await fetchTtf(bodyFontName,400);return[{name:headerFontName,data:headerFont,weight:700,style:"normal"},{name:bodyFontName,data:bodyFont,weight:400,style:"normal"}]}__name(getSatoriFont,"getSatoriFont");async function fetchTtf(fontName,weight){try{let css=await(await fetch(`https://fonts.googleapis.com/css?family=${fontName}:${weight}`)).text(),match=/url\((https:\/\/fonts.gstatic.com\/s\/.*?.ttf)\)/g.exec(css);if(!match)throw new Error("Could not fetch font");return await(await fetch(match[1])).arrayBuffer()}catch(error){throw new Error(`Error fetching font: ${error}`)}}__name(fetchTtf,"fetchTtf");var defaultImage=__name((cfg,{colorScheme},title,description,fonts,_fileData)=>{let useSmallerFont=title.length>22,iconPath=`https://${cfg.baseUrl}/static/icon.png`;return jsxs8("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",backgroundColor:cfg.theme.colors[colorScheme].light,gap:"2rem",paddingTop:"1.5rem",paddingBottom:"1.5rem",paddingLeft:"5rem",paddingRight:"5rem"},children:[jsxs8("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%",flexDirection:"row",gap:"2.5rem"},children:[jsx15("img",{src:iconPath,width:135,height:135}),jsx15("p",{style:{color:cfg.theme.colors[colorScheme].dark,fontSize:useSmallerFont?70:82,fontFamily:fonts[0].name},children:title})]}),jsx15("p",{style:{color:cfg.theme.colors[colorScheme].dark,fontSize:44,lineClamp:3,fontFamily:fonts[1].name},children:description})]})},"defaultImage");import{Fragment as Fragment3,jsx as jsx16,jsxs as jsxs9}from"preact/jsx-runtime";async function generateSocialImage({cfg,description,fileName,fontsPromise,title,fileData},userOpts,imageDir){let fonts=await fontsPromise,{width,height}=userOpts,imageComponent=userOpts.imageStructure(cfg,userOpts,title,description,fonts,fileData),svg=await satori(imageComponent,{width,height,fonts}),compressed=await sharp(Buffer.from(svg)).webp({quality:40}).toBuffer(),filePath=joinSegments(imageDir,`${fileName}.${extension}`);fs2.writeFileSync(filePath,compressed)}__name(generateSocialImage,"generateSocialImage");var extension="webp",defaultOptions11={colorScheme:"lightMode",width:1200,height:630,imageStructure:defaultImage,excludeRoot:!1},Head_default=__name(()=>{let fontsPromise,fullOptions;return __name(({cfg,fileData,externalResources,ctx})=>{fullOptions||(typeof cfg.generateSocialImages!="boolean"?fullOptions={...defaultOptions11,...cfg.generateSocialImages}:fullOptions=defaultOptions11),!fontsPromise&&cfg.generateSocialImages&&(fontsPromise=getSatoriFont(cfg.theme.typography.header,cfg.theme.typography.body));let fileName=fileData.filePath?.replaceAll("/","-"),fdDescription=fileData.description?.trim()??i18n(cfg.locale).propertyDefaults.description,titleSuffix=cfg.pageTitleSuffix??"",title=(fileData.frontmatter?.title??i18n(cfg.locale).propertyDefaults.title)+titleSuffix,description="";fdDescription&&(description=unescapeHTML(fdDescription)),fileData.frontmatter?.socialDescription?description=fileData.frontmatter?.socialDescription:fileData.frontmatter?.description&&(description=fileData.frontmatter?.description);let fileDir=joinSegments(ctx.argv.output,"static","social-images");cfg.generateSocialImages&&(fs2.existsSync(fileDir)||fs2.mkdirSync(fileDir,{recursive:!0}),fileName&&generateSocialImage({title,description,fileName,fileDir,fileExt:extension,fontsPromise,cfg,fileData},fullOptions,fileDir));let{css,js}=externalResources,url=new URL(`https://${cfg.baseUrl??"example.com"}`),path13=url.pathname,baseDir=fileData.slug==="404"?path13:pathToRoot(fileData.slug),iconPath=joinSegments(baseDir,"static/icon.png"),ogImageDefaultPath=`https://${cfg.baseUrl}/static/og-image.png`,ogImageGeneratedPath=`https://${cfg.baseUrl}/${fileDir.replace(`${ctx.argv.ou
|
||
|
.page-title {
|
||
|
font-size: 1.75rem;
|
||
|
margin: 0;
|
||
|
}
|
||
|
`;var PageTitle_default=__name(()=>PageTitle,"default");import readingTime from"reading-time";var contentMeta_default=`.content-meta {
|
||
|
margin-top: 0;
|
||
|
color: var(--gray);
|
||
|
}
|
||
|
.content-meta[show-comma=true] > *:not(:last-child) {
|
||
|
margin-right: 8px;
|
||
|
}
|
||
|
.content-meta[show-comma=true] > *:not(:last-child)::after {
|
||
|
content: ",";
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiY29udGVudE1ldGEuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7O0FBR0U7RUFDRTs7QUFFQTtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiLmNvbnRlbnQtbWV0YSB7XG4gIG1hcmdpbi10b3A6IDA7XG4gIGNvbG9yOiB2YXIoLS1ncmF5KTtcblxuICAmW3Nob3ctY29tbWE9XCJ0cnVlXCJdIHtcbiAgICA+ICo6bm90KDpsYXN0LWNoaWxkKSB7XG4gICAgICBtYXJnaW4tcmlnaHQ6IDhweDtcblxuICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICBjb250ZW50OiBcIixcIjtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ== */`;import{jsx as jsx18}from"preact/jsx-runtime";var defaultOptions12={showReadingTime:!0,showComma:!0},ContentMeta_default=__name(opts=>{let options2={...defaultOptions12,...opts};function ContentMetadata({cfg,fileData,displayClass}){let text=fileData.text;if(text){let segments=[];if(fileData.dates&&segments.push(jsx18(Date2,{date:getDate(cfg,fileData),locale:cfg.locale})),options2.showReadingTime){let{minutes,words:_words}=readingTime(text),displayedTime=i18n(cfg.locale).components.contentMeta.readingTime({minutes:Math.ceil(minutes)});segments.push(jsx18("span",{children:displayedTime}))}return jsx18("p",{"show-comma":options2.showComma,class:classNames(displayClass,"content-meta"),children:segments})}else return null}return __name(ContentMetadata,"ContentMetadata"),ContentMetadata.css=contentMeta_default,ContentMetadata},"default");import{jsx as jsx19}from"preact/jsx-runtime";function Spacer({displayClass}){return jsx19("div",{class:classNames(displayClass,"spacer")})}__name(Spacer,"Spacer");var Spacer_default=__name(()=>Spacer,"default");var legacyToc_default=`details#toc summary {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
details#toc summary::marker {
|
||
|
color: var(--dark);
|
||
|
}
|
||
|
details#toc summary > * {
|
||
|
padding-left: 0.25rem;
|
||
|
display: inline-block;
|
||
|
margin: 0;
|
||
|
}
|
||
|
details#toc ul {
|
||
|
list-style: none;
|
||
|
margin: 0.5rem 1.25rem;
|
||
|
padding: 0;
|
||
|
}
|
||
|
details#toc .depth-1 {
|
||
|
padding-left: calc(1rem * 1);
|
||
|
}
|
||
|
details#toc .depth-2 {
|
||
|
padding-left: calc(1rem * 2);
|
||
|
}
|
||
|
details#toc .depth-3 {
|
||
|
padding-left: calc(1rem * 3);
|
||
|
}
|
||
|
details#toc .depth-4 {
|
||
|
padding-left: calc(1rem * 4);
|
||
|
}
|
||
|
details#toc .depth-5 {
|
||
|
padding-left: calc(1rem * 5);
|
||
|
}
|
||
|
details#toc .depth-6 {
|
||
|
padding-left: calc(1rem * 6);
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsibGVnYWN5VG9jLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0U7RUFDRTs7QUFFQTtFQUNFOztBQUdGO0VBQ0U7RUFDQTtFQUNBOztBQUlKO0VBQ0U7RUFDQTtFQUNBOztBQUlBO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFOztBQURGO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiZGV0YWlscyN0b2Mge1xuICAmIHN1bW1hcnkge1xuICAgIGN1cnNvcjogcG9pbnRlcjtcblxuICAgICY6Om1hcmtlciB7XG4gICAgICBjb2xvcjogdmFyKC0tZGFyayk7XG4gICAgfVxuXG4gICAgJiA+ICoge1xuICAgICAgcGFkZGluZy1sZWZ0OiAwLjI1cmVtO1xuICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgbWFyZ2luOiAwO1xuICAgIH1cbiAgfVxuXG4gICYgdWwge1xuICAgIGxpc3Qtc3R5bGU6IG5vbmU7XG4gICAgbWFyZ2luOiAwLjVyZW0gMS4yNXJlbTtcbiAgICBwYWRkaW5nOiAwO1xuICB9XG5cbiAgQGZvciAkaSBmcm9tIDEgdGhyb3VnaCA2IHtcbiAgICAmIC5kZXB0aC0jeyRpfSB7XG4gICAgICBwYWRkaW5nLWxlZnQ6IGNhbGMoMXJlbSAqICN7JGl9KTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */`;var toc_default=`/**
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
.toc {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
.toc.desktop-only {
|
||
|
max-height: 40%;
|
||
|
}
|
||
|
|
||
|
@media all and not ((max-width: 800px)) {
|
||
|
.toc {
|
||
|
display: flex;
|
||
|
}
|
||
|
}
|
||
|
button#toc {
|
||
|
background-color: transparent;
|
||
|
border: none;
|
||
|
text-align: left;
|
||
|
cursor: pointer;
|
||
|
padding: 0;
|
||
|
color: var(--dark);
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
button#toc h3 {
|
||
|
font-size: 1rem;
|
||
|
display: inline-block;
|
||
|
margin: 0;
|
||
|
}
|
||
|
button#toc .fold {
|
||
|
margin-left: 0.5rem;
|
||
|
transition: transform 0.3s ease;
|
||
|
opacity: 0.8;
|
||
|
}
|
||
|
button#toc.collapsed .fold {
|
||
|
transform: rotateZ(-90deg);
|
||
|
}
|
||
|
|
||
|
#toc-content {
|
||
|
list-style: none;
|
||
|
overflow: hidden;
|
||
|
overflow-y: auto;
|
||
|
max-height: 100%;
|
||
|
transition: max-height 0.35s ease, visibility 0s linear 0s;
|
||
|
position: relative;
|
||
|
visibility: visible;
|
||
|
}
|
||
|
#toc-content.collapsed {
|
||
|
max-height: 0;
|
||
|
transition: max-height 0.35s ease, visibility 0s linear 0.35s;
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
#toc-content.collapsed > .overflow::after {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
#toc-content ul {
|
||
|
list-style: none;
|
||
|
margin: 0.5rem 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
#toc-content ul > li > a {
|
||
|
color: var(--dark);
|
||
|
opacity: 0.35;
|
||
|
transition: 0.5s ease opacity, 0.3s ease color;
|
||
|
}
|
||
|
#toc-content ul > li > a.in-view {
|
||
|
opacity: 0.75;
|
||
|
}
|
||
|
#toc-content > ul.overflow {
|
||
|
max-height: none;
|
||
|
width: 100%;
|
||
|
}
|
||
|
#toc-content .depth-0 {
|
||
|
padding-left: calc(1rem * 0);
|
||
|
}
|
||
|
#toc-content .depth-1 {
|
||
|
padding-left: calc(1rem * 1);
|
||
|
}
|
||
|
#toc-content .depth-2 {
|
||
|
padding-left: calc(1rem * 2);
|
||
|
}
|
||
|
#toc-content .depth-3 {
|
||
|
padding-left: calc(1rem * 3);
|
||
|
}
|
||
|
#toc-content .depth-4 {
|
||
|
padding-left: calc(1rem * 4);
|
||
|
}
|
||
|
#toc-content .depth-5 {
|
||
|
padding-left: calc(1rem * 5);
|
||
|
}
|
||
|
#toc-content .depth-6 {
|
||
|
padding-left: calc(1rem * 6);
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwidG9jLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUNFQTtFQUNFO0VBQ0E7O0FBRUE7RUFDRTs7O0FBSUo7RUFDRTtJQUNFOzs7QUFJSjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTs7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBLFlBQ0U7RUFFRjtFQUNBOztBQUVBO0VBQ0U7RUFDQSxZQUNFO0VBRUY7O0FBR0Y7RUFDRTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTs7QUFDQTtFQUNFO0VBQ0E7RUFDQSxZQUNFOztBQUVGO0VBQ0U7O0FBSU47RUFDRTtFQUNBOztBQUlBO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFOztBQURGO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFOztBQURGO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIExheW91dCBicmVha3BvaW50c1xuICogJG1vYmlsZTogc2NyZWVuIHdpZHRoIGJlbG93IHRoaXMgdmFsdWUgd2lsbCB1c2U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2h0XCJcXFxuICAgICAgXCJncmlkLXNpZGViYXItbGVmdCBncmlkLWZvb3RlciBncmlkLXNpZGViYXItcmlnaHRcIicsXG4pO1xuIiwiQHVzZSBcIi4uLy4uL3N0eWxlcy92YXJpYWJsZXMuc2Nzc1wiIGFzICo7XG5cbi50b2Mge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG4gICYuZGVza3RvcC1vbmx5IHtcbiAgICBtYXgtaGVpZ2h0OiA0MCU7XG4gIH1cbn1cblxuQG1lZGlhIGFsbCBhbmQgbm90ICgkbW9iaWxlKSB7XG4gIC50b2Mge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gIH1cbn1cblxuYnV0dG9uI3RvYyB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IG5vbmU7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcGFkZGluZzogMDtcbiAgY29sb3I6IHZhcigtLWRhcmspO1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICYgaDMge1xuICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgbWFyZ2luOiAwO1xuICB9XG5cbiAgJiAuZm9sZCB7XG4gICAgbWFyZ2luLWxlZnQ6IDAuNXJlbTtcbiAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4zcyBlYXNlO1xuICAgIG9wYWNpdHk6IDAuODtcbiAgfVxuXG4gICYuY29sbGFwc2VkIC5mb2xkIHtcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZVooLTkwZGVnKTtcbiAgfVxufVxuXG4
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
.explorer {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
overflow-y: hidden;
|
||
|
/*&:after {
|
||
|
pointer-events: none;
|
||
|
content: "";
|
||
|
width: 100%;
|
||
|
height: 50px;
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
bottom: 0;
|
||
|
opacity: 1;
|
||
|
transition: opacity 0.3s ease;
|
||
|
background: linear-gradient(transparent 0px, var(--light));
|
||
|
}*/
|
||
|
}
|
||
|
@media all and not ((max-width: 800px)) {
|
||
|
.explorer.desktop-only {
|
||
|
display: flex;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
button#explorer {
|
||
|
background-color: transparent;
|
||
|
border: none;
|
||
|
text-align: left;
|
||
|
cursor: pointer;
|
||
|
padding: 0;
|
||
|
color: var(--dark);
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
button#explorer h2 {
|
||
|
font-size: 1rem;
|
||
|
display: inline-block;
|
||
|
margin: 0;
|
||
|
}
|
||
|
button#explorer .fold {
|
||
|
margin-left: 0.5rem;
|
||
|
transition: transform 0.3s ease;
|
||
|
opacity: 0.8;
|
||
|
}
|
||
|
button#explorer.collapsed .fold {
|
||
|
transform: rotateZ(-90deg);
|
||
|
}
|
||
|
|
||
|
.folder-outer {
|
||
|
display: grid;
|
||
|
grid-template-rows: 0fr;
|
||
|
transition: grid-template-rows 0.3s ease-in-out;
|
||
|
}
|
||
|
|
||
|
.folder-outer.open {
|
||
|
grid-template-rows: 1fr;
|
||
|
}
|
||
|
|
||
|
.folder-outer > ul {
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
#explorer-content {
|
||
|
list-style: none;
|
||
|
overflow: hidden;
|
||
|
overflow-y: auto;
|
||
|
max-height: 100%;
|
||
|
transition: max-height 0.35s ease, visibility 0s linear 0s;
|
||
|
margin-top: 0.5rem;
|
||
|
visibility: visible;
|
||
|
}
|
||
|
#explorer-content.collapsed {
|
||
|
max-height: 0;
|
||
|
transition: max-height 0.35s ease, visibility 0s linear 0.35s;
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
#explorer-content ul {
|
||
|
list-style: none;
|
||
|
margin: 0.08rem 0;
|
||
|
padding: 0;
|
||
|
transition: max-height 0.35s ease, transform 0.35s ease, opacity 0.2s ease;
|
||
|
}
|
||
|
#explorer-content ul li > a {
|
||
|
color: var(--dark);
|
||
|
opacity: 0.75;
|
||
|
pointer-events: all;
|
||
|
}
|
||
|
#explorer-content > #explorer-ul {
|
||
|
max-height: none;
|
||
|
}
|
||
|
|
||
|
svg {
|
||
|
pointer-events: all;
|
||
|
}
|
||
|
svg > polyline {
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
|
||
|
.folder-container {
|
||
|
flex-direction: row;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
user-select: none;
|
||
|
}
|
||
|
.folder-container div > a {
|
||
|
color: var(--secondary);
|
||
|
font-family: var(--headerFont);
|
||
|
font-size: 0.95rem;
|
||
|
font-weight: 600;
|
||
|
line-height: 1.5rem;
|
||
|
display: inline-block;
|
||
|
}
|
||
|
.folder-container div > a:hover {
|
||
|
color: var(--tertiary);
|
||
|
}
|
||
|
.folder-container div > button {
|
||
|
color: var(--dark);
|
||
|
background-color: transparent;
|
||
|
border: none;
|
||
|
text-align: left;
|
||
|
cursor: pointer;
|
||
|
padding-left: 0;
|
||
|
padding-right: 0;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
font-family: var(--headerFont);
|
||
|
}
|
||
|
.folder-container div > button span {
|
||
|
font-size: 0.95rem;
|
||
|
display: inline-block;
|
||
|
color: var(--secondary);
|
||
|
font-weight: 600;
|
||
|
margin: 0;
|
||
|
line-height: 1.5rem;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
|
||
|
.folder-icon {
|
||
|
margin-right: 5px;
|
||
|
color: var(--secondary);
|
||
|
cursor: pointer;
|
||
|
transition: transform 0.3s ease;
|
||
|
backface-visibility: visible;
|
||
|
}
|
||
|
|
||
|
li:has(> .folder-outer:not(.open)) > .folder-container > svg {
|
||
|
transform: rotate(-90deg);
|
||
|
}
|
||
|
|
||
|
.folder-icon:hover {
|
||
|
color: var(--tertiary);
|
||
|
}
|
||
|
|
||
|
.no-background::after {
|
||
|
background: none !important;
|
||
|
}
|
||
|
|
||
|
#explorer-end {
|
||
|
height: 4px;
|
||
|
margin: 0;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwiZXhwbG9yZXIuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQ0VBO0VBQ0U7RUFDQTtFQUNBO0FBTUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUpFO0VBREY7SUFFSTs7OztBQWlCTjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTs7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQSxZQUNFO0VBRUY7RUFDQTs7QUFFQTtFQUNFO0VBQ0EsWUFDRTtFQUVGOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0EsWUFDRTs7QUFHRjtFQUNF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DogNTBweDtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgbGVmdDogMDtcbiAgICBib3R0b20
|
||
|
.tags {
|
||
|
list-style: none;
|
||
|
display: flex;
|
||
|
padding-left: 0;
|
||
|
gap: 0.4rem;
|
||
|
margin: 1rem 0;
|
||
|
flex-wrap: wrap;
|
||
|
}
|
||
|
|
||
|
.section-li > .section > .tags {
|
||
|
justify-content: flex-end;
|
||
|
}
|
||
|
|
||
|
.tags > li {
|
||
|
display: inline-block;
|
||
|
white-space: nowrap;
|
||
|
margin: 0;
|
||
|
overflow-wrap: normal;
|
||
|
}
|
||
|
|
||
|
a.internal.tag-link {
|
||
|
border-radius: 8px;
|
||
|
background-color: var(--highlight);
|
||
|
padding: 0.2rem 0.4rem;
|
||
|
margin: 0 0.1rem;
|
||
|
}
|
||
|
`;var TagList_default=__name(()=>TagList,"default");var graph_inline_default='var M1=Object.create;var Ju=Object.defineProperty;var F1=Object.getOwnPropertyDescriptor;var R1=Object.getOwnPropertyNames;var k1=Object.getPrototypeOf,G1=Object.prototype.hasOwnProperty;var p=(r,t)=>()=>(r&&(t=r(r=0)),t);var Ao=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),sd=(r,t)=>{for(var e in t)Ju(r,e,{get:t[e],enumerable:!0})},I1=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of R1(t))!G1.call(r,s)&&s!==e&&Ju(r,s,{get:()=>t[s],enumerable:!(i=F1(t,s))||i.enumerable});return r};var ds=(r,t,e)=>(e=r!=null?M1(k1(r)):{},I1(t||!r||!r.__esModule?Ju(e,"default",{value:r,enumerable:!0}):e,r));var b,Al,ea,H,D=p(()=>{"use strict";b=(r=>(r.Application="application",r.WebGLPipes="webgl-pipes",r.WebGLPipesAdaptor="webgl-pipes-adaptor",r.WebGLSystem="webgl-system",r.WebGPUPipes="webgpu-pipes",r.WebGPUPipesAdaptor="webgpu-pipes-adaptor",r.WebGPUSystem="webgpu-system",r.CanvasSystem="canvas-system",r.CanvasPipesAdaptor="canvas-pipes-adaptor",r.CanvasPipes="canvas-pipes",r.Asset="asset",r.LoadParser="load-parser",r.ResolveParser="resolve-parser",r.CacheParser="cache-parser",r.DetectionParser="detection-parser",r.MaskEffect="mask-effect",r.BlendMode="blend-mode",r.TextureSource="texture-source",r.Environment="environment",r.ShapeBuilder="shape-builder",r.Batcher="batcher",r))(b||{}),Al=r=>{if(typeof r=="function"||typeof r=="object"&&r.extension){if(!r.extension)throw new Error("Extension class must have an extension object");r={...typeof r.extension!="object"?{type:r.extension}:r.extension,ref:r}}if(typeof r=="object")r={...r};else throw new Error("Invalid extension type");return typeof r.type=="string"&&(r.type=[r.type]),r},ea=(r,t)=>Al(r).priority??t,H={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...r){return r.map(Al).forEach(t=>{t.type.forEach(e=>this._removeHandlers[e]?.(t))}),this},add(...r){return r.map(Al).forEach(t=>{t.type.forEach(e=>{let i=this._addHandlers,s=this._queue;i[e]?i[e]?.(t):(s[e]=s[e]||[],s[e]?.push(t))})}),this},handle(r,t,e){let i=this._addHandlers,s=this._removeHandlers;if(i[r]||s[r])throw new Error(`Extension type ${r} already has a handler`);i[r]=t,s[r]=e;let n=this._queue;return n[r]&&(n[r]?.forEach(o=>t(o)),delete n[r]),this},handleByMap(r,t){return this.handle(r,e=>{e.name&&(t[e.name]=e.ref)},e=>{e.name&&delete t[e.name]})},handleByNamedList(r,t,e=-1){return this.handle(r,i=>{t.findIndex(n=>n.name===i.name)>=0||(t.push({name:i.name,value:i.ref}),t.sort((n,o)=>ea(o.value,e)-ea(n.value,e)))},i=>{let s=t.findIndex(n=>n.name===i.name);s!==-1&&t.splice(s,1)})},handleByList(r,t,e=-1){return this.handle(r,i=>{t.includes(i.ref)||(t.push(i.ref),t.sort((s,n)=>ea(n,e)-ea(s,e)))},i=>{let s=t.indexOf(i.ref);s!==-1&&t.splice(s,1)})}}});var xm=Ao((vG,Dl)=>{"use strict";var sC=Object.prototype.hasOwnProperty,Zt="~";function Rs(){}Object.create&&(Rs.prototype=Object.create(null),new Rs().__proto__||(Zt=!1));function nC(r,t,e){this.fn=r,this.context=t,this.once=e||!1}function gm(r,t,e,i,s){if(typeof e!="function")throw new TypeError("The listener must be a function");var n=new nC(e,i||r,s),o=Zt?Zt+t:t;return r._events[o]?r._events[o].fn?r._events[o]=[r._events[o],n]:r._events[o].push(n):(r._events[o]=n,r._eventsCount++),r}function ra(r,t){--r._eventsCount===0?r._events=new Rs:delete r._events[t]}function Vt(){this._events=new Rs,this._eventsCount=0}Vt.prototype.eventNames=function(){var t=[],e,i;if(this._eventsCount===0)return t;for(i in e=this._events)sC.call(e,i)&&t.push(Zt?i.slice(1):i);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};Vt.prototype.listeners=function(t){var e=Zt?Zt+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var s=0,n=i.length,o=new Array(n);s<n;s++)o[s]=i[s].fn;return o};Vt.prototype.listenerCount=function(t){var e=Zt?Zt+t:t,i=this._events[e];return i?i.fn?1:i.length:0};Vt.prototype.emit=function(t,e,i,s,n,o){var a=Zt?Zt+t:t;if(!this._events[a])return!1;var u=this._events[a],l=arguments.length,c,h;if(u.fn){switch(u.once&&this.removeLi
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
.graph > h3 {
|
||
|
font-size: 1rem;
|
||
|
margin: 0;
|
||
|
}
|
||
|
.graph > .graph-outer {
|
||
|
border-radius: 5px;
|
||
|
border: 1px solid var(--lightgray);
|
||
|
box-sizing: border-box;
|
||
|
height: 250px;
|
||
|
margin: 0.5em 0;
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
.graph > .graph-outer > #global-graph-icon {
|
||
|
cursor: pointer;
|
||
|
background: none;
|
||
|
border: none;
|
||
|
color: var(--dark);
|
||
|
opacity: 0.5;
|
||
|
width: 24px;
|
||
|
height: 24px;
|
||
|
position: absolute;
|
||
|
padding: 0.2rem;
|
||
|
margin: 0.3rem;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
border-radius: 4px;
|
||
|
background-color: transparent;
|
||
|
transition: background-color 0.5s ease;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
.graph > .graph-outer > #global-graph-icon:hover {
|
||
|
background-color: var(--lightgray);
|
||
|
}
|
||
|
.graph > #global-graph-outer {
|
||
|
position: fixed;
|
||
|
z-index: 9999;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 100vw;
|
||
|
height: 100%;
|
||
|
backdrop-filter: blur(4px);
|
||
|
display: none;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
.graph > #global-graph-outer.active {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
.graph > #global-graph-outer > #global-graph-container {
|
||
|
border: 1px solid var(--lightgray);
|
||
|
background-color: var(--light);
|
||
|
border-radius: 5px;
|
||
|
box-sizing: border-box;
|
||
|
position: fixed;
|
||
|
top: 50%;
|
||
|
left: 50%;
|
||
|
transform: translate(-50%, -50%);
|
||
|
height: 80vh;
|
||
|
width: 80vw;
|
||
|
}
|
||
|
@media all and not ((min-width: 1200px)) {
|
||
|
.graph > #global-graph-outer > #global-graph-container {
|
||
|
width: 90%;
|
||
|
}
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwiZ3JhcGguc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ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cbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuXG4gICAgJiA+ICNnbG9iYWwtZ3JhcGgtaWNvbiB7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICBiYWNrZ3JvdW5kOiBub25lO1xuICAgICAgYm9yZGVyOiBub25lO1xuICAgICAgY29sb3I6IHZhcigtLWRhcmspO1xuICAgICAgb3BhY2l0eTogMC41O1xuICAgICAgd2lkdGg6IDI0cHg7XG4gICAgICBoZWlnaHQ6IDI0cHg7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBwYWRkaW5nOiAwLjJyZW07XG4gICAgICBtYXJnaW46IDAuM3JlbTtcbiAgICAgIHRvcDogMDtcbiAgICAgIHJpZ2h0OiAwO1xuICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuNXMgZWFzZTtcbiAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiA
|
||
|
s-3.542,0.634-4.898,1.688l-7.669-7.669C16.785,10.424,17,9.74,17,9c0-2.206-1.794-4-4-4S9,6.794,9,9s1.794,4,4,4
|
||
|
c0.74,0,1.424-0.215,2.019-0.567l7.669,7.669C21.634,21.458,21,23.154,21,25s0.634,3.542,1.688,4.897L10.024,42.562
|
||
|
C8.958,41.595,7.549,41,6,41c-3.309,0-6,2.691-6,6s2.691,6,6,6s6-2.691,6-6c0-1.035-0.263-2.009-0.726-2.86l12.829-12.829
|
||
|
c1.106,0.86,2.44,1.436,3.898,1.619v10.16c-2.833,0.478-5,2.942-5,5.91c0,3.309,2.691,6,6,6s6-2.691,6-6c0-2.967-2.167-5.431-5-5.91
|
||
|
v-10.16c1.458-0.183,2.792-0.759,3.898-1.619l7.669,7.669C41.215,39.576,41,40.26,41,41c0,2.206,1.794,4,4,4s4-1.794,4-4
|
||
|
s-1.794-4-4-4c-0.74,0-1.424,0.215-2.019,0.567l-7.669-7.669C36.366,28.542,37,26.846,37,25s-0.634-3.542-1.688-4.897l9.665-9.665
|
||
|
C46.042,11.405,47.451,12,49,12c3.309,0,6-2.691,6-6S52.309,0,49,0z M11,9c0-1.103,0.897-2,2-2s2,0.897,2,2s-0.897,2-2,2
|
||
|
S11,10.103,11,9z M6,51c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S8.206,51,6,51z M33,49c0,2.206-1.794,4-4,4s-4-1.794-4-4
|
||
|
s1.794-4,4-4S33,46.794,33,49z M29,31c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S32.309,31,29,31z M47,41c0,1.103-0.897,2-2,2
|
||
|
s-2-0.897-2-2s0.897-2,2-2S47,39.897,47,41z M49,10c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S51.206,10,49,10z`})})})]}),jsx24("div",{id:"global-graph-outer",children:jsx24("div",{id:"global-graph-container","data-cfg":JSON.stringify(globalGraph)})})]})},"Graph");return Graph.css=graph_default,Graph.afterDOMLoaded=graph_inline_default,Graph},"default");var backlinks_default=`/**
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
.backlinks {
|
||
|
flex-direction: column;
|
||
|
/*&:after {
|
||
|
pointer-events: none;
|
||
|
content: "";
|
||
|
width: 100%;
|
||
|
height: 50px;
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
bottom: 0;
|
||
|
opacity: 1;
|
||
|
transition: opacity 0.3s ease;
|
||
|
background: linear-gradient(transparent 0px, var(--light));
|
||
|
}*/
|
||
|
}
|
||
|
.backlinks > h3 {
|
||
|
font-size: 1rem;
|
||
|
margin: 0;
|
||
|
}
|
||
|
.backlinks > ul {
|
||
|
list-style: none;
|
||
|
padding: 0;
|
||
|
margin: 0.5rem 0;
|
||
|
}
|
||
|
.backlinks > ul > li > a {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
.backlinks > .overflow {
|
||
|
height: auto;
|
||
|
}
|
||
|
.backlinks > .overflow:after {
|
||
|
display: none;
|
||
|
}
|
||
|
@media all and not ((min-width: 1200px)) {
|
||
|
.backlinks > .overflow {
|
||
|
height: 250px;
|
||
|
}
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwiYmFja2xpbmtzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUNFQTtFQUNFO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQWFBO0VBQ0U7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTs7QUFHRTtFQUNFOztBQUtOO0VBSUU7O0FBSEE7RUFDRTs7QUFHRjtFQUxGO0lBTUkiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIExheW91dCBicmVha3BvaW50c1xuICogJG1vYmlsZTogc2NyZWVuIHdpZHRoIGJlbG93IHRoaXMgdmFsdWUgd2lsbCB1c2UgbW9iaWxlIHN0eWxlc1xuICogJGRlc2t0b3A6IHNjcmVlbiB3aWR0aCBhYm92ZSB0aGlzIHZhbHVlIHdpbGwgdXNlIGRlc2t0b3Agc3R5bGVzXG4gKiBTY3JlZW4gd2lkdGggYmV0d2VlbiAkbW9iaWxlIGFuZCAkZGVza3RvcCB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xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAvKiY6YWZ0ZXIge1xuICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gICAgICBjb250ZW50OiBcIlwiO1xuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICBoZWlnaHQ6IDUwcHg7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBsZWZ0OiAwO1xuICAgICAgYm90dG9tOiAwO1xuICAgICAgb3BhY2l0eTogMTtcbiAgICAgIHRyYW5zaXRpb246IG9wYWNpdHkgMC4zcyBlYXNlO1xuICAgICAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KHRyYW5zcGFyZW50IDBweCwgdmFyKC0tbGlnaHQpKTtcbiAgICB9Ki9cblxuICAmID4gaDMge1xuICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICBtYXJnaW46IDA7XG4gIH1cblxuICAmID4gdWwge1xuICAgIGxpc3Qtc3R5bGU6IG5vbmU7XG4gICAgcGFkZGluZzogMDtcbiAgICBtYXJnaW46IDAuNXJlbSAwO1xuXG4gICAgJiA+IGxpIHtcbiAgICAgICYgPiBhIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgJiA+IC5vdmVyZmxvdyB7XG4gICAgJjphZnRlciB7XG4gICAgICBkaXNwbGF5OiBub25lO1xuICAgIH1cbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgQG1lZGlhIGFsbCBhbmQgbm90ICgkZGVza3RvcCkge1xuICAgICAgaGVpZ2h0OiAyNTBweDtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */`;import{jsx as jsx25,jsxs as jsxs14}from"preact/jsx-runtime";var defaultOptions16={hideWhenEmpty:!0},Backlinks_default=__name(opts=>{le
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
.search {
|
||
|
min-width: fit-content;
|
||
|
max-width: 14rem;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.search {
|
||
|
flex-grow: 0.3;
|
||
|
}
|
||
|
}
|
||
|
.search > .search-button {
|
||
|
background-color: var(--lightgray);
|
||
|
border: none;
|
||
|
border-radius: 4px;
|
||
|
font-family: inherit;
|
||
|
font-size: inherit;
|
||
|
height: 2rem;
|
||
|
padding: 0;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
text-align: inherit;
|
||
|
cursor: pointer;
|
||
|
white-space: nowrap;
|
||
|
width: 100%;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
.search > .search-button > p {
|
||
|
display: inline;
|
||
|
padding: 0 1rem;
|
||
|
}
|
||
|
.search > .search-button svg {
|
||
|
cursor: pointer;
|
||
|
width: 18px;
|
||
|
min-width: 18px;
|
||
|
margin: 0 0.5rem;
|
||
|
}
|
||
|
.search > .search-button svg .search-path {
|
||
|
stroke: var(--darkgray);
|
||
|
stroke-width: 2px;
|
||
|
transition: stroke 0.5s ease;
|
||
|
}
|
||
|
.search > #search-container {
|
||
|
position: fixed;
|
||
|
contain: layout;
|
||
|
z-index: 999;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
overflow-y: auto;
|
||
|
display: none;
|
||
|
backdrop-filter: blur(4px);
|
||
|
}
|
||
|
.search > #search-container.active {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
.search > #search-container > #search-space {
|
||
|
width: 65%;
|
||
|
margin-top: 12vh;
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
@media all and not ((min-width: 1200px)) {
|
||
|
.search > #search-container > #search-space {
|
||
|
width: 90%;
|
||
|
}
|
||
|
}
|
||
|
.search > #search-container > #search-space > * {
|
||
|
width: 100%;
|
||
|
border-radius: 7px;
|
||
|
background: var(--light);
|
||
|
box-shadow: 0 14px 50px rgba(27, 33, 48, 0.12), 0 10px 30px rgba(27, 33, 48, 0.16);
|
||
|
margin-bottom: 2em;
|
||
|
}
|
||
|
.search > #search-container > #search-space > input {
|
||
|
box-sizing: border-box;
|
||
|
padding: 0.5em 1em;
|
||
|
font-family: var(--bodyFont);
|
||
|
color: var(--dark);
|
||
|
font-size: 1.1em;
|
||
|
border: 1px solid var(--lightgray);
|
||
|
}
|
||
|
.search > #search-container > #search-space > input:focus {
|
||
|
outline: none;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout {
|
||
|
display: none;
|
||
|
flex-direction: row;
|
||
|
border: 1px solid var(--lightgray);
|
||
|
flex: 0 0 100%;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout.display-results {
|
||
|
display: flex;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout[data-preview] > #results-container {
|
||
|
flex: 0 0 min(30%, 450px);
|
||
|
}
|
||
|
@media all and not ((max-width: 800px)) {
|
||
|
.search > #search-container > #search-space > #search-layout[data-preview] .result-card > p.preview {
|
||
|
display: none;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout[data-preview] > div:first-child {
|
||
|
border-right: 1px solid var(--lightgray);
|
||
|
border-top-right-radius: unset;
|
||
|
border-bottom-right-radius: unset;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout[data-preview] > div:last-child {
|
||
|
border-top-left-radius: unset;
|
||
|
border-bottom-left-radius: unset;
|
||
|
}
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > div {
|
||
|
height: 63vh;
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.search > #search-container > #search-space > #search-layout > #preview-container {
|
||
|
display: none !important;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout[data-preview] > #results-container {
|
||
|
width: 100%;
|
||
|
height: auto;
|
||
|
flex: 0 0 100%;
|
||
|
}
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout .highlight {
|
||
|
background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));
|
||
|
border-radius: 5px;
|
||
|
scroll-margin-top: 2rem;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #preview-container {
|
||
|
display: block;
|
||
|
overflow: hidden;
|
||
|
font-family: inherit;
|
||
|
color: var(--dark);
|
||
|
line-height: 1.5em;
|
||
|
font-weight: 400;
|
||
|
overflow-y: auto;
|
||
|
padding: 0 2rem;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #preview-container .preview-inner {
|
||
|
margin: 0 auto;
|
||
|
width: min(800px, 100%);
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #preview-container a[role=anchor] {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container {
|
||
|
overflow-y: auto;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card {
|
||
|
overflow: hidden;
|
||
|
padding: 1em;
|
||
|
cursor: pointer;
|
||
|
transition: background 0.2s ease;
|
||
|
border-bottom: 1px solid var(--lightgray);
|
||
|
width: 100%;
|
||
|
display: block;
|
||
|
box-sizing: border-box;
|
||
|
font-family: inherit;
|
||
|
font-size: 100%;
|
||
|
line-height: 1.15;
|
||
|
margin: 0;
|
||
|
text-transform: none;
|
||
|
text-align: left;
|
||
|
outline: none;
|
||
|
font-weight: inherit;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card:hover, .search > #search-container > #search-space > #search-layout > #results-container .result-card:focus, .search > #search-container > #search-space > #search-layout > #results-container .result-card.focus {
|
||
|
background: var(--lightgray);
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card > h3 {
|
||
|
margin: 0;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card > ul.tags {
|
||
|
margin-top: 0.45rem;
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card > ul > li > p {
|
||
|
border-radius: 8px;
|
||
|
background-color: var(--highlight);
|
||
|
padding: 0.2rem 0.4rem;
|
||
|
margin: 0 0.1rem;
|
||
|
line-height: 1.4rem;
|
||
|
font-weight: 700;
|
||
|
color: var(--secondary);
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card > ul > li > p.match-tag {
|
||
|
color: var(--tertiary);
|
||
|
}
|
||
|
.search > #search-container > #search-space > #search-layout > #results-container .result-card > p {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwic2VhcmNoLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUNFQTtFQUNFO0VBQ0E7O0FBQ0E7RUFIRjtJQUlJOzs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBO0VBQ0E7O0FBS047RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VB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JsZXMuc2Nzc1wiIGFzICo7XG5cbi5zZWFyY2gge1xuICBtaW4td2lkdGg6IGZpdC1jb250ZW50O1xuICBtYXgtd2lkdGg6IDE0cmVtO1xuICBAbWVkaWEgYWxsIGFuZCAoJG1vYmlsZSkge1xuICAgIGZsZXgtZ3JvdzogMC4zO1xuICB9XG5cbiAgJiA+IC5zZWFyY2gtYnV0dG9uIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB
|
||
|
text-align: left;
|
||
|
margin-bottom: 4rem;
|
||
|
opacity: 0.7;
|
||
|
}
|
||
|
footer ul {
|
||
|
list-style: none;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
gap: 1rem;
|
||
|
margin-top: -1rem;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiZm9vdGVyLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQSIsInNvdXJjZXNDb250ZW50IjpbImZvb3RlciB7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIG1hcmdpbi1ib3R0b206IDRyZW07XG4gIG9wYWNpdHk6IDAuNztcblxuICAmIHVsIHtcbiAgICBsaXN0LXN0eWxlOiBub25lO1xuICAgIG1hcmdpbjogMDtcbiAgICBwYWRkaW5nOiAwO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IHJvdztcbiAgICBnYXA6IDFyZW07XG4gICAgbWFyZ2luLXRvcDogLTFyZW07XG4gIH1cbn1cbiJdfQ== */`;var version="4.4.0";import{jsx as jsx27,jsxs as jsxs16}from"preact/jsx-runtime";var Footer_default=__name(opts=>{let Footer=__name(({displayClass,cfg})=>{let year=new Date().getFullYear(),links=opts?.links??[];return jsxs16("footer",{class:`${displayClass??""}`,children:[jsxs16("p",{children:[i18n(cfg.locale).components.footer.createdWith," ",jsxs16("a",{href:"https://quartz.jzhao.xyz/",children:["Quartz v",version]})," \xA9 ",year]}),jsx27("ul",{children:Object.entries(links).map(([text,link])=>jsx27("li",{children:jsx27("a",{href:link,children:text})}))})]})},"Footer");return Footer.css=footer_default,Footer},"default");import{Fragment as Fragment5,jsx as jsx28}from"preact/jsx-runtime";var DesktopOnly_default=__name(component=>{if(component){let Component=component,DesktopOnly=__name(props=>jsx28(Component,{displayClass:"desktop-only",...props}),"DesktopOnly");return DesktopOnly.displayName=component.displayName,DesktopOnly.afterDOMLoaded=component?.afterDOMLoaded,DesktopOnly.beforeDOMLoaded=component?.beforeDOMLoaded,DesktopOnly.css=component?.css,DesktopOnly}else return()=>jsx28(Fragment5,{})},"default");import{Fragment as Fragment6,jsx as jsx29}from"preact/jsx-runtime";var MobileOnly_default=__name(component=>{if(component){let Component=component,MobileOnly=__name(props=>jsx29(Component,{displayClass:"mobile-only",...props}),"MobileOnly");return MobileOnly.displayName=component.displayName,MobileOnly.afterDOMLoaded=component?.afterDOMLoaded,MobileOnly.beforeDOMLoaded=component?.beforeDOMLoaded,MobileOnly.css=component?.css,MobileOnly}else return()=>jsx29(Fragment6,{})},"default");import{jsx as jsx30,jsxs as jsxs17}from"preact/jsx-runtime";var breadcrumbs_default=`.breadcrumb-container {
|
||
|
margin: 0;
|
||
|
margin-top: 0.75rem;
|
||
|
padding: 0;
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
flex-wrap: wrap;
|
||
|
gap: 0.5rem;
|
||
|
}
|
||
|
|
||
|
.breadcrumb-element {
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
.breadcrumb-element p {
|
||
|
margin: 0;
|
||
|
margin-left: 0.5rem;
|
||
|
padding: 0;
|
||
|
line-height: normal;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiYnJlYWRjcnVtYnMuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOzs7QUFHRjtFQU9FO0VBQ0E7RUFDQTtFQUNBOztBQVRBO0VBQ0U7RUFDQTtFQUNBO0VBQ0EiLCJzb3VyY2VzQ29udGVudCI6WyIuYnJlYWRjcnVtYi1jb250YWluZXIge1xuICBtYXJnaW46IDA7XG4gIG1hcmdpbi10b3A6IDAuNzVyZW07XG4gIHBhZGRpbmc6IDA7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gIGZsZXgtd3JhcDogd3JhcDtcbiAgZ2FwOiAwLjVyZW07XG59XG5cbi5icmVhZGNydW1iLWVsZW1lbnQge1xuICBwIHtcbiAgICBtYXJnaW46IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDAuNXJlbTtcbiAgICBwYWRkaW5nOiAwO1xuICAgIGxpbmUtaGVpZ2h0OiBub3JtYWw7XG4gIH1cbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IHJvdztcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG4iXX0= */`;import{Fragment as Fragment7,jsx as jsx31,jsxs as jsxs18}from"preact/jsx-runtime";var defaultOptions18={spacerSymbol:"\u276F",rootName:"Home",resolveFrontmatterTitle:!0,hideOnRoot:!0,showCurrentPage:!0};function formatCrumb(displayName,baseSlug,currentSlug){return{displayName:displayName.replaceAll("-"," "),path:resolveRelative(baseSlug,currentSlug)}}__name(formatCrumb,"formatCrumb");var Breadcrumbs_default=__name(opts=>{let options2={...defaultOptions18,...opts},folderIndex,Breadcrumbs=__name(({fileData,allFiles,displayClass})=>{if(options2.hideOnRoot&&fileData.slug==="index")return jsx31(Fragment7,{});let crumbs=[formatCrumb(options2.rootName,fileData.slug,"/")];if(!folderIndex&&options2.resolveFrontmatterTitle){folderIndex=new Map;for(let file of allFiles){let folderParts=file.slug?.split("/");folderParts?.at(-1)==="index"&&folderIndex.set(folderParts.slice(0,-1).join("/"),file)}}let slugParts=fileData.slug?.split("/");if(slugParts){let isTagPath=slugParts[0]==="tags",currentPath="";for(let i=0;i<slugParts.length-1;i++){let curPathSegment=slugParts[i],currentFile=folderIndex?.get(slugParts.slice(0,i+1).join("/"));if(currentFile){let title=currentFile.frontmatter.title;title!=="index"&&(curPathSegment=title)}currentPath=joinSegments(currentPath,slugParts[i]);let includeTrailingSlash=!isTagPath||i<1,crumb=formatCrumb(curPathSegment,fileData.slug,currentPath+(includeTrailingSlash?"/":""));crumbs.push(crumb)}options2.showCurrentPage&&slugParts.at(-1)!=="index"&&crumbs.push({displayName:fileData.frontmatter.title,path:""})}return jsx31("nav",{class:classNames(displayClass,"breadcrumb-container"),"aria-label":"breadcrumbs",children:crumbs.map((crumb,index)=>jsxs18("div",{class:"breadcrumb-element",children:[jsx31("a",{href:crumb.path,children:crumb.displayName}),index!==crumbs.length-1&&jsx31("p",{children:` ${options2.spacerSymbol} `})]}))})},"Breadcrumbs");return Breadcrumbs.css=breadcrumbs_default,Breadcrumbs},"default");import{Fragment as Fragment8,jsx as jsx32}from"preact/jsx-runtime";var sharedPageComponents={head:Head_default(),header:[],afterBody:[],footer:Footer_default({links:{GitHub:"https://github.com/jackyzha0/quartz","Discord Community":"https://discord.gg/cRFFHYye7t"}})},defaultContentPageLayout={beforeBody:[Breadcrumbs_default(),ArticleTitle_default(),ContentMeta_default(),TagList_default()],left:[PageTitle_default(),MobileOnly_default(Spacer_default()),Search_default(),Darkmode_default(),DesktopOnly_default(Explorer_default())],right:[Graph_default(),DesktopOnly_default(TableOfContents_default()),Backlinks_default()]},defaultListPageLayout={beforeBody:[Breadcrumbs_default(),ArticleTitle_default(),ContentMeta_default()],left:[PageTitle_default(),MobileOnly_default(Spacer_default()),Search_default(),Darkmode_default(),DesktopOnly_default(Explorer_default())],right:[]};import chalk4 from"chalk";import path6 from"path";import fs3 from"fs";var write=__name(async({ctx,slug,ext,content})=>{let pathToPage=joinSegments(ctx.argv.output,slug+ext),dir=path6.dirname(pathToPage);return await fs3.promises.mkdir(dir,{recursive:!0}),await fs3.promises.writeFile(pathToPage,content),pathToPage},"write");var DepGraph=class{sta
|
||
|
Warning: you seem to be missing an \`index.md\` home page file at the root of your \`${ctx.argv.directory}\` folder. This may cause errors when deploying.`)),fps}}},"ContentPage");import{VFile}from"vfile";function defaultProcessedContent(vfileData){let root={type:"root",children:[]},vfile=new VFile("");return vfile.data=vfileData,[root,vfile]}__name(defaultProcessedContent,"defaultProcessedContent");var TagPage=__name(userOpts=>{let opts={...sharedPageComponents,...defaultListPageLayout,pageBody:TagContent_default({sort:userOpts?.sort}),...userOpts},{head:Head,header,beforeBody,pageBody,afterBody,left,right,footer:Footer}=opts,Header2=Header_default(),Body2=Body_default();return{name:"TagPage",getQuartzComponents(){return[Head,Header2,Body2,...header,...beforeBody,pageBody,...afterBody,...left,...right,Footer]},async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph;for(let[_tree,file]of content){let sourcePath=file.data.filePath,tags=(file.data.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes);tags.length>0&&tags.push("index");for(let tag of tags)graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"tags",tag+".html"))}return graph},async emit(ctx,content,resources){let fps=[],allFiles=content.map(c=>c[1].data),cfg=ctx.cfg.configuration,tags=new Set(allFiles.flatMap(data=>data.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes));tags.add("index");let tagDescriptions=Object.fromEntries([...tags].map(tag=>{let title=tag==="index"?i18n(cfg.locale).pages.tagContent.tagIndex:`${i18n(cfg.locale).pages.tagContent.tag}: ${tag}`;return[tag,defaultProcessedContent({slug:joinSegments("tags",tag),frontmatter:{title,tags:[]}})]}));for(let[tree,file]of content){let slug=file.data.slug;if(slug.startsWith("tags/")){let tag=slug.slice(5);tags.has(tag)&&(tagDescriptions[tag]=[tree,file],file.data.frontmatter?.title===tag&&(file.data.frontmatter.title=`${i18n(cfg.locale).pages.tagContent.tag}: ${tag}`))}}for(let tag of tags){let slug=joinSegments("tags",tag),externalResources=pageResources(pathToRoot(slug),resources),[tree,file]=tagDescriptions[tag],componentData={ctx,fileData:file.data,externalResources,cfg,children:[],tree,allFiles},content2=renderPage(cfg,slug,componentData,opts,externalResources),fp=await write({ctx,content:content2,slug:file.data.slug,ext:".html"});fps.push(fp)}return fps}}},"TagPage");import path8 from"path";var FolderPage=__name(userOpts=>{let opts={...sharedPageComponents,...defaultListPageLayout,pageBody:FolderContent_default({sort:userOpts?.sort}),...userOpts},{head:Head,header,beforeBody,pageBody,afterBody,left,right,footer:Footer}=opts,Header2=Header_default(),Body2=Body_default();return{name:"FolderPage",getQuartzComponents(){return[Head,Header2,Body2,...header,...beforeBody,pageBody,...afterBody,...left,...right,Footer]},async getDependencyGraph(_ctx,content,_resources){let graph=new DepGraph;return content.map(([_tree,vfile])=>{let slug=vfile.data.slug,folderName=path8.dirname(slug??"");slug&&folderName!=="."&&folderName!=="tags"&&graph.addEdge(vfile.data.filePath,joinSegments(folderName,"index.html"))}),graph},async emit(ctx,content,resources){let fps=[],allFiles=content.map(c=>c[1].data),cfg=ctx.cfg.configuration,folders=new Set(allFiles.flatMap(data=>data.slug?_getFolders(data.slug).filter(folderName=>folderName!=="."&&folderName!=="tags"):[])),folderDescriptions=Object.fromEntries([...folders].map(folder=>[folder,defaultProcessedContent({slug:joinSegments(folder,"index"),frontmatter:{title:`${i18n(cfg.locale).pages.folderContent.folder}: ${folder}`,tags:[]}})]));for(let[tree,file]of content){let slug=stripSlashes(simplifySlug(file.data.slug));folders.has(slug)&&(folderDescriptions[slug]=[tree,file])}for(let folder of folders){let slug=joinSegments(folder,"index"),externalResources=pageResources(pathToRoot(slug),resources),[tree,file]=folderDescriptions[folder],componentData={ctx,fileData:file.data,externalResources,cfg,children:[],tree,allFiles},content2=renderPage(cfg,slug,componentData,opts,externalResources),fp=await write({ctx,content:content2,slug,ext:".html"});fps.push(fp)}
|
||
|
<loc>https://${joinSegments(base,encodeURI(slug))}</loc>
|
||
|
${content.date&&`<lastmod>${content.date.toISOString()}</lastmod>`}
|
||
|
</url>`,"createURLEntry");return`<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">${Array.from(idx).map(([slug,content])=>createURLEntry(simplifySlug(slug),content)).join("")}</urlset>`}__name(generateSiteMap,"generateSiteMap");function generateRSSFeed(cfg,idx,limit){let base=cfg.baseUrl??"",createURLEntry=__name((slug,content)=>`<item>
|
||
|
<title>${escapeHTML(content.title)}</title>
|
||
|
<link>https://${joinSegments(base,encodeURI(slug))}</link>
|
||
|
<guid>https://${joinSegments(base,encodeURI(slug))}</guid>
|
||
|
<description>${content.richContent??content.description}</description>
|
||
|
<pubDate>${content.date?.toUTCString()}</pubDate>
|
||
|
</item>`,"createURLEntry"),items=Array.from(idx).sort(([_,f1],[__,f2])=>f1.date&&f2.date?f2.date.getTime()-f1.date.getTime():f1.date&&!f2.date?-1:!f1.date&&f2.date?1:f1.title.localeCompare(f2.title)).map(([slug,content])=>createURLEntry(simplifySlug(slug),content)).slice(0,limit??idx.size).join("");return`<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<rss version="2.0">
|
||
|
<channel>
|
||
|
<title>${escapeHTML(cfg.pageTitle)}</title>
|
||
|
<link>https://${base}</link>
|
||
|
<description>${limit?i18n(cfg.locale).pages.rss.lastFewNotes({count:limit}):i18n(cfg.locale).pages.rss.recentNotes} on ${escapeHTML(cfg.pageTitle)}</description>
|
||
|
<generator>Quartz -- quartz.jzhao.xyz</generator>
|
||
|
${items}
|
||
|
</channel>
|
||
|
</rss>`}__name(generateRSSFeed,"generateRSSFeed");var ContentIndex=__name(opts=>(opts={...defaultOptions19,...opts},{name:"ContentIndex",async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph;for(let[_tree,file]of content){let sourcePath=file.data.filePath;graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"static/contentIndex.json")),opts?.enableSiteMap&&graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"sitemap.xml")),opts?.enableRSS&&graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"index.xml"))}return graph},async emit(ctx,content,_resources){let cfg=ctx.cfg.configuration,emitted=[],linkIndex=new Map;for(let[tree,file]of content){let slug=file.data.slug,date=getDate(ctx.cfg.configuration,file.data)??new Date;(opts?.includeEmptyFiles||file.data.text&&file.data.text!=="")&&linkIndex.set(slug,{title:file.data.frontmatter?.title,links:file.data.links??[],tags:file.data.frontmatter?.tags??[],content:file.data.text??"",richContent:opts?.rssFullHtml?escapeHTML(toHtml2(tree,{allowDangerousHtml:!0})):void 0,date,description:file.data.description??""})}opts?.enableSiteMap&&emitted.push(await write({ctx,content:generateSiteMap(cfg,linkIndex),slug:"sitemap",ext:".xml"})),opts?.enableRSS&&emitted.push(await write({ctx,content:generateRSSFeed(cfg,linkIndex,opts.rssLimit),slug:"index",ext:".xml"}));let fp=joinSegments("static","contentIndex"),simplifiedIndex=Object.fromEntries(Array.from(linkIndex).map(([slug,content2])=>(delete content2.description,delete content2.date,[slug,content2])));return emitted.push(await write({ctx,content:JSON.stringify(simplifiedIndex),slug:fp,ext:".json"})),emitted},getQuartzComponents:__name(()=>[],"getQuartzComponents")}),"ContentIndex");import path9 from"path";var AliasRedirects=__name(()=>({name:"AliasRedirects",getQuartzComponents(){return[]},async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph,{argv}=ctx;for(let[_tree,file]of content){let dir=path9.posix.relative(argv.directory,path9.dirname(file.data.filePath)),slugs=(file.data.frontmatter?.aliases??[]).map(alias=>path9.posix.join(dir,alias)),permalink=file.data.frontmatter?.permalink;typeof permalink=="string"&&slugs.push(permalink);for(let slug of slugs)slug.endsWith("/")&&(slug=joinSegments(slug,"index")),graph.addEdge(file.data.filePath,joinSegments(argv.output,slug+".html"))}return graph},async emit(ctx,content,_resources){let{argv}=ctx,fps=[];for(let[_tree,file]of content){let ogSlug=simplifySlug(file.data.slug),dir=path9.posix.relative(argv.directory,path9.dirname(file.data.filePath)),slugs=(file.data.frontmatter?.aliases??[]).map(alias=>path9.posix.join(dir,alias)),permalink=file.data.frontmatter?.permalink;typeof permalink=="string"&&slugs.push(permalink);for(let slug of slugs){slug.endsWith("/")&&(slug=joinSegments(slug,"index"));let redirUrl=resolveRelative(slug,file.data.slug),fp=await write({ctx,content:`
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en-us">
|
||
|
<head>
|
||
|
<title>${ogSlug}</title>
|
||
|
<link rel="canonical" href="${redirUrl}">
|
||
|
<meta name="robots" content="noindex">
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="refresh" content="0; url=${redirUrl}">
|
||
|
</head>
|
||
|
</html>
|
||
|
`,slug,ext:".html"});fps.push(fp)}}return fps}}),"AliasRedirects");import path11 from"path";import fs4 from"fs";import path10 from"path";import{globby}from"globby";function toPosixPath(fp){return fp.split(path10.sep).join("/")}__name(toPosixPath,"toPosixPath");async function glob(pattern,cwd,ignorePatterns){return(await globby(pattern,{cwd,ignore:ignorePatterns,gitignore:!0})).map(toPosixPath)}__name(glob,"glob");var filesToCopy=__name(async(argv,cfg)=>await glob("**",argv.directory,["**/*.md",...cfg.configuration.ignorePatterns]),"filesToCopy"),Assets=__name(()=>({name:"Assets",getQuartzComponents(){return[]},async getDependencyGraph(ctx,_content,_resources){let{argv,cfg}=ctx,graph=new DepGraph,fps=await filesToCopy(argv,cfg);for(let fp of fps){let ext=path11.extname(fp),src=joinSegments(argv.directory,fp),name=slugifyFilePath(fp,!0)+ext,dest=joinSegments(argv.output,name);graph.addEdge(src,dest)}return graph},async emit({argv,cfg},_content,_resources){let assetsPath=argv.output,fps=await filesToCopy(argv,cfg),res=[];for(let fp of fps){let ext=path11.extname(fp),src=joinSegments(argv.directory,fp),name=slugifyFilePath(fp,!0)+ext,dest=joinSegments(assetsPath,name),dir=path11.dirname(dest);await fs4.promises.mkdir(dir,{recursive:!0}),await fs4.promises.copyFile(src,dest),res.push(dest)}return res}}),"Assets");import fs5 from"fs";var Static=__name(()=>({name:"Static",getQuartzComponents(){return[]},async getDependencyGraph({argv,cfg},_content,_resources){let graph=new DepGraph,staticPath=joinSegments(QUARTZ,"static"),fps=await glob("**",staticPath,cfg.configuration.ignorePatterns);for(let fp of fps)graph.addEdge(joinSegments("static",fp),joinSegments(argv.output,"static",fp));return graph},async emit({argv,cfg},_content,_resources){let staticPath=joinSegments(QUARTZ,"static"),fps=await glob("**",staticPath,cfg.configuration.ignorePatterns);return await fs5.promises.cp(staticPath,joinSegments(argv.output,"static"),{recursive:!0,dereference:!0}),fps.map(fp=>joinSegments(argv.output,"static",fp))}}),"Static");var spa_inline_default='var $=Object.create;var R=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var q=(u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports);var z=(u,e,t,D)=>{if(e&&typeof e=="object"||typeof e=="function")for(let F of _(e))!V.call(u,F)&&F!==t&&R(u,F,{get:()=>e[F],enumerable:!(D=W(e,F))||D.enumerable});return u};var K=(u,e,t)=>(t=u!=null?$(I(u)):{},z(e||!u||!u.__esModule?R(t,"default",{value:u,enumerable:!0}):t,u));var k=q((Bu,j)=>{"use strict";j.exports=uu;function f(u){return u instanceof Buffer?Buffer.from(u):new u.constructor(u.buffer.slice(),u.byteOffset,u.length)}function uu(u){if(u=u||{},u.circles)return eu(u);let e=new Map;if(e.set(Date,n=>new Date(n)),e.set(Map,(n,i)=>new Map(D(Array.from(n),i))),e.set(Set,(n,i)=>new Set(D(Array.from(n),i))),u.constructorHandlers)for(let n of u.constructorHandlers)e.set(n[0],n[1]);let t=null;return u.proto?l:F;function D(n,i){let r=Object.keys(n),o=new Array(r.length);for(let c=0;c<r.length;c++){let s=r[c],a=n[s];typeof a!="object"||a===null?o[s]=a:a.constructor!==Object&&(t=e.get(a.constructor))?o[s]=t(a,i):ArrayBuffer.isView(a)?o[s]=f(a):o[s]=i(a)}return o}function F(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return D(n,F);if(n.constructor!==Object&&(t=e.get(n.constructor)))return t(n,F);let i={};for(let r in n){if(Object.hasOwnProperty.call(n,r)===!1)continue;let o=n[r];typeof o!="object"||o===null?i[r]=o:o.constructor!==Object&&(t=e.get(o.constructor))?i[r]=t(o,F):ArrayBuffer.isView(o)?i[r]=f(o):i[r]=F(o)}return i}function l(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return D(n,l);if(n.constructor!==Object&&(t=e.get(n.constructor)))return t(n,l);let i={};for(let r in n){let o=n[r];typeof o!="object"||o===null?i[r]=o:o.constructor!==Object&&(t=e.get(o.constructor))?i[r]=t(o,l):ArrayBuffer.isView(o)?i[r]=f(o):i[r]=l(o)}return i}}function eu(u){let e=[],t=[],D=new Map;if(D.set(Date,r=>new Date(r)),D.
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
code[data-theme*=" "] {
|
||
|
color: var(--shiki-light);
|
||
|
background-color: var(--shiki-light-bg);
|
||
|
}
|
||
|
|
||
|
code[data-theme*=" "] span {
|
||
|
color: var(--shiki-light);
|
||
|
}
|
||
|
|
||
|
[saved-theme=dark] code[data-theme*=" "] {
|
||
|
color: var(--shiki-dark);
|
||
|
background-color: var(--shiki-dark-bg);
|
||
|
}
|
||
|
|
||
|
[saved-theme=dark] code[data-theme*=" "] span {
|
||
|
color: var(--shiki-dark);
|
||
|
}
|
||
|
|
||
|
.callout {
|
||
|
border: 1px solid var(--border);
|
||
|
background-color: var(--bg);
|
||
|
border-radius: 5px;
|
||
|
padding: 0 1rem;
|
||
|
overflow-y: hidden;
|
||
|
transition: max-height 0.3s ease;
|
||
|
box-sizing: border-box;
|
||
|
--callout-icon-note: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="2" x2="22" y2="6"></line><path d="M7.5 20.5 19 9l-4-4L3.5 16.5 2 22z"></path></svg>');
|
||
|
--callout-icon-abstract: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><path d="M12 11h4"></path><path d="M12 16h4"></path><path d="M8 11h.01"></path><path d="M8 16h.01"></path></svg>');
|
||
|
--callout-icon-info: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>');
|
||
|
--callout-icon-todo: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"></path><path d="m9 12 2 2 4-4"></path></svg>');
|
||
|
--callout-icon-tip: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path></svg> ');
|
||
|
--callout-icon-success: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg> ');
|
||
|
--callout-icon-question: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg> ');
|
||
|
--callout-icon-warning: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>');
|
||
|
--callout-icon-failure: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg> ');
|
||
|
--callout-icon-danger: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg> ');
|
||
|
--callout-icon-bug: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="14" x="8" y="6" rx="4"></rect><path d="m19 7-3 2"></path><path d="m5 7 3 2"></path><path d="m19 19-3-2"></path><path d="m5 19 3-2"></path><path d="M20 13h-4"></path><path d="M4 13h4"></path><path d="m10 4 1 2"></path><path d="m14 4-1 2"></path></svg>');
|
||
|
--callout-icon-example: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg> ');
|
||
|
--callout-icon-quote: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z"></path><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"></path></svg>');
|
||
|
--callout-icon-fold: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
|
||
|
}
|
||
|
.callout > .callout-content > :first-child {
|
||
|
margin-top: 0;
|
||
|
}
|
||
|
.callout[data-callout] {
|
||
|
--color: #448aff;
|
||
|
--border: #448aff44;
|
||
|
--bg: #448aff10;
|
||
|
--callout-icon: var(--callout-icon-note);
|
||
|
}
|
||
|
.callout[data-callout=abstract] {
|
||
|
--color: #00b0ff;
|
||
|
--border: #00b0ff44;
|
||
|
--bg: #00b0ff10;
|
||
|
--callout-icon: var(--callout-icon-abstract);
|
||
|
}
|
||
|
.callout[data-callout=info], .callout[data-callout=todo] {
|
||
|
--color: #00b8d4;
|
||
|
--border: #00b8d444;
|
||
|
--bg: #00b8d410;
|
||
|
--callout-icon: var(--callout-icon-info);
|
||
|
}
|
||
|
.callout[data-callout=todo] {
|
||
|
--callout-icon: var(--callout-icon-todo);
|
||
|
}
|
||
|
.callout[data-callout=tip] {
|
||
|
--color: #00bfa5;
|
||
|
--border: #00bfa544;
|
||
|
--bg: #00bfa510;
|
||
|
--callout-icon: var(--callout-icon-tip);
|
||
|
}
|
||
|
.callout[data-callout=success] {
|
||
|
--color: #09ad7a;
|
||
|
--border: #09ad7144;
|
||
|
--bg: #09ad7110;
|
||
|
--callout-icon: var(--callout-icon-success);
|
||
|
}
|
||
|
.callout[data-callout=question] {
|
||
|
--color: #dba642;
|
||
|
--border: #dba64244;
|
||
|
--bg: #dba64210;
|
||
|
--callout-icon: var(--callout-icon-question);
|
||
|
}
|
||
|
.callout[data-callout=warning] {
|
||
|
--color: #db8942;
|
||
|
--border: #db894244;
|
||
|
--bg: #db894210;
|
||
|
--callout-icon: var(--callout-icon-warning);
|
||
|
}
|
||
|
.callout[data-callout=failure], .callout[data-callout=danger], .callout[data-callout=bug] {
|
||
|
--color: #db4242;
|
||
|
--border: #db424244;
|
||
|
--bg: #db424210;
|
||
|
--callout-icon: var(--callout-icon-failure);
|
||
|
}
|
||
|
.callout[data-callout=bug] {
|
||
|
--callout-icon: var(--callout-icon-bug);
|
||
|
}
|
||
|
.callout[data-callout=danger] {
|
||
|
--callout-icon: var(--callout-icon-danger);
|
||
|
}
|
||
|
.callout[data-callout=example] {
|
||
|
--color: #7a43b5;
|
||
|
--border: #7a43b544;
|
||
|
--bg: #7a43b510;
|
||
|
--callout-icon: var(--callout-icon-example);
|
||
|
}
|
||
|
.callout[data-callout=quote] {
|
||
|
--color: var(--secondary);
|
||
|
--border: var(--lightgray);
|
||
|
--callout-icon: var(--callout-icon-quote);
|
||
|
}
|
||
|
.callout.is-collapsed > .callout-title > .fold-callout-icon {
|
||
|
transform: rotateZ(-90deg);
|
||
|
}
|
||
|
|
||
|
.callout-title {
|
||
|
display: flex;
|
||
|
align-items: flex-start;
|
||
|
gap: 5px;
|
||
|
padding: 1rem 0;
|
||
|
color: var(--color);
|
||
|
--icon-size: 18px;
|
||
|
}
|
||
|
.callout-title .fold-callout-icon {
|
||
|
transition: transform 0.15s ease;
|
||
|
opacity: 0.8;
|
||
|
cursor: pointer;
|
||
|
--callout-icon: var(--callout-icon-fold);
|
||
|
}
|
||
|
.callout-title > .callout-title-inner > p {
|
||
|
color: var(--color);
|
||
|
margin: 0;
|
||
|
}
|
||
|
.callout-title .callout-icon, .callout-title .fold-callout-icon {
|
||
|
width: var(--icon-size);
|
||
|
height: var(--icon-size);
|
||
|
flex: 0 0 var(--icon-size);
|
||
|
background-size: var(--icon-size) var(--icon-size);
|
||
|
background-position: center;
|
||
|
background-color: var(--color);
|
||
|
mask-image: var(--callout-icon);
|
||
|
mask-size: var(--icon-size) var(--icon-size);
|
||
|
mask-position: center;
|
||
|
mask-repeat: no-repeat;
|
||
|
padding: 0.2rem 0;
|
||
|
}
|
||
|
.callout-title .callout-title-inner {
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
|
||
|
html {
|
||
|
scroll-behavior: smooth;
|
||
|
text-size-adjust: none;
|
||
|
overflow-x: hidden;
|
||
|
width: 100vw;
|
||
|
}
|
||
|
|
||
|
body,
|
||
|
section {
|
||
|
margin: 0;
|
||
|
box-sizing: border-box;
|
||
|
background-color: var(--light);
|
||
|
font-family: var(--bodyFont);
|
||
|
color: var(--darkgray);
|
||
|
}
|
||
|
|
||
|
.text-highlight {
|
||
|
background-color: var(--textHighlight);
|
||
|
padding: 0 0.1rem;
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
|
||
|
::selection {
|
||
|
background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));
|
||
|
color: var(--darkgray);
|
||
|
}
|
||
|
|
||
|
p,
|
||
|
ul,
|
||
|
text,
|
||
|
a,
|
||
|
tr,
|
||
|
td,
|
||
|
li,
|
||
|
ol,
|
||
|
ul,
|
||
|
.katex,
|
||
|
.math {
|
||
|
color: var(--darkgray);
|
||
|
fill: var(--darkgray);
|
||
|
hyphens: auto;
|
||
|
}
|
||
|
|
||
|
p,
|
||
|
ul,
|
||
|
text,
|
||
|
a,
|
||
|
li,
|
||
|
ol,
|
||
|
ul,
|
||
|
.katex,
|
||
|
.math {
|
||
|
overflow-wrap: anywhere;
|
||
|
/* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
|
||
|
}
|
||
|
|
||
|
.math.math-display {
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
strong {
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
font-weight: 600;
|
||
|
text-decoration: none;
|
||
|
transition: color 0.2s ease;
|
||
|
color: var(--secondary);
|
||
|
}
|
||
|
a:hover {
|
||
|
color: var(--tertiary) !important;
|
||
|
}
|
||
|
a.internal {
|
||
|
text-decoration: none;
|
||
|
background-color: var(--highlight);
|
||
|
padding: 0 0.1rem;
|
||
|
border-radius: 5px;
|
||
|
line-height: 1.4rem;
|
||
|
}
|
||
|
a.internal:has(> img) {
|
||
|
background-color: transparent;
|
||
|
border-radius: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
a.internal.tag-link::before {
|
||
|
content: "#";
|
||
|
}
|
||
|
a.external .external-icon {
|
||
|
height: 1ex;
|
||
|
margin: 0 0.15em;
|
||
|
}
|
||
|
a.external .external-icon > path {
|
||
|
fill: var(--dark);
|
||
|
}
|
||
|
|
||
|
.desktop-only {
|
||
|
display: initial;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.desktop-only {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.mobile-only {
|
||
|
display: none;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.mobile-only {
|
||
|
display: initial;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.page {
|
||
|
max-width: calc(1200px + 300px);
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
.page article > h1 {
|
||
|
font-size: 2rem;
|
||
|
}
|
||
|
.page article li:has(> input[type=checkbox]) {
|
||
|
list-style-type: none;
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
.page article li:has(> input[type=checkbox]:checked) {
|
||
|
text-decoration: line-through;
|
||
|
text-decoration-color: var(--gray);
|
||
|
color: var(--gray);
|
||
|
}
|
||
|
.page article li > * {
|
||
|
margin-top: 0;
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
.page article p > strong {
|
||
|
color: var(--dark);
|
||
|
}
|
||
|
.page > #quartz-body {
|
||
|
display: grid;
|
||
|
grid-template-columns: 320px auto 320px;
|
||
|
grid-template-rows: auto auto auto;
|
||
|
column-gap: 5px;
|
||
|
row-gap: 5px;
|
||
|
grid-template-areas: "grid-sidebar-left grid-header grid-sidebar-right" "grid-sidebar-left grid-center grid-sidebar-right" "grid-sidebar-left grid-footer grid-sidebar-right";
|
||
|
}
|
||
|
@media all and ((min-width: 800px) and (max-width: 1200px)) {
|
||
|
.page > #quartz-body {
|
||
|
grid-template-columns: 320px auto;
|
||
|
grid-template-rows: auto auto auto auto;
|
||
|
column-gap: 5px;
|
||
|
row-gap: 5px;
|
||
|
grid-template-areas: "grid-sidebar-left grid-header" "grid-sidebar-left grid-center" "grid-sidebar-left grid-sidebar-right" "grid-sidebar-left grid-footer";
|
||
|
}
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.page > #quartz-body {
|
||
|
grid-template-columns: auto;
|
||
|
grid-template-rows: auto auto auto auto auto;
|
||
|
column-gap: 5px;
|
||
|
row-gap: 5px;
|
||
|
grid-template-areas: "grid-sidebar-left" "grid-header" "grid-center" "grid-sidebar-right" "grid-footer";
|
||
|
}
|
||
|
}
|
||
|
@media all and not ((min-width: 1200px)) {
|
||
|
.page > #quartz-body {
|
||
|
padding: 0 1rem;
|
||
|
}
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.page > #quartz-body {
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
}
|
||
|
.page > #quartz-body .sidebar {
|
||
|
gap: 2rem;
|
||
|
top: 0;
|
||
|
box-sizing: border-box;
|
||
|
padding: 6rem 2rem 2rem 2rem;
|
||
|
display: flex;
|
||
|
height: 100vh;
|
||
|
position: sticky;
|
||
|
}
|
||
|
.page > #quartz-body .sidebar.left {
|
||
|
z-index: 1;
|
||
|
grid-area: grid-sidebar-left;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.page > #quartz-body .sidebar.left {
|
||
|
gap: 0;
|
||
|
align-items: center;
|
||
|
position: initial;
|
||
|
display: flex;
|
||
|
height: unset;
|
||
|
flex-direction: row;
|
||
|
padding: 0;
|
||
|
padding-top: 2rem;
|
||
|
}
|
||
|
}
|
||
|
.page > #quartz-body .sidebar.right {
|
||
|
grid-area: grid-sidebar-right;
|
||
|
margin-right: 0;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.page > #quartz-body .sidebar.right {
|
||
|
margin-left: inherit;
|
||
|
margin-right: inherit;
|
||
|
}
|
||
|
}
|
||
|
@media all and not ((min-width: 1200px)) {
|
||
|
.page > #quartz-body .sidebar.right {
|
||
|
position: initial;
|
||
|
height: unset;
|
||
|
width: 100%;
|
||
|
flex-direction: row;
|
||
|
padding: 0;
|
||
|
}
|
||
|
.page > #quartz-body .sidebar.right > * {
|
||
|
flex: 1;
|
||
|
}
|
||
|
.page > #quartz-body .sidebar.right > .toc {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
.page > #quartz-body .page-header, .page > #quartz-body .page-footer {
|
||
|
margin-top: 1rem;
|
||
|
}
|
||
|
.page > #quartz-body .page-header {
|
||
|
grid-area: grid-header;
|
||
|
margin: 6rem 0 0 0;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.page > #quartz-body .page-header {
|
||
|
margin-top: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
}
|
||
|
.page > #quartz-body .center > article {
|
||
|
grid-area: grid-center;
|
||
|
}
|
||
|
.page > #quartz-body footer {
|
||
|
grid-area: grid-footer;
|
||
|
}
|
||
|
.page > #quartz-body .center, .page > #quartz-body footer {
|
||
|
max-width: 100%;
|
||
|
min-width: 100%;
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
@media all and ((min-width: 800px) and (max-width: 1200px)) {
|
||
|
.page > #quartz-body .center, .page > #quartz-body footer {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.page > #quartz-body .center, .page > #quartz-body footer {
|
||
|
margin-right: 0;
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
}
|
||
|
.page > #quartz-body footer {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
.footnotes {
|
||
|
margin-top: 2rem;
|
||
|
border-top: 1px solid var(--lightgray);
|
||
|
}
|
||
|
|
||
|
input[type=checkbox] {
|
||
|
transform: translateY(2px);
|
||
|
color: var(--secondary);
|
||
|
border: 1px solid var(--lightgray);
|
||
|
border-radius: 3px;
|
||
|
background-color: var(--light);
|
||
|
position: relative;
|
||
|
margin-inline-end: 0.2rem;
|
||
|
margin-inline-start: -1.4rem;
|
||
|
appearance: none;
|
||
|
width: 16px;
|
||
|
height: 16px;
|
||
|
}
|
||
|
input[type=checkbox]:checked {
|
||
|
border-color: var(--secondary);
|
||
|
background-color: var(--secondary);
|
||
|
}
|
||
|
input[type=checkbox]:checked::after {
|
||
|
content: "";
|
||
|
position: absolute;
|
||
|
left: 4px;
|
||
|
top: 1px;
|
||
|
width: 4px;
|
||
|
height: 8px;
|
||
|
display: block;
|
||
|
border: solid var(--light);
|
||
|
border-width: 0 2px 2px 0;
|
||
|
transform: rotate(45deg);
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
margin: 1rem 0;
|
||
|
border-left: 3px solid var(--secondary);
|
||
|
padding-left: 1rem;
|
||
|
transition: border-color 0.2s ease;
|
||
|
}
|
||
|
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
thead {
|
||
|
font-family: var(--headerFont);
|
||
|
color: var(--dark);
|
||
|
font-weight: revert;
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
article > h1 > a[role=anchor],
|
||
|
article > h2 > a[role=anchor],
|
||
|
article > h3 > a[role=anchor],
|
||
|
article > h4 > a[role=anchor],
|
||
|
article > h5 > a[role=anchor],
|
||
|
article > h6 > a[role=anchor],
|
||
|
article > thead > a[role=anchor] {
|
||
|
color: var(--dark);
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
|
||
|
h1[id] > a[href^="#"],
|
||
|
h2[id] > a[href^="#"],
|
||
|
h3[id] > a[href^="#"],
|
||
|
h4[id] > a[href^="#"],
|
||
|
h5[id] > a[href^="#"],
|
||
|
h6[id] > a[href^="#"] {
|
||
|
margin: 0 0.5rem;
|
||
|
opacity: 0;
|
||
|
transition: opacity 0.2s ease;
|
||
|
transform: translateY(-0.1rem);
|
||
|
font-family: var(--codeFont);
|
||
|
user-select: none;
|
||
|
}
|
||
|
h1[id]:hover > a,
|
||
|
h2[id]:hover > a,
|
||
|
h3[id]:hover > a,
|
||
|
h4[id]:hover > a,
|
||
|
h5[id]:hover > a,
|
||
|
h6[id]:hover > a {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
font-size: 1.75rem;
|
||
|
margin-top: 2.25rem;
|
||
|
margin-bottom: 1rem;
|
||
|
}
|
||
|
|
||
|
h2 {
|
||
|
font-size: 1.4rem;
|
||
|
margin-top: 1.9rem;
|
||
|
margin-bottom: 1rem;
|
||
|
}
|
||
|
|
||
|
h3 {
|
||
|
font-size: 1.12rem;
|
||
|
margin-top: 1.62rem;
|
||
|
margin-bottom: 1rem;
|
||
|
}
|
||
|
|
||
|
h4,
|
||
|
h5,
|
||
|
h6 {
|
||
|
font-size: 1rem;
|
||
|
margin-top: 1.5rem;
|
||
|
margin-bottom: 1rem;
|
||
|
}
|
||
|
|
||
|
figure[data-rehype-pretty-code-figure] {
|
||
|
margin: 0;
|
||
|
position: relative;
|
||
|
line-height: 1.6rem;
|
||
|
position: relative;
|
||
|
}
|
||
|
figure[data-rehype-pretty-code-figure] > [data-rehype-pretty-code-title] {
|
||
|
font-family: var(--codeFont);
|
||
|
font-size: 0.9rem;
|
||
|
padding: 0.1rem 0.5rem;
|
||
|
border: 1px solid var(--lightgray);
|
||
|
border-radius: 5px;
|
||
|
margin-bottom: -0.5rem;
|
||
|
color: var(--darkgray);
|
||
|
}
|
||
|
figure[data-rehype-pretty-code-figure] > pre {
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
font-family: var(--codeFont);
|
||
|
padding: 0 0.5rem;
|
||
|
border-radius: 5px;
|
||
|
overflow-x: auto;
|
||
|
border: 1px solid var(--lightgray);
|
||
|
position: relative;
|
||
|
}
|
||
|
pre:has(> code.mermaid) {
|
||
|
border: none;
|
||
|
}
|
||
|
pre > code {
|
||
|
background: none;
|
||
|
padding: 0;
|
||
|
font-size: 0.85rem;
|
||
|
counter-reset: line;
|
||
|
counter-increment: line 0;
|
||
|
display: grid;
|
||
|
padding: 0.5rem 0;
|
||
|
overflow-x: auto;
|
||
|
}
|
||
|
pre > code [data-highlighted-chars] {
|
||
|
background-color: var(--highlight);
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
pre > code > [data-line] {
|
||
|
padding: 0 0.25rem;
|
||
|
box-sizing: border-box;
|
||
|
border-left: 3px solid transparent;
|
||
|
}
|
||
|
pre > code > [data-line][data-highlighted-line] {
|
||
|
background-color: var(--highlight);
|
||
|
border-left: 3px solid var(--secondary);
|
||
|
}
|
||
|
pre > code > [data-line]::before {
|
||
|
content: counter(line);
|
||
|
counter-increment: line;
|
||
|
width: 1rem;
|
||
|
margin-right: 1rem;
|
||
|
display: inline-block;
|
||
|
text-align: right;
|
||
|
color: rgba(115, 138, 148, 0.6);
|
||
|
}
|
||
|
pre > code[data-line-numbers-max-digits="2"] > [data-line]::before {
|
||
|
width: 2rem;
|
||
|
}
|
||
|
pre > code[data-line-numbers-max-digits="3"] > [data-line]::before {
|
||
|
width: 3rem;
|
||
|
}
|
||
|
|
||
|
code {
|
||
|
font-size: 0.9em;
|
||
|
color: var(--dark);
|
||
|
font-family: var(--codeFont);
|
||
|
border-radius: 5px;
|
||
|
padding: 0.1rem 0.2rem;
|
||
|
background: var(--lightgray);
|
||
|
}
|
||
|
|
||
|
tbody,
|
||
|
li,
|
||
|
p {
|
||
|
line-height: 1.6rem;
|
||
|
}
|
||
|
|
||
|
.table-container {
|
||
|
overflow-x: auto;
|
||
|
}
|
||
|
.table-container > table {
|
||
|
margin: 1rem;
|
||
|
padding: 1.5rem;
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
.table-container > table th,
|
||
|
.table-container > table td {
|
||
|
min-width: 75px;
|
||
|
}
|
||
|
.table-container > table > * {
|
||
|
line-height: 2rem;
|
||
|
}
|
||
|
|
||
|
th {
|
||
|
text-align: left;
|
||
|
padding: 0.4rem 0.7rem;
|
||
|
border-bottom: 2px solid var(--gray);
|
||
|
}
|
||
|
|
||
|
td {
|
||
|
padding: 0.2rem 0.7rem;
|
||
|
}
|
||
|
|
||
|
tr {
|
||
|
border-bottom: 1px solid var(--lightgray);
|
||
|
}
|
||
|
tr:last-child {
|
||
|
border-bottom: none;
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
max-width: 100%;
|
||
|
border-radius: 5px;
|
||
|
margin: 1rem 0;
|
||
|
}
|
||
|
|
||
|
p > img + em {
|
||
|
display: block;
|
||
|
transform: translateY(-1rem);
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
width: 100%;
|
||
|
margin: 2rem auto;
|
||
|
height: 1px;
|
||
|
border: none;
|
||
|
background-color: var(--lightgray);
|
||
|
}
|
||
|
|
||
|
audio,
|
||
|
video {
|
||
|
width: 100%;
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
|
||
|
.spacer {
|
||
|
flex: 1 1 auto;
|
||
|
}
|
||
|
|
||
|
div:has(> .overflow) {
|
||
|
display: flex;
|
||
|
overflow-y: auto;
|
||
|
max-height: 100%;
|
||
|
}
|
||
|
|
||
|
ul.overflow,
|
||
|
ol.overflow {
|
||
|
max-height: 100%;
|
||
|
overflow-y: auto;
|
||
|
content: "";
|
||
|
clear: both;
|
||
|
/*&:after {
|
||
|
pointer-events: none;
|
||
|
content: "";
|
||
|
width: 100%;
|
||
|
height: 50px;
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
bottom: 0;
|
||
|
opacity: 1;
|
||
|
transition: opacity 0.3s ease;
|
||
|
background: linear-gradient(transparent 0px, var(--light));
|
||
|
}*/
|
||
|
}
|
||
|
ul.overflow > li:last-of-type,
|
||
|
ol.overflow > li:last-of-type {
|
||
|
margin-bottom: 30px;
|
||
|
}
|
||
|
|
||
|
.transclude ul {
|
||
|
padding-left: 1rem;
|
||
|
}
|
||
|
|
||
|
.katex-display {
|
||
|
overflow-x: auto;
|
||
|
overflow-y: hidden;
|
||
|
}
|
||
|
|
||
|
.external-embed.youtube,
|
||
|
iframe.pdf {
|
||
|
aspect-ratio: 16/9;
|
||
|
height: 100%;
|
||
|
width: 100%;
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
|
||
|
.navigation-progress {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 0;
|
||
|
height: 3px;
|
||
|
background: var(--secondary);
|
||
|
transition: width 0.2s ease;
|
||
|
z-index: 9999;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9zdHlsZXMiLCJzb3VyY2VzIjpbInZhcmlhYmxlcy5zY3NzIiwic3ludGF4LnNjc3MiLCJjYWxsb3V0cy5zY3NzIiwiYmFzZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FDQUE7RUFDRTtFQUNBOzs7QUFHRjtFQUNFOzs7QUFHRjtFQUNFO0VBQ0E7OztBQUdGO0VBQ0U7OztBQ1pGO0VBQ0U7RUFDQTtFQ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NBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTs7QUFFQTtFQUNFO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFJSjtFQUNFOztBQUdGO0VBQ0U7OztBQUtOO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOzs7QUFHRjtBQUFBO0FBQUE7RUFHRTs7O0FBR0Y7RUFDRTs7QUFFQTtFQUNFO0VBQ0E7RUFDQTs7QUFFQTtBQUFBO0VBRUU7O0FBR0Y7RUFDRTs7O0FBS047RUFDRTtFQUNBO0VBQ0E7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7O0FBQ0E7RUFDRTs7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7OztBQUdGO0VBQ0U7RUFDQTs7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBOzs7QUFHRjtBQUFBO0VBRUU7RUFDQTs7O0FBR0Y7RUFDRTs7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7OztBQUdGO0FBQUE7RUFFRTtFQUNBO0VBR0E7RUFDQTtBQUtBO0FBQUE7QUFBQTtBQUF
|
||
|
* Layout breakpoints
|
||
|
* $mobile: screen width below this value will use mobile styles
|
||
|
* $desktop: screen width above this value will use desktop styles
|
||
|
* Screen width between $mobile and $desktop width will use the tablet layout.
|
||
|
* assuming mobile < desktop
|
||
|
*/
|
||
|
@keyframes dropin {
|
||
|
0% {
|
||
|
opacity: 0;
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
1% {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
100% {
|
||
|
opacity: 1;
|
||
|
visibility: visible;
|
||
|
}
|
||
|
}
|
||
|
.popover {
|
||
|
z-index: 999;
|
||
|
position: absolute;
|
||
|
overflow: visible;
|
||
|
padding: 1rem;
|
||
|
visibility: hidden;
|
||
|
opacity: 0;
|
||
|
transition: opacity 0.3s ease, visibility 0.3s ease;
|
||
|
}
|
||
|
.popover > .popover-inner {
|
||
|
position: relative;
|
||
|
width: 30rem;
|
||
|
max-height: 20rem;
|
||
|
padding: 0 1rem 1rem 1rem;
|
||
|
font-weight: initial;
|
||
|
font-style: initial;
|
||
|
line-height: normal;
|
||
|
font-size: initial;
|
||
|
font-family: var(--bodyFont);
|
||
|
border: 1px solid var(--lightgray);
|
||
|
background-color: var(--light);
|
||
|
border-radius: 5px;
|
||
|
box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
|
||
|
overflow: auto;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
.popover > .popover-inner[data-content-type][data-content-type*=pdf], .popover > .popover-inner[data-content-type][data-content-type*=image] {
|
||
|
padding: 0;
|
||
|
max-height: 100%;
|
||
|
}
|
||
|
.popover > .popover-inner[data-content-type][data-content-type*=image] img {
|
||
|
margin: 0;
|
||
|
border-radius: 0;
|
||
|
display: block;
|
||
|
}
|
||
|
.popover > .popover-inner[data-content-type][data-content-type*=pdf] iframe {
|
||
|
width: 100%;
|
||
|
}
|
||
|
.popover h1 {
|
||
|
font-size: 1.5rem;
|
||
|
}
|
||
|
@media all and ((max-width: 800px)) {
|
||
|
.popover {
|
||
|
display: none !important;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
a:hover .popover,
|
||
|
.popover:hover {
|
||
|
animation: dropin 0.3s ease;
|
||
|
animation-fill-mode: forwards;
|
||
|
animation-delay: 0.2s;
|
||
|
}
|
||
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUveW91d2VuL0RvY3VtZW50cy9hbGV4YW5kcmlhL3F1YXJ0ei9jb21wb25lbnRzL3N0eWxlcyIsInNvdXJjZXMiOlsiLi4vLi4vc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIiwicG9wb3Zlci5zY3NzIl0sIm5hbWVzIj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lcmZsb3c6IHZpc2libGU7XG4gIHBhZGRpbmc6IDFyZW07XG5cbiAgJiA+IC5wb3BvdmVyLWlubmVyIHtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgd2lkdGg6IDMwcmVtO1xuICAgIG1heC1oZWlnaHQ6IDIwcmVtO1xuICAgIHBhZGRpbmc6IDAgMXJlbSAxcmVtIDFyZW07XG4gICAgZm9udC13ZWlnaHQ6IGluaXRpYWw7XG4gICAgZm9udC1zdHlsZTogaW5pdGlhbDtcbiAgICBsaW5lLWhlaWdodDogbm9ybWFsO1xuICAgIGZvbnQtc2l6ZTogaW5pdGlhbDtcbiAgICBmb250LWZhbWlseTogdmFyKC0tYm9keUZvbnQpO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWxpZ2h0Z3JheSk7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbGlnaHQpO1xuICAgIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgICBib3gtc2hhZG93OiA2cHggNnB4IDM2cHggMCByZ2JhKDAsIDAsIDAsIDAuMjUpO1xuICAgIG92ZXJmbG93OiBhdXRvO1xuICAgIHdoaXR
|
||
|
`);return(await transpile(script,{minify:!0})).code}__name(joinScripts,"joinScripts");function addGlobalPageResources(ctx,componentResources){let cfg=ctx.cfg.configuration;if(cfg.enablePopovers&&(componentResources.afterDOMLoaded.push(popover_inline_default),componentResources.css.push(popover_default)),cfg.analytics?.provider==="google"){let tagId=cfg.analytics.tagId;componentResources.afterDOMLoaded.push(`
|
||
|
const gtagScript = document.createElement("script")
|
||
|
gtagScript.src = "https://www.googletagmanager.com/gtag/js?id=${tagId}"
|
||
|
gtagScript.async = true
|
||
|
document.head.appendChild(gtagScript)
|
||
|
|
||
|
window.dataLayer = window.dataLayer || [];
|
||
|
function gtag() { dataLayer.push(arguments); }
|
||
|
gtag("js", new Date());
|
||
|
gtag("config", "${tagId}", { send_page_view: false });
|
||
|
|
||
|
document.addEventListener("nav", () => {
|
||
|
gtag("event", "page_view", {
|
||
|
page_title: document.title,
|
||
|
page_location: location.href,
|
||
|
});
|
||
|
});`)}else if(cfg.analytics?.provider==="plausible"){let plausibleHost=cfg.analytics.host??"https://plausible.io";componentResources.afterDOMLoaded.push(`
|
||
|
const plausibleScript = document.createElement("script")
|
||
|
plausibleScript.src = "${plausibleHost}/js/script.manual.js"
|
||
|
plausibleScript.setAttribute("data-domain", location.hostname)
|
||
|
plausibleScript.defer = true
|
||
|
document.head.appendChild(plausibleScript)
|
||
|
|
||
|
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
|
||
|
|
||
|
document.addEventListener("nav", () => {
|
||
|
plausible("pageview")
|
||
|
})
|
||
|
`)}else if(cfg.analytics?.provider==="umami")componentResources.afterDOMLoaded.push(`
|
||
|
const umamiScript = document.createElement("script")
|
||
|
umamiScript.src = "${cfg.analytics.host??"https://analytics.umami.is"}/script.js"
|
||
|
umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}")
|
||
|
umamiScript.async = true
|
||
|
|
||
|
document.head.appendChild(umamiScript)
|
||
|
`);else if(cfg.analytics?.provider==="goatcounter")componentResources.afterDOMLoaded.push(`
|
||
|
const goatcounterScript = document.createElement("script")
|
||
|
goatcounterScript.src = "${cfg.analytics.scriptSrc??"https://gc.zgo.at/count.js"}"
|
||
|
goatcounterScript.async = true
|
||
|
goatcounterScript.setAttribute("data-goatcounter",
|
||
|
"https://${cfg.analytics.websiteId}.${cfg.analytics.host??"goatcounter.com"}/count")
|
||
|
document.head.appendChild(goatcounterScript)
|
||
|
`);else if(cfg.analytics?.provider==="posthog")componentResources.afterDOMLoaded.push(`
|
||
|
const posthogScript = document.createElement("script")
|
||
|
posthogScript.innerHTML= \`!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys onSessionId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
|
||
|
posthog.init('${cfg.analytics.apiKey}',{api_host:'${cfg.analytics.host??"https://app.posthog.com"}'})\`
|
||
|
document.head.appendChild(posthogScript)
|
||
|
`);else if(cfg.analytics?.provider==="tinylytics"){let siteId=cfg.analytics.siteId;componentResources.afterDOMLoaded.push(`
|
||
|
const tinylyticsScript = document.createElement("script")
|
||
|
tinylyticsScript.src = "https://tinylytics.app/embed/${siteId}.js"
|
||
|
tinylyticsScript.defer = true
|
||
|
document.head.appendChild(tinylyticsScript)
|
||
|
`)}else cfg.analytics?.provider==="cabin"?componentResources.afterDOMLoaded.push(`
|
||
|
const cabinScript = document.createElement("script")
|
||
|
cabinScript.src = "${cfg.analytics.host??"https://scripts.withcabin.com"}/hello.js"
|
||
|
cabinScript.defer = true
|
||
|
cabinScript.async = true
|
||
|
document.head.appendChild(cabinScript)
|
||
|
`):cfg.analytics?.provider==="clarity"&&componentResources.afterDOMLoaded.push(`
|
||
|
const clarityScript = document.createElement("script")
|
||
|
clarityScript.innerHTML= \`(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
||
|
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
||
|
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
||
|
})(window, document, "clarity", "script", "${cfg.analytics.projectId}");\`
|
||
|
document.head.appendChild(clarityScript)
|
||
|
`);cfg.enableSPA?componentResources.afterDOMLoaded.push(spa_inline_default):componentResources.afterDOMLoaded.push(`
|
||
|
window.spaNavigate = (url, _) => window.location.assign(url)
|
||
|
window.addCleanup = () => {}
|
||
|
const event = new CustomEvent("nav", { detail: { url: document.body.dataset.slug } })
|
||
|
document.dispatchEvent(event)
|
||
|
`)}__name(addGlobalPageResources,"addGlobalPageResources");var ComponentResources=__name(()=>({name:"ComponentResources",getQuartzComponents(){return[]},async getDependencyGraph(_ctx,_content,_resources){return new DepGraph},async emit(ctx,_content,_resources){let promises=[],cfg=ctx.cfg.configuration,componentResources=getComponentResources(ctx),googleFontsStyleSheet="";if(cfg.theme.fontOrigin!=="local"){if(cfg.theme.fontOrigin==="googleFonts"&&!cfg.theme.cdnCaching){let match,fontSourceRegex=/url\((https:\/\/fonts.gstatic.com\/s\/[^)]+\.(woff2|ttf))\)/g;for(googleFontsStyleSheet=await(await fetch(googleFontHref(ctx.cfg.configuration.theme))).text();(match=fontSourceRegex.exec(googleFontsStyleSheet))!==null;){let url=match[1],[filename,ext]=url.split("/").pop().split(".");googleFontsStyleSheet=googleFontsStyleSheet.replace(url,`https://${cfg.baseUrl}/static/fonts/${filename}.ttf`),promises.push(fetch(url).then(res=>{if(!res.ok)throw new Error("Failed to fetch font");return res.arrayBuffer()}).then(buf=>write({ctx,slug:joinSegments("static","fonts",filename),ext:`.${ext}`,content:Buffer.from(buf)})))}}}addGlobalPageResources(ctx,componentResources);let stylesheet=joinStyles(ctx.cfg.configuration.theme,googleFontsStyleSheet,...componentResources.css,custom_default),[prescript,postscript]=await Promise.all([joinScripts(componentResources.beforeDOMLoaded),joinScripts(componentResources.afterDOMLoaded)]);return promises.push(write({ctx,slug:"index",ext:".css",content:transform({filename:"index.css",code:Buffer.from(stylesheet),minify:!0,targets:{safari:984576,ios_saf:984576,edge:7536640,firefox:6684672,chrome:7143424},include:Features.MediaQueries}).code.toString()}),write({ctx,slug:"prescript",ext:".js",content:prescript}),write({ctx,slug:"postscript",ext:".js",content:postscript})),await Promise.all(promises)}}),"ComponentResources");var NotFoundPage=__name(()=>{let opts={...sharedPageComponents,pageBody:__default(),beforeBody:[],left:[],right:[]},{head:Head,pageBody,footer:Footer}=opts,Body2=Body_default();return{name:"404Page",getQuartzComponents(){return[Head,Body2,pageBody,Footer]},async getDependencyGraph(_ctx,_content,_resources){return new DepGraph},async emit(ctx,_content,resources){let cfg=ctx.cfg.configuration,slug="404",path13=new URL(`https://${cfg.baseUrl??"example.com"}`).pathname,externalResources=pageResources(path13,resources),notFound=i18n(cfg.locale).pages.error.title,[tree,vfile]=defaultProcessedContent({slug,text:notFound,description:notFound,frontmatter:{title:notFound,tags:[]}}),componentData={ctx,fileData:vfile.data,externalResources,cfg,children:[],tree,allFiles:[]};return[await write({ctx,content:renderPage(cfg,slug,componentData,opts,externalResources),slug,ext:".html"})]}}},"NotFoundPage");import chalk5 from"chalk";function getStaticResourcesFromPlugins(ctx){let staticResources={css:[],js:[]};for(let transformer of ctx.cfg.plugins.transformers){let res=transformer.externalResources?transformer.externalResources(ctx):{};res?.js&&staticResources.js.push(...res.js),res?.css&&staticResources.css.push(...res.css)}if(ctx.argv.serve){let wsUrl=ctx.argv.remoteDevHost?`wss://${ctx.argv.remoteDevHost}:${ctx.argv.wsPort}`:`ws://localhost:${ctx.argv.wsPort}`;staticResources.js.push({loadTime:"afterDOMReady",contentType:"inline",script:`
|
||
|
const socket = new WebSocket('${wsUrl}')
|
||
|
// reload(true) ensures resources like images and scripts are fetched again in firefox
|
||
|
socket.addEventListener('message', () => document.location.reload(true))
|
||
|
`})}return staticResources}__name(getStaticResourcesFromPlugins,"getStaticResourcesFromPlugins");async function emitContent(ctx,content){let{argv,cfg}=ctx,perf=new PerfTimer,log=new QuartzLogger(ctx.argv.verbose);log.start("Emitting output files");let emittedFiles=0,staticResources=getStaticResourcesFromPlugins(ctx);for(let emitter of cfg.plugins.emitters)try{let emitted=await emitter.emit(ctx,content,staticResources);if(emittedFiles+=emitted.length,ctx.argv.verbose)for(let file of emitted)console.log(`[emit:${emitter.name}] ${file}`)}catch(err){trace(`Failed to emit from plugin \`${emitter.name}\``,err)}log.end(`Emitted ${emittedFiles} files to \`${argv.output}\` in ${perf.timeSince()}`)}__name(emitContent,"emitContent");var config={configuration:{pageTitle:"\u{1FAB4} Quartz 4.0",pageTitleSuffix:"",enableSPA:!0,enablePopovers:!0,analytics:{provider:"plausible"},locale:"en-US",baseUrl:"quartz.jzhao.xyz",ignorePatterns:["private","templates",".obsidian"],defaultDateType:"created",generateSocialImages:!1,theme:{fontOrigin:"googleFonts",cdnCaching:!0,typography:{header:"Schibsted Grotesk",body:"Source Sans Pro",code:"IBM Plex Mono"},colors:{lightMode:{light:"#faf8f8",lightgray:"#e5e5e5",gray:"#b8b8b8",darkgray:"#4e4e4e",dark:"#2b2b2b",secondary:"#284b63",tertiary:"#84a59d",highlight:"rgba(143, 159, 169, 0.15)",textHighlight:"#fff23688"},darkMode:{light:"#161618",lightgray:"#393639",gray:"#646464",darkgray:"#d4d4d4",dark:"#ebebec",secondary:"#7b97aa",tertiary:"#84a59d",highlight:"rgba(143, 159, 169, 0.15)",textHighlight:"#b3aa0288"}}}},plugins:{transformers:[FrontMatter(),CreatedModifiedDate({priority:["frontmatter","filesystem"]}),SyntaxHighlighting({theme:{light:"github-light",dark:"github-dark"},keepBackground:!1}),ObsidianFlavoredMarkdown({enableInHtmlEmbed:!1}),GitHubFlavoredMarkdown(),TableOfContents(),CrawlLinks({markdownLinkResolution:"shortest"}),Description(),Latex({renderEngine:"katex"})],filters:[RemoveDrafts()],emitters:[AliasRedirects(),ComponentResources(),ContentPage(),FolderPage(),TagPage(),ContentIndex({enableSiteMap:!0,enableRSS:!0}),Assets(),Static(),NotFoundPage()]}},quartz_config_default=config;import chokidar from"chokidar";import fs6 from"fs";import{fileURLToPath}from"url";var options={retrieveSourceMap(source){if(source.includes(".quartz-cache")){let realSource=fileURLToPath(source.split("?",2)[0]+".map");return{map:fs6.readFileSync(realSource,"utf8")}}else return null}};sourceMapSupport.install(options);function newBuildId(){return Math.random().toString(36).substring(2,8)}__name(newBuildId,"newBuildId");async function buildQuartz(argv,mut,clientRefresh){let ctx={buildId:newBuildId(),argv,cfg:quartz_config_default,allSlugs:[]},perf=new PerfTimer,output=argv.output,pluginCount=Object.values(quartz_config_default.plugins).flat().length,pluginNames=__name(key=>quartz_config_default.plugins[key].map(plugin=>plugin.name),"pluginNames");argv.verbose&&(console.log(`Loaded ${pluginCount} plugins`),console.log(` Transformers: ${pluginNames("transformers").join(", ")}`),console.log(` Filters: ${pluginNames("filters").join(", ")}`),console.log(` Emitters: ${pluginNames("emitters").join(", ")}`));let release=await mut.acquire();perf.addEvent("clean"),await rimraf(path12.join(output,"*"),{glob:!0}),console.log(`Cleaned output directory \`${output}\` in ${perf.timeSince("clean")}`),perf.addEvent("glob");let allFiles=await glob("**/*.*",argv.directory,quartz_config_default.configuration.ignorePatterns),fps=allFiles.filter(fp=>fp.endsWith(".md")).sort();console.log(`Found ${fps.length} input files from \`${argv.directory}\` in ${perf.timeSince("glob")}`);let filePaths=fps.map(fp=>joinSegments(argv.directory,fp));ctx.allSlugs=allFiles.map(fp=>slugifyFilePath(fp));let parsedFiles=await parseMarkdown(ctx,filePaths),filteredContent=filterContent(ctx,parsedFiles),dependencies={};if(argv.fastRebuild){let staticResources=getStaticResourcesFromPlugins(ctx);for(let emitter of quartz_config_default.plugins.emitters)dependencies[emitter.name]=await emitter.getDependencyGraph?.(ctx,filteredContent,staticResources)??n
|
||
|
Exiting Quartz due to a fatal error`,err)}},"default");export{build_default as default};
|
||
|
//# sourceMappingURL=transpiled-build.mjs.map
|