/*! * docsify-themeable * v0.8.4 * https://jhildenbiddle.github.io/docsify-themeable/ * (c) 2018-2020 John Hildenbiddle * MIT license */ !function(){"use strict";function p(){return(p=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nObject.keys(n).length||Boolean(Object.keys(n).length&&Object.keys(x.job).some(function(e){return x.job[e]!==n[e]}))))_(d.rootElement),T(d);else{var i=[],u=[],l=!1;if(d.updateDOM&&E.job++,t.forEach(function(t,e){var n=!t.__cssVars;if(t.__cssVars)try{S(t.__cssVars.tree,p({},d,{variables:x.job,onWarning:m}));var r,o,a,s=b(t.__cssVars.tree);d.updateDOM?(o=c[e],a=C.cssVarFunc.test(o),t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),s.length&&a&&(r=t.getAttribute("data-cssvars-group")||++E.group,o=s.replace(/\s/g,""),a=d.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(r,'"]'))||document.createElement("style"),l=l||C.cssKeyframes.test(s),d.preserveStatic&&(t.sheet.disabled=!0),a.hasAttribute("data-cssvars")||a.setAttribute("data-cssvars","out"),o===t.textContent.replace(/\s/g,"")?(n=!0,a&&a.parentNode&&(t.removeAttribute("data-cssvars-group"),a.parentNode.removeChild(a))):o!==a.textContent.replace(/\s/g,"")&&([t,a].forEach(function(e){e.setAttribute("data-cssvars-job",E.job),e.setAttribute("data-cssvars-group",r)}),a.textContent=s,i.push(s),u.push(a),a.parentNode||t.parentNode.insertBefore(a,t.nextSibling)))):t.textContent.replace(/\s/g,"")!==s&&i.push(s)}catch(e){f(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",E.job)}),k=d.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,d.shadowDOM)for(var r,o=[d.rootElement].concat(v(d.rootElement.querySelectorAll("*"))),a=0;r=o[a];++a){r.shadowRoot&&r.shadowRoot.querySelector("style")&&T(p({},d,{rootElement:r.shadowRoot}))}d.updateDOM&&l&&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";s(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){s(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(){var e,t;!1!==((window.$docsify||{}).themeable||{}).responsiveTables&&(t=(e=window.$docsify.markdown=window.$docsify.markdown||{}).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){e="#".concat(a," td:nth-child(").concat(t+1,')::before{content:"').concat(e,'";}');o.insertRule(e,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,t=document.querySelector(".sidebar .search .clear-button");t&&((e=document.createElement("button")).className="clear-button",e.setAttribute("aria-label","Clear search"),e.innerHTML='\n \n \n \n \n \n ',t.parentNode.replaceChild(e,t))})},d("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")})})}),d("4.8.0",function(e,t){var o=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector;e.doneEach(function(){var r="medium-zoom-image";Array.apply(null,document.querySelectorAll(".".concat(r))).forEach(function(e){var t=o.call(e,"a img"),n=o.call(e,".content img");!t&&n||(n=e.cloneNode(!0),e.parentNode.replaceChild(n,e),n.classList.remove(r))})})})]).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.4",window.$docsify.themeable.util={cssVars:function(e){T(0