diff --git a/dist/javascript.js b/dist/javascript.js index bc93363..9e7a83e 100644 --- a/dist/javascript.js +++ b/dist/javascript.js @@ -1 +1 @@ -function parseURL(e,t){let r="",i="";return 0===t?(r=e.href,i=e.title):1===type_url&&(r=e.src,i=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=i).length&&(i=e.innerText,e.title=i)):1===t&&(e.src=r,e.alt=i),{title:i,ref:r,url:e}}function checkIfInternalLinksExists(t,r,i,n){let l=i.href.replace(i.host,"").replace(/http(s)?:(\/){1,3}/gi,"").replace(/^\//,"");l=0===l.trim().length?"./":decodeURI(l).toLowerCase();var e=window.location.pathname;return l=l.replace(e.replace(/^\//,""),""),n.includes(l.replace(/\/$/,""))||"./"===l||fetch(e+"/search/all_files.json").then(e=>e.json()).then(e=>{if(e.forEach(e=>{e=decodeURI(e.url).toLowerCase();console.log(e,"----------",l),e===l&&n.push(l.replace(/\/$/,""))}),!(n=[...new Set(n)]).includes(l.replace(/\/$/,""))&&"./"!==l){e=document.createElement("div");e.innerHTML=r,e.classList.add("not_found"),e.setAttribute("href",t);try{i.parentNode.replaceChild(e,i)}catch(e){console.log(e)}}}).catch(e=>{console.log(e)}),n}window.MathJax={tex:{inlineMath:[["\\(","\\)"]],displayMath:[["\\[","\\]"]],processEscapes:!0,processEnvironments:!0},options:{ignoreHtmlClass:".*|",processHtmlClass:"arithmatex"}},document$.subscribe(()=>{MathJax.typesetPromise()});let history=[];var p_search=/\.{2}\//gi,ht=document.querySelectorAll("a:not(img)");for(const t of ht)0{e.forEach(e=>{"attributes"===e.type&&chirpy.setAttribute("data-chirpy-theme",mkDocsChirpyTranslator[mkDocs.dataset.mdColorScheme])})});v.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(let e=0;e{e.href.endsWith(".css")&&t.push(e.href)});let 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)});const i=document.querySelector("[data-md-color-scheme]");"default"===i.getAttribute("data-md-color-scheme")?r.body.setAttribute("class","light"):(r.body.setAttribute("class","dark"),e=getComputedStyle(i).getPropertyValue("--md-default-bg-color"),r.body.style.setProperty("--md-default-bg-color",e)),r.body.classList.add("graph-view"),new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&r.body.setAttribute("class",mkDocsChirpyTranslator[i.dataset.mdColorScheme])})}).observe(i,{attributes:!0,attributeFilter:["data-md-color-scheme"]})}};var paletteSwitcher1=document.getElementById("__palette_1"),paletteSwitcher2=document.getElementById("__palette_2");const isMermaidPage=document.querySelector(".mermaid"),blogURL=(isMermaidPage&&(paletteSwitcher1.addEventListener("change",function(){location.reload()}),paletteSwitcher2.addEventListener("change",function(){location.reload()})),document.querySelector('meta[name="site_url"]')?document.querySelector('meta[name="site_url"]').content:location.origin);let 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(n=>{return n.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 i=r.querySelector("h1"),i=(i&&"Index"===i.innerText&&(n=decodeURI(r.querySelector('link[rel="canonical"]').href).split("/").filter(e=>e).pop(),i.innerText=n),e=brokenImage(e),document.querySelector('[id^="tippy"]')),n=(i&&i.classList.add("tippy"),l.reference.href.replace(/.*#/,"#"));let t=e;n.startsWith("#")?((e=r.querySelector(`[id="${n.replace("#","")}"]`)).tagName.includes("H")?((i=r.createElement("article")).classList.add("md-content__inner","md-typeset"),i.appendChild(r.querySelector("div."+n.replace("#",""))),t=i,e=t):t=0===e.innerText.replace(n).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 +function parseURL(e,t){let r="",i="";return 0===t?(r=e.href,i=e.title):1===type_url&&(r=e.src,i=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=i).length&&(i=e.innerText,e.title=i)):1===t&&(e.src=r,e.alt=i),{title:i,ref:r,url:e}}function checkIfInternalLinksExists(t,r,i,n){let l=i.href.replace(i.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,o=e.split("/").filter(e=>0e.json()).then(e=>{if(e.forEach(e=>{decodeURI(e.url).toLowerCase()===l&&n.push(l.replace(/\/$/,""))}),!(n=[...new Set(n)]).includes(l.replace(/\/$/,""))&&"./"!==l){e=document.createElement("div");e.innerHTML=r,e.classList.add("not_found"),e.setAttribute("href",t);try{i.parentNode.replaceChild(e,i)}catch(e){console.log(e)}}}).catch(e=>{console.log(e)}),n}window.MathJax={tex:{inlineMath:[["\\(","\\)"]],displayMath:[["\\[","\\]"]],processEscapes:!0,processEnvironments:!0},options:{ignoreHtmlClass:".*|",processHtmlClass:"arithmatex"}},document$.subscribe(()=>{MathJax.typesetPromise()});let history=[];var p_search=/\.{2}\//gi,ht=document.querySelectorAll("a:not(img)");for(const v of ht)0{e.forEach(e=>{"attributes"===e.type&&chirpy.setAttribute("data-chirpy-theme",mkDocsChirpyTranslator[mkDocs.dataset.mdColorScheme])})});x.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(let e=0;e{e.href.endsWith(".css")&&t.push(e.href)});let 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)});const i=document.querySelector("[data-md-color-scheme]");"default"===i.getAttribute("data-md-color-scheme")?r.body.setAttribute("class","light"):(r.body.setAttribute("class","dark"),e=getComputedStyle(i).getPropertyValue("--md-default-bg-color"),r.body.style.setProperty("--md-default-bg-color",e)),r.body.classList.add("graph-view"),new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&r.body.setAttribute("class",mkDocsChirpyTranslator[i.dataset.mdColorScheme])})}).observe(i,{attributes:!0,attributeFilter:["data-md-color-scheme"]})}};var paletteSwitcher1=document.getElementById("__palette_1"),paletteSwitcher2=document.getElementById("__palette_2");const isMermaidPage=document.querySelector(".mermaid"),blogURL=(isMermaidPage&&(paletteSwitcher1.addEventListener("change",function(){location.reload()}),paletteSwitcher2.addEventListener("change",function(){location.reload()})),document.querySelector('meta[name="site_url"]')?document.querySelector('meta[name="site_url"]').content:location.origin);let 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(n=>{return n.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 i=r.querySelector("h1"),i=(i&&"Index"===i.innerText&&(n=decodeURI(r.querySelector('link[rel="canonical"]').href).split("/").filter(e=>e).pop(),i.innerText=n),e=brokenImage(e),document.querySelector('[id^="tippy"]')),n=(i&&i.classList.add("tippy"),l.reference.href.replace(/.*#/,"#"));let t=e;n.startsWith("#")?((e=r.querySelector(`[id="${n.replace("#","")}"]`)).tagName.includes("H")?((i=r.createElement("article")).classList.add("md-content__inner","md-typeset"),i.appendChild(r.querySelector("div."+n.replace("#",""))),t=i,e=t):t=0===e.innerText.replace(n).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