PageSourceSearch

https://www.nerc.gov.ua/combine/70386e51bc2e94308a2cb0f3a2c400e1-1707130586

js nerc.gov.ua collected 2026-10-02 05:41:37 UTC 130,437 bytes, 1 lines download raw bytes

1!function(e){var t={};function __webpack_require__(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,__webpack_require__),i.l=!0,i.exports}__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(__webpack_require__.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)__webpack_require__.d(n,i,function(t){return e[t]}.bind(null,i));return n},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=95)}({0:function(e,t){e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},1:function(e,t,n){var i=n(11);function _defineProperties(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,i(s.key),s)}}e.exports=function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},10:function(e,t,n){var i=n(6);e.exports=function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},11:function(e,t,n){var i=n(5).default,s=n(12);e.exports=function _toPropertyKey(e){var t=s(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},12:function(e,t,n){var i=n(5).default;e.exports=function _toPrimitive(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!==i(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},13:function(e,t,n){var i=n(6);e.exports=function _arrayWithoutHoles(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},14:function(e,t){e.exports=function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},15:function(e,t){e.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},16:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"BrowserInfo",(function(){return i})),n.d(t,"NodeInfo",(function(){return s})),n.d(t,"SearchBotDeviceInfo",(function(){return o})),n.d(t,"BotInfo",(function(){return r})),n.d(t,"ReactNativeInfo",(function(){return a})),n.d(t,"detect",(function(){return detect})),n.d(t,"browserName",(function(){return browserName})),n.d(t,"parseUserAgent",(function(){return parseUserAgent})),n.d(t,"detectOS",(function(){return detectOS})),n.d(t,"getNodeVersion",(function(){return getNodeVersion}));var __spreadArray=function(e,t,n){if(n||2===arguments.length)for(var i,s=0,o=t.length;s<o;s++)!i&&s in t||(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))},i=function i(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},s=function s(t){this.version=t,this.type="node",this.name="node",this.os=e.platform},o=function o(e,t,n,i){this.name=e,this.version=t,this.os=n,this.bot=i,this.type="bot-device"},r=function r(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},a=function a(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;
1\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function detect(e){return e?parseUserAgent(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new a:"undefined"!=typeof navigator?parseUserAgent(navigator.userAgent):getNodeVersion()}function matchUserAgent(e){return""!==e&&u.reduce((function(t,n){var i=n[0],s=n[1];if(t)return t;var o=s.exec(e);return!!o&&[i,o]}),!1)}function browserName(e){var t=matchUserAgent(e);return t?t[0]:null}function parseUserAgent(e){var t=matchUserAgent(e);if(!t)return null;var n=t[0],s=t[1];if("searchbot"===n)return new r;var a=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);a?a.length<3&&(a=__spreadArray(__spreadArray([],a,!0),function createVersionParts(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-a.length),!0)):a=[];var u=a.join("."),c=detectOS(e),h=l.exec(e);return h&&h[1]?new o(n,u,c,h[1]):new i(n,u,c)}function detectOS(e){for(var t=0,n=c.length;t<n;t++){var i=c[t],s=i[0];if(i[1].exec(e))return s}return null}function getNodeVersion(){return void 0!==e&&e.version?new s(e.version.slice(1)):null}}.call(this,n(8))},17:function(e,t,n){"use strict";n.r(t),n.d(t,"disableBodyScroll",(function(){return m})),n.d(t,"clearAllBodyScrollLocks",(function(){return f})),n.d(t,"enableBodyScroll",(function(){return g}));var i=!1;if("undefined"!=typeof window){var s={get passive(){i=!0}};window.addEventListener("testPassive",null,s),window.removeEventListener("testPassive",null,s)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),r=[],a=!1,l=-1,u=void 0,c=void 0,h=function allowTouchMove(e){return r.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},d=function preventDefault(e){var t=e||window.event;return!!h(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},p=function restoreOverflowSetting(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)},m=function disableBodyScroll(e,t){if(e){if(!r.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};r=[].concat(function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(r),[n]),o?(e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function handleScroll(e,t){var n=e.targetTouches[0].clientY-l;!h(e.target)&&(t&&0===t.scrollTop&&n>0||function isTargetElementTotallyScrolled(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?d(e):e.stopPropagation())}(t,e)},a||(document.addEventListener("touchmove",d,i?{passive:!1}:void 0),a=!0)):function setOverflowHidden(e){if(void 0===c){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(c=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},f=function clearAllBodyScrollLocks(){o?(r.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),a&&(document.removeEventListener("touchmove",d,i?{passive:!1}:void 0),a=!1),l=-1):p(),r=[]},g=function enableBodyScroll(e){e?(r=r.filter((function(t){return t.targetElement!==e})),o?(e.ontouchstart=null,e.ontouchmove=null,a&&0===r.length&&(document.removeEventListener("touchmove",d,i?{passive:!1}:void 0),a=!1)):r.length||p()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}},2:function(e,t,n){var i=n(13),s=n(14),o=n(10),r=n(15);e.exports=function _toConsumableArray(e){return i(e)||s(e)||o(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports},26:function(e,t,n){"use strict";[["getScrollY","scrollTop","pageYOffset"],["getScrollX","scrollLeft","pageXOffset"]].forEac
1h((function(t){var n=t[0],i=t[1],s=t[2];e.exports[n]=function(){return s in window?window[s]:window.document.documentElement[i]}}))},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),s=n.n(i),o=n(1),r=n.n(o),a=function(){function ValidateDatesPicker(){s()(this,ValidateDatesPicker),this.settings(),this.texts(),this.bindEvents()}return r()(ValidateDatesPicker,[{key:"settings",value:function settings(){this.dateFromInput=document.getElementById("header_npa_from"),this.dateToInput=document.getElementById("header_npa_to"),this.errorBlock=document.getElementById("error_header_npa"),this.btn=document.getElementById("submitNpaBtnHeader")}},{key:"texts",value:function texts(){var e,t,n,i,s,o,r,a,l,u;this.errMsgDay=(null===(e=window.multiLang)||void 0===e||null===(t=e.timeLine)||void 0===t?void 0:t.errMsgDay)||"День початку має бути меншим",this.errMsgMounth=(null===(n=window.multiLang)||void 0===n||null===(i=n.timeLine)||void 0===i?void 0:i.errMsgMounth)||"Місяць початку має бути меншим",this.errMsgYear=(null===(s=window.multiLang)||void 0===s||null===(o=s.timeLine)||void 0===o?void 0:o.errMsgYear)||"Рік початку має бути меншим",this.chooseDateText=(null===(r=window.multiLang)||void 0===r||null===(a=r.allPages)||void 0===a?void 0:a.chooseDateText)||"Виберіть дату",this.noResults=(null===(l=window.multiLang)||void 0===l||null===(u=l.allPages)||void 0===u?void 0:u.notFoundText)||"Нічого не знайдено",this.allTypesname=""}},{key:"validateDates",value:function validateDates(){var e=this.dateFromInput.value.length?this.dateFromInput.value.split("."):this.dateFromInput.value,t=this.dateToInput.value.length?this.dateToInput.value.split("."):this.dateToInput.value;return e=this.dateFromInput.value.length?"".concat(e[2],"-").concat(e[1],"-").concat(e[0]):"",t=this.dateToInput.value.length?"".concat(t[2],"-").concat(t[1],"-").concat(t[0]):"",moment(e).diff(t,"year")>0?(this.errorBlock.innerHTML=this.errMsgYear,this.errorBlock.classList.add("active"),void(this.validatePassed=!1)):moment(e).diff(t,"month")>0?(this.errorBlock.innerHTML=this.errMsgMounth,this.errorBlock.classList.add("active"),void(this.validatePassed=!1)):moment(e).diff(t,"days")>0?(this.errorBlock.innerHTML=this.errMsgDay,this.errorBlock.classList.add("active"),void(this.validatePassed=!1)):(this.errorBlock.classList.remove("active"),this.errorBlock.innerHTML="",void(this.validatePassed=!0))}},{key:"disableBtnSearch",value:function disableBtnSearch(){this.btn.setAttribute("disabled","true")}},{key:"enableBtnSearch",value:function enableBtnSearch(){this.btn.removeAttribute("disabled")}},{key:"bindEvents",value:function bindEvents(){var e=this;this.dateFromInput.value="",this.dateToInput.value="",$(".js_datepicker_single-header").on("changeDate",(function(){e.validateDates(),e.validatePassed?e.enableBtnSearch():e.disableBtnSearch()})).on("clearDate",(function(){e.validateDates(),e.validatePassed?e.enableBtnSearch():e.disableBtnSearch()})).on("hide",(function(){e.validateDates(),e.validatePassed?e.enableBtnSearch():e.disableBtnSearch()}))}}]),ValidateDatesPicker}()},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(0),s=n.n(i),o=n(1),r=n.n(o),a=n(26);var l=function(){function InitShare(){var e=this;s()(this,InitShare),function fixPosition(){var e,t,n,i,s=document.getElementById("shareBlock"),o=document.querySelector(".news__wrapper"),r={document},l={document},u=Math.max(r.scrollHeight,r.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight);s&&window.innerWidth>768&&(window.onscroll=function(){e=function collision(e,t){if(e.length>0&&t.length>0){var n=e.offset().left,i=e.offset().top,s=i+e.outerHeight(!0),o=n+e.outerWidth(!0),r=t.offset().left,a=t.offset().top,l=t.outerHeight(!0),u=t.outerWidth(!0);return!(s<a||i>a+l||o<r||n>r+u)}return!1}($("#shareBlock"),$("#layout-footer")),"act"===s.getAttribute("data-position")?(i=700,n=635,t=a.getScrollY()-600):"news"===s.getAttribute("data-position")?(i=500,n=420,t=a.getScrollY()-400):"service"===s.getAttribute("data-position")?(i=500,n=260,t=a.getScrollY()-265):"events"===s.getAttribute("data-position")&&(i=1e3,n=645,t=a.getScrollY()-600),a.getScrollY()>
1n&&a.getScrollY()<u-i?!1===e?(s&&(s.classList.add("active"),s.style.opacity="1"),o&&o.classList.add("active"),s.style.top="".concat(t,"px")):s&&(s.style.opacity="0"):(s&&(s.classList.remove("active"),s.style.opacity="1"),o&&o.classList.remove("active"))})}(),this.settings(),this.bindEvents(),setTimeout((function(){e.countShared(),setTimeout((function(){e.countShared(),setTimeout((function(){e.countShared(),setTimeout((function(){e.countShared()}),e.timeoutShareCheck)}),e.timeoutShareCheck)}),e.timeoutShareCheck)}),this.timeoutShareCheck)}return r()(InitShare,[{key:"settings",value:function settings(){this.href=window.location.href,this.shareCountAll=0,this.counters="",this.btnSelector=document.querySelectorAll("button[data-type]"),this.totalCounterWrapper=document.querySelector(".share__count"),this.totalCounter=document.querySelector(".js-share-count"),this.timeoutShareCheck=500,this.dependencies={facebook:"https://www.facebook.com/share.php?u=",twitter:"https://twitter.com/intent/tweet?url=",googleplus:"https://plus.google.com/share?url=",link:"https://www.linkedin.com/shareArticle?mini=true&url=",viber:"https://3p3x.adj.st/?adjust_t=u783g1_kw9yml&adjust_fallback=https%3A%2F%2Fwww.viber.com%2F%3Futm_source%3DPartner%26utm_medium%3DSharebutton%26utm_campaign%3DDefualt&adjust_campaign=Sharebutton&adjust_deeplink=",whatsapp:"whatsapp://send?text="}}},{key:"createLink",value:function createLink(e){var t,n=this;Object.keys(this.dependencies).forEach((function(i){({}).hasOwnProperty.call(n.dependencies,i)&&e===i&&(t=n.dependencies[i]+encodeURIComponent(n.href),"viber"===i&&(t=n.dependencies[i]+encodeURIComponent("viber://forward?text=".concat(n.href))))})),this.openShareWindow(t)}},{key:"openShareWindow",value:function openShareWindow(e){window.open(e,"connectWindow","width=800,height=600,scrollbars=yes")}},{key:"bindEvents",value:function bindEvents(){for(var e=this,t=0;t<this.btnSelector.length;t++)this.btnSelector[t].addEventListener("click",(function(t){var n;t.preventDefault(),t.stopPropagation(),n=t.target.hasAttribute("data-type")?t.target.getAttribute("data-type"):"",n=t.target.parentElement.hasAttribute("data-type")?t.target.parentElement.getAttribute("data-type"):n,e.createLink(n)}))}},{key:"countShared",value:function countShared(){var e=this;this.shareCountAll=0,this.counters=document.querySelectorAll(".likely__counter"),this.counters.forEach((function(t){e.shareCountAll+=Number(t.innerHTML)})),this.shareCountAll>0&&!this.totalCounterWrapper.classList.contains("active")&&this.totalCounterWrapper.classList.add("active"),this.totalCounter&&(this.totalCounter.innerText=this.shareCountAll)}}]),InitShare}()},46:function(e,t,n){"use strict";function printPage(){var e=document.getElementById("printBtn");e&&(e.onclick=function(e){e.preventDefault(),window.print()})}n.d(t,"a",(function(){return printPage}))},5:function(e,t){function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},52:function(e,t,n){"use strict";function magnificPopup(e,t){var n=$(e);$(n).magnificPopup({mainClass:"mfp-fade",type:"image",tLoading:"Зачекайте, завантаження",tClose:"Закрити (Esc)",gallery:{enabled:!0,tPrev:"Попередня",tNext:"Наступна",arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',tCounter:"%curr% з %total%"},image:{markup:' \n\t\t\t\t<div class="mfp-gallery">\n\t\t\t\t\t<div class="mfp-gallery_close icon-close-black"></div>\n\t\t\t\t\t<div class="mfp-figure mfp-gallery_figure">\n\t\t\t\t\t\t<div class="mfp-img mfp-gallery_img"></div>\n\t\t\t\t\t\t<div class="mfp-bottom-bar mfp-gallery_bar">\n\t\t\t\t\t\t\t<div class="mfp-counter mfp-gallery_counter"></div>\n\t\t\t\t\t\t\t<div class="mfp-title mfp-gallery_title"></div>\n\t\t\t\t\t\t\t<div class="mfp-gallery_download"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>',tError:"Зображення не завантажено :("},callbacks:{beforeOpen:function beforeOpen(){},change:function change(){var e,t,n=this,i=this.content,s=this.currItem.el[0].attributes.srcOrigin.nodeValue,o=this.currItem.el[0].attributes.dataSize.nodeValue,r=document.querySelector(".page_title-text")||"";o>=1e6?(e="Мб",t=o/1e6):o<1e6&&(e="Кб",t=o/1e3),r&&r.textContent.length&&($(i).find(".mfp-img").attr("alt",r.textContent),$(i).find(".mfp-img").attr("title",r.textContent)),$(i).find(".mfp-gallery_download").html('\n\t\t\t\t\t\t<a class="mfp-gallery_download-l
1ink" href="'.concat(s,'" download>Завантажити зображення</a>\n\t\t\t\t\t\t<span class="mfp-gallery_download-size">').concat(t.toFixed(2)," ").concat(e,"</span>\n\t\t\t\t\t")),setTimeout((function(){$(".mfp-gallery_close").on("click",(function(){n.close()}))}),200)},buildControls:function buildControls(){this.arrowLeft&&this.contentContainer.append(this.arrowLeft.add(this.arrowRight))},open:function open(){$("html").css("margin-right",0)},close:function close(){$("html").prop("style","")}},zoom:{enabled:t,duration:300,opener:function opener(e){return e.find("img")}}})}n.d(t,"a",(function(){return magnificPopup}))},6:function(e,t){e.exports=function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return header}));var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=function isSupported(e){return"IMG"===e.tagName},o=function isNode(e){return e&&1===e.nodeType},r=function isSvg(e){return".svg"===(e.currentSrc||e.src).substr(-4).toLowerCase()},a=function getImagesFromSelector(e){try{return Array.isArray(e)?e.filter(s):function isNodeList(e){return NodeList.prototype.isPrototypeOf(e)}(e)?[].slice.call(e).filter(s):o(e)?[e].filter(s):"string"==typeof e?[].slice.call(document.querySelectorAll(e)).filter(s):[]}catch(e){throw new TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom")}},l=function createOverlay(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},u=function cloneTarget(e){var t=e.getBoundingClientRect(),n=t.top,i=t.left,s=t.width,o=t.height,r=e.cloneNode(),a=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return r.removeAttribute("id"),r.style.position="absolute",r.style.top=n+a+"px",r.style.left=i+l+"px",r.style.width=s+"px",r.style.height=o+"px",r.style.transform="",r},c=function createCustomEvent(e,t){var n=i({bubbles:!1,cancelable:!1,detail:void 0},t);if("function"==typeof window.CustomEvent)return new CustomEvent(e,n);var s=document.createEvent("CustomEvent");return s.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),s};!function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");var h=function mediumZoom(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=window.Promise||function Promise(e){function noop(){}e(noop,noop)},s=function _handleClick(e){var t=e.target;t!==B?-1!==C.indexOf(t)&&w({target:t}):_()},h=function _handleScroll(){if(!M&&F.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(x-e)>T.scrollOffset&&setTimeout(_,150)}},d=function _handleKeyUp(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||_()},p=function update(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;if(e.background&&(B.style.background=e.background),e.container&&e.container instanceof Object&&(t.container=i({},T.container,e.container)),e.template){var n=o(e.template)?e.template:document.querySelector(e.template);t.template=n}return T=i({}
vendor: 5,567 bytes, line 1
1,T,t),C.forEach((function(e){e.dispatchEvent(c("medium-zoom:update",{detail:{zoom:D}}))})),D},m=function clone(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return mediumZoom(i({},T,e))},f=function attach(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.reduce((function(e,t){return[].concat(e,a(t))}),[]);return i.filter((function(e){return-1===C.indexOf(e)})).forEach((function(e){C.push(e),e.classList.add("medium-zoom-image")})),A.forEach((function(e){var t=e.type,n=e.listener,s=e.options;i.forEach((function(e){e.addEventListener(t,n,s)}))})),D},g=function detach(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];F.zoomed&&_();var i=t.length>0?t.reduce((function(e,t){return[].concat(e,a(t))}),[]):C;return i.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(c("medium-zoom:detach",{detail:{zoom:D}}))})),C=C.filter((function(e){return-1===i.indexOf(e)})),D},v=function on(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C.forEach((function(i){i.addEventListener("medium-zoom:"+e,t,n)})),A.push({type:"medium-zoom:"+e,listener:t,options:n}),D},b=function off(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C.forEach((function(i){i.removeEventListener("medium-zoom:"+e,t,n)})),A=A.filter((function(n){return!(n.type==="medium-zoom:"+e&&n.listener.toString()===t.toString())})),D},k=function open(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,s=function _animate(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,n=void 0;if(T.container)if(T.container instanceof Object)t=(e=i({},e,T.container)).width-e.left-e.right-2*T.margin,n=e.height-e.top-e.bottom-2*T.margin;else{var s=(o(T.container)?T.container:document.querySelector(T.container)).getBoundingClientRect(),a=s.width,l=s.height,u=s.left,c=s.top;e=i({},e,{width:a,height:l,left:u,top:c})}t=t||e.width-2*T.margin,n=n||e.height-2*T.margin;var h=F.zoomedHd||F.original,d=r(h)?t:h.naturalWidth||t,p=r(h)?n:h.naturalHeight||n,m=h.getBoundingClientRect(),f=m.top,g=m.left,v=m.width,b=m.height,k=Math.min(Math.max(v,d),t)/v,_=Math.min(Math.max(b,p),n)/b,w=Math.min(k,_),y="scale("+w+") translate3d("+((t-v)/2-g+T.margin+e.left)/w+"px, "+((n-b)/2-f+T.margin+e.top)/w+"px, 0)";F.zoomed.style.transform=y,F.zoomedHd&&(F.zoomedHd.style.transform=y)};return new n((function(e){if(t&&-1===C.indexOf(t))e(D);else{if(F.zoomed)e(D);else{if(t)F.original=t;else{if(!(C.length>0))return void e(D);var n=C;F.original=n[0]}if(F.original.dispatchEvent(c("medium-zoom:open",{detail:{zoom:D}})),x=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,M=!0,F.zoomed=u(F.original),document.body.appendChild(B),T.template){var i=o(T.template)?T.template:document.querySelector(T.template);F.template=document.createElement("div"),F.template.appendChild(i.content.cloneNode(!0)),document.body.appendChild(F.template)}if(F.original.parentElement&&"PICTURE"===F.original.parentElement.tagName&&F.original.currentSrc&&(F.zoomed.src=F.original.currentSrc),document.body.appendChild(F.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),F.original.classList.add("medium-zoom-image--hidden"),F.zoomed.classList.add("medium-zoom-image--opened"),F.zoomed.addEventListener("click",_),F.zoomed.addEventListener("transitionend",(function _handleOpenEnd(){M=!1,F.zoomed.removeEventListener("transitionend",_handleOpenEnd),F.original.dispatchEvent(c("medium-zoom:opened",{detail:{zoom:D}})),e(D)})),F.original.getAttribute("data-zoom-src")){F.zoomedHd=F.zoomed.cloneNode(),F.zoomedHd.removeAttribute("srcset"),F.zoomedHd.removeAttribute("sizes"),F.zoomedHd.removeAttribute("loading"),F.zoomedHd.src=F.zoomed.getAttribute("data-zoom-src"),F.zoomedHd.onerror=function(){clearInterval(r),console.warn("Unable to reach the zoom image target "+F.zoomedHd.src),F.zoomedHd=null,s()};var r=setInterval((function(){F.zoomedHd.complete&&(clearInterval(r),F.zoomedHd.classList.add("medium-zoom-image--opened"),F.zoomedHd.addEventListener("click",_),document.body.appendChild(F.zoomedHd),s())}),10)}else if(F.original.hasAttribute("srcset")){F.zoomedHd=F.zoomed.cloneNode(),F.zoomedHd.removeAttribute("sizes"),F.zoomedHd.removeAttribute("loading");var a=F.zoomedHd.addEventListener("load",(function(){F.zoomedHd.removeEventListener("load",a),F.zoomedHd.classList.add("medium-zoom-image--opened"),F.zoomedHd.addEventListener("click",_),document.body.appendChild(F.zoomedHd),s()}))}else s()}}}))},_=function close(){return new n((function(e){if(!M&&F.original){M=!0,document.body.classList.remove("medium-zoom--opened"),F.zoomed.style.transform="",F.zoomedHd&&(F.zoomedHd.style.transform=""),F.template&&(F.template.style.transition="opacity 150ms",F.template.style.opacity=0),F.original.dispatchEvent(c("medium-zoom:close",{detail:{zoom:D}})),F.zoomed.addEventListener("transitionend",(function _handleCloseEnd(){F.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(F.zoomed),F.zoomedHd&&document.body.removeChild(F.zoomedHd),document.body.removeChild(B),F.zoomed.classList.remove("medium-zoom-image--opened"),F.template&&document.body.removeChild(F.template),M=!1,F.zoomed.removeEventListener("transitionend",_handleCloseEnd),F.original.dispatchEvent(c("medium-zoom:closed",{detail:{zoom:D}})),F.original=null,F.zoomed=null,F.zoomedHd=null,F.template=null,e(D)}))}else e(D)}))}
1,w=function toggle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return F.original?_():k({target:t})},y=function getOptions(){return T},E=function getImages(){return C},S=function getZoomedImage(){return F.original},C=[],A=[],M=!1,x=0,T=t,F={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(e)?T=e:(e||"string"==typeof e)&&f(e),T=i({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},T);var B=l(T.background);document.addEventListener("click",s),document.addEventListener("keyup",d),document.addEventListener("scroll",h),window.addEventListener("resize",_);var D={open:k,close:_,toggle:w,update:p,clone:m,attach:f,detach:g,on:v,off:b,getOptions:y,getImages:E,getZoomedImage:S};return D};var d=n(0),p=n.n(d),m=n(1),f=n.n(m),g=function(){function LowVision(){p()(this,LowVision),this.settings(),this.checkElements(),this.texts(),this.bindEvents(),this.checkVisionFooter(),this.checkVision(),this.fontOption=null!==localStorage.getItem("fontSize")?Number(localStorage.getItem("fontSize")):"",null===localStorage.getItem("fontSize")&&localStorage.setItem("fontSize",1),null!==localStorage.getItem("fontSize")&&this.checkFont()}return f()(LowVision,[{key:"settings",value:function settings(){this.changeVisionBtn=document.getElementById("changeVision"),this.changeVisionBtnSpan=document.querySelector("#changeVision span"),this.changeVisionFooter=document.getElementById("changeVisionFooter"),this.changeVisionBtnSpanFooter=document.querySelector("#changeVisionFooter span"),this.changeVisionMobile=document.getElementById("changeVisionMobile"),this.changeVisionBtnSpanMobile=document.querySelector("#changeVisionMobile span"),this.fornMinus=document.querySelector(".js_font_minus"),this.fontPlus=document.querySelector(".js_font_plus"),this.fontOption="",this.fontSizes=["16px","","20px","22px"]}},{key:"texts",value:function texts(){var e,t,n,i;this.changeVisionText=(null===(e=window.multiLang)||void 0===e||null===(t=e.allPages)||void 0===t?void 0:t.changeVisionText)||"Людям із порушенням зору",this.changeVisionNormalText=(null===(n=window.multiLang)||void 0===n||null===(i=n.allPages)||void 0===i?void 0:i.changeVisionNormalText)||"Стандартна версія"}},{key:"checkElements",value:function checkElements(){var e=function showError(e){console.log("%cElement required","background: #222; color: #bada55",', selector ="',e,'"')};this.changeVisionBtn||e("#changeVision"),this.changeVisionBtnSpan||e("#changeVision span"),this.changeVisionFooter||e("#changeVisionFooter"),this.changeVisionBtnSpanFooter||e("#changeVisionFooter span"),this.changeVisionMobile||e("#changeVisionMobile"),this.changeVisionBtnSpanMobile||e("#changeVisionMobile span"),this.fornMinus||e(".js_font_minus"),this.fontPlus||e(".js_font_plus")}},{key:"bindEvents",value:function bindEvents(){var e=this;this.changeVisionBtn&&(this.changeVisionBtn.onclick=function(){e.changeVision(),e.checkVisionFooter()}),this.changeVisionFooter&&(this.changeVisionFooter.onclick=function(){e.changeVision(),e.checkVisionFooter()}),this.changeVisionMobile&&(this.changeVisionMobile.onclick=function(){e.changeVision(),e.checkVisionFooter(),e.checkVisionMobile()}),this.fornMinus&&(this.fornMinus.onclick=function(){e.minusFontSize(),e.checkFont()}),this.fontPlus&&(this.fontPlus.onclick=function(){e.plusFontSize(),e.checkFont()})}},{key:"plusFontSize",value:function plusFontSize(){this.fontOption+=1}},{key:"minusFontSize",value:function minusFontSize(){this.fontOption-=1}},{key:"checkVision",value:function checkVision(){"on"===localStorage.getItem("lowvision")?document.documentElement.classList.add("lowvision"):(document.documentElement.classList.remove("lowvision"),localStorage.setItem("fontSize",1),this.checkFont()),this.changeVisionBtnSpan&&(this.changeVisionBtnSpan.innerHTML="on"===localStorage.getItem("lowvision")?this.changeVisionNormalText:this.changeVisionText)}},{key:"changeVision",value:function changeVision(){"on"===localStorage.getItem("lowvision")?localStorage.setItem("lowvision","off"):localStorage.setItem("lowvision","on"),this.checkVision()}},{key:"checkVisionFooter",value:function checkVisionFooter(){this.changeVisionBtnSp
1anFooter&&(this.changeVisionBtnSpanFooter.innerHTML="on"===localStorage.getItem("lowvision")?this.changeVisionNormalText:this.changeVisionText)}},{key:"checkVisionMobile",value:function checkVisionMobile(){this.changeVisionBtnSpanMobile&&(this.changeVisionBtnSpanMobile.innerHTML="on"===localStorage.getItem("lowvision")?this.changeVisionNormalText:this.changeVisionText)}},{key:"checkFont",value:function checkFont(){"on"===localStorage.getItem("lowvision")?localStorage.setItem("fontSize",this.fontOption):(localStorage.setItem("fontSize",1),this.fontOption=1),document.body.style.fontSize=this.fontSizes[this.fontOption],0===this.fontOption?this.fornMinus.classList.add("disabled"):this.fornMinus.classList.remove("disabled"),this.fontOption===this.fontSizes.length-1?this.fontPlus.classList.add("disabled"):this.fontPlus.classList.remove("disabled")}}]),LowVision}();function countMenuWidth(){new(function(){function ReplaceMenu(){var e=this;p()(this,ReplaceMenu),this.handleResize(),window.addEventListener("resize",(function(){e.handleResize()}))}return f()(ReplaceMenu,[{key:"settings",value:function settings(){this.menu=document.getElementById("menuDesktop"),this.show_more=document.getElementById("show_more"),this.menuWidth=this.menu?$(this.menu).width():"",this.menu.children.length&&(this.header=document.getElementById("layout-header"),this.menuItems=this.menu.children[0].children)}},{key:"bindEvents",value:function bindEvents(){this.desctop=window.innerWidth>=992,this.desctop&&this.checkMenuWidth()}},{key:"checkMenuWidth",value:function checkMenuWidth(){var e="";if(this.menuItems)for(var t=0;t<this.menuItems.length;t++)this.menuItems[t]&&((e=Number(e)+Math.ceil($(this.menuItems[t]).outerWidth(!0)))>this.menuWidth?($(this.menu).addClass("more-items"),this.show_more.classList.remove("d-none"),this.toggleEvent()):(this.show_more.classList.add("d-none"),$(this.menu).removeClass("more-items")))}},{key:"toggleEvent",value:function toggleEvent(){var e=this;this.show_more&&(this.show_more.onclick=function(){$(e.show_more).toggleClass("active"),$(e.menu).toggleClass("show-items")})}},{key:"handleResize",value:function handleResize(){this.settings(),this.bindEvents()}}]),ReplaceMenu}())}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=window.device,k={},_=[];window.device=k;var w=window.document.documentElement,y=window.navigator.userAgent.toLowerCase(),E=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function includes(e,t){return-1!==e.indexOf(t)}function find(e){return includes(y,e)}function hasClass(e){return w.className.match(new RegExp(e,"i"))}function addClass(e){var t=null;hasClass(e)||(t=w.className.replace(/^\s+|\s+$/g,""),w.className=t+" "+e)}function removeClass(e){hasClass(e)&&(w.className=w.className.replace(" "+e,""))}function handleOrientation(){k.landscape()?(removeClass("portrait"),addClass("landscape"),walkOnChangeOrientationList("landscape")):(removeClass("landscape"),addClass("portrait"),walkOnChangeOrientationList("portrait")),setOrientationCache()}function walkOnChangeOrientationList(e){for(var t=0;t<_.length;t++)_[t](e)}k.macos=function(){return find("mac")},k.ios=function(){return k.iphone()||k.ipod()||k.ipad()},k.iphone=function(){return!k.windows()&&find("iphone")},k.ipod=function(){return find("ipod")},k.ipad=function(){var e="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return find("ipad")||e},k.android=function(){return!k.windows()&&find("android")},k.androidPhone=function(){return k.android()&&find("mobile")},k.androidTablet=function(){return k.android()&&!find("mobile")},k.blackberry=function(){return find("blackberry")||find("bb10")},k.blackberryPhone=function(){return k.blackberry()&&!find("tablet")},k.blackberryTablet=function(){return k.blackberry()&&find("tablet")},k.windows=function(){return find("windows")},k.windowsPhone=function(){return k.windows()&&find("phone")},k.windowsTablet=function(){return k.windows()&&find("touch")&&!k.windowsPhone()},k.fxos=function(){return(find("(mobile")||find("(tablet"))&&find(" rv:")},k.fxosPhone=function(){return k.fxos()&&find("mobile")},k.fxosTablet=function(){return k.fxos()&&find("tablet")},k.meego=function(){return find("meego")},k.cordova=function(){return window.cordova&&"file:"===location.protocol},k.nodeWebkit=function(){return"object"===v(window.process)},k.mobile=function(){return k.androidPhone()||k.iphone()||k.ipod()||k.windowsPhone()||k.blackberryPhone()||k.fxosPhone()||k.meego()},k.tablet=function(){return k.ipad()||k.androidTablet()||k.blackberryTablet()||k.windowsTablet()||k.fxosTablet()},k.desktop=function(){return!k.tablet()&&!k.mobile()},k.television=function(){for(var e=0;e<E.length;){if(find(E[e]))return!0;e++}return!1},k.portrait=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?includes(screen.orientation.type,"portrait"):k.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90!==Math.abs(window.orientation):window.innerHeight/window.innerWidth>1},k.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?includes(screen.orientation.type,"landscape"):k.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1}
1,k.noConflict=function(){return window.device=b,this},k.ios()?k.ipad()?addClass("ios ipad tablet"):k.iphone()?addClass("ios iphone mobile"):k.ipod()&&addClass("ios ipod mobile"):k.macos()?addClass("macos desktop"):k.android()?k.androidTablet()?addClass("android tablet"):addClass("android mobile"):k.blackberry()?k.blackberryTablet()?addClass("blackberry tablet"):addClass("blackberry mobile"):k.windows()?k.windowsTablet()?addClass("windows tablet"):k.windowsPhone()?addClass("windows mobile"):addClass("windows desktop"):k.fxos()?k.fxosTablet()?addClass("fxos tablet"):addClass("fxos mobile"):k.meego()?addClass("meego mobile"):k.nodeWebkit()?addClass("node-webkit"):k.television()?addClass("television"):k.desktop()&&addClass("desktop"),k.cordova()&&addClass("cordova"),k.onChangeOrientation=function(e){"function"==typeof e&&_.push(e)};var S="resize";function findMatch(e){for(var t=0;t<e.length;t++)if(k[e[t]]())return e[t];return"unknown"}function setOrientationCache(){k.orientation=findMatch(["portrait","landscape"])}Object.prototype.hasOwnProperty.call(window,"onorientationchange")&&(S="orientationchange"),window.addEventListener?window.addEventListener(S,handleOrientation,!1):window.attachEvent?window.attachEvent(S,handleOrientation):window[S]=handleOrientation,handleOrientation(),k.type=findMatch(["mobile","tablet","desktop"]),k.os=findMatch(["ios","iphone","ipad","ipod","android","blackberry","macos","windows","fxos","meego","television"]),setOrientationCache();var C=k,A=n(16).detect;function get(e){return getComputedStyle(e)}function set(e,t){for(var n in t){var i=t[n];"number"==typeof i&&(i+="px"),e.style[n]=i}return e}function div(e){var t=document.createElement("div");return t.className=e,t}var M="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function matches(e,t){if(!M)throw new Error("No element matching method supported");return M.call(e,t)}function remove(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function queryChildren(e,t){return Array.prototype.filter.call(e.children,(function(e){return matches(e,t)}))}var x="ps",T="ps__rtl",F={thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},B={focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}},D={x:null,y:null};function addScrollingClass(e,t){var n=e.element.classList,i=B.scrolling(t);n.contains(i)?clearTimeout(D[t]):n.add(i)}function removeScrollingClass(e,t){D[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(B.scrolling(t))}),e.settings.scrollingThreshold)}var I=function EventElement(e){this.element=e,this.handlers={}},L={isEmpty:{configurable:!0}};I.prototype.bind=function bind(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},I.prototype.unbind=function unbind(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(i){return!(!t||i===t)||(n.element.removeEventListener(e,i,!1),!1)}))},I.prototype.unbindAll=function unbindAll(){for(var e in this.handlers)this.unbind(e)},L.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(I.prototype,L);var P=function EventManager(){this.eventElements=[]};function createEvent(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function processScrollDiff(e,t,n,i,s){var o;if(void 0===i&&(i=!0),void 0===s&&(s=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function processScrollDiff$1(e,t,n,i,s){var o=n[0],r=n[1],a=n[2],l=n[3],u=n[4],c=n[5];void 0===i&&(i=!0);void 0===s&&(s=!1);var h=e.element;e.reach[l]=null,h[a]<1&&(e.reach[l]="start");h[a]>e[o]-e[r]-1&&(e.reach[l]="end");t&&(h.dispatchEvent(createEvent("ps-scroll-"+l)),t<0?h.dispatchEvent(createEvent("ps-scroll-"+u)):t>0&&h.dispatchEvent(createEvent("ps-scroll-"+c)),i&&function setScrollingClassInstantly(e,t){addScrollingClass(e,t),removeScrollingClass(e,t)}(e,l));e.reach[l]&&(t||s)&&h.dispatchEvent(createEvent("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,i,s)}function toInt(e){return parseInt(e,10)||0}P.prototype.eventElement=function eventElement(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new I(e),this.eventElements.push(t)),t}
vendor: 16,643 bytes, line 1
1,P.prototype.bind=function bind(e,t,n){this.eventElement(e).bind(t,n)},P.prototype.unbind=function unbind(e,t,n){var i=this.eventElement(e);i.unbind(t,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},P.prototype.unbindAll=function unbindAll(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},P.prototype.once=function once(e,t,n){var i=this.eventElement(e),onceHandler=function(e){i.unbind(t,onceHandler),n(e)};i.bind(t,onceHandler)};var V={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function updateGeometry(e){var t=e.element,n=Math.floor(t.scrollTop),i=t.getBoundingClientRect();e.containerWidth=Math.round(i.width),e.containerHeight=Math.round(i.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(queryChildren(t,F.rail("x")).forEach((function(e){return remove(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(queryChildren(t,F.rail("y")).forEach((function(e){return remove(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=getThumbSize(e,toInt(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=toInt((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=getThumbSize(e,toInt(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=toInt(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function updateCss(e,t){var n={width:t.railXWidth},i=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-i:n.top=t.scrollbarXTop+i;set(t.scrollbarXRail,n);var s={top:i,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?s.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:s.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?s.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:s.left=t.scrollbarYLeft+e.scrollLeft;set(t.scrollbarYRail,s),set(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),set(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(B.active("x")):(t.classList.remove(B.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(B.active("y")):(t.classList.remove(B.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function getThumbSize(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function bindMouseScrollHandler(e,t){var n=t[0],i=t[1],s=t[2],o=t[3],r=t[4],a=t[5],l=t[6],u=t[7],c=t[8],h=e.element,d=null,p=null,m=null;function mouseMoveHandler(t){t.touches&&t.touches[0]&&(t[s]=t.touches[0].pageY),h[l]=d+m*(t[s]-p),addScrollingClass(e,u),updateGeometry(e),t.stopPropagation(),t.type.startsWith("touch")&&t.changedTouches.length>1&&t.preventDefault()}function mouseUpHandler(){removeScrollingClass(e,u),e[c].classList.remove(B.clicking),e.event.unbind(e.ownerDocument,"mousemove",mouseMoveHandler)}function bindMoves(t,r){d=h[l],r&&t.touches&&(t[s]=t.touches[0].pageY),p=t[s],m=(e[i]-e[n])/(e[o]-e[a]),r?e.event.bind(e.ownerDocument,"touchmove",mouseMoveHandler):(e.event.bind(e.ownerDocument,"mousemove",mouseMoveHandler),e.event.once(e.ownerDocument,"mouseup",mouseUpHandler),t.preventDefault()),e[c].classList.add(B.clicking),t.stopPropagation()}e.event.bind(e[r],"mousedown",(function(e){bindMoves(e)})),e.event.bind(e[r],"touchstart",(function(e){bindMoves(e,!0)}))}var O={"click-rail":function clickRail(e){e.element,e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,updateGeometry(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,updateGeometry(e),t.stopPropagation()}))},"drag-thumb":function dragThumb(e){bindMouseScrollHandler(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),bindMouseScrollHandler(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function keyboard(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(matches(t,":hover")||matches(e.scrollbarX,":focus")||matches(e.scrollbarY,":focus"))){var i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(function isEditable(e){return matches(e,"input,[contenteditable]")||matches(e,"select,[contenteditable]")||matches(e,"textarea,[contenteditable]")||matches(e,"button,[contenteditable]")}(i))return}var s=0,o=0;switch(n.which){case 37:s=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:o=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:s=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:o=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:o=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:o=e.containerHeight;break;case 34:o=-e.containerHeight;break;case 36:o=e.contentHeight;break;case 35:o=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==s||e.settings.suppressScrollY&&0!==o||(t.scrollTop-=o,t.scrollLeft+=s,updateGeometry(e),function shouldPreventDefault(n,i){var s=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===s&&i>0||s>=e.contentHeight-e.containerHeight&&i<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===i){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(s,o)&&n.preventDefault())}}))},wheel:function wheel(e){var t=e.element;function mousewheelHandler(n){var i=function getDeltaFromEvent(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),s=i[0],o=i[1];if(!function shouldBeConsumedByChild(e,n,i){if(!V.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var s=e;s&&s!==t;){if(s.classList.contains(F.consuming))return!0;var o=get(s);if(i&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&i<0||s.scrollTop<r&&i>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&n<0||s.scrollLeft<a&&n>0))return!0}s=s.parentNode}return!1}(n.target,s,o)){var r=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(o?t.scrollTop-=o*e.settings.wheelSpeed:t.scrollTop+=s*e.settings.wheelSpeed,r=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(s?t.scrollLeft+=s*e.settings.wheelSpeed:t.scrollLeft-=o*e.settings.wheelSpeed,r=!0):(t.scrollTop-=o*e.settings.wheelSpeed,t.scrollLeft+=s*e.settings.wheelSpeed),updateGeometry(e),(r=r||function shouldPreventDefault(n,i){var s=Math.floor(t.scrollTop),o=0===t.scrollTop,r=s+t.offsetHeight===t.scrollHeight,a=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(i)>Math.abs(n)?o||r:a||l)||!e.settings.wheelPropagation}(s,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",mousewheelHandler):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",mousewheelHandler)},touch:function touch(e){if(V.supportsTouch||V.supportsIePointer){var t=e.element,n={},i=0,s={},o=null;V.supportsTouch?(e.event.bind(t,"touchstart",touchStart),e.event.bind(t,"touchmove",touchMove),e.event.bind(t,"touchend",touchEnd)):V.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",touchStart),e.event.bind(t,"pointermove",touchMove),e.event.bind(t,"pointerup",touchEnd)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",touchStart),e.event.bind(t,"MSPointerMove",touchMove),e.event.bind(t,"MSPointerUp",touchEnd)))}function applyTouchMove(n,i){t.scrollTop-=i,t.scrollLeft-=n,updateGeometry(e)}function getTouch(e){return e.targetTouches?e.targetTouches[0]:e}function shouldHandle(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(!(!e.targetTouches||1!==e.targetTouches.length)||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function touchStart(e){if(shouldHandle(e)){var t=getTouch(e);n.pageX=t.pageX,n.pageY=t.pageY,i=(new Date).getTime(),null!==o&&clearInterval(o)}}function touchMove(o){if(shouldHandle(o)){var r=getTouch(o),a={pageX:r.pageX,pageY:r.pageY},l=a.pageX-n.pageX,u=a.pageY-n.pageY;if(function shouldBeConsumedByChild(e,n,i){if(!t.contains(e))return!1;for(var s=e;s&&s!==t;){if(s.classList.contains(F.consuming))return!0;var o=get(s);if(i&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&i<0||s.scrollTop<r&&i>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&n<0||s.scrollLeft<a&&n>0))return!0}s=s.parentNode}return!1}(o.target,l,u))return;applyTouchMove(l,u),n=a;var c=(new Date).getTime(),h=c-i;h>0&&(s.x=l/h,s.y=u/h,i=c),function shouldPrevent(n,i){var s=Math.floor(t.scrollTop),o=t.scrollLeft,r=Math.abs(n),a=Math.abs(i);if(a>r){if(i<0&&s===e.contentHeight-e.containerHeight||i>0&&0===s)return 0===window.scrollY&&i>0&&V.isChrome}else if(r>a&&(n<0&&o===e.contentWidth-e.containerWidth||n>0&&0===o))return!0;return!0}(l,u)&&o.preventDefault()}}function touchEnd(){e.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){e.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):e.element?(applyTouchMove(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o):clearInterval(o)}),10))}}},R=function PerfectScrollbar(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=e,e.classList.add(x),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[i]=t[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,focus=function(){return e.classList.add(B.focus)},blur=function(){return e.classList.remove(B.focus)};this.isRtl="rtl"===get(e).direction,!0===this.isRtl&&e.classList.add(T),this.isNegativeScroll=(o=e.scrollLeft,e.scrollLeft=-1,s=e.scrollLeft<0,e.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new P,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=div(F.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=div(F.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",focus),this.event.bind(this.scrollbarX,"blur",blur),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var r=get(this.scrollbarXRail);this.scrollbarXBottom=parseInt(r.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=toInt(r.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=toInt(r.borderLeftWidth)+toInt(r.borderRightWidth),set(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=toInt(r.marginLeft)+toInt(r.marginRight),set(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=div(F.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=div(F.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",focus),this.event.bind(this.scrollbarY,"blur",blur),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var a=get(this.scrollbarYRail);this.scrollbarYRight=parseInt(a.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=toInt(a.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function perfect_scrollbar_esm_outerWidth(e){var t=get(e);return toInt(t.width)+toInt(t.paddingLeft)+toInt(t.paddingRight)+toInt(t.borderLeftWidth)+toInt(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=toInt(a.borderTopWidth)+toInt(a.borderBottomWidth),set(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=toInt(a.marginTop)+toInt(a.marginBottom),set(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(e){return O[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),updateGeometry(this)};R.prototype.update=function update(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,set(this.scrollbarXRail,{display:"block"}),set(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=toInt(get(this.scrollbarXRail).marginLeft)+toInt(get(this.scrollbarXRail).marginRight),this.railYMarginHeight=toInt(get(this.scrollbarYRail).marginTop)+toInt(get(this.scrollbarYRail).marginBottom),set(this.scrollbarXRail,{display:"none"}),set(this.scrollbarYRail,{display:"none"}),updateGeometry(this),processScrollDiff(this,"top",0,!1,!0),processScrollDiff(this,"left",0,!1,!0),set(this.scrollbarXRail,{display:""}),set(this.scrollbarYRail,{display:""}))},R.prototype.onScroll=function onScroll(e){this.isAlive&&(updateGeometry(this),processScrollDiff(this,"top",this.element.scrollTop-this.lastScrollTop),processScrollDiff(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},R.prototype.destroy=function destroy(){this.isAlive&&(this.event.unbindAll(),remove(this.scrollbarX),remove(this.scrollbarY),remove(this.scrollbarXRail),remove(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},R.prototype.removePsClasses=function removePsClasses(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")};var W=R;
1var z=n(17),H=z.disableBodyScroll,Y=z.enableBodyScroll;function searchAnim(){var e=document.getElementById("searchShow"),t=document.getElementById("searchPortal"),n=document.getElementById("searchNPA"),i=document.getElementById("searchPortalForm"),s=document.getElementById("searchNPAForm"),o=document.getElementById("closeSearch"),r=document.getElementById("header_search");e.addEventListener("click",(function showLinks(){$(this).toggleClass("active")}),!1),window.innerWidth<=992&&(e.onclick=function(){document.body.classList.add("active"),document.body.classList.add("hidden-search"),$("html, body").animate({scrollTop:0},500),H(r)}),t&&(t.onclick=function(){!function showPortalForm(){n.classList.remove("active"),s.classList.remove("active"),t.classList.add("active"),i.classList.add("active")}()}),n&&(n.onclick=function(){!function showNPAForm(){n.classList.add("active"),s.classList.add("active"),t.classList.remove("active"),i.classList.remove("active")}()}),o&&(o.onclick=function(){!function closeSearchSm(){e.classList.remove("active"),document.body.classList.remove("active"),document.body.classList.remove("hidden-search")}(),window.innerWidth<=992&&Y(r)}),$(document).mouseup((function(e){var t=$(".header_search"),n=$("#searchShow"),i=$(".datepicker-dropdown");t.is(e.target)||0!==t.has(e.target).length||n.is(e.target)||0!==n.has(e.target).length||i.is(e.target)||0!==i.has(e.target).length||n.removeClass("active")}))}var j=n(4),N=n(2),X=n.n(N);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,i,s={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}function IMask(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new IMask.InputMask(e,t)}class ChangeDetails{constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function isString(e){return"string"==typeof e||e instanceof String}IMask.ChangeDetails=ChangeDetails;const q="NONE",U="LEFT",K="FORCE_LEFT",G="RIGHT",Z="FORCE_RIGHT";function escapeRegExp(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function normalizePrepare(e){return Array.isArray(e)?e:[e,new ChangeDetails]}function objectIncludes(e,t){if(t===e)return!0;var n,i=Array.isArray(t),s=Array.isArray(e);if(i&&s){if(t.length!=e.length)return!1;for(n=0;n<t.length;n++)if(!objectIncludes(t[n],e[n]))return!1;return!0}if(i!=s)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o=t instanceof Date,r=e instanceof Date;if(o&&r)return t.getTime()==e.getTime();if(o!=r)return!1;var a=t instanceof RegExp,l=e instanceof RegExp;if(a&&l)return t.toString()==e.toString();if(a!=l)return!1;var u=Object.keys(t);for(n=0;n<u.length;n++)if(!Object.prototype.hasOwnProperty.call(e,u[n]))return!1;for(n=0;n<u.length;n++)if(!objectIncludes(e[u[n]],t[u[n]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}class action_details_ActionDetails{constructor(e,t,n,i){for(this.value=e,this.cursorPos=t,this.oldValue=n,this.oldSelection=i;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?q:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?U:G}}class ContinuousTailDetails{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class base_Masked{constructor(e){this._value="",this._update(Object.assign({},base_Masked.DEFAULTS,e)),this.isInitialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{input:!0};return this.reset(),this.append(e,t,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(e){this.reset(),this.append(e,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(e){this.value=this.doFormat(e)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(e){this.reset(),this.append(e,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return Math.min(this.value.length,t-e)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t)}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new ContinuousTailDetails(this.extractInput(e,t),e)}appendTail(e){return isString(e)&&(e=new ContinuousTailDetails(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new ChangeDetails({inserted:e,rawInserted:e})):new ChangeDetails}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=this.state;let s;if([e,s]=normalizePrepare(this.doPrepare(e,t)),s=s.aggregate(this._appendCharRaw(e,t)),s.inserted){let e,o=!1!==this.doValidate(t);if(o&&null!=n){const t=this.state;!0===this.overwrite&&(e=n.state,n.unshift(this.value.length-s.tailShift));let i=this.appendTail(n);o=i.rawInserted===n.toString(),o&&i.inserted||"shift"!==this.overwrite||(this.state=t,e=n.state,n.shift(),i=this.appendTail(n),o=i.rawInserted===n.toString()),o&&i.inserted&&(this.state=t)}o||(s=new ChangeDetails,this.state=i,n&&e&&(n.state=e))}return s}_appendPlaceholder(){return new ChangeDetails}_appendEager(){return new ChangeDetails}append(e,t,n){if(!isString(e))throw new Error("value should be string");const i=new ChangeDetails,s=isString(n)?new ContinuousTailDetails(String(n)):n;null!=t&&t.tail&&(t._beforeTailState=this.state);for(let n=0;n<e.length;++n){const o=this._appendChar(e[n],t,s);if(!o.rawInserted&&!this.doSkipInvalid(e[n],t,s))break;i.aggregate(o)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&i.aggregate(this._appendEager()),null!=s&&(i.tailShift+=this.appendTail(s).tailShift),i}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,e)+this.value.slice(t),new ChangeDetails}withValueRefresh(e){if(this._refreshing||!this.isInitialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this.isInitialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e){return this.skipInvalid}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(e,this,t):e}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(e){return this.format?this.format(e,this):e}doParse(e){return this.parse?this.parse(e,this):e}splice(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{input:!0};const o=e+t,r=this.extractTail(o),a=!0===this.eager||"remove"===this.eager;let l;a&&(i=function forceDirection(e){switch(e){case U:return K;case G:return Z;default:return e}}(i),l=this.extractInput(0,o,{raw:!0}));let u=e;const c=new ChangeDetails;if(i!==q&&(u=this.nearestInputPos(e,t>1&&0!==e&&!a?q:i),c.tailShift=u-e),c.aggregate(this.remove(u)),a&&i!==q&&l===this.rawInputValue)if(i===K){let e;for(;l===this.rawInputValue&&(e=this.value.length);)c.aggregate(new ChangeDetails({tailShift:-1})).aggregate(this.remove(e-1))}else i===Z&&r.unshift();return c.aggregate(this.append(n,s,r))}maskEquals(e){return this.mask===e}
1typedValueEquals(e){const t=this.typedValue;return e===t||base_Masked.EMPTY_VALUES.includes(e)&&base_Masked.EMPTY_VALUES.includes(t)||this.doFormat(e)===this.doFormat(this.typedValue)}}function maskedClass(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?IMask.MaskedRegExp:isString(e)?IMask.MaskedPattern:e instanceof Date||e===Date?IMask.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?IMask.MaskedNumber:Array.isArray(e)||e===Array?IMask.MaskedDynamic:IMask.Masked&&e.prototype instanceof IMask.Masked?e:e instanceof IMask.Masked?e.constructor:e instanceof Function?IMask.MaskedFunction:(console.warn("Mask not found for mask",e),IMask.Masked)}function createMask(e){if(IMask.Masked&&e instanceof IMask.Masked)return e;const t=(e=Object.assign({},e)).mask;if(IMask.Masked&&t instanceof IMask.Masked)return t;const n=maskedClass(t);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(e)}base_Masked.DEFAULTS={format:String,parse:e=>e,skipInvalid:!0},base_Masked.EMPTY_VALUES=[void 0,null,""],IMask.Masked=base_Masked,IMask.createMask=createMask;const Q=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],J={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class input_definition_PatternInputDefinition{constructor(e){const{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:o,eager:r}=e,a=_objectWithoutPropertiesLoose(e,Q);this.masked=createMask(a),Object.assign(this,{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:o,eager:r})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===e&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new ChangeDetails}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new ChangeDetails;const n=this.masked.state,i=this.masked._appendChar(e,t);return i.inserted&&!1===this.doValidate(t)&&(i.inserted=i.rawInserted="",this.masked.state=n),i.inserted||this.isOptional||this.lazy||t.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=Boolean(i.inserted),i}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const e=new ChangeDetails;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new ChangeDetails}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(e,t,n)}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;const n=this.value.length,i=Math.min(Math.max(e,0),n);switch(t){case U:case K:return this.isComplete?i:0;case G:case Z:return this.isComplete?i:n;case q:default:return i}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}}class fixed_definition_PatternFixedDefinition{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new ChangeDetails}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;const n=this._value.length;switch(t){case U:case K:return 0;case q:case G:case Z:default:return n}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._isRawInput?t-e:0}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new ChangeDetails;if(this.isFilled)return n;const i=!0===this.eager||"append"===this.eager,s=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!i)&&!t.tail;return s&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=s&&(t.raw||t.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new ChangeDetails;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new ContinuousTailDetails("")}appendTail(e){return isString(e)&&(e=new ContinuousTailDetails(String(e))),e.appendTo(this)}append(e,t,n){const i=this._appendChar(e[0],t);return null!=n&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(e){Object.assign(this,e)}}const ee=["chunks"];class chunk_tail_details_ChunksTailDetails{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;isString(e)&&(e=new ContinuousTailDetails(String(e)));const t=this.chunks[this.chunks.length-1],n=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof ContinuousTailDetails)n?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof chunk_tail_details_ChunksTailDetails){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof IMask.MaskedPattern)){return new ContinuousTailDetails(this.toString()).appendTo(e)}const t=new ChangeDetails;for(let n=0;n<this.chunks.length&&!t.skip;++n){const i=this.chunks[n],s=e._mapPosToBlock(e.value.length),o=i.stop;let r;if(null!=o&&(!s||s.index<=o)){if(i instanceof chunk_tail_details_ChunksTailDetails||e._stops.indexOf(o)>=0){const n=e._appendPlaceholder(o);t.aggregate(n)}
1r=i instanceof chunk_tail_details_ChunksTailDetails&&e._blocks[o]}if(r){const n=r.appendTail(i);n.skip=!1,t.aggregate(n),e._value+=n.inserted;const s=i.toString().slice(n.rawInserted.length);s&&t.aggregate(e.append(s,{tail:!0}))}else t.aggregate(e.append(i.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t}=e,n=_objectWithoutPropertiesLoose(e,ee);Object.assign(this,n),this.chunks=t.map(e=>{const t="chunks"in e?new chunk_tail_details_ChunksTailDetails:new ContinuousTailDetails;return t.state=e,t})}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";const t=null!=e?e-this.from:e;let n=0;for(;n<this.chunks.length;){const e=this.chunks[n],i=e.unshift(t);if(e.toString()){if(!i)break;++n}else this.chunks.splice(n,1);if(i)return i}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class cursor_PatternCursor{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return this.state=e,e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(t=this.block)||void 0===t?void 0:t.value.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,K),0!==this.offset||void 0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,U),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,U),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,Z),this.offset!==this.block.value.length||void 0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,q),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,q),!0})}}IMask.MaskedRegExp=class regexp_MaskedRegExp extends base_Masked{_update(e){e.mask&&(e.validate=t=>t.search(e.mask)>=0),super._update(e)}};const te=["_blocks"];class pattern_MaskedPattern extends base_Masked{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},J,e.definitions),super(Object.assign({},pattern_MaskedPattern.DEFAULTS,e))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let n=!1,i=!1;for(let r=0;r<t.length;++r){var s,o;if(this.blocks){const e=t.slice(r),n=Object.keys(this.blocks).filter(t=>0===e.indexOf(t));n.sort((e,t)=>t.length-e.length);const i=n[0];if(i){const e=createMask(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[i]));e&&(this._blocks.push(e),this._maskedBlocks[i]||(this._maskedBlocks[i]=[]),this._maskedBlocks[i].push(this._blocks.length-1)),r+=i.length-1;continue}}let a=t[r],l=a in e;if(a===pattern_MaskedPattern.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===a||"}"===a){n=!n;continue}if("["===a||"]"===a){i=!i;continue}if(a===pattern_MaskedPattern.ESCAPE_CHAR){if(++r,a=t[r],!a)break;l=!1}const u=null===(s=e[a])||void 0===s||!s.mask||(null===(o=e[a])||void 0===o?void 0:o.mask.prototype)instanceof IMask.Masked?{mask:e[a]}:e[a],c=l?new input_definition_PatternInputDefinition(Object.assign({parent:this,isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},u)):new fixed_definition_PatternFixedDefinition({char:a,eager:this.eager,isUnmasking:n});this._blocks.push(c)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map(e=>e.state)})}set state(e){const{_blocks:t}=e,n=_objectWithoutPropertiesLoose(e,te);this._blocks.forEach((e,n)=>e.state=t[n]),super.state=n}
1reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce((e,t)=>e+t.unmaskedValue,"")}set unmaskedValue(e){super.unmaskedValue=e}get value(){return this._blocks.reduce((e,t)=>e+t.value,"")}set value(e){super.value=e}get displayValue(){return this._blocks.reduce((e,t)=>e+t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new ChangeDetails;let n=null===(e=this._mapPosToBlock(this.value.length))||void 0===e?void 0:e.index;if(null==n)return t;this._blocks[n].isFilled&&++n;for(let e=n;e<this._blocks.length;++e){const n=this._blocks[e]._appendEager();if(!n.inserted)break;t.aggregate(n)}return t}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this._mapPosToBlock(this.value.length),i=new ChangeDetails;if(!n)return i;for(let r=n.index;;++r){var s,o;const n=this._blocks[r];if(!n)break;const a=n._appendChar(e,Object.assign({},t,{_beforeTailState:null===(s=t._beforeTailState)||void 0===s||null===(o=s._blocks)||void 0===o?void 0:o[r]})),l=a.skip;if(i.aggregate(a),l||a.rawInserted)break}return i}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const n=new chunk_tail_details_ChunksTailDetails;return e===t||this._forEachBlocksInRange(e,t,(e,t,i,s)=>{const o=e.extractTail(i,s);o.stop=this._findStopBefore(t),o.from=this._blockStartPos(t),o instanceof chunk_tail_details_ChunksTailDetails&&(o.blockIndex=t),n.extend(o)}),n}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(e,t,s,o)=>{i+=e.extractInput(s,o,n)}),i}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(!(i<=e))break;t=i}return t}_appendPlaceholder(e){const t=new ChangeDetails;if(this.lazy&&null==e)return t;const n=this._mapPosToBlock(this.value.length);if(!n)return t;const i=n.index,s=null!=e?e:this._blocks.length;return this._blocks.slice(i,s).forEach(n=>{if(!n.lazy||null!=e){const e=null!=n._blocks?[n._blocks.length]:[],i=n._appendPlaceholder(...e);this._value+=i.inserted,t.aggregate(i)}}),t}_mapPosToBlock(e){let t="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],s=t.length;if(t+=i.value,e<=t.length)return{index:n,offset:e-s}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+t.value.length,0)}_forEachBlocksInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;const i=this._mapPosToBlock(e);if(i){const e=this._mapPosToBlock(t),s=e&&i.index===e.index,o=i.offset,r=e&&s?e.offset:this._blocks[i.index].value.length;if(n(this._blocks[i.index],i.index,o,r),e&&!s){for(let t=i.index+1;t<e.index;++t)n(this._blocks[t],t,0,this._blocks[t].value.length);n(this._blocks[e.index],e.index,0,e.offset)}}}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,i,s)=>{n.aggregate(e.remove(i,s))}),n}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;if(!this._blocks.length)return 0;const n=new cursor_PatternCursor(this,e);if(t===q)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.value.length);if(t===U||t===K){if(t===U){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===U){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e)return n.pos;if(n.popState(),n.ok&&n.pos<=e)return n.pos;n.popState()}return n.ok?n.pos:t===K?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return t===G||t===Z?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===Z?this.value.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(e,U)))):e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=0;
1return this._forEachBlocksInRange(e,t,(e,t,i,s)=>{n+=e.totalInputPositions(i,s)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}}pattern_MaskedPattern.DEFAULTS={lazy:!0,placeholderChar:"_"},pattern_MaskedPattern.STOP_CHAR="`",pattern_MaskedPattern.ESCAPE_CHAR="\\",pattern_MaskedPattern.InputDefinition=input_definition_PatternInputDefinition,pattern_MaskedPattern.FixedDefinition=fixed_definition_PatternFixedDefinition,IMask.MaskedPattern=pattern_MaskedPattern;class range_MaskedRange extends pattern_MaskedPattern{get _matchFrom(){return this.maxLength-String(this.from).length}_update(e){e=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},e);let t=String(e.to).length;null!=e.maxLength&&(t=Math.max(t,e.maxLength)),e.maxLength=t;const n=String(e.from).padStart(t,"0"),i=String(e.to).padStart(t,"0");let s=0;for(;s<i.length&&i[s]===n[s];)++s;e.mask=i.slice(0,s).replace(/0/g,"\\0")+"0".repeat(t-s),super._update(e)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(e){let t="",n="";const[,i,s]=e.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(t="0".repeat(i.length)+s,n="9".repeat(i.length)+s),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepare(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if([e,t]=normalizePrepare(super.doPrepare(e.replace(/\D/g,""),n)),!this.autofix||!e)return e;const i=String(this.from).padStart(this.maxLength,"0"),s=String(this.to).padStart(this.maxLength,"0");let o=this.value+e;if(o.length>this.maxLength)return"";const[r,a]=this.boundaries(o);return Number(a)<this.from?i[o.length-1]:Number(r)>this.to?"pad"===this.autofix&&o.length<this.maxLength?["",t.aggregate(this.append(i[o.length-1]+e,n))]:s[o.length-1]:e}doValidate(){const e=this.value;if(-1===e.search(/[^0]/)&&e.length<=this._matchFrom)return!0;const[t,n]=this.boundaries(e);return this.from<=Number(n)&&Number(t)<=this.to&&super.doValidate(...arguments)}}IMask.MaskedRange=range_MaskedRange;class date_MaskedDate extends pattern_MaskedPattern{constructor(e){super(Object.assign({},date_MaskedDate.DEFAULTS,e))}_update(e){e.mask===Date&&delete e.mask,e.pattern&&(e.mask=e.pattern);const t=e.blocks;e.blocks=Object.assign({},date_MaskedDate.GET_DEFAULT_BLOCKS()),e.min&&(e.blocks.Y.from=e.min.getFullYear()),e.max&&(e.blocks.Y.to=e.max.getFullYear()),e.min&&e.max&&e.blocks.Y.from===e.blocks.Y.to&&(e.blocks.m.from=e.min.getMonth()+1,e.blocks.m.to=e.max.getMonth()+1,e.blocks.m.from===e.blocks.m.to&&(e.blocks.d.from=e.min.getDate(),e.blocks.d.to=e.max.getDate())),Object.assign(e.blocks,this.blocks,t),Object.keys(e.blocks).forEac
1h(t=>{const n=e.blocks[t];!("autofix"in n)&&"autofix"in e&&(n.autofix=e.autofix)}),super._update(e)}doValidate(){const e=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&null!=e&&(null==this.min||this.min<=e)&&(null==this.max||e<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}date_MaskedDate.DEFAULTS={pattern:"d{.}`m{.}`Y",format:e=>{if(!e)return"";return[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join(".")},parse:e=>{const[t,n,i]=e.split(".");return new Date(i,n-1,t)}},date_MaskedDate.GET_DEFAULT_BLOCKS=()=>({d:{mask:range_MaskedRange,from:1,to:31,maxLength:2},m:{mask:range_MaskedRange,from:1,to:12,maxLength:2},Y:{mask:range_MaskedRange,from:1900,to:9999}}),IMask.MaskedDate=date_MaskedDate;class MaskElement{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch(e){}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch(e){}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch(e){}}_unsafeSelect(e,t){}get isActive(){return!1}bindEvents(e){}unbindEvents(){}}IMask.MaskElement=MaskElement;class html_mask_element_HTMLMaskElement extends MaskElement{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,t,n;return null!==(e=null===(t=(n=this.input).getRootNode)||void 0===t?void 0:t.call(n))&&void 0!==e?e:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}bindEvents(e){Object.keys(e).forEach(t=>this._toggleEventHandler(html_mask_element_HTMLMaskElement.EVENTS_MAP[t],e[t]))}unbindEvents(){Object.keys(this._handlers).forEach(e=>this._toggleEventHandler(e))}_toggleEventHandler(e,t){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),t&&(this.input.addEventListener(e,t),this._handlers[e]=t)}}html_mask_element_HTMLMaskElement.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},IMask.HTMLMaskElement=html_mask_element_HTMLMaskElement;class html_contenteditable_mask_element_HTMLContenteditableMaskElement extends html_mask_element_HTMLMaskElement{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==n||n<i?n:i}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==n||n>i?n:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}get value(){return this.input.textContent}set value(e){this.input.textContent=e}}IMask.HTMLContenteditableMaskElement=html_contenteditable_mask_element_HTMLContenteditableMaskElement;const ne=["mask"];IMask.InputMask=class input_InputMask{constructor(e,t){this.el=e instanceof MaskElement?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new html_contenteditable_mask_element_HTMLContenteditableMaskElement(e):new html_mask_element_HTMLMaskElement(e),this.masked=createMask(t),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateV
1alue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(e){var t;return null==e||(null===(t=this.masked)||void 0===t?void 0:t.maskEquals(e))}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof IMask.Masked)&&this.masked.constructor===maskedClass(e))return void this.masked.updateOptions({mask:e});const t=createMask({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const s=this._listeners[e];s&&s.forEach(e=>e(...n))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,t=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==e||this.value!==t;this._unmaskedValue=e,this._value=t,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(e){const{mask:t}=e,n=_objectWithoutPropertiesLoose(e,ne),i=!this.maskEquals(t),s=!objectIncludes(this.masked,n);i&&(this.mask=t),s&&this.masked.updateOptions(n),(i||s)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,U))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const t=new action_details_ActionDetails(this.el.value,this.cursorPos,this.displayValue,this._selection),n=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,s=n===this.masked.rawInputValue?t.removeDirection:q;let o=this.masked.nearestInputPos(t.startChangePos+i,s);s!==q&&(o=this.masked.nearestInputPos(o,q)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};IMask.MaskedEnum=class enum_MaskedEnum extends pattern_MaskedPattern{_update(e){e.enum&&(e.mask="*".repeat(e.enum[0].length)),super._update(e)}doValidate(){return this.enum.some(e=>e.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}};
1class number_MaskedNumber extends base_Masked{constructor(e){super(Object.assign({},number_MaskedNumber.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"(".concat(escapeRegExp(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(escapeRegExp).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(escapeRegExp(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e);const[n,i]=normalizePrepare(super.doPrepare(e,t));return e&&!n&&(i.skip=!0),[n,i]}_separatorsCount(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(e,t);const n=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const s=super._appendCharRaw(e,t);this._value=this._insertThousandsSeparators(this._value);const o=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,r=this._separatorsCountFromSlice(o);return s.tailShift+=(r-i)*this.thousandsSeparator.length,s.skip=!s.rawInserted&&e===this.thousandsSeparator,s}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n>=0&&(e=n);const i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),i=this.value.slice(t),s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const o=this._separatorsCountFromSlice(n);return new ChangeDetails({tailShift:(o-s)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case q:case U:case K:{const n=this._findSeparatorAround(e-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===K)return n}break}case G:case Z:{const t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doValidate(e){let t=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(t){const e=this.number;t=t&&!isNaN(e)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return t&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.doFormat(t));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,n,i)=>t+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===number_MaskedNumber.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,number_MaskedNumber.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(number_MaskedNumber.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}typedValueEquals(e){return(super.typedValueEquals(e)||number_MaskedNumber.EMPTY_VALUES.includes(e)&&number_MaskedNumber.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}number_MaskedNumber.UNMASKED_RADIX=".",number_MaskedNumber.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[number_MaskedNumber.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>
1e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},number_MaskedNumber.EMPTY_VALUES=[...base_Masked.EMPTY_VALUES,0],IMask.MaskedNumber=number_MaskedNumber;IMask.MaskedFunction=class function_MaskedFunction extends base_Masked{_update(e){e.mask&&(e.validate=e.mask),super._update(e)}};const ie=["compiledMasks","currentMaskRef","currentMask"],se=["mask"];class dynamic_MaskedDynamic extends base_Masked{constructor(e){super(Object.assign({},dynamic_MaskedDynamic.DEFAULTS,e)),this.currentMask=null}_update(e){super._update(e),"mask"in e&&(this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>createMask(e)):[])}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,s=this.rawInputValue,o=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:s,r=s.slice(o.length),a=this.currentMask,l=new ChangeDetails,u=null==a?void 0:a.state;if(this.currentMask=this.doDispatch(e,Object.assign({},t),n),this.currentMask)if(this.currentMask!==a){if(this.currentMask.reset(),o){const e=this.currentMask.append(o,{raw:!0});l.tailShift=e.inserted.length-i.length}r&&(l.tailShift+=this.currentMask.append(r,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=u;return l}_appendPlaceholder(){const e=this._applyDispatch(...arguments);return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch(...arguments);return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new ChangeDetails;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return Object.assign({},e,{_beforeTailState:(null===(t=e._beforeTailState)||void 0===t?void 0:t.currentMaskRef)===this.currentMask&&(null===(n=e._beforeTailState)||void 0===n?void 0:n.currentMask)||e._beforeTailState})}doDispatch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,i]=normalizePrepare(super.doPrepare(e,t));if(this.currentMask){let e;[n,e]=normalizePrepare(super.doPrepare(n,this.currentMaskFlags(t))),i=i.aggregate(e)}return[n,i]}reset(){var e;null===(e=this.currentMask)||void 0===e||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value(e){super.value=e}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(e){let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return Boolean(null===(e=this.currentMask)||void 0===e?void 0:e.isComplete)}get isFilled(){var e;return Boolean(null===(e=this.currentMask)||void 0===e?void 0:e.isFilled)}remove(){const e=new ChangeDetails;return this.currentMask&&e.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),e}get state(){var e;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:null===(e=this.currentMask)||void 0===e?void 0:e.state})}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:i}=e,s=_objectWithoutPropertiesLoose(e,ie);this.compiledMasks.forEach((e,n)=>e.state=t[n]),null!=n&&(this.currentMask=n,this.currentMask.state=i),super.state=s}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(e){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(e){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(e){(this.isInitialized||e!==base_Masked.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(e){return Array.isArray(e)&&this.compiledMasks.every((t,n)=>{if(!e[n])return;const i=e[n],{mask:s}=i;return objectIncludes(t,_objectWithoutPropertiesLoose(i,se))&&t.maskEquals(s)})}typedValueEquals(e){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.typedValueEquals(e))}}
1dynamic_MaskedDynamic.DEFAULTS={dispatch:(e,t,n,i)=>{if(!t.compiledMasks.length)return;const s=t.rawInputValue,o=t.compiledMasks.map((o,r)=>{const a=t.currentMask===o,l=a?o.value.length:o.nearestInputPos(o.value.length,K);return o.rawInputValue!==s?(o.reset(),o.append(s,{raw:!0})):a||o.remove(l),o.append(e,t.currentMaskFlags(n)),o.appendTail(i),{index:r,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(l,o.nearestInputPos(o.value.length,K)))}});return o.sort((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[o[0].index]}},IMask.MaskedDynamic=dynamic_MaskedDynamic;const oe={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function createPipe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe.MASKED;const i=createMask(e);return e=>i.runIsolated(i=>(i[t]=e,i[n]))}IMask.PIPE_TYPE=oe,IMask.createPipe=createPipe,IMask.pipe=function pipe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return createPipe(...n)(e)};try{globalThis.IMask=IMask}catch(e){}var re=function(){function ValidateFormFile(){p()(this,ValidateFormFile),this.settings(),this.texts(),this.bindEvents(),this.imask()}return f()(ValidateFormFile,[{key:"settings",value:function settings(){this.forms=document.querySelectorAll("form.js-form-cms"),this.inputTypeFiles="",this.clearButtons="",this.inputMasks=""}},{key:"texts",value:function texts(){var e,t;this.formLabelText=(null===(e=window.multiLang)||void 0===e||null===(t=e.allPages)||void 0===t?void 0:t.validateFormFile)||"Додати файл"}},{key:"bindEvents",value:function bindEvents(){var e=this;this.forms.length&&this.forms.forEach((function(t){e.inputTypeFiles=[].concat(X()(e.inputTypeFiles),X()(t.querySelectorAll('input[type="file"]'))),e.clearButtons=[].concat(X()(e.clearButtons),X()(t.querySelectorAll(".btn-file-clear"))),e.inputMasks=[].concat(X()(e.inputMasks),X()(t.querySelectorAll("[data-imask]"))),console.log(e.inputMasks)})),this.inputTypeFiles.length&&this.inputTypeFiles.forEach((function(t){t.addEventListener("change",(function(t){var n=t.target,i=n.files;if(i.length){var s=i[0],o=s.name&&s.name.length?s.name:"";n.nextElementSibling.firstElementChild.textContent=o,n.nextElementSibling.lastElementChild.style.display="none",n.nextElementSibling.nextElementSibling.style.display="block"}else n.nextElementSibling.firstElementChild.textContent=e.formLabelText,n.nextElementSibling.nextElementSibling.style.display="none",n.nextElementSibling.lastElementChild.style.display="block"}))})),this.clearButtons.length&&this.clearButtons.forEach((function(t){t.addEventListener("click",(function(t){var n=t.target.previousElementSibling.previousElementSibling;n.files.length&&(n.value="",n.nextElementSibling.firstElementChild.textContent=e.formLabelText,n.nextElementSibling.nextElementSibling.style.display="none",n.nextElementSibling.lastElementChild.style.display="block",console.log(n.files)),console.log(e.formLabelText)}))})),document.addEventListener("clearAccreditationForm",(function(){var t=document.getElementById("file");t.nextElementSibling.firstElementChild.textContent=e.formLabelText,t.nextElementSibling.nextElementSibling.style.display="none",t.nextElementSibling.lastElementChild.style.display="block"}))}},{key:"imask",value:function imask(){this.inputMasks.length&&this.inputMasks.forEach((function(e){var t=e,n=IMask(t,{mask:"+{38}(000)000-00-00",lazy:!1,placeholderChar:"_"});n.on("accept",(function(){t.nextElementSibling.value=""})),n.on("complete",(function(){var e=n.value.replace(/[+()-]/gi,"");t.nextElementSibling.value=e}))}))}}]),ValidateFormFile}();function header(){!function momentLocales(){var e=document.querySelector("html").getAttribute("lang");e&&("ua"===e?(window.momentLocale="uk",window.Locale="".concat(e)):(window.momentLocale="".concat(e),window.Locale="".concat(e)),moment.locale("".concat(window.momentLocale)))}(),function initChosen(e,t){$(e).chosen(t),$(e).on("chosen:showing_dropdown",(function(e){var t=e.target,n=$(t).next().find(".chosen-results")[0],i=$(t).next().find(".chosen-drop")[0];$(n).height()>=200&&!i.classList.contains("ps")&&new W(i,{wheelPropagation:!0,maxScrollbarLength:"80",minScrollbarLength:"80"})}))}
1(".js-custom_select",{disable_search:!0}),function menuAnim(){var e=document.getElementById("menuSm"),t=document.getElementById("shomMenuSm"),n=document.querySelectorAll(".js-closeMenuSm"),i=document.querySelectorAll(".js-backMenu");$(".js-showSubmenuPc").click((function(){$(this).hasClass("active")?$(this).removeClass("active"):($(".js-showSubmenuPc").removeClass("active"),$(this).addClass("active"))})),$(".js-showSubmenu").click((function(){$(e).animate({scrollTop:0},100),$(this).hasClass("active")?(e.classList.remove("open-submenu"),$(this).removeClass("active")):($(".js-showSubmenu").removeClass("active"),$(this).addClass("active"),e.classList.add("open-submenu"))})),t.onclick=function(){e.classList.add("active"),e.setAttribute("tabindex","0"),document.body.classList.add("menu-opened")};for(var s=0;s<i.length;s++)i[s].addEventListener("click",(function(){this.parentElement.parentElement.previousElementSibling.classList.remove("active"),e.classList.remove("open-submenu")}),!1);for(var o=0;o<n.length;o++)n[o].addEventListener("click",(function(){e.classList.remove("active"),e.classList.remove("open-submenu"),e.removeAttribute("tabindex"),document.body.classList.remove("menu-opened")}),!1);$(document).mouseup((function(e){var t=$(".menu-pc_submenu"),n=$(".menu-pc");t.is(e.target)||0!==t.has(e.target).length||n.is(e.target)||0!==n.has(e.target).length||t.prev().removeClass("active")}))}(),function helpers(){$("a").each((function(){$(this).hasClass("online-mss-btn")&&($(this).addClass("btn"),$(this).addClass("btn_accreditation")),-1!==$(this).html().indexOf("<img")&&$(this).addClass("inside-photo")})),$(".editor-content a").each((function(){"_blank"!==$(this).attr("target")||$(this).hasClass("inside-photo")||$(this).hasClass("npa-page_pdf-link")||$(this).html("<span>".concat($(this).html(),'</span><span class="icon"></span>'))}))}(),searchAnim(),function searchSubmit(){var e=document.getElementById("searchPortalForm"),t=document.getElementById("searchNPAForm"),n=document.getElementById("search-error"),i=document.getElementById("searchLisenceForm"),s=document.getElementById("searchLisenceError"),o=document.querySelector("html").getAttribute("lang"),r="";if("en"===o&&(r="Fill in the field (at least 3 characters)"),"ua"===o&&(r="Заповніть поле ( мінімум 3 символи )"),e&&(e.onsubmit=function(e){e.preventDefault();var t=this.elements.key.value.replace(/[+<>{}*#:;%&'"]/gi," ").trim();this.elements.key.value=t.replace(/\s+/g," "),t.length>=3?(n.innerHTML="",this.submit(),localStorage.setItem("searchKey",t)):n.innerHTML=r}),t){var a=t.getAttribute("action");t.onsubmit=function(e){e.preventDefault();var n=t.elements.key.value.replace(/[+<>{}*#:;%&'"]/gi," ").trim(),i=t.elements.num.value.replace(/[+<>{}*#:;%&'"]/gi," ").trim(),s=n.replace(/\s+/g," "),o=i.replace(/\s+/g," "),r=s.length>0?"&key=".concat(s):"",l=o.length>0?"&num=".concat(o):"",u=t.elements.category.value.trim().length>0?"&category=".concat(t.elements.category.value.trim()):"",c=t.elements.tags.value.trim().length>0?"&tags=".concat(t.elements.tags.value.trim()):"",h=t.elements.from.value.trim().length>0?"&from=".concat(t.elements.from.value.trim()):"",d=t.elements.to.value.trim().length>0?"&to=".concat(t.elements.to.value.trim()):"",p="".concat(r).concat(l).concat(u).concat(c).concat(h).concat(d);localStorage.setItem("searchKey",this.elements.key.value.trim()),localStorage.setItem("searchKeyNpa",p),window.location.href=a?"".concat(a):"/npasearch"}}if(i){var l=i.getAttribute("action");i.onsubmit=function(e){e.preventDefault(),this.elements.key.value.length>=3?(s.innerHTML="",l&&(window.location.href="".concat(l,"?key=").concat(this.elements.key.value.trim()))):s.innerHTML=r}}}(),function siteMap(){$(document).ready((function(){$("#siteMapBtn").click((function(){$("#siteMapContent").collapse("toggle"),$(this).toggleClass("active")}))}))}(),function things(){!function tabsCustomScroll(){var e=document.querySelector(".js-custom-scroll"),t=document.querySelectorAll(".js-custom-scroll .js-nav-item"),n=0;if(e&&t.length){for(var i=0;i<t.length;i++)n+=t[i].offsetWidth;(e.offsetWidth<n||t.length>
1=3&&window.innerWidth<=767)&&(e.classList.add("tabs-default-visible-scroll"),e.classList.add("ps--active-x"),new W(e,{useBothWheelAxes:!1,suppressScrollX:!1,suppressScrollY:!0}))}}()}(),function scrollToTop(){$(window).scroll((function(){$(this).scrollTop()>100?$("#scrollToTopBtn").fadeIn():$("#scrollToTopBtn").fadeOut()})),$("#scrollToTopBtn").click((function(){return $("html, body").animate({scrollTop:0},500),!1}))}(),function showHideFilters(){var e=document.getElementById("showFilters");e&&e.addEventListener("click",(function(){!function showHideFiltersItem(e){-1!==e.className.indexOf("active")?e.classList.remove("active"):e.classList.add("active")}(e)}))}(),function adaptiveTable(){var e=$("table");e.length&&$.each(e,(function(){$(this).parent().hasClass("table-responsive")||($(this).addClass("table"),$(this).wrap('<div class="table-responsive">'))}))}(),function initDatepicker(e,t){$(e).datepicker(t)}(".js_datepicker_single-header, .js_datepicker_range, .js_datepicker_single",{format:{toDisplay:function toDisplay(e){return moment.utc(e).format("DD.MM.YYYY")},toValue:function toValue(e){return moment.utc(e,["DD.MM.YYYY","DD.MM.YY"]).toDate()}},language:"uk",autoclose:!0}),function crossBrowser(){var e=A();if(e){C.noConflict();var t=e.name,n=e.os.split(" ")[0].toLowerCase();$("body").addClass("".concat(t," ").concat(n)),$("html").addClass("".concat(t))}}(),countMenuWidth(),new j.a,function imageAltTags(){try{var e=document.querySelector('meta[property="og:title"]');if(e){var t=e.getAttribute("content"),n=document.querySelector(".article-level-2"),i=document.querySelector(".page_title-text"),s=document.getElementsByTagName("img");if(i){var o=i.textContent.toLowerCase();Array.from(s).forEach((function(e){e.getAttribute("alt")||e.setAttribute("alt",o),e.getAttribute("title")||e.setAttribute("title",o)}))}if(n){var r=n.textContent.toLowerCase();return void Array.from(s).forEach((function(e){e.getAttribute("alt")||e.setAttribute("alt",r),e.getAttribute("title")||e.setAttribute("title",r)}))}if(t)return t=t.toLowerCase(),void Array.from(s).forEach((function(e){e.getAttribute("alt")||e.setAttribute("alt",t),e.getAttribute("title")||e.setAttribute("title",t)}))}}catch(e){console.log(e)}}(),function fileinfoshow(){var e=document.querySelectorAll("a.fr-file");if(0!==e.length)for(var t=0;t<e.length;t++){e[t].classList.add("attachment-file");var n=document.createElement("span"),i=e[t].getAttribute("data-extension"),s=e[t].getAttribute("data-size");if(null!==i&&null!==s){var o=void 0,r=void 0;s>=1e6?(o="Мб",r=s/1e6):s<1e6&&(o="Кб",r=s/1e3),n.className="attachment-file_info",n.innerHTML=" ( .".concat(i," , ").concat(r.toFixed(2)," ").concat(o," )"),e[t].appendChild(n)}}}(),function changeLang(){var e=document.querySelectorAll(".change-language"),t=document.body;e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){var t=e.currentTarget,n=t.firstElementChild;t.classList.toggle("active"),n.classList.toggle("active")}))})),t.addEventListener("click",(function(t){var n=t.target;e.forEach((function(e){e===n||e.contains(n)||(e.classList.remove("active"),e.firstElementChild.classList.remove("active"))}))}))}(),document.addEventListener("DOMContentLoaded",(function(){new re,setTimeout((function(){countMenuWidth()}),0)})),window.addEventListener("load",(function(){h(document.querySelectorAll(".editor-content img"))})),new g,window.getCsrf&&setInterval((function(){window.getCsrf().then((function(e){$('[name="csrf-token"]').attr("content",e)}))}),6e5)}},8:function(e,t){var n,i,s=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){i=defaultClearTimeout}}();var o,r=[],a=!1,l=-1;function cleanUpNextTick(){a&&o&&(a=!1,o.length?r=o.concat(r):l=-1,r.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=r.length;t;){for(o=r,r=[];++l<t;)o&&o[l].run();l=-1,t=r.length}o=null,a=!1,function runClearTimeout(e){if(i===clearTimeout)return clearTimeout(e);if((i===defaultClearTimeout||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.push(new Item(e,t)),1!==r.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=noop,s.addListener=noop,s.once=noop,s.off=noop,s.removeListener=noop,s.removeAllListeners=noop,s.emit=noop,s.prependListener=noop,s.prependOnceListener=noop,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},95:function(e,t,n){"use strict";n.r(t);var i=n(0),s=n.n(i),o=n(1),r=n.n(o),a=n(7),l=n(46),u=n(45),c=n(52);new(function(){function NewsItem(){s()(this,NewsItem),this.initModules()}return r()(NewsItem,[{key:"initModules",value:function initModules(){Object(a.a)(),Object(l.a)(),new u.a,function initContentSlider(){$(document).ready((function(){var e,t=document.querySelector(".js-swiper_news-thumbs"),n=document.querySelector(".js-swiper_news");t&&(e=new Swiper(t,{spaceBetween:10,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0,breakpoints:{320:{slidesPerView:2},768:{slidesPerView:3}
1,1200:{slidesPerView:4,spaceBetween:30}}})),n&&new Swiper(n,{slidesPerView:1,spaceBetween:30,navigation:{nextEl:".swiper_news-btn-next",prevEl:".swiper_news-btn-prev",disabledClass:"disabled"},thumbs:{swiper:e,slideThumbActiveClass:"active"}})}))}(),Object(c.a)(".js-magnificPopupGallery",!1)}}]),NewsItem}())}});

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.