1if(void 0===window.JLogo){window.JLogo=function(e,o){var t={inited:!1};Object.defineProperties(this,{inited:{get:function(){return t.inited},set:function(e){e&&(t.inited=!0)}},node:{get:function(){return e}},img:{get:function(){return e?e.querySelector("img"):null}},svg:{get:function(){return e?e.querySelector("svg"):null}}}),this.params=function(e){if("object"==typeof o&&void 0!==e&&Object.keys(o).indexOf(e)>-1)return o[e]},this.init()},window.JLogo.prototype={get src(){return this.img?this.img.getAttribute("src"):""},set src(e){this.img&&this.img.setAttribute("src",e)},get srcDark(){return arAsproOptions.THEME.LOGO_IMAGE},get srcLight(){return arAsproOptions.THEME.LOGO_IMAGE_WHITE?arAsproOptions.THEME.LOGO_IMAGE_WHITE:arAsproOptions.THEME.LOGO_IMAGE},get color(){if(this.img){let e=this.src;return e===this.srcDark?"dark":e===this.srcLight?"light":""}return""},set color(e){this.canChangeColor&&this.color!==e&&(this.src="light"===e?this.srcLight:this.srcDark)},get isMainLogo(){return Boolean(this.node.closest("header"))},get canChangeColor(){let e=!1;return this.img&&(this.isMainLogo&&this.node.closest(".header_opacity")||(e=!0)),e},setColorOfBanner:function(e){this.img&&e&&void 0!==window.headerLogo&&(value=BX.data(e,"color"),value=value||"dark",this.color!==value&&this.node.setAttribute("src","light"===value?this.srcLight:this.srcDark))},get isPreferColor(){return BX.hasClass(document.body,"theme-default")},get preferColor(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},get themeColor(){return this.isPreferColor?this.preferColor:BX.hasClass(document.body,"theme-dark")?"dark":"light"},init:function(){this.inited||(this.inited=!0,this.img&&(this.color=this.getInvertedColor(this.themeColor),this.bindEvents()))},getInvertedColor:function(e){return"default"===e&&(e=this.preferColor),"light"===e?"dark":"dark"===e?"light":""},bindEvents:function(){"function"==typeof this.handlers.onChangePrefersColorScheme&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",BX.proxy(this.handlers.onChangePrefersColorScheme,this)),"function"==typeof this.handlers.onChangeThemeColor&&BX.addCustomEvent("onChangeThemeColor",BX.proxy(this.handlers.onChangeThemeColor,this))},unbindEvents:function(){},handlers:{onChangePrefersColorScheme:function(e){e||(e=window.event);let o=e.matches?"dark":"light";this.isPreferColor&&(this.color=this.getInvertedColor(o)),BX.setCookie("prefers-color-scheme",o)},onChangeThemeColor:function(e){"object"==typeof e&&e&&"value"in e&&(this.color=this.getInvertedColor(e.value))}}},("function"==typeof readyDOM?readyDOM:BX.ready)((function(){window.headerLogo=new JLogo(document.querySelector("header .logo")),window.headerfixedLogo=new JLogo(document.querySelector("#headerfixed .header .logo")),window.mobileheaderLogo=new JLogo(document.querySelector("#mobileheader .mobileheader .logo")),window.mobilemenuLogo=new JLogo(document.querySelector("#mobilemenu .mobilemenu .logo")),BX.setCookie("prefers-color-scheme",window.headerLogo.preferColor)}))}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.