!function(t){var e={};function o(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)o.d(n,s,function(e){return t[e]}.bind(null,s));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1);new(function(){function t(t){var e=this;this.matchRuleShort=function(t,e){return new RegExp(e.split("*").map((function(t){return t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")})).join(".*")+"$").test(t)},this.xoContains=function(t){return-1!==e.pages.indexOf(t)},this.showPosition=function(t){var e=t.parentNode;return(t.scrollTop||e.scrollTop)/(e.scrollHeight-e.clientHeight)*100};var o=t.id,s=t.duration,i=t.pages,r=t.status,a=t.toElement,l=t.appear,u=t.callback;this.xoButton=document.getElementById(o),this.toElement=(null==a?void 0:a.elm)?document.querySelector(null==a?void 0:a.elm):null,this.elmOffset=(null==a?void 0:a.offset)||0,this.pages=i||[],this.status=r||!1,this.duration=s||600,this.appear=l||-1,this.callback=u,this.initialized=!1,n.hasClass(this.xoButton,"xo-scroll2top--2")?this.xoStyle=2:this.xoStyle=1}return t.prototype.init=function(){var t=this,e=this.xoButton;"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0||n.addClass(e,"xo-s2t--hover"),navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)?e.addEventListener("mouseup",(function(e){e.preventDefault(),t.scrollTo2()})):e.addEventListener("click",(function(e){e.preventDefault(),t.scrollTo2()}));var o=window.innerHeight;this.appear>-1&&(o=this.appear);var s,i,r,a=!1;s=e,i=o,a=window.scrollY>i?(n.addClass(s,"xo-show-button"),!0):(n.removeClass(s,"xo-show-button"),!1),2===this.xoStyle&&(r=e.querySelector(".xo-scroll2top__track")),window.addEventListener("scroll",(function(s){if(2===t.xoStyle){var i=t.showPosition(document.body);r.style.width=i+"%"}window.scrollY>o&&!a?(n.addClass(e,"xo-show-button"),a=!0):window.scrollY");var o=this.xoContains(e),n=[];this.pages.map((function(t){-1!==t.indexOf("*")&&n.push(t)})),n.map((function(n){t.matchRuleShort(e,n)&&(o=!0)})),this.status&&(o=!o),o||(this.xoButton.style.display="none")}},t}())(xoscroll2topInit).init()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))};e.hasClass=n;e.addClass=function(t,e){t.classList?t.classList.add(e):n(t,e)||(t.className+=" "+e)};e.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else if(n(t,e)){var o=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(o," ")}}}]);