diff --git a/dist/javascript.js b/dist/javascript.js index 919db21..e635d1b 100644 --- a/dist/javascript.js +++ b/dist/javascript.js @@ -1 +1 @@ -function parseURL(e,t){let r="",n="";return 0===t?(r=e.href,n=e.title):1===t&&(r=e.src,n=e.alt),(r=(r=r.match(/index$/)?r.replace(/index$/,""):r).includes("%5C")?r.replace(/%5C/g,"/"):r).match(/\.md\/$/)&&(r=r.replace(/\.md\/$/,"/")),r=decodeURI(r),0===t?(e.href=r,0===(e.title=n).length&&(n=e.innerText,e.title=n)):1===t&&(e.src=r,e.alt=n),{title:n,ref:r,url:e}}function checkIfInternalLinksExists(t,r,n,i){let o=n.href.replace(n.host,"").replace(/http(s)?:(\/){1,3}/gi,"").replace(/^\//,"");o=0===o.trim().length?"./":decodeURI(o).toLowerCase();var e=document.querySelector('meta[name="site_url"]').content,l=(e.split("/").filter(e=>0e.json()).then(e=>{if(e.forEach(e=>{decodeURI(e.url).toLowerCase().replace(/\/$/,"")===o.replace(".md","")&&i.push(o.replace(/\/$/,""))}),!(i=[...new Set(i)]).includes(o.replace(/\/$/,""))&&"./"!==o){e=document.createElement("div");e.innerHTML=r,e.classList.add("not_found"),e.setAttribute("href",t),console.warn("Link not found:",{ref:t,title:r,url:n});try{n.parentNode.replaceChild(e,n)}catch(e){console.error(e)}}}).catch(e=>{console.error(e)}),i}window.MathJax={tex:{inlineMath:[["\\(","\\)"]],displayMath:[["\\[","\\]"]],processEscapes:!0,processEnvironments:!0},options:{ignoreHtmlClass:".*|",processHtmlClass:"arithmatex"}},document$.subscribe(()=>{MathJax.typesetPromise()});let history=[];const ht=document.querySelectorAll("article:not(.md-post) a:not(img, .headerlink)");for(const u of ht)if(0{e.forEach(e=>{"attributes"===e.type&&chirpy.setAttribute("data-chirpy-theme",mkDocsChirpyTranslator[mkDocs.dataset.mdColorScheme])})});y.observe(mkDocs,{attributes:!0,attributeFilter:["data-md-color-scheme"]})}const header_links=document.querySelectorAll('a[href*="#"]');if(header_links)for(var i=0;i *:not(.highlight)"),embed_id_regex=/\^\w+\s*$/gi;for(const O of article){const P=O.innerText.match(embed_id_regex);P&&(O.innerHTML=O.innerText.replace(P,""))}document.innerText=article;const cite=document.querySelectorAll(".citation");if(cite)for(i=0;i{e.href.endsWith(".css")&&t.push(e.href)});const r=e.contentDocument||e.contentWindow.document;t.forEach(e=>{var t=document.createElement("link");t.rel="stylesheet",t.href=e,t.type="text/css",r.head.appendChild(t)});var e=document.querySelector("[data-md-color-scheme]");"default"===e.getAttribute("data-md-color-scheme")?r.body.setAttribute("class","light"):(r.body.setAttribute("class","dark"),e=getComputedStyle(e).getPropertyValue("--md-default-bg-color"),r.body.style.setProperty("--md-default-bg-color",e)),r.body.classList.add("graph-view")}};const paletteSwitcher1=document.getElementById("__palette_1"),paletteSwitcher2=document.getElementById("__palette_2"),isMermaidPage=document.querySelector(".mermaid"),blogURL=(isMermaidPage&&(paletteSwitcher1.addEventListener("change",()=>{location.reload()}),paletteSwitcher2.addEventListener("change",()=>{location.reload()})),document.querySelector('meta[name="site_url"]')?document.querySelector('meta[name="site_url"]').content:location.origin),position=["top","right","bottom","left"];function brokenImage(e){var t=e?.querySelectorAll("img");if(t)for(let e=0;ee.text()).then(e=>{return(new DOMParser).parseFromString(e,"text/html")}).then(i=>{return i.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function(t){var r=t.id||t.innerText.split("\n")[0].toLowerCase().replaceAll(" ","-");if(0{if(location.href.replace(location.hash,"")===o.reference.href)o.hide(),o.destroy();else{let e=r.querySelector("article");var n=r.querySelector("h1"),n=(n&&"Index"===n.innerText&&(i=decodeURI(r.querySelector('link[rel="canonical"]').href).split("/").filter(e=>e).pop(),n.innerText=i),e=brokenImage(e),document.querySelector('[id^="tippy"]')),i=(n&&n.classList.add("tippy"),o.reference.href.replace(/.*#/,"#"));let t=e;i.startsWith("#")?((e=r.querySelector(`[id="${i.replace("#","")}"]`)).tagName.includes("H")?((n=r.createElement("article")).classList.add("md-content__inner","md-typeset"),n.appendChild(r.querySelector("div."+i.replace("#",""))),t=n,e=t):t=0===e.innerText.replace(i).length?e=r.querySelector("div.citation"):cleanText(e).innerText,o.popper.style.height="auto"):o.popper.style.height=calculateHeight(e),o.popper.placement=position[Math.floor(Math.random()*position.length)],0{console.log(e),o.hide(),o.destroy()})}})}catch{console.log("tippy error, ignore it")} \ No newline at end of file +function parseURL(e,t){let r="",n="";return 0===t?(r=e.href,n=e.title):1===t&&(r=e.src,n=e.alt),(r=(r=r.match(/index$/)?r.replace(/index$/,""):r).includes("%5C")?r.replace(/%5C/g,"/"):r).match(/\.md\/$/)&&(r=r.replace(/\.md\/$/,"/")),r=decodeURI(r),0===t?(e.href=r,0===(e.title=n).length&&(n=e.innerText,e.title=n)):1===t&&(e.src=r,e.alt=n),{title:n,ref:r,url:e}}function checkIfInternalLinksExists(t,r,n,o){let l=n.href.replace(n.host,"").replace(/http(s)?:(\/){1,3}/gi,"").replace(/^\//,"");l=0===l.trim().length?"./":decodeURI(l).toLowerCase();var e=document.querySelector('meta[name="site_url"]').content,c=(e.split("/").filter(e=>0e.json()).then(e=>{if(e.forEach(e=>{decodeURI(e.url).toLowerCase().replace(/\/$/,"")===l.replace(".md","")&&o.push(l.replace(/\/$/,""))}),!(o=[...new Set(o)]).includes(l.replace(/\/$/,""))&&"./"!==l){e=document.createElement("div");e.innerHTML=r,e.classList.add("not_found"),e.setAttribute("href",t),console.warn("Link not found:",{ref:t,title:r,url:n});try{n.parentNode.replaceChild(e,n)}catch(e){console.error(e)}}}).catch(e=>{console.error(e)}),o}window.MathJax={tex:{inlineMath:[["\\(","\\)"]],displayMath:[["\\[","\\]"]],processEscapes:!0,processEnvironments:!0},options:{ignoreHtmlClass:".*|",processHtmlClass:"arithmatex"}},document$.subscribe(()=>{MathJax.typesetPromise()});let history=[];const ht=document.querySelectorAll("article:not(.md-post) a:not(img, .headerlink)");for(const u of ht)if(0{e.forEach(e=>{"attributes"===e.type&&chirpy.setAttribute("data-chirpy-theme",mkDocsChirpyTranslator[mkDocs.dataset.mdColorScheme])})});y.observe(mkDocs,{attributes:!0,attributeFilter:["data-md-color-scheme"]})}const header_links=document.querySelectorAll('a[href*="#"]');if(header_links)for(var i=0;i(?!^\d*x?\d*$).*?)?(\|?\s*?(?\d+)(x(?\d+))?)?$/gi;if(i.alt.match(D)){const E=D.exec(i.alt??"");i.width=E.groups.width??i.width,i.height=E.groups.height??i.height,i.alt=E.groups.alt??i.alt}}const article=document.querySelectorAll("article.md-content__inner.md-typeset > *:not(.highlight)"),embed_id_regex=/\^\w+\s*$/gi;for(const F of article){const G=F.innerText.match(embed_id_regex);G&&(F.innerHTML=F.innerText.replace(G,""))}document.innerText=article;const cite=document.querySelectorAll(".citation");if(cite)for(const H of cite){const I=H.innerHTML.match(/!?(\[{2}|\[).*(\]{2}|\))/gi);if(I){for(const J of I)H.innerHTML=H.innerHTML.replace(J,"");H.innerText.trim().length<2&&(H.style.display="none")}}window.onload=function(){var e=document.querySelector("iframe");if(e){const t=[];document.querySelectorAll("link").forEach(e=>{e.href.endsWith(".css")&&t.push(e.href)});const r=e.contentDocument||e.contentWindow.document;t.forEach(e=>{var t=document.createElement("link");t.rel="stylesheet",t.href=e,t.type="text/css",r.head.appendChild(t)});var e=document.querySelector("[data-md-color-scheme]");"default"===e.getAttribute("data-md-color-scheme")?r.body.setAttribute("class","light"):(r.body.setAttribute("class","dark"),e=getComputedStyle(e).getPropertyValue("--md-default-bg-color"),r.body.style.setProperty("--md-default-bg-color",e)),r.body.classList.add("graph-view")}};const paletteSwitcher1=document.getElementById("__palette_1"),paletteSwitcher2=document.getElementById("__palette_2"),isMermaidPage=document.querySelector(".mermaid"),blogURL=(isMermaidPage&&(paletteSwitcher1.addEventListener("change",()=>{location.reload()}),paletteSwitcher2.addEventListener("change",()=>{location.reload()})),document.querySelector('meta[name="site_url"]')?document.querySelector('meta[name="site_url"]').content:location.origin),position=["top","right","bottom","left"];function brokenImage(e){var t=e?.querySelectorAll("img");if(t)for(let e=0;ee.text()).then(e=>{return(new DOMParser).parseFromString(e,"text/html")}).then(o=>{return o.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function(t){var r=t.id||t.innerText.split("\n")[0].toLowerCase().replaceAll(" ","-");if(0{if(location.href.replace(location.hash,"")===l.reference.href)l.hide(),l.destroy();else{let e=r.querySelector("article");var n=r.querySelector("h1"),n=(n&&"Index"===n.innerText&&(o=decodeURI(r.querySelector('link[rel="canonical"]').href).split("/").filter(e=>e).pop(),n.innerText=o),e=brokenImage(e),document.querySelector('[id^="tippy"]')),o=(n&&n.classList.add("tippy"),l.reference.href.replace(/.*#/,"#"));let t=e;o.startsWith("#")?((e=r.querySelector(`[id="${o.replace("#","")}"]`)).tagName.includes("H")?((n=r.createElement("article")).classList.add("md-content__inner","md-typeset"),n.appendChild(r.querySelector("div."+o.replace("#",""))),t=n,e=t):t=0===e.innerText.replace(o).length?e=r.querySelector("div.citation"):cleanText(e).innerText,l.popper.style.height="auto"):l.popper.style.height=calculateHeight(e),l.popper.placement=position[Math.floor(Math.random()*position.length)],0{console.log(e),l.hide(),l.destroy()})}})}catch{console.log("tippy error, ignore it")} \ No newline at end of file