/*! * docsify-themeable * v0.8.1 * https://jhildenbiddle.github.io/docsify-themeable/ * (c) 2018-2020 John Hildenbiddle * MIT license */ !function(){"use strict";function g(){return(g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nObject.keys(r).length||Boolean(Object.keys(r).length&&Object.keys(O.job).some(function(e){return O.job[e]!==r[e]}))))R(m.rootElement),N(m);else{var l=[],d=[],f=!1;if(m.updateDOM&&A.job++,n.forEach(function(t,e){var n=!t.__cssVars;if(t.__cssVars)try{w(t.__cssVars.tree,g({},m,{variables:O.job,onWarning:v}));var r=S(t.__cssVars.tree);if(m.updateDOM){var o=u[e],a=x.cssVarFunc.test(o);if(t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),r.length&&a){var s=t.getAttribute("data-cssvars-group")||++A.group,c=r.replace(/\s/g,""),i=m.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(s,'"]'))||document.createElement("style");f=f||x.cssKeyframes.test(r),m.preserveStatic&&(t.sheet.disabled=!0),i.hasAttribute("data-cssvars")||i.setAttribute("data-cssvars","out"),c===t.textContent.replace(/\s/g,"")?(n=!0,i&&i.parentNode&&(t.removeAttribute("data-cssvars-group"),i.parentNode.removeChild(i))):c!==i.textContent.replace(/\s/g,"")&&([t,i].forEach(function(e){e.setAttribute("data-cssvars-job",A.job),e.setAttribute("data-cssvars-group",s)}),i.textContent=r,l.push(r),d.push(i),i.parentNode||t.parentNode.insertBefore(i,t.nextSibling))}}else t.textContent.replace(/\s/g,"")!==r&&l.push(r)}catch(e){p(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",A.job)}),j=m.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,m.shadowDOM)for(var o,a=[m.rootElement].concat(i(m.rootElement.querySelectorAll("*"))),s=0;o=a[s];++s){if(o.shadowRoot&&o.shadowRoot.querySelector("style"))N(g({},m,{rootElement:o.shadowRoot}))}m.updateDOM&&f&&function(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter(function(e){return getComputedStyle(document.body)[e]})[0];if(t){for(var n=e.getElementsByTagName("*"),r=[],o="__CSSVARSPONYFILL-KEYFRAMES__",a=0,s=n.length;a a");e&&(e.parentNode.innerHTML=e.innerHTML)})},function(e,t){e.doneEach(function(){var e=Array.apply(null,document.querySelectorAll("body > nav.app-nav > ul > li")),t=Array.apply(null,document.querySelectorAll(".sidebar > nav > ul > li"));e.forEach(function(t){var n="focus-within";c(t,"span",0),t.addEventListener("focusin",function(e){t.contains(document.activeElement)&&t.classList.add(n)}),t.addEventListener("focusout",function(e){t.contains(document.activeElement)||t.classList.remove(n)})}),t.forEach(function(e){c(e,"span")})})},function(e,t){e.doneEach(function(){Array.apply(null,document.querySelectorAll("pre[data-lang]")).forEach(function(e){var t=e.querySelector("code"),n="language-".concat(e.getAttribute("data-lang"));e.classList.add(n),t.classList.add(n)})})},function(e,t){e.mounted(function(){var e=document.querySelector(".content"),t=setInterval(function(){e.textContent.length&&(document.body.classList.add("ready-fix"),clearInterval(t))},250)}),e.ready(function(){document.body.classList.add("ready-fix")})},function(e,t){e.init(function(){if(!1!==((window.$docsify||{}).themeable||{}).responsiveTables){var e=window.$docsify.markdown=window.$docsify.markdown||{},t=e.renderer=e.renderer||{};e.smartypants=e.smartypants||!0,t.table=t.table||function(e,t){var n='\n
\n \n '.concat(e,"\n ").concat(t,"\n
\n
");try{var r=document.createElement("div"),o=document.head.appendChild(document.createElement("style")).sheet,a="_"+Math.random().toString(36).substr(2,9);r.innerHTML=n;var s=r.querySelector("table");Array.apply(null,s.getElementsByTagName("th")).map(function(e){return e.innerHTML.replace(" "," ")}).forEach(function(e,t){var n="#".concat(a," td:nth-child(").concat(t+1,')::before{content:"').concat(e,'";}');o.insertRule(n,o.cssRules.length)}),s.id=a,n=r.innerHTML}catch(e){console.log("Failed to render responsive table: "+e)}return n}}})}],window.$docsify.plugins||[],[function(e,t){e.ready(function(){var e=document.querySelector(".sidebar .search .clear-button");if(e){var t=document.createElement("button");t.className="clear-button",t.setAttribute("aria-label","Clear search"),t.innerHTML='\n \n \n \n \n \n ',e.parentNode.replaceChild(t,e)}})},n("4.8.0",function(e,t){e.ready(function(){var t=document.querySelector(".sidebar .search"),n=document.querySelector(".sidebar .search input[type=search]"),r=document.querySelector(".sidebar .search .clear-button");t&&t.addEventListener("click",function(e){e.target!==r&&!r.contains(e.target)||(t.classList.remove("show"),n.focus())}),n&&n.addEventListener("input",function(e){n.value.length?t.classList.add("show"):t.classList.remove("show")})})}),n("4.8.0",function(e,t){var a=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector;e.doneEach(function(){var o="medium-zoom-image";Array.apply(null,document.querySelectorAll(".".concat(o))).forEach(function(e){var t=a.call(e,"a img"),n=a.call(e,".content img");if(t||!n){var r=e.cloneNode(!0);e.parentNode.replaceChild(r,e),r.classList.remove(o)}})})})]).filter(function(e){return null!==e}),window.$docsify.search=window.$docsify.search||{},window.$docsify.search.hideOtherSidebarContent=!0,window.$docsify.themeable=window.$docsify.themeable||{},window.$docsify.themeable.version="0.8.1",window.$docsify.themeable.util={cssVars:function(e){N(0