"use strict";function_objectDestructuringEmpty(a){if(null==a)thrownewTypeError("Cannot destructure undefined")}function_createForOfIteratorHelper(a){if("undefined"==typeofSymbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(a=_unsupportedIterableToArray(a))){varb=0,c=function(){};return{s:c,n:functionn(){returnb>=a.length?{done:!0}:{done:!1,value:a[b++]}},e:functione(a){throwa},f:c}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}vard,e,f=!0,g=!1;return{s:functions(){d=a[Symbol.iterator]()},n:functionn(){vara=d.next();returnf=a.done,a},e:functione(a){g=!0,e=a},f:functionf(){try{f||null==d.return||d.return()}finally{if(g)throwe}}}}function_toConsumableArray(a){return_arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function_nonIterableSpread(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function_unsupportedIterableToArray(a,b){if(a){if("string"==typeofa)return_arrayLikeToArray(a,b);varc=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void0}}function_iterableToArray(a){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(a))returnArray.from(a)}function_arrayWithoutHoles(a){if(Array.isArray(a))return_arrayLikeToArray(a)}function_arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(varc=0,d=Array(b);c<b;c++)d[c]=a[c];returnd}function_classCallCheck(a,b){if(!(ainstanceofb))thrownewTypeError("Cannot call a class as a function")}function_defineProperties(a,b){for(varc,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"inc&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function_createClass(a,b,c){returnb&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}varUtil=/*#__PURE__*/function(){functiona(){_classCallCheck(this,a)}return_createClass(a,[{key:"forEach",value:functionforEach(a,b){a=a||[];for(varc=0;c<a.length;c++)b(a[c])}},{key:"getScrollTop",value:functiongetScrollTop(){returndocument.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}},{key:"isMobile",value:functionisMobile(){returnwindow.matchMedia("only screen and (max-width: 680px)").matches}},{key:"isTocStatic",value:functionisTocStatic(){returnwindow.matchMedia("only screen and (max-width: 960px)").matches}},{key:"animateCSS",value:functionanimateCSS(a,b,c,d){vare;Array.isArray(b)||(b=[b]),(e=a.classList).add.apply(e,["animated"].concat(_toConsumableArray(b)));varf=function(){varc;(c=a.classList).remove.apply(c,["animated"].concat(_toConsumableArray(b))),a.removeEventListener("animationend",f),"function"==typeofd&&d()};c||a.addEventListener("animationend",f,!1)}}]),a}(),Theme=/*#__PURE__*/function(){functiona(){_classCallCheck(this,a),this.config=window.config,this.data=this.config.data,this.isDark=document.body.classList.contains("dark"),this.util=newUtil,this.newScrollTop=this.util.getScrollTop(),this.oldScrollTop=this.newScrollTop,this.scrollEventSet=newSet,this.resizeEventSet=newSet,this.switchThemeEventSet=newSet,this.clickMaskEventSet=newSet}return_createClass(a,[{key:"initIcon",value:functioninitIcon(){this.util.forEach(document.querySelectorAll("[data-svg-src]"),function(a){fetch(a.getAttribute("data-svg-src")).then(function(a){returna.text()}).then(function(b){varc=document.createElement("div");c.insertAdjacentHTML("afterbegin",b);vard=c.firstChild;d.setAttribute("data-svg-src",a.getAttribute("data-svg-src")),d.classList.add("icon"),a.parentElement.replaceChild(d,a)}).catch(console.error.bind(console))})}},{key:"initMenuMobile",value:functioninitMenuMobile(){vara=document.getElementById("menu-toggle-mobile"),b=document.getElementById("menu-mobile");a.addEventLis